-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tab): dynamic add icon and delete icon and handle callBack for a…
…dd tabs and ehance UI
- Loading branch information
Showing
238 changed files
with
275 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"name": "@mui-builder/tab", | ||
"version": "0.0.2" | ||
"version": "0.0.3" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...e2e6c906dbb08291bce4750abc3bc3f1a247e/code/cache/0a89e0bf5710339b96be394ca605a861d0d4aa0a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"code":"import { jsx as _jsx } from \"react/jsx-runtime\";\nimport useTabPanel from './useTabPanel';\nconst TabPanel = (props) => {\n const { show, children, getContainerProps } = useTabPanel(props);\n return _jsx(\"div\", Object.assign({}, getContainerProps, { children: show && children }));\n};\nexport default TabPanel;\n//# sourceMappingURL=tabPanel.js.map","references":["/home/mrbadri/code/startup/mui-builder/node_modules/@types/react/index.d.ts","/home/mrbadri/code/startup/mui-builder/packages/tab/src/components/tabPanel/tabPanel.types.ts","/home/mrbadri/code/startup/mui-builder/packages/tab/src/components/tabPanel/useTabPanel.ts"],"map":"{\"version\":3,\"file\":\"tabPanel.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../packages/tab/src/components/tabPanel/tabPanel.tsx\"],\"names\":[],\"mappings\":\";AAIA,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,MAAM,QAAQ,GAA4B,CAAC,KAAK,EAAE,EAAE;IAClD,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,iBAAiB,EAAE,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;IAEjE,OAAO,8BAAS,iBAAiB,cAAG,IAAI,IAAI,QAAQ,IAAO,CAAC;AAC9D,CAAC,CAAC;AACF,eAAe,QAAQ,CAAC\"}","dts":{"name":"undefined/placeholder/src/components/tabPanel/tabPanel.d.ts","writeByteOrderMark":false,"text":"import React from 'react';\nimport { TabPanelProps } from './tabPanel.types';\ndeclare const TabPanel: React.FC<TabPanelProps>;\nexport default TabPanel;\n"}} |
1 change: 1 addition & 0 deletions
1
...e2e6c906dbb08291bce4750abc3bc3f1a247e/code/cache/826dabae83d098196527cd62803beb2d2c8756c9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"code":"export {};\n//# sourceMappingURL=tabPanel.types.js.map","references":[],"map":"{\"version\":3,\"file\":\"tabPanel.types.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../packages/tab/src/components/tabPanel/tabPanel.types.ts\"],\"names\":[],\"mappings\":\"\"}","dts":{"name":"undefined/placeholder/src/components/tabPanel/tabPanel.types.d.ts","writeByteOrderMark":false,"text":"/// <reference types=\"react\" />\nexport type TabPanelProps = {\n children?: React.ReactNode;\n index: number;\n value: number | null;\n};\n"}} |
1 change: 1 addition & 0 deletions
1
...e2e6c906dbb08291bce4750abc3bc3f1a247e/code/cache/a31b7651379729dbe231342c728ab809a3333ced
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"code":"import TabPanel from './components/tabPanel/tabPanel';\nimport Tabs from './components/tabs/tabs';\nexport { TabPanel };\nexport default Tabs;\n//# sourceMappingURL=index.js.map","references":["/home/mrbadri/code/startup/mui-builder/packages/tab/src/components/tabs/tabs.types.ts","/home/mrbadri/code/startup/mui-builder/packages/tab/src/components/tabPanel/tabPanel.tsx","/home/mrbadri/code/startup/mui-builder/packages/tab/src/components/tabs/tabs.tsx"],"map":"{\"version\":3,\"file\":\"index.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../packages/tab/src/index.ts\"],\"names\":[],\"mappings\":\"AAEA,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AACtD,OAAO,IAAI,MAAM,wBAAwB,CAAC;AAE1C,OAAO,EAAE,QAAQ,EAAE,CAAC;AAIpB,eAAe,IAAI,CAAC\"}","dts":{"name":"undefined/placeholder/src/index.d.ts","writeByteOrderMark":false,"text":"import { TabData } from './components/tabs/tabs.types';\nimport TabPanel from './components/tabPanel/tabPanel';\nimport Tabs from './components/tabs/tabs';\nexport { TabPanel };\nexport type { TabData };\nexport default Tabs;\n"}} |
1 change: 1 addition & 0 deletions
1
...e2e6c906dbb08291bce4750abc3bc3f1a247e/code/cache/c3b7651cfa18a9b0756773ba11e1fcd8d0bdd7cf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"code":"import { useState } from 'react';\nconst useTabs = (props) => {\n const { tabs, setTabs, onAdd, addable = false, AddIcon = '+', DeleteIcon = 'x', } = props;\n const [value, setValue] = useState(0);\n const [deleteIndex, setDeleteIndex] = useState(null);\n const handleChange = (event, newValue) => {\n setValue(newValue);\n };\n const handleAddTab = () => {\n if (addable) {\n onAdd === null || onAdd === void 0 ? void 0 : onAdd();\n setValue(tabs.length - 1);\n }\n };\n const handleDeleteTab = (index) => {\n const newTabs = tabs.filter((_, i) => i !== index);\n setTabs(newTabs);\n setValue(Math.min(value, newTabs.length - 1));\n setDeleteIndex(null);\n };\n const showDeleteIcon = (index) => deleteIndex === index;\n // Props\n const getTabsProps = () => ({\n value,\n onChange: handleChange,\n 'aria-label': 'dynamic tabs example',\n });\n const getTabProps = (tab, index) => ({\n key: index,\n label: tab.label,\n onMouseEnter: () => setDeleteIndex(index), // Set deleteIndex on hover\n onMouseLeave: () => setDeleteIndex(null), // Reset deleteIndex when mouse leaves\n iconPosition: 'end',\n onClick: () => setValue(index),\n });\n const getDeleteTabProps = (index) => ({\n onClick: () => handleDeleteTab(index),\n style: { fontSize: '14px' },\n });\n const getAddTabProps = () => ({\n onClick: handleAddTab,\n sx: { width: '72px' },\n });\n const getTabPanelProps = (index) => ({\n key: index,\n value: value,\n index: index,\n });\n return {\n DeleteIcon,\n AddIcon,\n tabs,\n showDeleteIcon,\n addable,\n getTabsProps,\n getTabProps,\n getDeleteTabProps,\n getAddTabProps,\n getTabPanelProps,\n };\n};\nexport default useTabs;\n//# sourceMappingURL=useTabs.js.map","references":["/home/mrbadri/code/startup/mui-builder/node_modules/@types/react/index.d.ts","/home/mrbadri/code/startup/mui-builder/node_modules/@mui/material/index.d.ts","/home/mrbadri/code/startup/mui-builder/node_modules/@mui/material/index.d.ts","/home/mrbadri/code/startup/mui-builder/packages/tab/src/components/tabs/tabs.types.ts"],"map":"{\"version\":3,\"file\":\"useTabs.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../packages/tab/src/components/tabs/useTabs.tsx\"],\"names\":[],\"mappings\":\"AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAOxC,MAAM,OAAO,GAAG,CAAC,KAAgB,EAAE,EAAE;IACnC,MAAM,EACJ,IAAI,EACJ,OAAO,EACP,KAAK,EACL,OAAO,GAAG,KAAK,EACf,OAAO,GAAG,GAAG,EACb,UAAU,GAAG,GAAG,GACjB,GAAG,KAAK,CAAC;IACV,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAgB,CAAC,CAAC,CAAC;IACrD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAEpE,MAAM,YAAY,GAAG,CACnB,KAA2B,EAC3B,QAAuB,EACvB,EAAE;QACF,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,GAAG,EAAE;QACxB,IAAI,OAAO,EAAE,CAAC;YACZ,KAAK,aAAL,KAAK,uBAAL,KAAK,EAAI,CAAC;YACV,QAAQ,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,eAAe,GAAG,CAAC,KAAa,EAAE,EAAE;QACxC,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC;QACnD,OAAO,CAAC,OAAO,CAAC,CAAC;QACjB,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,KAAe,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;QACxD,cAAc,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,WAAW,KAAK,KAAK,CAAC;IAEhE,QAAQ;IACR,MAAM,YAAY,GAAG,GAAiB,EAAE,CAAC,CAAC;QACxC,KAAK;QACL,QAAQ,EAAE,YAAY;QACtB,YAAY,EAAE,sBAAsB;KACrC,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,CAAC,GAAY,EAAE,KAAa,EAAe,EAAE,CAAC,CAAC;QACjE,GAAG,EAAE,KAAK;QACV,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,YAAY,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,2BAA2B;QACtE,YAAY,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,sCAAsC;QAChF,YAAY,EAAE,KAAK;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC;KAC/B,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC;QAC5C,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,KAAK,CAAC;QACrC,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE;KAC5B,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,CAAC;QAC5B,OAAO,EAAE,YAAY;QACrB,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;KACtB,CAAC,CAAC;IAEH,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC;QAC3C,GAAG,EAAE,KAAK;QACV,KAAK,EAAE,KAAK;QACZ,KAAK,EAAE,KAAK;KACb,CAAC,CAAC;IAEH,OAAO;QACL,UAAU;QACV,OAAO;QACP,IAAI;QACJ,cAAc;QACd,OAAO;QACP,YAAY;QACZ,WAAW;QACX,iBAAiB;QACjB,cAAc;QACd,gBAAgB;KACjB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC\"}","dts":{"name":"undefined/placeholder/src/components/tabs/useTabs.d.ts","writeByteOrderMark":false,"text":"import React from 'react';\nimport { TabsProps as TabsPropsMui } from '@mui/material';\nimport { TabProps as TabPropsMui } from '@mui/material';\nimport { TabData, TabsProps } from './tabs.types';\ndeclare const useTabs: (props: TabsProps) => {\n DeleteIcon: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null;\n AddIcon: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null;\n tabs: TabData[];\n showDeleteIcon: (index: number) => boolean;\n addable: boolean;\n getTabsProps: () => TabsPropsMui;\n getTabProps: (tab: TabData, index: number) => TabPropsMui;\n getDeleteTabProps: (index: number) => {\n onClick: () => void;\n style: {\n fontSize: string;\n };\n };\n getAddTabProps: () => {\n onClick: () => void;\n sx: {\n width: string;\n };\n };\n getTabPanelProps: (index: number) => {\n key: number;\n value: number | null;\n index: number;\n };\n};\nexport default useTabs;\n"}} |
1 change: 1 addition & 0 deletions
1
...e2e6c906dbb08291bce4750abc3bc3f1a247e/code/cache/c4991173bc6af570ab0302a6cd0bdc775304ea62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"code":"import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Tab } from '@mui/material';\nimport IconButton from '@mui/material/IconButton';\nimport TabsMui from '@mui/material/Tabs';\nimport TabPanel from '../tabPanel/tabPanel';\nimport useTabs from './useTabs';\nconst Tabs = (props) => {\n const { AddIcon, DeleteIcon, addable, tabs, getTabsProps, getTabProps, getDeleteTabProps, showDeleteIcon, getAddTabProps, getTabPanelProps, } = useTabs(props);\n return (_jsxs(\"div\", { children: [_jsxs(TabsMui, Object.assign({}, getTabsProps(), { children: [tabs.map((tab, index) => (_jsx(Tab, Object.assign({}, getTabProps(tab, index), { icon: _jsx(\"span\", Object.assign({}, getDeleteTabProps(index), { children: showDeleteIcon(index) && DeleteIcon })) })))), addable && _jsx(IconButton, Object.assign({}, getAddTabProps(), { children: \"AddIcon\" }))] })), tabs.map((tab, index) => (_jsx(TabPanel, Object.assign({}, getTabPanelProps(index), { children: tab.chidlren }))))] }));\n};\nexport default Tabs;\n//# sourceMappingURL=tabs.js.map","references":["/home/mrbadri/code/startup/mui-builder/node_modules/@types/react/index.d.ts","/home/mrbadri/code/startup/mui-builder/node_modules/@mui/material/index.d.ts","/home/mrbadri/code/startup/mui-builder/node_modules/@mui/material/IconButton/index.d.ts","/home/mrbadri/code/startup/mui-builder/node_modules/@mui/material/Tabs/index.d.ts","/home/mrbadri/code/startup/mui-builder/packages/tab/src/components/tabs/tabs.types.ts","/home/mrbadri/code/startup/mui-builder/packages/tab/src/components/tabPanel/tabPanel.tsx","/home/mrbadri/code/startup/mui-builder/packages/tab/src/components/tabs/useTabs.tsx"],"map":"{\"version\":3,\"file\":\"tabs.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../packages/tab/src/components/tabs/tabs.tsx\"],\"names\":[],\"mappings\":\";AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,OAAO,MAAM,oBAAoB,CAAC;AAIzC,OAAO,QAAQ,MAAM,sBAAsB,CAAC;AAC5C,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,MAAM,IAAI,GAAwB,CAAC,KAAK,EAAE,EAAE;IAC1C,MAAM,EACJ,OAAO,EACP,UAAU,EACV,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,gBAAgB,GACjB,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAEnB,OAAO,CACL,0BACE,MAAC,OAAO,oBAAK,YAAY,EAAE,eAExB,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,KAAC,GAAG,oBACE,WAAW,CAAC,GAAG,EAAE,KAAK,CAAC,IAC3B,IAAI,EACF,+BAAU,iBAAiB,CAAC,KAAK,CAAC,cAC/B,cAAc,CAAC,KAAK,CAAC,IAAI,UAAU,IAC/B,IAET,CACH,CAAC,EAED,OAAO,IAAI,KAAC,UAAU,oBAAK,cAAc,EAAE,2BAAsB,KAC1D,EAGT,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,KAAC,QAAQ,oBAAK,gBAAgB,CAAC,KAAK,CAAC,cAAG,GAAG,CAAC,QAAQ,IAAY,CACjE,CAAC,IACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,IAAI,CAAC\"}","dts":{"name":"undefined/placeholder/src/components/tabs/tabs.d.ts","writeByteOrderMark":false,"text":"import React from 'react';\nimport { TabsProps } from './tabs.types';\ndeclare const Tabs: React.FC<TabsProps>;\nexport default Tabs;\n"}} |
1 change: 1 addition & 0 deletions
1
...e2e6c906dbb08291bce4750abc3bc3f1a247e/code/cache/e78338eee934bec41c37b8453fe8e3eecde21a34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"code":"const useTabPanel = (props) => {\n const { children, value, index } = props;\n const show = value === index;\n const getContainerProps = () => ({\n role: 'tabpanel',\n hidden: value !== index,\n id: `tabpanel-${index}`,\n 'aria-labelledby': `tab-${index}`,\n });\n return {\n show,\n children,\n getContainerProps,\n };\n};\nexport default useTabPanel;\n//# sourceMappingURL=useTabPanel.js.map","references":["/home/mrbadri/code/startup/mui-builder/packages/tab/src/components/tabPanel/tabPanel.types.ts"],"map":"{\"version\":3,\"file\":\"useTabPanel.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../packages/tab/src/components/tabPanel/useTabPanel.ts\"],\"names\":[],\"mappings\":\"AAEA,MAAM,WAAW,GAAG,CAAC,KAAoB,EAAE,EAAE;IAC3C,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAEzC,MAAM,IAAI,GAAG,KAAK,KAAK,KAAK,CAAC;IAE7B,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,CAAC;QAC/B,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,KAAK,KAAK,KAAK;QACvB,EAAE,EAAE,YAAY,KAAK,EAAE;QACvB,iBAAiB,EAAE,OAAO,KAAK,EAAE;KAClC,CAAC,CAAC;IAEH,OAAO;QACL,IAAI;QACJ,QAAQ;QACR,iBAAiB;KAClB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC\"}","dts":{"name":"undefined/placeholder/src/components/tabPanel/useTabPanel.d.ts","writeByteOrderMark":false,"text":"/// <reference types=\"react\" />\nimport { TabPanelProps } from './tabPanel.types';\ndeclare const useTabPanel: (props: TabPanelProps) => {\n show: boolean;\n children: import(\"react\").ReactNode;\n getContainerProps: () => {\n role: string;\n hidden: boolean;\n id: string;\n 'aria-labelledby': string;\n };\n};\nexport default useTabPanel;\n"}} |
1 change: 1 addition & 0 deletions
1
...e2e6c906dbb08291bce4750abc3bc3f1a247e/code/cache/efc471f821cc1b21fded2694ae958bc2e01cd660
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"code":"export {};\n//# sourceMappingURL=tabs.types.js.map","references":["/home/mrbadri/code/startup/mui-builder/node_modules/@types/react/index.d.ts","/home/mrbadri/code/startup/mui-builder/node_modules/@mui/material/index.d.ts"],"map":"{\"version\":3,\"file\":\"tabs.types.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../packages/tab/src/components/tabs/tabs.types.ts\"],\"names\":[],\"mappings\":\"\"}","dts":{"name":"undefined/placeholder/src/components/tabs/tabs.types.d.ts","writeByteOrderMark":false,"text":"import { ReactNode } from 'react';\nimport { TabProps as TabPropsMui } from '@mui/material';\nexport type TabData = {\n label: string;\n chidlren: ReactNode;\n};\nexport type TabProps = TabPropsMui & {\n tab: TabData;\n index: number;\n setTabs: React.Dispatch<React.SetStateAction<TabData[]>>;\n tabs: TabData[];\n value: number | null;\n setValue: React.Dispatch<React.SetStateAction<number | null>>;\n};\nexport type TabsProps = {\n tabs: TabData[];\n setTabs: React.Dispatch<React.SetStateAction<TabData[]>>;\n onAdd?: () => void;\n addable?: boolean;\n AddIcon?: ReactNode;\n DeleteIcon?: ReactNode;\n};\n"}} |
1 change: 1 addition & 0 deletions
1
...1bce4750abc3bc3f1a247e/semanticDiagnostics/cache/0a89e0bf5710339b96be394ca605a861d0d4aa0a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
...1bce4750abc3bc3f1a247e/semanticDiagnostics/cache/826dabae83d098196527cd62803beb2d2c8756c9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
...1bce4750abc3bc3f1a247e/semanticDiagnostics/cache/a31b7651379729dbe231342c728ab809a3333ced
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
...1bce4750abc3bc3f1a247e/semanticDiagnostics/cache/c3b7651cfa18a9b0756773ba11e1fcd8d0bdd7cf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
...1bce4750abc3bc3f1a247e/semanticDiagnostics/cache/c4991173bc6af570ab0302a6cd0bdc775304ea62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
...1bce4750abc3bc3f1a247e/semanticDiagnostics/cache/e78338eee934bec41c37b8453fe8e3eecde21a34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
...1bce4750abc3bc3f1a247e/semanticDiagnostics/cache/efc471f821cc1b21fded2694ae958bc2e01cd660
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
...bce4750abc3bc3f1a247e/syntacticDiagnostics/cache/0a89e0bf5710339b96be394ca605a861d0d4aa0a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
...bce4750abc3bc3f1a247e/syntacticDiagnostics/cache/826dabae83d098196527cd62803beb2d2c8756c9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
...bce4750abc3bc3f1a247e/syntacticDiagnostics/cache/a31b7651379729dbe231342c728ab809a3333ced
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
...bce4750abc3bc3f1a247e/syntacticDiagnostics/cache/c3b7651cfa18a9b0756773ba11e1fcd8d0bdd7cf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
...bce4750abc3bc3f1a247e/syntacticDiagnostics/cache/c4991173bc6af570ab0302a6cd0bdc775304ea62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
...bce4750abc3bc3f1a247e/syntacticDiagnostics/cache/e78338eee934bec41c37b8453fe8e3eecde21a34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
1 change: 1 addition & 0 deletions
1
...bce4750abc3bc3f1a247e/syntacticDiagnostics/cache/efc471f821cc1b21fded2694ae958bc2e01cd660
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
Empty file.
1 change: 1 addition & 0 deletions
1
...29cb63a9a47b24c45a752002758c608b9438d/code/cache/00b83df907579092d525a2fa29c7d9b27a2165ca
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"code":"export {};\n//# sourceMappingURL=validation.types.js.map","references":["/home/mrbadri/code/startup/mui-builder/node_modules/react-hook-form/dist/index.d.ts"],"map":"{\"version\":3,\"file\":\"validation.types.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../../../packages/core/src/modules/form/src/types/validation.types.ts\"],\"names\":[],\"mappings\":\"\"}","dts":{"name":"undefined/placeholder/src/modules/form/src/types/validation.types.d.ts","writeByteOrderMark":false,"text":"import { FieldPath, FieldPathValue, FieldValues, RegisterOptions, ValidateResult } from 'react-hook-form';\nexport type Validate = (value: FieldPathValue<FieldValues, FieldPath<FieldValues>>, formValues: FieldValues) => ValidateResult | Promise<ValidateResult>;\nexport type MainRule = Omit<RegisterOptions<FieldValues, string>, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'> | undefined;\nexport type Rule = Omit<MainRule, 'validate'> & {\n validate?: string | Validate;\n};\n"}} |
Oops, something went wrong.