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
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { ComponentStyleConfig } from "@chakra-ui/react";
|
|
2
|
-
|
|
3
|
-
export const Button: ComponentStyleConfig = {
|
|
4
|
-
baseStyle: ({ theme }) => ({
|
|
5
|
-
borderRadius: "0.25rem",
|
|
6
|
-
fontWeight: 500,
|
|
7
|
-
fontSize: "1rem",
|
|
8
|
-
_disabled: {
|
|
9
|
-
opacity: 0.6,
|
|
10
|
-
cursor: "not-allowed",
|
|
11
|
-
},
|
|
12
|
-
}),
|
|
13
|
-
|
|
14
|
-
variants: {
|
|
15
|
-
solid: ({ theme, colorScheme = "primary" }) => ({
|
|
16
|
-
bg: theme.colors[colorScheme][500],
|
|
17
|
-
color: theme.colors.white,
|
|
18
|
-
_hover: {
|
|
19
|
-
bg: theme.colors[colorScheme][600],
|
|
20
|
-
},
|
|
21
|
-
_active: {
|
|
22
|
-
bg: theme.colors[colorScheme][700],
|
|
23
|
-
},
|
|
24
|
-
}),
|
|
25
|
-
|
|
26
|
-
outline: ({ theme, colorScheme = "primary" }) => ({
|
|
27
|
-
border: "0.1rem solid",
|
|
28
|
-
borderColor: theme.colors[colorScheme][500],
|
|
29
|
-
color: theme.colors[colorScheme][500],
|
|
30
|
-
bg: "transparent",
|
|
31
|
-
_hover: {
|
|
32
|
-
bg: theme.colors[colorScheme][500],
|
|
33
|
-
borderColor: theme.colors[colorScheme][600],
|
|
34
|
-
color: theme.colors.white,
|
|
35
|
-
},
|
|
36
|
-
_active: {
|
|
37
|
-
bg: theme.colors[colorScheme][600],
|
|
38
|
-
color: theme.colors.white,
|
|
39
|
-
},
|
|
40
|
-
}),
|
|
41
|
-
|
|
42
|
-
ghost: ({ theme, colorScheme = "primary" }) => ({
|
|
43
|
-
color: theme.colors[colorScheme][500],
|
|
44
|
-
bg: "transparent",
|
|
45
|
-
_hover: {
|
|
46
|
-
bg: theme.colors.gray[200],
|
|
47
|
-
},
|
|
48
|
-
_active: {
|
|
49
|
-
bg: theme.colors.gray[200],
|
|
50
|
-
},
|
|
51
|
-
}),
|
|
52
|
-
|
|
53
|
-
link: ({ theme, colorScheme = "primary" }) => ({
|
|
54
|
-
color: theme.colors[colorScheme][500],
|
|
55
|
-
textDecoration: "underline",
|
|
56
|
-
bg: "transparent",
|
|
57
|
-
_hover: {
|
|
58
|
-
color: theme.colors[colorScheme][600],
|
|
59
|
-
textDecoration: "none",
|
|
60
|
-
},
|
|
61
|
-
_active: {
|
|
62
|
-
color: theme.colors[colorScheme][600],
|
|
63
|
-
},
|
|
64
|
-
}),
|
|
65
|
-
|
|
66
|
-
unstyled: () => ({
|
|
67
|
-
bg: "transparent",
|
|
68
|
-
color: "inherit",
|
|
69
|
-
_hover: {
|
|
70
|
-
bg: "transparent",
|
|
71
|
-
},
|
|
72
|
-
}),
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
sizes: {
|
|
76
|
-
xs: {
|
|
77
|
-
h: "1.5rem",
|
|
78
|
-
fontSize: "0.75rem",
|
|
79
|
-
px: "0.5rem",
|
|
80
|
-
},
|
|
81
|
-
sm: {
|
|
82
|
-
h: "2rem",
|
|
83
|
-
fontSize: "0.875rem",
|
|
84
|
-
px: "0.75rem",
|
|
85
|
-
},
|
|
86
|
-
md: {
|
|
87
|
-
h: "2.5rem",
|
|
88
|
-
fontSize: "1rem",
|
|
89
|
-
px: "1rem",
|
|
90
|
-
},
|
|
91
|
-
lg: {
|
|
92
|
-
h: "3rem",
|
|
93
|
-
fontSize: "1.125rem",
|
|
94
|
-
px: "1.5rem",
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
defaultProps: {
|
|
100
|
-
size: "md",
|
|
101
|
-
variant: "solid",
|
|
102
|
-
colorScheme: "primary",
|
|
103
|
-
},
|
|
104
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React, { memo } from "react";
|
|
2
|
-
import { Button as ChakraButton } from "@chakra-ui/react";
|
|
3
|
-
import { ButtonProps } from "./ButtonProps";
|
|
4
|
-
|
|
5
|
-
function Button({
|
|
6
|
-
label,
|
|
7
|
-
children,
|
|
8
|
-
onClick,
|
|
9
|
-
opacity,
|
|
10
|
-
variant = "solid",
|
|
11
|
-
leftIcon,
|
|
12
|
-
rightIcon,
|
|
13
|
-
size,
|
|
14
|
-
isDisabled = false,
|
|
15
|
-
isLoading = false,
|
|
16
|
-
loadingText = "Loading",
|
|
17
|
-
type,
|
|
18
|
-
width,
|
|
19
|
-
sx,
|
|
20
|
-
colorScheme,
|
|
21
|
-
ref,
|
|
22
|
-
border,
|
|
23
|
-
borderRadius,
|
|
24
|
-
}: ButtonProps) {
|
|
25
|
-
return (
|
|
26
|
-
<ChakraButton
|
|
27
|
-
type={type}
|
|
28
|
-
onClick={onClick}
|
|
29
|
-
width={width || "fit-content"}
|
|
30
|
-
variant={variant}
|
|
31
|
-
size={size}
|
|
32
|
-
isLoading={isLoading}
|
|
33
|
-
isDisabled={isDisabled}
|
|
34
|
-
loadingText={loadingText}
|
|
35
|
-
leftIcon={leftIcon}
|
|
36
|
-
rightIcon={rightIcon}
|
|
37
|
-
ref={ref}
|
|
38
|
-
colorScheme={colorScheme}
|
|
39
|
-
sx={sx}
|
|
40
|
-
opacity={opacity}
|
|
41
|
-
border={border}
|
|
42
|
-
borderRadius={borderRadius}
|
|
43
|
-
>
|
|
44
|
-
{children ?? label}
|
|
45
|
-
</ChakraButton>
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export default memo(Button);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ButtonProps as ChakraButtonProps } from "@chakra-ui/react";
|
|
2
|
-
|
|
3
|
-
export type ButtonProps = Pick<
|
|
4
|
-
ChakraButtonProps,
|
|
5
|
-
| "onClick"
|
|
6
|
-
| "leftIcon"
|
|
7
|
-
| "rightIcon"
|
|
8
|
-
| "isDisabled"
|
|
9
|
-
| "isLoading"
|
|
10
|
-
| "loadingText"
|
|
11
|
-
| "spinner"
|
|
12
|
-
| "sx"
|
|
13
|
-
| "border"
|
|
14
|
-
| "borderRadius"
|
|
15
|
-
> & {
|
|
16
|
-
label?: string;
|
|
17
|
-
width?: string | number;
|
|
18
|
-
size?: "lg" | "md" | "sm" | "xs";
|
|
19
|
-
variant?: "solid" | "outline" | "ghost" | "link" | "unstyled";
|
|
20
|
-
type?: "button" | "submit" | "reset";
|
|
21
|
-
colorScheme?: 'primary' | 'secondary' | 'tertiary' | 'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink';
|
|
22
|
-
ref?: React.Ref<HTMLButtonElement>;
|
|
23
|
-
children?: React.ReactNode;
|
|
24
|
-
opacity?: number;
|
|
25
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
|
|
3
|
-
export type ButtonGroupIconProps = {
|
|
4
|
-
leftIcon?: ReactElement;
|
|
5
|
-
rightIcon?: ReactElement;
|
|
6
|
-
onLeftIconClick?: () => void;
|
|
7
|
-
onRightIconClick?: () => void;
|
|
8
|
-
buttonText: string;
|
|
9
|
-
onButtonClick?: () => void;
|
|
10
|
-
onButtongroupClick?: () => void;
|
|
11
|
-
size?: "lg" | "md" | "sm" | "xs";
|
|
12
|
-
variant?: "solid" | "outline" | "ghost" | "link" | "unstyled";
|
|
13
|
-
color?:
|
|
14
|
-
| "gray"
|
|
15
|
-
| "red"
|
|
16
|
-
| "orange"
|
|
17
|
-
| "yellow"
|
|
18
|
-
| "green"
|
|
19
|
-
| "teal"
|
|
20
|
-
| "blue"
|
|
21
|
-
| "cyan"
|
|
22
|
-
| "purple"
|
|
23
|
-
| "pink"
|
|
24
|
-
| "whiteAlpha"
|
|
25
|
-
| "blackAlpha";
|
|
26
|
-
buttonGroupStyle?: React.CSSProperties;
|
|
27
|
-
buttonGroupLeftIconStyle?: React.CSSProperties;
|
|
28
|
-
buttonGroupRightIconStyle?: React.CSSProperties;
|
|
29
|
-
buttonStyle?: React.CSSProperties;
|
|
30
|
-
onBlurLeftIcon?: () => void;
|
|
31
|
-
onBlurRightIcon?: () => void;
|
|
32
|
-
dropdownOptions?: {
|
|
33
|
-
label: string;
|
|
34
|
-
id: string | number;
|
|
35
|
-
image?: ReactElement | undefined;
|
|
36
|
-
}[];
|
|
37
|
-
onDropdownOptionClick?: (
|
|
38
|
-
event: React.MouseEvent,
|
|
39
|
-
option: { label: string; id: string | number }
|
|
40
|
-
) => void;
|
|
41
|
-
rightIconDropdown?: boolean;
|
|
42
|
-
menulistStyle?: React.CSSProperties;
|
|
43
|
-
menuItemStyle?: React.CSSProperties;
|
|
44
|
-
isLoading?: boolean;
|
|
45
|
-
divider?: boolean;
|
|
46
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
// import React from 'react';
|
|
2
|
-
// import { Meta, StoryFn } from '@storybook/react';
|
|
3
|
-
// import ButtonGroupIcon from './ButtonGroupIcon'; // Adjust the import path and component type if needed
|
|
4
|
-
// import {ButtonGroupIconProps} from './ButtonGoupIconProps';
|
|
5
|
-
|
|
6
|
-
// export default {
|
|
7
|
-
// title: 'Components/ButtonGroupIcon/ButtonGroupIcon',
|
|
8
|
-
// component: ButtonGroupIcon,
|
|
9
|
-
// argTypes: {
|
|
10
|
-
// size: { control: { type: 'select', options: ['sm', 'md', 'lg'] } },
|
|
11
|
-
// variant: {
|
|
12
|
-
// control: { type: 'select', options: ["solid","outline","ghost","link"] },
|
|
13
|
-
// defaultValue: 'solid'
|
|
14
|
-
// },
|
|
15
|
-
// color: {
|
|
16
|
-
// control: { type: 'select', options: ["gray" ,"red" ,"orange" ,"yellow" ,"green" ,"teal" ,"blue" ,"cyan" ,"purple" ,"pink" ,"whiteAlpha" ,"blackAlpha"] },
|
|
17
|
-
// defaultValue: 'blue'
|
|
18
|
-
// },
|
|
19
|
-
// },
|
|
20
|
-
// } as Meta;
|
|
21
|
-
|
|
22
|
-
// const Template: StoryFn<ButtonGroupIconProps> = (args) => <ButtonGroupIcon {...args} />;
|
|
23
|
-
|
|
24
|
-
// export const Default = Template.bind({});
|
|
25
|
-
// Default.args = {
|
|
26
|
-
// leftIcon: <FiHome/>,
|
|
27
|
-
// rightIcon: <FiHome />,
|
|
28
|
-
// onLeftIconClick: () => console.log('Left icon clicked'),
|
|
29
|
-
// onRightIconClick: () => console.log('Right icon clicked'),
|
|
30
|
-
// buttonText: 'Button Text',
|
|
31
|
-
// onButtonClick: () => console.log('Button clicked'),
|
|
32
|
-
// onButtongroupClick: () => console.log('Button group clicked'),
|
|
33
|
-
// size: 'md',
|
|
34
|
-
// variant: 'solid',
|
|
35
|
-
// color: 'blue',
|
|
36
|
-
// };
|
|
37
|
-
export {};
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import {
|
|
3
|
-
Box,
|
|
4
|
-
Button,
|
|
5
|
-
ButtonGroup,
|
|
6
|
-
IconButton,
|
|
7
|
-
Menu,
|
|
8
|
-
MenuButton,
|
|
9
|
-
MenuItem,
|
|
10
|
-
MenuList,
|
|
11
|
-
} from "@chakra-ui/react";
|
|
12
|
-
import { ButtonGroupIconProps } from "./ButtonGoupIconProps";
|
|
13
|
-
import { useCustomTheme } from "../../Theme/useCustomTheme";
|
|
14
|
-
|
|
15
|
-
export default function ButtonGroupIcon({
|
|
16
|
-
leftIcon,
|
|
17
|
-
rightIcon,
|
|
18
|
-
onLeftIconClick,
|
|
19
|
-
onRightIconClick,
|
|
20
|
-
buttonText,
|
|
21
|
-
onButtonClick,
|
|
22
|
-
onButtongroupClick,
|
|
23
|
-
size,
|
|
24
|
-
variant,
|
|
25
|
-
color,
|
|
26
|
-
buttonGroupStyle,
|
|
27
|
-
buttonGroupLeftIconStyle,
|
|
28
|
-
buttonGroupRightIconStyle,
|
|
29
|
-
buttonStyle,
|
|
30
|
-
onBlurLeftIcon,
|
|
31
|
-
onBlurRightIcon,
|
|
32
|
-
dropdownOptions, // New prop for dropdown options
|
|
33
|
-
onDropdownOptionClick, // New prop to handle option clicks
|
|
34
|
-
rightIconDropdown,
|
|
35
|
-
menulistStyle,
|
|
36
|
-
menuItemStyle,
|
|
37
|
-
isLoading,
|
|
38
|
-
divider = true,
|
|
39
|
-
}: ButtonGroupIconProps) {
|
|
40
|
-
const theme = useCustomTheme();
|
|
41
|
-
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
|
|
42
|
-
|
|
43
|
-
const handleRightIconClick = () => {
|
|
44
|
-
setIsDropdownOpen(!isDropdownOpen);
|
|
45
|
-
if (onRightIconClick) {
|
|
46
|
-
onRightIconClick();
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const handleMenuClick = (
|
|
51
|
-
event: React.MouseEvent,
|
|
52
|
-
option: { label: string; id: string | number }
|
|
53
|
-
) => {
|
|
54
|
-
setIsDropdownOpen(false);
|
|
55
|
-
// console.log("Option clicked:", option,event)
|
|
56
|
-
if (onDropdownOptionClick) {
|
|
57
|
-
onDropdownOptionClick(event, option);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
<ButtonGroup
|
|
63
|
-
size={size}
|
|
64
|
-
isAttached
|
|
65
|
-
variant={variant}
|
|
66
|
-
onClick={onButtongroupClick}
|
|
67
|
-
colorScheme={color}
|
|
68
|
-
style={buttonGroupStyle}
|
|
69
|
-
>
|
|
70
|
-
{leftIcon && (
|
|
71
|
-
<IconButton
|
|
72
|
-
aria-label="Left icon button"
|
|
73
|
-
icon={leftIcon}
|
|
74
|
-
onClick={onLeftIconClick}
|
|
75
|
-
onBlur={onBlurLeftIcon}
|
|
76
|
-
style={buttonGroupLeftIconStyle}
|
|
77
|
-
sx={{
|
|
78
|
-
backgroundColor: theme.colors.primary[500],
|
|
79
|
-
"&:hover": {
|
|
80
|
-
backgroundColor: theme.colors.primary[400],
|
|
81
|
-
},
|
|
82
|
-
}}
|
|
83
|
-
/>
|
|
84
|
-
)}
|
|
85
|
-
<Button
|
|
86
|
-
onClick={onButtonClick}
|
|
87
|
-
style={buttonStyle}
|
|
88
|
-
isLoading={isLoading}
|
|
89
|
-
sx={{
|
|
90
|
-
backgroundColor: theme.colors.primary[500],
|
|
91
|
-
"&:hover": {
|
|
92
|
-
backgroundColor: theme.colors.primary[400],
|
|
93
|
-
},
|
|
94
|
-
}}
|
|
95
|
-
borderLeft={`1px solid ${theme.colors?.gray[300]}`}
|
|
96
|
-
borderRight={`1px solid ${theme.colors?.gray[300]}`}
|
|
97
|
-
>
|
|
98
|
-
{buttonText}
|
|
99
|
-
</Button>
|
|
100
|
-
|
|
101
|
-
{rightIcon && rightIconDropdown ? (
|
|
102
|
-
<Menu isOpen={isDropdownOpen} onClose={() => setIsDropdownOpen(false)}>
|
|
103
|
-
<MenuButton
|
|
104
|
-
as={IconButton}
|
|
105
|
-
aria-label="Right icon button"
|
|
106
|
-
icon={rightIcon}
|
|
107
|
-
onClick={handleRightIconClick}
|
|
108
|
-
onBlur={onBlurRightIcon}
|
|
109
|
-
style={buttonGroupRightIconStyle}
|
|
110
|
-
sx={{
|
|
111
|
-
backgroundColor: theme.colors.primary[500],
|
|
112
|
-
"&:hover": {
|
|
113
|
-
backgroundColor: theme.colors.primary[400],
|
|
114
|
-
},
|
|
115
|
-
}}
|
|
116
|
-
/>
|
|
117
|
-
<Box sx={{ zIndex: 99 }}>
|
|
118
|
-
<MenuList style={menulistStyle}>
|
|
119
|
-
{dropdownOptions?.map((option, index) => (
|
|
120
|
-
<MenuItem
|
|
121
|
-
key={index}
|
|
122
|
-
onClick={(event) => handleMenuClick(event, option)}
|
|
123
|
-
style={menuItemStyle}
|
|
124
|
-
borderBottom={
|
|
125
|
-
divider ? `1px solid ${theme.colors?.gray[300]}` : undefined
|
|
126
|
-
}
|
|
127
|
-
sx={{
|
|
128
|
-
"&:last-child": {
|
|
129
|
-
borderBottom: "none",
|
|
130
|
-
},
|
|
131
|
-
}}
|
|
132
|
-
>
|
|
133
|
-
{option?.image}
|
|
134
|
-
{option.label}
|
|
135
|
-
</MenuItem>
|
|
136
|
-
))}
|
|
137
|
-
</MenuList>
|
|
138
|
-
</Box>
|
|
139
|
-
</Menu>
|
|
140
|
-
) : (
|
|
141
|
-
rightIcon && (
|
|
142
|
-
<IconButton
|
|
143
|
-
aria-label="Right icon button"
|
|
144
|
-
icon={rightIcon}
|
|
145
|
-
onClick={onRightIconClick}
|
|
146
|
-
onBlur={onBlurRightIcon}
|
|
147
|
-
style={buttonGroupRightIconStyle}
|
|
148
|
-
sx={{
|
|
149
|
-
backgroundColor: theme.colors.primary[500],
|
|
150
|
-
"&:hover": {
|
|
151
|
-
backgroundColor: theme.colors.primary[400],
|
|
152
|
-
},
|
|
153
|
-
}}
|
|
154
|
-
/>
|
|
155
|
-
)
|
|
156
|
-
)}
|
|
157
|
-
</ButtonGroup>
|
|
158
|
-
);
|
|
159
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { ButtonsProps } from './ButtonsProps'
|
|
3
|
-
|
|
4
|
-
const Buttons = ({ onClick, label, className, disabled }: ButtonsProps) => {
|
|
5
|
-
return (
|
|
6
|
-
<button
|
|
7
|
-
onClick={onClick}
|
|
8
|
-
className={`bg-purple-600 text-white font-medium py-2 px-4 rounded focus:outline-none focus:ring-offset-2 ${className} ${disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer'}`}
|
|
9
|
-
disabled={disabled}
|
|
10
|
-
>
|
|
11
|
-
{label}
|
|
12
|
-
</button>
|
|
13
|
-
)
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default Buttons
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Card as ChakraCard } from "@chakra-ui/react";
|
|
3
|
-
import { CardProps } from "./CardProps";
|
|
4
|
-
|
|
5
|
-
export default function Card({
|
|
6
|
-
key,
|
|
7
|
-
maxW,
|
|
8
|
-
align,
|
|
9
|
-
variant,
|
|
10
|
-
direction,
|
|
11
|
-
justify,
|
|
12
|
-
children,
|
|
13
|
-
size,
|
|
14
|
-
color,
|
|
15
|
-
overflow,
|
|
16
|
-
sx,
|
|
17
|
-
}: CardProps) {
|
|
18
|
-
return (
|
|
19
|
-
<ChakraCard
|
|
20
|
-
key={key}
|
|
21
|
-
maxW={maxW}
|
|
22
|
-
align={align}
|
|
23
|
-
variant={variant}
|
|
24
|
-
direction={direction}
|
|
25
|
-
justify={justify}
|
|
26
|
-
size={size}
|
|
27
|
-
overflow={overflow}
|
|
28
|
-
colorScheme={color}
|
|
29
|
-
p={4}
|
|
30
|
-
sx={sx}
|
|
31
|
-
>
|
|
32
|
-
{children}
|
|
33
|
-
</ChakraCard>
|
|
34
|
-
);
|
|
35
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { CardProps as ChakraCardProps } from "@chakra-ui/react";
|
|
2
|
-
|
|
3
|
-
export type CardProps = Pick<
|
|
4
|
-
ChakraCardProps,
|
|
5
|
-
"direction" | "maxW" | "align" | "justify" | "overflow" | "sx"
|
|
6
|
-
> & {
|
|
7
|
-
header?: React.ReactNode;
|
|
8
|
-
footer?: React.ReactNode;
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
variant?: "elevated" | "outline" | "filled" | "unstyled";
|
|
11
|
-
size?: "sm" | "md" | "lg";
|
|
12
|
-
color?:
|
|
13
|
-
| "whiteAlpha"
|
|
14
|
-
| "blackAlpha"
|
|
15
|
-
| "gray"
|
|
16
|
-
| "red"
|
|
17
|
-
| "orange"
|
|
18
|
-
| "yellow"
|
|
19
|
-
| "green"
|
|
20
|
-
| "teal"
|
|
21
|
-
| "blue"
|
|
22
|
-
| "cyan"
|
|
23
|
-
| "purple"
|
|
24
|
-
| "pink";
|
|
25
|
-
key?: string;
|
|
26
|
-
dividercolor?:
|
|
27
|
-
| "whiteAlpha"
|
|
28
|
-
| "blackAlpha"
|
|
29
|
-
| "gray"
|
|
30
|
-
| "red"
|
|
31
|
-
| "orange"
|
|
32
|
-
| "yellow"
|
|
33
|
-
| "green"
|
|
34
|
-
| "teal"
|
|
35
|
-
| "blue"
|
|
36
|
-
| "cyan"
|
|
37
|
-
| "purple"
|
|
38
|
-
| "pink";
|
|
39
|
-
dividersize?: string;
|
|
40
|
-
dividervariant?: "solid" | "dashed";
|
|
41
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// import React, { useState } from 'react';
|
|
2
|
-
// import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
// import CheckBox from './Checkbox';
|
|
4
|
-
// import { fn } from '@storybook/test';
|
|
5
|
-
// import { CheckboxProps } from './CheckboxProps';
|
|
6
|
-
|
|
7
|
-
// const meta: Meta<typeof CheckBox> = {
|
|
8
|
-
// title: 'Components/CheckBox/CheckBox',
|
|
9
|
-
// component: CheckBox,
|
|
10
|
-
|
|
11
|
-
// parameters: {
|
|
12
|
-
// layout: 'centered',
|
|
13
|
-
// },
|
|
14
|
-
// tags: ['autodocs']
|
|
15
|
-
// };
|
|
16
|
-
|
|
17
|
-
// export default meta;
|
|
18
|
-
// type Story = StoryObj<typeof meta>;
|
|
19
|
-
|
|
20
|
-
// const CheckBoxTemplate = (args: CheckboxProps) => {
|
|
21
|
-
// const [check, setCheck] = useState(true);
|
|
22
|
-
// const handleCheck = (e: any) => {
|
|
23
|
-
// setCheck(!check);
|
|
24
|
-
// }
|
|
25
|
-
// return <CheckBox {...args} onChange={handleCheck} isChecked={check} />
|
|
26
|
-
// }
|
|
27
|
-
|
|
28
|
-
// export const Check_box: Story = {
|
|
29
|
-
// args: {
|
|
30
|
-
// label: 'Checkbox',
|
|
31
|
-
// spacing: 6,
|
|
32
|
-
// isInvalid: false,
|
|
33
|
-
// color: 'blue',
|
|
34
|
-
// iconColor: 'white',
|
|
35
|
-
// iconSize: '1em',
|
|
36
|
-
// isChecked: true,
|
|
37
|
-
// isIndeterminate: false,
|
|
38
|
-
// isDisabled: false,
|
|
39
|
-
// size: 'md',
|
|
40
|
-
// value: 'checkbox',
|
|
41
|
-
// defaultChecked: false,
|
|
42
|
-
// onChange: fn()
|
|
43
|
-
// },
|
|
44
|
-
// render: (args) => CheckBoxTemplate(args)
|
|
45
|
-
// };
|
|
46
|
-
export {};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { ComponentStyleConfig } from "@chakra-ui/react";
|
|
2
|
-
|
|
3
|
-
export const Checkbox: ComponentStyleConfig = {
|
|
4
|
-
baseStyle: ({ theme }) => {
|
|
5
|
-
return {
|
|
6
|
-
control: {
|
|
7
|
-
width: "1.25rem",
|
|
8
|
-
height: "1.25rem",
|
|
9
|
-
borderWidth: "1.6px",
|
|
10
|
-
_disabled: {
|
|
11
|
-
bg: theme.colors.background[50],
|
|
12
|
-
borderColor: theme.colors.boxborder[500],
|
|
13
|
-
cursor: "not-allowed",
|
|
14
|
-
},
|
|
15
|
-
_indeterminate: {
|
|
16
|
-
bg: theme.colors.background[50],
|
|
17
|
-
borderColor: theme.colors.primary[500],
|
|
18
|
-
svg: {
|
|
19
|
-
color: theme.colors.primary[500],
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
_checked: {
|
|
24
|
-
bg: theme.colors.primary[600],
|
|
25
|
-
borderColor: theme.colors.primary[600],
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
_hover: {
|
|
29
|
-
bg: theme.colors.background[100],
|
|
30
|
-
borderColor: theme.colors.primary[400],
|
|
31
|
-
_checked: {
|
|
32
|
-
bg: theme.colors.primary[600],
|
|
33
|
-
borderColor: theme.colors.primary[600],
|
|
34
|
-
},
|
|
35
|
-
_indeterminate: {
|
|
36
|
-
bg: "none",
|
|
37
|
-
borderColor: theme.colors.primary[600],
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
_focus: {
|
|
42
|
-
boxShadow: `0 0 0 2px ${theme.colors.primary[300]}`,
|
|
43
|
-
borderColor: theme.colors.primary[500],
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
_active: {
|
|
47
|
-
bg: theme.colors.primary[600],
|
|
48
|
-
borderColor: theme.colors.primary[600],
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
icon: {
|
|
52
|
-
color: theme.colors.background[50],
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
},
|
|
56
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Checkbox as ChakraCheckbox, FormControl } from "@chakra-ui/react";
|
|
3
|
-
import { CheckboxProps } from "./CheckboxProps";
|
|
4
|
-
import { useCustomTheme } from "../../Theme/useCustomTheme";
|
|
5
|
-
import { TextLabel } from "../Common/FormLabel";
|
|
6
|
-
import ErrorMessage from "../Common/ErrorMessage";
|
|
7
|
-
import HelperText from "../Common/HelperText";
|
|
8
|
-
|
|
9
|
-
export default function CheckBox({
|
|
10
|
-
label,
|
|
11
|
-
spacing,
|
|
12
|
-
isInvalid,
|
|
13
|
-
color,
|
|
14
|
-
iconColor,
|
|
15
|
-
iconSize,
|
|
16
|
-
isChecked,
|
|
17
|
-
isIndeterminate,
|
|
18
|
-
onChange,
|
|
19
|
-
isDisabled,
|
|
20
|
-
size,
|
|
21
|
-
value,
|
|
22
|
-
defaultChecked,
|
|
23
|
-
sx,
|
|
24
|
-
isRequired,
|
|
25
|
-
error,
|
|
26
|
-
errorMessage,
|
|
27
|
-
isInformation,
|
|
28
|
-
informationMessage,
|
|
29
|
-
id,
|
|
30
|
-
helperText,
|
|
31
|
-
}: CheckboxProps) {
|
|
32
|
-
const theme = useCustomTheme();
|
|
33
|
-
return (
|
|
34
|
-
<FormControl isInvalid={error}>
|
|
35
|
-
<ChakraCheckbox
|
|
36
|
-
spacing={spacing}
|
|
37
|
-
isInvalid={isInvalid}
|
|
38
|
-
isRequired={isRequired}
|
|
39
|
-
colorScheme={color}
|
|
40
|
-
iconColor={iconColor}
|
|
41
|
-
iconSize={iconSize}
|
|
42
|
-
isChecked={isChecked}
|
|
43
|
-
isIndeterminate={isIndeterminate}
|
|
44
|
-
onChange={onChange}
|
|
45
|
-
isDisabled={isDisabled}
|
|
46
|
-
size={size}
|
|
47
|
-
value={value}
|
|
48
|
-
defaultChecked={defaultChecked}
|
|
49
|
-
borderColor={theme.colors.gray[500]}
|
|
50
|
-
sx={sx}
|
|
51
|
-
display={"flex"}
|
|
52
|
-
alignItems={"inherit"}
|
|
53
|
-
>
|
|
54
|
-
{label && (
|
|
55
|
-
<TextLabel
|
|
56
|
-
label={label}
|
|
57
|
-
id={id}
|
|
58
|
-
isInformation={isInformation}
|
|
59
|
-
informationMessage={informationMessage}
|
|
60
|
-
isRequired={isRequired}
|
|
61
|
-
/>
|
|
62
|
-
)}
|
|
63
|
-
</ChakraCheckbox>
|
|
64
|
-
{error && <ErrorMessage errorMessage={errorMessage} />}
|
|
65
|
-
{helperText && !error && <HelperText helperText={helperText} />}
|
|
66
|
-
</FormControl>
|
|
67
|
-
);
|
|
68
|
-
}
|