pixelize-design-library 2.1.20 → 2.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.d.ts +4 -0
- package/dist/App.js +158 -0
- package/dist/Assets/defaultLogo.d.ts +3 -0
- package/dist/Assets/defaultLogo.js +15 -0
- package/dist/Components/Accordion/Accordion.d.ts +4 -0
- package/dist/Components/Accordion/Accordion.js +40 -0
- package/dist/Components/Accordion/AccordionProps.d.ts +17 -0
- package/dist/Components/Accordion/AccordionProps.js +2 -0
- package/dist/Components/AlertDialog/AlertDialog.d.ts +4 -0
- package/dist/Components/AlertDialog/AlertDialog.js +20 -0
- package/{src/Components/AlertDialog/AlertDialogProps.tsx → dist/Components/AlertDialog/AlertDialogProps.d.ts} +2 -9
- package/dist/Components/AlertDialog/AlertDialogProps.js +2 -0
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.d.ts +3 -0
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.js +64 -0
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.stories.d.ts +1 -0
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChart.stories.js +6 -0
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChartProps.d.ts +19 -0
- package/dist/Components/Apexcharts/ApexBarChart/ApexBarChartProps.js +2 -0
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.d.ts +3 -0
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.js +29 -0
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.stories.d.ts +1 -0
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChart.stories.js +6 -0
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChartProps.d.ts +41 -0
- package/dist/Components/Apexcharts/ApexPieChart/ApexPieChartProps.js +2 -0
- package/dist/Components/Breadcrumbs/Breadcrumbs.d.ts +3 -0
- package/dist/Components/Breadcrumbs/Breadcrumbs.js +17 -0
- package/dist/Components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -0
- package/dist/Components/Breadcrumbs/Breadcrumbs.stories.js +6 -0
- package/{src/Components/Breadcrumbs/BreadcrumbsProps.tsx → dist/Components/Breadcrumbs/BreadcrumbsProps.d.ts} +1 -2
- package/dist/Components/Breadcrumbs/BreadcrumbsProps.js +2 -0
- package/dist/Components/Button/Button.d.ts +5 -0
- package/dist/Components/Button/Button.js +32 -0
- package/dist/Components/Button/Button.stories.d.ts +1 -0
- package/dist/Components/Button/Button.stories.js +6 -0
- package/dist/Components/Button/Button.styles.d.ts +2 -0
- package/dist/Components/Button/Button.styles.js +112 -0
- package/dist/Components/Button/ButtonProps.d.ts +13 -0
- package/dist/Components/Button/ButtonProps.js +2 -0
- package/dist/Components/ButtonGroupIcon/ButtonGoupIconProps.d.ts +33 -0
- package/dist/Components/ButtonGroupIcon/ButtonGoupIconProps.js +2 -0
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.d.ts +5 -0
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.js +86 -0
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.stories.d.ts +1 -0
- package/dist/Components/ButtonGroupIcon/ButtonGroupIcon.stories.js +6 -0
- package/dist/Components/Buttons/Buttons.d.ts +4 -0
- package/dist/Components/Buttons/Buttons.js +11 -0
- package/{src/Components/Buttons/ButtonsProps.ts → dist/Components/Buttons/ButtonsProps.d.ts} +1 -1
- package/dist/Components/Buttons/ButtonsProps.js +2 -0
- package/dist/Components/Card/Card.d.ts +3 -0
- package/dist/Components/Card/Card.js +12 -0
- package/dist/Components/Card/CardProps.d.ts +14 -0
- package/dist/Components/Card/CardProps.js +2 -0
- package/dist/Components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/Components/Checkbox/Checkbox.js +20 -0
- package/dist/Components/Checkbox/Checkbox.stories.d.ts +1 -0
- package/dist/Components/Checkbox/Checkbox.stories.js +7 -0
- package/dist/Components/Checkbox/Checkbox.styles.d.ts +2 -0
- package/dist/Components/Checkbox/Checkbox.styles.js +54 -0
- package/dist/Components/Checkbox/CheckboxProps.d.ts +15 -0
- package/dist/Components/Checkbox/CheckboxProps.js +2 -0
- package/dist/Components/Common/ErrorComponent.d.ts +6 -0
- package/dist/Components/Common/ErrorComponent.js +16 -0
- package/dist/Components/Common/ErrorMessage.d.ts +5 -0
- package/dist/Components/Common/ErrorMessage.js +17 -0
- package/dist/Components/Common/FormLabel.d.ts +8 -0
- package/dist/Components/Common/FormLabel.js +22 -0
- package/dist/Components/Common/HelperText.d.ts +5 -0
- package/dist/Components/Common/HelperText.js +14 -0
- package/dist/Components/Common/Label.d.ts +7 -0
- package/dist/Components/Common/Label.js +13 -0
- package/dist/Components/ContactForm/ContactForm.d.ts +4 -0
- package/dist/Components/ContactForm/ContactForm.js +215 -0
- package/dist/Components/ContactForm/ContactFormProps.d.ts +9 -0
- package/dist/Components/ContactForm/ContactFormProps.js +2 -0
- package/dist/Components/DatePicker/DatePicker.d.ts +3 -0
- package/dist/Components/DatePicker/DatePicker.js +235 -0
- package/dist/Components/DatePicker/DatePickerProps.d.ts +42 -0
- package/dist/Components/DatePicker/DatePickerProps.js +2 -0
- package/dist/Components/DatePicker/TimePicker.d.ts +4 -0
- package/dist/Components/DatePicker/TimePicker.js +101 -0
- package/dist/Components/Divider/Divider.d.ts +3 -0
- package/dist/Components/Divider/Divider.js +14 -0
- package/dist/Components/Drawer/Drawer.d.ts +12 -0
- package/dist/Components/Drawer/Drawer.js +40 -0
- package/dist/Components/Drawer/DrawerProps.d.ts +8 -0
- package/dist/Components/Drawer/DrawerProps.js +2 -0
- package/dist/Components/Dropdown/DropDown.d.ts +4 -0
- package/dist/Components/Dropdown/DropDown.js +97 -0
- package/dist/Components/Dropdown/DropdownProps.d.ts +26 -0
- package/dist/Components/Dropdown/DropdownProps.js +2 -0
- package/dist/Components/Editor/Editor.d.ts +3 -0
- package/dist/Components/Editor/Editor.js +12 -0
- package/dist/Components/Editor/EditorProps.d.ts +5 -0
- package/dist/Components/Editor/EditorProps.js +2 -0
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.d.ts +3 -0
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.js +44 -0
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtpProps.d.ts +13 -0
- package/dist/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtpProps.js +2 -0
- package/dist/Components/FileUpload/FileUpload.d.ts +4 -0
- package/dist/Components/FileUpload/FileUpload.js +156 -0
- package/dist/Components/FileUpload/FileUploadProps.d.ts +11 -0
- package/dist/Components/FileUpload/FileUploadProps.js +2 -0
- package/dist/Components/FileUpload/constants.d.ts +3 -0
- package/dist/Components/FileUpload/constants.js +28 -0
- package/dist/Components/Form/FormWrapper.d.ts +7 -0
- package/dist/Components/Form/FormWrapper.js +19 -0
- package/dist/Components/Header/Header.d.ts +4 -0
- package/dist/Components/Header/Header.js +57 -0
- package/dist/Components/Header/HeaderActions.d.ts +23 -0
- package/dist/Components/Header/HeaderActions.js +37 -0
- package/dist/Components/Header/HeaderProps.d.ts +44 -0
- package/dist/Components/Header/HeaderProps.js +2 -0
- package/dist/Components/Header/components/desktopMenu.d.ts +4 -0
- package/dist/Components/Header/components/desktopMenu.js +33 -0
- package/dist/Components/Header/components/mobileMenu.d.ts +4 -0
- package/dist/Components/Header/components/mobileMenu.js +32 -0
- package/dist/Components/Input/Input/Input.d.ts +4 -0
- package/dist/Components/Input/Input/Input.js +45 -0
- package/{src/Components/Input/Input/InputProps.tsx → dist/Components/Input/Input/InputProps.d.ts} +1 -2
- package/dist/Components/Input/Input/InputProps.js +2 -0
- package/dist/Components/Input/TextInput.d.ts +4 -0
- package/dist/Components/Input/TextInput.js +68 -0
- package/dist/Components/Input/TextInput.stories.d.ts +1 -0
- package/dist/Components/Input/TextInput.stories.js +8 -0
- package/dist/Components/Input/TextInput.styles.d.ts +2 -0
- package/{src/Components/Input/TextInput.styles.ts → dist/Components/Input/TextInput.styles.js} +19 -20
- package/{src/Components/Input/TextInputProps.tsx → dist/Components/Input/TextInputProps.d.ts} +2 -21
- package/dist/Components/Input/TextInputProps.js +2 -0
- package/dist/Components/InputTextArea/InputTextArea.d.ts +3 -0
- package/dist/Components/InputTextArea/InputTextArea.js +16 -0
- package/dist/Components/InputTextArea/InputTextArea.stories.d.ts +1 -0
- package/dist/Components/InputTextArea/InputTextArea.stories.js +7 -0
- package/{src/Components/InputTextArea/InputTextAreaProps.tsx → dist/Components/InputTextArea/InputTextAreaProps.d.ts} +1 -2
- package/dist/Components/InputTextArea/InputTextAreaProps.js +2 -0
- package/dist/Components/KanbanBoard/AccountCard.d.ts +9 -0
- package/dist/Components/KanbanBoard/AccountCard.js +74 -0
- package/dist/Components/KanbanBoard/AccountRow.d.ts +6 -0
- package/dist/Components/KanbanBoard/AccountRow.js +20 -0
- package/dist/Components/KanbanBoard/KanbanActions/KanbanActions.d.ts +9 -0
- package/dist/Components/KanbanBoard/KanbanActions/KanbanActions.js +26 -0
- package/dist/Components/KanbanBoard/KanbanBoard.d.ts +4 -0
- package/dist/Components/KanbanBoard/KanbanBoard.js +120 -0
- package/dist/Components/KanbanBoard/KanbanBoardProps.d.ts +27 -0
- package/dist/Components/KanbanBoard/KanbanBoardProps.js +2 -0
- package/dist/Components/Loading/Loading.d.ts +3 -0
- package/dist/Components/Loading/Loading.js +36 -0
- package/dist/Components/Loading/Loading.stories.d.ts +1 -0
- package/dist/Components/Loading/Loading.stories.js +7 -0
- package/dist/Components/Loading/LoadingProps.d.ts +5 -0
- package/dist/Components/Loading/LoadingProps.js +2 -0
- package/dist/Components/Modal/Modal.d.ts +12 -0
- package/dist/Components/Modal/Modal.js +50 -0
- package/dist/Components/Modal/Modal.stories.d.ts +1 -0
- package/dist/Components/Modal/Modal.stories.js +7 -0
- package/dist/Components/Modal/ModalProps.d.ts +11 -0
- package/dist/Components/Modal/ModalProps.js +2 -0
- package/dist/Components/MultiSelect/MultiSelect.d.ts +3 -0
- package/dist/Components/MultiSelect/MultiSelect.js +115 -0
- package/dist/Components/MultiSelect/MultiSelectProps.d.ts +20 -0
- package/dist/Components/MultiSelect/MultiSelectProps.js +2 -0
- package/dist/Components/NavigationBar/NavBar.stories.d.ts +1 -0
- package/dist/Components/NavigationBar/NavBar.stories.js +3 -0
- package/dist/Components/NavigationBar/NavigationBar.d.ts +3 -0
- package/dist/Components/NavigationBar/NavigationBar.js +50 -0
- package/dist/Components/NavigationBar/NavigationBarProps.d.ts +19 -0
- package/dist/Components/NavigationBar/NavigationBarProps.js +2 -0
- package/dist/Components/NoteTextArea/NoteTextArea.d.ts +3 -0
- package/dist/Components/NoteTextArea/NoteTextArea.js +274 -0
- package/dist/Components/NoteTextArea/NoteTextAreaProps.d.ts +16 -0
- package/dist/Components/NoteTextArea/NoteTextAreaProps.js +2 -0
- package/dist/Components/NumberInput/NumberInput.d.ts +3 -0
- package/dist/Components/NumberInput/NumberInput.js +16 -0
- package/dist/Components/NumberInput/NumberInput.stories.d.ts +1 -0
- package/dist/Components/NumberInput/NumberInput.stories.js +5 -0
- package/dist/Components/NumberInput/NumberInputProps.d.ts +12 -0
- package/dist/Components/NumberInput/NumberInputProps.js +2 -0
- package/dist/Components/PinInput/PinInput.d.ts +3 -0
- package/dist/Components/PinInput/PinInput.js +15 -0
- package/dist/Components/PinInput/PinInput.stories.d.ts +1 -0
- package/dist/Components/PinInput/PinInput.stories.js +6 -0
- package/dist/Components/PinInput/PinInputProps.d.ts +9 -0
- package/dist/Components/PinInput/PinInputProps.js +2 -0
- package/dist/Components/PinInputs/PinInputs.d.ts +4 -0
- package/dist/Components/PinInputs/PinInputs.js +71 -0
- package/{src/Components/PinInputs/PinInputsProps.tsx → dist/Components/PinInputs/PinInputsProps.d.ts} +1 -1
- package/dist/Components/PinInputs/PinInputsProps.js +2 -0
- package/dist/Components/ProductCard/ProductCard.d.ts +4 -0
- package/dist/Components/ProductCard/ProductCard.js +51 -0
- package/{src/Components/ProductCard/ProductCardProps.tsx → dist/Components/ProductCard/ProductCardProps.d.ts} +14 -15
- package/dist/Components/ProductCard/ProductCardProps.js +2 -0
- package/dist/Components/ProductCard/ProductLabel.d.ts +6 -0
- package/dist/Components/ProductCard/ProductLabel.js +14 -0
- package/dist/Components/ProductCard/ProductPrice.d.ts +7 -0
- package/dist/Components/ProductCard/ProductPrice.js +88 -0
- package/dist/Components/ProductCard/ProductReview.d.ts +7 -0
- package/dist/Components/ProductCard/ProductReview.js +23 -0
- package/dist/Components/ProductCard/ProductTags.d.ts +7 -0
- package/dist/Components/ProductCard/ProductTags.js +30 -0
- package/dist/Components/ProfileCard/ProfileCard.d.ts +12 -0
- package/dist/Components/ProfileCard/ProfileCard.js +57 -0
- package/dist/Components/ProfileCard/ProfileCard.stories.d.ts +1 -0
- package/dist/Components/ProfileCard/ProfileCard.stories.js +6 -0
- package/dist/Components/ProfileCard/ProfileCardProps.d.ts +16 -0
- package/dist/Components/ProfileCard/ProfileCardProps.js +2 -0
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.d.ts +3 -0
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.js +94 -0
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.stories.d.ts +1 -0
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewer.stories.js +6 -0
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewerProps.d.ts +19 -0
- package/dist/Components/ProfilePhotoViewer/ProfilePhotoViewerProps.js +2 -0
- package/dist/Components/ProgressBar/ProgressBar.d.ts +3 -0
- package/dist/Components/ProgressBar/ProgressBar.js +12 -0
- package/dist/Components/ProgressBar/ProgressBar.stories.d.ts +1 -0
- package/dist/Components/ProgressBar/ProgressBar.stories.js +7 -0
- package/{src/Components/ProgressBar/ProgressBarProps.tsx → dist/Components/ProgressBar/ProgressBarProps.d.ts} +5 -6
- package/dist/Components/ProgressBar/ProgressBarProps.js +2 -0
- package/dist/Components/RadioButton/RadioButton.d.ts +5 -0
- package/dist/Components/RadioButton/RadioButton.js +31 -0
- package/dist/Components/RadioButton/RadioButton.stories.d.ts +1 -0
- package/dist/Components/RadioButton/RadioButton.stories.js +7 -0
- package/dist/Components/RadioButton/RadioButtonProps.d.ts +11 -0
- package/dist/Components/RadioButton/RadioButtonProps.js +2 -0
- package/dist/Components/Reorder/Reorder.d.ts +4 -0
- package/dist/Components/Reorder/Reorder.js +50 -0
- package/dist/Components/Reorder/ReorderProps.d.ts +10 -0
- package/dist/Components/Reorder/ReorderProps.js +2 -0
- package/dist/Components/Search/Search.d.ts +3 -0
- package/dist/Components/Search/Search.js +66 -0
- package/dist/Components/Search/SearchProps.d.ts +8 -0
- package/dist/Components/Search/SearchProps.js +2 -0
- package/dist/Components/SearchSelect/SearchSelect.d.ts +4 -0
- package/dist/Components/SearchSelect/SearchSelect.js +237 -0
- package/dist/Components/SearchSelect/SearchSelectProps.d.ts +60 -0
- package/dist/Components/SearchSelect/SearchSelectProps.js +2 -0
- package/dist/Components/SearchSelect/SelectTruncatedLabel.d.ts +6 -0
- package/dist/Components/SearchSelect/SelectTruncatedLabel.js +45 -0
- package/dist/Components/Select/Select.d.ts +3 -0
- package/dist/Components/Select/Select.js +54 -0
- package/dist/Components/Select/Select.stories.d.ts +1 -0
- package/dist/Components/Select/Select.stories.js +8 -0
- package/dist/Components/Select/Select.styles.d.ts +2 -0
- package/dist/Components/Select/Select.styles.js +98 -0
- package/dist/Components/Select/SelectProps.d.ts +20 -0
- package/dist/Components/Select/SelectProps.js +2 -0
- package/dist/Components/SelectSearch/SelectSearch.d.ts +3 -0
- package/dist/Components/SelectSearch/SelectSearch.js +239 -0
- package/dist/Components/SelectSearch/SelectSearchProps.d.ts +42 -0
- package/dist/Components/SelectSearch/SelectSearchProps.js +2 -0
- package/dist/Components/SideBar/SideBar.d.ts +3 -0
- package/dist/Components/SideBar/SideBar.js +55 -0
- package/dist/Components/SideBar/SideBarProps.d.ts +29 -0
- package/dist/Components/SideBar/SideBarProps.js +2 -0
- package/dist/Components/SideBar/Sidebar.stories.d.ts +1 -0
- package/dist/Components/SideBar/Sidebar.stories.js +7 -0
- package/dist/Components/SideBar/components/MenuItemBox.d.ts +11 -0
- package/dist/Components/SideBar/components/MenuItemBox.js +116 -0
- package/dist/Components/SideBar/components/MenuItems.d.ts +4 -0
- package/dist/Components/SideBar/components/MenuItems.js +13 -0
- package/dist/Components/SideBar/components/MenuPopoverContent.d.ts +9 -0
- package/dist/Components/SideBar/components/MenuPopoverContent.js +37 -0
- package/dist/Components/SideBar/components/TextTruncation.d.ts +8 -0
- package/dist/Components/SideBar/components/TextTruncation.js +77 -0
- package/dist/Components/Skeletons/Skeleton.stories.d.ts +1 -0
- package/dist/Components/Skeletons/Skeleton.stories.js +7 -0
- package/dist/Components/Skeletons/SkeletonProps.d.ts +4 -0
- package/dist/Components/Skeletons/SkeletonProps.js +2 -0
- package/dist/Components/Skeletons/Skeletons.d.ts +3 -0
- package/dist/Components/Skeletons/Skeletons.js +15 -0
- package/dist/Components/Slider/Slider.d.ts +8 -0
- package/dist/Components/Slider/Slider.js +57 -0
- package/dist/Components/Switch/Switch.d.ts +3 -0
- package/dist/Components/Switch/Switch.js +39 -0
- package/dist/Components/Switch/SwitchProps.d.ts +9 -0
- package/dist/Components/Switch/SwitchProps.js +2 -0
- package/dist/Components/Table/Components/HeaderActions.d.ts +7 -0
- package/dist/Components/Table/Components/HeaderActions.js +45 -0
- package/dist/Components/Table/Components/Pagination.d.ts +14 -0
- package/dist/Components/Table/Components/Pagination.js +32 -0
- package/dist/Components/Table/Components/TableActions.d.ts +3 -0
- package/dist/Components/Table/Components/TableActions.js +28 -0
- package/dist/Components/Table/Components/TableBody.d.ts +4 -0
- package/dist/Components/Table/Components/TableBody.js +140 -0
- package/dist/Components/Table/Components/TableFilters.d.ts +4 -0
- package/dist/Components/Table/Components/TableFilters.js +59 -0
- package/dist/Components/Table/Components/TableHeader.d.ts +4 -0
- package/dist/Components/Table/Components/TableHeader.js +147 -0
- package/dist/Components/Table/Components/TableLoading.d.ts +7 -0
- package/dist/Components/Table/Components/TableLoading.js +41 -0
- package/dist/Components/Table/Components/TableSearch.d.ts +6 -0
- package/dist/Components/Table/Components/TableSearch.js +60 -0
- package/dist/Components/Table/Components/useDebounce.d.ts +2 -0
- package/dist/Components/Table/Components/useDebounce.js +28 -0
- package/dist/Components/Table/Components/useTable.d.ts +46 -0
- package/dist/Components/Table/Components/useTable.js +168 -0
- package/dist/Components/Table/Table.d.ts +3 -0
- package/dist/Components/Table/Table.js +129 -0
- package/dist/Components/Table/Table.stories.d.ts +1 -0
- package/dist/Components/Table/Table.stories.js +9 -0
- package/dist/Components/Table/TableProps.d.ts +112 -0
- package/dist/Components/Table/TableProps.js +2 -0
- package/dist/Components/Table/TableSettings/ManageColumns.d.ts +10 -0
- package/dist/Components/Table/TableSettings/ManageColumns.js +107 -0
- package/dist/Components/Table/TableSettings/TableSettings.d.ts +7 -0
- package/dist/Components/Table/TableSettings/TableSettings.js +73 -0
- package/dist/Components/Table/TableToDo.d.ts +2 -0
- package/{src/Components/Table/TableToDo.tsx → dist/Components/Table/TableToDo.js} +100 -105
- package/dist/Components/Tag/Tag.d.ts +12 -0
- package/dist/Components/Tag/Tag.js +21 -0
- package/dist/Components/Tag/Tag.styles.d.ts +2 -0
- package/dist/Components/Tag/Tag.styles.js +63 -0
- package/dist/Components/Timeline/Timeline.d.ts +4 -0
- package/dist/Components/Timeline/Timeline.js +166 -0
- package/dist/Components/Timeline/TimelineProps.d.ts +20 -0
- package/dist/Components/Timeline/TimelineProps.js +2 -0
- package/dist/Components/Toaster/Toaster.d.ts +4 -0
- package/dist/Components/Toaster/Toaster.js +86 -0
- package/dist/Components/Toaster/Toaster.stories.d.ts +1 -0
- package/dist/Components/Toaster/Toaster.stories.js +8 -0
- package/{src/Components/Toaster/ToasterProps.tsx → dist/Components/Toaster/ToasterProps.d.ts} +6 -9
- package/dist/Components/Toaster/ToasterProps.js +2 -0
- package/dist/Components/Toggle/TableToggle.d.ts +4 -0
- package/dist/Components/Toggle/TableToggle.js +60 -0
- package/{src/Components/Toggle/TableToggleProps.ts → dist/Components/Toggle/TableToggleProps.d.ts} +2 -3
- package/dist/Components/Toggle/TableToggleProps.js +2 -0
- package/dist/Components/ToolTip/ToolTip.d.ts +3 -0
- package/dist/Components/ToolTip/ToolTip.js +12 -0
- package/dist/Components/ToolTip/ToolTip.stories.d.ts +1 -0
- package/dist/Components/ToolTip/ToolTip.stories.js +7 -0
- package/dist/Components/ToolTip/ToolTipProps.d.ts +7 -0
- package/dist/Components/ToolTip/ToolTipProps.js +2 -0
- package/dist/Components/Trail/EditableCell.d.ts +11 -0
- package/dist/Components/Trail/EditableCell.js +71 -0
- package/dist/Components/Trail/SelectAllCheckbox.d.ts +8 -0
- package/dist/Components/Trail/SelectAllCheckbox.js +13 -0
- package/dist/Components/Trail/TrailWorks.d.ts +3 -0
- package/{src/Components/Trail/TrailWorks.tsx → dist/Components/Trail/TrailWorks.js} +65 -108
- package/dist/Components/Trail/data.d.ts +15 -0
- package/dist/Components/Trail/data.js +29 -0
- package/dist/Constants/Sidebar.d.ts +38 -0
- package/dist/Constants/Sidebar.js +42 -0
- package/dist/Hooks/usePreferences.d.ts +24 -0
- package/dist/Hooks/usePreferences.js +73 -0
- package/dist/Layout.d.ts +3 -0
- package/dist/Layout.js +269 -0
- package/dist/Pages/TInput.d.ts +3 -0
- package/dist/Pages/TInput.js +46 -0
- package/dist/Pages/accordion.d.ts +3 -0
- package/dist/Pages/accordion.js +42 -0
- package/dist/Pages/alertdialog.d.ts +3 -0
- package/dist/Pages/alertdialog.js +44 -0
- package/dist/Pages/button.d.ts +3 -0
- package/dist/Pages/button.js +29 -0
- package/dist/Pages/card.d.ts +3 -0
- package/dist/Pages/card.js +48 -0
- package/dist/Pages/chart.d.ts +3 -0
- package/dist/Pages/chart.js +28 -0
- package/dist/Pages/checkbox.d.ts +3 -0
- package/dist/Pages/checkbox.js +12 -0
- package/dist/Pages/contactForm.d.ts +3 -0
- package/dist/Pages/contactForm.js +16 -0
- package/dist/Pages/datePick.d.ts +3 -0
- package/dist/Pages/datePick.js +70 -0
- package/dist/Pages/drawer.d.ts +3 -0
- package/dist/Pages/drawer.js +48 -0
- package/dist/Pages/dropdown.d.ts +3 -0
- package/dist/Pages/dropdown.js +24 -0
- package/dist/Pages/editor.d.ts +3 -0
- package/dist/Pages/editor.js +14 -0
- package/dist/Pages/fileUpload.d.ts +2 -0
- package/dist/Pages/fileUpload.js +65 -0
- package/dist/Pages/input.d.ts +3 -0
- package/dist/Pages/input.js +42 -0
- package/dist/Pages/kanbanboard.d.ts +3 -0
- package/dist/Pages/kanbanboard.js +115 -0
- package/dist/Pages/modal.d.ts +3 -0
- package/dist/Pages/modal.js +55 -0
- package/dist/Pages/multiSelect.d.ts +3 -0
- package/dist/Pages/multiSelect.js +45 -0
- package/dist/Pages/noteArea.d.ts +3 -0
- package/dist/Pages/noteArea.js +49 -0
- package/dist/Pages/numberInput.d.ts +3 -0
- package/dist/Pages/numberInput.js +39 -0
- package/dist/Pages/photoViewer.d.ts +3 -0
- package/dist/Pages/photoViewer.js +12 -0
- package/dist/Pages/pinInputs.d.ts +3 -0
- package/dist/Pages/pinInputs.js +12 -0
- package/dist/Pages/productCaard.d.ts +3 -0
- package/dist/Pages/productCaard.js +32 -0
- package/dist/Pages/progressbar.d.ts +3 -0
- package/dist/Pages/progressbar.js +12 -0
- package/dist/Pages/radioButton.d.ts +3 -0
- package/dist/Pages/radioButton.js +44 -0
- package/dist/Pages/search.d.ts +3 -0
- package/dist/Pages/search.js +44 -0
- package/dist/Pages/searchSelect.d.ts +3 -0
- package/dist/Pages/searchSelect.js +151 -0
- package/dist/Pages/select.d.ts +3 -0
- package/dist/Pages/select.js +43 -0
- package/dist/Pages/selectSearch.d.ts +3 -0
- package/dist/Pages/selectSearch.js +93 -0
- package/dist/Pages/skeleton.d.ts +3 -0
- package/dist/Pages/skeleton.js +22 -0
- package/dist/Pages/switch.d.ts +3 -0
- package/dist/Pages/switch.js +40 -0
- package/dist/Pages/table.d.ts +2 -0
- package/dist/Pages/table.js +144 -0
- package/dist/Pages/textArea.d.ts +3 -0
- package/dist/Pages/textArea.js +12 -0
- package/dist/Pages/timeline.d.ts +3 -0
- package/dist/Pages/timeline.js +74 -0
- package/dist/Pages/tooltip.d.ts +3 -0
- package/dist/Pages/tooltip.js +12 -0
- package/dist/Pages/toster.d.ts +3 -0
- package/dist/Pages/toster.js +63 -0
- package/dist/Pages/verifyEmail.d.ts +3 -0
- package/dist/Pages/verifyEmail.js +18 -0
- package/dist/Theme/Dark/theme.d.ts +2 -0
- package/{src/Theme/Dark/theme.ts → dist/Theme/Dark/theme.js} +79 -74
- package/dist/Theme/Default/palette.d.ts +370 -0
- package/dist/Theme/Default/palette.js +372 -0
- package/dist/Theme/Default/theme.d.ts +2 -0
- package/dist/Theme/Default/theme.js +23 -0
- package/dist/Theme/Meadow/palette.d.ts +368 -0
- package/dist/Theme/Meadow/palette.js +356 -0
- package/dist/Theme/Meadow/theme.d.ts +2 -0
- package/dist/Theme/Meadow/theme.js +23 -0
- package/dist/Theme/Radiant/palette.d.ts +368 -0
- package/dist/Theme/Radiant/palette.js +356 -0
- package/dist/Theme/Radiant/theme.d.ts +2 -0
- package/dist/Theme/Radiant/theme.js +23 -0
- package/dist/Theme/Skyline/palette.d.ts +368 -0
- package/dist/Theme/Skyline/palette.js +356 -0
- package/dist/Theme/Skyline/theme.d.ts +2 -0
- package/dist/Theme/Skyline/theme.js +23 -0
- package/dist/Theme/common.d.ts +166 -0
- package/{src/Theme/common.ts → dist/Theme/common.js} +22 -30
- package/dist/Theme/componentStyles.d.ts +7 -0
- package/dist/Theme/componentStyles.js +15 -0
- package/dist/Theme/fonts.d.ts +34 -0
- package/dist/Theme/fonts.js +41 -0
- package/{src/Theme/index.ts → dist/Theme/index.d.ts} +6 -8
- package/dist/Theme/index.js +20 -0
- package/dist/Theme/space.d.ts +33 -0
- package/dist/Theme/space.js +35 -0
- package/dist/Theme/theme.d.ts +2 -0
- package/dist/Theme/theme.js +9 -0
- package/dist/Theme/themeProps.d.ts +475 -0
- package/dist/Theme/themeProps.js +3 -0
- package/dist/Theme/useCustomTheme.d.ts +2 -0
- package/dist/Theme/useCustomTheme.js +8 -0
- package/dist/Utils/table.d.ts +36 -0
- package/dist/Utils/table.js +168 -0
- package/dist/bootstrap.d.ts +1 -0
- package/dist/bootstrap.js +14 -0
- package/dist/index.d.ts +55 -1468
- package/dist/index.js +148 -263
- package/dist/withTheme.d.ts +3 -0
- package/dist/withTheme.js +28 -0
- package/package.json +10 -24
- package/.github/workflows/build.yml +0 -31
- package/src/Components/Accordion/Accordion.tsx +0 -59
- package/src/Components/Accordion/AccordionProps.tsx +0 -22
- package/src/Components/AlertDialog/AlertDialog.tsx +0 -69
- package/src/Components/Apexcharts/ApexBarChart/ApexBarChart.stories.tsx +0 -42
- package/src/Components/Apexcharts/ApexBarChart/ApexBarChart.tsx +0 -80
- package/src/Components/Apexcharts/ApexBarChart/ApexBarChartProps.tsx +0 -19
- package/src/Components/Apexcharts/ApexPieChart/ApexPieChart.stories.tsx +0 -34
- package/src/Components/Apexcharts/ApexPieChart/ApexPieChart.tsx +0 -42
- package/src/Components/Apexcharts/ApexPieChart/ApexPieChartProps.tsx +0 -42
- package/src/Components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -27
- package/src/Components/Breadcrumbs/Breadcrumbs.tsx +0 -42
- package/src/Components/Button/Button.stories.tsx +0 -33
- package/src/Components/Button/Button.styles.ts +0 -104
- package/src/Components/Button/Button.tsx +0 -49
- package/src/Components/Button/ButtonProps.tsx +0 -25
- package/src/Components/ButtonGroupIcon/ButtonGoupIconProps.tsx +0 -46
- package/src/Components/ButtonGroupIcon/ButtonGroupIcon.stories.tsx +0 -37
- package/src/Components/ButtonGroupIcon/ButtonGroupIcon.tsx +0 -159
- package/src/Components/Buttons/Buttons.tsx +0 -16
- package/src/Components/Card/Card.tsx +0 -35
- package/src/Components/Card/CardProps.tsx +0 -41
- package/src/Components/Checkbox/Checkbox.stories.tsx +0 -46
- package/src/Components/Checkbox/Checkbox.styles.ts +0 -56
- package/src/Components/Checkbox/Checkbox.tsx +0 -68
- package/src/Components/Checkbox/CheckboxProps.tsx +0 -42
- package/src/Components/Common/ErrorComponent.tsx +0 -16
- package/src/Components/Common/ErrorMessage.tsx +0 -22
- package/src/Components/Common/FormLabel.tsx +0 -48
- package/src/Components/Common/HelperText.tsx +0 -14
- package/src/Components/Common/Label.tsx +0 -12
- package/src/Components/ContactForm/ContactForm.tsx +0 -250
- package/src/Components/ContactForm/ContactFormProps.tsx +0 -10
- package/src/Components/DatePicker/DatePicker.tsx +0 -378
- package/src/Components/DatePicker/DatePickerProps.tsx +0 -48
- package/src/Components/DatePicker/TimePicker.tsx +0 -112
- package/src/Components/Divider/Divider.tsx +0 -17
- package/src/Components/Drawer/Drawer.tsx +0 -66
- package/src/Components/Drawer/DrawerProps.tsx +0 -11
- package/src/Components/Dropdown/DropDown.tsx +0 -189
- package/src/Components/Dropdown/DropdownProps.tsx +0 -26
- package/src/Components/Editor/Editor.tsx +0 -23
- package/src/Components/Editor/EditorProps.tsx +0 -8
- package/src/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtp.tsx +0 -78
- package/src/Components/EmailCards/VerifyEmailOtp/VerifyEmailOtpProps.tsx +0 -12
- package/src/Components/FileUpload/FileUpload.tsx +0 -282
- package/src/Components/FileUpload/FileUploadProps.tsx +0 -34
- package/src/Components/FileUpload/constants.ts +0 -30
- package/src/Components/Form/FormWrapper.tsx +0 -47
- package/src/Components/Header/Header.tsx +0 -92
- package/src/Components/Header/HeaderActions.tsx +0 -96
- package/src/Components/Header/HeaderProps.ts +0 -72
- package/src/Components/Header/components/desktopMenu.tsx +0 -116
- package/src/Components/Header/components/mobileMenu.tsx +0 -99
- package/src/Components/Input/Input/Input.tsx +0 -56
- package/src/Components/Input/TextInput.stories.tsx +0 -46
- package/src/Components/Input/TextInput.tsx +0 -112
- package/src/Components/InputTextArea/InputTextArea.stories.tsx +0 -49
- package/src/Components/InputTextArea/InputTextArea.tsx +0 -54
- package/src/Components/KanbanBoard/AccountCard.tsx +0 -121
- package/src/Components/KanbanBoard/AccountRow.tsx +0 -35
- package/src/Components/KanbanBoard/KanbanActions/KanbanActions.tsx +0 -37
- package/src/Components/KanbanBoard/KanbanBoard.tsx +0 -185
- package/src/Components/KanbanBoard/KanbanBoardProps.ts +0 -34
- package/src/Components/Loading/Loading.stories.tsx +0 -26
- package/src/Components/Loading/Loading.tsx +0 -80
- package/src/Components/Loading/LoadingProps.tsx +0 -5
- package/src/Components/Modal/Modal.stories.tsx +0 -107
- package/src/Components/Modal/Modal.tsx +0 -107
- package/src/Components/Modal/ModalProps.tsx +0 -22
- package/src/Components/MultiSelect/MultiSelect.tsx +0 -154
- package/src/Components/MultiSelect/MultiSelectProps.tsx +0 -20
- package/src/Components/NavigationBar/NavBar.stories.tsx +0 -27
- package/src/Components/NavigationBar/NavigationBar.tsx +0 -125
- package/src/Components/NavigationBar/NavigationBarProps.tsx +0 -19
- package/src/Components/NoteTextArea/NoteTextArea.tsx +0 -409
- package/src/Components/NoteTextArea/NoteTextAreaProps.tsx +0 -22
- package/src/Components/NumberInput/NumberInput.stories.tsx +0 -32
- package/src/Components/NumberInput/NumberInput.tsx +0 -63
- package/src/Components/NumberInput/NumberInputProps.tsx +0 -28
- package/src/Components/PinInput/PinInput.stories.tsx +0 -41
- package/src/Components/PinInput/PinInput.tsx +0 -49
- package/src/Components/PinInput/PinInputProps.tsx +0 -33
- package/src/Components/PinInputs/PinInputs.tsx +0 -63
- package/src/Components/ProductCard/ProductCard.tsx +0 -77
- package/src/Components/ProductCard/ProductLabel.tsx +0 -13
- package/src/Components/ProductCard/ProductPrice.tsx +0 -177
- package/src/Components/ProductCard/ProductReview.tsx +0 -37
- package/src/Components/ProductCard/ProductTags.tsx +0 -57
- package/src/Components/ProfileCard/ProfileCard.stories.tsx +0 -31
- package/src/Components/ProfileCard/ProfileCard.tsx +0 -97
- package/src/Components/ProfileCard/ProfileCardProps.tsx +0 -39
- package/src/Components/ProfilePhotoViewer/ProfilePhotoViewer.stories.tsx +0 -26
- package/src/Components/ProfilePhotoViewer/ProfilePhotoViewer.tsx +0 -177
- package/src/Components/ProfilePhotoViewer/ProfilePhotoViewerProps.tsx +0 -18
- package/src/Components/ProgressBar/ProgressBar.stories.tsx +0 -48
- package/src/Components/ProgressBar/ProgressBar.tsx +0 -31
- package/src/Components/RadioButton/RadioButton.stories.tsx +0 -47
- package/src/Components/RadioButton/RadioButton.tsx +0 -78
- package/src/Components/RadioButton/RadioButtonProps.tsx +0 -10
- package/src/Components/Reorder/Reorder.tsx +0 -121
- package/src/Components/Reorder/ReorderProps.tsx +0 -11
- package/src/Components/Search/Search.tsx +0 -80
- package/src/Components/Search/SearchProps.tsx +0 -7
- package/src/Components/SearchSelect/SearchSelect.tsx +0 -525
- package/src/Components/SearchSelect/SearchSelectProps.tsx +0 -60
- package/src/Components/SearchSelect/SelectTruncatedLabel.tsx +0 -31
- package/src/Components/Select/Select.stories.tsx +0 -59
- package/src/Components/Select/Select.styles.ts +0 -97
- package/src/Components/Select/Select.tsx +0 -89
- package/src/Components/Select/SelectProps.tsx +0 -37
- package/src/Components/SelectSearch/SelectSearch.tsx +0 -447
- package/src/Components/SelectSearch/SelectSearchProps.tsx +0 -43
- package/src/Components/SideBar/SideBar.tsx +0 -206
- package/src/Components/SideBar/SideBarProps.tsx +0 -31
- package/src/Components/SideBar/Sidebar.stories.tsx +0 -80
- package/src/Components/SideBar/components/MenuItemBox.tsx +0 -217
- package/src/Components/SideBar/components/MenuItems.tsx +0 -29
- package/src/Components/SideBar/components/MenuPopoverContent.tsx +0 -98
- package/src/Components/SideBar/components/TextTruncation.tsx +0 -76
- package/src/Components/Skeletons/Skeleton.stories.tsx +0 -65
- package/src/Components/Skeletons/SkeletonProps.tsx +0 -23
- package/src/Components/Skeletons/Skeletons.tsx +0 -51
- package/src/Components/Slider/Slider.tsx +0 -121
- package/src/Components/Switch/Switch.tsx +0 -104
- package/src/Components/Switch/SwitchProps.tsx +0 -28
- package/src/Components/Table/Components/HeaderActions.tsx +0 -79
- package/src/Components/Table/Components/Pagination.tsx +0 -101
- package/src/Components/Table/Components/TableActions.tsx +0 -75
- package/src/Components/Table/Components/TableBody.tsx +0 -299
- package/src/Components/Table/Components/TableFilters.tsx +0 -77
- package/src/Components/Table/Components/TableHeader.tsx +0 -314
- package/src/Components/Table/Components/TableLoading.tsx +0 -83
- package/src/Components/Table/Components/TableSearch.tsx +0 -84
- package/src/Components/Table/Components/useDebounce.ts +0 -31
- package/src/Components/Table/Components/useTable.ts +0 -220
- package/src/Components/Table/Table.stories.tsx +0 -48
- package/src/Components/Table/Table.tsx +0 -258
- package/src/Components/Table/TableProps.tsx +0 -163
- package/src/Components/Table/TableSettings/ManageColumns.tsx +0 -148
- package/src/Components/Table/TableSettings/TableSettings.tsx +0 -153
- package/src/Components/Tag/Tag.styles.tsx +0 -56
- package/src/Components/Tag/Tag.tsx +0 -68
- package/src/Components/Timeline/Timeline.tsx +0 -310
- package/src/Components/Timeline/TimelineProps.tsx +0 -22
- package/src/Components/Toaster/Toaster.stories.tsx +0 -60
- package/src/Components/Toaster/Toaster.tsx +0 -99
- package/src/Components/Toggle/TableToggle.tsx +0 -68
- package/src/Components/ToolTip/ToolTip.stories.tsx +0 -38
- package/src/Components/ToolTip/ToolTip.tsx +0 -62
- package/src/Components/ToolTip/ToolTipProps.tsx +0 -46
- package/src/Components/Trail/EditableCell.tsx +0 -116
- package/src/Components/Trail/SelectAllCheckbox.tsx +0 -22
- package/src/Components/Trail/data.ts +0 -42
- package/src/Constants/Sidebar.ts +0 -39
- package/src/Hooks/usePreferences.ts +0 -105
- package/src/Theme/Default/palette.ts +0 -373
- package/src/Theme/Default/theme.ts +0 -16
- package/src/Theme/Meadow/palette.ts +0 -372
- package/src/Theme/Meadow/theme.ts +0 -17
- package/src/Theme/Radiant/palette.ts +0 -372
- package/src/Theme/Radiant/theme.ts +0 -17
- package/src/Theme/Skyline/palette.ts +0 -372
- package/src/Theme/Skyline/theme.ts +0 -17
- package/src/Theme/componentStyles.ts +0 -13
- package/src/Theme/fonts.ts +0 -41
- package/src/Theme/space.ts +0 -34
- package/src/Theme/theme.ts +0 -9
- package/src/Theme/themeProps.ts +0 -477
- package/src/Theme/useCustomTheme.ts +0 -6
- package/src/Utils/table.ts +0 -200
- package/src/index.ts +0 -146
- package/src/types/pixelize-design-library.d.ts +0 -4
- package/src/withTheme.tsx +0 -20
- package/tsconfig.json +0 -23
- /package/{src → dist}/Assets/defaultLogo.tsx +0 -0
- /package/{src → dist}/global.css +0 -0
- /package/{src → dist}/index.css +0 -0
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from "react";
|
|
2
|
-
import {
|
|
3
|
-
FormControl,
|
|
4
|
-
Input,
|
|
5
|
-
InputGroup,
|
|
6
|
-
InputLeftElement,
|
|
7
|
-
InputRightElement,
|
|
8
|
-
} from "@chakra-ui/react";
|
|
9
|
-
import { TextInputProps } from "./TextInputProps";
|
|
10
|
-
import { TextLabel } from "../Common/FormLabel";
|
|
11
|
-
import HelperText from "../Common/HelperText";
|
|
12
|
-
import ErrorMessage from "../Common/ErrorMessage";
|
|
13
|
-
|
|
14
|
-
const TextInput = forwardRef<HTMLInputElement, TextInputProps>(
|
|
15
|
-
(
|
|
16
|
-
{
|
|
17
|
-
label,
|
|
18
|
-
type = "text",
|
|
19
|
-
id,
|
|
20
|
-
name,
|
|
21
|
-
onChange,
|
|
22
|
-
onBlur,
|
|
23
|
-
onFocus,
|
|
24
|
-
isDisabled = false,
|
|
25
|
-
isReadOnly = false,
|
|
26
|
-
isRequired = false,
|
|
27
|
-
value,
|
|
28
|
-
placeholder = "Placeholder",
|
|
29
|
-
width = "100%",
|
|
30
|
-
height = "2.75rem",
|
|
31
|
-
error,
|
|
32
|
-
errorMessage,
|
|
33
|
-
helperText,
|
|
34
|
-
onRightIconclick,
|
|
35
|
-
inputRightIcon,
|
|
36
|
-
inputLeftIcon,
|
|
37
|
-
onLeftIconClick,
|
|
38
|
-
inputGroupStyle,
|
|
39
|
-
inputStyle,
|
|
40
|
-
size = "md",
|
|
41
|
-
isInformation = false,
|
|
42
|
-
informationMessage,
|
|
43
|
-
leftElementStyle,
|
|
44
|
-
rightElementStyle,
|
|
45
|
-
autoComplete,
|
|
46
|
-
minW,
|
|
47
|
-
maxW,
|
|
48
|
-
...props
|
|
49
|
-
},
|
|
50
|
-
ref
|
|
51
|
-
) => {
|
|
52
|
-
return (
|
|
53
|
-
<FormControl w={width} minW={minW} maxW={maxW}>
|
|
54
|
-
{label && (
|
|
55
|
-
<TextLabel
|
|
56
|
-
label={label}
|
|
57
|
-
id={id}
|
|
58
|
-
isInformation={isInformation}
|
|
59
|
-
informationMessage={informationMessage}
|
|
60
|
-
isRequired={isRequired}
|
|
61
|
-
/>
|
|
62
|
-
)}
|
|
63
|
-
<InputGroup style={inputGroupStyle} height={height} >
|
|
64
|
-
{inputLeftIcon && (
|
|
65
|
-
<InputLeftElement
|
|
66
|
-
onClick={onLeftIconClick}
|
|
67
|
-
pointerEvents={onLeftIconClick ? "auto" : "none"}
|
|
68
|
-
{...leftElementStyle}
|
|
69
|
-
>
|
|
70
|
-
{inputLeftIcon}
|
|
71
|
-
</InputLeftElement>
|
|
72
|
-
)}
|
|
73
|
-
<Input
|
|
74
|
-
type={type}
|
|
75
|
-
placeholder={placeholder}
|
|
76
|
-
onChange={onChange}
|
|
77
|
-
onBlur={onBlur}
|
|
78
|
-
onFocus={onFocus}
|
|
79
|
-
value={value}
|
|
80
|
-
isDisabled={isDisabled}
|
|
81
|
-
isReadOnly={isReadOnly}
|
|
82
|
-
id={id}
|
|
83
|
-
name={name}
|
|
84
|
-
size={size}
|
|
85
|
-
height={height}
|
|
86
|
-
isInvalid={error}
|
|
87
|
-
ref={ref}
|
|
88
|
-
autoComplete={autoComplete}
|
|
89
|
-
{...inputStyle}
|
|
90
|
-
{...props}
|
|
91
|
-
|
|
92
|
-
/>
|
|
93
|
-
{inputRightIcon && (
|
|
94
|
-
<InputRightElement
|
|
95
|
-
onClick={onRightIconclick}
|
|
96
|
-
pointerEvents={onRightIconclick ? "auto" : "none"}
|
|
97
|
-
{...rightElementStyle}
|
|
98
|
-
>
|
|
99
|
-
{inputRightIcon}
|
|
100
|
-
</InputRightElement>
|
|
101
|
-
)}
|
|
102
|
-
</InputGroup>
|
|
103
|
-
{error && <ErrorMessage errorMessage={errorMessage} />}
|
|
104
|
-
{helperText && !error && <HelperText helperText={helperText} />}
|
|
105
|
-
</FormControl >
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
|
-
);
|
|
109
|
-
|
|
110
|
-
TextInput.displayName = "TextInput";
|
|
111
|
-
|
|
112
|
-
export default React.memo(TextInput);
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// import React from "react";
|
|
2
|
-
// import type { Meta, StoryObj } from "@storybook/react/*";
|
|
3
|
-
// import { InputTextAreaProps } from "./InputTextAreaProps";
|
|
4
|
-
// import InputTextArea from "./InputTextArea";
|
|
5
|
-
// import { useState } from "react";
|
|
6
|
-
|
|
7
|
-
// const meta: Meta<typeof InputTextArea> = {
|
|
8
|
-
// title: "Components/InputTextArea/InputTextArea",
|
|
9
|
-
// component: InputTextArea,
|
|
10
|
-
// parameters: {
|
|
11
|
-
// layout: "centered",
|
|
12
|
-
// },
|
|
13
|
-
// tags: ["autodocs"],
|
|
14
|
-
// };
|
|
15
|
-
|
|
16
|
-
// export default meta;
|
|
17
|
-
// type Story = StoryObj<typeof meta>;
|
|
18
|
-
|
|
19
|
-
// const TextAreaTemplate = (args: InputTextAreaProps) => {
|
|
20
|
-
// const [value, setValue] = useState("");
|
|
21
|
-
// const handleOnChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {
|
|
22
|
-
// setValue(e.target.value);
|
|
23
|
-
// };
|
|
24
|
-
// return <InputTextArea {...args} onChange={handleOnChange} value={value} />;
|
|
25
|
-
// };
|
|
26
|
-
|
|
27
|
-
// export const Primary: Story = {
|
|
28
|
-
// args: {
|
|
29
|
-
// label: "hello",
|
|
30
|
-
// helperText: "Hello",
|
|
31
|
-
// errorMessage: "Required",
|
|
32
|
-
// error: true,
|
|
33
|
-
// rows: 5,
|
|
34
|
-
// onChange: () => {},
|
|
35
|
-
// value: "",
|
|
36
|
-
// placeholder: "Placeholder",
|
|
37
|
-
// width: "100%",
|
|
38
|
-
// isDisabled: false,
|
|
39
|
-
// isReadOnly: false,
|
|
40
|
-
// isRequired: false,
|
|
41
|
-
// resize: "vertical",
|
|
42
|
-
// size: "md",
|
|
43
|
-
// variant: "outline",
|
|
44
|
-
// focusBorderColor: "blue.500",
|
|
45
|
-
// errorBorderColor: "red.500",
|
|
46
|
-
// },
|
|
47
|
-
// render: (args) => TextAreaTemplate(args),
|
|
48
|
-
// };
|
|
49
|
-
export {};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
FormControl,
|
|
4
|
-
FormErrorMessage,
|
|
5
|
-
FormHelperText,
|
|
6
|
-
FormLabel,
|
|
7
|
-
Textarea,
|
|
8
|
-
} from "@chakra-ui/react";
|
|
9
|
-
import { InputTextAreaProps } from "./InputTextAreaProps";
|
|
10
|
-
|
|
11
|
-
export default function InputTextArea({
|
|
12
|
-
label,
|
|
13
|
-
placeholder,
|
|
14
|
-
value,
|
|
15
|
-
onChange,
|
|
16
|
-
size = "md",
|
|
17
|
-
resize = "both",
|
|
18
|
-
width = 500,
|
|
19
|
-
isDisabled,
|
|
20
|
-
errorBorderColor,
|
|
21
|
-
focusBorderColor,
|
|
22
|
-
isReadOnly,
|
|
23
|
-
isRequired = false,
|
|
24
|
-
error,
|
|
25
|
-
errorMessage,
|
|
26
|
-
helperText,
|
|
27
|
-
rows,
|
|
28
|
-
height,
|
|
29
|
-
}: InputTextAreaProps) {
|
|
30
|
-
return (
|
|
31
|
-
<FormControl isRequired={isRequired} isInvalid={error}>
|
|
32
|
-
{label && <FormLabel mb="0.25rem">{label}</FormLabel>}
|
|
33
|
-
<Textarea
|
|
34
|
-
placeholder={placeholder}
|
|
35
|
-
value={value}
|
|
36
|
-
onChange={onChange}
|
|
37
|
-
size={size}
|
|
38
|
-
resize={resize}
|
|
39
|
-
isDisabled={isDisabled}
|
|
40
|
-
errorBorderColor={errorBorderColor}
|
|
41
|
-
focusBorderColor={focusBorderColor}
|
|
42
|
-
isReadOnly={isReadOnly}
|
|
43
|
-
isInvalid={error}
|
|
44
|
-
width={width}
|
|
45
|
-
rows={rows}
|
|
46
|
-
height={height}
|
|
47
|
-
/>
|
|
48
|
-
{error && <FormErrorMessage pl={4}>{errorMessage}</FormErrorMessage>}
|
|
49
|
-
{helperText && !error && (
|
|
50
|
-
<FormHelperText pl={4}>{helperText}</FormHelperText>
|
|
51
|
-
)}
|
|
52
|
-
</FormControl>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import {
|
|
3
|
-
Box,
|
|
4
|
-
Flex,
|
|
5
|
-
Text,
|
|
6
|
-
Tooltip,
|
|
7
|
-
HStack,
|
|
8
|
-
VStack,
|
|
9
|
-
Collapse,
|
|
10
|
-
Spacer,
|
|
11
|
-
} from "@chakra-ui/react";
|
|
12
|
-
import {
|
|
13
|
-
Draggable,
|
|
14
|
-
} from "@hello-pangea/dnd";
|
|
15
|
-
import { ChevronDown, ChevronUp, ExternalLink, Trash2 } from "lucide-react";
|
|
16
|
-
import { useCustomTheme } from "../../Theme/useCustomTheme";
|
|
17
|
-
import AccountRow from "./AccountRow";
|
|
18
|
-
import { Account, KanbanBoardProps } from "./KanbanBoardProps";
|
|
19
|
-
|
|
20
|
-
const excludeKeys = ["id", "details"];
|
|
21
|
-
|
|
22
|
-
const AccountCard = ({
|
|
23
|
-
account,
|
|
24
|
-
index,
|
|
25
|
-
onDelete,
|
|
26
|
-
onOpen,
|
|
27
|
-
}: {
|
|
28
|
-
account: Account;
|
|
29
|
-
index: number;
|
|
30
|
-
onDelete: KanbanBoardProps['onDelete'],
|
|
31
|
-
onOpen: KanbanBoardProps['onOpen']
|
|
32
|
-
}) => {
|
|
33
|
-
const { colors } = useCustomTheme();
|
|
34
|
-
const [showMore, setShowMore] = useState(false);
|
|
35
|
-
|
|
36
|
-
const keys = Object.keys(account).filter(
|
|
37
|
-
(key) => typeof account[key] === "string" && !excludeKeys.includes(key)
|
|
38
|
-
);
|
|
39
|
-
const visibleKeys = showMore ? keys : keys.slice(0, 4);
|
|
40
|
-
|
|
41
|
-
return (
|
|
42
|
-
<Draggable draggableId={account.id.toString()} index={index}>
|
|
43
|
-
{(provided) => (
|
|
44
|
-
<Box
|
|
45
|
-
ref={provided.innerRef}
|
|
46
|
-
{...provided.draggableProps}
|
|
47
|
-
{...provided.dragHandleProps}
|
|
48
|
-
width="16.5rem"
|
|
49
|
-
borderRadius="0.25rem"
|
|
50
|
-
borderWidth="0.063rem"
|
|
51
|
-
background={colors?.background?.[500]}
|
|
52
|
-
border={`0.1rem solid ${colors.gray?.[200]}`}
|
|
53
|
-
p={2}
|
|
54
|
-
mt={3}
|
|
55
|
-
>
|
|
56
|
-
<VStack
|
|
57
|
-
align="start"
|
|
58
|
-
spacing={2}
|
|
59
|
-
fontSize="0.875rem"
|
|
60
|
-
color={colors?.gray?.[700]}
|
|
61
|
-
overflow={"none"}
|
|
62
|
-
>
|
|
63
|
-
{visibleKeys.map((key) => (
|
|
64
|
-
<AccountRow
|
|
65
|
-
key={key}
|
|
66
|
-
label={key.replace(/\b\w/g, (c) => c.toUpperCase())}
|
|
67
|
-
value={account[key] as string}
|
|
68
|
-
/>
|
|
69
|
-
))}
|
|
70
|
-
<Collapse
|
|
71
|
-
in={showMore && account.details !== undefined}
|
|
72
|
-
animateOpacity
|
|
73
|
-
>
|
|
74
|
-
<Text pt={2}>{account.details}</Text>
|
|
75
|
-
</Collapse>
|
|
76
|
-
{keys.length > 4 && (
|
|
77
|
-
<Flex justify="space-between" w="full" pt={2} alignItems="center">
|
|
78
|
-
<Text
|
|
79
|
-
color={colors?.primary?.[500]}
|
|
80
|
-
fontSize="sm"
|
|
81
|
-
fontWeight="medium"
|
|
82
|
-
cursor="pointer"
|
|
83
|
-
onClick={() => setShowMore(!showMore)}
|
|
84
|
-
display={"flex"}
|
|
85
|
-
alignItems={"center"}
|
|
86
|
-
gap={2}
|
|
87
|
-
>
|
|
88
|
-
Show {showMore ? "less" : "more"}{" "}
|
|
89
|
-
{showMore ? (
|
|
90
|
-
<ChevronUp size={14} />
|
|
91
|
-
) : (
|
|
92
|
-
<ChevronDown size={14} />
|
|
93
|
-
)}
|
|
94
|
-
</Text>
|
|
95
|
-
<Spacer />
|
|
96
|
-
<HStack spacing={2}>
|
|
97
|
-
<Tooltip label="Delete">
|
|
98
|
-
<Trash2
|
|
99
|
-
size={16}
|
|
100
|
-
color={colors?.red?.[600]}
|
|
101
|
-
onClick={() => onDelete?.(account)}
|
|
102
|
-
/>
|
|
103
|
-
</Tooltip>
|
|
104
|
-
<Tooltip label="Open">
|
|
105
|
-
<ExternalLink
|
|
106
|
-
size={16}
|
|
107
|
-
color={colors?.blue?.[600]}
|
|
108
|
-
onClick={() => onOpen?.(account)}
|
|
109
|
-
/>
|
|
110
|
-
</Tooltip>
|
|
111
|
-
</HStack>
|
|
112
|
-
</Flex>
|
|
113
|
-
)}
|
|
114
|
-
</VStack>
|
|
115
|
-
</Box>
|
|
116
|
-
)}
|
|
117
|
-
</Draggable>
|
|
118
|
-
);
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
export default AccountCard;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
Flex,
|
|
4
|
-
Text,
|
|
5
|
-
Tooltip,
|
|
6
|
-
} from "@chakra-ui/react";
|
|
7
|
-
import { useCustomTheme } from "../../Theme/useCustomTheme";
|
|
8
|
-
|
|
9
|
-
const AccountRow = ({ label, value }: { label: string; value: string }) => {
|
|
10
|
-
const { colors } = useCustomTheme();
|
|
11
|
-
return (
|
|
12
|
-
<Flex w="full">
|
|
13
|
-
<Tooltip label={label} isDisabled={label.length <= 15} hasArrow>
|
|
14
|
-
<Text color={colors?.text?.[700]} w="45%" noOfLines={1}>
|
|
15
|
-
{label}
|
|
16
|
-
</Text>
|
|
17
|
-
</Tooltip>
|
|
18
|
-
<Text w="0.625rem" textAlign="center">
|
|
19
|
-
:
|
|
20
|
-
</Text>
|
|
21
|
-
<Tooltip label={value} isDisabled={value.length <= 17} hasArrow>
|
|
22
|
-
<Text
|
|
23
|
-
fontWeight={600}
|
|
24
|
-
color={colors?.text?.[800]}
|
|
25
|
-
w="calc(55% - 0.625rem)"
|
|
26
|
-
noOfLines={1}
|
|
27
|
-
>
|
|
28
|
-
{value}
|
|
29
|
-
</Text>
|
|
30
|
-
</Tooltip>
|
|
31
|
-
</Flex>
|
|
32
|
-
);
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export default AccountRow;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Box, Text } from '@chakra-ui/react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import Select from '../../Select/Select';
|
|
4
|
-
import { CirclePlus, SquarePen } from 'lucide-react';
|
|
5
|
-
import VeritcalDivider from '../../Divider/Divider';
|
|
6
|
-
import { useCustomTheme } from '../../../Theme/useCustomTheme';
|
|
7
|
-
import { OptionProp } from '../../Select/SelectProps';
|
|
8
|
-
|
|
9
|
-
const KanbanActions = ({options, onSelectChange, onEdit, onCreate}: {
|
|
10
|
-
options: OptionProp[];
|
|
11
|
-
onSelectChange?: (option?: OptionProp) => void;
|
|
12
|
-
onEdit?: () => void;
|
|
13
|
-
onCreate?: () => void;
|
|
14
|
-
}) => {
|
|
15
|
-
const { colors } = useCustomTheme();
|
|
16
|
-
return (
|
|
17
|
-
<Box display={"flex"} alignItems="center" gap="0.625rem">
|
|
18
|
-
<Select
|
|
19
|
-
options={options}
|
|
20
|
-
placeholder="Filter by Status"
|
|
21
|
-
width="12.5rem"
|
|
22
|
-
onChange={(option) => onSelectChange && onSelectChange(option)}
|
|
23
|
-
/>
|
|
24
|
-
<Box display={"flex"} alignItems="center" gap="0.375rem" cursor="pointer" fontSize={14} onClick={() => onEdit?.()}>
|
|
25
|
-
<SquarePen size={20} color={colors?.text?.[500]} />
|
|
26
|
-
<Text color={colors?.secondary?.[500]}>Edit Layout</Text>
|
|
27
|
-
</Box>
|
|
28
|
-
<VeritcalDivider />
|
|
29
|
-
<Box display={"flex"} alignItems="center" gap="0.375rem" cursor="pointer" fontSize={14} onClick={() => onCreate?.()}>
|
|
30
|
-
<CirclePlus size={20} color={colors?.text?.[500]} />
|
|
31
|
-
<Text color={colors?.secondary?.[500]}>Create New</Text>
|
|
32
|
-
</Box>
|
|
33
|
-
</Box>
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export default KanbanActions;
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import {
|
|
3
|
-
Box,
|
|
4
|
-
Flex,
|
|
5
|
-
Text,
|
|
6
|
-
Skeleton,
|
|
7
|
-
SkeletonText,
|
|
8
|
-
} from "@chakra-ui/react";
|
|
9
|
-
import {
|
|
10
|
-
DragDropContext,
|
|
11
|
-
Droppable,
|
|
12
|
-
DropResult,
|
|
13
|
-
} from "@hello-pangea/dnd";
|
|
14
|
-
import { Trash2 } from "lucide-react";
|
|
15
|
-
import { useCustomTheme } from "../../Theme/useCustomTheme";
|
|
16
|
-
import AccountCard from "./AccountCard";
|
|
17
|
-
import { ColumnType, KanbanBoardProps } from "./KanbanBoardProps";
|
|
18
|
-
|
|
19
|
-
const KanbanBoard = ({
|
|
20
|
-
data,
|
|
21
|
-
onDrag,
|
|
22
|
-
onDelete,
|
|
23
|
-
onOpen,
|
|
24
|
-
onColumnDelete,
|
|
25
|
-
isLoading = false,
|
|
26
|
-
}: KanbanBoardProps) => {
|
|
27
|
-
const { colors } = useCustomTheme();
|
|
28
|
-
const [columns, setColumns] = useState<Record<string, ColumnType>>(data);
|
|
29
|
-
|
|
30
|
-
const onDragEnd = (result: DropResult) => {
|
|
31
|
-
const { source, destination } = result;
|
|
32
|
-
if (!destination) return;
|
|
33
|
-
|
|
34
|
-
const sourceCol = columns[source.droppableId];
|
|
35
|
-
const destCol = columns[destination.droppableId];
|
|
36
|
-
const draggedItem = sourceCol.items[source.index];
|
|
37
|
-
|
|
38
|
-
if (!draggedItem) return;
|
|
39
|
-
|
|
40
|
-
if (source.droppableId === destination.droppableId) {
|
|
41
|
-
const copiedItems = [...sourceCol.items];
|
|
42
|
-
copiedItems.splice(source.index, 1);
|
|
43
|
-
copiedItems.splice(destination.index, 0, draggedItem);
|
|
44
|
-
const newCol = {
|
|
45
|
-
...columns,
|
|
46
|
-
[source.droppableId]: {
|
|
47
|
-
...sourceCol,
|
|
48
|
-
items: copiedItems,
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
setColumns(newCol);
|
|
52
|
-
} else {
|
|
53
|
-
const sourceItems = [...sourceCol.items];
|
|
54
|
-
const destItems = [...destCol.items];
|
|
55
|
-
sourceItems.splice(source.index, 1);
|
|
56
|
-
destItems.splice(destination.index, 0, draggedItem);
|
|
57
|
-
|
|
58
|
-
const updatedCols = {
|
|
59
|
-
...columns,
|
|
60
|
-
[source.droppableId]: { ...sourceCol, items: sourceItems },
|
|
61
|
-
[destination.droppableId]: { ...destCol, items: destItems },
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
setColumns(updatedCols);
|
|
65
|
-
onDrag?.({
|
|
66
|
-
from: source.droppableId,
|
|
67
|
-
to: destination.droppableId,
|
|
68
|
-
item: draggedItem,
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
const handleColumnDelete = (colId: string) => {
|
|
74
|
-
const columnIds = columns[colId]?.items?.map((item) => item.id) || [];
|
|
75
|
-
onColumnDelete?.(columnIds);
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
return (
|
|
79
|
-
<DragDropContext onDragEnd={onDragEnd}>
|
|
80
|
-
<Flex
|
|
81
|
-
gap={4}
|
|
82
|
-
p={4}
|
|
83
|
-
bg={colors?.gray?.[200]}
|
|
84
|
-
minH="100vh"
|
|
85
|
-
overflowX="auto"
|
|
86
|
-
maxWidth="100vw"
|
|
87
|
-
>
|
|
88
|
-
{isLoading ? (
|
|
89
|
-
Array.from({ length: 5 })?.map((_, idx) => (
|
|
90
|
-
<Box
|
|
91
|
-
key={idx}
|
|
92
|
-
width="17.5rem"
|
|
93
|
-
p={4}
|
|
94
|
-
borderRadius="0.5rem"
|
|
95
|
-
bg={colors?.background?.[100]}
|
|
96
|
-
border={`0.125rem solid ${colors?.gray?.[200]}`}
|
|
97
|
-
flexShrink={0}
|
|
98
|
-
>
|
|
99
|
-
<Skeleton height="2.75rem" mb={4} borderRadius="0.25rem" />
|
|
100
|
-
<SkeletonText mt="4" noOfLines={5} spacing="4" />
|
|
101
|
-
</Box>
|
|
102
|
-
))
|
|
103
|
-
) : (
|
|
104
|
-
Object.entries(columns)?.map(([colId, column]) => (
|
|
105
|
-
<Droppable droppableId={colId.toString()} key={colId}>
|
|
106
|
-
{(provided, snapshot) => (
|
|
107
|
-
<Box
|
|
108
|
-
ref={provided.innerRef}
|
|
109
|
-
{...provided.droppableProps}
|
|
110
|
-
width="17.5rem"
|
|
111
|
-
opacity={1}
|
|
112
|
-
borderRadius="0.5rem"
|
|
113
|
-
borderWidth="0.063rem"
|
|
114
|
-
background={
|
|
115
|
-
snapshot.isDraggingOver
|
|
116
|
-
? colors?.blue?.[50]
|
|
117
|
-
: colors?.background?.[100]
|
|
118
|
-
}
|
|
119
|
-
border={`${snapshot.isDraggingOver
|
|
120
|
-
? "0.5px dashed" + colors?.blue?.[500]
|
|
121
|
-
: "0.125rem solid" + colors.gray?.[200]
|
|
122
|
-
}`}
|
|
123
|
-
display="flex"
|
|
124
|
-
flexDirection="column"
|
|
125
|
-
flexShrink={0}
|
|
126
|
-
>
|
|
127
|
-
<Flex
|
|
128
|
-
width="16.5rem"
|
|
129
|
-
height="2.75rem"
|
|
130
|
-
borderRadius="0.25rem"
|
|
131
|
-
borderLeft="0.188rem solid"
|
|
132
|
-
borderLeftColor={column.color ?? colors?.primary?.[500]}
|
|
133
|
-
background={colors?.gray?.[100]}
|
|
134
|
-
align="center"
|
|
135
|
-
px={2}
|
|
136
|
-
mb={3}
|
|
137
|
-
flexShrink={0}
|
|
138
|
-
m={2}
|
|
139
|
-
justifyContent="space-between"
|
|
140
|
-
>
|
|
141
|
-
<Text
|
|
142
|
-
fontWeight="600"
|
|
143
|
-
fontSize="1rem"
|
|
144
|
-
color={colors?.text?.[700]}
|
|
145
|
-
>
|
|
146
|
-
{column.title}
|
|
147
|
-
</Text>
|
|
148
|
-
<Box
|
|
149
|
-
as={Trash2}
|
|
150
|
-
size={16}
|
|
151
|
-
cursor="pointer"
|
|
152
|
-
color={colors?.text?.[600]}
|
|
153
|
-
_hover={{ color: colors?.red?.[600] }}
|
|
154
|
-
onClick={() => handleColumnDelete(colId)}
|
|
155
|
-
/>
|
|
156
|
-
</Flex>
|
|
157
|
-
<Box
|
|
158
|
-
px={2}
|
|
159
|
-
pb={2}
|
|
160
|
-
overflowY="auto"
|
|
161
|
-
maxHeight="calc(100vh - 7rem)"
|
|
162
|
-
overflowX="hidden"
|
|
163
|
-
>
|
|
164
|
-
{column.items?.map((account, index) => (
|
|
165
|
-
<AccountCard
|
|
166
|
-
key={account.id}
|
|
167
|
-
account={account}
|
|
168
|
-
index={index}
|
|
169
|
-
onDelete={onDelete}
|
|
170
|
-
onOpen={onOpen}
|
|
171
|
-
/>
|
|
172
|
-
))}
|
|
173
|
-
{provided.placeholder}
|
|
174
|
-
</Box>
|
|
175
|
-
</Box>
|
|
176
|
-
)}
|
|
177
|
-
</Droppable>
|
|
178
|
-
))
|
|
179
|
-
)}
|
|
180
|
-
</Flex>
|
|
181
|
-
</DragDropContext>
|
|
182
|
-
);
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
export default KanbanBoard;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export type Account = {
|
|
3
|
-
id: string;
|
|
4
|
-
rating: string;
|
|
5
|
-
name: string;
|
|
6
|
-
owner: string;
|
|
7
|
-
site: string;
|
|
8
|
-
details?: string;
|
|
9
|
-
[key: string]: string | undefined;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type ColumnType = {
|
|
13
|
-
id: string;
|
|
14
|
-
title: string;
|
|
15
|
-
color: string;
|
|
16
|
-
items: Account[];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export type KanbanBoardProps = {
|
|
20
|
-
data: Record<string, ColumnType>;
|
|
21
|
-
onDelete?: (account: Account) => void;
|
|
22
|
-
onOpen?: (account: Account) => void;
|
|
23
|
-
onColumnDelete?: (colId: (string | number)[]) => void;
|
|
24
|
-
onDrag?: ({
|
|
25
|
-
from,
|
|
26
|
-
to,
|
|
27
|
-
item,
|
|
28
|
-
}: {
|
|
29
|
-
from: string;
|
|
30
|
-
to: string;
|
|
31
|
-
item: Account;
|
|
32
|
-
}) => void;
|
|
33
|
-
isLoading?: boolean;
|
|
34
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// import React, { useState } from 'react';
|
|
2
|
-
// import { StoryFn, Meta } from '@storybook/react/types-6-0';
|
|
3
|
-
// import { Button } from "@chakra-ui/react";
|
|
4
|
-
// import Loading from './Loading';
|
|
5
|
-
// import { LoadingProps } from './LoadingProps';
|
|
6
|
-
|
|
7
|
-
// export default {
|
|
8
|
-
// title: 'Components/Loading/Loading',
|
|
9
|
-
// component: Loading,
|
|
10
|
-
// } as Meta;
|
|
11
|
-
|
|
12
|
-
// const Template: StoryFn<LoadingProps> = (args) => {
|
|
13
|
-
// const [isLoading, setIsLoading] = useState(false);
|
|
14
|
-
// return (
|
|
15
|
-
// <div>
|
|
16
|
-
// <Button onClick={() => setIsLoading(!isLoading)}>Toggle Loading</Button>
|
|
17
|
-
// <Loading {...args} isLoading={isLoading} />
|
|
18
|
-
// </div>
|
|
19
|
-
// );
|
|
20
|
-
// };
|
|
21
|
-
|
|
22
|
-
// export const Interactive = Template.bind({});
|
|
23
|
-
// Interactive.args = {
|
|
24
|
-
// text: 'Loading...',
|
|
25
|
-
// };
|
|
26
|
-
export {};
|