pixelize-design-library 2.1.20 → 2.1.21
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/dist/App.d.ts +4 -0
- package/dist/App.js +158 -0
- package/dist/Assets/defaultLogo.d.ts +3 -0
- package/dist/Assets/defaultLogo.js +15 -0
- package/dist/Components/Accordion/Accordion.d.ts +4 -0
- package/dist/Components/Accordion/Accordion.js +40 -0
- package/dist/Components/Accordion/AccordionProps.d.ts +17 -0
- package/dist/Components/Accordion/AccordionProps.js +2 -0
- package/dist/Components/AlertDialog/AlertDialog.d.ts +4 -0
- package/dist/Components/AlertDialog/AlertDialog.js +20 -0
- package/{src/Components/AlertDialog/AlertDialogProps.tsx → dist/Components/AlertDialog/AlertDialogProps.d.ts} +2 -9
- package/dist/Components/AlertDialog/AlertDialogProps.js +2 -0
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.d.ts +3 -0
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.js +64 -0
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.stories.d.ts +1 -0
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.stories.js +6 -0
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChartProps.d.ts +19 -0
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChartProps.js +2 -0
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.d.ts +3 -0
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.js +29 -0
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.stories.d.ts +1 -0
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.stories.js +6 -0
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChartProps.d.ts +41 -0
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChartProps.js +2 -0
- package/dist/Components/Breadcrumbs/Breadcrumbs.d.ts +3 -0
- package/dist/Components/Breadcrumbs/Breadcrumbs.js +17 -0
- package/dist/Components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -0
- package/dist/Components/Breadcrumbs/Breadcrumbs.stories.js +6 -0
- package/{src/Components/Breadcrumbs/BreadcrumbsProps.tsx → dist/Components/Breadcrumbs/BreadcrumbsProps.d.ts} +1 -2
- package/dist/Components/Breadcrumbs/BreadcrumbsProps.js +2 -0
- package/dist/Components/Button/Button.d.ts +5 -0
- package/dist/Components/Button/Button.js +32 -0
- package/dist/Components/Button/Button.stories.d.ts +1 -0
- package/dist/Components/Button/Button.stories.js +6 -0
- package/dist/Components/Button/Button.styles.d.ts +2 -0
- package/dist/Components/Button/Button.styles.js +112 -0
- package/dist/Components/Button/ButtonProps.d.ts +13 -0
- package/dist/Components/Button/ButtonProps.js +2 -0
- package/dist/Components/ButtonGroupIcon/ButtonGoupIconProps.d.ts +33 -0
- package/dist/Components/ButtonGroupIcon/ButtonGoupIconProps.js +2 -0
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.d.ts +5 -0
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.js +86 -0
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.stories.d.ts +1 -0
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.stories.js +6 -0
- package/dist/Components/Buttons/Buttons.d.ts +4 -0
- package/dist/Components/Buttons/Buttons.js +11 -0
- package/{src/Components/Buttons/ButtonsProps.ts → dist/Components/Buttons/ButtonsProps.d.ts} +1 -1
- package/dist/Components/Buttons/ButtonsProps.js +2 -0
- package/dist/Components/Card/Card.d.ts +3 -0
- package/dist/Components/Card/Card.js +12 -0
- package/dist/Components/Card/CardProps.d.ts +14 -0
- package/dist/Components/Card/CardProps.js +2 -0
- package/dist/Components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/Components/Checkbox/Checkbox.js +20 -0
- package/dist/Components/Checkbox/Checkbox.stories.d.ts +1 -0
- package/dist/Components/Checkbox/Checkbox.stories.js +7 -0
- package/dist/Components/Checkbox/Checkbox.styles.d.ts +2 -0
- package/dist/Components/Checkbox/Checkbox.styles.js +54 -0
- package/dist/Components/Checkbox/CheckboxProps.d.ts +15 -0
- package/dist/Components/Checkbox/CheckboxProps.js +2 -0
- package/dist/Components/Common/ErrorComponent.d.ts +6 -0
- package/dist/Components/Common/ErrorComponent.js +16 -0
- package/dist/Components/Common/ErrorMessage.d.ts +5 -0
- package/dist/Components/Common/ErrorMessage.js +17 -0
- package/dist/Components/Common/FormLabel.d.ts +8 -0
- package/dist/Components/Common/FormLabel.js +22 -0
- package/dist/Components/Common/HelperText.d.ts +5 -0
- package/dist/Components/Common/HelperText.js +14 -0
- package/dist/Components/Common/Label.d.ts +7 -0
- package/dist/Components/Common/Label.js +13 -0
- package/dist/Components/ContactForm/ContactForm.d.ts +4 -0
- package/dist/Components/ContactForm/ContactForm.js +215 -0
- package/dist/Components/ContactForm/ContactFormProps.d.ts +9 -0
- package/dist/Components/ContactForm/ContactFormProps.js +2 -0
- package/dist/Components/DatePicker/DatePicker.d.ts +3 -0
- package/dist/Components/DatePicker/DatePicker.js +235 -0
- package/dist/Components/DatePicker/DatePickerProps.d.ts +42 -0
- package/dist/Components/DatePicker/DatePickerProps.js +2 -0
- package/dist/Components/DatePicker/TimePicker.d.ts +4 -0
- package/dist/Components/DatePicker/TimePicker.js +101 -0
- package/dist/Components/Divider/Divider.d.ts +3 -0
- package/dist/Components/Divider/Divider.js +14 -0
- package/dist/Components/Drawer/Drawer.d.ts +12 -0
- package/dist/Components/Drawer/Drawer.js +40 -0
- package/dist/Components/Drawer/DrawerProps.d.ts +8 -0
- package/dist/Components/Drawer/DrawerProps.js +2 -0
- package/dist/Components/Dropdown/DropDown.d.ts +4 -0
- package/dist/Components/Dropdown/DropDown.js +97 -0
- package/dist/Components/Dropdown/DropdownProps.d.ts +26 -0
- package/dist/Components/Dropdown/DropdownProps.js +2 -0
- package/dist/Components/Editor/Editor.d.ts +3 -0
- package/dist/Components/Editor/Editor.js +12 -0
- package/dist/Components/Editor/EditorProps.d.ts +5 -0
- package/dist/Components/Editor/EditorProps.js +2 -0
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.d.ts +3 -0
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.js +44 -0
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtpProps.d.ts +13 -0
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtpProps.js +2 -0
- package/dist/Components/FileUpload/FileUpload.d.ts +4 -0
- package/dist/Components/FileUpload/FileUpload.js +156 -0
- package/dist/Components/FileUpload/FileUploadProps.d.ts +11 -0
- package/dist/Components/FileUpload/FileUploadProps.js +2 -0
- package/dist/Components/FileUpload/constants.d.ts +3 -0
- package/dist/Components/FileUpload/constants.js +28 -0
- package/dist/Components/Form/FormWrapper.d.ts +7 -0
- package/dist/Components/Form/FormWrapper.js +19 -0
- package/dist/Components/Header/Header.d.ts +4 -0
- package/dist/Components/Header/Header.js +57 -0
- package/dist/Components/Header/HeaderActions.d.ts +23 -0
- package/dist/Components/Header/HeaderActions.js +37 -0
- package/dist/Components/Header/HeaderProps.d.ts +44 -0
- package/dist/Components/Header/HeaderProps.js +2 -0
- package/dist/Components/Header/components/desktopMenu.d.ts +4 -0
- package/dist/Components/Header/components/desktopMenu.js +33 -0
- package/dist/Components/Header/components/mobileMenu.d.ts +4 -0
- package/dist/Components/Header/components/mobileMenu.js +32 -0
- package/dist/Components/Input/Input/Input.d.ts +4 -0
- package/dist/Components/Input/Input/Input.js +45 -0
- package/{src/Components/Input/Input/InputProps.tsx → dist/Components/Input/Input/InputProps.d.ts} +1 -2
- package/dist/Components/Input/Input/InputProps.js +2 -0
- package/dist/Components/Input/TextInput.d.ts +4 -0
- package/dist/Components/Input/TextInput.js +68 -0
- package/dist/Components/Input/TextInput.stories.d.ts +1 -0
- package/dist/Components/Input/TextInput.stories.js +8 -0
- package/dist/Components/Input/TextInput.styles.d.ts +2 -0
- package/{src/Components/Input/TextInput.styles.ts → dist/Components/Input/TextInput.styles.js} +19 -20
- package/{src/Components/Input/TextInputProps.tsx → dist/Components/Input/TextInputProps.d.ts} +2 -21
- package/dist/Components/Input/TextInputProps.js +2 -0
- package/dist/Components/InputTextArea/InputTextArea.d.ts +3 -0
- package/dist/Components/InputTextArea/InputTextArea.js +16 -0
- package/dist/Components/InputTextArea/InputTextArea.stories.d.ts +1 -0
- package/dist/Components/InputTextArea/InputTextArea.stories.js +7 -0
- package/{src/Components/InputTextArea/InputTextAreaProps.tsx → dist/Components/InputTextArea/InputTextAreaProps.d.ts} +1 -2
- package/dist/Components/InputTextArea/InputTextAreaProps.js +2 -0
- package/dist/Components/KanbanBoard/AccountCard.d.ts +9 -0
- package/dist/Components/KanbanBoard/AccountCard.js +74 -0
- package/dist/Components/KanbanBoard/AccountRow.d.ts +6 -0
- package/dist/Components/KanbanBoard/AccountRow.js +20 -0
- package/dist/Components/KanbanBoard/KanbanActions/KanbanActions.d.ts +9 -0
- package/dist/Components/KanbanBoard/KanbanActions/KanbanActions.js +26 -0
- package/dist/Components/KanbanBoard/KanbanBoard.d.ts +4 -0
- package/dist/Components/KanbanBoard/KanbanBoard.js +120 -0
- package/dist/Components/KanbanBoard/KanbanBoardProps.d.ts +27 -0
- package/dist/Components/KanbanBoard/KanbanBoardProps.js +2 -0
- package/dist/Components/Loading/Loading.d.ts +3 -0
- package/dist/Components/Loading/Loading.js +36 -0
- package/dist/Components/Loading/Loading.stories.d.ts +1 -0
- package/dist/Components/Loading/Loading.stories.js +7 -0
- package/dist/Components/Loading/LoadingProps.d.ts +5 -0
- package/dist/Components/Loading/LoadingProps.js +2 -0
- package/dist/Components/Modal/Modal.d.ts +12 -0
- package/dist/Components/Modal/Modal.js +50 -0
- package/dist/Components/Modal/Modal.stories.d.ts +1 -0
- package/dist/Components/Modal/Modal.stories.js +7 -0
- package/dist/Components/Modal/ModalProps.d.ts +11 -0
- package/dist/Components/Modal/ModalProps.js +2 -0
- package/dist/Components/MultiSelect/MultiSelect.d.ts +3 -0
- package/dist/Components/MultiSelect/MultiSelect.js +115 -0
- package/dist/Components/MultiSelect/MultiSelectProps.d.ts +20 -0
- package/dist/Components/MultiSelect/MultiSelectProps.js +2 -0
- package/dist/Components/NavigationBar/NavBar.stories.d.ts +1 -0
- package/dist/Components/NavigationBar/NavBar.stories.js +3 -0
- package/dist/Components/NavigationBar/NavigationBar.d.ts +3 -0
- package/dist/Components/NavigationBar/NavigationBar.js +50 -0
- package/dist/Components/NavigationBar/NavigationBarProps.d.ts +19 -0
- package/dist/Components/NavigationBar/NavigationBarProps.js +2 -0
- package/dist/Components/NoteTextArea/NoteTextArea.d.ts +3 -0
- package/dist/Components/NoteTextArea/NoteTextArea.js +274 -0
- package/dist/Components/NoteTextArea/NoteTextAreaProps.d.ts +16 -0
- package/dist/Components/NoteTextArea/NoteTextAreaProps.js +2 -0
- package/dist/Components/NumberInput/NumberInput.d.ts +3 -0
- package/dist/Components/NumberInput/NumberInput.js +16 -0
- package/dist/Components/NumberInput/NumberInput.stories.d.ts +1 -0
- package/dist/Components/NumberInput/NumberInput.stories.js +5 -0
- package/dist/Components/NumberInput/NumberInputProps.d.ts +12 -0
- package/dist/Components/NumberInput/NumberInputProps.js +2 -0
- package/dist/Components/PinInput/PinInput.d.ts +3 -0
- package/dist/Components/PinInput/PinInput.js +15 -0
- package/dist/Components/PinInput/PinInput.stories.d.ts +1 -0
- package/dist/Components/PinInput/PinInput.stories.js +6 -0
- package/dist/Components/PinInput/PinInputProps.d.ts +9 -0
- package/dist/Components/PinInput/PinInputProps.js +2 -0
- package/dist/Components/PinInputs/PinInputs.d.ts +4 -0
- package/dist/Components/PinInputs/PinInputs.js +71 -0
- package/{src/Components/PinInputs/PinInputsProps.tsx → dist/Components/PinInputs/PinInputsProps.d.ts} +1 -1
- package/dist/Components/PinInputs/PinInputsProps.js +2 -0
- package/dist/Components/ProductCard/ProductCard.d.ts +4 -0
- package/dist/Components/ProductCard/ProductCard.js +51 -0
- package/{src/Components/ProductCard/ProductCardProps.tsx → dist/Components/ProductCard/ProductCardProps.d.ts} +14 -15
- package/dist/Components/ProductCard/ProductCardProps.js +2 -0
- package/dist/Components/ProductCard/ProductLabel.d.ts +6 -0
- package/dist/Components/ProductCard/ProductLabel.js +14 -0
- package/dist/Components/ProductCard/ProductPrice.d.ts +7 -0
- package/dist/Components/ProductCard/ProductPrice.js +88 -0
- package/dist/Components/ProductCard/ProductReview.d.ts +7 -0
- package/dist/Components/ProductCard/ProductReview.js +23 -0
- package/dist/Components/ProductCard/ProductTags.d.ts +7 -0
- package/dist/Components/ProductCard/ProductTags.js +30 -0
- package/dist/Components/ProfileCard/ProfileCard.d.ts +12 -0
- package/dist/Components/ProfileCard/ProfileCard.js +57 -0
- package/dist/Components/ProfileCard/ProfileCard.stories.d.ts +1 -0
- package/dist/Components/ProfileCard/ProfileCard.stories.js +6 -0
- package/dist/Components/ProfileCard/ProfileCardProps.d.ts +16 -0
- package/dist/Components/ProfileCard/ProfileCardProps.js +2 -0
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.d.ts +3 -0
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.js +94 -0
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.stories.d.ts +1 -0
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.stories.js +6 -0
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewerProps.d.ts +19 -0
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewerProps.js +2 -0
- package/dist/Components/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/Components/ProgressBar/ProgressBar.js +12 -0
- package/dist/Components/ProgressBar/ProgressBar.stories.d.ts +1 -0
- package/dist/Components/ProgressBar/ProgressBar.stories.js +7 -0
- package/{src/Components/ProgressBar/ProgressBarProps.tsx → dist/Components/ProgressBar/ProgressBarProps.d.ts} +5 -6
- package/dist/Components/ProgressBar/ProgressBarProps.js +2 -0
- package/dist/Components/RadioButton/RadioButton.d.ts +5 -0
- package/dist/Components/RadioButton/RadioButton.js +31 -0
- package/dist/Components/RadioButton/RadioButton.stories.d.ts +1 -0
- package/dist/Components/RadioButton/RadioButton.stories.js +7 -0
- package/dist/Components/RadioButton/RadioButtonProps.d.ts +11 -0
- package/dist/Components/RadioButton/RadioButtonProps.js +2 -0
- package/dist/Components/Reorder/Reorder.d.ts +4 -0
- package/dist/Components/Reorder/Reorder.js +50 -0
- package/dist/Components/Reorder/ReorderProps.d.ts +10 -0
- package/dist/Components/Reorder/ReorderProps.js +2 -0
- package/dist/Components/Search/Search.d.ts +3 -0
- package/dist/Components/Search/Search.js +66 -0
- package/dist/Components/Search/SearchProps.d.ts +8 -0
- package/dist/Components/Search/SearchProps.js +2 -0
- package/dist/Components/SearchSelect/SearchSelect.d.ts +4 -0
- package/dist/Components/SearchSelect/SearchSelect.js +237 -0
- package/dist/Components/SearchSelect/SearchSelectProps.d.ts +60 -0
- package/dist/Components/SearchSelect/SearchSelectProps.js +2 -0
- package/dist/Components/SearchSelect/SelectTruncatedLabel.d.ts +6 -0
- package/dist/Components/SearchSelect/SelectTruncatedLabel.js +45 -0
- package/dist/Components/Select/Select.d.ts +3 -0
- package/dist/Components/Select/Select.js +54 -0
- package/dist/Components/Select/Select.stories.d.ts +1 -0
- package/dist/Components/Select/Select.stories.js +8 -0
- package/dist/Components/Select/Select.styles.d.ts +2 -0
- package/dist/Components/Select/Select.styles.js +98 -0
- package/dist/Components/Select/SelectProps.d.ts +20 -0
- package/dist/Components/Select/SelectProps.js +2 -0
- package/dist/Components/SelectSearch/SelectSearch.d.ts +3 -0
- package/dist/Components/SelectSearch/SelectSearch.js +239 -0
- package/dist/Components/SelectSearch/SelectSearchProps.d.ts +42 -0
- package/dist/Components/SelectSearch/SelectSearchProps.js +2 -0
- package/dist/Components/SideBar/SideBar.d.ts +3 -0
- package/dist/Components/SideBar/SideBar.js +55 -0
- package/dist/Components/SideBar/SideBarProps.d.ts +29 -0
- package/dist/Components/SideBar/SideBarProps.js +2 -0
- package/dist/Components/SideBar/Sidebar.stories.d.ts +1 -0
- package/dist/Components/SideBar/Sidebar.stories.js +7 -0
- package/dist/Components/SideBar/components/MenuItemBox.d.ts +11 -0
- package/dist/Components/SideBar/components/MenuItemBox.js +116 -0
- package/dist/Components/SideBar/components/MenuItems.d.ts +4 -0
- package/dist/Components/SideBar/components/MenuItems.js +13 -0
- package/dist/Components/SideBar/components/MenuPopoverContent.d.ts +9 -0
- package/dist/Components/SideBar/components/MenuPopoverContent.js +37 -0
- package/dist/Components/SideBar/components/TextTruncation.d.ts +8 -0
- package/dist/Components/SideBar/components/TextTruncation.js +77 -0
- package/dist/Components/Skeletons/Skeleton.stories.d.ts +1 -0
- package/dist/Components/Skeletons/Skeleton.stories.js +7 -0
- package/dist/Components/Skeletons/SkeletonProps.d.ts +4 -0
- package/dist/Components/Skeletons/SkeletonProps.js +2 -0
- package/dist/Components/Skeletons/Skeletons.d.ts +3 -0
- package/dist/Components/Skeletons/Skeletons.js +15 -0
- package/dist/Components/Slider/Slider.d.ts +8 -0
- package/dist/Components/Slider/Slider.js +57 -0
- package/dist/Components/Switch/Switch.d.ts +3 -0
- package/dist/Components/Switch/Switch.js +39 -0
- package/dist/Components/Switch/SwitchProps.d.ts +9 -0
- package/dist/Components/Switch/SwitchProps.js +2 -0
- package/dist/Components/Table/Components/HeaderActions.d.ts +7 -0
- package/dist/Components/Table/Components/HeaderActions.js +45 -0
- package/dist/Components/Table/Components/Pagination.d.ts +14 -0
- package/dist/Components/Table/Components/Pagination.js +32 -0
- package/dist/Components/Table/Components/TableActions.d.ts +3 -0
- package/dist/Components/Table/Components/TableActions.js +28 -0
- package/dist/Components/Table/Components/TableBody.d.ts +4 -0
- package/dist/Components/Table/Components/TableBody.js +140 -0
- package/dist/Components/Table/Components/TableFilters.d.ts +4 -0
- package/dist/Components/Table/Components/TableFilters.js +59 -0
- package/dist/Components/Table/Components/TableHeader.d.ts +4 -0
- package/dist/Components/Table/Components/TableHeader.js +147 -0
- package/dist/Components/Table/Components/TableLoading.d.ts +7 -0
- package/dist/Components/Table/Components/TableLoading.js +41 -0
- package/dist/Components/Table/Components/TableSearch.d.ts +6 -0
- package/dist/Components/Table/Components/TableSearch.js +60 -0
- package/dist/Components/Table/Components/useDebounce.d.ts +2 -0
- package/dist/Components/Table/Components/useDebounce.js +28 -0
- package/dist/Components/Table/Components/useTable.d.ts +46 -0
- package/dist/Components/Table/Components/useTable.js +168 -0
- package/dist/Components/Table/Table.d.ts +3 -0
- package/dist/Components/Table/Table.js +129 -0
- package/dist/Components/Table/Table.stories.d.ts +1 -0
- package/dist/Components/Table/Table.stories.js +9 -0
- package/dist/Components/Table/TableProps.d.ts +112 -0
- package/dist/Components/Table/TableProps.js +2 -0
- package/dist/Components/Table/TableSettings/ManageColumns.d.ts +10 -0
- package/dist/Components/Table/TableSettings/ManageColumns.js +107 -0
- package/dist/Components/Table/TableSettings/TableSettings.d.ts +7 -0
- package/dist/Components/Table/TableSettings/TableSettings.js +73 -0
- package/dist/Components/Table/TableToDo.d.ts +2 -0
- package/{src/Components/Table/TableToDo.tsx → dist/Components/Table/TableToDo.js} +100 -105
- package/dist/Components/Tag/Tag.d.ts +12 -0
- package/dist/Components/Tag/Tag.js +21 -0
- package/dist/Components/Tag/Tag.styles.d.ts +2 -0
- package/dist/Components/Tag/Tag.styles.js +63 -0
- package/dist/Components/Timeline/Timeline.d.ts +4 -0
- package/dist/Components/Timeline/Timeline.js +166 -0
- package/dist/Components/Timeline/TimelineProps.d.ts +20 -0
- package/dist/Components/Timeline/TimelineProps.js +2 -0
- package/dist/Components/Toaster/Toaster.d.ts +4 -0
- package/dist/Components/Toaster/Toaster.js +86 -0
- package/dist/Components/Toaster/Toaster.stories.d.ts +1 -0
- package/dist/Components/Toaster/Toaster.stories.js +8 -0
- package/{src/Components/Toaster/ToasterProps.tsx → dist/Components/Toaster/ToasterProps.d.ts} +6 -9
- package/dist/Components/Toaster/ToasterProps.js +2 -0
- package/dist/Components/Toggle/TableToggle.d.ts +4 -0
- package/dist/Components/Toggle/TableToggle.js +60 -0
- package/{src/Components/Toggle/TableToggleProps.ts → dist/Components/Toggle/TableToggleProps.d.ts} +2 -3
- package/dist/Components/Toggle/TableToggleProps.js +2 -0
- package/dist/Components/ToolTip/ToolTip.d.ts +3 -0
- package/dist/Components/ToolTip/ToolTip.js +12 -0
- package/dist/Components/ToolTip/ToolTip.stories.d.ts +1 -0
- package/dist/Components/ToolTip/ToolTip.stories.js +7 -0
- package/dist/Components/ToolTip/ToolTipProps.d.ts +7 -0
- package/dist/Components/ToolTip/ToolTipProps.js +2 -0
- package/dist/Components/Trail/EditableCell.d.ts +11 -0
- package/dist/Components/Trail/EditableCell.js +71 -0
- package/dist/Components/Trail/SelectAllCheckbox.d.ts +8 -0
- package/dist/Components/Trail/SelectAllCheckbox.js +13 -0
- package/dist/Components/Trail/TrailWorks.d.ts +3 -0
- package/{src/Components/Trail/TrailWorks.tsx → dist/Components/Trail/TrailWorks.js} +65 -108
- package/dist/Components/Trail/data.d.ts +15 -0
- package/dist/Components/Trail/data.js +29 -0
- package/dist/Constants/Sidebar.d.ts +38 -0
- package/dist/Constants/Sidebar.js +42 -0
- package/dist/Hooks/usePreferences.d.ts +24 -0
- package/dist/Hooks/usePreferences.js +73 -0
- package/dist/Layout.d.ts +3 -0
- package/dist/Layout.js +269 -0
- package/dist/Pages/TInput.d.ts +3 -0
- package/dist/Pages/TInput.js +46 -0
- package/dist/Pages/accordion.d.ts +3 -0
- package/dist/Pages/accordion.js +42 -0
- package/dist/Pages/alertdialog.d.ts +3 -0
- package/dist/Pages/alertdialog.js +44 -0
- package/dist/Pages/button.d.ts +3 -0
- package/dist/Pages/button.js +29 -0
- package/dist/Pages/card.d.ts +3 -0
- package/dist/Pages/card.js +48 -0
- package/dist/Pages/chart.d.ts +3 -0
- package/dist/Pages/chart.js +28 -0
- package/dist/Pages/checkbox.d.ts +3 -0
- package/dist/Pages/checkbox.js +12 -0
- package/dist/Pages/contactForm.d.ts +3 -0
- package/dist/Pages/contactForm.js +16 -0
- package/dist/Pages/datePick.d.ts +3 -0
- package/dist/Pages/datePick.js +70 -0
- package/dist/Pages/drawer.d.ts +3 -0
- package/dist/Pages/drawer.js +48 -0
- package/dist/Pages/dropdown.d.ts +3 -0
- package/dist/Pages/dropdown.js +24 -0
- package/dist/Pages/editor.d.ts +3 -0
- package/dist/Pages/editor.js +14 -0
- package/dist/Pages/fileUpload.d.ts +2 -0
- package/dist/Pages/fileUpload.js +65 -0
- package/dist/Pages/input.d.ts +3 -0
- package/dist/Pages/input.js +42 -0
- package/dist/Pages/kanbanboard.d.ts +3 -0
- package/dist/Pages/kanbanboard.js +115 -0
- package/dist/Pages/modal.d.ts +3 -0
- package/dist/Pages/modal.js +55 -0
- package/dist/Pages/multiSelect.d.ts +3 -0
- package/dist/Pages/multiSelect.js +45 -0
- package/dist/Pages/noteArea.d.ts +3 -0
- package/dist/Pages/noteArea.js +49 -0
- package/dist/Pages/numberInput.d.ts +3 -0
- package/dist/Pages/numberInput.js +39 -0
- package/dist/Pages/photoViewer.d.ts +3 -0
- package/dist/Pages/photoViewer.js +12 -0
- package/dist/Pages/pinInputs.d.ts +3 -0
- package/dist/Pages/pinInputs.js +12 -0
- package/dist/Pages/productCaard.d.ts +3 -0
- package/dist/Pages/productCaard.js +32 -0
- package/dist/Pages/progressbar.d.ts +3 -0
- package/dist/Pages/progressbar.js +12 -0
- package/dist/Pages/radioButton.d.ts +3 -0
- package/dist/Pages/radioButton.js +44 -0
- package/dist/Pages/search.d.ts +3 -0
- package/dist/Pages/search.js +44 -0
- package/dist/Pages/searchSelect.d.ts +3 -0
- package/dist/Pages/searchSelect.js +151 -0
- package/dist/Pages/select.d.ts +3 -0
- package/dist/Pages/select.js +43 -0
- package/dist/Pages/selectSearch.d.ts +3 -0
- package/dist/Pages/selectSearch.js +93 -0
- package/dist/Pages/skeleton.d.ts +3 -0
- package/dist/Pages/skeleton.js +22 -0
- package/dist/Pages/switch.d.ts +3 -0
- package/dist/Pages/switch.js +40 -0
- package/dist/Pages/table.d.ts +2 -0
- package/dist/Pages/table.js +144 -0
- package/dist/Pages/textArea.d.ts +3 -0
- package/dist/Pages/textArea.js +12 -0
- package/dist/Pages/timeline.d.ts +3 -0
- package/dist/Pages/timeline.js +74 -0
- package/dist/Pages/tooltip.d.ts +3 -0
- package/dist/Pages/tooltip.js +12 -0
- package/dist/Pages/toster.d.ts +3 -0
- package/dist/Pages/toster.js +63 -0
- package/dist/Pages/verifyEmail.d.ts +3 -0
- package/dist/Pages/verifyEmail.js +18 -0
- package/dist/Theme/Dark/theme.d.ts +2 -0
- package/{src/Theme/Dark/theme.ts → dist/Theme/Dark/theme.js} +79 -74
- package/dist/Theme/Default/palette.d.ts +370 -0
- package/dist/Theme/Default/palette.js +372 -0
- package/dist/Theme/Default/theme.d.ts +2 -0
- package/dist/Theme/Default/theme.js +23 -0
- package/dist/Theme/Meadow/palette.d.ts +368 -0
- package/dist/Theme/Meadow/palette.js +356 -0
- package/dist/Theme/Meadow/theme.d.ts +2 -0
- package/dist/Theme/Meadow/theme.js +23 -0
- package/dist/Theme/Radiant/palette.d.ts +368 -0
- package/dist/Theme/Radiant/palette.js +356 -0
- package/dist/Theme/Radiant/theme.d.ts +2 -0
- package/dist/Theme/Radiant/theme.js +23 -0
- package/dist/Theme/Skyline/palette.d.ts +368 -0
- package/dist/Theme/Skyline/palette.js +356 -0
- package/dist/Theme/Skyline/theme.d.ts +2 -0
- package/dist/Theme/Skyline/theme.js +23 -0
- package/dist/Theme/common.d.ts +166 -0
- package/{src/Theme/common.ts → dist/Theme/common.js} +22 -30
- package/dist/Theme/componentStyles.d.ts +7 -0
- package/dist/Theme/componentStyles.js +15 -0
- package/dist/Theme/fonts.d.ts +34 -0
- package/dist/Theme/fonts.js +41 -0
- package/{src/Theme/index.ts → dist/Theme/index.d.ts} +6 -8
- package/dist/Theme/index.js +20 -0
- package/dist/Theme/space.d.ts +33 -0
- package/dist/Theme/space.js +35 -0
- package/dist/Theme/theme.d.ts +2 -0
- package/dist/Theme/theme.js +9 -0
- package/dist/Theme/themeProps.d.ts +475 -0
- package/dist/Theme/themeProps.js +3 -0
- package/dist/Theme/useCustomTheme.d.ts +2 -0
- package/dist/Theme/useCustomTheme.js +8 -0
- package/dist/Utils/table.d.ts +36 -0
- package/dist/Utils/table.js +168 -0
- package/dist/bootstrap.d.ts +1 -0
- package/dist/bootstrap.js +14 -0
- package/dist/index.d.ts +55 -1468
- package/dist/index.js +148 -263
- package/dist/withTheme.d.ts +3 -0
- package/dist/withTheme.js +28 -0
- package/package.json +10 -24
- package/.github/workflows/build.yml +0 -31
- package/src/Components/Accordion/Accordion.tsx +0 -59
- package/src/Components/Accordion/AccordionProps.tsx +0 -22
- package/src/Components/AlertDialog/AlertDialog.tsx +0 -69
- package/src/Components/Apexcharts/ApexBarChart/ApexBarChart.stories.tsx +0 -42
- package/src/Components/Apexcharts/ApexBarChart/ApexBarChart.tsx +0 -80
- package/src/Components/Apexcharts/ApexBarChart/ApexBarChartProps.tsx +0 -19
- package/src/Components/Apexcharts/ApexPieChart/ApexPieChart.stories.tsx +0 -34
- package/src/Components/Apexcharts/ApexPieChart/ApexPieChart.tsx +0 -42
- package/src/Components/Apexcharts/ApexPieChart/ApexPieChartProps.tsx +0 -42
- package/src/Components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -27
- package/src/Components/Breadcrumbs/Breadcrumbs.tsx +0 -42
- package/src/Components/Button/Button.stories.tsx +0 -33
- package/src/Components/Button/Button.styles.ts +0 -104
- package/src/Components/Button/Button.tsx +0 -49
- package/src/Components/Button/ButtonProps.tsx +0 -25
- package/src/Components/ButtonGroupIcon/ButtonGoupIconProps.tsx +0 -46
- package/src/Components/ButtonGroupIcon/ButtonGroupIcon.stories.tsx +0 -37
- package/src/Components/ButtonGroupIcon/ButtonGroupIcon.tsx +0 -159
- package/src/Components/Buttons/Buttons.tsx +0 -16
- package/src/Components/Card/Card.tsx +0 -35
- package/src/Components/Card/CardProps.tsx +0 -41
- package/src/Components/Checkbox/Checkbox.stories.tsx +0 -46
- package/src/Components/Checkbox/Checkbox.styles.ts +0 -56
- package/src/Components/Checkbox/Checkbox.tsx +0 -68
- package/src/Components/Checkbox/CheckboxProps.tsx +0 -42
- package/src/Components/Common/ErrorComponent.tsx +0 -16
- package/src/Components/Common/ErrorMessage.tsx +0 -22
- package/src/Components/Common/FormLabel.tsx +0 -48
- package/src/Components/Common/HelperText.tsx +0 -14
- package/src/Components/Common/Label.tsx +0 -12
- package/src/Components/ContactForm/ContactForm.tsx +0 -250
- package/src/Components/ContactForm/ContactFormProps.tsx +0 -10
- package/src/Components/DatePicker/DatePicker.tsx +0 -378
- package/src/Components/DatePicker/DatePickerProps.tsx +0 -48
- package/src/Components/DatePicker/TimePicker.tsx +0 -112
- package/src/Components/Divider/Divider.tsx +0 -17
- package/src/Components/Drawer/Drawer.tsx +0 -66
- package/src/Components/Drawer/DrawerProps.tsx +0 -11
- package/src/Components/Dropdown/DropDown.tsx +0 -189
- package/src/Components/Dropdown/DropdownProps.tsx +0 -26
- package/src/Components/Editor/Editor.tsx +0 -23
- package/src/Components/Editor/EditorProps.tsx +0 -8
- package/src/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.tsx +0 -78
- package/src/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtpProps.tsx +0 -12
- package/src/Components/FileUpload/FileUpload.tsx +0 -282
- package/src/Components/FileUpload/FileUploadProps.tsx +0 -34
- package/src/Components/FileUpload/constants.ts +0 -30
- package/src/Components/Form/FormWrapper.tsx +0 -47
- package/src/Components/Header/Header.tsx +0 -92
- package/src/Components/Header/HeaderActions.tsx +0 -96
- package/src/Components/Header/HeaderProps.ts +0 -72
- package/src/Components/Header/components/desktopMenu.tsx +0 -116
- package/src/Components/Header/components/mobileMenu.tsx +0 -99
- package/src/Components/Input/Input/Input.tsx +0 -56
- package/src/Components/Input/TextInput.stories.tsx +0 -46
- package/src/Components/Input/TextInput.tsx +0 -112
- package/src/Components/InputTextArea/InputTextArea.stories.tsx +0 -49
- package/src/Components/InputTextArea/InputTextArea.tsx +0 -54
- package/src/Components/KanbanBoard/AccountCard.tsx +0 -121
- package/src/Components/KanbanBoard/AccountRow.tsx +0 -35
- package/src/Components/KanbanBoard/KanbanActions/KanbanActions.tsx +0 -37
- package/src/Components/KanbanBoard/KanbanBoard.tsx +0 -185
- package/src/Components/KanbanBoard/KanbanBoardProps.ts +0 -34
- package/src/Components/Loading/Loading.stories.tsx +0 -26
- package/src/Components/Loading/Loading.tsx +0 -80
- package/src/Components/Loading/LoadingProps.tsx +0 -5
- package/src/Components/Modal/Modal.stories.tsx +0 -107
- package/src/Components/Modal/Modal.tsx +0 -107
- package/src/Components/Modal/ModalProps.tsx +0 -22
- package/src/Components/MultiSelect/MultiSelect.tsx +0 -154
- package/src/Components/MultiSelect/MultiSelectProps.tsx +0 -20
- package/src/Components/NavigationBar/NavBar.stories.tsx +0 -27
- package/src/Components/NavigationBar/NavigationBar.tsx +0 -125
- package/src/Components/NavigationBar/NavigationBarProps.tsx +0 -19
- package/src/Components/NoteTextArea/NoteTextArea.tsx +0 -409
- package/src/Components/NoteTextArea/NoteTextAreaProps.tsx +0 -22
- package/src/Components/NumberInput/NumberInput.stories.tsx +0 -32
- package/src/Components/NumberInput/NumberInput.tsx +0 -63
- package/src/Components/NumberInput/NumberInputProps.tsx +0 -28
- package/src/Components/PinInput/PinInput.stories.tsx +0 -41
- package/src/Components/PinInput/PinInput.tsx +0 -49
- package/src/Components/PinInput/PinInputProps.tsx +0 -33
- package/src/Components/PinInputs/PinInputs.tsx +0 -63
- package/src/Components/ProductCard/ProductCard.tsx +0 -77
- package/src/Components/ProductCard/ProductLabel.tsx +0 -13
- package/src/Components/ProductCard/ProductPrice.tsx +0 -177
- package/src/Components/ProductCard/ProductReview.tsx +0 -37
- package/src/Components/ProductCard/ProductTags.tsx +0 -57
- package/src/Components/ProfileCard/ProfileCard.stories.tsx +0 -31
- package/src/Components/ProfileCard/ProfileCard.tsx +0 -97
- package/src/Components/ProfileCard/ProfileCardProps.tsx +0 -39
- package/src/Components/ProfilePhotoViewer/ProfilePhotoViewer.stories.tsx +0 -26
- package/src/Components/ProfilePhotoViewer/ProfilePhotoViewer.tsx +0 -177
- package/src/Components/ProfilePhotoViewer/ProfilePhotoViewerProps.tsx +0 -18
- package/src/Components/ProgressBar/ProgressBar.stories.tsx +0 -48
- package/src/Components/ProgressBar/ProgressBar.tsx +0 -31
- package/src/Components/RadioButton/RadioButton.stories.tsx +0 -47
- package/src/Components/RadioButton/RadioButton.tsx +0 -78
- package/src/Components/RadioButton/RadioButtonProps.tsx +0 -10
- package/src/Components/Reorder/Reorder.tsx +0 -121
- package/src/Components/Reorder/ReorderProps.tsx +0 -11
- package/src/Components/Search/Search.tsx +0 -80
- package/src/Components/Search/SearchProps.tsx +0 -7
- package/src/Components/SearchSelect/SearchSelect.tsx +0 -525
- package/src/Components/SearchSelect/SearchSelectProps.tsx +0 -60
- package/src/Components/SearchSelect/SelectTruncatedLabel.tsx +0 -31
- package/src/Components/Select/Select.stories.tsx +0 -59
- package/src/Components/Select/Select.styles.ts +0 -97
- package/src/Components/Select/Select.tsx +0 -89
- package/src/Components/Select/SelectProps.tsx +0 -37
- package/src/Components/SelectSearch/SelectSearch.tsx +0 -447
- package/src/Components/SelectSearch/SelectSearchProps.tsx +0 -43
- package/src/Components/SideBar/SideBar.tsx +0 -206
- package/src/Components/SideBar/SideBarProps.tsx +0 -31
- package/src/Components/SideBar/Sidebar.stories.tsx +0 -80
- package/src/Components/SideBar/components/MenuItemBox.tsx +0 -217
- package/src/Components/SideBar/components/MenuItems.tsx +0 -29
- package/src/Components/SideBar/components/MenuPopoverContent.tsx +0 -98
- package/src/Components/SideBar/components/TextTruncation.tsx +0 -76
- package/src/Components/Skeletons/Skeleton.stories.tsx +0 -65
- package/src/Components/Skeletons/SkeletonProps.tsx +0 -23
- package/src/Components/Skeletons/Skeletons.tsx +0 -51
- package/src/Components/Slider/Slider.tsx +0 -121
- package/src/Components/Switch/Switch.tsx +0 -104
- package/src/Components/Switch/SwitchProps.tsx +0 -28
- package/src/Components/Table/Components/HeaderActions.tsx +0 -79
- package/src/Components/Table/Components/Pagination.tsx +0 -101
- package/src/Components/Table/Components/TableActions.tsx +0 -75
- package/src/Components/Table/Components/TableBody.tsx +0 -299
- package/src/Components/Table/Components/TableFilters.tsx +0 -77
- package/src/Components/Table/Components/TableHeader.tsx +0 -314
- package/src/Components/Table/Components/TableLoading.tsx +0 -83
- package/src/Components/Table/Components/TableSearch.tsx +0 -84
- package/src/Components/Table/Components/useDebounce.ts +0 -31
- package/src/Components/Table/Components/useTable.ts +0 -220
- package/src/Components/Table/Table.stories.tsx +0 -48
- package/src/Components/Table/Table.tsx +0 -258
- package/src/Components/Table/TableProps.tsx +0 -163
- package/src/Components/Table/TableSettings/ManageColumns.tsx +0 -148
- package/src/Components/Table/TableSettings/TableSettings.tsx +0 -153
- package/src/Components/Tag/Tag.styles.tsx +0 -56
- package/src/Components/Tag/Tag.tsx +0 -68
- package/src/Components/Timeline/Timeline.tsx +0 -310
- package/src/Components/Timeline/TimelineProps.tsx +0 -22
- package/src/Components/Toaster/Toaster.stories.tsx +0 -60
- package/src/Components/Toaster/Toaster.tsx +0 -99
- package/src/Components/Toggle/TableToggle.tsx +0 -68
- package/src/Components/ToolTip/ToolTip.stories.tsx +0 -38
- package/src/Components/ToolTip/ToolTip.tsx +0 -62
- package/src/Components/ToolTip/ToolTipProps.tsx +0 -46
- package/src/Components/Trail/EditableCell.tsx +0 -116
- package/src/Components/Trail/SelectAllCheckbox.tsx +0 -22
- package/src/Components/Trail/data.ts +0 -42
- package/src/Constants/Sidebar.ts +0 -39
- package/src/Hooks/usePreferences.ts +0 -105
- package/src/Theme/Default/palette.ts +0 -373
- package/src/Theme/Default/theme.ts +0 -16
- package/src/Theme/Meadow/palette.ts +0 -372
- package/src/Theme/Meadow/theme.ts +0 -17
- package/src/Theme/Radiant/palette.ts +0 -372
- package/src/Theme/Radiant/theme.ts +0 -17
- package/src/Theme/Skyline/palette.ts +0 -372
- package/src/Theme/Skyline/theme.ts +0 -17
- package/src/Theme/componentStyles.ts +0 -13
- package/src/Theme/fonts.ts +0 -41
- package/src/Theme/space.ts +0 -34
- package/src/Theme/theme.ts +0 -9
- package/src/Theme/themeProps.ts +0 -477
- package/src/Theme/useCustomTheme.ts +0 -6
- package/src/Utils/table.ts +0 -200
- package/src/index.ts +0 -146
- package/src/types/pixelize-design-library.d.ts +0 -4
- package/src/withTheme.tsx +0 -20
- package/tsconfig.json +0 -23
- /package/{src → dist}/Assets/defaultLogo.tsx +0 -0
- /package/{src → dist}/global.css +0 -0
- /package/{src → dist}/index.css +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var react_1 = __importDefault(require("react"));
|
|
18
|
+
var react_2 = require("@chakra-ui/react");
|
|
19
|
+
var Theme_1 = require("./Theme"); // Import your custom theme
|
|
20
|
+
var Toaster_1 = __importDefault(require("./Components/Toaster/Toaster"));
|
|
21
|
+
var withTheme = function (Component, theme) {
|
|
22
|
+
var customTheme = theme !== null && theme !== void 0 ? theme : Theme_1.lavender;
|
|
23
|
+
return function (props) { return (react_1.default.createElement(react_2.ChakraProvider, { theme: customTheme },
|
|
24
|
+
react_1.default.createElement(Toaster_1.default, null,
|
|
25
|
+
react_1.default.createElement(react_2.ColorModeScript, { initialColorMode: customTheme.config.initialColorMode }),
|
|
26
|
+
react_1.default.createElement(Component, __assign({}, props))))); };
|
|
27
|
+
};
|
|
28
|
+
exports.default = withTheme;
|
package/package.json
CHANGED
|
@@ -1,38 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pixelize-design-library",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.21",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
-
"module": "dist/index.
|
|
6
|
+
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.mjs",
|
|
12
|
-
"require": "./dist/index.js"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"@chakra-ui/react": "^2.8.2",
|
|
17
|
-
"@emotion/react": "^11.11.4",
|
|
18
|
-
"@emotion/styled": "^11.11.5",
|
|
19
|
-
"framer-motion": "^11.2.2",
|
|
20
|
-
"react": ">=16.8.0",
|
|
21
|
-
"react-dom": ">=16.8.0"
|
|
22
|
-
},
|
|
23
8
|
"dependencies": {
|
|
9
|
+
"@chakra-ui/react": "^2.8.2",
|
|
24
10
|
"@hello-pangea/dnd": "^18.0.1",
|
|
11
|
+
"framer-motion": "^11.2.2",
|
|
25
12
|
"jodit-react": "^4.1.2",
|
|
26
13
|
"lucide-react": "^0.487.0",
|
|
14
|
+
"react": "^18.3.1",
|
|
27
15
|
"react-apexcharts": "^1.4.1",
|
|
28
16
|
"react-datepicker": "^7.3.0",
|
|
29
|
-
"react-
|
|
30
|
-
"react-
|
|
17
|
+
"react-dom": "^18.3.1",
|
|
18
|
+
"react-scripts": "^5.0.1",
|
|
19
|
+
"react-window": "^1.8.11",
|
|
20
|
+
"react-dropzone": "^14.3.8"
|
|
31
21
|
},
|
|
32
22
|
"scripts": {
|
|
33
23
|
"start": "react-scripts start",
|
|
34
|
-
"build": "
|
|
35
|
-
"build:watch": "tsup --watch",
|
|
24
|
+
"build": "tsc && copyfiles -u 1 src/**/*.css src/assets/**/* dist/",
|
|
36
25
|
"test": "react-scripts test",
|
|
37
26
|
"eject": "react-scripts eject",
|
|
38
27
|
"package": "npm version patch && npm run build && npm publish"
|
|
@@ -60,7 +49,6 @@
|
|
|
60
49
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
61
50
|
"@emotion/react": "^11.11.4",
|
|
62
51
|
"@emotion/styled": "^11.11.5",
|
|
63
|
-
"@swc/core": "^1.13.2",
|
|
64
52
|
"@testing-library/jest-dom": "^5.17.0",
|
|
65
53
|
"@testing-library/react": "^13.4.0",
|
|
66
54
|
"@testing-library/user-event": "^13.5.0",
|
|
@@ -75,9 +63,7 @@
|
|
|
75
63
|
"postcss": "^8.5.4",
|
|
76
64
|
"prettier": "^3.3.2",
|
|
77
65
|
"prop-types": "^15.8.1",
|
|
78
|
-
"react-scripts": "^5.0.1",
|
|
79
66
|
"tailwindcss": "^3.4.17",
|
|
80
|
-
"tsup": "^8.5.0",
|
|
81
67
|
"typescript": "^4.9.5",
|
|
82
68
|
"webpack": "^5.91.0"
|
|
83
69
|
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
name: Check Build on PR
|
|
2
|
-
|
|
3
|
-
# Trigger the workflow when a pull request is raised against the develop branch
|
|
4
|
-
on:
|
|
5
|
-
pull_request:
|
|
6
|
-
branches:
|
|
7
|
-
- develop
|
|
8
|
-
|
|
9
|
-
# Define the job to run the build
|
|
10
|
-
jobs:
|
|
11
|
-
check-build:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
# Check out the code from the repository
|
|
16
|
-
- name: Checkout code
|
|
17
|
-
uses: actions/checkout@v3
|
|
18
|
-
|
|
19
|
-
# Set up Node.js environment
|
|
20
|
-
- name: Set up Node.js
|
|
21
|
-
uses: actions/setup-node@v3
|
|
22
|
-
with:
|
|
23
|
-
node-version: '18' # Specify your required Node.js version
|
|
24
|
-
|
|
25
|
-
# Install npm dependencies
|
|
26
|
-
- name: Install dependencies
|
|
27
|
-
run: npm install
|
|
28
|
-
|
|
29
|
-
# Run the build script
|
|
30
|
-
- name: Run build
|
|
31
|
-
run: npm run build
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AccordionProps } from "./AccordionProps";
|
|
3
|
-
import {
|
|
4
|
-
Accordion as ChakraAccordian,
|
|
5
|
-
AccordionItem,
|
|
6
|
-
AccordionButton,
|
|
7
|
-
AccordionPanel,
|
|
8
|
-
} from "@chakra-ui/react";
|
|
9
|
-
|
|
10
|
-
const Accordion = ({
|
|
11
|
-
allowMultiple,
|
|
12
|
-
allowToggle,
|
|
13
|
-
index,
|
|
14
|
-
onChange,
|
|
15
|
-
reduceMotion,
|
|
16
|
-
items,
|
|
17
|
-
...rest
|
|
18
|
-
}: AccordionProps) => {
|
|
19
|
-
return (
|
|
20
|
-
<ChakraAccordian
|
|
21
|
-
allowMultiple={allowMultiple}
|
|
22
|
-
allowToggle={allowToggle}
|
|
23
|
-
index={index}
|
|
24
|
-
onChange={onChange}
|
|
25
|
-
reduceMotion={reduceMotion}
|
|
26
|
-
{...rest}
|
|
27
|
-
>
|
|
28
|
-
{items.map((item, idx) => (
|
|
29
|
-
<AccordionItem
|
|
30
|
-
key={idx}
|
|
31
|
-
{...item.itemProps}
|
|
32
|
-
sx={item.customStyles?.itemStyle}
|
|
33
|
-
>
|
|
34
|
-
<h2>
|
|
35
|
-
<AccordionButton
|
|
36
|
-
{...item.buttonProps}
|
|
37
|
-
sx={{
|
|
38
|
-
...item.customStyles?.buttonStyle,
|
|
39
|
-
'&:hover': {
|
|
40
|
-
...item.customStyles?.hoverbuttonStyle,
|
|
41
|
-
},
|
|
42
|
-
}}
|
|
43
|
-
>
|
|
44
|
-
{item.header}
|
|
45
|
-
</AccordionButton>
|
|
46
|
-
</h2>
|
|
47
|
-
<AccordionPanel
|
|
48
|
-
{...item.panelProps}
|
|
49
|
-
sx={item.customStyles?.panelStyle}
|
|
50
|
-
>
|
|
51
|
-
{item.content}
|
|
52
|
-
</AccordionPanel>
|
|
53
|
-
</AccordionItem>
|
|
54
|
-
))}
|
|
55
|
-
</ChakraAccordian>
|
|
56
|
-
);
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export default Accordion;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AccordionProps as ChakraAccordionProps,
|
|
3
|
-
AccordionItemProps,
|
|
4
|
-
AccordionButtonProps,
|
|
5
|
-
AccordionPanelProps,
|
|
6
|
-
} from "@chakra-ui/react";
|
|
7
|
-
|
|
8
|
-
export type AccordionProps = ChakraAccordionProps & {
|
|
9
|
-
items: {
|
|
10
|
-
header: React.ReactNode;
|
|
11
|
-
content: React.ReactNode;
|
|
12
|
-
buttonProps?: AccordionButtonProps;
|
|
13
|
-
panelProps?: AccordionPanelProps;
|
|
14
|
-
itemProps?: AccordionItemProps;
|
|
15
|
-
customStyles?: {
|
|
16
|
-
buttonStyle?: React.CSSProperties;
|
|
17
|
-
hoverbuttonStyle?: React.CSSProperties;
|
|
18
|
-
panelStyle?: React.CSSProperties;
|
|
19
|
-
itemStyle?: React.CSSProperties;
|
|
20
|
-
};
|
|
21
|
-
}[];
|
|
22
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AlertDialog as ChakraAlertDialog,
|
|
3
|
-
AlertDialogBody,
|
|
4
|
-
AlertDialogCloseButton,
|
|
5
|
-
AlertDialogContent,
|
|
6
|
-
AlertDialogFooter,
|
|
7
|
-
AlertDialogHeader,
|
|
8
|
-
AlertDialogOverlay,
|
|
9
|
-
Button,
|
|
10
|
-
} from "@chakra-ui/react";
|
|
11
|
-
import React from "react";
|
|
12
|
-
import { AlertDialogsProps } from "./AlertDialogProps";
|
|
13
|
-
|
|
14
|
-
const AlertDialog = ({
|
|
15
|
-
isOpen,
|
|
16
|
-
onClose,
|
|
17
|
-
leastDestructiveRef,
|
|
18
|
-
content,
|
|
19
|
-
title,
|
|
20
|
-
confirmButtonText = "Yes",
|
|
21
|
-
cancelButtonText = "No",
|
|
22
|
-
isConfirmLoading,
|
|
23
|
-
onConfirm,
|
|
24
|
-
ContentStyle,
|
|
25
|
-
headerStyle,
|
|
26
|
-
bodyStyle,
|
|
27
|
-
footerStyle,
|
|
28
|
-
closeButtonStyle,
|
|
29
|
-
button1Style,
|
|
30
|
-
button2Style,
|
|
31
|
-
isCentered,
|
|
32
|
-
confirmButtonColor = "red",
|
|
33
|
-
key,
|
|
34
|
-
}: AlertDialogsProps) => {
|
|
35
|
-
return (
|
|
36
|
-
<ChakraAlertDialog
|
|
37
|
-
motionPreset="slideInBottom"
|
|
38
|
-
leastDestructiveRef={leastDestructiveRef}
|
|
39
|
-
onClose={onClose}
|
|
40
|
-
isOpen={isOpen}
|
|
41
|
-
isCentered={isCentered}
|
|
42
|
-
key={key}
|
|
43
|
-
>
|
|
44
|
-
<AlertDialogOverlay />
|
|
45
|
-
<AlertDialogContent sx={ContentStyle}>
|
|
46
|
-
<AlertDialogHeader sx={headerStyle}>{title}</AlertDialogHeader>
|
|
47
|
-
<AlertDialogCloseButton sx={closeButtonStyle} />
|
|
48
|
-
<AlertDialogBody sx={bodyStyle}>{content}</AlertDialogBody>
|
|
49
|
-
<AlertDialogFooter sx={footerStyle}>
|
|
50
|
-
<Button ref={null} onClick={onClose} size={"sm"} sx={button1Style}>
|
|
51
|
-
{cancelButtonText}
|
|
52
|
-
</Button>
|
|
53
|
-
<Button
|
|
54
|
-
colorScheme={confirmButtonColor}
|
|
55
|
-
onClick={onConfirm}
|
|
56
|
-
isLoading={isConfirmLoading}
|
|
57
|
-
ml={3}
|
|
58
|
-
size="sm"
|
|
59
|
-
sx={button2Style}
|
|
60
|
-
>
|
|
61
|
-
{confirmButtonText}
|
|
62
|
-
</Button>
|
|
63
|
-
</AlertDialogFooter>
|
|
64
|
-
</AlertDialogContent>
|
|
65
|
-
</ChakraAlertDialog>
|
|
66
|
-
);
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export default AlertDialog;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// import React from 'react';
|
|
2
|
-
// import { StoryFn, Meta } from '@storybook/react';
|
|
3
|
-
// import ApexBarChart from './ApexBarChart';
|
|
4
|
-
// import { ApexBarChartProps } from './ApexBarChartProps';
|
|
5
|
-
|
|
6
|
-
// import exp from "constants";
|
|
7
|
-
|
|
8
|
-
// export default {
|
|
9
|
-
// title: 'Components/ApexCharts/ApexBarChart',
|
|
10
|
-
// component: ApexBarChart,
|
|
11
|
-
// argTypes: {
|
|
12
|
-
// backgroundColor: { control: 'color' },
|
|
13
|
-
// },
|
|
14
|
-
// } as Meta;
|
|
15
|
-
|
|
16
|
-
// const Template: StoryFn<ApexBarChartProps> = (args) => <ApexBarChart {...args} />;
|
|
17
|
-
|
|
18
|
-
// export const Primary = Template.bind({});
|
|
19
|
-
// Primary.args = {
|
|
20
|
-
// data: [44, 55, 41, 64, 22, 43, 21],
|
|
21
|
-
// Labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
|
|
22
|
-
// title: 'Weekly Sales',
|
|
23
|
-
// titlePosition: 'left',
|
|
24
|
-
// height: 400,
|
|
25
|
-
// width: 500,
|
|
26
|
-
// barColor: ['#3182ce'],
|
|
27
|
-
// xAxisStyle: {
|
|
28
|
-
// color: '#ffffff',
|
|
29
|
-
// },
|
|
30
|
-
// yAxisStyle: {
|
|
31
|
-
// color: '#ffffff',
|
|
32
|
-
// },
|
|
33
|
-
// titleStyle: {
|
|
34
|
-
// color: '#3182ce',
|
|
35
|
-
// fontSize: '16px',
|
|
36
|
-
// fontWeight: 600,
|
|
37
|
-
// fontFamily: 'Arial',
|
|
38
|
-
// },
|
|
39
|
-
// };
|
|
40
|
-
|
|
41
|
-
// // You can add more variations of the component by adding more exports like the Primary example.
|
|
42
|
-
export {};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import ReactApexChart from "react-apexcharts";
|
|
3
|
-
import { ApexBarChartProps } from "./ApexBarChartProps";
|
|
4
|
-
import { ApexOptions } from "../ApexPieChart/ApexPieChartProps";
|
|
5
|
-
|
|
6
|
-
export default function ApexBarChart({
|
|
7
|
-
data,
|
|
8
|
-
labels,
|
|
9
|
-
title,
|
|
10
|
-
titlePosition,
|
|
11
|
-
height = 400,
|
|
12
|
-
width = 500,
|
|
13
|
-
barColor = ["#3182ce"],
|
|
14
|
-
xAxisStyle = {
|
|
15
|
-
color: "#ffffff",
|
|
16
|
-
},
|
|
17
|
-
yAxisStyle = {
|
|
18
|
-
color: "#ffffff",
|
|
19
|
-
},
|
|
20
|
-
titleStyle = {
|
|
21
|
-
color: "#3182ce",
|
|
22
|
-
fontSize: "16px",
|
|
23
|
-
fontWeight: 600,
|
|
24
|
-
fontFamily: "Arial",
|
|
25
|
-
},
|
|
26
|
-
}: ApexBarChartProps) {
|
|
27
|
-
const options: ApexOptions = {
|
|
28
|
-
chart: {
|
|
29
|
-
type: "bar",
|
|
30
|
-
height: 350,
|
|
31
|
-
},
|
|
32
|
-
plotOptions: {
|
|
33
|
-
bar: {
|
|
34
|
-
borderRadius: 4,
|
|
35
|
-
horizontal: false,
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
dataLabels: {
|
|
39
|
-
enabled: false,
|
|
40
|
-
style: {
|
|
41
|
-
fontSize: "12px",
|
|
42
|
-
colors: ["#00E396"], //data label color
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
xaxis: {
|
|
46
|
-
categories: labels,
|
|
47
|
-
labels: {
|
|
48
|
-
style: xAxisStyle,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
yaxis: {
|
|
52
|
-
labels: {
|
|
53
|
-
style: yAxisStyle,
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
title: {
|
|
57
|
-
text: title,
|
|
58
|
-
align: titlePosition,
|
|
59
|
-
style: titleStyle,
|
|
60
|
-
},
|
|
61
|
-
colors: barColor, //bar color
|
|
62
|
-
};
|
|
63
|
-
const series = [
|
|
64
|
-
{
|
|
65
|
-
name: "Data",
|
|
66
|
-
data: data,
|
|
67
|
-
},
|
|
68
|
-
];
|
|
69
|
-
return (
|
|
70
|
-
<div>
|
|
71
|
-
<ReactApexChart
|
|
72
|
-
options={options}
|
|
73
|
-
series={series}
|
|
74
|
-
type="bar"
|
|
75
|
-
height={height}
|
|
76
|
-
width={width}
|
|
77
|
-
/>
|
|
78
|
-
</div>
|
|
79
|
-
);
|
|
80
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type ApexBarChartProps = {
|
|
2
|
-
data: number[];
|
|
3
|
-
labels: string[];
|
|
4
|
-
title?: string;
|
|
5
|
-
titlePosition?: "left" | "center" | "right";
|
|
6
|
-
height?: number;
|
|
7
|
-
width?: number;
|
|
8
|
-
barColor?: string[];
|
|
9
|
-
xAxisStyle?: StyleProps;
|
|
10
|
-
yAxisStyle?: StyleProps;
|
|
11
|
-
titleStyle?: StyleProps;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
type StyleProps = {
|
|
15
|
-
fontSize?: string;
|
|
16
|
-
fontFamily?: string;
|
|
17
|
-
fontWeight?: string | number;
|
|
18
|
-
color?: string;
|
|
19
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// import React from 'react';
|
|
2
|
-
// import { StoryFn, Meta } from '@storybook/react';
|
|
3
|
-
// import ApexPieChart from './ApexPieChart';
|
|
4
|
-
// import { ApexPieChartProps } from './ApexPieChartProps';
|
|
5
|
-
|
|
6
|
-
// export default {
|
|
7
|
-
// title: 'Components/ApexCharts/ApexPieChart',
|
|
8
|
-
// component: ApexPieChart,
|
|
9
|
-
// argTypes: {
|
|
10
|
-
// backgroundColor: { control: 'color' },
|
|
11
|
-
// },
|
|
12
|
-
// } as Meta;
|
|
13
|
-
|
|
14
|
-
// const Template: StoryFn<ApexPieChartProps> = (args) => <ApexPieChart {...args} />;
|
|
15
|
-
|
|
16
|
-
// export const Primary = Template.bind({});
|
|
17
|
-
// Primary.args = {
|
|
18
|
-
// data: [44, 55, 41, 64, 22, 43, 21],
|
|
19
|
-
// labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
|
|
20
|
-
// title: 'Weekly Sales',
|
|
21
|
-
// titlePosition: 'left',
|
|
22
|
-
// height: 400,
|
|
23
|
-
// width: 500,
|
|
24
|
-
// chartColor: ['#3182ce', '#ff6384', '#36a2eb', '#cc65fe', '#ffce56', '#ff6384', '#36a2eb'],
|
|
25
|
-
// titleStyle: {
|
|
26
|
-
// color: '#3182ce',
|
|
27
|
-
// fontSize: '16px',
|
|
28
|
-
// fontWeight: 600,
|
|
29
|
-
// fontFamily: 'Arial',
|
|
30
|
-
// },
|
|
31
|
-
// };
|
|
32
|
-
|
|
33
|
-
// // You can add more variations of the component by adding more exports like the Primary example.
|
|
34
|
-
export {};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import ReactApexChart from "react-apexcharts";
|
|
3
|
-
import { ApexOptions, ApexPieChartProps } from "./ApexPieChartProps";
|
|
4
|
-
|
|
5
|
-
export default function ApexPieChart({
|
|
6
|
-
data,
|
|
7
|
-
labels,
|
|
8
|
-
title,
|
|
9
|
-
titlePosition,
|
|
10
|
-
height = 400,
|
|
11
|
-
width = 500,
|
|
12
|
-
chartColor,
|
|
13
|
-
titleStyle = {
|
|
14
|
-
color: "#3182ce",
|
|
15
|
-
},
|
|
16
|
-
}: ApexPieChartProps) {
|
|
17
|
-
const options: ApexOptions = {
|
|
18
|
-
chart: {
|
|
19
|
-
type: "pie",
|
|
20
|
-
height: 350,
|
|
21
|
-
},
|
|
22
|
-
labels: labels,
|
|
23
|
-
title: {
|
|
24
|
-
text: title,
|
|
25
|
-
align: titlePosition,
|
|
26
|
-
style: titleStyle,
|
|
27
|
-
},
|
|
28
|
-
colors: chartColor,
|
|
29
|
-
};
|
|
30
|
-
const series = data;
|
|
31
|
-
return (
|
|
32
|
-
<div>
|
|
33
|
-
<ReactApexChart
|
|
34
|
-
options={options}
|
|
35
|
-
series={series}
|
|
36
|
-
type="pie"
|
|
37
|
-
height={height}
|
|
38
|
-
width={width}
|
|
39
|
-
/>
|
|
40
|
-
</div>
|
|
41
|
-
);
|
|
42
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export type ApexPieChartProps = {
|
|
2
|
-
data: number[];
|
|
3
|
-
labels: string[];
|
|
4
|
-
title?: string;
|
|
5
|
-
titlePosition?: "left" | "center" | "right";
|
|
6
|
-
height?: number;
|
|
7
|
-
width?: number;
|
|
8
|
-
chartColor?: string[];
|
|
9
|
-
titleStyle?: StyleProps;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
type StyleProps = {
|
|
13
|
-
fontSize?: string;
|
|
14
|
-
fontFamily?: string;
|
|
15
|
-
fontWeight?: string | number;
|
|
16
|
-
color?: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export interface ApexOptions {
|
|
20
|
-
annotations?: ApexAnnotations;
|
|
21
|
-
chart?: ApexChart;
|
|
22
|
-
colors?: any[];
|
|
23
|
-
dataLabels?: ApexDataLabels;
|
|
24
|
-
fill?: ApexFill;
|
|
25
|
-
forecastDataPoints?: ApexForecastDataPoints;
|
|
26
|
-
grid?: ApexGrid;
|
|
27
|
-
labels?: string[];
|
|
28
|
-
legend?: ApexLegend;
|
|
29
|
-
markers?: ApexMarkers;
|
|
30
|
-
noData?: ApexNoData;
|
|
31
|
-
plotOptions?: ApexPlotOptions;
|
|
32
|
-
responsive?: ApexResponsive[];
|
|
33
|
-
series?: ApexAxisChartSeries | ApexNonAxisChartSeries;
|
|
34
|
-
states?: ApexStates;
|
|
35
|
-
stroke?: ApexStroke;
|
|
36
|
-
subtitle?: ApexTitleSubtitle;
|
|
37
|
-
theme?: ApexTheme;
|
|
38
|
-
title?: ApexTitleSubtitle;
|
|
39
|
-
tooltip?: ApexTooltip;
|
|
40
|
-
xaxis?: ApexXAxis;
|
|
41
|
-
yaxis?: ApexYAxis | ApexYAxis[];
|
|
42
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// import React from 'react';
|
|
2
|
-
// import { StoryFn, Meta } from '@storybook/react/types-6-0';
|
|
3
|
-
// import Breadcrumbs from './Breadcrumbs';
|
|
4
|
-
// import { BreadcrumbsProps } from './BreadcrumbsProps';
|
|
5
|
-
|
|
6
|
-
// export default {
|
|
7
|
-
// title: 'Components/Breadcrumbs/Breadcrumb',
|
|
8
|
-
// component: Breadcrumbs,
|
|
9
|
-
// } as Meta;
|
|
10
|
-
|
|
11
|
-
// const Template: StoryFn<BreadcrumbsProps> = (args) => <Breadcrumbs {...args} />;
|
|
12
|
-
|
|
13
|
-
// export const Default = Template.bind({});
|
|
14
|
-
// Default.args = {
|
|
15
|
-
// spacing: "8px",
|
|
16
|
-
// separator: "/",
|
|
17
|
-
// fontWeight: "normal",
|
|
18
|
-
// fontSize: "1rem",
|
|
19
|
-
// isCurrentPage: true,
|
|
20
|
-
// handleClick: (path) => console.log(`Clicked: ${path}`),
|
|
21
|
-
// items: [
|
|
22
|
-
// { path: '/home', label: 'Home' },
|
|
23
|
-
// { path: '/about', label: 'About' },
|
|
24
|
-
// { path: '/contact', label: 'Contact' },
|
|
25
|
-
// ],
|
|
26
|
-
// };
|
|
27
|
-
export {};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, useTheme } from "@chakra-ui/react";
|
|
3
|
-
import { BreadcrumbsProps } from "./BreadcrumbsProps";
|
|
4
|
-
|
|
5
|
-
export default function Breadcrumbs({
|
|
6
|
-
spacing,
|
|
7
|
-
separator,
|
|
8
|
-
fontWeight,
|
|
9
|
-
fontSize,
|
|
10
|
-
isCurrentPage,
|
|
11
|
-
handleClick,
|
|
12
|
-
items,
|
|
13
|
-
}: BreadcrumbsProps) {
|
|
14
|
-
const theme = useTheme();
|
|
15
|
-
return (
|
|
16
|
-
<Breadcrumb
|
|
17
|
-
spacing={spacing}
|
|
18
|
-
separator={separator}
|
|
19
|
-
fontWeight={fontWeight}
|
|
20
|
-
fontSize={fontSize}
|
|
21
|
-
fontFamily={theme.fonts.body}
|
|
22
|
-
>
|
|
23
|
-
{items.map((item, index) => (
|
|
24
|
-
<BreadcrumbItem
|
|
25
|
-
key={index}
|
|
26
|
-
isCurrentPage={isCurrentPage && index === items.length - 1}
|
|
27
|
-
>
|
|
28
|
-
<BreadcrumbLink
|
|
29
|
-
href={item.path}
|
|
30
|
-
sx={{ "&:hover, &:active": { textDecoration: "none" } }}
|
|
31
|
-
onClick={(event) => {
|
|
32
|
-
event.preventDefault();
|
|
33
|
-
handleClick(item.path);
|
|
34
|
-
}}
|
|
35
|
-
>
|
|
36
|
-
{item.label}
|
|
37
|
-
</BreadcrumbLink>
|
|
38
|
-
</BreadcrumbItem>
|
|
39
|
-
))}
|
|
40
|
-
</Breadcrumb>
|
|
41
|
-
);
|
|
42
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// import React from 'react';
|
|
2
|
-
// import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
// import Button from './Button';
|
|
4
|
-
// import { fn } from '@storybook/test';
|
|
5
|
-
|
|
6
|
-
// const meta: Meta<typeof Button> = {
|
|
7
|
-
// title: 'Components/Button/Button',
|
|
8
|
-
// component: Button,
|
|
9
|
-
|
|
10
|
-
// parameters: {
|
|
11
|
-
// layout: 'centered',
|
|
12
|
-
// },
|
|
13
|
-
// tags: ['autodocs']
|
|
14
|
-
// };
|
|
15
|
-
|
|
16
|
-
// export default meta;
|
|
17
|
-
// type Story = StoryObj<typeof meta>;
|
|
18
|
-
|
|
19
|
-
// export const Primary: Story = {
|
|
20
|
-
// args: {
|
|
21
|
-
// label: 'Button',
|
|
22
|
-
// width: '',
|
|
23
|
-
// color: 'blue',
|
|
24
|
-
// variant: 'solid',
|
|
25
|
-
// size: 'md',
|
|
26
|
-
// isDisabled: false,
|
|
27
|
-
// isLoading: false,
|
|
28
|
-
// loadingText: 'Loading',
|
|
29
|
-
// type: 'button',
|
|
30
|
-
// onClick: fn()
|
|
31
|
-
// },
|
|
32
|
-
// };
|
|
33
|
-
export {};
|