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
|
@@ -1,475 +0,0 @@
|
|
|
1
|
-
import "@chakra-ui/react";
|
|
2
|
-
import { Theme as ChakraTheme } from "@chakra-ui/react";
|
|
3
|
-
export type CustomThemeProps = {
|
|
4
|
-
colors: {
|
|
5
|
-
primary: {
|
|
6
|
-
50: string;
|
|
7
|
-
100: string;
|
|
8
|
-
200: string;
|
|
9
|
-
300: string;
|
|
10
|
-
400: string;
|
|
11
|
-
500: string;
|
|
12
|
-
600: string;
|
|
13
|
-
700: string;
|
|
14
|
-
800: string;
|
|
15
|
-
900: string;
|
|
16
|
-
opacity: {
|
|
17
|
-
4: string;
|
|
18
|
-
8: string;
|
|
19
|
-
16: string;
|
|
20
|
-
24: string;
|
|
21
|
-
32: string;
|
|
22
|
-
40: string;
|
|
23
|
-
48: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
secondary: {
|
|
27
|
-
50: string;
|
|
28
|
-
100: string;
|
|
29
|
-
200: string;
|
|
30
|
-
300: string;
|
|
31
|
-
400: string;
|
|
32
|
-
500: string;
|
|
33
|
-
600: string;
|
|
34
|
-
700: string;
|
|
35
|
-
800: string;
|
|
36
|
-
900: string;
|
|
37
|
-
opacity: {
|
|
38
|
-
4: string;
|
|
39
|
-
8: string;
|
|
40
|
-
16: string;
|
|
41
|
-
24: string;
|
|
42
|
-
32: string;
|
|
43
|
-
40: string;
|
|
44
|
-
48: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
tertiary: {
|
|
48
|
-
50: string;
|
|
49
|
-
100: string;
|
|
50
|
-
200: string;
|
|
51
|
-
300: string;
|
|
52
|
-
400: string;
|
|
53
|
-
500: string;
|
|
54
|
-
600: string;
|
|
55
|
-
700: string;
|
|
56
|
-
800: string;
|
|
57
|
-
900: string;
|
|
58
|
-
opacity: {
|
|
59
|
-
4: string;
|
|
60
|
-
8: string;
|
|
61
|
-
16: string;
|
|
62
|
-
24: string;
|
|
63
|
-
32: string;
|
|
64
|
-
40: string;
|
|
65
|
-
48: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
transparent: string;
|
|
69
|
-
black: string;
|
|
70
|
-
white: string;
|
|
71
|
-
semantic: {
|
|
72
|
-
success: {
|
|
73
|
-
50: string;
|
|
74
|
-
100: string;
|
|
75
|
-
200: string;
|
|
76
|
-
300: string;
|
|
77
|
-
400: string;
|
|
78
|
-
500: string;
|
|
79
|
-
600: string;
|
|
80
|
-
700: string;
|
|
81
|
-
800: string;
|
|
82
|
-
900: string;
|
|
83
|
-
};
|
|
84
|
-
error: {
|
|
85
|
-
50: string;
|
|
86
|
-
100: string;
|
|
87
|
-
200: string;
|
|
88
|
-
300: string;
|
|
89
|
-
400: string;
|
|
90
|
-
500: string;
|
|
91
|
-
600: string;
|
|
92
|
-
700: string;
|
|
93
|
-
800: string;
|
|
94
|
-
900: string;
|
|
95
|
-
};
|
|
96
|
-
warning: {
|
|
97
|
-
50: string;
|
|
98
|
-
100: string;
|
|
99
|
-
200: string;
|
|
100
|
-
300: string;
|
|
101
|
-
400: string;
|
|
102
|
-
500: string;
|
|
103
|
-
600: string;
|
|
104
|
-
700: string;
|
|
105
|
-
800: string;
|
|
106
|
-
900: string;
|
|
107
|
-
};
|
|
108
|
-
info: {
|
|
109
|
-
50: string;
|
|
110
|
-
100: string;
|
|
111
|
-
200: string;
|
|
112
|
-
300: string;
|
|
113
|
-
400: string;
|
|
114
|
-
500: string;
|
|
115
|
-
600: string;
|
|
116
|
-
700: string;
|
|
117
|
-
800: string;
|
|
118
|
-
900: string;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
gray: {
|
|
122
|
-
50: string;
|
|
123
|
-
100: string;
|
|
124
|
-
200: string;
|
|
125
|
-
300: string;
|
|
126
|
-
400: string;
|
|
127
|
-
500: string;
|
|
128
|
-
600: string;
|
|
129
|
-
700: string;
|
|
130
|
-
800: string;
|
|
131
|
-
900: string;
|
|
132
|
-
};
|
|
133
|
-
red: {
|
|
134
|
-
50: string;
|
|
135
|
-
100: string;
|
|
136
|
-
200: string;
|
|
137
|
-
300: string;
|
|
138
|
-
400: string;
|
|
139
|
-
500: string;
|
|
140
|
-
600: string;
|
|
141
|
-
700: string;
|
|
142
|
-
800: string;
|
|
143
|
-
900: string;
|
|
144
|
-
};
|
|
145
|
-
orange: {
|
|
146
|
-
50: string;
|
|
147
|
-
100: string;
|
|
148
|
-
200: string;
|
|
149
|
-
300: string;
|
|
150
|
-
400: string;
|
|
151
|
-
500: string;
|
|
152
|
-
600: string;
|
|
153
|
-
700: string;
|
|
154
|
-
800: string;
|
|
155
|
-
900: string;
|
|
156
|
-
};
|
|
157
|
-
yellow: {
|
|
158
|
-
50: string;
|
|
159
|
-
100: string;
|
|
160
|
-
200: string;
|
|
161
|
-
300: string;
|
|
162
|
-
400: string;
|
|
163
|
-
500: string;
|
|
164
|
-
600: string;
|
|
165
|
-
700: string;
|
|
166
|
-
800: string;
|
|
167
|
-
900: string;
|
|
168
|
-
};
|
|
169
|
-
green: {
|
|
170
|
-
50: string;
|
|
171
|
-
100: string;
|
|
172
|
-
200: string;
|
|
173
|
-
300: string;
|
|
174
|
-
400: string;
|
|
175
|
-
500: string;
|
|
176
|
-
600: string;
|
|
177
|
-
700: string;
|
|
178
|
-
800: string;
|
|
179
|
-
900: string;
|
|
180
|
-
};
|
|
181
|
-
teal: {
|
|
182
|
-
50: string;
|
|
183
|
-
100: string;
|
|
184
|
-
200: string;
|
|
185
|
-
300: string;
|
|
186
|
-
400: string;
|
|
187
|
-
500: string;
|
|
188
|
-
600: string;
|
|
189
|
-
700: string;
|
|
190
|
-
800: string;
|
|
191
|
-
900: string;
|
|
192
|
-
};
|
|
193
|
-
blue: {
|
|
194
|
-
50: string;
|
|
195
|
-
100: string;
|
|
196
|
-
200: string;
|
|
197
|
-
300: string;
|
|
198
|
-
400: string;
|
|
199
|
-
500: string;
|
|
200
|
-
600: string;
|
|
201
|
-
700: string;
|
|
202
|
-
800: string;
|
|
203
|
-
900: string;
|
|
204
|
-
};
|
|
205
|
-
cyan: {
|
|
206
|
-
50: string;
|
|
207
|
-
100: string;
|
|
208
|
-
200: string;
|
|
209
|
-
300: string;
|
|
210
|
-
400: string;
|
|
211
|
-
500: string;
|
|
212
|
-
600: string;
|
|
213
|
-
700: string;
|
|
214
|
-
800: string;
|
|
215
|
-
900: string;
|
|
216
|
-
};
|
|
217
|
-
purple: {
|
|
218
|
-
50: string;
|
|
219
|
-
100: string;
|
|
220
|
-
200: string;
|
|
221
|
-
300: string;
|
|
222
|
-
400: string;
|
|
223
|
-
500: string;
|
|
224
|
-
600: string;
|
|
225
|
-
700: string;
|
|
226
|
-
800: string;
|
|
227
|
-
900: string;
|
|
228
|
-
};
|
|
229
|
-
pink: {
|
|
230
|
-
50: string;
|
|
231
|
-
100: string;
|
|
232
|
-
200: string;
|
|
233
|
-
300: string;
|
|
234
|
-
400: string;
|
|
235
|
-
500: string;
|
|
236
|
-
600: string;
|
|
237
|
-
700: string;
|
|
238
|
-
800: string;
|
|
239
|
-
900: string;
|
|
240
|
-
};
|
|
241
|
-
background: {
|
|
242
|
-
50: string;
|
|
243
|
-
100: string;
|
|
244
|
-
200: string;
|
|
245
|
-
300: string;
|
|
246
|
-
400: string;
|
|
247
|
-
500: string;
|
|
248
|
-
600: string;
|
|
249
|
-
700: string;
|
|
250
|
-
800: string;
|
|
251
|
-
900: string;
|
|
252
|
-
};
|
|
253
|
-
text: {
|
|
254
|
-
50: string;
|
|
255
|
-
100: string;
|
|
256
|
-
200: string;
|
|
257
|
-
300: string;
|
|
258
|
-
400: string;
|
|
259
|
-
500: string;
|
|
260
|
-
600: string;
|
|
261
|
-
700: string;
|
|
262
|
-
800: string;
|
|
263
|
-
900: string;
|
|
264
|
-
};
|
|
265
|
-
header: {
|
|
266
|
-
50: string;
|
|
267
|
-
100: string;
|
|
268
|
-
200: string;
|
|
269
|
-
300: string;
|
|
270
|
-
400: string;
|
|
271
|
-
500: string;
|
|
272
|
-
600: string;
|
|
273
|
-
700: string;
|
|
274
|
-
800: string;
|
|
275
|
-
900: string;
|
|
276
|
-
};
|
|
277
|
-
placeholder: {
|
|
278
|
-
50: string;
|
|
279
|
-
100: string;
|
|
280
|
-
200: string;
|
|
281
|
-
300: string;
|
|
282
|
-
400: string;
|
|
283
|
-
500: string;
|
|
284
|
-
600: string;
|
|
285
|
-
700: string;
|
|
286
|
-
800: string;
|
|
287
|
-
900: string;
|
|
288
|
-
};
|
|
289
|
-
boxShadow: {
|
|
290
|
-
primary: string;
|
|
291
|
-
error: string;
|
|
292
|
-
default: string;
|
|
293
|
-
};
|
|
294
|
-
sidebar: {
|
|
295
|
-
background: {
|
|
296
|
-
50: string;
|
|
297
|
-
100: string;
|
|
298
|
-
200: string;
|
|
299
|
-
300: string;
|
|
300
|
-
400: string;
|
|
301
|
-
500: string;
|
|
302
|
-
600: string;
|
|
303
|
-
700: string;
|
|
304
|
-
800: string;
|
|
305
|
-
900: string;
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
boxborder: {
|
|
309
|
-
50: string;
|
|
310
|
-
100: string;
|
|
311
|
-
200: string;
|
|
312
|
-
300: string;
|
|
313
|
-
400: string;
|
|
314
|
-
500: string;
|
|
315
|
-
600: string;
|
|
316
|
-
700: string;
|
|
317
|
-
800: string;
|
|
318
|
-
900: string;
|
|
319
|
-
};
|
|
320
|
-
border: {
|
|
321
|
-
50: string;
|
|
322
|
-
100: string;
|
|
323
|
-
200: string;
|
|
324
|
-
300: string;
|
|
325
|
-
400: string;
|
|
326
|
-
500: string;
|
|
327
|
-
600: string;
|
|
328
|
-
700: string;
|
|
329
|
-
800: string;
|
|
330
|
-
900: string;
|
|
331
|
-
};
|
|
332
|
-
table: {
|
|
333
|
-
hover: {
|
|
334
|
-
50: string;
|
|
335
|
-
100: string;
|
|
336
|
-
200: string;
|
|
337
|
-
300: string;
|
|
338
|
-
400: string;
|
|
339
|
-
500: string;
|
|
340
|
-
600: string;
|
|
341
|
-
700: string;
|
|
342
|
-
800: string;
|
|
343
|
-
900: string;
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
disabled: {
|
|
347
|
-
50: string;
|
|
348
|
-
100: string;
|
|
349
|
-
200: string;
|
|
350
|
-
300: string;
|
|
351
|
-
400: string;
|
|
352
|
-
500: string;
|
|
353
|
-
600: string;
|
|
354
|
-
700: string;
|
|
355
|
-
800: string;
|
|
356
|
-
900: string;
|
|
357
|
-
};
|
|
358
|
-
backgroundColor: {
|
|
359
|
-
main: string;
|
|
360
|
-
secondary: string;
|
|
361
|
-
quaternary: string;
|
|
362
|
-
tertiary: string;
|
|
363
|
-
light: string;
|
|
364
|
-
medium: string;
|
|
365
|
-
accent: string;
|
|
366
|
-
subtle: string;
|
|
367
|
-
muted: string;
|
|
368
|
-
neutral: string;
|
|
369
|
-
};
|
|
370
|
-
};
|
|
371
|
-
fonts: ChakraTheme["fonts"] & {
|
|
372
|
-
body: string;
|
|
373
|
-
heading: string;
|
|
374
|
-
mono: string;
|
|
375
|
-
};
|
|
376
|
-
fontSizes: {
|
|
377
|
-
xs: string;
|
|
378
|
-
sm: string;
|
|
379
|
-
md: string;
|
|
380
|
-
lg: string;
|
|
381
|
-
xl: string;
|
|
382
|
-
"2xl": string;
|
|
383
|
-
"3xl": string;
|
|
384
|
-
"4xl": string;
|
|
385
|
-
"5xl": string;
|
|
386
|
-
"6xl": string;
|
|
387
|
-
"7xl": string;
|
|
388
|
-
"8xl": string;
|
|
389
|
-
"9xl": string;
|
|
390
|
-
};
|
|
391
|
-
fontWeights: {
|
|
392
|
-
hairline: number;
|
|
393
|
-
thin: number;
|
|
394
|
-
light: number;
|
|
395
|
-
normal: number;
|
|
396
|
-
medium: number;
|
|
397
|
-
semibold: number;
|
|
398
|
-
bold: number;
|
|
399
|
-
extrabold: number;
|
|
400
|
-
black: number;
|
|
401
|
-
};
|
|
402
|
-
lineHeights: {
|
|
403
|
-
normal: string;
|
|
404
|
-
none: number;
|
|
405
|
-
shorter: number;
|
|
406
|
-
short: number;
|
|
407
|
-
base: number;
|
|
408
|
-
tall: number;
|
|
409
|
-
taller: string;
|
|
410
|
-
[key: string]: string | number;
|
|
411
|
-
};
|
|
412
|
-
letterSpacings: {
|
|
413
|
-
tighter: string;
|
|
414
|
-
tight: string;
|
|
415
|
-
normal: string;
|
|
416
|
-
wide: string;
|
|
417
|
-
wider: string;
|
|
418
|
-
widest: string;
|
|
419
|
-
};
|
|
420
|
-
space: {
|
|
421
|
-
[key: string]: string;
|
|
422
|
-
};
|
|
423
|
-
sizes: {
|
|
424
|
-
[key: string]: string | any;
|
|
425
|
-
};
|
|
426
|
-
breakpoints: {
|
|
427
|
-
sm: string;
|
|
428
|
-
md: string;
|
|
429
|
-
lg: string;
|
|
430
|
-
xl: string;
|
|
431
|
-
"2xl": string;
|
|
432
|
-
};
|
|
433
|
-
shadows: {
|
|
434
|
-
xs: string;
|
|
435
|
-
sm: string;
|
|
436
|
-
base: string;
|
|
437
|
-
md: string;
|
|
438
|
-
lg: string;
|
|
439
|
-
xl: string;
|
|
440
|
-
"2xl": string;
|
|
441
|
-
outline: string;
|
|
442
|
-
inner: string;
|
|
443
|
-
none: string;
|
|
444
|
-
darkLg: string;
|
|
445
|
-
};
|
|
446
|
-
radii: ChakraTheme["radii"] & {
|
|
447
|
-
none: string;
|
|
448
|
-
sm: string;
|
|
449
|
-
base: string;
|
|
450
|
-
md: string;
|
|
451
|
-
lg: string;
|
|
452
|
-
xl: string;
|
|
453
|
-
"2xl": string;
|
|
454
|
-
"3xl": string;
|
|
455
|
-
full: string;
|
|
456
|
-
};
|
|
457
|
-
zIndices: ChakraTheme["zIndices"] & {
|
|
458
|
-
hide: number;
|
|
459
|
-
auto: string;
|
|
460
|
-
base: number;
|
|
461
|
-
docked: number;
|
|
462
|
-
dropdown: number;
|
|
463
|
-
sticky: number;
|
|
464
|
-
banner: number;
|
|
465
|
-
overlay: number;
|
|
466
|
-
modal: number;
|
|
467
|
-
popover: number;
|
|
468
|
-
skipLink: number;
|
|
469
|
-
toast: number;
|
|
470
|
-
tooltip: number;
|
|
471
|
-
};
|
|
472
|
-
config: {
|
|
473
|
-
cssVarPrefix: string;
|
|
474
|
-
};
|
|
475
|
-
};
|
package/dist/Theme/themeProps.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useCustomTheme = void 0;
|
|
4
|
-
var react_1 = require("@chakra-ui/react");
|
|
5
|
-
var useCustomTheme = function () {
|
|
6
|
-
return (0, react_1.useTheme)();
|
|
7
|
-
};
|
|
8
|
-
exports.useCustomTheme = useCustomTheme;
|
package/dist/Utils/table.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { DataObject, TableHeaderProps } from "../Components/Table/TableProps";
|
|
2
|
-
export declare function SortMultiColumnData(data: Record<string, string | number>[], sortConfig: {
|
|
3
|
-
column: string | number;
|
|
4
|
-
direction: string;
|
|
5
|
-
}[]): Record<string, string | number>[];
|
|
6
|
-
export declare const calculateLeftOffset: (columns: number[], index: number) => number;
|
|
7
|
-
export declare const searchAndSortData: (data: DataObject[], searchValues: Record<string, string>) => DataObject[];
|
|
8
|
-
export declare function debounce<T extends (...args: any[]) => void>(func: T, delay: number): (...args: Parameters<T>) => void;
|
|
9
|
-
export declare function useDebounce<T extends (...args: any[]) => void>(callback: T, delay: number): (...args: Parameters<T>) => void;
|
|
10
|
-
export declare const pageSizeCalculation: (records: number) => number[];
|
|
11
|
-
type TableCellCalculationProps = {
|
|
12
|
-
isFrozen?: boolean;
|
|
13
|
-
columnWidths: number[];
|
|
14
|
-
headerIndex: number;
|
|
15
|
-
isCheckbox?: boolean;
|
|
16
|
-
header: TableHeaderProps;
|
|
17
|
-
row: DataObject;
|
|
18
|
-
freezedBgColor?: string;
|
|
19
|
-
index: number;
|
|
20
|
-
};
|
|
21
|
-
export declare const TableCellCalculation: ({ isFrozen, columnWidths, headerIndex, isCheckbox, header, row, freezedBgColor, index, }: TableCellCalculationProps) => {
|
|
22
|
-
leftOffset: number;
|
|
23
|
-
cellBgColor: any;
|
|
24
|
-
rowBgColor: any;
|
|
25
|
-
cellTextColor: any;
|
|
26
|
-
rowTextColor: any;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Filters array of objects by checking all property values against the search query.
|
|
30
|
-
*
|
|
31
|
-
* @param data - Array of objects
|
|
32
|
-
* @param query - Search string
|
|
33
|
-
* @returns Filtered data
|
|
34
|
-
*/
|
|
35
|
-
export declare function globalSearchFilter<T extends Record<string, any>>(data: T[], query: string): T[];
|
|
36
|
-
export {};
|
package/dist/Utils/table.js
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
-
if (ar || !(i in from)) {
|
|
5
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
-
ar[i] = from[i];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.globalSearchFilter = exports.TableCellCalculation = exports.pageSizeCalculation = exports.useDebounce = exports.debounce = exports.searchAndSortData = exports.calculateLeftOffset = exports.SortMultiColumnData = void 0;
|
|
13
|
-
var react_1 = require("react");
|
|
14
|
-
var useCustomTheme_1 = require("../Theme/useCustomTheme");
|
|
15
|
-
function SortMultiColumnData(data, sortConfig) {
|
|
16
|
-
if (!sortConfig.length)
|
|
17
|
-
return data;
|
|
18
|
-
return __spreadArray([], data, true).sort(function (a, b) {
|
|
19
|
-
for (var _i = 0, sortConfig_1 = sortConfig; _i < sortConfig_1.length; _i++) {
|
|
20
|
-
var _a = sortConfig_1[_i], column = _a.column, direction = _a.direction;
|
|
21
|
-
if (direction === "none") {
|
|
22
|
-
continue;
|
|
23
|
-
}
|
|
24
|
-
var dirMultiplier = direction === "asc" ? 1 : -1;
|
|
25
|
-
// Compare values for the current column
|
|
26
|
-
if (a[column] < b[column])
|
|
27
|
-
return -1 * dirMultiplier;
|
|
28
|
-
if (a[column] > b[column])
|
|
29
|
-
return 1 * dirMultiplier;
|
|
30
|
-
// If values are equal, continue to the next sorting rule
|
|
31
|
-
}
|
|
32
|
-
return 0; // Return 0 if all sort conditions are equal
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
exports.SortMultiColumnData = SortMultiColumnData;
|
|
36
|
-
var calculateLeftOffset = function (columns, index) {
|
|
37
|
-
return columns.slice(0, index).reduce(function (sum, width) { return sum + width; }, 0);
|
|
38
|
-
};
|
|
39
|
-
exports.calculateLeftOffset = calculateLeftOffset;
|
|
40
|
-
var searchAndSortData = function (data, searchValues) {
|
|
41
|
-
var filteredData = data.filter(function (item) {
|
|
42
|
-
return Object.keys(searchValues).every(function (key) {
|
|
43
|
-
var searchValue = searchValues[key].toLowerCase();
|
|
44
|
-
return item[key].toString().toLowerCase().includes(searchValue);
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
return filteredData.sort(function (a, b) {
|
|
48
|
-
var aMatchCount = 0;
|
|
49
|
-
var bMatchCount = 0;
|
|
50
|
-
Object.keys(searchValues).forEach(function (key) {
|
|
51
|
-
var searchValue = searchValues[key].toLowerCase();
|
|
52
|
-
if (a[key] && a[key].toString().toLowerCase() === searchValue) {
|
|
53
|
-
aMatchCount++;
|
|
54
|
-
}
|
|
55
|
-
if (b[key] && b[key].toString().toLowerCase() === searchValue) {
|
|
56
|
-
bMatchCount++;
|
|
57
|
-
}
|
|
58
|
-
if (a[key] && a[key].toString().toLowerCase().includes(searchValue)) {
|
|
59
|
-
aMatchCount += 0.5;
|
|
60
|
-
}
|
|
61
|
-
if (b[key] && b[key].toString().toLowerCase().includes(searchValue)) {
|
|
62
|
-
bMatchCount += 0.5;
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
return bMatchCount - aMatchCount;
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
exports.searchAndSortData = searchAndSortData;
|
|
69
|
-
function debounce(func, delay) {
|
|
70
|
-
var timer;
|
|
71
|
-
return function () {
|
|
72
|
-
var args = [];
|
|
73
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
74
|
-
args[_i] = arguments[_i];
|
|
75
|
-
}
|
|
76
|
-
clearTimeout(timer);
|
|
77
|
-
timer = setTimeout(function () {
|
|
78
|
-
func.apply(void 0, args);
|
|
79
|
-
}, delay);
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
exports.debounce = debounce;
|
|
83
|
-
function useDebounce(callback, delay) {
|
|
84
|
-
var callbackRef = (0, react_1.useRef)(callback);
|
|
85
|
-
var timerRef = (0, react_1.useRef)(null);
|
|
86
|
-
(0, react_1.useEffect)(function () {
|
|
87
|
-
callbackRef.current = callback;
|
|
88
|
-
}, [callback]);
|
|
89
|
-
var debouncedFn = (0, react_1.useCallback)(function () {
|
|
90
|
-
var args = [];
|
|
91
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
92
|
-
args[_i] = arguments[_i];
|
|
93
|
-
}
|
|
94
|
-
if (timerRef.current) {
|
|
95
|
-
clearTimeout(timerRef.current);
|
|
96
|
-
}
|
|
97
|
-
timerRef.current = setTimeout(function () {
|
|
98
|
-
callbackRef.current.apply(callbackRef, args);
|
|
99
|
-
}, delay);
|
|
100
|
-
}, [delay]);
|
|
101
|
-
return debouncedFn;
|
|
102
|
-
}
|
|
103
|
-
exports.useDebounce = useDebounce;
|
|
104
|
-
var pageSizeCalculation = function (records) {
|
|
105
|
-
var pageSize = [5, 10];
|
|
106
|
-
if (records > 100) {
|
|
107
|
-
return [25, 50, 100];
|
|
108
|
-
}
|
|
109
|
-
else if (records > 50) {
|
|
110
|
-
return [5, 10, 20];
|
|
111
|
-
}
|
|
112
|
-
return pageSize;
|
|
113
|
-
};
|
|
114
|
-
exports.pageSizeCalculation = pageSizeCalculation;
|
|
115
|
-
var TableCellCalculation = function (_a) {
|
|
116
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
117
|
-
var isFrozen = _a.isFrozen, columnWidths = _a.columnWidths, headerIndex = _a.headerIndex, isCheckbox = _a.isCheckbox, header = _a.header, row = _a.row, freezedBgColor = _a.freezedBgColor, index = _a.index;
|
|
118
|
-
var theme = (0, useCustomTheme_1.useCustomTheme)();
|
|
119
|
-
var leftOffset = isFrozen
|
|
120
|
-
? (0, exports.calculateLeftOffset)(columnWidths, headerIndex) + (isCheckbox ? 50 : 0)
|
|
121
|
-
: 0;
|
|
122
|
-
var cellBgColor = undefined;
|
|
123
|
-
var cellTextColor = undefined;
|
|
124
|
-
if ((_b = row.cellStyle) === null || _b === void 0 ? void 0 : _b[header.id]) {
|
|
125
|
-
cellBgColor =
|
|
126
|
-
(_e = (_d = (_c = row.cellStyle) === null || _c === void 0 ? void 0 : _c[header.id]) === null || _d === void 0 ? void 0 : _d.bg) !== null && _e !== void 0 ? _e : theme.colors.backgroundColor.light;
|
|
127
|
-
cellTextColor = (_h = (_g = (_f = row.cellStyle) === null || _f === void 0 ? void 0 : _f[header.id]) === null || _g === void 0 ? void 0 : _g.color) !== null && _h !== void 0 ? _h : undefined;
|
|
128
|
-
}
|
|
129
|
-
else if (isFrozen) {
|
|
130
|
-
cellBgColor = freezedBgColor !== null && freezedBgColor !== void 0 ? freezedBgColor : undefined;
|
|
131
|
-
cellTextColor = freezedBgColor !== null && freezedBgColor !== void 0 ? freezedBgColor : undefined;
|
|
132
|
-
}
|
|
133
|
-
else if (index % 2 === 1) {
|
|
134
|
-
cellBgColor = theme.colors.backgroundColor.light;
|
|
135
|
-
}
|
|
136
|
-
var rowBgColor = undefined;
|
|
137
|
-
var rowTextColor = undefined;
|
|
138
|
-
if (row.rowStyle) {
|
|
139
|
-
rowBgColor = (_j = row.rowStyle) === null || _j === void 0 ? void 0 : _j.bg;
|
|
140
|
-
rowTextColor = (_k = row.rowStyle) === null || _k === void 0 ? void 0 : _k.color;
|
|
141
|
-
}
|
|
142
|
-
return { leftOffset: leftOffset, cellBgColor: cellBgColor, rowBgColor: rowBgColor, cellTextColor: cellTextColor, rowTextColor: rowTextColor };
|
|
143
|
-
};
|
|
144
|
-
exports.TableCellCalculation = TableCellCalculation;
|
|
145
|
-
/**
|
|
146
|
-
* Filters array of objects by checking all property values against the search query.
|
|
147
|
-
*
|
|
148
|
-
* @param data - Array of objects
|
|
149
|
-
* @param query - Search string
|
|
150
|
-
* @returns Filtered data
|
|
151
|
-
*/
|
|
152
|
-
function globalSearchFilter(data, query) {
|
|
153
|
-
if (!query.trim())
|
|
154
|
-
return data;
|
|
155
|
-
var lowerQuery = query.toLowerCase();
|
|
156
|
-
return data.filter(function (item) {
|
|
157
|
-
return Object.values(item).some(function (val) {
|
|
158
|
-
if (val === null ||
|
|
159
|
-
val === undefined ||
|
|
160
|
-
typeof val === "object" ||
|
|
161
|
-
typeof val === "function") {
|
|
162
|
-
return false;
|
|
163
|
-
}
|
|
164
|
-
return String(val).toLowerCase().includes(lowerQuery);
|
|
165
|
-
});
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
exports.globalSearchFilter = globalSearchFilter;
|
package/dist/bootstrap.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
package/dist/bootstrap.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var react_1 = __importDefault(require("react"));
|
|
7
|
-
var client_1 = __importDefault(require("react-dom/client"));
|
|
8
|
-
var App_1 = __importDefault(require("./App"));
|
|
9
|
-
var withTheme_1 = __importDefault(require("./withTheme"));
|
|
10
|
-
require("./index.css");
|
|
11
|
-
var root = client_1.default.createRoot(document.getElementById("root"));
|
|
12
|
-
var ThemeApp = (0, withTheme_1.default)(App_1.default);
|
|
13
|
-
root.render(react_1.default.createElement(react_1.default.StrictMode, null,
|
|
14
|
-
react_1.default.createElement(ThemeApp, null)));
|