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,274 @@
|
|
|
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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
30
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
31
|
+
if (ar || !(i in from)) {
|
|
32
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
33
|
+
ar[i] = from[i];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
var react_1 = __importStar(require("react"));
|
|
43
|
+
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
44
|
+
var react_2 = require("@chakra-ui/react");
|
|
45
|
+
var useCustomTheme_1 = require("../../Theme/useCustomTheme");
|
|
46
|
+
var lucide_react_1 = require("lucide-react");
|
|
47
|
+
var Container = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border: ", ";\n border-radius: 5px;\n box-shadow: ", ";\n"], ["\n border: ", ";\n border-radius: 5px;\n box-shadow: ", ";\n"])), function (_a) {
|
|
48
|
+
var isActive = _a.isActive;
|
|
49
|
+
return isActive ? "1px solid #3182ce" : "1px solid #c0c6cc";
|
|
50
|
+
}, function (_a) {
|
|
51
|
+
var isActive = _a.isActive;
|
|
52
|
+
return isActive
|
|
53
|
+
? "-1px 1px 8px 4px rgb(49 130 206 / 24%), 0px 2px 6px 0 rgb(49 130 206 / 19%)"
|
|
54
|
+
: "none";
|
|
55
|
+
});
|
|
56
|
+
var TextAreaContainer = styled_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n cursor: text;\n padding: 12px 15px;\n display: ", ";\n"], ["\n width: 100%;\n cursor: text;\n padding: 12px 15px;\n display: ", ";\n"])), function (_a) {
|
|
57
|
+
var isActive = _a.isActive;
|
|
58
|
+
return (isActive ? "block" : "none");
|
|
59
|
+
});
|
|
60
|
+
var PlaceholderText = styled_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n color: #c0c6cc;\n width: 100%;\n cursor: text;\n display: ", ";\n padding: 12px 15px;\n"], ["\n color: #c0c6cc;\n width: 100%;\n cursor: text;\n display: ", ";\n padding: 12px 15px;\n"])), function (_a) {
|
|
61
|
+
var isActive = _a.isActive;
|
|
62
|
+
return (isActive ? "block" : "none");
|
|
63
|
+
});
|
|
64
|
+
var InputTitle = styled_1.default.input(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: 100%;\n height: auto;\n border: none;\n outline: none;\n background: none;\n color: black;\n fontsize: 1rem;\n fontweight: 500;\n marginbottom: 2px;\n"], ["\n width: 100%;\n height: auto;\n border: none;\n outline: none;\n background: none;\n color: black;\n fontsize: 1rem;\n fontweight: 500;\n marginbottom: 2px;\n"])));
|
|
65
|
+
var NotesTextArea = styled_1.default.textarea(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n color: ", ";\n width: 100%;\n height: auto;\n border: none;\n outline: none;\n background: none;\n fontweight: 300;\n"], ["\n color: ", ";\n width: 100%;\n height: auto;\n border: none;\n outline: none;\n background: none;\n fontweight: 300;\n"])), function (_a) {
|
|
66
|
+
var isActive = _a.isActive, noteValue = _a.noteValue;
|
|
67
|
+
return isActive && noteValue ? "#000000" : "#c0c6cc";
|
|
68
|
+
});
|
|
69
|
+
var FileUploadLabel = styled_1.default.label(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n cursor: pointer;\n"], ["\n cursor: pointer;\n"])));
|
|
70
|
+
var AddTitleButton = styled_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n color: #616e88;\n cursor: pointer;\n fontsize: 0.8rem;\n"], ["\n color: #616e88;\n cursor: pointer;\n fontsize: 0.8rem;\n"])));
|
|
71
|
+
var Button = styled_1.default.button(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n border: none;\n padding: 3px 15px;\n text-align: center;\n text-decoration: none;\n background: ", ";\n color: ", ";\n font-size: 1rem;\n margin-right: 5px;\n border-radius: 5px;\n opacity: ", ";\n cursor: ", ";\n pointer-events: ", ";\n"], ["\n border: none;\n padding: 3px 15px;\n text-align: center;\n text-decoration: none;\n background: ", ";\n color: ", ";\n font-size: 1rem;\n margin-right: 5px;\n border-radius: 5px;\n opacity: ", ";\n cursor: ", ";\n pointer-events: ", ";\n"])), function (_a) {
|
|
72
|
+
var isSaveButton = _a.isSaveButton, noteValue = _a.noteValue, isLoading = _a.isLoading, theme = _a.theme;
|
|
73
|
+
return isSaveButton
|
|
74
|
+
? noteValue && !isLoading
|
|
75
|
+
? theme.colors.primary[500]
|
|
76
|
+
: theme.colors.primary[500]
|
|
77
|
+
: "white";
|
|
78
|
+
}, function (_a) {
|
|
79
|
+
var isSaveButton = _a.isSaveButton, isLoading = _a.isLoading;
|
|
80
|
+
return isSaveButton && !isLoading ? "white" : "white";
|
|
81
|
+
}, function (_a) {
|
|
82
|
+
var isSaveButton = _a.isSaveButton, noteValue = _a.noteValue, isLoading = _a.isLoading, disabled = _a.disabled;
|
|
83
|
+
return isSaveButton && (!noteValue || isLoading || disabled) ? "0.5" : "1";
|
|
84
|
+
}, function (_a) {
|
|
85
|
+
var isSaveButton = _a.isSaveButton, noteValue = _a.noteValue, isLoading = _a.isLoading, disabled = _a.disabled;
|
|
86
|
+
return isSaveButton && (!noteValue || isLoading || disabled)
|
|
87
|
+
? "initial"
|
|
88
|
+
: "pointer";
|
|
89
|
+
}, function (_a) {
|
|
90
|
+
var isLoading = _a.isLoading;
|
|
91
|
+
return (isLoading ? "none" : "auto");
|
|
92
|
+
});
|
|
93
|
+
var CancelButton = styled_1.default.button(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n border: none;\n color: #5e5c5c;\n padding: 3px 15px;\n text-align: center;\n text-decoration: none;\n background: white;\n font-size: 1rem;\n margin-right: 5px;\n border-radius: 5px;\n"], ["\n border: none;\n color: #5e5c5c;\n padding: 3px 15px;\n text-align: center;\n text-decoration: none;\n background: white;\n font-size: 1rem;\n margin-right: 5px;\n border-radius: 5px;\n"])));
|
|
94
|
+
var FileViewer = styled_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 300px;\n"], ["\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 300px;\n"])));
|
|
95
|
+
var FileEdit = (0, styled_1.default)(lucide_react_1.X)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n cursor: pointer;\n color: #ff0000;\n"], ["\n cursor: pointer;\n color: #ff0000;\n"])));
|
|
96
|
+
var ErrorText = styled_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n color: #ff0000;\n font-size: 0.8rem;\n margin-top: 8px;\n"], ["\n color: #ff0000;\n font-size: 0.8rem;\n margin-top: 8px;\n"])));
|
|
97
|
+
var countWords = function (text) {
|
|
98
|
+
return text.trim().split(/\s+/).length;
|
|
99
|
+
};
|
|
100
|
+
function NoteTextArea(_a) {
|
|
101
|
+
var _b = _a.width, width = _b === void 0 ? "100%" : _b, handleSubmit = _a.handleSubmit, handleCancel = _a.handleCancel, value = _a.value, title = _a.title, file = _a.file, _c = _a.isEditable, isEditable = _c === void 0 ? false : _c, saveButtonLoading = _a.saveButtonLoading, _d = _a.maxFileSize, maxFileSize = _d === void 0 ? 1 * 1024 * 1024 : _d, _e = _a.maxFilesSizeError, maxFilesSizeError = _e === void 0 ? "Some files are too large. Maximum allowed size is" : _e, _f = _a.maxNoteWordCount, maxNoteWordCount = _f === void 0 ? 15 : _f, onChange = _a.onChange, ref = _a.ref;
|
|
102
|
+
var theme = (0, useCustomTheme_1.useCustomTheme)();
|
|
103
|
+
var noteAreaRef = (0, react_1.useRef)(null);
|
|
104
|
+
var _g = (0, react_1.useState)(false), isActive = _g[0], setIsActive = _g[1];
|
|
105
|
+
var _h = (0, react_1.useState)(""), noteValue = _h[0], setNoteValue = _h[1];
|
|
106
|
+
var _j = (0, react_1.useState)(""), titleValue = _j[0], setTitleValue = _j[1];
|
|
107
|
+
var _k = (0, react_1.useState)(false), titleShow = _k[0], setTitleShow = _k[1];
|
|
108
|
+
var _l = (0, react_1.useState)([]), files = _l[0], setFiles = _l[1];
|
|
109
|
+
var _m = (0, react_1.useState)(""), fileError = _m[0], setFileError = _m[1];
|
|
110
|
+
var _o = (0, react_1.useState)(false), isSaveDisabled = _o[0], setIsSaveDisabled = _o[1];
|
|
111
|
+
(0, react_1.useEffect)(function () {
|
|
112
|
+
var titleWordCount = countWords(titleValue);
|
|
113
|
+
setIsSaveDisabled(titleWordCount > maxNoteWordCount);
|
|
114
|
+
}, [titleValue, maxNoteWordCount]);
|
|
115
|
+
(0, react_1.useEffect)(function () {
|
|
116
|
+
var noteWordCount = countWords(noteValue);
|
|
117
|
+
setIsSaveDisabled(noteWordCount > maxNoteWordCount);
|
|
118
|
+
}, [noteValue, maxNoteWordCount]);
|
|
119
|
+
(0, react_1.useEffect)(function () {
|
|
120
|
+
if (isEditable) {
|
|
121
|
+
setIsActive(true);
|
|
122
|
+
if (value) {
|
|
123
|
+
setNoteValue(value);
|
|
124
|
+
}
|
|
125
|
+
if (title) {
|
|
126
|
+
setTitleValue(title);
|
|
127
|
+
setTitleShow(true);
|
|
128
|
+
}
|
|
129
|
+
if (file) {
|
|
130
|
+
setFiles(file);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}, [value, title, file, isEditable]);
|
|
134
|
+
(0, react_1.useEffect)(function () {
|
|
135
|
+
if (!saveButtonLoading) {
|
|
136
|
+
setIsActive(false);
|
|
137
|
+
if (!isEditable) {
|
|
138
|
+
setNoteValue("");
|
|
139
|
+
setTitleValue("");
|
|
140
|
+
setTitleShow(false);
|
|
141
|
+
setFiles([]);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
if (isEditable) {
|
|
145
|
+
setIsActive(true);
|
|
146
|
+
}
|
|
147
|
+
}, [saveButtonLoading, isEditable]);
|
|
148
|
+
var handleTextArea = function () {
|
|
149
|
+
setIsActive(true);
|
|
150
|
+
if (!isEditable) {
|
|
151
|
+
setNoteValue("");
|
|
152
|
+
setTitleValue("");
|
|
153
|
+
setTitleShow(false);
|
|
154
|
+
setFiles([]);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
var handleCloseTextArea = function () {
|
|
158
|
+
setIsActive(false);
|
|
159
|
+
if (handleCancel) {
|
|
160
|
+
handleCancel(!isActive);
|
|
161
|
+
}
|
|
162
|
+
if (!isEditable) {
|
|
163
|
+
setNoteValue("");
|
|
164
|
+
setTitleValue("");
|
|
165
|
+
setTitleShow(false);
|
|
166
|
+
setFiles([]);
|
|
167
|
+
}
|
|
168
|
+
setFileError("");
|
|
169
|
+
};
|
|
170
|
+
var handleNoteChange = function (event) {
|
|
171
|
+
setNoteValue(event.target.value);
|
|
172
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event.target.value);
|
|
173
|
+
adjustHeight();
|
|
174
|
+
};
|
|
175
|
+
(0, react_1.useEffect)(function () {
|
|
176
|
+
if (isActive && noteAreaRef.current) {
|
|
177
|
+
noteAreaRef.current.focus();
|
|
178
|
+
}
|
|
179
|
+
}, [isActive]);
|
|
180
|
+
var adjustHeight = function () {
|
|
181
|
+
var textarea = noteAreaRef.current;
|
|
182
|
+
if (!textarea)
|
|
183
|
+
return;
|
|
184
|
+
textarea.style.height = "auto";
|
|
185
|
+
textarea.style.height = "".concat(textarea.scrollHeight, "px");
|
|
186
|
+
};
|
|
187
|
+
var handleSetTitle = function () {
|
|
188
|
+
setTitleShow(true);
|
|
189
|
+
};
|
|
190
|
+
var handleTitleChange = function (event) {
|
|
191
|
+
event.target.value.length === 0 && setTitleShow(false);
|
|
192
|
+
setTitleValue(event.target.value);
|
|
193
|
+
};
|
|
194
|
+
var formatBytes = function (bytes, decimals) {
|
|
195
|
+
if (decimals === void 0) { decimals = 2; }
|
|
196
|
+
if (bytes === 0)
|
|
197
|
+
return "0 Bytes";
|
|
198
|
+
var k = 1024;
|
|
199
|
+
var dm = decimals < 0 ? 0 : decimals;
|
|
200
|
+
var sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
|
201
|
+
var i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
202
|
+
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + " " + sizes[i];
|
|
203
|
+
};
|
|
204
|
+
var shortenFileName = function (name, maxLength) {
|
|
205
|
+
if (maxLength === void 0) { maxLength = 20; }
|
|
206
|
+
var extension = name.substring(name.lastIndexOf("."));
|
|
207
|
+
if (name.length <= maxLength)
|
|
208
|
+
return name;
|
|
209
|
+
var nameWithoutExtension = name.replace(extension, "");
|
|
210
|
+
var start = nameWithoutExtension.substring(0, maxLength - extension.length - 3);
|
|
211
|
+
return "".concat(start, "...").concat(extension, " ");
|
|
212
|
+
};
|
|
213
|
+
return (react_1.default.createElement(Container, { style: { width: width }, isActive: isActive },
|
|
214
|
+
react_1.default.createElement(PlaceholderText, { isActive: !isActive, onClick: handleTextArea },
|
|
215
|
+
react_1.default.createElement("span", null, "Add a note...")),
|
|
216
|
+
react_1.default.createElement(TextAreaContainer, { isActive: isActive },
|
|
217
|
+
titleShow && (react_1.default.createElement(InputTitle, { value: titleValue, onChange: handleTitleChange, placeholder: "Add a title...", ref: ref })),
|
|
218
|
+
react_1.default.createElement(NotesTextArea, { ref: noteAreaRef, isActive: isActive, noteValue: noteValue, value: noteValue, onChange: handleNoteChange, placeholder: "Add a note..." })),
|
|
219
|
+
isActive && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
220
|
+
react_1.default.createElement("hr", { style: { margin: 0 } }),
|
|
221
|
+
react_1.default.createElement("div", { style: { padding: "12px 15px" } },
|
|
222
|
+
react_1.default.createElement("div", { style: { display: "flex", alignItems: "center" } },
|
|
223
|
+
react_1.default.createElement(FileUploadLabel, { htmlFor: "file-upload" },
|
|
224
|
+
react_1.default.createElement(lucide_react_1.Paperclip, { size: 17 }),
|
|
225
|
+
react_1.default.createElement("input", { id: "file-upload", type: "file", style: { display: "none" }, onChange: function (e) {
|
|
226
|
+
var newFiles = Array.from(e.target.files || []);
|
|
227
|
+
var validFiles = newFiles.filter(function (file) { return file.size <= maxFileSize; });
|
|
228
|
+
var invalidFiles = newFiles.filter(function (file) { return file.size > maxFileSize; });
|
|
229
|
+
if (invalidFiles.length > 0) {
|
|
230
|
+
setFileError("".concat(maxFilesSizeError, " ").concat(formatBytes(maxFileSize), "."));
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
setFileError("");
|
|
234
|
+
}
|
|
235
|
+
if (validFiles.length > 0) {
|
|
236
|
+
setFiles(function (prevFiles) { return __spreadArray(__spreadArray([], prevFiles, true), validFiles, true); });
|
|
237
|
+
}
|
|
238
|
+
}, multiple: true })),
|
|
239
|
+
!titleShow && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
240
|
+
react_1.default.createElement("div", { style: {
|
|
241
|
+
height: "15px",
|
|
242
|
+
width: "1px",
|
|
243
|
+
backgroundColor: "#c0c6cc",
|
|
244
|
+
marginRight: "5px",
|
|
245
|
+
marginLeft: "5px",
|
|
246
|
+
} }),
|
|
247
|
+
react_1.default.createElement(AddTitleButton, { onClick: handleSetTitle }, "Add a Title"))),
|
|
248
|
+
react_1.default.createElement("div", { style: { marginLeft: "auto" } },
|
|
249
|
+
react_1.default.createElement(CancelButton, { onClick: handleCloseTextArea }, "Cancel"),
|
|
250
|
+
react_1.default.createElement(Button, { isSaveButton: true, noteValue: noteValue, isLoading: saveButtonLoading, disabled: !noteValue || isSaveDisabled, theme: theme, onClick: function () {
|
|
251
|
+
handleSubmit(noteValue, titleValue, files);
|
|
252
|
+
// handleCloseTextArea();
|
|
253
|
+
} },
|
|
254
|
+
saveButtonLoading && (react_1.default.createElement("span", { style: { marginRight: "6px" } },
|
|
255
|
+
react_1.default.createElement(react_2.Spinner, { thickness: "2px", speed: "0.75s", emptyColor: "gray.200", color: "blue.500", size: "xs" }))),
|
|
256
|
+
"Save"))),
|
|
257
|
+
react_1.default.createElement("div", { style: { display: "flex", gap: "10px" } },
|
|
258
|
+
react_1.default.createElement("div", null, "Note:"),
|
|
259
|
+
react_1.default.createElement("div", null,
|
|
260
|
+
"You can add up to ",
|
|
261
|
+
maxNoteWordCount,
|
|
262
|
+
" words only")),
|
|
263
|
+
fileError && react_1.default.createElement(ErrorText, null, fileError),
|
|
264
|
+
" ",
|
|
265
|
+
files.length > 0 && (react_1.default.createElement("div", null, files.map(function (item, index) { return (react_1.default.createElement(FileViewer, { key: index },
|
|
266
|
+
react_1.default.createElement(react_1.default.Fragment, null,
|
|
267
|
+
react_1.default.createElement("span", null, shortenFileName(item.name)),
|
|
268
|
+
react_1.default.createElement("span", null, formatBytes(item.size))),
|
|
269
|
+
react_1.default.createElement(FileEdit, { onClick: function () {
|
|
270
|
+
return setFiles(files.filter(function (fileItem) { return fileItem !== item; }));
|
|
271
|
+
} }))); }))))))));
|
|
272
|
+
}
|
|
273
|
+
exports.default = NoteTextArea;
|
|
274
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LegacyRef } from "react";
|
|
2
|
+
export type NoteTextAreaProps = {
|
|
3
|
+
width: number | string;
|
|
4
|
+
handleSubmit: (noteValue: string, titleValue: string, file: File[], resetState: void) => void;
|
|
5
|
+
value?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
file?: File[];
|
|
8
|
+
isEditable?: boolean;
|
|
9
|
+
handleCancel?: (isActive: boolean) => void;
|
|
10
|
+
saveButtonLoading: boolean;
|
|
11
|
+
maxFileSize?: number;
|
|
12
|
+
maxFilesSizeError?: string;
|
|
13
|
+
maxNoteWordCount?: number;
|
|
14
|
+
onChange?: (value: string) => void;
|
|
15
|
+
ref?: LegacyRef<HTMLInputElement>;
|
|
16
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NumberInputProps } from "./NumberInputProps";
|
|
3
|
+
export default function NumberInput({ defaultValue, min, max, precision, step, clampValueOnBlur, keepWithinRange, value, onChange, size, maxW, allowMouseWheel, NumberIncrementStepperBg, NumberIncrementStepperActive, NumberIncrementStepperChildren, NumberDecrementStepperBg, NumberDecrementStepperChildren, NumberDecrementStepperActive, }: NumberInputProps): React.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var react_1 = __importDefault(require("react"));
|
|
7
|
+
var react_2 = require("@chakra-ui/react");
|
|
8
|
+
function NumberInput(_a) {
|
|
9
|
+
var defaultValue = _a.defaultValue, min = _a.min, max = _a.max, precision = _a.precision, step = _a.step, clampValueOnBlur = _a.clampValueOnBlur, keepWithinRange = _a.keepWithinRange, value = _a.value, onChange = _a.onChange, size = _a.size, maxW = _a.maxW, allowMouseWheel = _a.allowMouseWheel, NumberIncrementStepperBg = _a.NumberIncrementStepperBg, NumberIncrementStepperActive = _a.NumberIncrementStepperActive, NumberIncrementStepperChildren = _a.NumberIncrementStepperChildren, NumberDecrementStepperBg = _a.NumberDecrementStepperBg, NumberDecrementStepperChildren = _a.NumberDecrementStepperChildren, NumberDecrementStepperActive = _a.NumberDecrementStepperActive;
|
|
10
|
+
return (react_1.default.createElement(react_2.NumberInput, { defaultValue: defaultValue, min: min, max: max, step: step, precision: precision, clampValueOnBlur: clampValueOnBlur, keepWithinRange: keepWithinRange, value: value, onChange: onChange, size: size, maxW: maxW, allowMouseWheel: allowMouseWheel },
|
|
11
|
+
react_1.default.createElement(react_2.NumberInputField, null),
|
|
12
|
+
react_1.default.createElement(react_2.NumberInputStepper, null,
|
|
13
|
+
react_1.default.createElement(react_2.NumberIncrementStepper, { bg: NumberIncrementStepperBg, _active: NumberIncrementStepperActive }, NumberIncrementStepperChildren),
|
|
14
|
+
react_1.default.createElement(react_2.NumberDecrementStepper, { bg: NumberDecrementStepperBg, _active: NumberDecrementStepperActive }, NumberDecrementStepperChildren))));
|
|
15
|
+
}
|
|
16
|
+
exports.default = NumberInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NumberInputProps as chakraNumbetInpurProps } from "@chakra-ui/react";
|
|
2
|
+
export type NumberInputProps = Pick<chakraNumbetInpurProps, "defaultValue" | "min" | "max" | "precision" | "step" | "clampValueOnBlur" | "keepWithinRange" | "value" | "onChange" | "size" | "maxW" | "allowMouseWheel"> & {
|
|
3
|
+
NumberIncrementStepperBg?: string;
|
|
4
|
+
NumberIncrementStepperActive?: ActiveStyle;
|
|
5
|
+
NumberIncrementStepperChildren?: string;
|
|
6
|
+
NumberDecrementStepperBg?: string;
|
|
7
|
+
NumberDecrementStepperChildren?: string;
|
|
8
|
+
NumberDecrementStepperActive?: ActiveStyle;
|
|
9
|
+
};
|
|
10
|
+
export type ActiveStyle = {
|
|
11
|
+
bg: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChakraPinInputProps } from "./PinInputProps";
|
|
3
|
+
export default function PinInputs({ otp, mask, defaultValue, placeholder, manageFocus, errorBorderColor, focusBorderColor, onChange, onComplete, type, color, variant, pins, label, }: ChakraPinInputProps): React.JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var react_1 = __importDefault(require("react"));
|
|
7
|
+
var react_2 = require("@chakra-ui/react");
|
|
8
|
+
function PinInputs(_a) {
|
|
9
|
+
var otp = _a.otp, mask = _a.mask, defaultValue = _a.defaultValue, placeholder = _a.placeholder, manageFocus = _a.manageFocus, errorBorderColor = _a.errorBorderColor, focusBorderColor = _a.focusBorderColor, onChange = _a.onChange, onComplete = _a.onComplete, type = _a.type, color = _a.color, variant = _a.variant, _b = _a.pins, pins = _b === void 0 ? 3 : _b, label = _a.label;
|
|
10
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
11
|
+
label && (react_1.default.createElement(react_2.Text, { fontWeight: "bold", marginBottom: "8px" }, label)),
|
|
12
|
+
react_1.default.createElement(react_2.HStack, null,
|
|
13
|
+
react_1.default.createElement(react_2.PinInput, { otp: otp, mask: mask, defaultValue: defaultValue, placeholder: placeholder, manageFocus: manageFocus, errorBorderColor: errorBorderColor, focusBorderColor: focusBorderColor, onChange: onChange, onComplete: onComplete, type: type, colorScheme: color, variant: variant }, Array.from({ length: pins }).map(function (_, index) { return (react_1.default.createElement(react_2.PinInputField, { key: index })); })))));
|
|
14
|
+
}
|
|
15
|
+
exports.default = PinInputs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PinInputProps } from "@chakra-ui/react";
|
|
2
|
+
export type ChakraPinInputProps = Pick<PinInputProps, "otp" | "mask" | "defaultValue" | "placeholder" | "manageFocus" | "errorBorderColor" | "focusBorderColor" | "onChange" | "onComplete"> & {
|
|
3
|
+
type?: "alphanumeric" | "number";
|
|
4
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
5
|
+
variant?: "flushed" | "outline" | "filled" | "unstyled";
|
|
6
|
+
color?: "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "whiteAlpha" | "blackAlpha";
|
|
7
|
+
pins: number;
|
|
8
|
+
label?: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
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 Label_1 = __importDefault(require("../Common/Label"));
|
|
40
|
+
var ErrorComponent_1 = __importDefault(require("../Common/ErrorComponent"));
|
|
41
|
+
var PinInputs = function (_a) {
|
|
42
|
+
var _b = _a.length, length = _b === void 0 ? 3 : _b, label = _a.label, error = _a.error, onChange = _a.onChange, onComplete = _a.onComplete, _c = _a.mask, mask = _c === void 0 ? false : _c, _d = _a.placeholder, placeholder = _d === void 0 ? "*" : _d;
|
|
43
|
+
var _e = (0, react_1.useState)(Array(length).fill("")), values = _e[0], setValues = _e[1];
|
|
44
|
+
var inputsRef = (0, react_1.useRef)([]);
|
|
45
|
+
var handleChange = function (index, value) {
|
|
46
|
+
var _a;
|
|
47
|
+
if (!/^[0-9]?$/.test(value))
|
|
48
|
+
return;
|
|
49
|
+
var newValues = __spreadArray([], values, true);
|
|
50
|
+
newValues[index] = value;
|
|
51
|
+
setValues(newValues);
|
|
52
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValues.join(""));
|
|
53
|
+
if (value && index < length - 1) {
|
|
54
|
+
(_a = inputsRef.current[index + 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
55
|
+
}
|
|
56
|
+
if (newValues.every(function (v) { return v !== ""; })) {
|
|
57
|
+
onComplete === null || onComplete === void 0 ? void 0 : onComplete(newValues.join(""));
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
var handleKeyDown = function (e, index) {
|
|
61
|
+
var _a;
|
|
62
|
+
if (e.key === "Backspace" && !values[index] && index > 0) {
|
|
63
|
+
(_a = inputsRef.current[index - 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
return (react_1.default.createElement("div", null,
|
|
67
|
+
label && react_1.default.createElement(Label_1.default, { label: label }),
|
|
68
|
+
react_1.default.createElement("div", { className: "flex space-x-2" }, Array.from({ length: length }).map(function (_, index) { return (react_1.default.createElement("input", { key: index, ref: function (el) { return (inputsRef.current[index] = el); }, type: mask ? "password" : "text", inputMode: "numeric", maxLength: 1, placeholder: placeholder, value: values[index], onChange: function (e) { return handleChange(index, e.target.value); }, onKeyDown: function (e) { return handleKeyDown(e, index); }, className: "w-12 h-12 text-center border rounded-md text-lg focus:outline-none focus:ring-2 ".concat(error ? "border-red-500 focus:ring-red-300" : "border-gray-300 focus:ring-blue-500") })); })),
|
|
69
|
+
error && react_1.default.createElement(ErrorComponent_1.default, { error: error })));
|
|
70
|
+
};
|
|
71
|
+
exports.default = PinInputs;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 ProductTags_1 = __importDefault(require("./ProductTags"));
|
|
32
|
+
var ProductReview_1 = __importDefault(require("./ProductReview"));
|
|
33
|
+
var ProductPrice_1 = __importDefault(require("./ProductPrice"));
|
|
34
|
+
var Button_1 = __importDefault(require("../Button/Button"));
|
|
35
|
+
var ProductLabel_1 = __importDefault(require("./ProductLabel"));
|
|
36
|
+
var ProductCard = function (_a) {
|
|
37
|
+
var label = _a.label, productImage = _a.productImage, rating = _a.rating, reviews = _a.reviews, tags = _a.tags, options = _a.options, onAddToCart = _a.onAddToCart, bag = _a.bag, description = _a.description;
|
|
38
|
+
var _b = (0, react_1.useState)(false), hover = _b[0], setHover = _b[1];
|
|
39
|
+
return (react_1.default.createElement(react_2.Box, { borderWidth: "0.063 rem", borderRadius: "lg", overflow: "hidden", p: 3, w: "16.25rem", position: "relative", bg: "white", boxShadow: "lg" },
|
|
40
|
+
react_1.default.createElement(react_2.Box, { onMouseEnter: function () { return setHover(true); }, onMouseLeave: function () { return setHover(false); }, h: "11.25rem", w: "full", overflow: "hidden" },
|
|
41
|
+
react_1.default.createElement(react_2.Image, { src: hover && productImage.hover ? productImage.hover : productImage.visibile, alt: label, w: "full", h: "full", objectFit: "cover" }),
|
|
42
|
+
bag && (react_1.default.createElement(react_2.Badge, { colorScheme: bag.color || "red", position: "absolute", top: 2, right: 2 }, bag.label))),
|
|
43
|
+
react_1.default.createElement(react_2.VStack, { spacing: 2, align: "start", mt: 3 },
|
|
44
|
+
react_1.default.createElement(ProductLabel_1.default, { label: label, description: description }),
|
|
45
|
+
tags && react_1.default.createElement(ProductTags_1.default, { tags: tags }),
|
|
46
|
+
rating && reviews &&
|
|
47
|
+
react_1.default.createElement(ProductReview_1.default, { rating: rating, reviewCount: reviews }),
|
|
48
|
+
options && react_1.default.createElement(ProductPrice_1.default, { options: options }),
|
|
49
|
+
onAddToCart && react_1.default.createElement(Button_1.default, { colorScheme: "orange", size: "sm", width: "100%", onClick: onAddToCart }, "Add to Cart"))));
|
|
50
|
+
};
|
|
51
|
+
exports.default = ProductCard;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type ProductCardProps = {
|
|
2
|
+
label: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
productImage: productImage;
|
|
5
|
+
tags?: string[];
|
|
6
|
+
rating?: string | number;
|
|
7
|
+
reviews?: string | number;
|
|
8
|
+
options?: options[];
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
onAddToCart?: () => void;
|
|
11
|
+
bag?: bag;
|
|
12
|
+
};
|
|
13
|
+
export type options = {
|
|
14
|
+
label: string;
|
|
15
|
+
weight: number;
|
|
16
|
+
price: number;
|
|
17
|
+
offer: number;
|
|
18
|
+
};
|
|
19
|
+
export type bag = {
|
|
20
|
+
label: string;
|
|
21
|
+
color?: string;
|
|
22
|
+
};
|
|
23
|
+
export type productImage = {
|
|
24
|
+
visibile: string;
|
|
25
|
+
hover?: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
var react_1 = require("@chakra-ui/react");
|
|
7
|
+
var react_2 = __importDefault(require("react"));
|
|
8
|
+
var ProductLabel = function (_a) {
|
|
9
|
+
var label = _a.label, description = _a.description;
|
|
10
|
+
return (react_2.default.createElement(react_1.Box, null,
|
|
11
|
+
react_2.default.createElement(react_1.Text, { fontWeight: "bold" }, label),
|
|
12
|
+
description && react_2.default.createElement(react_1.Text, { fontSize: "xs", fontStyle: "italic" }, description)));
|
|
13
|
+
};
|
|
14
|
+
exports.default = ProductLabel;
|