pixelize-design-library 2.1.18 → 2.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build.yml +31 -0
- package/dist/index.d.mts +1468 -0
- package/dist/index.d.ts +1468 -55
- package/dist/index.js +263 -148
- package/dist/index.mjs +263 -0
- package/package.json +24 -10
- package/src/Components/Accordion/Accordion.tsx +59 -0
- package/src/Components/Accordion/AccordionProps.tsx +22 -0
- package/src/Components/AlertDialog/AlertDialog.tsx +69 -0
- package/{dist/Components/AlertDialog/AlertDialogProps.d.ts → src/Components/AlertDialog/AlertDialogProps.tsx} +9 -2
- package/src/Components/Apexcharts/ApexBarChart/ApexBarChart.stories.tsx +42 -0
- package/src/Components/Apexcharts/ApexBarChart/ApexBarChart.tsx +80 -0
- package/src/Components/Apexcharts/ApexBarChart/ApexBarChartProps.tsx +19 -0
- package/src/Components/Apexcharts/ApexPieChart/ApexPieChart.stories.tsx +34 -0
- package/src/Components/Apexcharts/ApexPieChart/ApexPieChart.tsx +42 -0
- package/src/Components/Apexcharts/ApexPieChart/ApexPieChartProps.tsx +42 -0
- package/src/Components/Breadcrumbs/Breadcrumbs.stories.tsx +27 -0
- package/src/Components/Breadcrumbs/Breadcrumbs.tsx +42 -0
- package/{dist/Components/Breadcrumbs/BreadcrumbsProps.d.ts → src/Components/Breadcrumbs/BreadcrumbsProps.tsx} +2 -1
- package/src/Components/Button/Button.stories.tsx +33 -0
- package/src/Components/Button/Button.styles.ts +104 -0
- package/src/Components/Button/Button.tsx +49 -0
- package/src/Components/Button/ButtonProps.tsx +25 -0
- package/src/Components/ButtonGroupIcon/ButtonGoupIconProps.tsx +46 -0
- package/src/Components/ButtonGroupIcon/ButtonGroupIcon.stories.tsx +37 -0
- package/src/Components/ButtonGroupIcon/ButtonGroupIcon.tsx +159 -0
- package/src/Components/Buttons/Buttons.tsx +16 -0
- package/{dist/Components/Buttons/ButtonsProps.d.ts → src/Components/Buttons/ButtonsProps.ts} +1 -1
- package/src/Components/Card/Card.tsx +35 -0
- package/src/Components/Card/CardProps.tsx +41 -0
- package/src/Components/Checkbox/Checkbox.stories.tsx +46 -0
- package/src/Components/Checkbox/Checkbox.styles.ts +56 -0
- package/src/Components/Checkbox/Checkbox.tsx +68 -0
- package/src/Components/Checkbox/CheckboxProps.tsx +42 -0
- package/src/Components/Common/ErrorComponent.tsx +16 -0
- package/src/Components/Common/ErrorMessage.tsx +22 -0
- package/src/Components/Common/FormLabel.tsx +48 -0
- package/src/Components/Common/HelperText.tsx +14 -0
- package/src/Components/Common/Label.tsx +12 -0
- package/src/Components/ContactForm/ContactForm.tsx +250 -0
- package/src/Components/ContactForm/ContactFormProps.tsx +10 -0
- package/src/Components/DatePicker/DatePicker.tsx +378 -0
- package/src/Components/DatePicker/DatePickerProps.tsx +48 -0
- package/src/Components/DatePicker/TimePicker.tsx +112 -0
- package/src/Components/Divider/Divider.tsx +17 -0
- package/src/Components/Drawer/Drawer.tsx +66 -0
- package/src/Components/Drawer/DrawerProps.tsx +11 -0
- package/src/Components/Dropdown/DropDown.tsx +189 -0
- package/src/Components/Dropdown/DropdownProps.tsx +26 -0
- package/src/Components/Editor/Editor.tsx +23 -0
- package/src/Components/Editor/EditorProps.tsx +8 -0
- package/src/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.tsx +78 -0
- package/src/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtpProps.tsx +12 -0
- package/src/Components/FileUpload/FileUpload.tsx +282 -0
- package/src/Components/FileUpload/FileUploadProps.tsx +34 -0
- package/src/Components/FileUpload/constants.ts +30 -0
- package/src/Components/Form/FormWrapper.tsx +47 -0
- package/src/Components/Header/Header.tsx +92 -0
- package/src/Components/Header/HeaderActions.tsx +96 -0
- package/src/Components/Header/HeaderProps.ts +72 -0
- package/src/Components/Header/components/desktopMenu.tsx +116 -0
- package/src/Components/Header/components/mobileMenu.tsx +99 -0
- package/src/Components/Input/Input/Input.tsx +56 -0
- package/{dist/Components/Input/Input/InputProps.d.ts → src/Components/Input/Input/InputProps.tsx} +2 -1
- package/src/Components/Input/TextInput.stories.tsx +46 -0
- package/{dist/Components/Input/TextInput.styles.js → src/Components/Input/TextInput.styles.ts} +20 -19
- package/src/Components/Input/TextInput.tsx +112 -0
- package/{dist/Components/Input/TextInputProps.d.ts → src/Components/Input/TextInputProps.tsx} +21 -2
- package/src/Components/InputTextArea/InputTextArea.stories.tsx +49 -0
- package/src/Components/InputTextArea/InputTextArea.tsx +54 -0
- package/{dist/Components/InputTextArea/InputTextAreaProps.d.ts → src/Components/InputTextArea/InputTextAreaProps.tsx} +2 -1
- package/src/Components/KanbanBoard/AccountCard.tsx +121 -0
- package/src/Components/KanbanBoard/AccountRow.tsx +35 -0
- package/src/Components/KanbanBoard/KanbanActions/KanbanActions.tsx +37 -0
- package/src/Components/KanbanBoard/KanbanBoard.tsx +185 -0
- package/src/Components/KanbanBoard/KanbanBoardProps.ts +34 -0
- package/src/Components/Loading/Loading.stories.tsx +26 -0
- package/src/Components/Loading/Loading.tsx +80 -0
- package/src/Components/Loading/LoadingProps.tsx +5 -0
- package/src/Components/Modal/Modal.stories.tsx +107 -0
- package/src/Components/Modal/Modal.tsx +107 -0
- package/src/Components/Modal/ModalProps.tsx +22 -0
- package/src/Components/MultiSelect/MultiSelect.tsx +154 -0
- package/src/Components/MultiSelect/MultiSelectProps.tsx +20 -0
- package/src/Components/NavigationBar/NavBar.stories.tsx +27 -0
- package/src/Components/NavigationBar/NavigationBar.tsx +125 -0
- package/src/Components/NavigationBar/NavigationBarProps.tsx +19 -0
- package/src/Components/NoteTextArea/NoteTextArea.tsx +409 -0
- package/src/Components/NoteTextArea/NoteTextAreaProps.tsx +22 -0
- package/src/Components/NumberInput/NumberInput.stories.tsx +32 -0
- package/src/Components/NumberInput/NumberInput.tsx +63 -0
- package/src/Components/NumberInput/NumberInputProps.tsx +28 -0
- package/src/Components/PinInput/PinInput.stories.tsx +41 -0
- package/src/Components/PinInput/PinInput.tsx +49 -0
- package/src/Components/PinInput/PinInputProps.tsx +33 -0
- package/src/Components/PinInputs/PinInputs.tsx +63 -0
- package/{dist/Components/PinInputs/PinInputsProps.d.ts → src/Components/PinInputs/PinInputsProps.tsx} +1 -1
- package/src/Components/ProductCard/ProductCard.tsx +77 -0
- package/{dist/Components/ProductCard/ProductCardProps.d.ts → src/Components/ProductCard/ProductCardProps.tsx} +15 -14
- package/src/Components/ProductCard/ProductLabel.tsx +13 -0
- package/src/Components/ProductCard/ProductPrice.tsx +177 -0
- package/src/Components/ProductCard/ProductReview.tsx +37 -0
- package/src/Components/ProductCard/ProductTags.tsx +57 -0
- package/src/Components/ProfileCard/ProfileCard.stories.tsx +31 -0
- package/src/Components/ProfileCard/ProfileCard.tsx +97 -0
- package/src/Components/ProfileCard/ProfileCardProps.tsx +39 -0
- package/src/Components/ProfilePhotoViewer/ProfilePhotoViewer.stories.tsx +26 -0
- package/src/Components/ProfilePhotoViewer/ProfilePhotoViewer.tsx +177 -0
- package/src/Components/ProfilePhotoViewer/ProfilePhotoViewerProps.tsx +18 -0
- package/src/Components/ProgressBar/ProgressBar.stories.tsx +48 -0
- package/src/Components/ProgressBar/ProgressBar.tsx +31 -0
- package/{dist/Components/ProgressBar/ProgressBarProps.d.ts → src/Components/ProgressBar/ProgressBarProps.tsx} +6 -5
- package/src/Components/RadioButton/RadioButton.stories.tsx +47 -0
- package/src/Components/RadioButton/RadioButton.tsx +78 -0
- package/src/Components/RadioButton/RadioButtonProps.tsx +10 -0
- package/src/Components/Reorder/Reorder.tsx +121 -0
- package/src/Components/Reorder/ReorderProps.tsx +11 -0
- package/src/Components/Search/Search.tsx +80 -0
- package/src/Components/Search/SearchProps.tsx +7 -0
- package/src/Components/SearchSelect/SearchSelect.tsx +525 -0
- package/src/Components/SearchSelect/SearchSelectProps.tsx +60 -0
- package/src/Components/SearchSelect/SelectTruncatedLabel.tsx +31 -0
- package/src/Components/Select/Select.stories.tsx +59 -0
- package/src/Components/Select/Select.styles.ts +97 -0
- package/src/Components/Select/Select.tsx +89 -0
- package/src/Components/Select/SelectProps.tsx +37 -0
- package/src/Components/SelectSearch/SelectSearch.tsx +447 -0
- package/src/Components/SelectSearch/SelectSearchProps.tsx +43 -0
- package/src/Components/SideBar/SideBar.tsx +206 -0
- package/src/Components/SideBar/SideBarProps.tsx +31 -0
- package/src/Components/SideBar/Sidebar.stories.tsx +80 -0
- package/src/Components/SideBar/components/MenuItemBox.tsx +217 -0
- package/src/Components/SideBar/components/MenuItems.tsx +29 -0
- package/src/Components/SideBar/components/MenuPopoverContent.tsx +98 -0
- package/src/Components/SideBar/components/TextTruncation.tsx +76 -0
- package/src/Components/Skeletons/Skeleton.stories.tsx +65 -0
- package/src/Components/Skeletons/SkeletonProps.tsx +23 -0
- package/src/Components/Skeletons/Skeletons.tsx +51 -0
- package/src/Components/Slider/Slider.tsx +121 -0
- package/src/Components/Switch/Switch.tsx +104 -0
- package/src/Components/Switch/SwitchProps.tsx +28 -0
- package/src/Components/Table/Components/HeaderActions.tsx +79 -0
- package/src/Components/Table/Components/Pagination.tsx +101 -0
- package/src/Components/Table/Components/TableActions.tsx +75 -0
- package/src/Components/Table/Components/TableBody.tsx +299 -0
- package/src/Components/Table/Components/TableFilters.tsx +77 -0
- package/src/Components/Table/Components/TableHeader.tsx +314 -0
- package/src/Components/Table/Components/TableLoading.tsx +83 -0
- package/src/Components/Table/Components/TableSearch.tsx +84 -0
- package/src/Components/Table/Components/useDebounce.ts +31 -0
- package/src/Components/Table/Components/useTable.ts +220 -0
- package/src/Components/Table/Table.stories.tsx +48 -0
- package/src/Components/Table/Table.tsx +258 -0
- package/src/Components/Table/TableProps.tsx +163 -0
- package/src/Components/Table/TableSettings/ManageColumns.tsx +148 -0
- package/src/Components/Table/TableSettings/TableSettings.tsx +153 -0
- package/{dist/Components/Table/TableToDo.js → src/Components/Table/TableToDo.tsx} +105 -100
- package/src/Components/Tag/Tag.styles.tsx +56 -0
- package/src/Components/Tag/Tag.tsx +68 -0
- package/src/Components/Timeline/Timeline.tsx +310 -0
- package/src/Components/Timeline/TimelineProps.tsx +22 -0
- package/src/Components/Toaster/Toaster.stories.tsx +60 -0
- package/src/Components/Toaster/Toaster.tsx +99 -0
- package/{dist/Components/Toaster/ToasterProps.d.ts → src/Components/Toaster/ToasterProps.tsx} +9 -6
- package/src/Components/Toggle/TableToggle.tsx +68 -0
- package/{dist/Components/Toggle/TableToggleProps.d.ts → src/Components/Toggle/TableToggleProps.ts} +3 -2
- package/src/Components/ToolTip/ToolTip.stories.tsx +38 -0
- package/src/Components/ToolTip/ToolTip.tsx +62 -0
- package/src/Components/ToolTip/ToolTipProps.tsx +46 -0
- package/src/Components/Trail/EditableCell.tsx +116 -0
- package/src/Components/Trail/SelectAllCheckbox.tsx +22 -0
- package/{dist/Components/Trail/TrailWorks.js → src/Components/Trail/TrailWorks.tsx} +108 -65
- package/src/Components/Trail/data.ts +42 -0
- package/src/Constants/Sidebar.ts +39 -0
- package/src/Hooks/usePreferences.ts +105 -0
- package/{dist/Theme/Dark/theme.js → src/Theme/Dark/theme.ts} +74 -79
- package/src/Theme/Default/palette.ts +373 -0
- package/src/Theme/Default/theme.ts +16 -0
- package/src/Theme/Meadow/palette.ts +372 -0
- package/src/Theme/Meadow/theme.ts +17 -0
- package/src/Theme/Radiant/palette.ts +372 -0
- package/src/Theme/Radiant/theme.ts +17 -0
- package/src/Theme/Skyline/palette.ts +372 -0
- package/src/Theme/Skyline/theme.ts +17 -0
- package/{dist/Theme/common.js → src/Theme/common.ts} +30 -22
- package/src/Theme/componentStyles.ts +13 -0
- package/src/Theme/fonts.ts +41 -0
- package/{dist/Theme/index.d.ts → src/Theme/index.ts} +8 -6
- package/src/Theme/space.ts +34 -0
- package/src/Theme/theme.ts +9 -0
- package/src/Theme/themeProps.ts +477 -0
- package/src/Theme/useCustomTheme.ts +6 -0
- package/src/Utils/table.ts +200 -0
- package/src/index.ts +146 -0
- package/src/types/pixelize-design-library.d.ts +4 -0
- package/src/withTheme.tsx +20 -0
- package/tsconfig.json +23 -0
- package/dist/App.d.ts +0 -4
- package/dist/App.js +0 -158
- package/dist/Assets/defaultLogo.d.ts +0 -3
- package/dist/Assets/defaultLogo.js +0 -15
- package/dist/Components/Accordion/Accordion.d.ts +0 -4
- package/dist/Components/Accordion/Accordion.js +0 -40
- package/dist/Components/Accordion/AccordionProps.d.ts +0 -17
- package/dist/Components/Accordion/AccordionProps.js +0 -2
- package/dist/Components/AlertDialog/AlertDialog.d.ts +0 -4
- package/dist/Components/AlertDialog/AlertDialog.js +0 -20
- package/dist/Components/AlertDialog/AlertDialogProps.js +0 -2
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.d.ts +0 -3
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.js +0 -64
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.stories.d.ts +0 -1
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.stories.js +0 -6
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChartProps.d.ts +0 -19
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChartProps.js +0 -2
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.d.ts +0 -3
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.js +0 -29
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.stories.d.ts +0 -1
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.stories.js +0 -6
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChartProps.d.ts +0 -41
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChartProps.js +0 -2
- package/dist/Components/Breadcrumbs/Breadcrumbs.d.ts +0 -3
- package/dist/Components/Breadcrumbs/Breadcrumbs.js +0 -17
- package/dist/Components/Breadcrumbs/Breadcrumbs.stories.d.ts +0 -1
- package/dist/Components/Breadcrumbs/Breadcrumbs.stories.js +0 -6
- package/dist/Components/Breadcrumbs/BreadcrumbsProps.js +0 -2
- package/dist/Components/Button/Button.d.ts +0 -5
- package/dist/Components/Button/Button.js +0 -32
- package/dist/Components/Button/Button.stories.d.ts +0 -1
- package/dist/Components/Button/Button.stories.js +0 -6
- package/dist/Components/Button/Button.styles.d.ts +0 -2
- package/dist/Components/Button/Button.styles.js +0 -112
- package/dist/Components/Button/ButtonProps.d.ts +0 -13
- package/dist/Components/Button/ButtonProps.js +0 -2
- package/dist/Components/ButtonGroupIcon/ButtonGoupIconProps.d.ts +0 -33
- package/dist/Components/ButtonGroupIcon/ButtonGoupIconProps.js +0 -2
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.d.ts +0 -5
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.js +0 -86
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.stories.d.ts +0 -1
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.stories.js +0 -6
- package/dist/Components/Buttons/Buttons.d.ts +0 -4
- package/dist/Components/Buttons/Buttons.js +0 -11
- package/dist/Components/Buttons/ButtonsProps.js +0 -2
- package/dist/Components/Card/Card.d.ts +0 -3
- package/dist/Components/Card/Card.js +0 -12
- package/dist/Components/Card/CardProps.d.ts +0 -14
- package/dist/Components/Card/CardProps.js +0 -2
- package/dist/Components/Checkbox/Checkbox.d.ts +0 -3
- package/dist/Components/Checkbox/Checkbox.js +0 -20
- package/dist/Components/Checkbox/Checkbox.stories.d.ts +0 -1
- package/dist/Components/Checkbox/Checkbox.stories.js +0 -7
- package/dist/Components/Checkbox/Checkbox.styles.d.ts +0 -2
- package/dist/Components/Checkbox/Checkbox.styles.js +0 -54
- package/dist/Components/Checkbox/CheckboxProps.d.ts +0 -15
- package/dist/Components/Checkbox/CheckboxProps.js +0 -2
- package/dist/Components/Common/ErrorComponent.d.ts +0 -6
- package/dist/Components/Common/ErrorComponent.js +0 -16
- package/dist/Components/Common/ErrorMessage.d.ts +0 -5
- package/dist/Components/Common/ErrorMessage.js +0 -17
- package/dist/Components/Common/FormLabel.d.ts +0 -8
- package/dist/Components/Common/FormLabel.js +0 -22
- package/dist/Components/Common/HelperText.d.ts +0 -5
- package/dist/Components/Common/HelperText.js +0 -14
- package/dist/Components/Common/Label.d.ts +0 -7
- package/dist/Components/Common/Label.js +0 -13
- package/dist/Components/ContactForm/ContactForm.d.ts +0 -4
- package/dist/Components/ContactForm/ContactForm.js +0 -215
- package/dist/Components/ContactForm/ContactFormProps.d.ts +0 -9
- package/dist/Components/ContactForm/ContactFormProps.js +0 -2
- package/dist/Components/DatePicker/DatePicker.d.ts +0 -3
- package/dist/Components/DatePicker/DatePicker.js +0 -235
- package/dist/Components/DatePicker/DatePickerProps.d.ts +0 -42
- package/dist/Components/DatePicker/DatePickerProps.js +0 -2
- package/dist/Components/DatePicker/TimePicker.d.ts +0 -4
- package/dist/Components/DatePicker/TimePicker.js +0 -101
- package/dist/Components/Divider/Divider.d.ts +0 -3
- package/dist/Components/Divider/Divider.js +0 -14
- package/dist/Components/Drawer/Drawer.d.ts +0 -12
- package/dist/Components/Drawer/Drawer.js +0 -40
- package/dist/Components/Drawer/DrawerProps.d.ts +0 -8
- package/dist/Components/Drawer/DrawerProps.js +0 -2
- package/dist/Components/Dropdown/DropDown.d.ts +0 -4
- package/dist/Components/Dropdown/DropDown.js +0 -97
- package/dist/Components/Dropdown/DropdownProps.d.ts +0 -26
- package/dist/Components/Dropdown/DropdownProps.js +0 -2
- package/dist/Components/Editor/Editor.d.ts +0 -3
- package/dist/Components/Editor/Editor.js +0 -12
- package/dist/Components/Editor/EditorProps.d.ts +0 -5
- package/dist/Components/Editor/EditorProps.js +0 -2
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.d.ts +0 -3
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.js +0 -44
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtpProps.d.ts +0 -13
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtpProps.js +0 -2
- package/dist/Components/FileUpload/FileUpload.d.ts +0 -4
- package/dist/Components/FileUpload/FileUpload.js +0 -156
- package/dist/Components/FileUpload/FileUploadProps.d.ts +0 -11
- package/dist/Components/FileUpload/FileUploadProps.js +0 -2
- package/dist/Components/FileUpload/constants.d.ts +0 -3
- package/dist/Components/FileUpload/constants.js +0 -28
- package/dist/Components/Form/FormWrapper.d.ts +0 -7
- package/dist/Components/Form/FormWrapper.js +0 -19
- package/dist/Components/Header/Header.d.ts +0 -4
- package/dist/Components/Header/Header.js +0 -57
- package/dist/Components/Header/HeaderActions.d.ts +0 -23
- package/dist/Components/Header/HeaderActions.js +0 -37
- package/dist/Components/Header/HeaderProps.d.ts +0 -44
- package/dist/Components/Header/HeaderProps.js +0 -2
- package/dist/Components/Header/components/desktopMenu.d.ts +0 -4
- package/dist/Components/Header/components/desktopMenu.js +0 -33
- package/dist/Components/Header/components/mobileMenu.d.ts +0 -4
- package/dist/Components/Header/components/mobileMenu.js +0 -32
- package/dist/Components/Input/Input/Input.d.ts +0 -4
- package/dist/Components/Input/Input/Input.js +0 -45
- package/dist/Components/Input/Input/InputProps.js +0 -2
- package/dist/Components/Input/TextInput.d.ts +0 -4
- package/dist/Components/Input/TextInput.js +0 -68
- package/dist/Components/Input/TextInput.stories.d.ts +0 -1
- package/dist/Components/Input/TextInput.stories.js +0 -8
- package/dist/Components/Input/TextInput.styles.d.ts +0 -2
- package/dist/Components/Input/TextInputProps.js +0 -2
- package/dist/Components/InputTextArea/InputTextArea.d.ts +0 -3
- package/dist/Components/InputTextArea/InputTextArea.js +0 -16
- package/dist/Components/InputTextArea/InputTextArea.stories.d.ts +0 -1
- package/dist/Components/InputTextArea/InputTextArea.stories.js +0 -7
- package/dist/Components/InputTextArea/InputTextAreaProps.js +0 -2
- package/dist/Components/KaTable/CustomHeader.d.ts +0 -14
- package/dist/Components/KaTable/CustomHeader.js +0 -69
- package/dist/Components/KaTable/KaTable.d.ts +0 -13
- package/dist/Components/KaTable/KaTable.js +0 -111
- package/dist/Components/KaTable/KaTableProps.d.ts +0 -23
- package/dist/Components/KaTable/KaTableProps.js +0 -2
- package/dist/Components/KaTable/SelectionCell.d.ts +0 -8
- package/dist/Components/KaTable/SelectionCell.js +0 -38
- package/dist/Components/KaTable/SelectionHeader.d.ts +0 -3
- package/dist/Components/KaTable/SelectionHeader.js +0 -56
- package/dist/Components/KaTable/ka-table.css +0 -27
- package/dist/Components/KaTable/useMergedChildComponents.d.ts +0 -14
- package/dist/Components/KaTable/useMergedChildComponents.js +0 -224
- package/dist/Components/KanbanBoard/AccountCard.d.ts +0 -9
- package/dist/Components/KanbanBoard/AccountCard.js +0 -74
- package/dist/Components/KanbanBoard/AccountRow.d.ts +0 -6
- package/dist/Components/KanbanBoard/AccountRow.js +0 -20
- package/dist/Components/KanbanBoard/KanbanActions/KanbanActions.d.ts +0 -9
- package/dist/Components/KanbanBoard/KanbanActions/KanbanActions.js +0 -26
- package/dist/Components/KanbanBoard/KanbanBoard.d.ts +0 -4
- package/dist/Components/KanbanBoard/KanbanBoard.js +0 -120
- package/dist/Components/KanbanBoard/KanbanBoardProps.d.ts +0 -27
- package/dist/Components/KanbanBoard/KanbanBoardProps.js +0 -2
- package/dist/Components/Loading/Loading.d.ts +0 -3
- package/dist/Components/Loading/Loading.js +0 -36
- package/dist/Components/Loading/Loading.stories.d.ts +0 -1
- package/dist/Components/Loading/Loading.stories.js +0 -7
- package/dist/Components/Loading/LoadingProps.d.ts +0 -5
- package/dist/Components/Loading/LoadingProps.js +0 -2
- package/dist/Components/Modal/Modal.d.ts +0 -12
- package/dist/Components/Modal/Modal.js +0 -50
- package/dist/Components/Modal/Modal.stories.d.ts +0 -1
- package/dist/Components/Modal/Modal.stories.js +0 -7
- package/dist/Components/Modal/ModalProps.d.ts +0 -11
- package/dist/Components/Modal/ModalProps.js +0 -2
- package/dist/Components/MultiSelect/MultiSelect.d.ts +0 -3
- package/dist/Components/MultiSelect/MultiSelect.js +0 -115
- package/dist/Components/MultiSelect/MultiSelectProps.d.ts +0 -20
- package/dist/Components/MultiSelect/MultiSelectProps.js +0 -2
- package/dist/Components/NavigationBar/NavBar.stories.d.ts +0 -1
- package/dist/Components/NavigationBar/NavBar.stories.js +0 -3
- package/dist/Components/NavigationBar/NavigationBar.d.ts +0 -3
- package/dist/Components/NavigationBar/NavigationBar.js +0 -50
- package/dist/Components/NavigationBar/NavigationBarProps.d.ts +0 -19
- package/dist/Components/NavigationBar/NavigationBarProps.js +0 -2
- package/dist/Components/NoteTextArea/NoteTextArea.d.ts +0 -3
- package/dist/Components/NoteTextArea/NoteTextArea.js +0 -274
- package/dist/Components/NoteTextArea/NoteTextAreaProps.d.ts +0 -16
- package/dist/Components/NoteTextArea/NoteTextAreaProps.js +0 -2
- package/dist/Components/NumberInput/NumberInput.d.ts +0 -3
- package/dist/Components/NumberInput/NumberInput.js +0 -16
- package/dist/Components/NumberInput/NumberInput.stories.d.ts +0 -1
- package/dist/Components/NumberInput/NumberInput.stories.js +0 -5
- package/dist/Components/NumberInput/NumberInputProps.d.ts +0 -12
- package/dist/Components/NumberInput/NumberInputProps.js +0 -2
- package/dist/Components/PinInput/PinInput.d.ts +0 -3
- package/dist/Components/PinInput/PinInput.js +0 -15
- package/dist/Components/PinInput/PinInput.stories.d.ts +0 -1
- package/dist/Components/PinInput/PinInput.stories.js +0 -6
- package/dist/Components/PinInput/PinInputProps.d.ts +0 -9
- package/dist/Components/PinInput/PinInputProps.js +0 -2
- package/dist/Components/PinInputs/PinInputs.d.ts +0 -4
- package/dist/Components/PinInputs/PinInputs.js +0 -71
- package/dist/Components/PinInputs/PinInputsProps.js +0 -2
- package/dist/Components/ProductCard/ProductCard.d.ts +0 -4
- package/dist/Components/ProductCard/ProductCard.js +0 -51
- package/dist/Components/ProductCard/ProductCardProps.js +0 -2
- package/dist/Components/ProductCard/ProductLabel.d.ts +0 -6
- package/dist/Components/ProductCard/ProductLabel.js +0 -14
- package/dist/Components/ProductCard/ProductPrice.d.ts +0 -7
- package/dist/Components/ProductCard/ProductPrice.js +0 -88
- package/dist/Components/ProductCard/ProductReview.d.ts +0 -7
- package/dist/Components/ProductCard/ProductReview.js +0 -23
- package/dist/Components/ProductCard/ProductTags.d.ts +0 -7
- package/dist/Components/ProductCard/ProductTags.js +0 -30
- package/dist/Components/ProfileCard/ProfileCard.d.ts +0 -12
- package/dist/Components/ProfileCard/ProfileCard.js +0 -57
- package/dist/Components/ProfileCard/ProfileCard.stories.d.ts +0 -1
- package/dist/Components/ProfileCard/ProfileCard.stories.js +0 -6
- package/dist/Components/ProfileCard/ProfileCardProps.d.ts +0 -16
- package/dist/Components/ProfileCard/ProfileCardProps.js +0 -2
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.d.ts +0 -3
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.js +0 -94
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.stories.d.ts +0 -1
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.stories.js +0 -6
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewerProps.d.ts +0 -19
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewerProps.js +0 -2
- package/dist/Components/ProgressBar/ProgressBar.d.ts +0 -3
- package/dist/Components/ProgressBar/ProgressBar.js +0 -12
- package/dist/Components/ProgressBar/ProgressBar.stories.d.ts +0 -1
- package/dist/Components/ProgressBar/ProgressBar.stories.js +0 -7
- package/dist/Components/ProgressBar/ProgressBarProps.js +0 -2
- package/dist/Components/RadioButton/RadioButton.d.ts +0 -5
- package/dist/Components/RadioButton/RadioButton.js +0 -31
- package/dist/Components/RadioButton/RadioButton.stories.d.ts +0 -1
- package/dist/Components/RadioButton/RadioButton.stories.js +0 -7
- package/dist/Components/RadioButton/RadioButtonProps.d.ts +0 -11
- package/dist/Components/RadioButton/RadioButtonProps.js +0 -2
- package/dist/Components/Reorder/Reorder.d.ts +0 -4
- package/dist/Components/Reorder/Reorder.js +0 -50
- package/dist/Components/Reorder/ReorderProps.d.ts +0 -10
- package/dist/Components/Reorder/ReorderProps.js +0 -2
- package/dist/Components/Search/Search.d.ts +0 -3
- package/dist/Components/Search/Search.js +0 -66
- package/dist/Components/Search/SearchProps.d.ts +0 -8
- package/dist/Components/Search/SearchProps.js +0 -2
- package/dist/Components/SearchSelect/SearchSelect.d.ts +0 -4
- package/dist/Components/SearchSelect/SearchSelect.js +0 -237
- package/dist/Components/SearchSelect/SearchSelectProps.d.ts +0 -60
- package/dist/Components/SearchSelect/SearchSelectProps.js +0 -2
- package/dist/Components/SearchSelect/SelectTruncatedLabel.d.ts +0 -6
- package/dist/Components/SearchSelect/SelectTruncatedLabel.js +0 -45
- package/dist/Components/Select/Select.d.ts +0 -3
- package/dist/Components/Select/Select.js +0 -54
- package/dist/Components/Select/Select.stories.d.ts +0 -1
- package/dist/Components/Select/Select.stories.js +0 -8
- package/dist/Components/Select/Select.styles.d.ts +0 -2
- package/dist/Components/Select/Select.styles.js +0 -98
- package/dist/Components/Select/SelectProps.d.ts +0 -20
- package/dist/Components/Select/SelectProps.js +0 -2
- package/dist/Components/SelectSearch/SelectSearch.d.ts +0 -3
- package/dist/Components/SelectSearch/SelectSearch.js +0 -239
- package/dist/Components/SelectSearch/SelectSearchProps.d.ts +0 -42
- package/dist/Components/SelectSearch/SelectSearchProps.js +0 -2
- package/dist/Components/SideBar/SideBar.d.ts +0 -3
- package/dist/Components/SideBar/SideBar.js +0 -55
- package/dist/Components/SideBar/SideBarProps.d.ts +0 -29
- package/dist/Components/SideBar/SideBarProps.js +0 -2
- package/dist/Components/SideBar/Sidebar.stories.d.ts +0 -1
- package/dist/Components/SideBar/Sidebar.stories.js +0 -7
- package/dist/Components/SideBar/components/MenuItemBox.d.ts +0 -11
- package/dist/Components/SideBar/components/MenuItemBox.js +0 -116
- package/dist/Components/SideBar/components/MenuItems.d.ts +0 -4
- package/dist/Components/SideBar/components/MenuItems.js +0 -13
- package/dist/Components/SideBar/components/MenuPopoverContent.d.ts +0 -9
- package/dist/Components/SideBar/components/MenuPopoverContent.js +0 -37
- package/dist/Components/SideBar/components/TextTruncation.d.ts +0 -8
- package/dist/Components/SideBar/components/TextTruncation.js +0 -77
- package/dist/Components/Skeletons/Skeleton.stories.d.ts +0 -1
- package/dist/Components/Skeletons/Skeleton.stories.js +0 -7
- package/dist/Components/Skeletons/SkeletonProps.d.ts +0 -4
- package/dist/Components/Skeletons/SkeletonProps.js +0 -2
- package/dist/Components/Skeletons/Skeletons.d.ts +0 -3
- package/dist/Components/Skeletons/Skeletons.js +0 -15
- package/dist/Components/Slider/Slider.d.ts +0 -8
- package/dist/Components/Slider/Slider.js +0 -57
- package/dist/Components/Switch/Switch.d.ts +0 -3
- package/dist/Components/Switch/Switch.js +0 -39
- package/dist/Components/Switch/SwitchProps.d.ts +0 -9
- package/dist/Components/Switch/SwitchProps.js +0 -2
- package/dist/Components/Table/Components/HeaderActions.d.ts +0 -7
- package/dist/Components/Table/Components/HeaderActions.js +0 -45
- package/dist/Components/Table/Components/Pagination.d.ts +0 -14
- package/dist/Components/Table/Components/Pagination.js +0 -32
- package/dist/Components/Table/Components/TableActions.d.ts +0 -3
- package/dist/Components/Table/Components/TableActions.js +0 -28
- package/dist/Components/Table/Components/TableBody.d.ts +0 -4
- package/dist/Components/Table/Components/TableBody.js +0 -140
- package/dist/Components/Table/Components/TableFilters.d.ts +0 -4
- package/dist/Components/Table/Components/TableFilters.js +0 -59
- package/dist/Components/Table/Components/TableHeader.d.ts +0 -4
- package/dist/Components/Table/Components/TableHeader.js +0 -147
- package/dist/Components/Table/Components/TableLoading.d.ts +0 -7
- package/dist/Components/Table/Components/TableLoading.js +0 -41
- package/dist/Components/Table/Components/TableSearch.d.ts +0 -6
- package/dist/Components/Table/Components/TableSearch.js +0 -60
- package/dist/Components/Table/Components/useDebounce.d.ts +0 -2
- package/dist/Components/Table/Components/useDebounce.js +0 -28
- package/dist/Components/Table/Components/useTable.d.ts +0 -46
- package/dist/Components/Table/Components/useTable.js +0 -168
- package/dist/Components/Table/Table.css +0 -16
- package/dist/Components/Table/Table.d.ts +0 -3
- package/dist/Components/Table/Table.js +0 -129
- package/dist/Components/Table/Table.stories.d.ts +0 -1
- package/dist/Components/Table/Table.stories.js +0 -9
- package/dist/Components/Table/TableProps.d.ts +0 -112
- package/dist/Components/Table/TableProps.js +0 -2
- package/dist/Components/Table/TableSettings/ManageColumns.d.ts +0 -10
- package/dist/Components/Table/TableSettings/ManageColumns.js +0 -107
- package/dist/Components/Table/TableSettings/TableSettings.d.ts +0 -7
- package/dist/Components/Table/TableSettings/TableSettings.js +0 -73
- package/dist/Components/Table/TableToDo.d.ts +0 -2
- package/dist/Components/Tag/Tag.d.ts +0 -12
- package/dist/Components/Tag/Tag.js +0 -21
- package/dist/Components/Tag/Tag.styles.d.ts +0 -2
- package/dist/Components/Tag/Tag.styles.js +0 -63
- package/dist/Components/Timeline/Timeline.d.ts +0 -4
- package/dist/Components/Timeline/Timeline.js +0 -166
- package/dist/Components/Timeline/TimelineProps.d.ts +0 -20
- package/dist/Components/Timeline/TimelineProps.js +0 -2
- package/dist/Components/Toaster/Toaster.d.ts +0 -4
- package/dist/Components/Toaster/Toaster.js +0 -86
- package/dist/Components/Toaster/Toaster.stories.d.ts +0 -1
- package/dist/Components/Toaster/Toaster.stories.js +0 -8
- package/dist/Components/Toaster/ToasterProps.js +0 -2
- package/dist/Components/Toggle/TableToggle.d.ts +0 -4
- package/dist/Components/Toggle/TableToggle.js +0 -60
- package/dist/Components/Toggle/TableToggleProps.js +0 -2
- package/dist/Components/ToolTip/ToolTip.d.ts +0 -3
- package/dist/Components/ToolTip/ToolTip.js +0 -12
- package/dist/Components/ToolTip/ToolTip.stories.d.ts +0 -1
- package/dist/Components/ToolTip/ToolTip.stories.js +0 -7
- package/dist/Components/ToolTip/ToolTipProps.d.ts +0 -7
- package/dist/Components/ToolTip/ToolTipProps.js +0 -2
- package/dist/Components/Trail/EditableCell.d.ts +0 -11
- package/dist/Components/Trail/EditableCell.js +0 -71
- package/dist/Components/Trail/SelectAllCheckbox.d.ts +0 -8
- package/dist/Components/Trail/SelectAllCheckbox.js +0 -13
- package/dist/Components/Trail/TrailWorks.d.ts +0 -3
- package/dist/Components/Trail/data.d.ts +0 -15
- package/dist/Components/Trail/data.js +0 -29
- package/dist/Constants/Sidebar.d.ts +0 -38
- package/dist/Constants/Sidebar.js +0 -42
- package/dist/Hooks/usePreferences.d.ts +0 -24
- package/dist/Hooks/usePreferences.js +0 -73
- package/dist/Layout.d.ts +0 -3
- package/dist/Layout.js +0 -269
- package/dist/Pages/KaTableExample.d.ts +0 -3
- package/dist/Pages/KaTableExample.js +0 -259
- package/dist/Pages/TInput.d.ts +0 -3
- package/dist/Pages/TInput.js +0 -46
- package/dist/Pages/accordion.d.ts +0 -3
- package/dist/Pages/accordion.js +0 -42
- package/dist/Pages/alertdialog.d.ts +0 -3
- package/dist/Pages/alertdialog.js +0 -44
- package/dist/Pages/button.d.ts +0 -3
- package/dist/Pages/button.js +0 -29
- package/dist/Pages/card.d.ts +0 -3
- package/dist/Pages/card.js +0 -48
- package/dist/Pages/chart.d.ts +0 -3
- package/dist/Pages/chart.js +0 -28
- package/dist/Pages/checkbox.d.ts +0 -3
- package/dist/Pages/checkbox.js +0 -12
- package/dist/Pages/contactForm.d.ts +0 -3
- package/dist/Pages/contactForm.js +0 -16
- package/dist/Pages/datePick.d.ts +0 -3
- package/dist/Pages/datePick.js +0 -70
- package/dist/Pages/drawer.d.ts +0 -3
- package/dist/Pages/drawer.js +0 -48
- package/dist/Pages/dropdown.d.ts +0 -3
- package/dist/Pages/dropdown.js +0 -24
- package/dist/Pages/editor.d.ts +0 -3
- package/dist/Pages/editor.js +0 -14
- package/dist/Pages/fileUpload.d.ts +0 -2
- package/dist/Pages/fileUpload.js +0 -65
- package/dist/Pages/input.d.ts +0 -3
- package/dist/Pages/input.js +0 -42
- package/dist/Pages/kanbanboard.d.ts +0 -3
- package/dist/Pages/kanbanboard.js +0 -115
- package/dist/Pages/modal.d.ts +0 -3
- package/dist/Pages/modal.js +0 -55
- package/dist/Pages/multiSelect.d.ts +0 -3
- package/dist/Pages/multiSelect.js +0 -45
- package/dist/Pages/noteArea.d.ts +0 -3
- package/dist/Pages/noteArea.js +0 -49
- package/dist/Pages/numberInput.d.ts +0 -3
- package/dist/Pages/numberInput.js +0 -39
- package/dist/Pages/photoViewer.d.ts +0 -3
- package/dist/Pages/photoViewer.js +0 -12
- package/dist/Pages/pinInputs.d.ts +0 -3
- package/dist/Pages/pinInputs.js +0 -12
- package/dist/Pages/productCaard.d.ts +0 -3
- package/dist/Pages/productCaard.js +0 -32
- package/dist/Pages/progressbar.d.ts +0 -3
- package/dist/Pages/progressbar.js +0 -12
- package/dist/Pages/radioButton.d.ts +0 -3
- package/dist/Pages/radioButton.js +0 -44
- package/dist/Pages/search.d.ts +0 -3
- package/dist/Pages/search.js +0 -44
- package/dist/Pages/searchSelect.d.ts +0 -3
- package/dist/Pages/searchSelect.js +0 -151
- package/dist/Pages/select.d.ts +0 -3
- package/dist/Pages/select.js +0 -43
- package/dist/Pages/selectSearch.d.ts +0 -3
- package/dist/Pages/selectSearch.js +0 -93
- package/dist/Pages/skeleton.d.ts +0 -3
- package/dist/Pages/skeleton.js +0 -22
- package/dist/Pages/switch.d.ts +0 -3
- package/dist/Pages/switch.js +0 -40
- package/dist/Pages/table.d.ts +0 -2
- package/dist/Pages/table.js +0 -144
- package/dist/Pages/textArea.d.ts +0 -3
- package/dist/Pages/textArea.js +0 -12
- package/dist/Pages/timeline.d.ts +0 -3
- package/dist/Pages/timeline.js +0 -74
- package/dist/Pages/tooltip.d.ts +0 -3
- package/dist/Pages/tooltip.js +0 -12
- package/dist/Pages/toster.d.ts +0 -3
- package/dist/Pages/toster.js +0 -63
- package/dist/Pages/verifyEmail.d.ts +0 -3
- package/dist/Pages/verifyEmail.js +0 -18
- package/dist/Theme/Dark/theme.d.ts +0 -2
- package/dist/Theme/Default/fonts.d.ts +0 -35
- package/dist/Theme/Default/fonts.js +0 -37
- package/dist/Theme/Default/palette.d.ts +0 -370
- package/dist/Theme/Default/palette.js +0 -372
- package/dist/Theme/Default/theme.d.ts +0 -2
- package/dist/Theme/Default/theme.js +0 -23
- package/dist/Theme/Meadow/palette.d.ts +0 -368
- package/dist/Theme/Meadow/palette.js +0 -356
- package/dist/Theme/Meadow/theme.d.ts +0 -2
- package/dist/Theme/Meadow/theme.js +0 -23
- package/dist/Theme/Radiant/palette.d.ts +0 -368
- package/dist/Theme/Radiant/palette.js +0 -356
- package/dist/Theme/Radiant/theme.d.ts +0 -2
- package/dist/Theme/Radiant/theme.js +0 -23
- package/dist/Theme/Skyline/palette.d.ts +0 -368
- package/dist/Theme/Skyline/palette.js +0 -356
- package/dist/Theme/Skyline/theme.d.ts +0 -2
- package/dist/Theme/Skyline/theme.js +0 -23
- package/dist/Theme/common.d.ts +0 -166
- package/dist/Theme/componentStyles.d.ts +0 -7
- package/dist/Theme/componentStyles.js +0 -15
- package/dist/Theme/fonts.d.ts +0 -34
- package/dist/Theme/fonts.js +0 -41
- package/dist/Theme/index.js +0 -20
- package/dist/Theme/space.d.ts +0 -33
- package/dist/Theme/space.js +0 -35
- package/dist/Theme/theme.d.ts +0 -2
- package/dist/Theme/theme.js +0 -9
- package/dist/Theme/themeProps.d.ts +0 -475
- package/dist/Theme/themeProps.js +0 -3
- package/dist/Theme/useCustomTheme.d.ts +0 -2
- package/dist/Theme/useCustomTheme.js +0 -8
- package/dist/Utils/table.d.ts +0 -36
- package/dist/Utils/table.js +0 -168
- package/dist/bootstrap.d.ts +0 -1
- package/dist/bootstrap.js +0 -14
- package/dist/withTheme.d.ts +0 -3
- package/dist/withTheme.js +0 -28
- /package/{dist → src}/Assets/defaultLogo.tsx +0 -0
- /package/{dist → src}/global.css +0 -0
- /package/{dist → src}/index.css +0 -0
|
@@ -0,0 +1,477 @@
|
|
|
1
|
+
import "@chakra-ui/react";
|
|
2
|
+
import { Theme as ChakraTheme } from "@chakra-ui/react";
|
|
3
|
+
|
|
4
|
+
export type CustomThemeProps = {
|
|
5
|
+
colors: {
|
|
6
|
+
primary: {
|
|
7
|
+
50: string;
|
|
8
|
+
100: string;
|
|
9
|
+
200: string;
|
|
10
|
+
300: string;
|
|
11
|
+
400: string;
|
|
12
|
+
500: string;
|
|
13
|
+
600: string;
|
|
14
|
+
700: string;
|
|
15
|
+
800: string;
|
|
16
|
+
900: string;
|
|
17
|
+
opacity: {
|
|
18
|
+
4: string,
|
|
19
|
+
8: string,
|
|
20
|
+
16: string,
|
|
21
|
+
24: string,
|
|
22
|
+
32: string,
|
|
23
|
+
40: string,
|
|
24
|
+
48: string,
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
secondary: {
|
|
28
|
+
50: string;
|
|
29
|
+
100: string;
|
|
30
|
+
200: string;
|
|
31
|
+
300: string;
|
|
32
|
+
400: string;
|
|
33
|
+
500: string;
|
|
34
|
+
600: string;
|
|
35
|
+
700: string;
|
|
36
|
+
800: string;
|
|
37
|
+
900: string;
|
|
38
|
+
opacity: {
|
|
39
|
+
4: string,
|
|
40
|
+
8: string,
|
|
41
|
+
16: string,
|
|
42
|
+
24: string,
|
|
43
|
+
32: string,
|
|
44
|
+
40: string,
|
|
45
|
+
48: string,
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
tertiary: {
|
|
49
|
+
50: string;
|
|
50
|
+
100: string;
|
|
51
|
+
200: string;
|
|
52
|
+
300: string;
|
|
53
|
+
400: string;
|
|
54
|
+
500: string;
|
|
55
|
+
600: string;
|
|
56
|
+
700: string;
|
|
57
|
+
800: string;
|
|
58
|
+
900: string;
|
|
59
|
+
opacity: {
|
|
60
|
+
4: string,
|
|
61
|
+
8: string,
|
|
62
|
+
16: string,
|
|
63
|
+
24: string,
|
|
64
|
+
32: string,
|
|
65
|
+
40: string,
|
|
66
|
+
48: string,
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
transparent: string;
|
|
70
|
+
black: string;
|
|
71
|
+
white: string;
|
|
72
|
+
semantic: {
|
|
73
|
+
success: {
|
|
74
|
+
50: string;
|
|
75
|
+
100: string;
|
|
76
|
+
200: string;
|
|
77
|
+
300: string;
|
|
78
|
+
400: string;
|
|
79
|
+
500: string;
|
|
80
|
+
600: string;
|
|
81
|
+
700: string;
|
|
82
|
+
800: string;
|
|
83
|
+
900: string;
|
|
84
|
+
};
|
|
85
|
+
error: {
|
|
86
|
+
50: string;
|
|
87
|
+
100: string;
|
|
88
|
+
200: string;
|
|
89
|
+
300: string;
|
|
90
|
+
400: string;
|
|
91
|
+
500: string;
|
|
92
|
+
600: string;
|
|
93
|
+
700: string;
|
|
94
|
+
800: string;
|
|
95
|
+
900: string;
|
|
96
|
+
};
|
|
97
|
+
warning: {
|
|
98
|
+
50: string;
|
|
99
|
+
100: string;
|
|
100
|
+
200: string;
|
|
101
|
+
300: string;
|
|
102
|
+
400: string;
|
|
103
|
+
500: string;
|
|
104
|
+
600: string;
|
|
105
|
+
700: string;
|
|
106
|
+
800: string;
|
|
107
|
+
900: string;
|
|
108
|
+
};
|
|
109
|
+
info: {
|
|
110
|
+
50: string;
|
|
111
|
+
100: string;
|
|
112
|
+
200: string;
|
|
113
|
+
300: string;
|
|
114
|
+
400: string;
|
|
115
|
+
500: string;
|
|
116
|
+
600: string;
|
|
117
|
+
700: string;
|
|
118
|
+
800: string;
|
|
119
|
+
900: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
gray: {
|
|
123
|
+
50: string;
|
|
124
|
+
100: string;
|
|
125
|
+
200: string;
|
|
126
|
+
300: string;
|
|
127
|
+
400: string;
|
|
128
|
+
500: string;
|
|
129
|
+
600: string;
|
|
130
|
+
700: string;
|
|
131
|
+
800: string;
|
|
132
|
+
900: string;
|
|
133
|
+
};
|
|
134
|
+
red: {
|
|
135
|
+
50: string;
|
|
136
|
+
100: string;
|
|
137
|
+
200: string;
|
|
138
|
+
300: string;
|
|
139
|
+
400: string;
|
|
140
|
+
500: string;
|
|
141
|
+
600: string;
|
|
142
|
+
700: string;
|
|
143
|
+
800: string;
|
|
144
|
+
900: string;
|
|
145
|
+
};
|
|
146
|
+
orange: {
|
|
147
|
+
50: string;
|
|
148
|
+
100: string;
|
|
149
|
+
200: string;
|
|
150
|
+
300: string;
|
|
151
|
+
400: string;
|
|
152
|
+
500: string;
|
|
153
|
+
600: string;
|
|
154
|
+
700: string;
|
|
155
|
+
800: string;
|
|
156
|
+
900: string;
|
|
157
|
+
};
|
|
158
|
+
yellow: {
|
|
159
|
+
50: string;
|
|
160
|
+
100: string;
|
|
161
|
+
200: string;
|
|
162
|
+
300: string;
|
|
163
|
+
400: string;
|
|
164
|
+
500: string;
|
|
165
|
+
600: string;
|
|
166
|
+
700: string;
|
|
167
|
+
800: string;
|
|
168
|
+
900: string;
|
|
169
|
+
};
|
|
170
|
+
green: {
|
|
171
|
+
50: string;
|
|
172
|
+
100: string;
|
|
173
|
+
200: string;
|
|
174
|
+
300: string;
|
|
175
|
+
400: string;
|
|
176
|
+
500: string;
|
|
177
|
+
600: string;
|
|
178
|
+
700: string;
|
|
179
|
+
800: string;
|
|
180
|
+
900: string;
|
|
181
|
+
};
|
|
182
|
+
teal: {
|
|
183
|
+
50: string;
|
|
184
|
+
100: string;
|
|
185
|
+
200: string;
|
|
186
|
+
300: string;
|
|
187
|
+
400: string;
|
|
188
|
+
500: string;
|
|
189
|
+
600: string;
|
|
190
|
+
700: string;
|
|
191
|
+
800: string;
|
|
192
|
+
900: string;
|
|
193
|
+
};
|
|
194
|
+
blue: {
|
|
195
|
+
50: string;
|
|
196
|
+
100: string;
|
|
197
|
+
200: string;
|
|
198
|
+
300: string;
|
|
199
|
+
400: string;
|
|
200
|
+
500: string;
|
|
201
|
+
600: string;
|
|
202
|
+
700: string;
|
|
203
|
+
800: string;
|
|
204
|
+
900: string;
|
|
205
|
+
};
|
|
206
|
+
cyan: {
|
|
207
|
+
50: string;
|
|
208
|
+
100: string;
|
|
209
|
+
200: string;
|
|
210
|
+
300: string;
|
|
211
|
+
400: string;
|
|
212
|
+
500: string;
|
|
213
|
+
600: string;
|
|
214
|
+
700: string;
|
|
215
|
+
800: string;
|
|
216
|
+
900: string;
|
|
217
|
+
};
|
|
218
|
+
purple: {
|
|
219
|
+
50: string;
|
|
220
|
+
100: string;
|
|
221
|
+
200: string;
|
|
222
|
+
300: string;
|
|
223
|
+
400: string;
|
|
224
|
+
500: string;
|
|
225
|
+
600: string;
|
|
226
|
+
700: string;
|
|
227
|
+
800: string;
|
|
228
|
+
900: string;
|
|
229
|
+
};
|
|
230
|
+
pink: {
|
|
231
|
+
50: string;
|
|
232
|
+
100: string;
|
|
233
|
+
200: string;
|
|
234
|
+
300: string;
|
|
235
|
+
400: string;
|
|
236
|
+
500: string;
|
|
237
|
+
600: string;
|
|
238
|
+
700: string;
|
|
239
|
+
800: string;
|
|
240
|
+
900: string;
|
|
241
|
+
};
|
|
242
|
+
background: {
|
|
243
|
+
50: string;
|
|
244
|
+
100: string;
|
|
245
|
+
200: string;
|
|
246
|
+
300: string;
|
|
247
|
+
400: string;
|
|
248
|
+
500: string;
|
|
249
|
+
600: string;
|
|
250
|
+
700: string;
|
|
251
|
+
800: string;
|
|
252
|
+
900: string;
|
|
253
|
+
},
|
|
254
|
+
text: {
|
|
255
|
+
50: string;
|
|
256
|
+
100: string;
|
|
257
|
+
200: string;
|
|
258
|
+
300: string;
|
|
259
|
+
400: string;
|
|
260
|
+
500: string;
|
|
261
|
+
600: string;
|
|
262
|
+
700: string;
|
|
263
|
+
800: string;
|
|
264
|
+
900: string;
|
|
265
|
+
},
|
|
266
|
+
header: {
|
|
267
|
+
50: string;
|
|
268
|
+
100: string;
|
|
269
|
+
200: string;
|
|
270
|
+
300: string;
|
|
271
|
+
400: string;
|
|
272
|
+
500: string;
|
|
273
|
+
600: string;
|
|
274
|
+
700: string;
|
|
275
|
+
800: string;
|
|
276
|
+
900: string;
|
|
277
|
+
},
|
|
278
|
+
placeholder: {
|
|
279
|
+
50: string;
|
|
280
|
+
100: string;
|
|
281
|
+
200: string;
|
|
282
|
+
300: string;
|
|
283
|
+
400: string;
|
|
284
|
+
500: string;
|
|
285
|
+
600: string;
|
|
286
|
+
700: string;
|
|
287
|
+
800: string;
|
|
288
|
+
900: string;
|
|
289
|
+
},
|
|
290
|
+
boxShadow: {
|
|
291
|
+
primary: string,
|
|
292
|
+
error: string,
|
|
293
|
+
default: string,
|
|
294
|
+
}
|
|
295
|
+
sidebar: {
|
|
296
|
+
background: {
|
|
297
|
+
50: string,
|
|
298
|
+
100: string,
|
|
299
|
+
200: string,
|
|
300
|
+
300: string,
|
|
301
|
+
400: string,
|
|
302
|
+
500: string,
|
|
303
|
+
600: string,
|
|
304
|
+
700: string,
|
|
305
|
+
800: string,
|
|
306
|
+
900: string,
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
boxborder: {
|
|
310
|
+
50: string;
|
|
311
|
+
100: string;
|
|
312
|
+
200: string;
|
|
313
|
+
300: string;
|
|
314
|
+
400: string;
|
|
315
|
+
500: string;
|
|
316
|
+
600: string;
|
|
317
|
+
700: string;
|
|
318
|
+
800: string;
|
|
319
|
+
900: string;
|
|
320
|
+
},
|
|
321
|
+
border: {
|
|
322
|
+
50: string;
|
|
323
|
+
100: string;
|
|
324
|
+
200: string;
|
|
325
|
+
300: string;
|
|
326
|
+
400: string;
|
|
327
|
+
500: string;
|
|
328
|
+
600: string;
|
|
329
|
+
700: string;
|
|
330
|
+
800: string;
|
|
331
|
+
900: string;
|
|
332
|
+
},
|
|
333
|
+
table: {
|
|
334
|
+
hover: {
|
|
335
|
+
50: string;
|
|
336
|
+
100: string;
|
|
337
|
+
200: string;
|
|
338
|
+
300: string;
|
|
339
|
+
400: string;
|
|
340
|
+
500: string;
|
|
341
|
+
600: string;
|
|
342
|
+
700: string;
|
|
343
|
+
800: string;
|
|
344
|
+
900: string;
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
disabled: {
|
|
348
|
+
50: string;
|
|
349
|
+
100: string;
|
|
350
|
+
200: string;
|
|
351
|
+
300: string;
|
|
352
|
+
400: string;
|
|
353
|
+
500: string;
|
|
354
|
+
600: string;
|
|
355
|
+
700: string;
|
|
356
|
+
800: string;
|
|
357
|
+
900: string;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
backgroundColor: {
|
|
361
|
+
main: string;
|
|
362
|
+
secondary: string;
|
|
363
|
+
quaternary: string;
|
|
364
|
+
tertiary: string;
|
|
365
|
+
light: string;
|
|
366
|
+
medium: string;
|
|
367
|
+
accent: string;
|
|
368
|
+
subtle: string;
|
|
369
|
+
muted: string;
|
|
370
|
+
neutral: string;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
fonts: ChakraTheme["fonts"] & {
|
|
374
|
+
body: string;
|
|
375
|
+
heading: string;
|
|
376
|
+
mono: string;
|
|
377
|
+
};
|
|
378
|
+
fontSizes: {
|
|
379
|
+
xs: string;
|
|
380
|
+
sm: string;
|
|
381
|
+
md: string;
|
|
382
|
+
lg: string;
|
|
383
|
+
xl: string;
|
|
384
|
+
"2xl": string;
|
|
385
|
+
"3xl": string;
|
|
386
|
+
"4xl": string;
|
|
387
|
+
"5xl": string;
|
|
388
|
+
"6xl": string;
|
|
389
|
+
"7xl": string;
|
|
390
|
+
"8xl": string;
|
|
391
|
+
"9xl": string;
|
|
392
|
+
};
|
|
393
|
+
fontWeights: {
|
|
394
|
+
hairline: number;
|
|
395
|
+
thin: number;
|
|
396
|
+
light: number;
|
|
397
|
+
normal: number;
|
|
398
|
+
medium: number;
|
|
399
|
+
semibold: number;
|
|
400
|
+
bold: number;
|
|
401
|
+
extrabold: number;
|
|
402
|
+
black: number;
|
|
403
|
+
};
|
|
404
|
+
lineHeights: {
|
|
405
|
+
normal: string;
|
|
406
|
+
none: number;
|
|
407
|
+
shorter: number;
|
|
408
|
+
short: number;
|
|
409
|
+
base: number;
|
|
410
|
+
tall: number;
|
|
411
|
+
taller: string;
|
|
412
|
+
[key: string]: string | number;
|
|
413
|
+
};
|
|
414
|
+
letterSpacings: {
|
|
415
|
+
tighter: string;
|
|
416
|
+
tight: string;
|
|
417
|
+
normal: string;
|
|
418
|
+
wide: string;
|
|
419
|
+
wider: string;
|
|
420
|
+
widest: string;
|
|
421
|
+
};
|
|
422
|
+
space: {
|
|
423
|
+
[key: string]: string;
|
|
424
|
+
};
|
|
425
|
+
sizes: {
|
|
426
|
+
[key: string]: string | any;
|
|
427
|
+
};
|
|
428
|
+
breakpoints: {
|
|
429
|
+
sm: string;
|
|
430
|
+
md: string;
|
|
431
|
+
lg: string;
|
|
432
|
+
xl: string;
|
|
433
|
+
"2xl": string;
|
|
434
|
+
};
|
|
435
|
+
shadows: {
|
|
436
|
+
xs: string;
|
|
437
|
+
sm: string;
|
|
438
|
+
base: string;
|
|
439
|
+
md: string;
|
|
440
|
+
lg: string;
|
|
441
|
+
xl: string;
|
|
442
|
+
"2xl": string;
|
|
443
|
+
outline: string;
|
|
444
|
+
inner: string;
|
|
445
|
+
none: string;
|
|
446
|
+
darkLg: string;
|
|
447
|
+
};
|
|
448
|
+
radii: ChakraTheme["radii"] & {
|
|
449
|
+
none: string;
|
|
450
|
+
sm: string;
|
|
451
|
+
base: string;
|
|
452
|
+
md: string;
|
|
453
|
+
lg: string;
|
|
454
|
+
xl: string;
|
|
455
|
+
"2xl": string;
|
|
456
|
+
"3xl": string;
|
|
457
|
+
full: string;
|
|
458
|
+
};
|
|
459
|
+
zIndices: ChakraTheme["zIndices"] & {
|
|
460
|
+
hide: number;
|
|
461
|
+
auto: string;
|
|
462
|
+
base: number;
|
|
463
|
+
docked: number;
|
|
464
|
+
dropdown: number;
|
|
465
|
+
sticky: number;
|
|
466
|
+
banner: number;
|
|
467
|
+
overlay: number;
|
|
468
|
+
modal: number;
|
|
469
|
+
popover: number;
|
|
470
|
+
skipLink: number;
|
|
471
|
+
toast: number;
|
|
472
|
+
tooltip: number;
|
|
473
|
+
};
|
|
474
|
+
config: {
|
|
475
|
+
cssVarPrefix: string;
|
|
476
|
+
};
|
|
477
|
+
};
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { useCallback, useEffect, useRef } from "react";
|
|
2
|
+
import { DataObject, TableHeaderProps } from "../Components/Table/TableProps";
|
|
3
|
+
import { useCustomTheme } from "../Theme/useCustomTheme";
|
|
4
|
+
|
|
5
|
+
export function SortMultiColumnData(
|
|
6
|
+
data: Record<string, string | number>[],
|
|
7
|
+
sortConfig: {
|
|
8
|
+
column: string | number;
|
|
9
|
+
direction: string;
|
|
10
|
+
}[]
|
|
11
|
+
) {
|
|
12
|
+
if (!sortConfig.length) return data;
|
|
13
|
+
return [...data].sort((a, b) => {
|
|
14
|
+
for (const { column, direction } of sortConfig) {
|
|
15
|
+
if (direction === "none") {
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
18
|
+
const dirMultiplier = direction === "asc" ? 1 : -1;
|
|
19
|
+
// Compare values for the current column
|
|
20
|
+
if (a[column] < b[column]) return -1 * dirMultiplier;
|
|
21
|
+
if (a[column] > b[column]) return 1 * dirMultiplier;
|
|
22
|
+
|
|
23
|
+
// If values are equal, continue to the next sorting rule
|
|
24
|
+
}
|
|
25
|
+
return 0; // Return 0 if all sort conditions are equal
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const calculateLeftOffset = (
|
|
30
|
+
columns: number[],
|
|
31
|
+
index: number
|
|
32
|
+
): number => {
|
|
33
|
+
return columns.slice(0, index).reduce((sum, width) => sum + width, 0);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const searchAndSortData = (
|
|
37
|
+
data: DataObject[],
|
|
38
|
+
searchValues: Record<string, string>
|
|
39
|
+
) => {
|
|
40
|
+
const filteredData = data.filter((item) => {
|
|
41
|
+
return Object.keys(searchValues).every((key) => {
|
|
42
|
+
const searchValue = searchValues[key].toLowerCase();
|
|
43
|
+
return item[key].toString().toLowerCase().includes(searchValue);
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
return filteredData.sort((a, b) => {
|
|
48
|
+
let aMatchCount = 0;
|
|
49
|
+
let bMatchCount = 0;
|
|
50
|
+
|
|
51
|
+
Object.keys(searchValues).forEach((key) => {
|
|
52
|
+
const searchValue = searchValues[key].toLowerCase();
|
|
53
|
+
|
|
54
|
+
if (a[key] && a[key].toString().toLowerCase() === searchValue) {
|
|
55
|
+
aMatchCount++;
|
|
56
|
+
}
|
|
57
|
+
if (b[key] && b[key].toString().toLowerCase() === searchValue) {
|
|
58
|
+
bMatchCount++;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (a[key] && a[key].toString().toLowerCase().includes(searchValue)) {
|
|
62
|
+
aMatchCount += 0.5;
|
|
63
|
+
}
|
|
64
|
+
if (b[key] && b[key].toString().toLowerCase().includes(searchValue)) {
|
|
65
|
+
bMatchCount += 0.5;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
return bMatchCount - aMatchCount;
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export function debounce<T extends (...args: any[]) => void>(
|
|
74
|
+
func: T,
|
|
75
|
+
delay: number
|
|
76
|
+
): (...args: Parameters<T>) => void {
|
|
77
|
+
let timer: NodeJS.Timeout;
|
|
78
|
+
return (...args: Parameters<T>) => {
|
|
79
|
+
clearTimeout(timer);
|
|
80
|
+
timer = setTimeout(() => {
|
|
81
|
+
func(...args);
|
|
82
|
+
}, delay);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function useDebounce<T extends (...args: any[]) => void>(
|
|
87
|
+
callback: T,
|
|
88
|
+
delay: number
|
|
89
|
+
): (...args: Parameters<T>) => void {
|
|
90
|
+
const callbackRef = useRef(callback);
|
|
91
|
+
const timerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
|
92
|
+
|
|
93
|
+
useEffect(() => {
|
|
94
|
+
callbackRef.current = callback;
|
|
95
|
+
}, [callback]);
|
|
96
|
+
|
|
97
|
+
const debouncedFn = useCallback(
|
|
98
|
+
(...args: Parameters<T>) => {
|
|
99
|
+
if (timerRef.current) {
|
|
100
|
+
clearTimeout(timerRef.current);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
timerRef.current = setTimeout(() => {
|
|
104
|
+
callbackRef.current(...args);
|
|
105
|
+
}, delay);
|
|
106
|
+
},
|
|
107
|
+
[delay]
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
return debouncedFn;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export const pageSizeCalculation = (records: number) => {
|
|
114
|
+
const pageSize = [5, 10];
|
|
115
|
+
if (records > 100) {
|
|
116
|
+
return [25, 50, 100];
|
|
117
|
+
} else if (records > 50) {
|
|
118
|
+
return [5, 10, 20];
|
|
119
|
+
}
|
|
120
|
+
return pageSize;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
type TableCellCalculationProps = {
|
|
124
|
+
isFrozen?: boolean;
|
|
125
|
+
columnWidths: number[];
|
|
126
|
+
headerIndex: number;
|
|
127
|
+
isCheckbox?: boolean;
|
|
128
|
+
header: TableHeaderProps;
|
|
129
|
+
row: DataObject;
|
|
130
|
+
freezedBgColor?: string;
|
|
131
|
+
index: number;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export const TableCellCalculation = ({
|
|
135
|
+
isFrozen,
|
|
136
|
+
columnWidths,
|
|
137
|
+
headerIndex,
|
|
138
|
+
isCheckbox,
|
|
139
|
+
header,
|
|
140
|
+
row,
|
|
141
|
+
freezedBgColor,
|
|
142
|
+
index,
|
|
143
|
+
}: TableCellCalculationProps) => {
|
|
144
|
+
const theme = useCustomTheme();
|
|
145
|
+
const leftOffset = isFrozen
|
|
146
|
+
? calculateLeftOffset(columnWidths, headerIndex) + (isCheckbox ? 50 : 0)
|
|
147
|
+
: 0;
|
|
148
|
+
let cellBgColor = undefined;
|
|
149
|
+
let cellTextColor = undefined;
|
|
150
|
+
if (row.cellStyle?.[header.id]) {
|
|
151
|
+
cellBgColor =
|
|
152
|
+
row.cellStyle?.[header.id]?.bg ?? theme.colors.backgroundColor.light;
|
|
153
|
+
cellTextColor = row.cellStyle?.[header.id]?.color ?? undefined;
|
|
154
|
+
} else if (isFrozen) {
|
|
155
|
+
cellBgColor = freezedBgColor ?? undefined;
|
|
156
|
+
cellTextColor = freezedBgColor ?? undefined;
|
|
157
|
+
} else if (index % 2 === 1) {
|
|
158
|
+
cellBgColor = theme.colors.backgroundColor.light;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
let rowBgColor = undefined;
|
|
162
|
+
let rowTextColor = undefined;
|
|
163
|
+
if (row.rowStyle) {
|
|
164
|
+
rowBgColor = row.rowStyle?.bg;
|
|
165
|
+
rowTextColor = row.rowStyle?.color;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return { leftOffset, cellBgColor, rowBgColor, cellTextColor, rowTextColor };
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Filters array of objects by checking all property values against the search query.
|
|
173
|
+
*
|
|
174
|
+
* @param data - Array of objects
|
|
175
|
+
* @param query - Search string
|
|
176
|
+
* @returns Filtered data
|
|
177
|
+
*/
|
|
178
|
+
export function globalSearchFilter<T extends Record<string, any>>(
|
|
179
|
+
data: T[],
|
|
180
|
+
query: string
|
|
181
|
+
): T[] {
|
|
182
|
+
if (!query.trim()) return data;
|
|
183
|
+
|
|
184
|
+
const lowerQuery = query.toLowerCase();
|
|
185
|
+
|
|
186
|
+
return data.filter((item) =>
|
|
187
|
+
Object.values(item).some((val) => {
|
|
188
|
+
if (
|
|
189
|
+
val === null ||
|
|
190
|
+
val === undefined ||
|
|
191
|
+
typeof val === "object" ||
|
|
192
|
+
typeof val === "function"
|
|
193
|
+
) {
|
|
194
|
+
return false;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return String(val).toLowerCase().includes(lowerQuery);
|
|
198
|
+
})
|
|
199
|
+
);
|
|
200
|
+
}
|