pixelize-design-library 2.1.11 → 2.1.13
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 +128 -0
- package/dist/Assets/defaultLogo.d.ts +3 -0
- package/dist/Assets/defaultLogo.js +15 -0
- package/dist/Assets/defaultLogo.tsx +31 -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/dist/Components/AlertDialog/AlertDialogProps.d.ts +20 -0
- 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/dist/Components/Breadcrumbs/BreadcrumbsProps.d.ts +11 -0
- 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/dist/Components/Buttons/ButtonsProps.d.ts +6 -0
- 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/dist/Components/Input/Input/InputProps.d.ts +17 -0
- 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/dist/Components/Input/TextInput.styles.js +84 -0
- package/dist/Components/Input/TextInputProps.d.ts +24 -0
- 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/dist/Components/InputTextArea/InputTextAreaProps.d.ts +10 -0
- 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/dist/Components/PinInputs/PinInputsProps.d.ts +9 -0
- 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/dist/Components/ProductCard/ProductCardProps.d.ts +26 -0
- 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/dist/Components/ProgressBar/ProgressBarProps.d.ts +6 -0
- 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/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/dist/Components/Table/TableToDo.js +291 -0
- 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/dist/Components/Toaster/ToasterProps.d.ts +12 -0
- 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/dist/Components/Toggle/TableToggleProps.d.ts +5 -0
- 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/dist/Components/Trail/TrailWorks.js +262 -0
- 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 +254 -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/dist/Theme/Dark/theme.js +283 -0
- 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/dist/Theme/common.js +101 -0
- 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/dist/Theme/index.d.ts +11 -0
- 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/_virtual/AMPMMidnightParser.js +1 -0
- package/dist/_virtual/AMPMParser.js +1 -0
- package/dist/_virtual/DateParser.js +1 -0
- package/dist/_virtual/DayOfYearParser.js +1 -0
- package/dist/_virtual/DayParser.js +1 -0
- package/dist/_virtual/DayPeriodParser.js +1 -0
- package/dist/_virtual/EraParser.js +1 -0
- package/dist/_virtual/ExtendedYearParser.js +1 -0
- package/dist/_virtual/FractionOfSecondParser.js +1 -0
- package/dist/_virtual/Hour0To11Parser.js +1 -0
- package/dist/_virtual/Hour0to23Parser.js +1 -0
- package/dist/_virtual/Hour1To24Parser.js +1 -0
- package/dist/_virtual/Hour1to12Parser.js +1 -0
- package/dist/_virtual/ISODayParser.js +1 -0
- package/dist/_virtual/ISOTimezoneParser.js +1 -0
- package/dist/_virtual/ISOTimezoneWithZParser.js +1 -0
- package/dist/_virtual/ISOWeekParser.js +1 -0
- package/dist/_virtual/ISOWeekYearParser.js +1 -0
- package/dist/_virtual/LocalDayParser.js +1 -0
- package/dist/_virtual/LocalWeekParser.js +1 -0
- package/dist/_virtual/LocalWeekYearParser.js +1 -0
- package/dist/_virtual/MinuteParser.js +1 -0
- package/dist/_virtual/MonthParser.js +1 -0
- package/dist/_virtual/Parser.js +1 -0
- package/dist/_virtual/QuarterParser.js +1 -0
- package/dist/_virtual/SecondParser.js +1 -0
- package/dist/_virtual/Setter.js +1 -0
- package/dist/_virtual/StandAloneLocalDayParser.js +1 -0
- package/dist/_virtual/StandAloneMonthParser.js +1 -0
- package/dist/_virtual/StandAloneQuarterParser.js +1 -0
- package/dist/_virtual/TimestampMillisecondsParser.js +1 -0
- package/dist/_virtual/TimestampSecondsParser.js +1 -0
- package/dist/_virtual/YearParser.js +1 -0
- package/dist/_virtual/add.js +1 -0
- package/dist/_virtual/addBusinessDays.js +1 -0
- package/dist/_virtual/addDays.js +1 -0
- package/dist/_virtual/addHours.js +1 -0
- package/dist/_virtual/addISOWeekYears.js +1 -0
- package/dist/_virtual/addLeadingZeros.js +1 -0
- package/dist/_virtual/addMilliseconds.js +1 -0
- package/dist/_virtual/addMinutes.js +1 -0
- package/dist/_virtual/addMonths.js +1 -0
- package/dist/_virtual/addQuarters.js +1 -0
- package/dist/_virtual/addSeconds.js +1 -0
- package/dist/_virtual/addWeeks.js +1 -0
- package/dist/_virtual/addYears.js +1 -0
- package/dist/_virtual/areIntervalsOverlapping.js +1 -0
- package/dist/_virtual/buildFormatLongFn.js +1 -0
- package/dist/_virtual/buildLocalizeFn.js +1 -0
- package/dist/_virtual/buildMatchFn.js +1 -0
- package/dist/_virtual/buildMatchPatternFn.js +1 -0
- package/dist/_virtual/clamp.js +1 -0
- package/dist/_virtual/closestIndexTo.js +1 -0
- package/dist/_virtual/closestTo.js +1 -0
- package/dist/_virtual/compareAsc.js +1 -0
- package/dist/_virtual/compareDesc.js +1 -0
- package/dist/_virtual/constants.js +1 -0
- package/dist/_virtual/constants2.js +1 -0
- package/dist/_virtual/constructFrom.js +1 -0
- package/dist/_virtual/constructNow.js +1 -0
- package/dist/_virtual/daysToWeeks.js +1 -0
- package/dist/_virtual/defaultLocale.js +1 -0
- package/dist/_virtual/defaultOptions.js +1 -0
- package/dist/_virtual/differenceInBusinessDays.js +1 -0
- package/dist/_virtual/differenceInCalendarDays.js +1 -0
- package/dist/_virtual/differenceInCalendarISOWeekYears.js +1 -0
- package/dist/_virtual/differenceInCalendarISOWeeks.js +1 -0
- package/dist/_virtual/differenceInCalendarMonths.js +1 -0
- package/dist/_virtual/differenceInCalendarQuarters.js +1 -0
- package/dist/_virtual/differenceInCalendarWeeks.js +1 -0
- package/dist/_virtual/differenceInCalendarYears.js +1 -0
- package/dist/_virtual/differenceInDays.js +1 -0
- package/dist/_virtual/differenceInHours.js +1 -0
- package/dist/_virtual/differenceInISOWeekYears.js +1 -0
- package/dist/_virtual/differenceInMilliseconds.js +1 -0
- package/dist/_virtual/differenceInMinutes.js +1 -0
- package/dist/_virtual/differenceInMonths.js +1 -0
- package/dist/_virtual/differenceInQuarters.js +1 -0
- package/dist/_virtual/differenceInSeconds.js +1 -0
- package/dist/_virtual/differenceInWeeks.js +1 -0
- package/dist/_virtual/differenceInYears.js +1 -0
- package/dist/_virtual/eachDayOfInterval.js +1 -0
- package/dist/_virtual/eachHourOfInterval.js +1 -0
- package/dist/_virtual/eachMinuteOfInterval.js +1 -0
- package/dist/_virtual/eachMonthOfInterval.js +1 -0
- package/dist/_virtual/eachQuarterOfInterval.js +1 -0
- package/dist/_virtual/eachWeekOfInterval.js +1 -0
- package/dist/_virtual/eachWeekendOfInterval.js +1 -0
- package/dist/_virtual/eachWeekendOfMonth.js +1 -0
- package/dist/_virtual/eachWeekendOfYear.js +1 -0
- package/dist/_virtual/eachYearOfInterval.js +1 -0
- package/dist/_virtual/en-US.js +1 -0
- package/dist/_virtual/endOfDay.js +1 -0
- package/dist/_virtual/endOfDecade.js +1 -0
- package/dist/_virtual/endOfHour.js +1 -0
- package/dist/_virtual/endOfISOWeek.js +1 -0
- package/dist/_virtual/endOfISOWeekYear.js +1 -0
- package/dist/_virtual/endOfMinute.js +1 -0
- package/dist/_virtual/endOfMonth.js +1 -0
- package/dist/_virtual/endOfQuarter.js +1 -0
- package/dist/_virtual/endOfSecond.js +1 -0
- package/dist/_virtual/endOfToday.js +1 -0
- package/dist/_virtual/endOfTomorrow.js +1 -0
- package/dist/_virtual/endOfWeek.js +1 -0
- package/dist/_virtual/endOfYear.js +1 -0
- package/dist/_virtual/endOfYesterday.js +1 -0
- package/dist/_virtual/format.js +1 -0
- package/dist/_virtual/formatDistance.js +1 -0
- package/dist/_virtual/formatDistance2.js +1 -0
- package/dist/_virtual/formatDistanceStrict.js +1 -0
- package/dist/_virtual/formatDistanceToNow.js +1 -0
- package/dist/_virtual/formatDistanceToNowStrict.js +1 -0
- package/dist/_virtual/formatDuration.js +1 -0
- package/dist/_virtual/formatISO.js +1 -0
- package/dist/_virtual/formatISO9075.js +1 -0
- package/dist/_virtual/formatISODuration.js +1 -0
- package/dist/_virtual/formatLong.js +1 -0
- package/dist/_virtual/formatRFC3339.js +1 -0
- package/dist/_virtual/formatRFC7231.js +1 -0
- package/dist/_virtual/formatRelative.js +1 -0
- package/dist/_virtual/formatRelative2.js +1 -0
- package/dist/_virtual/formatters.js +1 -0
- package/dist/_virtual/fromUnixTime.js +1 -0
- package/dist/_virtual/getDate.js +1 -0
- package/dist/_virtual/getDay.js +1 -0
- package/dist/_virtual/getDayOfYear.js +1 -0
- package/dist/_virtual/getDaysInMonth.js +1 -0
- package/dist/_virtual/getDaysInYear.js +1 -0
- package/dist/_virtual/getDecade.js +1 -0
- package/dist/_virtual/getDefaultOptions.js +1 -0
- package/dist/_virtual/getHours.js +1 -0
- package/dist/_virtual/getISODay.js +1 -0
- package/dist/_virtual/getISOWeek.js +1 -0
- package/dist/_virtual/getISOWeekYear.js +1 -0
- package/dist/_virtual/getISOWeeksInYear.js +1 -0
- package/dist/_virtual/getMilliseconds.js +1 -0
- package/dist/_virtual/getMinutes.js +1 -0
- package/dist/_virtual/getMonth.js +1 -0
- package/dist/_virtual/getOverlappingDaysInIntervals.js +1 -0
- package/dist/_virtual/getQuarter.js +1 -0
- package/dist/_virtual/getRoundingMethod.js +1 -0
- package/dist/_virtual/getSeconds.js +1 -0
- package/dist/_virtual/getTime.js +1 -0
- package/dist/_virtual/getTimezoneOffsetInMilliseconds.js +1 -0
- package/dist/_virtual/getUnixTime.js +1 -0
- package/dist/_virtual/getWeek.js +1 -0
- package/dist/_virtual/getWeekOfMonth.js +1 -0
- package/dist/_virtual/getWeekYear.js +1 -0
- package/dist/_virtual/getWeeksInMonth.js +1 -0
- package/dist/_virtual/getYear.js +1 -0
- package/dist/_virtual/hoursToMilliseconds.js +1 -0
- package/dist/_virtual/hoursToMinutes.js +1 -0
- package/dist/_virtual/hoursToSeconds.js +1 -0
- package/dist/_virtual/index.js +1 -0
- package/dist/_virtual/index2.js +1 -0
- package/dist/_virtual/interval.js +1 -0
- package/dist/_virtual/intervalToDuration.js +1 -0
- package/dist/_virtual/intlFormat.js +1 -0
- package/dist/_virtual/intlFormatDistance.js +1 -0
- package/dist/_virtual/isAfter.js +1 -0
- package/dist/_virtual/isBefore.js +1 -0
- package/dist/_virtual/isDate.js +1 -0
- package/dist/_virtual/isEqual.js +1 -0
- package/dist/_virtual/isExists.js +1 -0
- package/dist/_virtual/isFirstDayOfMonth.js +1 -0
- package/dist/_virtual/isFriday.js +1 -0
- package/dist/_virtual/isFuture.js +1 -0
- package/dist/_virtual/isLastDayOfMonth.js +1 -0
- package/dist/_virtual/isLeapYear.js +1 -0
- package/dist/_virtual/isMatch.js +1 -0
- package/dist/_virtual/isMonday.js +1 -0
- package/dist/_virtual/isPast.js +1 -0
- package/dist/_virtual/isSameDay.js +1 -0
- package/dist/_virtual/isSameHour.js +1 -0
- package/dist/_virtual/isSameISOWeek.js +1 -0
- package/dist/_virtual/isSameISOWeekYear.js +1 -0
- package/dist/_virtual/isSameMinute.js +1 -0
- package/dist/_virtual/isSameMonth.js +1 -0
- package/dist/_virtual/isSameQuarter.js +1 -0
- package/dist/_virtual/isSameSecond.js +1 -0
- package/dist/_virtual/isSameWeek.js +1 -0
- package/dist/_virtual/isSameYear.js +1 -0
- package/dist/_virtual/isSaturday.js +1 -0
- package/dist/_virtual/isSunday.js +1 -0
- package/dist/_virtual/isThisHour.js +1 -0
- package/dist/_virtual/isThisISOWeek.js +1 -0
- package/dist/_virtual/isThisMinute.js +1 -0
- package/dist/_virtual/isThisMonth.js +1 -0
- package/dist/_virtual/isThisQuarter.js +1 -0
- package/dist/_virtual/isThisSecond.js +1 -0
- package/dist/_virtual/isThisWeek.js +1 -0
- package/dist/_virtual/isThisYear.js +1 -0
- package/dist/_virtual/isThursday.js +1 -0
- package/dist/_virtual/isToday.js +1 -0
- package/dist/_virtual/isTomorrow.js +1 -0
- package/dist/_virtual/isTuesday.js +1 -0
- package/dist/_virtual/isValid.js +1 -0
- package/dist/_virtual/isWednesday.js +1 -0
- package/dist/_virtual/isWeekend.js +1 -0
- package/dist/_virtual/isWithinInterval.js +1 -0
- package/dist/_virtual/isYesterday.js +1 -0
- package/dist/_virtual/lastDayOfDecade.js +1 -0
- package/dist/_virtual/lastDayOfISOWeek.js +1 -0
- package/dist/_virtual/lastDayOfISOWeekYear.js +1 -0
- package/dist/_virtual/lastDayOfMonth.js +1 -0
- package/dist/_virtual/lastDayOfQuarter.js +1 -0
- package/dist/_virtual/lastDayOfWeek.js +1 -0
- package/dist/_virtual/lastDayOfYear.js +1 -0
- package/dist/_virtual/lightFormat.js +1 -0
- package/dist/_virtual/lightFormatters.js +1 -0
- package/dist/_virtual/localize.js +1 -0
- package/dist/_virtual/longFormatters.js +1 -0
- package/dist/_virtual/match.js +1 -0
- package/dist/_virtual/max.js +1 -0
- package/dist/_virtual/milliseconds.js +1 -0
- package/dist/_virtual/millisecondsToHours.js +1 -0
- package/dist/_virtual/millisecondsToMinutes.js +1 -0
- package/dist/_virtual/millisecondsToSeconds.js +1 -0
- package/dist/_virtual/min.js +1 -0
- package/dist/_virtual/minutesToHours.js +1 -0
- package/dist/_virtual/minutesToMilliseconds.js +1 -0
- package/dist/_virtual/minutesToSeconds.js +1 -0
- package/dist/_virtual/monthsToQuarters.js +1 -0
- package/dist/_virtual/monthsToYears.js +1 -0
- package/dist/_virtual/nextDay.js +1 -0
- package/dist/_virtual/nextFriday.js +1 -0
- package/dist/_virtual/nextMonday.js +1 -0
- package/dist/_virtual/nextSaturday.js +1 -0
- package/dist/_virtual/nextSunday.js +1 -0
- package/dist/_virtual/nextThursday.js +1 -0
- package/dist/_virtual/nextTuesday.js +1 -0
- package/dist/_virtual/nextWednesday.js +1 -0
- package/dist/_virtual/parse.js +1 -0
- package/dist/_virtual/parseISO.js +1 -0
- package/dist/_virtual/parseJSON.js +1 -0
- package/dist/_virtual/parsers.js +1 -0
- package/dist/_virtual/previousDay.js +1 -0
- package/dist/_virtual/previousFriday.js +1 -0
- package/dist/_virtual/previousMonday.js +1 -0
- package/dist/_virtual/previousSaturday.js +1 -0
- package/dist/_virtual/previousSunday.js +1 -0
- package/dist/_virtual/previousThursday.js +1 -0
- package/dist/_virtual/previousTuesday.js +1 -0
- package/dist/_virtual/previousWednesday.js +1 -0
- package/dist/_virtual/protectedTokens.js +1 -0
- package/dist/_virtual/quartersToMonths.js +1 -0
- package/dist/_virtual/quartersToYears.js +1 -0
- package/dist/_virtual/roundToNearestHours.js +1 -0
- package/dist/_virtual/roundToNearestMinutes.js +1 -0
- package/dist/_virtual/secondsToHours.js +1 -0
- package/dist/_virtual/secondsToMilliseconds.js +1 -0
- package/dist/_virtual/secondsToMinutes.js +1 -0
- package/dist/_virtual/set.js +1 -0
- package/dist/_virtual/setDate.js +1 -0
- package/dist/_virtual/setDay.js +1 -0
- package/dist/_virtual/setDayOfYear.js +1 -0
- package/dist/_virtual/setDefaultOptions.js +1 -0
- package/dist/_virtual/setHours.js +1 -0
- package/dist/_virtual/setISODay.js +1 -0
- package/dist/_virtual/setISOWeek.js +1 -0
- package/dist/_virtual/setISOWeekYear.js +1 -0
- package/dist/_virtual/setMilliseconds.js +1 -0
- package/dist/_virtual/setMinutes.js +1 -0
- package/dist/_virtual/setMonth.js +1 -0
- package/dist/_virtual/setQuarter.js +1 -0
- package/dist/_virtual/setSeconds.js +1 -0
- package/dist/_virtual/setWeek.js +1 -0
- package/dist/_virtual/setWeekYear.js +1 -0
- package/dist/_virtual/setYear.js +1 -0
- package/dist/_virtual/startOfDay.js +1 -0
- package/dist/_virtual/startOfDecade.js +1 -0
- package/dist/_virtual/startOfHour.js +1 -0
- package/dist/_virtual/startOfISOWeek.js +1 -0
- package/dist/_virtual/startOfISOWeekYear.js +1 -0
- package/dist/_virtual/startOfMinute.js +1 -0
- package/dist/_virtual/startOfMonth.js +1 -0
- package/dist/_virtual/startOfQuarter.js +1 -0
- package/dist/_virtual/startOfSecond.js +1 -0
- package/dist/_virtual/startOfToday.js +1 -0
- package/dist/_virtual/startOfTomorrow.js +1 -0
- package/dist/_virtual/startOfWeek.js +1 -0
- package/dist/_virtual/startOfWeekYear.js +1 -0
- package/dist/_virtual/startOfYear.js +1 -0
- package/dist/_virtual/startOfYesterday.js +1 -0
- package/dist/_virtual/sub.js +1 -0
- package/dist/_virtual/subBusinessDays.js +1 -0
- package/dist/_virtual/subDays.js +1 -0
- package/dist/_virtual/subHours.js +1 -0
- package/dist/_virtual/subISOWeekYears.js +1 -0
- package/dist/_virtual/subMilliseconds.js +1 -0
- package/dist/_virtual/subMinutes.js +1 -0
- package/dist/_virtual/subMonths.js +1 -0
- package/dist/_virtual/subQuarters.js +1 -0
- package/dist/_virtual/subSeconds.js +1 -0
- package/dist/_virtual/subWeeks.js +1 -0
- package/dist/_virtual/subYears.js +1 -0
- package/dist/_virtual/toDate.js +1 -0
- package/dist/_virtual/transpose.js +1 -0
- package/dist/_virtual/utils.js +1 -0
- package/dist/_virtual/weeksToDays.js +1 -0
- package/dist/_virtual/yearsToDays.js +1 -0
- package/dist/_virtual/yearsToMonths.js +1 -0
- package/dist/_virtual/yearsToQuarters.js +1 -0
- package/dist/bootstrap.d.ts +1 -0
- package/dist/bootstrap.js +14 -0
- package/dist/global.css +225 -0
- package/dist/index.css +3 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +146 -0
- package/dist/withTheme.d.ts +3 -0
- package/dist/withTheme.js +28 -0
- package/package.json +14 -23
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
|
+
if (mod && mod.__esModule) return mod;
|
|
24
|
+
var result = {};
|
|
25
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
26
|
+
__setModuleDefault(result, mod);
|
|
27
|
+
return result;
|
|
28
|
+
};
|
|
29
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
30
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31
|
+
};
|
|
32
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
+
var react_1 = __importStar(require("react"));
|
|
34
|
+
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
35
|
+
var lucide_react_1 = require("lucide-react");
|
|
36
|
+
var Container = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n border-radius: 4px;\n padding: 0.5rem 0.7rem 0.5rem 0.7rem;\n width: 100%;\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);\n border-radius: 20px;\n background: #fff;\n border: 1px solid #f1f1f1;\n"], ["\n display: flex;\n align-items: center;\n border-radius: 4px;\n padding: 0.5rem 0.7rem 0.5rem 0.7rem;\n width: 100%;\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);\n border-radius: 20px;\n background: #fff;\n border: 1px solid #f1f1f1;\n"])));
|
|
37
|
+
var Input = styled_1.default.input(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n flex: 1;\n border: none;\n outline: none;\n margin-left: 0.5rem;\n background: transparent;\n"], ["\n flex: 1;\n border: none;\n outline: none;\n margin-left: 0.5rem;\n background: transparent;\n"])));
|
|
38
|
+
var SearchIcon = (0, styled_1.default)(lucide_react_1.Search)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: #888;\n"], ["\n color: #888;\n"])));
|
|
39
|
+
var CloseIcon = (0, styled_1.default)(lucide_react_1.X)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n color: #888;\n font-size: 1.5rem;\n"], ["\n color: #888;\n font-size: 1.5rem;\n"])));
|
|
40
|
+
var Shortcut = styled_1.default.span(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-left: auto;\n padding-left: 0.5rem;\n color: #888;\n font-size: 0.9rem;\n"], ["\n margin-left: auto;\n padding-left: 0.5rem;\n color: #888;\n font-size: 0.9rem;\n"])));
|
|
41
|
+
function Search(_a) {
|
|
42
|
+
var _b = _a.placeholder, placeholder = _b === void 0 ? "Search..." : _b, onSearch = _a.onSearch, onclose = _a.onclose, _c = _a.shortcut, shortcut = _c === void 0 ? "Ctrl+K" : _c, query = _a.query;
|
|
43
|
+
var inputRef = (0, react_1.useRef)(null);
|
|
44
|
+
(0, react_1.useEffect)(function () {
|
|
45
|
+
var handleKeyDown = function (event) {
|
|
46
|
+
var _a;
|
|
47
|
+
if (shortcut &&
|
|
48
|
+
event.ctrlKey &&
|
|
49
|
+
event.key === shortcut.split("+")[1].toLowerCase()) {
|
|
50
|
+
event.preventDefault();
|
|
51
|
+
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
window.addEventListener("keydown", handleKeyDown);
|
|
55
|
+
return function () {
|
|
56
|
+
window.removeEventListener("keydown", handleKeyDown);
|
|
57
|
+
};
|
|
58
|
+
}, [shortcut]);
|
|
59
|
+
return (react_1.default.createElement(Container, null,
|
|
60
|
+
react_1.default.createElement(SearchIcon, null),
|
|
61
|
+
react_1.default.createElement(Input, { ref: inputRef, type: "text", value: query, onChange: onSearch, placeholder: placeholder }),
|
|
62
|
+
query && react_1.default.createElement(CloseIcon, { onClick: onclose }),
|
|
63
|
+
shortcut && react_1.default.createElement(Shortcut, null, shortcut)));
|
|
64
|
+
}
|
|
65
|
+
exports.default = Search;
|
|
66
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SearchSelectProps } from './SearchSelectProps';
|
|
3
|
+
declare const SearchSelect: ({ id, label, options, onSelect, onSearch, isOptionLoading, isLoading, loadingText, placeholder, value, searchQuery, isMultiple, isRequired, error, errorMessage, helperText, width, height, size, chip, information, rightIcon, addNew, isSelectAll, pagination, insideSelect, isRemoveAllIcon }: SearchSelectProps) => React.JSX.Element;
|
|
4
|
+
export default SearchSelect;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
26
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
27
|
+
if (ar || !(i in from)) {
|
|
28
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
29
|
+
ar[i] = from[i];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
33
|
+
};
|
|
34
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
var react_1 = __importStar(require("react"));
|
|
39
|
+
var react_2 = require("@chakra-ui/react");
|
|
40
|
+
var lucide_react_1 = require("lucide-react");
|
|
41
|
+
var FormLabel_1 = require("../Common/FormLabel");
|
|
42
|
+
var Tag_1 = __importDefault(require("../Tag/Tag"));
|
|
43
|
+
var useCustomTheme_1 = require("../../Theme/useCustomTheme");
|
|
44
|
+
var ErrorMessage_1 = __importDefault(require("../Common/ErrorMessage"));
|
|
45
|
+
var HelperText_1 = __importDefault(require("../Common/HelperText"));
|
|
46
|
+
var ToolTip_1 = __importDefault(require("../ToolTip/ToolTip"));
|
|
47
|
+
var SelectTruncatedLabel_1 = __importDefault(require("./SelectTruncatedLabel"));
|
|
48
|
+
var normalizeSingleValue = function (val) {
|
|
49
|
+
if (typeof val === 'object' && val !== null && 'id' in val && 'label' in val) {
|
|
50
|
+
return val;
|
|
51
|
+
}
|
|
52
|
+
return undefined;
|
|
53
|
+
};
|
|
54
|
+
var normalizeMultiValue = function (val) {
|
|
55
|
+
if (Array.isArray(val)) {
|
|
56
|
+
return val.filter(function (v) { return v && typeof v === 'object' && 'id' in v && 'label' in v; });
|
|
57
|
+
}
|
|
58
|
+
return [];
|
|
59
|
+
};
|
|
60
|
+
var SearchSelect = function (_a) {
|
|
61
|
+
var _b, _c, _d, _e, _f;
|
|
62
|
+
var id = _a.id, label = _a.label, options = _a.options, onSelect = _a.onSelect, onSearch = _a.onSearch, _g = _a.isOptionLoading, isOptionLoading = _g === void 0 ? false : _g, _h = _a.isLoading, isLoading = _h === void 0 ? false : _h, _j = _a.loadingText, loadingText = _j === void 0 ? 'Loading...' : _j, _k = _a.placeholder, placeholder = _k === void 0 ? 'Select' : _k, value = _a.value, _l = _a.searchQuery, searchQuery = _l === void 0 ? '' : _l, _m = _a.isMultiple, isMultiple = _m === void 0 ? false : _m, _o = _a.isRequired, isRequired = _o === void 0 ? false : _o, _p = _a.error, error = _p === void 0 ? false : _p, errorMessage = _a.errorMessage, helperText = _a.helperText, _q = _a.width, width = _q === void 0 ? '100%' : _q, _r = _a.height, height = _r === void 0 ? "2.75rem" : _r, _s = _a.size, size = _s === void 0 ? 'md' : _s, chip = _a.chip, information = _a.information, rightIcon = _a.rightIcon, addNew = _a.addNew, _t = _a.isSelectAll, isSelectAll = _t === void 0 ? false : _t, pagination = _a.pagination, insideSelect = _a.insideSelect, isRemoveAllIcon = _a.isRemoveAllIcon;
|
|
63
|
+
var _u = (0, react_1.useState)(searchQuery), inputValue = _u[0], setInputValue = _u[1];
|
|
64
|
+
var _v = (0, react_1.useState)(false), isOpen = _v[0], setIsOpen = _v[1];
|
|
65
|
+
var _w = (0, react_1.useState)(true), hasMore = _w[0], setHasMore = _w[1];
|
|
66
|
+
var inputRef = (0, react_1.useRef)(null);
|
|
67
|
+
var containerRef = (0, react_1.useRef)(null);
|
|
68
|
+
var scrollTimeoutRef = (0, react_1.useRef)(null);
|
|
69
|
+
var _x = (0, react_1.useState)(false), focused = _x[0], setFocused = _x[1];
|
|
70
|
+
var _y = (0, react_1.useState)(false), customSelectOpen = _y[0], setCustomSelectOpen = _y[1];
|
|
71
|
+
var customSelectRef = (0, react_1.useRef)(null);
|
|
72
|
+
var _z = (0, react_1.useState)({ top: 0, left: 0, width: 0 }), customSelectPos = _z[0], setCustomSelectPos = _z[1];
|
|
73
|
+
var theme = (0, useCustomTheme_1.useCustomTheme)();
|
|
74
|
+
(0, react_2.useOutsideClick)({
|
|
75
|
+
ref: containerRef,
|
|
76
|
+
handler: function () {
|
|
77
|
+
setIsOpen(false);
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
var selectedValues = isMultiple
|
|
81
|
+
? normalizeMultiValue(value)
|
|
82
|
+
: normalizeSingleValue(value)
|
|
83
|
+
? [normalizeSingleValue(value)]
|
|
84
|
+
: [];
|
|
85
|
+
var filteredOptions = options.filter(function (option) { var _a, _b; return (_b = (_a = option === null || option === void 0 ? void 0 : option.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.includes(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase()); });
|
|
86
|
+
(0, react_1.useEffect)(function () {
|
|
87
|
+
var delayDebounce = setTimeout(function () {
|
|
88
|
+
onSearch === null || onSearch === void 0 ? void 0 : onSearch(inputValue);
|
|
89
|
+
}, 1000);
|
|
90
|
+
return function () { return clearTimeout(delayDebounce); };
|
|
91
|
+
}, [inputValue, onSearch]);
|
|
92
|
+
(0, react_1.useEffect)(function () {
|
|
93
|
+
if (pagination === null || pagination === void 0 ? void 0 : pagination.limit) {
|
|
94
|
+
setHasMore(options.length % pagination.limit === 0);
|
|
95
|
+
}
|
|
96
|
+
}, [options.length, pagination === null || pagination === void 0 ? void 0 : pagination.limit]);
|
|
97
|
+
var handleSelect = function (option) {
|
|
98
|
+
if (isMultiple) {
|
|
99
|
+
var exists = selectedValues.find(function (v) { return v.id === option.id; });
|
|
100
|
+
var updated = exists
|
|
101
|
+
? selectedValues.filter(function (v) { return v.id !== option.id; })
|
|
102
|
+
: __spreadArray(__spreadArray([], selectedValues, true), [option], false);
|
|
103
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect(updated);
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect(option);
|
|
107
|
+
setIsOpen(false);
|
|
108
|
+
}
|
|
109
|
+
setInputValue('');
|
|
110
|
+
};
|
|
111
|
+
var handleRemove = function (id) {
|
|
112
|
+
var updated = selectedValues.filter(function (v) { return v.id !== id; });
|
|
113
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect(updated);
|
|
114
|
+
};
|
|
115
|
+
var handleClearAll = function () {
|
|
116
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect(isMultiple ? [] : undefined);
|
|
117
|
+
setInputValue('');
|
|
118
|
+
};
|
|
119
|
+
var handleSelectAll = function () {
|
|
120
|
+
var allSelected = filteredOptions.every(function (opt) {
|
|
121
|
+
return selectedValues.some(function (sel) { return sel.id === opt.id; });
|
|
122
|
+
});
|
|
123
|
+
if (allSelected) {
|
|
124
|
+
var updated = selectedValues.filter(function (sel) { return !filteredOptions.some(function (opt) { return opt.id === sel.id; }); });
|
|
125
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect(updated);
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
var filteredNotSelected = filteredOptions.filter(function (opt) { return !selectedValues.some(function (sel) { return sel.id === opt.id; }); });
|
|
129
|
+
onSelect === null || onSelect === void 0 ? void 0 : onSelect(__spreadArray(__spreadArray([], selectedValues, true), filteredNotSelected, true));
|
|
130
|
+
}
|
|
131
|
+
setInputValue('');
|
|
132
|
+
};
|
|
133
|
+
var isSelected = function (id) {
|
|
134
|
+
return selectedValues.some(function (v) { return v.id === id; });
|
|
135
|
+
};
|
|
136
|
+
var isValidIcon = function (icon) {
|
|
137
|
+
return react_1.default.isValidElement(icon);
|
|
138
|
+
};
|
|
139
|
+
var allFilteredSelected = filteredOptions.length > 0 &&
|
|
140
|
+
filteredOptions.every(function (opt) {
|
|
141
|
+
return selectedValues.some(function (sel) { return sel.id === opt.id; });
|
|
142
|
+
});
|
|
143
|
+
var handleScroll = (0, react_1.useCallback)(function (e) {
|
|
144
|
+
if (!pagination || !pagination.onScroll || pagination.scrollLoading || !hasMore)
|
|
145
|
+
return;
|
|
146
|
+
var target = e.currentTarget;
|
|
147
|
+
var nearBottom = target.scrollTop + target.clientHeight >= target.scrollHeight - 5;
|
|
148
|
+
if (nearBottom) {
|
|
149
|
+
if (scrollTimeoutRef.current)
|
|
150
|
+
clearTimeout(scrollTimeoutRef.current);
|
|
151
|
+
scrollTimeoutRef.current = setTimeout(function () {
|
|
152
|
+
var _a;
|
|
153
|
+
var startIndex = options.length + 1;
|
|
154
|
+
(_a = pagination.onScroll) === null || _a === void 0 ? void 0 : _a.call(pagination, startIndex, pagination.limit || 10, inputValue);
|
|
155
|
+
}, 200);
|
|
156
|
+
}
|
|
157
|
+
}, [pagination, options.length, inputValue, hasMore]);
|
|
158
|
+
(0, react_2.useOutsideClick)({
|
|
159
|
+
ref: customSelectRef,
|
|
160
|
+
handler: function (e) {
|
|
161
|
+
var dropdown = document.getElementById('custom-select-portal');
|
|
162
|
+
if (dropdown && dropdown.contains(e.target))
|
|
163
|
+
return;
|
|
164
|
+
setCustomSelectOpen(false);
|
|
165
|
+
},
|
|
166
|
+
});
|
|
167
|
+
var handleCustomSelect = function (item) {
|
|
168
|
+
if (typeof (insideSelect === null || insideSelect === void 0 ? void 0 : insideSelect.onSelect) === 'function') {
|
|
169
|
+
insideSelect.onSelect(item);
|
|
170
|
+
}
|
|
171
|
+
setCustomSelectOpen(false);
|
|
172
|
+
};
|
|
173
|
+
(0, react_1.useEffect)(function () {
|
|
174
|
+
if (customSelectOpen && customSelectRef.current) {
|
|
175
|
+
var rect = customSelectRef.current.getBoundingClientRect();
|
|
176
|
+
setCustomSelectPos({
|
|
177
|
+
top: rect.bottom + window.scrollY,
|
|
178
|
+
left: rect.left + window.scrollX,
|
|
179
|
+
width: rect.width + 30,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
}, [customSelectOpen]);
|
|
183
|
+
return (react_1.default.createElement(react_2.Box, { ref: containerRef, width: width, position: "relative" },
|
|
184
|
+
label && (react_1.default.createElement(FormLabel_1.TextLabel, { label: label, id: id, isRequired: isRequired, isInformation: information === null || information === void 0 ? void 0 : information.isInformation, informationMessage: information === null || information === void 0 ? void 0 : information.informationMessage })),
|
|
185
|
+
react_1.default.createElement(react_2.InputGroup, { size: size },
|
|
186
|
+
react_1.default.createElement(react_2.Box, { as: "div", w: "100%", minH: "2.85rem", px: 3, display: "flex", alignItems: "center", flexWrap: "wrap", gap: "0.375rem", border: "0.063rem solid", borderColor: error ? theme.colors.semantic.error[500] : theme.colors.primary[500], borderRadius: "0.25rem", bg: "white", boxShadow: focused ? error ? "0 0 0 0.125rem ".concat((_b = theme.colors.boxShadow) === null || _b === void 0 ? void 0 : _b.error) : "0 0 0 0.125rem ".concat((_c = theme.colors.boxShadow) === null || _c === void 0 ? void 0 : _c.primary) : 'none', transition: "box-shadow 0.2s, border-color 0.2s" },
|
|
187
|
+
insideSelect && (react_1.default.createElement(react_2.Box, { position: "relative", ref: customSelectRef, backgroundColor: theme.colors.gray[200], ml: "-0.75rem", h: "-webkit-fill-available", borderRadius: "0.25rem 0 0 0.25rem", onClick: function () { return setCustomSelectOpen(function (prev) { return !prev; }); } },
|
|
188
|
+
react_1.default.createElement(react_2.Box, { minW: "5rem", cursor: "pointer", display: "flex", justifyContent: "space-between", alignItems: "center", width: insideSelect.width, height: height, pl: "0.5rem", pr: "0.5rem" },
|
|
189
|
+
react_1.default.createElement(SelectTruncatedLabel_1.default, { label: (_e = (_d = insideSelect === null || insideSelect === void 0 ? void 0 : insideSelect.value) === null || _d === void 0 ? void 0 : _d.label) !== null && _e !== void 0 ? _e : "", maxWidth: (insideSelect === null || insideSelect === void 0 ? void 0 : insideSelect.width) || "6rem" }),
|
|
190
|
+
customSelectOpen ? react_1.default.createElement(lucide_react_1.ChevronUp, { size: 16 }) : react_1.default.createElement(lucide_react_1.ChevronDown, { size: 16 })),
|
|
191
|
+
customSelectOpen && (react_1.default.createElement(react_2.Portal, null,
|
|
192
|
+
react_1.default.createElement(react_2.Box, { id: "custom-select-portal", position: "absolute", top: "".concat(customSelectPos.top, "px"), left: "".concat(customSelectPos.left, "px"), zIndex: 1400, bg: theme.colors.white, border: "0.063rem solid", borderColor: theme.colors.gray[300], borderRadius: "md", boxShadow: "md", minW: "10rem", maxW: "38rem" }, (_f = insideSelect === null || insideSelect === void 0 ? void 0 : insideSelect.option) === null || _f === void 0 ? void 0 : _f.map(function (item) { return (react_1.default.createElement(react_2.Box, { key: item.id, display: "flex", alignItems: "center", height: "2.5rem", px: "0.75rem", fontSize: "sm", _hover: { bg: theme.colors.gray[100] }, cursor: "pointer", onClick: function (e) {
|
|
193
|
+
e.stopPropagation();
|
|
194
|
+
handleCustomSelect(item);
|
|
195
|
+
} }, item.label)); })))))),
|
|
196
|
+
isMultiple
|
|
197
|
+
? selectedValues.slice(0, (chip === null || chip === void 0 ? void 0 : chip.maxChips) || selectedValues.length).map(function (item) { return (react_1.default.createElement(Tag_1.default, { key: item.id, label: (chip === null || chip === void 0 ? void 0 : chip.maxText) && item.label.length > chip.maxText
|
|
198
|
+
? item.label.slice(0, chip.maxText) + '…'
|
|
199
|
+
: item.label, onIconClick: (chip === null || chip === void 0 ? void 0 : chip.onClick) ? function () { return handleRemove(item === null || item === void 0 ? void 0 : item.id); } : undefined, icon: (chip === null || chip === void 0 ? void 0 : chip.onClick) ? lucide_react_1.CircleX : undefined, colorScheme: "gray", size: "sm" })); })
|
|
200
|
+
: selectedValues.length === 1 &&
|
|
201
|
+
inputValue === '' && (react_1.default.createElement(react_2.Box, { as: "button", type: "button", onClick: function () { return setIsOpen(true); }, fontSize: "sm", color: theme.colors.gray[800], background: "transparent", border: "none", cursor: "pointer", p: 0 }, selectedValues[0].label)),
|
|
202
|
+
(chip === null || chip === void 0 ? void 0 : chip.maxChips) &&
|
|
203
|
+
isMultiple &&
|
|
204
|
+
selectedValues.length > chip.maxChips && (react_1.default.createElement(Tag_1.default, { key: "extra-count", label: "+ ".concat(selectedValues.length - chip.maxChips), colorScheme: "gray", size: "sm" })),
|
|
205
|
+
(isMultiple || inputValue || !selectedValues.length || !isMultiple) && (react_1.default.createElement(react_2.Input, { ref: inputRef, variant: "unstyled", flex: "1", minW: "5rem", value: inputValue, onChange: function (e) { return setInputValue(e.target.value); }, onFocus: function () {
|
|
206
|
+
setFocused(true);
|
|
207
|
+
setIsOpen(true);
|
|
208
|
+
}, onBlur: function () { return setFocused(false); }, placeholder: placeholder })),
|
|
209
|
+
react_1.default.createElement(react_2.Box, { ml: "auto", display: "flex", alignItems: "center", gap: 1 },
|
|
210
|
+
isRemoveAllIcon && selectedValues.length > 0 && (react_1.default.createElement(ToolTip_1.default, { placement: "top", label: "Remove All", hasArrow: true, bg: theme.colors.gray[600], color: theme.colors.white, fontSize: "0.75rem" },
|
|
211
|
+
react_1.default.createElement(react_2.IconButton, { icon: react_1.default.createElement(lucide_react_1.X, { size: 12, color: theme.colors.black }), "aria-label": "Clear all", variant: "ghost", size: "sm", onClick: handleClearAll, sx: {
|
|
212
|
+
bg: 'transparent',
|
|
213
|
+
_hover: { bg: 'transparent' },
|
|
214
|
+
_active: { bg: 'transparent' },
|
|
215
|
+
_focus: { boxShadow: 'none', bg: 'transparent' },
|
|
216
|
+
} }))),
|
|
217
|
+
isLoading ? (react_1.default.createElement(react_2.Spinner, { size: "sm" })) : isValidIcon(rightIcon === null || rightIcon === void 0 ? void 0 : rightIcon.icon) ? (react_1.default.createElement(react_2.IconButton, { icon: rightIcon === null || rightIcon === void 0 ? void 0 : rightIcon.icon, "aria-label": "right-icon", variant: "ghost", size: "sm", onClick: rightIcon === null || rightIcon === void 0 ? void 0 : rightIcon.onClick })) : (react_1.default.createElement(react_2.Box, { as: "button", onClick: function (e) {
|
|
218
|
+
e.preventDefault();
|
|
219
|
+
e.stopPropagation();
|
|
220
|
+
setIsOpen(function (prev) { return !prev; });
|
|
221
|
+
}, "aria-label": "toggle-dropdown", display: "flex", alignItems: "center" }, isOpen ? react_1.default.createElement(lucide_react_1.ChevronUp, { size: 16 }) : react_1.default.createElement(lucide_react_1.ChevronDown, { size: 16 })))))),
|
|
222
|
+
isOpen && (react_1.default.createElement(react_2.Box, { position: "absolute", zIndex: 10, width: "100%", maxH: "20rem", borderWidth: 1, borderRadius: "sm", bg: "white", boxShadow: "md", display: "flex", flexDirection: "column" },
|
|
223
|
+
isMultiple && isSelectAll && (react_1.default.createElement(react_2.Box, { p: 2, px: 3, cursor: "pointer", onClick: handleSelectAll, display: "flex", alignItems: "center", gap: 2, borderBottom: "0.063rem solid ".concat(theme.colors.gray[100]) },
|
|
224
|
+
react_1.default.createElement(react_2.Checkbox, { isChecked: allFilteredSelected, pointerEvents: "none" }),
|
|
225
|
+
react_1.default.createElement(react_2.Text, { fontSize: "sm" }, allFilteredSelected ? 'Unselect All' : 'Select All'))),
|
|
226
|
+
react_1.default.createElement(react_2.Box, { flex: "1", overflowY: "auto", onScroll: handleScroll, maxH: "15rem", borderBottom: "0.063rem solid", borderColor: theme.colors.gray[200] }, isOptionLoading ? (react_1.default.createElement(react_2.Box, { p: 3, display: "flex", alignItems: "center", gap: 2 },
|
|
227
|
+
react_1.default.createElement(react_2.Spinner, { size: "sm" }),
|
|
228
|
+
react_1.default.createElement(react_2.Text, { fontSize: "sm" }, loadingText))) : filteredOptions.length === 0 ? (react_1.default.createElement(react_2.Text, { p: 3, fontSize: "sm", color: theme.colors.gray[500] }, "No results found")) : (filteredOptions.map(function (option) { return (react_1.default.createElement(react_2.Box, { key: option.id, p: 2, px: 3, cursor: "pointer", bg: isSelected(option.id) ? theme.colors.gray[100] : 'transparent', _hover: { bg: theme.colors.gray[50] }, onClick: function () { return handleSelect(option); }, display: "flex", alignItems: "center", gap: 2, borderBottom: "0.063rem solid ".concat(theme.colors.gray[100]) },
|
|
229
|
+
isMultiple && (react_1.default.createElement(react_2.Checkbox, { isChecked: isSelected(option.id), pointerEvents: "none", colorScheme: "blue" })),
|
|
230
|
+
option.view ? react_1.default.createElement(react_1.default.Fragment, null, option.view) : react_1.default.createElement(react_2.Text, { fontSize: "sm" }, option.label))); }))),
|
|
231
|
+
(addNew === null || addNew === void 0 ? void 0 : addNew.enabled) && (react_1.default.createElement(react_2.Box, { p: 2, borderTop: "0.063rem solid", borderColor: theme.colors.gray[200], bg: "white", display: "flex", alignItems: "center", gap: 2, cursor: "pointer", onClick: addNew.onClick, _hover: { bg: theme.colors.gray[50] } },
|
|
232
|
+
addNew.icon || react_1.default.createElement(lucide_react_1.Plus, { size: 16 }),
|
|
233
|
+
react_1.default.createElement(react_2.Text, { fontSize: "sm" }, addNew.text || 'Add New'))))),
|
|
234
|
+
helperText && !error && react_1.default.createElement(HelperText_1.default, { helperText: helperText }),
|
|
235
|
+
error && react_1.default.createElement(ErrorMessage_1.default, { errorMessage: errorMessage })));
|
|
236
|
+
};
|
|
237
|
+
exports.default = SearchSelect;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type SearchSelectProps = {
|
|
3
|
+
id?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
options: Options[];
|
|
6
|
+
onSelect?: (options: Options | Options[] | undefined) => void;
|
|
7
|
+
onSearch?: (value: string) => void;
|
|
8
|
+
isOptionLoading?: boolean;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
loadingText?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
value?: Options[] | Options;
|
|
13
|
+
searchQuery?: string;
|
|
14
|
+
isMultiple?: boolean;
|
|
15
|
+
isRequired?: boolean;
|
|
16
|
+
error?: boolean;
|
|
17
|
+
errorMessage?: string;
|
|
18
|
+
helperText?: string;
|
|
19
|
+
width?: string | number;
|
|
20
|
+
height?: string | number;
|
|
21
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
22
|
+
chip?: {
|
|
23
|
+
maxChips?: number;
|
|
24
|
+
maxText?: number;
|
|
25
|
+
onClick?: (options: Options | Options[]) => void;
|
|
26
|
+
};
|
|
27
|
+
information?: {
|
|
28
|
+
isInformation?: boolean;
|
|
29
|
+
informationMessage?: string;
|
|
30
|
+
};
|
|
31
|
+
rightIcon?: {
|
|
32
|
+
icon?: React.ReactNode;
|
|
33
|
+
onClick?: () => void;
|
|
34
|
+
};
|
|
35
|
+
addNew?: {
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
icon?: React.ReactNode;
|
|
38
|
+
text?: string;
|
|
39
|
+
onClick?: () => void;
|
|
40
|
+
};
|
|
41
|
+
isRemoveAllIcon?: boolean;
|
|
42
|
+
isSelectAll?: boolean;
|
|
43
|
+
pagination?: {
|
|
44
|
+
onScroll?: (startIndex: number, limit: number, query: string) => void;
|
|
45
|
+
limit?: number;
|
|
46
|
+
scrollLoading?: boolean;
|
|
47
|
+
};
|
|
48
|
+
virtualization?: boolean;
|
|
49
|
+
insideSelect?: {
|
|
50
|
+
onSelect?: (options: Options) => void;
|
|
51
|
+
value?: Options;
|
|
52
|
+
option?: Options[];
|
|
53
|
+
width?: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export type Options = {
|
|
57
|
+
id: string | number;
|
|
58
|
+
label: string;
|
|
59
|
+
view?: React.ReactNode;
|
|
60
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
var react_1 = require("@chakra-ui/react");
|
|
30
|
+
var react_2 = __importStar(require("react"));
|
|
31
|
+
var ToolTip_1 = __importDefault(require("../ToolTip/ToolTip"));
|
|
32
|
+
var SelectTruncatedLabel = function (_a) {
|
|
33
|
+
var label = _a.label, _b = _a.maxWidth, maxWidth = _b === void 0 ? "6rem" : _b;
|
|
34
|
+
var textRef = (0, react_2.useRef)(null);
|
|
35
|
+
var _c = (0, react_2.useState)(false), isOverflowing = _c[0], setIsOverflowing = _c[1];
|
|
36
|
+
(0, react_2.useEffect)(function () {
|
|
37
|
+
var el = textRef.current;
|
|
38
|
+
if (el) {
|
|
39
|
+
setIsOverflowing(el.scrollWidth > el.clientWidth);
|
|
40
|
+
}
|
|
41
|
+
}, [label, maxWidth]);
|
|
42
|
+
var textElement = (react_2.default.createElement(react_1.Text, { ref: textRef, maxW: maxWidth, isTruncated: true, whiteSpace: "nowrap", fontWeight: 500, fontSize: "0.875rem", letterSpacing: "0.044rem" }, label));
|
|
43
|
+
return isOverflowing ? react_2.default.createElement(ToolTip_1.default, { label: label, placement: "top" }, textElement) : textElement;
|
|
44
|
+
};
|
|
45
|
+
exports.default = SelectTruncatedLabel;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { chakraSelectProps } from "./SelectProps";
|
|
3
|
+
export default function Select({ placeholder, size, variant, icon, onChange, onBlur, onFocus, errorBorderColor, isDisabled, isReadOnly, isRequired, value, colorScheme, label, error, errorMessage, helperText, options, width, height, formControlStyle, isInformation, informationMessage, selectStyle, }: chakraSelectProps): React.JSX.Element;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
var react_1 = __importStar(require("react"));
|
|
30
|
+
var react_2 = require("@chakra-ui/react");
|
|
31
|
+
var FormLabel_1 = require("../Common/FormLabel");
|
|
32
|
+
var ErrorMessage_1 = __importDefault(require("../Common/ErrorMessage"));
|
|
33
|
+
var HelperText_1 = __importDefault(require("../Common/HelperText"));
|
|
34
|
+
function Select(_a) {
|
|
35
|
+
var _b = _a.placeholder, placeholder = _b === void 0 ? "Select Option" : _b, _c = _a.size, size = _c === void 0 ? "md" : _c, _d = _a.variant, variant = _d === void 0 ? "outline" : _d, icon = _a.icon, onChange = _a.onChange, onBlur = _a.onBlur, onFocus = _a.onFocus, errorBorderColor = _a.errorBorderColor, isDisabled = _a.isDisabled, isReadOnly = _a.isReadOnly, _e = _a.isRequired, isRequired = _e === void 0 ? false : _e, _f = _a.value, value = _f === void 0 ? "" : _f, colorScheme = _a.colorScheme, label = _a.label, error = _a.error, errorMessage = _a.errorMessage, helperText = _a.helperText, _g = _a.options, options = _g === void 0 ? [] : _g, _h = _a.width, width = _h === void 0 ? 500 : _h, _j = _a.height, height = _j === void 0 ? "2.75rem" : _j, formControlStyle = _a.formControlStyle, _k = _a.isInformation, isInformation = _k === void 0 ? false : _k, informationMessage = _a.informationMessage, selectStyle = _a.selectStyle;
|
|
36
|
+
var getOptionsList = (0, react_1.useCallback)(function () {
|
|
37
|
+
if (!options.length)
|
|
38
|
+
return react_1.default.createElement("option", { value: "" }, "No Options");
|
|
39
|
+
return options.map(function (option) { return (react_1.default.createElement("option", { key: option.id, value: option.id }, option.label)); });
|
|
40
|
+
}, [options]);
|
|
41
|
+
var handleOnChange = function (event) {
|
|
42
|
+
var selectedValue = event.target.value;
|
|
43
|
+
var selectedOption = options.find(function (option) { return option.id.toString() === selectedValue.toString(); });
|
|
44
|
+
if (selectedOption && onChange) {
|
|
45
|
+
onChange(selectedOption);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
return (react_1.default.createElement(react_2.FormControl, { isInvalid: error, style: formControlStyle, width: width },
|
|
49
|
+
label && (react_1.default.createElement(FormLabel_1.TextLabel, { label: label, isRequired: isRequired, isInformation: isInformation, informationMessage: informationMessage })),
|
|
50
|
+
react_1.default.createElement(react_2.Select, { placeholder: placeholder, size: size, variant: variant, icon: icon, isInvalid: error, value: value, onChange: handleOnChange, width: width, onBlur: onBlur, onFocus: onFocus, isDisabled: isDisabled, isReadOnly: isReadOnly, colorScheme: colorScheme, errorBorderColor: errorBorderColor, style: selectStyle, minH: height }, getOptionsList()),
|
|
51
|
+
error && react_1.default.createElement(ErrorMessage_1.default, { errorMessage: errorMessage }),
|
|
52
|
+
helperText && !error && react_1.default.createElement(HelperText_1.default, { helperText: helperText })));
|
|
53
|
+
}
|
|
54
|
+
exports.default = Select;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import React from "react";
|
|
3
|
+
// import { Meta, StoryFn } from "@storybook/react";
|
|
4
|
+
// import { ChakraProvider } from "@chakra-ui/react";
|
|
5
|
+
// import { useState } from "react";
|
|
6
|
+
// import Select from "./Select";
|
|
7
|
+
// import { chakraSelectProps } from "./SelectProps";
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Select = void 0;
|
|
4
|
+
exports.Select = {
|
|
5
|
+
baseStyle: {
|
|
6
|
+
field: {
|
|
7
|
+
fontWeight: 500,
|
|
8
|
+
fontSize: "0.875rem",
|
|
9
|
+
letterSpacing: "0.044rem",
|
|
10
|
+
borderRadius: "0.25rem",
|
|
11
|
+
minWidth: "0",
|
|
12
|
+
width: "100%",
|
|
13
|
+
maxWidth: "100%",
|
|
14
|
+
_placeholder: {
|
|
15
|
+
fontStyle: "italic",
|
|
16
|
+
whiteSpace: "nowrap",
|
|
17
|
+
overflow: "hidden",
|
|
18
|
+
textOverflow: "ellipsis",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
icon: {
|
|
22
|
+
width: "1.25rem",
|
|
23
|
+
height: "1.25rem",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
sizes: {
|
|
27
|
+
sm: {
|
|
28
|
+
field: {
|
|
29
|
+
h: "2.125rem",
|
|
30
|
+
fontSize: "0.8125rem",
|
|
31
|
+
px: "0.5rem",
|
|
32
|
+
py: "0.5rem",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
md: {
|
|
36
|
+
field: {
|
|
37
|
+
h: "2.375rem",
|
|
38
|
+
fontSize: "0.875rem",
|
|
39
|
+
px: "0.75rem",
|
|
40
|
+
py: "0.5rem",
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
lg: {
|
|
44
|
+
field: {
|
|
45
|
+
h: "2.75rem",
|
|
46
|
+
fontSize: "0.9375rem",
|
|
47
|
+
px: "1rem",
|
|
48
|
+
py: "0.5rem",
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
variants: {
|
|
53
|
+
outline: function (props) {
|
|
54
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
55
|
+
var theme = props.theme;
|
|
56
|
+
var errorColor = (_c = (_b = (_a = theme.colors.semantic) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b[500]) !== null && _c !== void 0 ? _c : "red.500";
|
|
57
|
+
var borderColor = (_e = (_d = theme.colors.boxborder) === null || _d === void 0 ? void 0 : _d[500]) !== null && _e !== void 0 ? _e : "gray.300";
|
|
58
|
+
var shadowPrimary = (_g = (_f = theme.colors.boxShadow) === null || _f === void 0 ? void 0 : _f.primary) !== null && _g !== void 0 ? _g : "blue.100";
|
|
59
|
+
var shadowError = (_j = (_h = theme.colors.boxShadow) === null || _h === void 0 ? void 0 : _h.error) !== null && _j !== void 0 ? _j : "red.100";
|
|
60
|
+
var primary = (_l = (_k = theme.colors.primary) === null || _k === void 0 ? void 0 : _k[500]) !== null && _l !== void 0 ? _l : "blue.500";
|
|
61
|
+
return {
|
|
62
|
+
field: {
|
|
63
|
+
bg: (_o = (_m = theme.colors.gray) === null || _m === void 0 ? void 0 : _m[50]) !== null && _o !== void 0 ? _o : "gray.50",
|
|
64
|
+
border: "0.063rem solid",
|
|
65
|
+
borderColor: borderColor,
|
|
66
|
+
_hover: {
|
|
67
|
+
borderColor: primary,
|
|
68
|
+
boxShadow: "0 0 0 0.125rem ".concat(shadowPrimary),
|
|
69
|
+
},
|
|
70
|
+
_focus: {
|
|
71
|
+
borderColor: primary,
|
|
72
|
+
boxShadow: "0 0 0 0.125rem ".concat(shadowPrimary),
|
|
73
|
+
},
|
|
74
|
+
_disabled: {
|
|
75
|
+
opacity: 0.4,
|
|
76
|
+
cursor: "not-allowed",
|
|
77
|
+
},
|
|
78
|
+
_invalid: {
|
|
79
|
+
borderColor: errorColor,
|
|
80
|
+
boxShadow: "0 0 0 0.125rem ".concat(shadowError),
|
|
81
|
+
_hover: {
|
|
82
|
+
borderColor: errorColor,
|
|
83
|
+
boxShadow: "0 0 0 0.125rem ".concat(shadowError),
|
|
84
|
+
},
|
|
85
|
+
_focus: {
|
|
86
|
+
borderColor: errorColor,
|
|
87
|
+
boxShadow: "0 0 0 0.125rem ".concat(shadowError),
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
defaultProps: {
|
|
95
|
+
variant: "outline",
|
|
96
|
+
size: "md",
|
|
97
|
+
},
|
|
98
|
+
};
|