pixelize-design-library 2.1.12 → 2.1.14
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/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 -262
- package/dist/withTheme.d.ts +3 -0
- package/dist/withTheme.js +28 -0
- package/package.json +16 -27
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -1
- package/dist/node_modules/date-fns/_lib/defaultLocale.js +0 -1
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -1
- package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -1
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -1
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -1
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +0 -1
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -1
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -1
- package/dist/node_modules/date-fns/add.js +0 -1
- package/dist/node_modules/date-fns/addBusinessDays.js +0 -1
- package/dist/node_modules/date-fns/addDays.js +0 -1
- package/dist/node_modules/date-fns/addHours.js +0 -1
- package/dist/node_modules/date-fns/addISOWeekYears.js +0 -1
- package/dist/node_modules/date-fns/addMilliseconds.js +0 -1
- package/dist/node_modules/date-fns/addMinutes.js +0 -1
- package/dist/node_modules/date-fns/addMonths.js +0 -1
- package/dist/node_modules/date-fns/addQuarters.js +0 -1
- package/dist/node_modules/date-fns/addSeconds.js +0 -1
- package/dist/node_modules/date-fns/addWeeks.js +0 -1
- package/dist/node_modules/date-fns/addYears.js +0 -1
- package/dist/node_modules/date-fns/areIntervalsOverlapping.js +0 -1
- package/dist/node_modules/date-fns/clamp.js +0 -1
- package/dist/node_modules/date-fns/closestIndexTo.js +0 -1
- package/dist/node_modules/date-fns/closestTo.js +0 -1
- package/dist/node_modules/date-fns/compareAsc.js +0 -1
- package/dist/node_modules/date-fns/compareDesc.js +0 -1
- package/dist/node_modules/date-fns/constants.js +0 -1
- package/dist/node_modules/date-fns/constructFrom.js +0 -1
- package/dist/node_modules/date-fns/constructNow.js +0 -1
- package/dist/node_modules/date-fns/daysToWeeks.js +0 -1
- package/dist/node_modules/date-fns/differenceInBusinessDays.js +0 -1
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -1
- package/dist/node_modules/date-fns/differenceInCalendarISOWeekYears.js +0 -1
- package/dist/node_modules/date-fns/differenceInCalendarISOWeeks.js +0 -1
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -1
- package/dist/node_modules/date-fns/differenceInCalendarQuarters.js +0 -1
- package/dist/node_modules/date-fns/differenceInCalendarWeeks.js +0 -1
- package/dist/node_modules/date-fns/differenceInCalendarYears.js +0 -1
- package/dist/node_modules/date-fns/differenceInDays.js +0 -1
- package/dist/node_modules/date-fns/differenceInHours.js +0 -1
- package/dist/node_modules/date-fns/differenceInISOWeekYears.js +0 -1
- package/dist/node_modules/date-fns/differenceInMilliseconds.js +0 -1
- package/dist/node_modules/date-fns/differenceInMinutes.js +0 -1
- package/dist/node_modules/date-fns/differenceInMonths.js +0 -1
- package/dist/node_modules/date-fns/differenceInQuarters.js +0 -1
- package/dist/node_modules/date-fns/differenceInSeconds.js +0 -1
- package/dist/node_modules/date-fns/differenceInWeeks.js +0 -1
- package/dist/node_modules/date-fns/differenceInYears.js +0 -1
- package/dist/node_modules/date-fns/eachDayOfInterval.js +0 -1
- package/dist/node_modules/date-fns/eachHourOfInterval.js +0 -1
- package/dist/node_modules/date-fns/eachMinuteOfInterval.js +0 -1
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -1
- package/dist/node_modules/date-fns/eachQuarterOfInterval.js +0 -1
- package/dist/node_modules/date-fns/eachWeekOfInterval.js +0 -1
- package/dist/node_modules/date-fns/eachWeekendOfInterval.js +0 -1
- package/dist/node_modules/date-fns/eachWeekendOfMonth.js +0 -1
- package/dist/node_modules/date-fns/eachWeekendOfYear.js +0 -1
- package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -1
- package/dist/node_modules/date-fns/endOfDay.js +0 -1
- package/dist/node_modules/date-fns/endOfDecade.js +0 -1
- package/dist/node_modules/date-fns/endOfHour.js +0 -1
- package/dist/node_modules/date-fns/endOfISOWeek.js +0 -1
- package/dist/node_modules/date-fns/endOfISOWeekYear.js +0 -1
- package/dist/node_modules/date-fns/endOfMinute.js +0 -1
- package/dist/node_modules/date-fns/endOfMonth.js +0 -1
- package/dist/node_modules/date-fns/endOfQuarter.js +0 -1
- package/dist/node_modules/date-fns/endOfSecond.js +0 -1
- package/dist/node_modules/date-fns/endOfToday.js +0 -1
- package/dist/node_modules/date-fns/endOfTomorrow.js +0 -1
- package/dist/node_modules/date-fns/endOfWeek.js +0 -1
- package/dist/node_modules/date-fns/endOfYear.js +0 -1
- package/dist/node_modules/date-fns/endOfYesterday.js +0 -1
- package/dist/node_modules/date-fns/format.js +0 -1
- package/dist/node_modules/date-fns/formatDistance.js +0 -1
- package/dist/node_modules/date-fns/formatDistanceStrict.js +0 -1
- package/dist/node_modules/date-fns/formatDistanceToNow.js +0 -1
- package/dist/node_modules/date-fns/formatDistanceToNowStrict.js +0 -1
- package/dist/node_modules/date-fns/formatDuration.js +0 -1
- package/dist/node_modules/date-fns/formatISO.js +0 -1
- package/dist/node_modules/date-fns/formatISO9075.js +0 -1
- package/dist/node_modules/date-fns/formatISODuration.js +0 -1
- package/dist/node_modules/date-fns/formatRFC3339.js +0 -1
- package/dist/node_modules/date-fns/formatRFC7231.js +0 -1
- package/dist/node_modules/date-fns/formatRelative.js +0 -1
- package/dist/node_modules/date-fns/fromUnixTime.js +0 -1
- package/dist/node_modules/date-fns/getDate.js +0 -1
- package/dist/node_modules/date-fns/getDay.js +0 -1
- package/dist/node_modules/date-fns/getDayOfYear.js +0 -1
- package/dist/node_modules/date-fns/getDaysInMonth.js +0 -1
- package/dist/node_modules/date-fns/getDaysInYear.js +0 -1
- package/dist/node_modules/date-fns/getDecade.js +0 -1
- package/dist/node_modules/date-fns/getDefaultOptions.js +0 -1
- package/dist/node_modules/date-fns/getHours.js +0 -1
- package/dist/node_modules/date-fns/getISODay.js +0 -1
- package/dist/node_modules/date-fns/getISOWeek.js +0 -1
- package/dist/node_modules/date-fns/getISOWeekYear.js +0 -1
- package/dist/node_modules/date-fns/getISOWeeksInYear.js +0 -1
- package/dist/node_modules/date-fns/getMilliseconds.js +0 -1
- package/dist/node_modules/date-fns/getMinutes.js +0 -1
- package/dist/node_modules/date-fns/getMonth.js +0 -1
- package/dist/node_modules/date-fns/getOverlappingDaysInIntervals.js +0 -1
- package/dist/node_modules/date-fns/getQuarter.js +0 -1
- package/dist/node_modules/date-fns/getSeconds.js +0 -1
- package/dist/node_modules/date-fns/getTime.js +0 -1
- package/dist/node_modules/date-fns/getUnixTime.js +0 -1
- package/dist/node_modules/date-fns/getWeek.js +0 -1
- package/dist/node_modules/date-fns/getWeekOfMonth.js +0 -1
- package/dist/node_modules/date-fns/getWeekYear.js +0 -1
- package/dist/node_modules/date-fns/getWeeksInMonth.js +0 -1
- package/dist/node_modules/date-fns/getYear.js +0 -1
- package/dist/node_modules/date-fns/hoursToMilliseconds.js +0 -1
- package/dist/node_modules/date-fns/hoursToMinutes.js +0 -1
- package/dist/node_modules/date-fns/hoursToSeconds.js +0 -1
- package/dist/node_modules/date-fns/index.js +0 -1
- package/dist/node_modules/date-fns/interval.js +0 -1
- package/dist/node_modules/date-fns/intervalToDuration.js +0 -1
- package/dist/node_modules/date-fns/intlFormat.js +0 -1
- package/dist/node_modules/date-fns/intlFormatDistance.js +0 -1
- package/dist/node_modules/date-fns/isAfter.js +0 -1
- package/dist/node_modules/date-fns/isBefore.js +0 -1
- package/dist/node_modules/date-fns/isDate.js +0 -1
- package/dist/node_modules/date-fns/isEqual.js +0 -1
- package/dist/node_modules/date-fns/isExists.js +0 -1
- package/dist/node_modules/date-fns/isFirstDayOfMonth.js +0 -1
- package/dist/node_modules/date-fns/isFriday.js +0 -1
- package/dist/node_modules/date-fns/isFuture.js +0 -1
- package/dist/node_modules/date-fns/isLastDayOfMonth.js +0 -1
- package/dist/node_modules/date-fns/isLeapYear.js +0 -1
- package/dist/node_modules/date-fns/isMatch.js +0 -1
- package/dist/node_modules/date-fns/isMonday.js +0 -1
- package/dist/node_modules/date-fns/isPast.js +0 -1
- package/dist/node_modules/date-fns/isSameDay.js +0 -1
- package/dist/node_modules/date-fns/isSameHour.js +0 -1
- package/dist/node_modules/date-fns/isSameISOWeek.js +0 -1
- package/dist/node_modules/date-fns/isSameISOWeekYear.js +0 -1
- package/dist/node_modules/date-fns/isSameMinute.js +0 -1
- package/dist/node_modules/date-fns/isSameMonth.js +0 -1
- package/dist/node_modules/date-fns/isSameQuarter.js +0 -1
- package/dist/node_modules/date-fns/isSameSecond.js +0 -1
- package/dist/node_modules/date-fns/isSameWeek.js +0 -1
- package/dist/node_modules/date-fns/isSameYear.js +0 -1
- package/dist/node_modules/date-fns/isSaturday.js +0 -1
- package/dist/node_modules/date-fns/isSunday.js +0 -1
- package/dist/node_modules/date-fns/isThisHour.js +0 -1
- package/dist/node_modules/date-fns/isThisISOWeek.js +0 -1
- package/dist/node_modules/date-fns/isThisMinute.js +0 -1
- package/dist/node_modules/date-fns/isThisMonth.js +0 -1
- package/dist/node_modules/date-fns/isThisQuarter.js +0 -1
- package/dist/node_modules/date-fns/isThisSecond.js +0 -1
- package/dist/node_modules/date-fns/isThisWeek.js +0 -1
- package/dist/node_modules/date-fns/isThisYear.js +0 -1
- package/dist/node_modules/date-fns/isThursday.js +0 -1
- package/dist/node_modules/date-fns/isToday.js +0 -1
- package/dist/node_modules/date-fns/isTomorrow.js +0 -1
- package/dist/node_modules/date-fns/isTuesday.js +0 -1
- package/dist/node_modules/date-fns/isValid.js +0 -1
- package/dist/node_modules/date-fns/isWednesday.js +0 -1
- package/dist/node_modules/date-fns/isWeekend.js +0 -1
- package/dist/node_modules/date-fns/isWithinInterval.js +0 -1
- package/dist/node_modules/date-fns/isYesterday.js +0 -1
- package/dist/node_modules/date-fns/lastDayOfDecade.js +0 -1
- package/dist/node_modules/date-fns/lastDayOfISOWeek.js +0 -1
- package/dist/node_modules/date-fns/lastDayOfISOWeekYear.js +0 -1
- package/dist/node_modules/date-fns/lastDayOfMonth.js +0 -1
- package/dist/node_modules/date-fns/lastDayOfQuarter.js +0 -1
- package/dist/node_modules/date-fns/lastDayOfWeek.js +0 -1
- package/dist/node_modules/date-fns/lastDayOfYear.js +0 -1
- package/dist/node_modules/date-fns/lightFormat.js +0 -1
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -1
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -1
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US.js +0 -1
- package/dist/node_modules/date-fns/max.js +0 -1
- package/dist/node_modules/date-fns/milliseconds.js +0 -1
- package/dist/node_modules/date-fns/millisecondsToHours.js +0 -1
- package/dist/node_modules/date-fns/millisecondsToMinutes.js +0 -1
- package/dist/node_modules/date-fns/millisecondsToSeconds.js +0 -1
- package/dist/node_modules/date-fns/min.js +0 -1
- package/dist/node_modules/date-fns/minutesToHours.js +0 -1
- package/dist/node_modules/date-fns/minutesToMilliseconds.js +0 -1
- package/dist/node_modules/date-fns/minutesToSeconds.js +0 -1
- package/dist/node_modules/date-fns/monthsToQuarters.js +0 -1
- package/dist/node_modules/date-fns/monthsToYears.js +0 -1
- package/dist/node_modules/date-fns/nextDay.js +0 -1
- package/dist/node_modules/date-fns/nextFriday.js +0 -1
- package/dist/node_modules/date-fns/nextMonday.js +0 -1
- package/dist/node_modules/date-fns/nextSaturday.js +0 -1
- package/dist/node_modules/date-fns/nextSunday.js +0 -1
- package/dist/node_modules/date-fns/nextThursday.js +0 -1
- package/dist/node_modules/date-fns/nextTuesday.js +0 -1
- package/dist/node_modules/date-fns/nextWednesday.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/Parser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/Setter.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/constants.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/parsers.js +0 -1
- package/dist/node_modules/date-fns/parse/_lib/utils.js +0 -1
- package/dist/node_modules/date-fns/parse.js +0 -1
- package/dist/node_modules/date-fns/parseISO.js +0 -1
- package/dist/node_modules/date-fns/parseJSON.js +0 -1
- package/dist/node_modules/date-fns/previousDay.js +0 -1
- package/dist/node_modules/date-fns/previousFriday.js +0 -1
- package/dist/node_modules/date-fns/previousMonday.js +0 -1
- package/dist/node_modules/date-fns/previousSaturday.js +0 -1
- package/dist/node_modules/date-fns/previousSunday.js +0 -1
- package/dist/node_modules/date-fns/previousThursday.js +0 -1
- package/dist/node_modules/date-fns/previousTuesday.js +0 -1
- package/dist/node_modules/date-fns/previousWednesday.js +0 -1
- package/dist/node_modules/date-fns/quartersToMonths.js +0 -1
- package/dist/node_modules/date-fns/quartersToYears.js +0 -1
- package/dist/node_modules/date-fns/roundToNearestHours.js +0 -1
- package/dist/node_modules/date-fns/roundToNearestMinutes.js +0 -1
- package/dist/node_modules/date-fns/secondsToHours.js +0 -1
- package/dist/node_modules/date-fns/secondsToMilliseconds.js +0 -1
- package/dist/node_modules/date-fns/secondsToMinutes.js +0 -1
- package/dist/node_modules/date-fns/set.js +0 -1
- package/dist/node_modules/date-fns/setDate.js +0 -1
- package/dist/node_modules/date-fns/setDay.js +0 -1
- package/dist/node_modules/date-fns/setDayOfYear.js +0 -1
- package/dist/node_modules/date-fns/setDefaultOptions.js +0 -1
- package/dist/node_modules/date-fns/setHours.js +0 -1
- package/dist/node_modules/date-fns/setISODay.js +0 -1
- package/dist/node_modules/date-fns/setISOWeek.js +0 -1
- package/dist/node_modules/date-fns/setISOWeekYear.js +0 -1
- package/dist/node_modules/date-fns/setMilliseconds.js +0 -1
- package/dist/node_modules/date-fns/setMinutes.js +0 -1
- package/dist/node_modules/date-fns/setMonth.js +0 -1
- package/dist/node_modules/date-fns/setQuarter.js +0 -1
- package/dist/node_modules/date-fns/setSeconds.js +0 -1
- package/dist/node_modules/date-fns/setWeek.js +0 -1
- package/dist/node_modules/date-fns/setWeekYear.js +0 -1
- package/dist/node_modules/date-fns/setYear.js +0 -1
- package/dist/node_modules/date-fns/startOfDay.js +0 -1
- package/dist/node_modules/date-fns/startOfDecade.js +0 -1
- package/dist/node_modules/date-fns/startOfHour.js +0 -1
- package/dist/node_modules/date-fns/startOfISOWeek.js +0 -1
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -1
- package/dist/node_modules/date-fns/startOfMinute.js +0 -1
- package/dist/node_modules/date-fns/startOfMonth.js +0 -1
- package/dist/node_modules/date-fns/startOfQuarter.js +0 -1
- package/dist/node_modules/date-fns/startOfSecond.js +0 -1
- package/dist/node_modules/date-fns/startOfToday.js +0 -1
- package/dist/node_modules/date-fns/startOfTomorrow.js +0 -1
- package/dist/node_modules/date-fns/startOfWeek.js +0 -1
- package/dist/node_modules/date-fns/startOfWeekYear.js +0 -1
- package/dist/node_modules/date-fns/startOfYear.js +0 -1
- package/dist/node_modules/date-fns/startOfYesterday.js +0 -1
- package/dist/node_modules/date-fns/sub.js +0 -1
- package/dist/node_modules/date-fns/subBusinessDays.js +0 -1
- package/dist/node_modules/date-fns/subDays.js +0 -1
- package/dist/node_modules/date-fns/subHours.js +0 -1
- package/dist/node_modules/date-fns/subISOWeekYears.js +0 -1
- package/dist/node_modules/date-fns/subMilliseconds.js +0 -1
- package/dist/node_modules/date-fns/subMinutes.js +0 -1
- package/dist/node_modules/date-fns/subMonths.js +0 -1
- package/dist/node_modules/date-fns/subQuarters.js +0 -1
- package/dist/node_modules/date-fns/subSeconds.js +0 -1
- package/dist/node_modules/date-fns/subWeeks.js +0 -1
- package/dist/node_modules/date-fns/subYears.js +0 -1
- package/dist/node_modules/date-fns/toDate.js +0 -1
- package/dist/node_modules/date-fns/transpose.js +0 -1
- package/dist/node_modules/date-fns/weeksToDays.js +0 -1
- package/dist/node_modules/date-fns/yearsToDays.js +0 -1
- package/dist/node_modules/date-fns/yearsToMonths.js +0 -1
- package/dist/node_modules/date-fns/yearsToQuarters.js +0 -1
- package/dist/src/Assets/defaultLogo.js +0 -1
- package/dist/src/Components/Accordion/Accordion.js +0 -1
- package/dist/src/Components/AlertDialog/AlertDialog.js +0 -1
- package/dist/src/Components/Apexcharts/ApexBarChart/ApexBarChart.js +0 -1
- package/dist/src/Components/Apexcharts/ApexPieChart/ApexPieChart.js +0 -1
- package/dist/src/Components/Breadcrumbs/Breadcrumbs.js +0 -1
- package/dist/src/Components/Button/Button.js +0 -1
- package/dist/src/Components/Button/Button.styles.js +0 -1
- package/dist/src/Components/ButtonGroupIcon/ButtonGroupIcon.js +0 -1
- package/dist/src/Components/Card/Card.js +0 -1
- package/dist/src/Components/Checkbox/Checkbox.js +0 -1
- package/dist/src/Components/Checkbox/Checkbox.styles.js +0 -1
- package/dist/src/Components/Common/ErrorMessage.js +0 -1
- package/dist/src/Components/Common/FormLabel.js +0 -1
- package/dist/src/Components/Common/HelperText.js +0 -1
- package/dist/src/Components/ContactForm/ContactForm.js +0 -1
- package/dist/src/Components/DatePicker/DatePicker.js +0 -1
- package/dist/src/Components/DatePicker/TimePicker.js +0 -1
- package/dist/src/Components/Divider/Divider.js +0 -1
- package/dist/src/Components/Drawer/Drawer.js +0 -1
- package/dist/src/Components/Dropdown/DropDown.js +0 -1
- package/dist/src/Components/Editor/Editor.js +0 -1
- package/dist/src/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.js +0 -1
- package/dist/src/Components/FileUpload/FileUpload.js +0 -1
- package/dist/src/Components/FileUpload/constants.js +0 -1
- package/dist/src/Components/Form/FormWrapper.js +0 -1
- package/dist/src/Components/Header/Header.js +0 -1
- package/dist/src/Components/Header/HeaderActions.js +0 -1
- package/dist/src/Components/Header/components/desktopMenu.js +0 -1
- package/dist/src/Components/Header/components/mobileMenu.js +0 -1
- package/dist/src/Components/Input/TextInput.js +0 -1
- package/dist/src/Components/Input/TextInput.styles.js +0 -1
- package/dist/src/Components/InputTextArea/InputTextArea.js +0 -1
- package/dist/src/Components/KanbanBoard/AccountCard.js +0 -1
- package/dist/src/Components/KanbanBoard/AccountRow.js +0 -1
- package/dist/src/Components/KanbanBoard/KanbanBoard.js +0 -1
- package/dist/src/Components/Loading/Loading.js +0 -13
- package/dist/src/Components/Modal/Modal.js +0 -1
- package/dist/src/Components/MultiSelect/MultiSelect.js +0 -1
- package/dist/src/Components/NavigationBar/NavigationBar.js +0 -1
- package/dist/src/Components/NoteTextArea/NoteTextArea.js +0 -75
- package/dist/src/Components/NumberInput/NumberInput.js +0 -1
- package/dist/src/Components/PinInput/PinInput.js +0 -1
- package/dist/src/Components/ProductCard/ProductCard.js +0 -1
- package/dist/src/Components/ProductCard/ProductLabel.js +0 -1
- package/dist/src/Components/ProductCard/ProductPrice.js +0 -1
- package/dist/src/Components/ProductCard/ProductReview.js +0 -1
- package/dist/src/Components/ProductCard/ProductTags.js +0 -1
- package/dist/src/Components/ProfileCard/ProfileCard.js +0 -1
- package/dist/src/Components/ProfilePhotoViewer/ProfilePhotoViewer.js +0 -1
- package/dist/src/Components/ProgressBar/ProgressBar.js +0 -1
- package/dist/src/Components/RadioButton/RadioButton.js +0 -1
- package/dist/src/Components/Reorder/Reorder.js +0 -1
- package/dist/src/Components/Search/Search.js +0 -27
- package/dist/src/Components/SearchSelect/SearchSelect.js +0 -1
- package/dist/src/Components/SearchSelect/SelectTruncatedLabel.js +0 -1
- package/dist/src/Components/Select/Select.js +0 -1
- package/dist/src/Components/Select/Select.styles.js +0 -1
- package/dist/src/Components/SelectSearch/SelectSearch.js +0 -1
- package/dist/src/Components/SideBar/SideBar.js +0 -1
- package/dist/src/Components/SideBar/components/MenuItemBox.js +0 -1
- package/dist/src/Components/SideBar/components/MenuItems.js +0 -1
- package/dist/src/Components/SideBar/components/MenuPopoverContent.js +0 -1
- package/dist/src/Components/SideBar/components/TextTruncation.js +0 -1
- package/dist/src/Components/Skeletons/Skeletons.js +0 -1
- package/dist/src/Components/Switch/Switch.js +0 -49
- package/dist/src/Components/Table/Components/HeaderActions.js +0 -1
- package/dist/src/Components/Table/Components/Pagination.js +0 -1
- package/dist/src/Components/Table/Components/TableActions.js +0 -1
- package/dist/src/Components/Table/Components/TableBody.js +0 -1
- package/dist/src/Components/Table/Components/TableFilters.js +0 -1
- package/dist/src/Components/Table/Components/TableHeader.js +0 -1
- package/dist/src/Components/Table/Components/TableLoading.js +0 -1
- package/dist/src/Components/Table/Components/TableSearch.js +0 -1
- package/dist/src/Components/Table/Components/useTable.js +0 -1
- package/dist/src/Components/Table/Table.js +0 -1
- package/dist/src/Components/Table/TableSettings/ManageColumns.js +0 -1
- package/dist/src/Components/Table/TableSettings/TableSettings.js +0 -1
- package/dist/src/Components/Tag/Tag.js +0 -1
- package/dist/src/Components/Tag/Tag.styles.js +0 -1
- package/dist/src/Components/Timeline/Timeline.js +0 -102
- package/dist/src/Components/Toaster/Toaster.js +0 -1
- package/dist/src/Components/Toggle/TableToggle.js +0 -1
- package/dist/src/Components/ToolTip/ToolTip.js +0 -1
- package/dist/src/Constants/Sidebar.js +0 -1
- package/dist/src/Hooks/usePreferences.js +0 -1
- package/dist/src/Theme/Default/palette.js +0 -1
- package/dist/src/Theme/Default/theme.js +0 -1
- package/dist/src/Theme/Meadow/palette.js +0 -1
- package/dist/src/Theme/Meadow/theme.js +0 -1
- package/dist/src/Theme/Radiant/palette.js +0 -1
- package/dist/src/Theme/Radiant/theme.js +0 -1
- package/dist/src/Theme/Skyline/palette.js +0 -1
- package/dist/src/Theme/Skyline/theme.js +0 -1
- package/dist/src/Theme/common.js +0 -1
- package/dist/src/Theme/componentStyles.js +0 -1
- package/dist/src/Theme/fonts.js +0 -1
- package/dist/src/Theme/index.js +0 -1
- package/dist/src/Theme/space.js +0 -1
- package/dist/src/Theme/useCustomTheme.js +0 -1
- package/dist/src/Utils/table.js +0 -1
- package/dist/src/index.js +0 -1
- package/dist/src/withTheme.js +0 -1
|
@@ -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
|
+
};
|