crowui-pr 1.1.0
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/AGENTS.md +173 -0
- package/LICENSE +21 -0
- package/README.md +53 -0
- package/dist/Accordion/AccordionGroup.d.ts +12 -0
- package/dist/Accordion/AccordionGroup.d.ts.map +1 -0
- package/dist/Accordion/AccordionItem.d.ts +22 -0
- package/dist/Accordion/AccordionItem.d.ts.map +1 -0
- package/dist/Accordion/context.d.ts +8 -0
- package/dist/Accordion/context.d.ts.map +1 -0
- package/dist/Accordion/index.cjs +1 -0
- package/dist/Accordion/index.d.ts +3 -0
- package/dist/Accordion/index.d.ts.map +1 -0
- package/dist/Accordion/index.mjs +6 -0
- package/dist/AccordionItem-BIMhzGxk.js +107 -0
- package/dist/AccordionItem-DrV8fI-p.cjs +1 -0
- package/dist/Alert/index.cjs +1 -0
- package/dist/Alert/index.d.ts +28 -0
- package/dist/Alert/index.d.ts.map +1 -0
- package/dist/Alert/index.mjs +166 -0
- package/dist/Alert/variants.d.ts +14 -0
- package/dist/Alert/variants.d.ts.map +1 -0
- package/dist/Avatar/Group.d.ts +6 -0
- package/dist/Avatar/Group.d.ts.map +1 -0
- package/dist/Avatar/index.cjs +1 -0
- package/dist/Avatar/index.d.ts +8 -0
- package/dist/Avatar/index.d.ts.map +1 -0
- package/dist/Avatar/index.mjs +139 -0
- package/dist/Avatar/types.d.ts +32 -0
- package/dist/Avatar/types.d.ts.map +1 -0
- package/dist/Avatar/variants.d.ts +7 -0
- package/dist/Avatar/variants.d.ts.map +1 -0
- package/dist/Badge/index.cjs +1 -0
- package/dist/Badge/index.d.ts +31 -0
- package/dist/Badge/index.d.ts.map +1 -0
- package/dist/Badge/index.mjs +74 -0
- package/dist/Banner/index.cjs +1 -0
- package/dist/Banner/index.d.ts +5 -0
- package/dist/Banner/index.d.ts.map +1 -0
- package/dist/Banner/index.mjs +140 -0
- package/dist/Banner/types.d.ts +26 -0
- package/dist/Banner/types.d.ts.map +1 -0
- package/dist/Banner/variants.d.ts +12 -0
- package/dist/Banner/variants.d.ts.map +1 -0
- package/dist/Breadcrumb/index.cjs +1 -0
- package/dist/Breadcrumb/index.d.ts +5 -0
- package/dist/Breadcrumb/index.d.ts.map +1 -0
- package/dist/Breadcrumb/index.mjs +35 -0
- package/dist/Breadcrumb/types.d.ts +24 -0
- package/dist/Breadcrumb/types.d.ts.map +1 -0
- package/dist/Button/index.cjs +1 -0
- package/dist/Button/index.d.ts +24 -0
- package/dist/Button/index.d.ts.map +1 -0
- package/dist/Button/index.mjs +140 -0
- package/dist/Button/variants.d.ts +5 -0
- package/dist/Button/variants.d.ts.map +1 -0
- package/dist/Card/Header.d.ts +5 -0
- package/dist/Card/Header.d.ts.map +1 -0
- package/dist/Card/constants.d.ts +6 -0
- package/dist/Card/constants.d.ts.map +1 -0
- package/dist/Card/index.cjs +1 -0
- package/dist/Card/index.d.ts +6 -0
- package/dist/Card/index.d.ts.map +1 -0
- package/dist/Card/index.mjs +78 -0
- package/dist/Card/types.d.ts +38 -0
- package/dist/Card/types.d.ts.map +1 -0
- package/dist/Carousel/constants.d.ts +3 -0
- package/dist/Carousel/constants.d.ts.map +1 -0
- package/dist/Carousel/index.cjs +1 -0
- package/dist/Carousel/index.d.ts +5 -0
- package/dist/Carousel/index.d.ts.map +1 -0
- package/dist/Carousel/index.mjs +126 -0
- package/dist/Carousel/types.d.ts +30 -0
- package/dist/Carousel/types.d.ts.map +1 -0
- package/dist/Chip/index.cjs +1 -0
- package/dist/Chip/index.d.ts +31 -0
- package/dist/Chip/index.d.ts.map +1 -0
- package/dist/Chip/index.mjs +149 -0
- package/dist/Collapse/index.cjs +1 -0
- package/dist/Collapse/index.d.ts +5 -0
- package/dist/Collapse/index.d.ts.map +1 -0
- package/dist/Collapse/index.mjs +74 -0
- package/dist/Collapse/types.d.ts +22 -0
- package/dist/Collapse/types.d.ts.map +1 -0
- package/dist/CommandPalette/constants.d.ts +6 -0
- package/dist/CommandPalette/constants.d.ts.map +1 -0
- package/dist/CommandPalette/index.cjs +1 -0
- package/dist/CommandPalette/index.d.ts +6 -0
- package/dist/CommandPalette/index.d.ts.map +1 -0
- package/dist/CommandPalette/index.mjs +216 -0
- package/dist/CommandPalette/types.d.ts +44 -0
- package/dist/CommandPalette/types.d.ts.map +1 -0
- package/dist/CommandPalette/variants.d.ts +4 -0
- package/dist/CommandPalette/variants.d.ts.map +1 -0
- package/dist/DateAndTimePickerFooter-Cf1P9EiU.js +74 -0
- package/dist/DateAndTimePickerFooter-qv4keBrK.cjs +1 -0
- package/dist/Divider/index.cjs +1 -0
- package/dist/Divider/index.d.ts +15 -0
- package/dist/Divider/index.d.ts.map +1 -0
- package/dist/Divider/index.mjs +38 -0
- package/dist/Drawer/index.cjs +1 -0
- package/dist/Drawer/index.d.ts +52 -0
- package/dist/Drawer/index.d.ts.map +1 -0
- package/dist/Drawer/index.mjs +200 -0
- package/dist/EmptyState/index.cjs +1 -0
- package/dist/EmptyState/index.d.ts +6 -0
- package/dist/EmptyState/index.d.ts.map +1 -0
- package/dist/EmptyState/index.mjs +84 -0
- package/dist/EmptyState/types.d.ts +16 -0
- package/dist/EmptyState/types.d.ts.map +1 -0
- package/dist/EmptyState/variants.d.ts +8 -0
- package/dist/EmptyState/variants.d.ts.map +1 -0
- package/dist/FieldBottomInfo-C0Di4WWj.cjs +1 -0
- package/dist/FieldBottomInfo-CA_chf0O.js +76 -0
- package/dist/Form/Checkbox/index.cjs +1 -0
- package/dist/Form/Checkbox/index.d.ts +8 -0
- package/dist/Form/Checkbox/index.d.ts.map +1 -0
- package/dist/Form/Checkbox/index.mjs +57 -0
- package/dist/Form/Common/DateAndTimePickerFooter/DateAndTimePickerFooter.d.ts +10 -0
- package/dist/Form/Common/DateAndTimePickerFooter/DateAndTimePickerFooter.d.ts.map +1 -0
- package/dist/Form/Common/FieldBottomInfo/FieldBottomInfo.d.ts +11 -0
- package/dist/Form/Common/FieldBottomInfo/FieldBottomInfo.d.ts.map +1 -0
- package/dist/Form/Common/FieldLabel/FieldLabel.d.ts +14 -0
- package/dist/Form/Common/FieldLabel/FieldLabel.d.ts.map +1 -0
- package/dist/Form/Datepicker/Body.d.ts +4 -0
- package/dist/Form/Datepicker/Body.d.ts.map +1 -0
- package/dist/Form/Datepicker/Days.d.ts +4 -0
- package/dist/Form/Datepicker/Days.d.ts.map +1 -0
- package/dist/Form/Datepicker/Footer.d.ts +4 -0
- package/dist/Form/Datepicker/Footer.d.ts.map +1 -0
- package/dist/Form/Datepicker/Header.d.ts +4 -0
- package/dist/Form/Datepicker/Header.d.ts.map +1 -0
- package/dist/Form/Datepicker/Months.d.ts +4 -0
- package/dist/Form/Datepicker/Months.d.ts.map +1 -0
- package/dist/Form/Datepicker/Years.d.ts +4 -0
- package/dist/Form/Datepicker/Years.d.ts.map +1 -0
- package/dist/Form/Datepicker/context.d.ts +5 -0
- package/dist/Form/Datepicker/context.d.ts.map +1 -0
- package/dist/Form/Datepicker/index.cjs +1 -0
- package/dist/Form/Datepicker/index.d.ts +5 -0
- package/dist/Form/Datepicker/index.d.ts.map +1 -0
- package/dist/Form/Datepicker/index.mjs +1895 -0
- package/dist/Form/Datepicker/types.d.ts +80 -0
- package/dist/Form/Datepicker/types.d.ts.map +1 -0
- package/dist/Form/Datepicker/utils.d.ts +10 -0
- package/dist/Form/Datepicker/utils.d.ts.map +1 -0
- package/dist/Form/FileUploader/Input/FileInput.d.ts +8 -0
- package/dist/Form/FileUploader/Input/FileInput.d.ts.map +1 -0
- package/dist/Form/FileUploader/Input/FileInputIcon.d.ts +4 -0
- package/dist/Form/FileUploader/Input/FileInputIcon.d.ts.map +1 -0
- package/dist/Form/FileUploader/Preview/FilePreview.d.ts +11 -0
- package/dist/Form/FileUploader/Preview/FilePreview.d.ts.map +1 -0
- package/dist/Form/FileUploader/Preview/MultipleMode/Grid/GridTypePreview.d.ts +6 -0
- package/dist/Form/FileUploader/Preview/MultipleMode/Grid/GridTypePreview.d.ts.map +1 -0
- package/dist/Form/FileUploader/Preview/MultipleMode/List/ListTypePreview.d.ts +6 -0
- package/dist/Form/FileUploader/Preview/MultipleMode/List/ListTypePreview.d.ts.map +1 -0
- package/dist/Form/FileUploader/Preview/MultipleMode/MultipleModePreview.d.ts +6 -0
- package/dist/Form/FileUploader/Preview/MultipleMode/MultipleModePreview.d.ts.map +1 -0
- package/dist/Form/FileUploader/Preview/SingleMode/PreviewTitle.d.ts +14 -0
- package/dist/Form/FileUploader/Preview/SingleMode/PreviewTitle.d.ts.map +1 -0
- package/dist/Form/FileUploader/Preview/SingleMode/SingleModePreview.d.ts +6 -0
- package/dist/Form/FileUploader/Preview/SingleMode/SingleModePreview.d.ts.map +1 -0
- package/dist/Form/FileUploader/Preview/types.d.ts +5 -0
- package/dist/Form/FileUploader/Preview/types.d.ts.map +1 -0
- package/dist/Form/FileUploader/Preview/utils.d.ts +4 -0
- package/dist/Form/FileUploader/Preview/utils.d.ts.map +1 -0
- package/dist/Form/FileUploader/constants.d.ts +14 -0
- package/dist/Form/FileUploader/constants.d.ts.map +1 -0
- package/dist/Form/FileUploader/index.cjs +1 -0
- package/dist/Form/FileUploader/index.d.ts +6 -0
- package/dist/Form/FileUploader/index.d.ts.map +1 -0
- package/dist/Form/FileUploader/index.mjs +687 -0
- package/dist/Form/FileUploader/types.d.ts +61 -0
- package/dist/Form/FileUploader/types.d.ts.map +1 -0
- package/dist/Form/Input/index.cjs +1 -0
- package/dist/Form/Input/index.d.ts +21 -0
- package/dist/Form/Input/index.d.ts.map +1 -0
- package/dist/Form/Input/index.mjs +10 -0
- package/dist/Form/OtpInput/index.cjs +1 -0
- package/dist/Form/OtpInput/index.d.ts +19 -0
- package/dist/Form/OtpInput/index.d.ts.map +1 -0
- package/dist/Form/OtpInput/index.mjs +97 -0
- package/dist/Form/RadioButton/index.cjs +1 -0
- package/dist/Form/RadioButton/index.d.ts +6 -0
- package/dist/Form/RadioButton/index.d.ts.map +1 -0
- package/dist/Form/RadioButton/index.mjs +27 -0
- package/dist/Form/RangeInput/Thumb.d.ts +11 -0
- package/dist/Form/RangeInput/Thumb.d.ts.map +1 -0
- package/dist/Form/RangeInput/constants.d.ts +11 -0
- package/dist/Form/RangeInput/constants.d.ts.map +1 -0
- package/dist/Form/RangeInput/index.cjs +1 -0
- package/dist/Form/RangeInput/index.d.ts +5 -0
- package/dist/Form/RangeInput/index.d.ts.map +1 -0
- package/dist/Form/RangeInput/index.mjs +246 -0
- package/dist/Form/RangeInput/types.d.ts +32 -0
- package/dist/Form/RangeInput/types.d.ts.map +1 -0
- package/dist/Form/Select/OptionItem.d.ts +9 -0
- package/dist/Form/Select/OptionItem.d.ts.map +1 -0
- package/dist/Form/Select/Options.d.ts +4 -0
- package/dist/Form/Select/Options.d.ts.map +1 -0
- package/dist/Form/Select/index.cjs +1 -0
- package/dist/Form/Select/index.d.ts +4 -0
- package/dist/Form/Select/index.d.ts.map +1 -0
- package/dist/Form/Select/index.mjs +234 -0
- package/dist/Form/Select/types.d.ts +46 -0
- package/dist/Form/Select/types.d.ts.map +1 -0
- package/dist/Form/Switch/index.cjs +1 -0
- package/dist/Form/Switch/index.d.ts +24 -0
- package/dist/Form/Switch/index.d.ts.map +1 -0
- package/dist/Form/Switch/index.mjs +85 -0
- package/dist/Form/Textarea/index.cjs +1 -0
- package/dist/Form/Textarea/index.d.ts +8 -0
- package/dist/Form/Textarea/index.d.ts.map +1 -0
- package/dist/Form/Textarea/index.mjs +36 -0
- package/dist/Form/Timepicker/Body.d.ts +4 -0
- package/dist/Form/Timepicker/Body.d.ts.map +1 -0
- package/dist/Form/Timepicker/Footer.d.ts +4 -0
- package/dist/Form/Timepicker/Footer.d.ts.map +1 -0
- package/dist/Form/Timepicker/GradientOverlay.d.ts +7 -0
- package/dist/Form/Timepicker/GradientOverlay.d.ts.map +1 -0
- package/dist/Form/Timepicker/ScrollWheel.d.ts +5 -0
- package/dist/Form/Timepicker/ScrollWheel.d.ts.map +1 -0
- package/dist/Form/Timepicker/TimeInput.d.ts +10 -0
- package/dist/Form/Timepicker/TimeInput.d.ts.map +1 -0
- package/dist/Form/Timepicker/TimeInputs.d.ts +5 -0
- package/dist/Form/Timepicker/TimeInputs.d.ts.map +1 -0
- package/dist/Form/Timepicker/TimeScrollWheels.d.ts +5 -0
- package/dist/Form/Timepicker/TimeScrollWheels.d.ts.map +1 -0
- package/dist/Form/Timepicker/constants.d.ts +2 -0
- package/dist/Form/Timepicker/constants.d.ts.map +1 -0
- package/dist/Form/Timepicker/context.d.ts +12 -0
- package/dist/Form/Timepicker/context.d.ts.map +1 -0
- package/dist/Form/Timepicker/hooks/useCaret.d.ts +5 -0
- package/dist/Form/Timepicker/hooks/useCaret.d.ts.map +1 -0
- package/dist/Form/Timepicker/hooks/useScrollWheel.d.ts +5 -0
- package/dist/Form/Timepicker/hooks/useScrollWheel.d.ts.map +1 -0
- package/dist/Form/Timepicker/index.cjs +1 -0
- package/dist/Form/Timepicker/index.d.ts +5 -0
- package/dist/Form/Timepicker/index.d.ts.map +1 -0
- package/dist/Form/Timepicker/index.mjs +369 -0
- package/dist/Form/Timepicker/types.d.ts +49 -0
- package/dist/Form/Timepicker/types.d.ts.map +1 -0
- package/dist/Form/Timepicker/utils.d.ts +10 -0
- package/dist/Form/Timepicker/utils.d.ts.map +1 -0
- package/dist/Form/Wrappers/PickerWrapper/PickerWrapper.d.ts +5 -0
- package/dist/Form/Wrappers/PickerWrapper/PickerWrapper.d.ts.map +1 -0
- package/dist/Form/Wrappers/PickerWrapper/contexts.d.ts +7 -0
- package/dist/Form/Wrappers/PickerWrapper/contexts.d.ts.map +1 -0
- package/dist/Form/Wrappers/PickerWrapper/type.d.ts +42 -0
- package/dist/Form/Wrappers/PickerWrapper/type.d.ts.map +1 -0
- package/dist/Form/Wrappers/RadioCheckboxWrapper/RadioCheckboxWrapper.d.ts +34 -0
- package/dist/Form/Wrappers/RadioCheckboxWrapper/RadioCheckboxWrapper.d.ts.map +1 -0
- package/dist/Form/Wrappers/TextFieldWrapper/TextFieldWrapper.d.ts +29 -0
- package/dist/Form/Wrappers/TextFieldWrapper/TextFieldWrapper.d.ts.map +1 -0
- package/dist/Form/types/DateAndTimePicker.d.ts +26 -0
- package/dist/Form/types/DateAndTimePicker.d.ts.map +1 -0
- package/dist/IconArrowDown2-7ddwV5IE.js +22 -0
- package/dist/IconArrowDown2-C1dLVveG.cjs +1 -0
- package/dist/IconArrowLeft2-CNA3H0xY.cjs +1 -0
- package/dist/IconArrowLeft2-cxcPyDqS.js +22 -0
- package/dist/IconArrowRight2-BoXg0Gkw.js +25 -0
- package/dist/IconArrowRight2-CF_bdH81.cjs +1 -0
- package/dist/IconCheckmark-DDfqVvnj.js +22 -0
- package/dist/IconCheckmark-e4F7_KcG.cjs +1 -0
- package/dist/IconCloseRemove-BPEWBqGA.js +22 -0
- package/dist/IconCloseRemove-DwCc4o3b.cjs +1 -0
- package/dist/IconEye-DATABBb3.js +31 -0
- package/dist/IconEye-sBk4Mro2.cjs +1 -0
- package/dist/IconInfoCircleBold-DnAAyuSP.cjs +1 -0
- package/dist/IconInfoCircleBold-GQlvRSek.js +62 -0
- package/dist/IconSearch-BeVs-gUu.cjs +1 -0
- package/dist/IconSearch-aShj2vmu.js +25 -0
- package/dist/List/ListItem.d.ts +5 -0
- package/dist/List/ListItem.d.ts.map +1 -0
- package/dist/List/index.cjs +1 -0
- package/dist/List/index.d.ts +11 -0
- package/dist/List/index.d.ts.map +1 -0
- package/dist/List/index.mjs +81 -0
- package/dist/List/types.d.ts +28 -0
- package/dist/List/types.d.ts.map +1 -0
- package/dist/List/variants.d.ts +8 -0
- package/dist/List/variants.d.ts.map +1 -0
- package/dist/Menu/MenuItem.d.ts +5 -0
- package/dist/Menu/MenuItem.d.ts.map +1 -0
- package/dist/Menu/constants.d.ts +5 -0
- package/dist/Menu/constants.d.ts.map +1 -0
- package/dist/Menu/context.d.ts +4 -0
- package/dist/Menu/context.d.ts.map +1 -0
- package/dist/Menu/index.cjs +1 -0
- package/dist/Menu/index.d.ts +10 -0
- package/dist/Menu/index.d.ts.map +1 -0
- package/dist/Menu/index.mjs +138 -0
- package/dist/Menu/types.d.ts +45 -0
- package/dist/Menu/types.d.ts.map +1 -0
- package/dist/Menu/variants.d.ts +5 -0
- package/dist/Menu/variants.d.ts.map +1 -0
- package/dist/Modal/index.cjs +1 -0
- package/dist/Modal/index.d.ts +25 -0
- package/dist/Modal/index.d.ts.map +1 -0
- package/dist/Modal/index.mjs +63 -0
- package/dist/Pagination/index.cjs +1 -0
- package/dist/Pagination/index.d.ts +21 -0
- package/dist/Pagination/index.d.ts.map +1 -0
- package/dist/Pagination/index.mjs +107 -0
- package/dist/Pagination/utils.d.ts +8 -0
- package/dist/Pagination/utils.d.ts.map +1 -0
- package/dist/PickerWrapper-B14f_Y-E.cjs +1 -0
- package/dist/PickerWrapper-BUpw1NG2.js +133 -0
- package/dist/Popconfirm/constants.d.ts +5 -0
- package/dist/Popconfirm/constants.d.ts.map +1 -0
- package/dist/Popconfirm/index.cjs +1 -0
- package/dist/Popconfirm/index.d.ts +6 -0
- package/dist/Popconfirm/index.d.ts.map +1 -0
- package/dist/Popconfirm/index.mjs +130 -0
- package/dist/Popconfirm/types.d.ts +29 -0
- package/dist/Popconfirm/types.d.ts.map +1 -0
- package/dist/Progress/Bar/index.cjs +1 -0
- package/dist/Progress/Bar/index.d.ts +24 -0
- package/dist/Progress/Bar/index.d.ts.map +1 -0
- package/dist/Progress/Bar/index.mjs +89 -0
- package/dist/Progress/Doughnut/index.cjs +1 -0
- package/dist/Progress/Doughnut/index.d.ts +5 -0
- package/dist/Progress/Doughnut/index.d.ts.map +1 -0
- package/dist/Progress/Doughnut/index.mjs +86 -0
- package/dist/Progress/Doughnut/types.d.ts +21 -0
- package/dist/Progress/Doughnut/types.d.ts.map +1 -0
- package/dist/RadioCheckboxWrapper-BBzu2Ip6.cjs +1 -0
- package/dist/RadioCheckboxWrapper-BvSgv_ra.js +67 -0
- package/dist/Rate/RateStar.d.ts +10 -0
- package/dist/Rate/RateStar.d.ts.map +1 -0
- package/dist/Rate/index.cjs +1 -0
- package/dist/Rate/index.d.ts +6 -0
- package/dist/Rate/index.d.ts.map +1 -0
- package/dist/Rate/index.mjs +159 -0
- package/dist/Rate/types.d.ts +25 -0
- package/dist/Rate/types.d.ts.map +1 -0
- package/dist/SegmentedControl/index.cjs +1 -0
- package/dist/SegmentedControl/index.d.ts +6 -0
- package/dist/SegmentedControl/index.d.ts.map +1 -0
- package/dist/SegmentedControl/index.mjs +132 -0
- package/dist/SegmentedControl/types.d.ts +34 -0
- package/dist/SegmentedControl/types.d.ts.map +1 -0
- package/dist/SegmentedControl/variants.d.ts +7 -0
- package/dist/SegmentedControl/variants.d.ts.map +1 -0
- package/dist/Sidebar/Items.d.ts +4 -0
- package/dist/Sidebar/Items.d.ts.map +1 -0
- package/dist/Sidebar/LogoImage.d.ts +4 -0
- package/dist/Sidebar/LogoImage.d.ts.map +1 -0
- package/dist/Sidebar/Profile.d.ts +3 -0
- package/dist/Sidebar/Profile.d.ts.map +1 -0
- package/dist/Sidebar/SearchInput.d.ts +8 -0
- package/dist/Sidebar/SearchInput.d.ts.map +1 -0
- package/dist/Sidebar/ToggleButton.d.ts +4 -0
- package/dist/Sidebar/ToggleButton.d.ts.map +1 -0
- package/dist/Sidebar/constants.d.ts +6 -0
- package/dist/Sidebar/constants.d.ts.map +1 -0
- package/dist/Sidebar/context.d.ts +4 -0
- package/dist/Sidebar/context.d.ts.map +1 -0
- package/dist/Sidebar/index.cjs +1 -0
- package/dist/Sidebar/index.d.ts +6 -0
- package/dist/Sidebar/index.d.ts.map +1 -0
- package/dist/Sidebar/index.mjs +408 -0
- package/dist/Sidebar/types.d.ts +78 -0
- package/dist/Sidebar/types.d.ts.map +1 -0
- package/dist/Sidebar/utils.d.ts +7 -0
- package/dist/Sidebar/utils.d.ts.map +1 -0
- package/dist/Sidebar/variants.d.ts +7 -0
- package/dist/Sidebar/variants.d.ts.map +1 -0
- package/dist/Skeleton/index.cjs +1 -0
- package/dist/Skeleton/index.d.ts +19 -0
- package/dist/Skeleton/index.d.ts.map +1 -0
- package/dist/Skeleton/index.mjs +107 -0
- package/dist/Skeleton/types.d.ts +13 -0
- package/dist/Skeleton/types.d.ts.map +1 -0
- package/dist/Slide-Df71VSzW.js +341 -0
- package/dist/Slide-idFbYC5G.cjs +1 -0
- package/dist/Slider/Navigation.d.ts +9 -0
- package/dist/Slider/Navigation.d.ts.map +1 -0
- package/dist/Slider/NavigationDot.d.ts +9 -0
- package/dist/Slider/NavigationDot.d.ts.map +1 -0
- package/dist/Slider/Slide.d.ts +4 -0
- package/dist/Slider/Slide.d.ts.map +1 -0
- package/dist/Slider/Slider.d.ts +6 -0
- package/dist/Slider/Slider.d.ts.map +1 -0
- package/dist/Slider/context.d.ts +9 -0
- package/dist/Slider/context.d.ts.map +1 -0
- package/dist/Slider/index.cjs +1 -0
- package/dist/Slider/index.d.ts +4 -0
- package/dist/Slider/index.d.ts.map +1 -0
- package/dist/Slider/index.mjs +6 -0
- package/dist/Slider/types.d.ts +41 -0
- package/dist/Slider/types.d.ts.map +1 -0
- package/dist/Spinner/index.cjs +1 -0
- package/dist/Spinner/index.d.ts +6 -0
- package/dist/Spinner/index.d.ts.map +1 -0
- package/dist/Spinner/index.mjs +34 -0
- package/dist/Spinner/types.d.ts +11 -0
- package/dist/Spinner/types.d.ts.map +1 -0
- package/dist/Spinner/variants.d.ts +4 -0
- package/dist/Spinner/variants.d.ts.map +1 -0
- package/dist/Step-BMPrqeg4.cjs +1 -0
- package/dist/Step-BU0ICl05.js +157 -0
- package/dist/Stepper/Horizontal/Connector.d.ts +7 -0
- package/dist/Stepper/Horizontal/Connector.d.ts.map +1 -0
- package/dist/Stepper/Horizontal/Step.d.ts +24 -0
- package/dist/Stepper/Horizontal/Step.d.ts.map +1 -0
- package/dist/Stepper/Horizontal/StepIcon.d.ts +11 -0
- package/dist/Stepper/Horizontal/StepIcon.d.ts.map +1 -0
- package/dist/Stepper/Horizontal/Stepper.d.ts +15 -0
- package/dist/Stepper/Horizontal/Stepper.d.ts.map +1 -0
- package/dist/Stepper/Horizontal/context.d.ts +10 -0
- package/dist/Stepper/Horizontal/context.d.ts.map +1 -0
- package/dist/Stepper/Horizontal/index.cjs +1 -0
- package/dist/Stepper/Horizontal/index.d.ts +3 -0
- package/dist/Stepper/Horizontal/index.d.ts.map +1 -0
- package/dist/Stepper/Horizontal/index.mjs +6 -0
- package/dist/Stepper/Horizontal/type.d.ts +4 -0
- package/dist/Stepper/Horizontal/type.d.ts.map +1 -0
- package/dist/Stepper/Horizontal/utils.d.ts +4 -0
- package/dist/Stepper/Horizontal/utils.d.ts.map +1 -0
- package/dist/Table/Cell.d.ts +13 -0
- package/dist/Table/Cell.d.ts.map +1 -0
- package/dist/Table/Header.d.ts +7 -0
- package/dist/Table/Header.d.ts.map +1 -0
- package/dist/Table/TBody.d.ts +7 -0
- package/dist/Table/TBody.d.ts.map +1 -0
- package/dist/Table/TBodyEmpty.d.ts +4 -0
- package/dist/Table/TBodyEmpty.d.ts.map +1 -0
- package/dist/Table/TBodyLoading.d.ts +4 -0
- package/dist/Table/TBodyLoading.d.ts.map +1 -0
- package/dist/Table/THead.d.ts +7 -0
- package/dist/Table/THead.d.ts.map +1 -0
- package/dist/Table/context.d.ts +13 -0
- package/dist/Table/context.d.ts.map +1 -0
- package/dist/Table/index.cjs +1 -0
- package/dist/Table/index.d.ts +6 -0
- package/dist/Table/index.d.ts.map +1 -0
- package/dist/Table/index.mjs +762 -0
- package/dist/Table/types.d.ts +104 -0
- package/dist/Table/types.d.ts.map +1 -0
- package/dist/Table/utils.d.ts +10 -0
- package/dist/Table/utils.d.ts.map +1 -0
- package/dist/Tabs/index.cjs +1 -0
- package/dist/Tabs/index.d.ts +29 -0
- package/dist/Tabs/index.d.ts.map +1 -0
- package/dist/Tabs/index.mjs +232 -0
- package/dist/TextFieldWrapper-BAK1sN1p.cjs +1 -0
- package/dist/TextFieldWrapper-ClTnwpWK.js +112 -0
- package/dist/ThemeProvider/context.d.ts +4 -0
- package/dist/ThemeProvider/context.d.ts.map +1 -0
- package/dist/ThemeProvider/index.cjs +1 -0
- package/dist/ThemeProvider/index.d.ts +18 -0
- package/dist/ThemeProvider/index.d.ts.map +1 -0
- package/dist/ThemeProvider/index.mjs +70 -0
- package/dist/ThemeProvider/types.d.ts +24 -0
- package/dist/ThemeProvider/types.d.ts.map +1 -0
- package/dist/Toast/Toast.d.ts +8 -0
- package/dist/Toast/Toast.d.ts.map +1 -0
- package/dist/Toast/ToastContainer.d.ts +8 -0
- package/dist/Toast/ToastContainer.d.ts.map +1 -0
- package/dist/Toast/context.d.ts +10 -0
- package/dist/Toast/context.d.ts.map +1 -0
- package/dist/Toast/index.cjs +1 -0
- package/dist/Toast/index.d.ts +12 -0
- package/dist/Toast/index.d.ts.map +1 -0
- package/dist/Toast/index.mjs +122 -0
- package/dist/Toast/types.d.ts +16 -0
- package/dist/Toast/types.d.ts.map +1 -0
- package/dist/Tooltip/Content.d.ts +9 -0
- package/dist/Tooltip/Content.d.ts.map +1 -0
- package/dist/Tooltip/index.cjs +1 -0
- package/dist/Tooltip/index.d.ts +31 -0
- package/dist/Tooltip/index.d.ts.map +1 -0
- package/dist/Tooltip/index.mjs +169 -0
- package/dist/Tree/constants.d.ts +5 -0
- package/dist/Tree/constants.d.ts.map +1 -0
- package/dist/Tree/context.d.ts +7 -0
- package/dist/Tree/context.d.ts.map +1 -0
- package/dist/Tree/index.cjs +1 -0
- package/dist/Tree/index.d.ts +6 -0
- package/dist/Tree/index.d.ts.map +1 -0
- package/dist/Tree/index.mjs +108 -0
- package/dist/Tree/types.d.ts +40 -0
- package/dist/Tree/types.d.ts.map +1 -0
- package/dist/assets/styles.css +1 -0
- package/dist/clsx-C11secjj.cjs +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/debounce-COFLRSUi.js +14 -0
- package/dist/debounce-tddZRTF5.cjs +1 -0
- package/dist/focusTrap-Br2GlOg-.cjs +1 -0
- package/dist/focusTrap-ikiXakRP.js +18 -0
- package/dist/index-1uytR4Ez.js +174 -0
- package/dist/index-Djgl0aBZ.cjs +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +96 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +146 -0
- package/dist/isBrowser-Bczqv-hd.cjs +1 -0
- package/dist/isBrowser-Bkqg1t1y.js +6 -0
- package/dist/omitObjects-CtiYo0hv.cjs +1 -0
- package/dist/omitObjects-CxFrrlkX.js +9 -0
- package/dist/useFlipPosition-B1mqg_YA.js +129 -0
- package/dist/useFlipPosition-BfF6YXxl.cjs +1 -0
- package/dist/useOutsideClick-CpfAm3CM.js +18 -0
- package/dist/useOutsideClick-DGu3KM8Q.cjs +1 -0
- package/package.json +363 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const p=require("./clsx-C11secjj.cjs"),d=require("./PickerWrapper-B14f_Y-E.cjs"),l=require("react/jsx-runtime"),u=require("./Button/index.cjs");function w({props:s,standaloneMode:r,formatValue:o}){const{value:t,wrapperClassName:i}=s,e={...s};s?.mode!==r&&(e.dropdownType==="drawer"?e.drawerProps={...e.drawerProps,containerClassName:p.clsx("crow:!p-0",e.drawerProps?.containerClassName)}:e.popoverClassName=p.clsx("crow:!p-0 crow:max-h-max",e.popoverClassName),e.customInput||(e.inputProps={...e.inputProps,value:e.inputProps?.value??o(t)}));const c=s?.mode===r?"div":d.PickerWrapper,n=s?.mode!==r?e:{className:i};return{Wrapper:c,wrapperProps:n}}const P=s=>{const{primaryButton:r,secondaryButton:o,className:t}=s,{toggleWrapperVisibility:i}=d.usePickerWrapperContext(),e=!!r,c=!!o,n=a=>{r&&typeof r.onClick=="function"&&r.onClick(a),i()},m=a=>{o&&typeof o.onClick=="function"&&o.onClick(a)};return l.jsxs("div",{className:p.clsx("crow:flex crow:items-center crow:border-t crow:border-gray-200 crow:gap-4",c?"crow:justify-between":"crow:justify-end",t),children:[c&&l.jsx(u,{type:"button",variant:"text",size:"small",isFullWidth:e,...o,onClick:m,children:o?.children??"اعمال"}),e&&l.jsx(u,{type:"button",size:"small",isFullWidth:c,...r,onClick:n,children:r?.children??"اعمال"})]})};exports.DateAndTimePickerFooter=P;exports.useDateAndTimePickerWrapper=w;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('../assets/styles.css');const t=require("react/jsx-runtime"),s=require("../clsx-C11secjj.cjs");;/* empty css */const w={white:"crow:border-gray-100",gray:"crow:border-gray-200",primary:"crow:border-primary-300",success:"crow:border-success-400",error:"crow:border-error-300",warning:"crow:border-warning-400"},i={solid:"crow:border-solid",dashed:"crow:border-dashed",dotted:"crow:border-dotted"},l={horizontal:{thin:"crow:w-full crow:border-t crow:border-t-[1px]",thick:"crow:w-full crow:border-t crow:border-t-4"},vertical:{thin:"crow:h-full crow:border-l crow:border-l-[1px]",thick:"crow:h-full crow:border-l crow:border-l-4"}},b=({type:r,size:o="thin",color:e="gray",style:c="solid",className:d})=>t.jsx("div",{className:s.clsx(l[r][o],w[e],i[c],d)});module.exports=b;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface DividerProps {
|
|
2
|
+
/** Orientation of the divider line. */
|
|
3
|
+
type: 'horizontal' | 'vertical';
|
|
4
|
+
/** Line weight. @default 'thin' */
|
|
5
|
+
size?: 'thin' | 'thick';
|
|
6
|
+
/** Border color. @default 'gray' */
|
|
7
|
+
color?: 'white' | 'gray' | 'primary' | 'success' | 'error' | 'warning';
|
|
8
|
+
/** Border style. @default 'solid' */
|
|
9
|
+
style?: 'solid' | 'dashed' | 'dotted';
|
|
10
|
+
/** Extra class names on the divider element. */
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const Divider: ({ type, size, color, style, className, }: DividerProps) => import("react").JSX.Element;
|
|
14
|
+
export default Divider;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/Divider/index.tsx"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAC;AAE1B,UAAU,YAAY;IACpB,uCAAuC;IACvC,IAAI,EAAE,YAAY,GAAG,UAAU,CAAC;IAChC,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,oCAAoC;IACpC,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACvE,qCAAqC;IACrC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACtC,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA+BD,QAAA,MAAM,OAAO,GAAI,0CAMd,YAAY,gCAMd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as w } from "../clsx-OuTLNxxd.js";
|
|
3
|
+
import '../assets/styles.css';/* empty css */
|
|
4
|
+
const i = {
|
|
5
|
+
white: "crow:border-gray-100",
|
|
6
|
+
gray: "crow:border-gray-200",
|
|
7
|
+
primary: "crow:border-primary-300",
|
|
8
|
+
success: "crow:border-success-400",
|
|
9
|
+
error: "crow:border-error-300",
|
|
10
|
+
warning: "crow:border-warning-400"
|
|
11
|
+
}, s = {
|
|
12
|
+
solid: "crow:border-solid",
|
|
13
|
+
dashed: "crow:border-dashed",
|
|
14
|
+
dotted: "crow:border-dotted"
|
|
15
|
+
}, l = {
|
|
16
|
+
horizontal: {
|
|
17
|
+
thin: "crow:w-full crow:border-t crow:border-t-[1px]",
|
|
18
|
+
thick: "crow:w-full crow:border-t crow:border-t-4"
|
|
19
|
+
},
|
|
20
|
+
vertical: {
|
|
21
|
+
thin: "crow:h-full crow:border-l crow:border-l-[1px]",
|
|
22
|
+
thick: "crow:h-full crow:border-l crow:border-l-4"
|
|
23
|
+
}
|
|
24
|
+
}, h = ({
|
|
25
|
+
type: r,
|
|
26
|
+
size: o = "thin",
|
|
27
|
+
color: c = "gray",
|
|
28
|
+
style: e = "solid",
|
|
29
|
+
className: d
|
|
30
|
+
}) => /* @__PURE__ */ t(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
className: w(l[r][o], i[c], s[e], d)
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
export {
|
|
37
|
+
h as default
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";require('../assets/styles.css');const r=require("react/jsx-runtime"),u=require("../clsx-C11secjj.cjs"),i=require("react");;/* empty css */const z=require("react-dom"),F=require("../IconCloseRemove-DwCc4o3b.cjs"),T=require("../focusTrap-Br2GlOg-.cjs"),I=require("../isBrowser-Bczqv-hd.cjs"),h=150;let m=0,y;function $({position:o,padding:c=0,item:s}){return o==="center"?"auto":s==="width"?o==="bottom"||o==="top"?`calc(100% - ${c*2}px)`:"auto":o==="bottom"||o==="top"?"auto":`calc(100% - ${c*2}px)`}function M({position:o,padding:c=0}){const s="crow:rounded-2xl";if(c>0||o==="center")return s;switch(o){case"bottom":return`${s} crow:rounded-b-none`;case"left":return`${s} crow:rounded-l-none`;case"right":return`${s} crow:rounded-r-none`;case"top":return`${s} crow:rounded-t-none`;default:return s}}const H=o=>{const{open:c,onClose:s,persist:x,position:t="bottom",children:q,className:D,maskClassName:B,containerClassName:L,padding:n=8,width:A,header:e,footer:p,containerElement:g,havePopover:N}=o,[l,j]=i.useState(!1),[v,C]=i.useState(c),w=g??(I.isBrowser()?document?.body:null),d=i.useRef(null),E=i.useId(),R=i.useRef(null);function k(){w&&(y&&clearTimeout(y),y=setTimeout(()=>{m>0?w.classList.add("crow:overflow-hidden","crow:relative"):w.classList.remove("crow:overflow-hidden","crow:relative")},h))}function O(){m===0&&k(),m++,C(!0),setTimeout(()=>{j(!0)},h)}function f(a=!0){j(!1),setTimeout(()=>{m=Math.max(0,m-1),k(),C(!1),a&&s()},h)}if(i.useEffect(()=>{c?(I.isBrowser()&&(R.current=document.activeElement),O(),setTimeout(()=>{(d.current?T.getFocusableElements(d.current):[])[0]?.focus()},h+50)):(l||v)&&(f(!1),R.current?.focus())},[c]),i.useEffect(()=>{if(!c)return;function a(b){if(b.key==="Escape"&&!x){f();return}b.key==="Tab"&&d.current&&T.trapFocus(d.current,b)}return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[c,x]),i.useEffect(()=>()=>{f(!1)},[]),!v||!w)return;const P=e?Object.values(e).some(a=>!!a):!1,S=t==="center"?{top:"50%",left:"50%",transform:`translate(-50%, -50%) scale(${l?1:.95})`}:{top:t!=="bottom"?n??0:"unset",bottom:t!=="top"?n??0:"unset",left:t!=="right"?n??0:"unset",right:t!=="left"?n??0:"unset"};return z.createPortal(r.jsx("div",{className:u.clsx("crow:bg-black/40 crow:top-0 crow:left-0 crow:z-50 crow:opacity-0 crow:overflow-hidden crow:cursor-default crow:transition-opacity crow:duration-300 crow:ease-in-out",{"crow:opacity-100":l,"crow:w-full crow:h-full":v},g?"crow:absolute":"crow:fixed",B),onClick:()=>x?null:f(),children:r.jsx("div",{className:u.clsx("crow:absolute crow:z-10 crow:opacity-0 crow:transition crow:duration-300 crow:ease-in-out crow:flex crow:justify-center",{"crow:opacity-100":l,"crow:translate-y-full":!l&&t==="bottom","crow:-translate-y-full":!l&&t==="top","crow:translate-x-full":!l&&t==="right","crow:-translate-x-full":!l&&t==="left"},D),style:{...S,maxHeight:`calc(100svh - ${n*2}px)`,maxWidth:`calc(100vw - ${n*2}px)`,width:$({position:t,padding:n,item:"width"}),height:$({position:t,padding:n,item:"height"})},children:r.jsxs("div",{ref:d,role:"dialog","aria-modal":"true","aria-labelledby":e?.title?E:void 0,className:u.clsx("crow:flex crow:flex-col crow:bg-surface crow:divide-y crow:divide-gray-200 crow:divide-solid",!N&&"crow:overflow-x-hidden",M({position:t,padding:n})),style:{width:A??"100%"},onClick:a=>a.stopPropagation(),children:[e&&P&&r.jsxs("div",{className:u.clsx("crow:h-16 crow:relative crow:shrink-0",e?.containerClassName),children:[e.actionElement?r.jsx("div",{className:"crow:absolute crow:top-1/2 crow:-translate-y-1/2 crow:right-4 crow:[&>svg]:w-6 crow:[&_svg]:h-6 crow:text-gray-600",children:e.actionElement}):null,e.title?r.jsxs("div",{className:"crow:flex crow:flex-col crow:absolute crow:top-1/2 crow:right-1/2 crow:-translate-y-1/2 crow:translate-x-1/2 crow:text-center",children:[r.jsx("span",{id:E,className:"crow:font-h6-bold crow:text-gray-800",children:e.title}),e.description?r.jsx("span",{className:"crow:font-caption-regular crow:text-gray-500",children:e.description}):null]}):null,e.haveCloseIcon&&r.jsx("button",{onClick:()=>f(),"aria-label":e.closeIconAriaLabel??"بستن",className:"crow:absolute crow:top-1/2 crow:-translate-y-1/2 crow:left-4",children:r.jsx(F.IconCloseRemove,{width:24,height:24,className:"crow:text-gray-600"})})]}),r.jsx("div",{className:u.clsx("crow:p-4",!N&&"crow:overflow-y-auto",L),children:q}),p?.element?r.jsx("div",{className:u.clsx("crow:p-4 crow:mt-auto",p.containerClassName),children:p.element}):null]})})}),w)};module.exports=H;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { CSSProperties, FC, ReactNode } from 'react';
|
|
2
|
+
export interface DrawerProps {
|
|
3
|
+
/** Whether the drawer is visible. */
|
|
4
|
+
open: boolean;
|
|
5
|
+
/** Called when the user closes the drawer (backdrop click, close button, Escape key). */
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
/** When true, clicking the backdrop does not close the drawer. @default false */
|
|
8
|
+
persist?: boolean;
|
|
9
|
+
/** Edge the drawer slides in from; `'center'` renders a centered dialog. @default 'right' */
|
|
10
|
+
position?: 'bottom' | 'top' | 'right' | 'left' | 'center';
|
|
11
|
+
/** Extra class names on the panel surface. */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** Extra class names on the backdrop overlay. */
|
|
14
|
+
maskClassName?: string;
|
|
15
|
+
/** Extra class names on the container wrapping header + content + footer. */
|
|
16
|
+
containerClassName?: string;
|
|
17
|
+
/** Inner padding (px) of the drawer panel. @default 0 */
|
|
18
|
+
padding?: number;
|
|
19
|
+
/** Explicit panel width; applies to `'left'` and `'right'` positions. */
|
|
20
|
+
width?: CSSProperties['width'];
|
|
21
|
+
/** Optional header bar configuration. */
|
|
22
|
+
header?: {
|
|
23
|
+
/** Heading text. */
|
|
24
|
+
title?: string;
|
|
25
|
+
/** Subheading text below the title. */
|
|
26
|
+
description?: string;
|
|
27
|
+
/** Shows a close (✕) icon button. @default true */
|
|
28
|
+
haveCloseIcon?: boolean;
|
|
29
|
+
/** Aria-label for the close icon (for accessibility). */
|
|
30
|
+
closeIconAriaLabel?: string;
|
|
31
|
+
/** Extra node rendered in the header's trailing area. */
|
|
32
|
+
actionElement?: ReactNode;
|
|
33
|
+
/** Extra class names on the header row. */
|
|
34
|
+
containerClassName?: string;
|
|
35
|
+
};
|
|
36
|
+
/** Optional footer bar configuration. */
|
|
37
|
+
footer?: {
|
|
38
|
+
/** Content rendered inside the footer. */
|
|
39
|
+
element?: ReactNode;
|
|
40
|
+
/** Extra class names on the footer row. */
|
|
41
|
+
containerClassName?: string;
|
|
42
|
+
};
|
|
43
|
+
/** Drawer body content. */
|
|
44
|
+
children?: ReactNode | undefined;
|
|
45
|
+
/** DOM element to portal into; defaults to `document.body`. */
|
|
46
|
+
containerElement?: Element | null;
|
|
47
|
+
/** Enables popover z-index layering for nested drawers. @default false */
|
|
48
|
+
havePopover?: boolean;
|
|
49
|
+
}
|
|
50
|
+
declare const Drawer: FC<DrawerProps>;
|
|
51
|
+
export default Drawer;
|
|
52
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/Drawer/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAKL,KAAK,aAAa,EAClB,KAAK,EAAE,EACP,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,kBAAkB,CAAC;AAU1B,MAAM,WAAW,WAAW;IAC1B,qCAAqC;IACrC,IAAI,EAAE,OAAO,CAAC;IACd,yFAAyF;IACzF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,iFAAiF;IACjF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IAC1D,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yEAAyE;IACzE,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/B,yCAAyC;IACzC,MAAM,CAAC,EAAE;QACP,oBAAoB;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,uCAAuC;QACvC,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,mDAAmD;QACnD,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,yDAAyD;QACzD,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,yDAAyD;QACzD,aAAa,CAAC,EAAE,SAAS,CAAC;QAC1B,2CAA2C;QAC3C,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC7B,CAAC;IACF,yCAAyC;IACzC,MAAM,CAAC,EAAE;QACP,0CAA0C;QAC1C,OAAO,CAAC,EAAE,SAAS,CAAC;QACpB,2CAA2C;QAC3C,kBAAkB,CAAC,EAAE,MAAM,CAAC;KAC7B,CAAC;IACF,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IACjC,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAClC,0EAA0E;IAC1E,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AA4CD,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CA+M3B,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as l, jsxs as y } from "react/jsx-runtime";
|
|
3
|
+
import { c as i } from "../clsx-OuTLNxxd.js";
|
|
4
|
+
import { useState as D, useRef as R, useId as H, useEffect as g } from "react";
|
|
5
|
+
import '../assets/styles.css';/* empty css */
|
|
6
|
+
import { createPortal as _ } from "react-dom";
|
|
7
|
+
import { I as K } from "../IconCloseRemove-BPEWBqGA.js";
|
|
8
|
+
import { g as U, t as W } from "../focusTrap-ikiXakRP.js";
|
|
9
|
+
import { i as L } from "../isBrowser-Bkqg1t1y.js";
|
|
10
|
+
const m = 150;
|
|
11
|
+
let f = 0, x;
|
|
12
|
+
function j({
|
|
13
|
+
position: o,
|
|
14
|
+
padding: r = 0,
|
|
15
|
+
item: c
|
|
16
|
+
}) {
|
|
17
|
+
return o === "center" ? "auto" : c === "width" ? o === "bottom" || o === "top" ? `calc(100% - ${r * 2}px)` : "auto" : o === "bottom" || o === "top" ? "auto" : `calc(100% - ${r * 2}px)`;
|
|
18
|
+
}
|
|
19
|
+
function q({
|
|
20
|
+
position: o,
|
|
21
|
+
padding: r = 0
|
|
22
|
+
}) {
|
|
23
|
+
const c = "crow:rounded-2xl";
|
|
24
|
+
if (r > 0 || o === "center") return c;
|
|
25
|
+
switch (o) {
|
|
26
|
+
case "bottom":
|
|
27
|
+
return `${c} crow:rounded-b-none`;
|
|
28
|
+
case "left":
|
|
29
|
+
return `${c} crow:rounded-l-none`;
|
|
30
|
+
case "right":
|
|
31
|
+
return `${c} crow:rounded-r-none`;
|
|
32
|
+
case "top":
|
|
33
|
+
return `${c} crow:rounded-t-none`;
|
|
34
|
+
default:
|
|
35
|
+
return c;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
const te = (o) => {
|
|
39
|
+
const {
|
|
40
|
+
open: r,
|
|
41
|
+
onClose: c,
|
|
42
|
+
persist: h,
|
|
43
|
+
position: t = "bottom",
|
|
44
|
+
children: A,
|
|
45
|
+
className: O,
|
|
46
|
+
maskClassName: P,
|
|
47
|
+
containerClassName: z,
|
|
48
|
+
padding: a = 8,
|
|
49
|
+
width: B,
|
|
50
|
+
header: e,
|
|
51
|
+
footer: p,
|
|
52
|
+
containerElement: N,
|
|
53
|
+
havePopover: C
|
|
54
|
+
} = o, [s, k] = D(!1), [v, E] = D(r), u = N ?? (L() ? document?.body : null), w = R(null), I = H(), T = R(null);
|
|
55
|
+
function $() {
|
|
56
|
+
u && (x && clearTimeout(x), x = setTimeout(() => {
|
|
57
|
+
f > 0 ? u.classList.add("crow:overflow-hidden", "crow:relative") : u.classList.remove("crow:overflow-hidden", "crow:relative");
|
|
58
|
+
}, m));
|
|
59
|
+
}
|
|
60
|
+
function F() {
|
|
61
|
+
f === 0 && $(), f++, E(!0), setTimeout(() => {
|
|
62
|
+
k(!0);
|
|
63
|
+
}, m);
|
|
64
|
+
}
|
|
65
|
+
function d(n = !0) {
|
|
66
|
+
k(!1), setTimeout(() => {
|
|
67
|
+
f = Math.max(0, f - 1), $(), E(!1), n && c();
|
|
68
|
+
}, m);
|
|
69
|
+
}
|
|
70
|
+
if (g(() => {
|
|
71
|
+
r ? (L() && (T.current = document.activeElement), F(), setTimeout(() => {
|
|
72
|
+
(w.current ? U(w.current) : [])[0]?.focus();
|
|
73
|
+
}, m + 50)) : (s || v) && (d(!1), T.current?.focus());
|
|
74
|
+
}, [r]), g(() => {
|
|
75
|
+
if (!r) return;
|
|
76
|
+
function n(b) {
|
|
77
|
+
if (b.key === "Escape" && !h) {
|
|
78
|
+
d();
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
b.key === "Tab" && w.current && W(w.current, b);
|
|
82
|
+
}
|
|
83
|
+
return document.addEventListener("keydown", n), () => document.removeEventListener("keydown", n);
|
|
84
|
+
}, [r, h]), g(() => () => {
|
|
85
|
+
d(!1);
|
|
86
|
+
}, []), !v || !u) return;
|
|
87
|
+
const M = e ? Object.values(e).some((n) => !!n) : !1, S = t === "center" ? {
|
|
88
|
+
top: "50%",
|
|
89
|
+
left: "50%",
|
|
90
|
+
transform: `translate(-50%, -50%) scale(${s ? 1 : 0.95})`
|
|
91
|
+
} : {
|
|
92
|
+
top: t !== "bottom" ? a ?? 0 : "unset",
|
|
93
|
+
bottom: t !== "top" ? a ?? 0 : "unset",
|
|
94
|
+
left: t !== "right" ? a ?? 0 : "unset",
|
|
95
|
+
right: t !== "left" ? a ?? 0 : "unset"
|
|
96
|
+
};
|
|
97
|
+
return _(
|
|
98
|
+
/* @__PURE__ */ l(
|
|
99
|
+
"div",
|
|
100
|
+
{
|
|
101
|
+
className: i(
|
|
102
|
+
"crow:bg-black/40 crow:top-0 crow:left-0 crow:z-50 crow:opacity-0 crow:overflow-hidden crow:cursor-default crow:transition-opacity crow:duration-300 crow:ease-in-out",
|
|
103
|
+
{ "crow:opacity-100": s, "crow:w-full crow:h-full": v },
|
|
104
|
+
N ? "crow:absolute" : "crow:fixed",
|
|
105
|
+
P
|
|
106
|
+
),
|
|
107
|
+
onClick: () => h ? null : d(),
|
|
108
|
+
children: /* @__PURE__ */ l(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
className: i(
|
|
112
|
+
"crow:absolute crow:z-10 crow:opacity-0 crow:transition crow:duration-300 crow:ease-in-out crow:flex crow:justify-center",
|
|
113
|
+
{
|
|
114
|
+
"crow:opacity-100": s,
|
|
115
|
+
"crow:translate-y-full": !s && t === "bottom",
|
|
116
|
+
"crow:-translate-y-full": !s && t === "top",
|
|
117
|
+
"crow:translate-x-full": !s && t === "right",
|
|
118
|
+
"crow:-translate-x-full": !s && t === "left"
|
|
119
|
+
},
|
|
120
|
+
O
|
|
121
|
+
),
|
|
122
|
+
style: {
|
|
123
|
+
...S,
|
|
124
|
+
maxHeight: `calc(100svh - ${a * 2}px)`,
|
|
125
|
+
maxWidth: `calc(100vw - ${a * 2}px)`,
|
|
126
|
+
width: j({ position: t, padding: a, item: "width" }),
|
|
127
|
+
height: j({ position: t, padding: a, item: "height" })
|
|
128
|
+
},
|
|
129
|
+
children: /* @__PURE__ */ y(
|
|
130
|
+
"div",
|
|
131
|
+
{
|
|
132
|
+
ref: w,
|
|
133
|
+
role: "dialog",
|
|
134
|
+
"aria-modal": "true",
|
|
135
|
+
"aria-labelledby": e?.title ? I : void 0,
|
|
136
|
+
className: i(
|
|
137
|
+
"crow:flex crow:flex-col crow:bg-surface crow:divide-y crow:divide-gray-200 crow:divide-solid",
|
|
138
|
+
!C && "crow:overflow-x-hidden",
|
|
139
|
+
q({ position: t, padding: a })
|
|
140
|
+
),
|
|
141
|
+
style: { width: B ?? "100%" },
|
|
142
|
+
onClick: (n) => n.stopPropagation(),
|
|
143
|
+
children: [
|
|
144
|
+
e && M && /* @__PURE__ */ y(
|
|
145
|
+
"div",
|
|
146
|
+
{
|
|
147
|
+
className: i("crow:h-16 crow:relative crow:shrink-0", e?.containerClassName),
|
|
148
|
+
children: [
|
|
149
|
+
e.actionElement ? /* @__PURE__ */ l("div", { className: "crow:absolute crow:top-1/2 crow:-translate-y-1/2 crow:right-4 crow:[&>svg]:w-6 crow:[&_svg]:h-6 crow:text-gray-600", children: e.actionElement }) : null,
|
|
150
|
+
e.title ? /* @__PURE__ */ y("div", { className: "crow:flex crow:flex-col crow:absolute crow:top-1/2 crow:right-1/2 crow:-translate-y-1/2 crow:translate-x-1/2 crow:text-center", children: [
|
|
151
|
+
/* @__PURE__ */ l(
|
|
152
|
+
"span",
|
|
153
|
+
{
|
|
154
|
+
id: I,
|
|
155
|
+
className: "crow:font-h6-bold crow:text-gray-800",
|
|
156
|
+
children: e.title
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
e.description ? /* @__PURE__ */ l("span", { className: "crow:font-caption-regular crow:text-gray-500", children: e.description }) : null
|
|
160
|
+
] }) : null,
|
|
161
|
+
e.haveCloseIcon && /* @__PURE__ */ l(
|
|
162
|
+
"button",
|
|
163
|
+
{
|
|
164
|
+
onClick: () => d(),
|
|
165
|
+
"aria-label": e.closeIconAriaLabel ?? "بستن",
|
|
166
|
+
className: "crow:absolute crow:top-1/2 crow:-translate-y-1/2 crow:left-4",
|
|
167
|
+
children: /* @__PURE__ */ l(
|
|
168
|
+
K,
|
|
169
|
+
{
|
|
170
|
+
width: 24,
|
|
171
|
+
height: 24,
|
|
172
|
+
className: "crow:text-gray-600"
|
|
173
|
+
}
|
|
174
|
+
)
|
|
175
|
+
}
|
|
176
|
+
)
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
),
|
|
180
|
+
/* @__PURE__ */ l(
|
|
181
|
+
"div",
|
|
182
|
+
{
|
|
183
|
+
className: i("crow:p-4", !C && "crow:overflow-y-auto", z),
|
|
184
|
+
children: A
|
|
185
|
+
}
|
|
186
|
+
),
|
|
187
|
+
p?.element ? /* @__PURE__ */ l("div", { className: i("crow:p-4 crow:mt-auto", p.containerClassName), children: p.element }) : null
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
)
|
|
191
|
+
}
|
|
192
|
+
)
|
|
193
|
+
}
|
|
194
|
+
),
|
|
195
|
+
u
|
|
196
|
+
);
|
|
197
|
+
};
|
|
198
|
+
export {
|
|
199
|
+
te as default
|
|
200
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require('../assets/styles.css');const c=require("react/jsx-runtime"),o=require("../clsx-C11secjj.cjs");;/* empty css */const n=e=>c.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.872 4.888C4.3 5.606 4 6.734 4 8.342v7.313c0 1.53.449 2.653 1.19 3.393.743.74 1.87 1.19 3.405 1.19h7.296c1.53 0 2.654-.449 3.394-1.19s1.189-1.863 1.189-3.393v-.005L20.5 11v-.002c0-1.647-.305-2.71-.862-3.362-.534-.625-1.43-1.02-2.993-1.02h-2.656a2.9 2.9 0 0 1-2.308-1.155v-.001l-.857-1.139a1.39 1.39 0 0 0-1.111-.556H7.838c-1.526 0-2.422.442-2.966 1.124m-1.173-.934c.911-1.144 2.309-1.69 4.139-1.69h1.875a2.89 2.89 0 0 1 2.31 1.155l.856 1.138c.263.349.676.556 1.114.557h2.652c1.8 0 3.206.46 4.134 1.547C21.684 7.721 22 9.224 22 10.999v.004l-.026 4.652v.002c0 1.823-.541 3.365-1.628 4.452-1.087 1.088-2.63 1.628-4.455 1.628H8.595c-1.829 0-3.375-.54-4.464-1.627S2.5 17.48 2.5 15.655V8.342c0-1.743.316-3.28 1.199-4.388",clipRule:"evenodd"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m14.634 13.361 1.741 1.805a.75.75 0 0 0 1.08-1.041l-1.861-1.929a1.344 1.344 0 0 0-1.993.064l-2.216 2.616-1.006-1.121a1.345 1.345 0 0 0-1.976-.027l-1.361 1.435a.75.75 0 0 0 1.088 1.032l1.245-1.312 1.014 1.128a1.345 1.345 0 0 0 2.025-.028zM7.938 10.635a.938.938 0 1 1 1.876 0 .938.938 0 0 1-1.876 0",clipRule:"evenodd"})]}),i={sm:{container:"crow:py-6 crow:px-4 crow:gap-2",icon:"crow:w-10 crow:h-10",title:"crow:font-h6-bold",description:"crow:font-p3-regular"},md:{container:"crow:py-10 crow:px-6 crow:gap-3",icon:"crow:w-14 crow:h-14",title:"crow:font-h5-bold",description:"crow:font-p2-regular"},lg:{container:"crow:py-16 crow:px-8 crow:gap-4",icon:"crow:w-20 crow:h-20",title:"crow:font-h4-bold",description:"crow:font-p1-regular"}},x=({icon:e,title:s,description:l,action:t,size:a="md",className:w})=>{const r=i[a];return c.jsxs("div",{role:"status",className:o.clsx("crow:flex crow:flex-col crow:items-center crow:text-center crow:max-w-md crow:mx-auto",r.container,w),children:[c.jsx("span",{className:o.clsx("crow:text-gray-400 crow:dark:text-gray-500",r.icon),children:e??c.jsx(n,{className:"crow:w-full crow:h-full"})}),c.jsxs("div",{className:"crow:flex crow:flex-col crow:gap-1",children:[c.jsx("p",{className:o.clsx("crow:text-gray-900 crow:dark:text-gray-50",r.title),children:s}),l&&c.jsx("p",{className:o.clsx("crow:text-gray-500 crow:dark:text-gray-400",r.description),children:l})]}),t&&c.jsx("div",{className:"crow:mt-2",children:t})]})};module.exports=x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/EmptyState/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAG/C,OAAO,kBAAkB,CAAC;AAE1B,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAiCnC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { jsxs as l, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as o } from "../clsx-OuTLNxxd.js";
|
|
3
|
+
import '../assets/styles.css';/* empty css */
|
|
4
|
+
const s = (e) => /* @__PURE__ */ l(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: "1em",
|
|
9
|
+
height: "1em",
|
|
10
|
+
fill: "none",
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
...e,
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ c(
|
|
15
|
+
"path",
|
|
16
|
+
{
|
|
17
|
+
fill: "currentColor",
|
|
18
|
+
fillRule: "evenodd",
|
|
19
|
+
d: "M4.872 4.888C4.3 5.606 4 6.734 4 8.342v7.313c0 1.53.449 2.653 1.19 3.393.743.74 1.87 1.19 3.405 1.19h7.296c1.53 0 2.654-.449 3.394-1.19s1.189-1.863 1.189-3.393v-.005L20.5 11v-.002c0-1.647-.305-2.71-.862-3.362-.534-.625-1.43-1.02-2.993-1.02h-2.656a2.9 2.9 0 0 1-2.308-1.155v-.001l-.857-1.139a1.39 1.39 0 0 0-1.111-.556H7.838c-1.526 0-2.422.442-2.966 1.124m-1.173-.934c.911-1.144 2.309-1.69 4.139-1.69h1.875a2.89 2.89 0 0 1 2.31 1.155l.856 1.138c.263.349.676.556 1.114.557h2.652c1.8 0 3.206.46 4.134 1.547C21.684 7.721 22 9.224 22 10.999v.004l-.026 4.652v.002c0 1.823-.541 3.365-1.628 4.452-1.087 1.088-2.63 1.628-4.455 1.628H8.595c-1.829 0-3.375-.54-4.464-1.627S2.5 17.48 2.5 15.655V8.342c0-1.743.316-3.28 1.199-4.388",
|
|
20
|
+
clipRule: "evenodd"
|
|
21
|
+
}
|
|
22
|
+
),
|
|
23
|
+
/* @__PURE__ */ c(
|
|
24
|
+
"path",
|
|
25
|
+
{
|
|
26
|
+
fill: "currentColor",
|
|
27
|
+
fillRule: "evenodd",
|
|
28
|
+
d: "m14.634 13.361 1.741 1.805a.75.75 0 0 0 1.08-1.041l-1.861-1.929a1.344 1.344 0 0 0-1.993.064l-2.216 2.616-1.006-1.121a1.345 1.345 0 0 0-1.976-.027l-1.361 1.435a.75.75 0 0 0 1.088 1.032l1.245-1.312 1.014 1.128a1.345 1.345 0 0 0 2.025-.028zM7.938 10.635a.938.938 0 1 1 1.876 0 .938.938 0 0 1-1.876 0",
|
|
29
|
+
clipRule: "evenodd"
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
), d = {
|
|
35
|
+
sm: {
|
|
36
|
+
container: "crow:py-6 crow:px-4 crow:gap-2",
|
|
37
|
+
icon: "crow:w-10 crow:h-10",
|
|
38
|
+
title: "crow:font-h6-bold",
|
|
39
|
+
description: "crow:font-p3-regular"
|
|
40
|
+
},
|
|
41
|
+
md: {
|
|
42
|
+
container: "crow:py-10 crow:px-6 crow:gap-3",
|
|
43
|
+
icon: "crow:w-14 crow:h-14",
|
|
44
|
+
title: "crow:font-h5-bold",
|
|
45
|
+
description: "crow:font-p2-regular"
|
|
46
|
+
},
|
|
47
|
+
lg: {
|
|
48
|
+
container: "crow:py-16 crow:px-8 crow:gap-4",
|
|
49
|
+
icon: "crow:w-20 crow:h-20",
|
|
50
|
+
title: "crow:font-h4-bold",
|
|
51
|
+
description: "crow:font-p1-regular"
|
|
52
|
+
}
|
|
53
|
+
}, x = ({
|
|
54
|
+
icon: e,
|
|
55
|
+
title: w,
|
|
56
|
+
description: t,
|
|
57
|
+
action: a,
|
|
58
|
+
size: n = "md",
|
|
59
|
+
className: i
|
|
60
|
+
}) => {
|
|
61
|
+
const r = d[n];
|
|
62
|
+
return /* @__PURE__ */ l(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
role: "status",
|
|
66
|
+
className: o(
|
|
67
|
+
"crow:flex crow:flex-col crow:items-center crow:text-center crow:max-w-md crow:mx-auto",
|
|
68
|
+
r.container,
|
|
69
|
+
i
|
|
70
|
+
),
|
|
71
|
+
children: [
|
|
72
|
+
/* @__PURE__ */ c("span", { className: o("crow:text-gray-400 crow:dark:text-gray-500", r.icon), children: e ?? /* @__PURE__ */ c(s, { className: "crow:w-full crow:h-full" }) }),
|
|
73
|
+
/* @__PURE__ */ l("div", { className: "crow:flex crow:flex-col crow:gap-1", children: [
|
|
74
|
+
/* @__PURE__ */ c("p", { className: o("crow:text-gray-900 crow:dark:text-gray-50", r.title), children: w }),
|
|
75
|
+
t && /* @__PURE__ */ c("p", { className: o("crow:text-gray-500 crow:dark:text-gray-400", r.description), children: t })
|
|
76
|
+
] }),
|
|
77
|
+
a && /* @__PURE__ */ c("div", { className: "crow:mt-2", children: a })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
};
|
|
82
|
+
export {
|
|
83
|
+
x as default
|
|
84
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface EmptyStateProps {
|
|
3
|
+
/** Icon or illustration rendered above the title. Falls back to a default illustration when omitted. */
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
/** Main heading text (required). */
|
|
6
|
+
title: string;
|
|
7
|
+
/** Supporting copy rendered below the title. */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Action slot rendered below the description, e.g. a `<Button />`. */
|
|
10
|
+
action?: ReactNode;
|
|
11
|
+
/** Controls spacing and typography scale. @default 'md' */
|
|
12
|
+
size?: 'sm' | 'md' | 'lg';
|
|
13
|
+
/** Extra class names on the root element. */
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/components/EmptyState/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,eAAe;IAC9B,wGAAwG;IACxG,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../src/components/EmptyState/variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,cAAc,EAAE,MAAM,CACjC,QAAQ,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,EACjC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAoBxE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),c=require("./clsx-C11secjj.cjs"),i=l=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...l,children:[e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.25 3.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5M2.5 12a9.75 9.75 0 0 1 9.75-9.75A9.75 9.75 0 0 1 22 12c0 5.384-4.365 9.75-9.75 9.75S2.5 17.384 2.5 12",clipRule:"evenodd"}),e.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.25 7.541a.75.75 0 0 1 .75.75v.063a.75.75 0 0 1-1.5 0v-.063a.75.75 0 0 1 .75-.75m.006 3.103a.75.75 0 0 1 .75.75v4.3a.75.75 0 0 1-1.5 0v-4.3a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})]}),a=l=>{const{errorMessage:r,hintMessage:t,extraHelper:o,disabled:s,className:n}=l;return e.jsxs("div",{className:c.clsx("crow:flex crow:font-p3-regular",{"crow:justify-between":(r??t)&&o,"crow:justify-start":(r??t)&&!o,"crow:justify-end":!(r??t)&&o,"crow:text-gray-400":s},r?"crow:text-error-500":"crow:text-primary-500",n),children:[(r||t)&&e.jsxs("div",{className:c.clsx("crow:flex crow:items-center crow:gap-2 crow:font-light",{"crow:text-gray-400":s}),children:[e.jsx(i,{width:16,height:16}),e.jsx("span",{children:r??t})]}),o]})};exports.FieldBottomInfo=a;exports.IconInfoCircleOutline=i;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as a } from "./clsx-OuTLNxxd.js";
|
|
3
|
+
const n = (l) => /* @__PURE__ */ c(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "1em",
|
|
8
|
+
height: "1em",
|
|
9
|
+
fill: "none",
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
...l,
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ t(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
fillRule: "evenodd",
|
|
18
|
+
d: "M12.25 3.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5M2.5 12a9.75 9.75 0 0 1 9.75-9.75A9.75 9.75 0 0 1 22 12c0 5.384-4.365 9.75-9.75 9.75S2.5 17.384 2.5 12",
|
|
19
|
+
clipRule: "evenodd"
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ t(
|
|
23
|
+
"path",
|
|
24
|
+
{
|
|
25
|
+
fill: "currentColor",
|
|
26
|
+
fillRule: "evenodd",
|
|
27
|
+
d: "M12.25 7.541a.75.75 0 0 1 .75.75v.063a.75.75 0 0 1-1.5 0v-.063a.75.75 0 0 1 .75-.75m.006 3.103a.75.75 0 0 1 .75.75v4.3a.75.75 0 0 1-1.5 0v-4.3a.75.75 0 0 1 .75-.75",
|
|
28
|
+
clipRule: "evenodd"
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
), f = (l) => {
|
|
34
|
+
const { errorMessage: e, hintMessage: r, extraHelper: o, disabled: i, className: s } = l;
|
|
35
|
+
return /* @__PURE__ */ c(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
className: a(
|
|
39
|
+
"crow:flex crow:font-p3-regular",
|
|
40
|
+
{
|
|
41
|
+
"crow:justify-between": (e ?? r) && o,
|
|
42
|
+
"crow:justify-start": (e ?? r) && !o,
|
|
43
|
+
"crow:justify-end": !(e ?? r) && o,
|
|
44
|
+
"crow:text-gray-400": i
|
|
45
|
+
},
|
|
46
|
+
e ? "crow:text-error-500" : "crow:text-primary-500",
|
|
47
|
+
s
|
|
48
|
+
),
|
|
49
|
+
children: [
|
|
50
|
+
(e || r) && /* @__PURE__ */ c(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
className: a("crow:flex crow:items-center crow:gap-2 crow:font-light", {
|
|
54
|
+
"crow:text-gray-400": i
|
|
55
|
+
}),
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ t(
|
|
58
|
+
n,
|
|
59
|
+
{
|
|
60
|
+
width: 16,
|
|
61
|
+
height: 16
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ t("span", { children: e ?? r })
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
o
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
};
|
|
73
|
+
export {
|
|
74
|
+
f as F,
|
|
75
|
+
n as I
|
|
76
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),a=require("../../clsx-C11secjj.cjs"),h=require("../../IconCheckmark-e4F7_KcG.cjs"),l=require("../../omitObjects-CtiYo0hv.cjs"),x=require("../../RadioCheckboxWrapper-BBzu2Ip6.cjs"),m=s=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...s,children:e.jsx("path",{fill:"currentColor",d:"M6 11a.75.75 0 0 0 0 1.5zm12 1.5a.75.75 0 0 0 0-1.5zm-12 0h12V11H6z"})}),d=s=>{const{className:t,isIndeterminate:c,...r}=s,i=l.omitObject(r,["label","isError","errorMessage","helperMessage","containerClassName"]);return e.jsx(x.RadioCheckboxWrapper,{...r,children:({inputClassName:o,checkedInputClassName:n})=>e.jsxs(e.Fragment,{children:[e.jsx("input",{...i,type:"checkbox",className:a.clsx("crow:rounded",o,t)}),e.jsx("div",{className:n,children:c?e.jsx(m,{width:16,height:16}):e.jsx(h.IconCheckmark,{width:16,height:16})})]})})};module.exports=d;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DetailedHTMLProps, InputHTMLAttributes } from 'react';
|
|
2
|
+
import { RadioCheckboxBaseUnionProps } from '../Wrappers/RadioCheckboxWrapper/RadioCheckboxWrapper';
|
|
3
|
+
export type CheckboxProps = RadioCheckboxBaseUnionProps & Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'type'> & {
|
|
4
|
+
isIndeterminate?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const Checkbox: (props: CheckboxProps) => import("react").JSX.Element;
|
|
7
|
+
export default Checkbox;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Checkbox/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uDAAuD,CAAC;AAGzG,MAAM,MAAM,aAAa,GAAG,2BAA2B,GACrD,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,EAAE,MAAM,CAAC,GAAG;IACzF,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEJ,QAAA,MAAM,QAAQ,GAAI,OAAO,aAAa,gCAoCrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx as e, jsxs as n, Fragment as m } from "react/jsx-runtime";
|
|
2
|
+
import { c as h } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { I as l } from "../../IconCheckmark-DDfqVvnj.js";
|
|
4
|
+
import { o as p } from "../../omitObjects-CxFrrlkX.js";
|
|
5
|
+
import { R as d } from "../../RadioCheckboxWrapper-BvSgv_ra.js";
|
|
6
|
+
const g = (r) => /* @__PURE__ */ e(
|
|
7
|
+
"svg",
|
|
8
|
+
{
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
width: "1em",
|
|
11
|
+
height: "1em",
|
|
12
|
+
fill: "none",
|
|
13
|
+
viewBox: "0 0 24 24",
|
|
14
|
+
...r,
|
|
15
|
+
children: /* @__PURE__ */ e(
|
|
16
|
+
"path",
|
|
17
|
+
{
|
|
18
|
+
fill: "currentColor",
|
|
19
|
+
d: "M6 11a.75.75 0 0 0 0 1.5zm12 1.5a.75.75 0 0 0 0-1.5zm-12 0h12V11H6z"
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
), k = (r) => {
|
|
24
|
+
const { className: s, isIndeterminate: t, ...o } = r, i = p(o, [
|
|
25
|
+
"label",
|
|
26
|
+
"isError",
|
|
27
|
+
"errorMessage",
|
|
28
|
+
"helperMessage",
|
|
29
|
+
"containerClassName"
|
|
30
|
+
]);
|
|
31
|
+
return /* @__PURE__ */ e(d, { ...o, children: ({ inputClassName: a, checkedInputClassName: c }) => /* @__PURE__ */ n(m, { children: [
|
|
32
|
+
/* @__PURE__ */ e(
|
|
33
|
+
"input",
|
|
34
|
+
{
|
|
35
|
+
...i,
|
|
36
|
+
type: "checkbox",
|
|
37
|
+
className: h("crow:rounded", a, s)
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ e("div", { className: c, children: t ? /* @__PURE__ */ e(
|
|
41
|
+
g,
|
|
42
|
+
{
|
|
43
|
+
width: 16,
|
|
44
|
+
height: 16
|
|
45
|
+
}
|
|
46
|
+
) : /* @__PURE__ */ e(
|
|
47
|
+
l,
|
|
48
|
+
{
|
|
49
|
+
width: 16,
|
|
50
|
+
height: 16
|
|
51
|
+
}
|
|
52
|
+
) })
|
|
53
|
+
] }) });
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
k as default
|
|
57
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ButtonProps } from '../../../Button';
|
|
3
|
+
interface DateAndTimePickerFooterProps {
|
|
4
|
+
primaryButton?: ButtonProps;
|
|
5
|
+
secondaryButton?: ButtonProps;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const DateAndTimePickerFooter: FC<DateAndTimePickerFooterProps>;
|
|
9
|
+
export default DateAndTimePickerFooter;
|
|
10
|
+
//# sourceMappingURL=DateAndTimePickerFooter.d.ts.map
|