@webiny/admin-ui 0.0.0-unstable.7be00a75a9 → 0.0.0-unstable.7c2def32a7
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/Accordion/Accordion.d.ts +7 -6
- package/Accordion/Accordion.stories.d.ts +1 -1
- package/Accordion/Accordion.stories.js.map +1 -1
- package/Accordion/components/AccordionContent.js +4 -1
- package/Accordion/components/AccordionContent.js.map +1 -1
- package/Accordion/components/AccordionItem.d.ts +8 -6
- package/Accordion/components/AccordionItem.js.map +1 -1
- package/Accordion/components/AccordionItemAction.d.ts +7 -6
- package/Accordion/components/AccordionItemDragHandle.d.ts +2 -1
- package/Accordion/components/AccordionItemDragHandle.js +2 -1
- package/Accordion/components/AccordionItemDragHandle.js.map +1 -1
- package/Accordion/components/AccordionItemIcon.d.ts +7 -6
- package/Accordion/components/AccordionItemSeparator.d.ts +7 -6
- package/Accordion/components/AccordionTrigger.js +4 -2
- package/Accordion/components/AccordionTrigger.js.map +1 -1
- package/Alert/Alert.d.ts +21 -19
- package/Alert/Alert.stories.d.ts +1 -1
- package/Alert/Alert.stories.js.map +1 -1
- package/AutoComplete/AutoComplete.d.ts +7 -6
- package/AutoComplete/AutoComplete.stories.d.ts +1 -1
- package/AutoComplete/AutoComplete.stories.js.map +1 -1
- package/AutoComplete/primitives/AutoCompletePrimitive.d.ts +13 -6
- package/AutoComplete/primitives/AutoCompletePrimitive.js +1 -0
- package/AutoComplete/primitives/AutoCompletePrimitive.js.map +1 -1
- package/AutoComplete/primitives/AutoCompletePrimitive.stories.d.ts +1 -1
- package/AutoComplete/primitives/AutoCompletePrimitive.stories.js.map +1 -1
- package/Avatar/Avatar.d.ts +9 -8
- package/Avatar/Avatar.stories.d.ts +1 -1
- package/Avatar/Avatar.stories.js.map +1 -1
- package/Avatar/components/AvatarFallback.d.ts +7 -6
- package/Avatar/components/AvatarImage.d.ts +7 -6
- package/BetaBadge/BetaBadge.d.ts +6 -0
- package/BetaBadge/BetaBadge.js +7 -0
- package/BetaBadge/BetaBadge.js.map +1 -0
- package/Breadcrumbs/Breadcrumbs.d.ts +54 -0
- package/Breadcrumbs/Breadcrumbs.js +66 -0
- package/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/Breadcrumbs/Breadcrumbs.stories.d.ts +9 -0
- package/Breadcrumbs/Breadcrumbs.stories.js +71 -0
- package/Breadcrumbs/Breadcrumbs.stories.js.map +1 -0
- package/Breadcrumbs/index.d.ts +1 -0
- package/Breadcrumbs/index.js +1 -0
- package/Button/Button.d.ts +10 -9
- package/Button/Button.js +7 -0
- package/Button/Button.js.map +1 -1
- package/Button/Button.mdx +13 -0
- package/Button/Button.stories.d.ts +2 -1
- package/Button/Button.stories.js +9 -2
- package/Button/Button.stories.js.map +1 -1
- package/Button/CopyButton.d.ts +7 -6
- package/Button/IconButton.d.ts +10 -9
- package/Button/IconButton.stories.d.ts +1 -1
- package/Button/IconButton.stories.js.map +1 -1
- package/Calendar/Calendar.d.ts +7 -6
- package/Calendar/calendarClassNames.js +1 -1
- package/Calendar/calendarClassNames.js.map +1 -1
- package/Card/Card.d.ts +8 -22
- package/Card/Card.stories.d.ts +1 -1
- package/Card/Card.stories.js.map +1 -1
- package/Card/components/CancelAction.d.ts +8 -6
- package/Card/components/CardContent.d.ts +6 -6
- package/Card/components/CardTitle.d.ts +2 -2
- package/Card/components/ConfirmAction.d.ts +8 -6
- package/Card/components/Icon.d.ts +7 -6
- package/Checkbox/Checkbox.d.ts +7 -6
- package/Checkbox/Checkbox.stories.d.ts +1 -1
- package/Checkbox/Checkbox.stories.js.map +1 -1
- package/Checkbox/primitives/CheckboxPrimitive.d.ts +17 -12
- package/Checkbox/primitives/CheckboxPrimitive.stories.d.ts +1 -1
- package/Checkbox/primitives/CheckboxPrimitive.stories.js.map +1 -1
- package/CheckboxGroup/CheckboxGroup.d.ts +7 -6
- package/CheckboxGroup/CheckboxGroup.stories.d.ts +1 -1
- package/CheckboxGroup/CheckboxGroup.stories.js.map +1 -1
- package/CheckboxGroup/primitives/CheckboxGroupPrimitive.d.ts +20 -12
- package/CheckboxGroup/primitives/CheckboxGroupPrimitive.stories.d.ts +1 -1
- package/CheckboxGroup/primitives/CheckboxGroupPrimitive.stories.js.map +1 -1
- package/CodeEditor/CodeEditor.d.ts +7 -6
- package/CodeEditor/CodeEditor.stories.d.ts +1 -1
- package/CodeEditor/CodeEditor.stories.js.map +1 -1
- package/CodeEditor/CodeEditorPrimitive.d.ts +7 -6
- package/CodeEditor/CodeEditorPrimitive.js +3 -1
- package/CodeEditor/CodeEditorPrimitive.js.map +1 -1
- package/CodeEditor/CodeEditorPrimitive.stories.d.ts +1 -1
- package/CodeEditor/CodeEditorPrimitive.stories.js.map +1 -1
- package/ColorPicker/ColorPicker.d.ts +7 -6
- package/ColorPicker/ColorPicker.stories.d.ts +1 -1
- package/ColorPicker/ColorPicker.stories.js.map +1 -1
- package/ColorPicker/primitives/ColorPickerPrimitive.d.ts +7 -6
- package/ColorPicker/primitives/ColorPickerPrimitive.stories.d.ts +1 -1
- package/ColorPicker/primitives/ColorPickerPrimitive.stories.js.map +1 -1
- package/Command/Command.d.ts +10 -8
- package/Command/components/List.d.ts +1 -1
- package/Command/components/List.js +9 -5
- package/Command/components/List.js.map +1 -1
- package/DataList/DataListModal.d.ts +6 -3
- package/DataTable/DataTable.d.ts +23 -12
- package/DataTable/DataTable.js +18 -7
- package/DataTable/DataTable.js.map +1 -1
- package/DataTable/DataTable.stories.d.ts +1 -1
- package/DataTable/DataTable.stories.js.map +1 -1
- package/DataTable/components/ColumnsVisibility.d.ts +5 -4
- package/DataTable/components/ColumnsVisibility.js +7 -3
- package/DataTable/components/ColumnsVisibility.js.map +1 -1
- package/DatePicker/DatePicker.d.ts +11 -7
- package/DatePicker/DatePicker.js +10 -2
- package/DatePicker/DatePicker.js.map +1 -1
- package/DatePicker/DatePicker.stories.d.ts +11 -1
- package/DatePicker/DatePicker.stories.js +44 -1
- package/DatePicker/DatePicker.stories.js.map +1 -1
- package/DatePicker/primitives/BirthdayPicker.d.ts +13 -0
- package/DatePicker/primitives/BirthdayPicker.js +355 -0
- package/DatePicker/primitives/BirthdayPicker.js.map +1 -0
- package/DatePicker/primitives/BirthdayPickerCell.d.ts +14 -0
- package/DatePicker/primitives/BirthdayPickerCell.js +19 -0
- package/DatePicker/primitives/BirthdayPickerCell.js.map +1 -0
- package/DatePicker/primitives/BirthdayPickerSegments.d.ts +9 -0
- package/DatePicker/primitives/BirthdayPickerSegments.js +43 -0
- package/DatePicker/primitives/BirthdayPickerSegments.js.map +1 -0
- package/DatePicker/primitives/DateOnlyPicker.js +2 -2
- package/DatePicker/primitives/DateOnlyPicker.js.map +1 -1
- package/DatePicker/primitives/DatePickerPrimitive.d.ts +7 -6
- package/DatePicker/primitives/DatePickerPrimitive.js +3 -0
- package/DatePicker/primitives/DatePickerPrimitive.js.map +1 -1
- package/DatePicker/primitives/DateRangePicker.js +3 -3
- package/DatePicker/primitives/DateRangePicker.js.map +1 -1
- package/DatePicker/primitives/DateTimePicker.d.ts +1 -1
- package/DatePicker/primitives/DateTimePicker.js +26 -18
- package/DatePicker/primitives/DateTimePicker.js.map +1 -1
- package/DatePicker/primitives/MultipleDatesPicker.js +3 -3
- package/DatePicker/primitives/MultipleDatesPicker.js.map +1 -1
- package/DatePicker/primitives/components/DatePickerTrigger.js +2 -2
- package/DatePicker/primitives/components/DatePickerTrigger.js.map +1 -1
- package/DatePicker/utils/birthdayHelpers.d.ts +77 -0
- package/DatePicker/utils/birthdayHelpers.js +145 -0
- package/DatePicker/utils/birthdayHelpers.js.map +1 -0
- package/DatePicker/utils/birthdayHelpers.test.d.ts +1 -0
- package/DatePicker/utils/birthdayHelpers.test.js +394 -0
- package/DatePicker/utils/birthdayHelpers.test.js.map +1 -0
- package/DatePicker/utils/dateHelpers.d.ts +6 -1
- package/DatePicker/utils/dateHelpers.js +13 -5
- package/DatePicker/utils/dateHelpers.js.map +1 -1
- package/DatePicker/utils/dateHelpers.test.d.ts +1 -0
- package/DatePicker/utils/dateHelpers.test.js +32 -0
- package/DatePicker/utils/dateHelpers.test.js.map +1 -0
- package/DatePicker/utils/index.d.ts +1 -0
- package/DatePicker/utils/index.js +1 -0
- package/DatePicker/utils/timezoneHelpers.d.ts +3 -0
- package/DatePicker/utils/timezoneHelpers.js +32 -0
- package/DatePicker/utils/timezoneHelpers.js.map +1 -0
- package/DatePicker/utils/types.d.ts +15 -2
- package/Dialog/Dialog.d.ts +8 -22
- package/Dialog/Dialog.stories.d.ts +1 -1
- package/Dialog/Dialog.stories.js.map +1 -1
- package/Dialog/components/CancelAction.d.ts +8 -6
- package/Dialog/components/ConfirmAction.d.ts +8 -6
- package/Dialog/components/DialogContent.d.ts +1 -1
- package/Dialog/components/DialogFooter.d.ts +1 -1
- package/Dialog/components/DialogTitle.d.ts +1 -1
- package/Dialog/components/Icon.d.ts +7 -6
- package/DragCursor/DragCursor.d.ts +7 -0
- package/DragCursor/DragCursor.js +21 -0
- package/DragCursor/DragCursor.js.map +1 -0
- package/DragCursor/DragCursor.stories.d.ts +10 -0
- package/DragCursor/DragCursor.stories.js +97 -0
- package/DragCursor/DragCursor.stories.js.map +1 -0
- package/DragCursor/index.d.ts +1 -0
- package/DragCursor/index.js +1 -0
- package/Drawer/Drawer.d.ts +18 -28
- package/Drawer/Drawer.js +2 -1
- package/Drawer/Drawer.js.map +1 -1
- package/Drawer/Drawer.stories.d.ts +2 -1
- package/Drawer/Drawer.stories.js +21 -2
- package/Drawer/Drawer.stories.js.map +1 -1
- package/Drawer/components/CancelButton.d.ts +8 -6
- package/Drawer/components/ConfirmButton.d.ts +8 -6
- package/Drawer/components/DrawerContent.d.ts +1 -1
- package/Drawer/components/DrawerHeader.d.ts +2 -2
- package/Drawer/components/DrawerHeader.js +11 -8
- package/Drawer/components/DrawerHeader.js.map +1 -1
- package/Drawer/components/Icon.d.ts +7 -6
- package/Drawer/components/Icon.js +3 -4
- package/Drawer/components/Icon.js.map +1 -1
- package/DropdownMenu/DropdownMenu.stories.d.ts +1 -1
- package/DropdownMenu/DropdownMenu.stories.js.map +1 -1
- package/DropdownMenu/components/DropdownMenuItem.d.ts +8 -2
- package/DropdownMenu/components/DropdownMenuItem.js +11 -3
- package/DropdownMenu/components/DropdownMenuItem.js.map +1 -1
- package/DropdownMenu/components/DropdownMenuLink.d.ts +9 -8
- package/DropdownMenu/components/DropdownMenuSeparator.d.ts +7 -6
- package/EditableTitle/EditableTitle.d.ts +67 -0
- package/EditableTitle/EditableTitle.js +73 -0
- package/EditableTitle/EditableTitle.js.map +1 -0
- package/EditableTitle/index.d.ts +1 -0
- package/EditableTitle/index.js +1 -0
- package/EmptyState/EmptyState.d.ts +43 -0
- package/EmptyState/EmptyState.js +93 -0
- package/EmptyState/EmptyState.js.map +1 -0
- package/EmptyState/EmptyState.stories.d.ts +13 -0
- package/EmptyState/EmptyState.stories.js +136 -0
- package/EmptyState/EmptyState.stories.js.map +1 -0
- package/EmptyState/illustrations/ContentIllustration.d.ts +2 -0
- package/EmptyState/illustrations/ContentIllustration.js +100 -0
- package/EmptyState/illustrations/ContentIllustration.js.map +1 -0
- package/EmptyState/illustrations/LayoutIllustration.d.ts +2 -0
- package/EmptyState/illustrations/LayoutIllustration.js +93 -0
- package/EmptyState/illustrations/LayoutIllustration.js.map +1 -0
- package/EmptyState/illustrations/ListingIllustration.d.ts +2 -0
- package/EmptyState/illustrations/ListingIllustration.js +92 -0
- package/EmptyState/illustrations/ListingIllustration.js.map +1 -0
- package/EmptyState/illustrations/SelectIllustration.d.ts +2 -0
- package/EmptyState/illustrations/SelectIllustration.js +100 -0
- package/EmptyState/illustrations/SelectIllustration.js.map +1 -0
- package/EmptyState/illustrations/TableIllustration.d.ts +2 -0
- package/EmptyState/illustrations/TableIllustration.js +233 -0
- package/EmptyState/illustrations/TableIllustration.js.map +1 -0
- package/EmptyState/illustrations/UploadIllustration.d.ts +2 -0
- package/EmptyState/illustrations/UploadIllustration.js +77 -0
- package/EmptyState/illustrations/UploadIllustration.js.map +1 -0
- package/EmptyState/illustrations/index.d.ts +6 -0
- package/EmptyState/illustrations/index.js +6 -0
- package/EmptyState/index.d.ts +1 -0
- package/EmptyState/index.js +1 -0
- package/FilePicker/FilePicker.d.ts +19 -18
- package/FilePicker/FilePicker.stories.d.ts +7 -1
- package/FilePicker/FilePicker.stories.js +24 -1
- package/FilePicker/FilePicker.stories.js.map +1 -1
- package/FilePicker/primitives/FilePickerPrimitive.d.ts +20 -19
- package/FilePicker/primitives/FilePickerPrimitive.stories.d.ts +1 -1
- package/FilePicker/primitives/FilePickerPrimitive.stories.js.map +1 -1
- package/FilePicker/primitives/components/Trigger.d.ts +1 -1
- package/FilePicker/primitives/components/previews/ImagePreview/ImagePreview.d.ts +19 -7
- package/FilePicker/primitives/components/previews/ImagePreview/ImagePreview.js +15 -6
- package/FilePicker/primitives/components/previews/ImagePreview/ImagePreview.js.map +1 -1
- package/FilePicker/primitives/components/previews/ItemActions.js +1 -1
- package/FilePicker/primitives/components/previews/ItemActions.js.map +1 -1
- package/FilePicker/primitives/components/previews/ItemDescription.js +1 -1
- package/FilePicker/primitives/components/previews/ItemDescription.js.map +1 -1
- package/FilePicker/primitives/components/previews/RichItemPreview/FileType.d.ts +5 -0
- package/FilePicker/primitives/components/previews/RichItemPreview/FileType.js +45 -0
- package/FilePicker/primitives/components/previews/RichItemPreview/FileType.js.map +1 -0
- package/FilePicker/primitives/components/previews/RichItemPreview/Placeholder.d.ts +5 -0
- package/FilePicker/primitives/components/previews/RichItemPreview/Placeholder.js +14 -0
- package/FilePicker/primitives/components/previews/RichItemPreview/Placeholder.js.map +1 -0
- package/FilePicker/primitives/components/previews/RichItemPreview/RichItemPreview.d.ts +12 -6
- package/FilePicker/primitives/components/previews/RichItemPreview/RichItemPreview.js +54 -12
- package/FilePicker/primitives/components/previews/RichItemPreview/RichItemPreview.js.map +1 -1
- package/FilePicker/primitives/components/previews/RichItemPreview/RichItemThumbnail.d.ts +11 -1
- package/FilePicker/primitives/components/previews/RichItemPreview/RichItemThumbnail.js +8 -61
- package/FilePicker/primitives/components/previews/RichItemPreview/RichItemThumbnail.js.map +1 -1
- package/FilePicker/primitives/components/previews/RichItemPreview/Thumbnail.d.ts +11 -0
- package/FilePicker/primitives/components/previews/RichItemPreview/Thumbnail.js +24 -0
- package/FilePicker/primitives/components/previews/RichItemPreview/Thumbnail.js.map +1 -0
- package/FilePicker/primitives/components/previews/RichItemPreview/ThumbnailActions.d.ts +10 -0
- package/FilePicker/primitives/components/previews/RichItemPreview/ThumbnailActions.js +46 -0
- package/FilePicker/primitives/components/previews/RichItemPreview/ThumbnailActions.js.map +1 -0
- package/FilePicker/primitives/components/previews/TextOnlyPreview/TextOnlyPreview.d.ts +7 -6
- package/FilePicker/primitives/components/previews/TruncatedFileName.d.ts +7 -0
- package/FilePicker/primitives/components/previews/TruncatedFileName.js +20 -0
- package/FilePicker/primitives/components/previews/TruncatedFileName.js.map +1 -0
- package/FilePicker/primitives/components/previews/fileName.d.ts +4 -0
- package/FilePicker/primitives/components/previews/fileName.js +26 -0
- package/FilePicker/primitives/components/previews/fileName.js.map +1 -0
- package/FilePicker/primitives/components/previews/index.d.ts +1 -0
- package/FilePicker/primitives/components/previews/index.js +1 -0
- package/FilePicker/primitives/components/previews/variants.d.ts +1 -1
- package/FillViewport/FillViewport.d.ts +63 -0
- package/FillViewport/FillViewport.js +67 -0
- package/FillViewport/FillViewport.js.map +1 -0
- package/FillViewport/index.d.ts +1 -0
- package/FillViewport/index.js +1 -0
- package/FormComponent/Description.d.ts +7 -6
- package/FormComponent/ErrorMessage.d.ts +7 -6
- package/FormComponent/Label.d.ts +7 -6
- package/FormComponent/Note.d.ts +7 -6
- package/Grid/Grid.d.ts +25 -23
- package/Grid/Grid.js.map +1 -1
- package/Grid/Grid.stories.d.ts +1 -1
- package/Grid/Grid.stories.js.map +1 -1
- package/HeaderBar/HeaderBar.d.ts +7 -6
- package/HeaderBar/HeaderBar.stories.d.ts +1 -1
- package/HeaderBar/HeaderBar.stories.js.map +1 -1
- package/Heading/Heading.d.ts +8 -7
- package/Heading/Heading.stories.d.ts +1 -1
- package/Heading/Heading.stories.js.map +1 -1
- package/Icon/Icon.d.ts +9 -8
- package/Icon/Icon.stories.d.ts +1 -1
- package/Icon/Icon.stories.js.map +1 -1
- package/IconPicker/IconPicker.d.ts +7 -6
- package/IconPicker/IconPicker.stories.d.ts +1 -1
- package/IconPicker/IconPicker.stories.js.map +1 -1
- package/IconPicker/primitives/IconPickerPrimitive.d.ts +1 -1
- package/IconPicker/primitives/IconPickerPrimitive.js +1 -2
- package/IconPicker/primitives/IconPickerPrimitive.js.map +1 -1
- package/IconPicker/primitives/IconPickerPrimitive.stories.d.ts +1 -1
- package/IconPicker/primitives/IconPickerPrimitive.stories.js.map +1 -1
- package/IconPicker/primitives/components/IconPickerTrigger.d.ts +1 -1
- package/ImageEditor/AspectRatioPreview.d.ts +16 -0
- package/ImageEditor/AspectRatioPreview.js +26 -0
- package/ImageEditor/AspectRatioPreview.js.map +1 -0
- package/ImageEditor/CropHotspotEditor.d.ts +22 -0
- package/ImageEditor/CropHotspotEditor.js +402 -0
- package/ImageEditor/CropHotspotEditor.js.map +1 -0
- package/ImageEditor/ImageEditor.d.ts +18 -0
- package/ImageEditor/ImageEditor.js +151 -0
- package/ImageEditor/ImageEditor.js.map +1 -0
- package/ImageEditor/ImageEditor.stories.d.ts +6 -0
- package/ImageEditor/ImageEditor.stories.js +42 -0
- package/ImageEditor/ImageEditor.stories.js.map +1 -0
- package/ImageEditor/MetaFields.d.ts +12 -0
- package/ImageEditor/MetaFields.js +20 -0
- package/ImageEditor/MetaFields.js.map +1 -0
- package/ImageEditor/SectionLabel.d.ts +8 -0
- package/ImageEditor/SectionLabel.js +7 -0
- package/ImageEditor/SectionLabel.js.map +1 -0
- package/ImageEditor/geometry.d.ts +46 -0
- package/ImageEditor/geometry.js +126 -0
- package/ImageEditor/geometry.js.map +1 -0
- package/ImageEditor/index.d.ts +3 -0
- package/ImageEditor/index.js +3 -0
- package/ImageEditor/types.d.ts +52 -0
- package/ImageEditor/types.js +35 -0
- package/ImageEditor/types.js.map +1 -0
- package/Input/Input.d.ts +7 -6
- package/Input/Input.stories.d.ts +1 -1
- package/Input/Input.stories.js.map +1 -1
- package/Input/InputPrimitive.d.ts +9 -8
- package/Input/InputPrimitive.stories.d.ts +1 -1
- package/Input/InputPrimitive.stories.js.map +1 -1
- package/Label/Label.d.ts +8 -7
- package/Label/Label.stories.d.ts +1 -1
- package/Label/Label.stories.js.map +1 -1
- package/Label/components/LabelValue.d.ts +1 -1
- package/Link/Link.d.ts +3 -3
- package/Link/Link.js +1 -1
- package/Link/Link.js.map +1 -1
- package/Link/Link.stories.d.ts +1 -1
- package/Link/Link.stories.js.map +1 -1
- package/List/List.d.ts +8 -7
- package/List/List.stories.d.ts +1 -1
- package/List/List.stories.js.map +1 -1
- package/List/components/ListItem.d.ts +7 -6
- package/List/components/ListItemAction.d.ts +7 -6
- package/List/components/ListItemHandle.d.ts +7 -6
- package/List/components/ListItemIcon.d.ts +7 -6
- package/List/components/ListItemSeparator.d.ts +7 -6
- package/Loader/Loader.d.ts +9 -8
- package/Loader/Loader.stories.d.ts +1 -1
- package/Loader/Loader.stories.js.map +1 -1
- package/Loader/OverlayLoader.d.ts +7 -6
- package/Loader/OverlayLoader.stories.d.ts +1 -1
- package/Loader/OverlayLoader.stories.js.map +1 -1
- package/Markdown/Markdown.d.ts +47 -0
- package/Markdown/Markdown.js +17 -0
- package/Markdown/Markdown.js.map +1 -0
- package/Markdown/index.d.ts +1 -0
- package/Markdown/index.js +1 -0
- package/MultiAutoComplete/MultiAutoComplete.d.ts +7 -6
- package/MultiAutoComplete/MultiAutoComplete.stories.d.ts +1 -1
- package/MultiAutoComplete/MultiAutoComplete.stories.js.map +1 -1
- package/MultiAutoComplete/primitives/MultiAutoCompletePrimitive.d.ts +13 -6
- package/MultiAutoComplete/primitives/MultiAutoCompletePrimitive.js +1 -0
- package/MultiAutoComplete/primitives/MultiAutoCompletePrimitive.js.map +1 -1
- package/MultiAutoComplete/primitives/MultiAutoCompletePrimitive.stories.d.ts +1 -1
- package/MultiAutoComplete/primitives/MultiAutoCompletePrimitive.stories.js.map +1 -1
- package/MultiAutoComplete/primitives/presenters/MultiAutoCompletePresenterWithFreeInput.d.ts +3 -3
- package/MultiAutoComplete/primitives/useMultiAutoComplete.d.ts +3 -3
- package/MultiFilePicker/MultiFilePicker.d.ts +19 -18
- package/MultiFilePicker/MultiFilePicker.stories.d.ts +1 -1
- package/MultiFilePicker/MultiFilePicker.stories.js.map +1 -1
- package/MultiFilePicker/primitives/MultiFilePickerPrimitive.d.ts +19 -18
- package/MultiFilePicker/primitives/MultiFilePickerPrimitive.stories.d.ts +1 -1
- package/MultiFilePicker/primitives/MultiFilePickerPrimitive.stories.js.map +1 -1
- package/MultiSelect/MultiSelect.d.ts +7 -6
- package/MultiSelect/MultiSelect.stories.d.ts +1 -1
- package/MultiSelect/MultiSelect.stories.js.map +1 -1
- package/MultiSelect/primitives/MultiSelectPrimitive.d.ts +10 -6
- package/MultiSelect/primitives/MultiSelectPrimitive.js +12 -5
- package/MultiSelect/primitives/MultiSelectPrimitive.js.map +1 -1
- package/Popover/Popover.d.ts +7 -6
- package/Popover/Popover.stories.d.ts +8 -1
- package/Popover/Popover.stories.js +24 -1
- package/Popover/Popover.stories.js.map +1 -1
- package/Popover/primitives/PopoverPrimitive.d.ts +7 -7
- package/Popover/primitives/components/PopoverContent.js +6 -1
- package/Popover/primitives/components/PopoverContent.js.map +1 -1
- package/ProgressBar/ProgressBar.d.ts +7 -6
- package/ProgressBar/ProgressBar.stories.d.ts +1 -1
- package/ProgressBar/ProgressBar.stories.js.map +1 -1
- package/RadioGroup/RadioGroup.d.ts +7 -6
- package/RadioGroup/RadioGroup.stories.d.ts +1 -1
- package/RadioGroup/RadioGroup.stories.js.map +1 -1
- package/RadioGroup/primitives/Radio.d.ts +7 -6
- package/RadioGroup/primitives/RadioGroupPrimitive.d.ts +5 -1
- package/RadioGroup/primitives/RadioGroupPrimitive.stories.d.ts +1 -1
- package/RadioGroup/primitives/RadioGroupPrimitive.stories.js.map +1 -1
- package/RangeSlider/RangeSlider.d.ts +7 -6
- package/RangeSlider/RangeSlider.stories.d.ts +1 -1
- package/RangeSlider/RangeSlider.stories.js.map +1 -1
- package/RangeSlider/primitives/RangeSliderPrimitive.stories.d.ts +1 -1
- package/RangeSlider/primitives/RangeSliderPrimitive.stories.js.map +1 -1
- package/ScrollArea/ScrollArea.d.ts +16 -2
- package/ScrollArea/ScrollArea.js +25 -11
- package/ScrollArea/ScrollArea.js.map +1 -1
- package/ScrollArea/ScrollArea.stories.d.ts +1 -1
- package/ScrollArea/ScrollArea.stories.js.map +1 -1
- package/SegmentedControl/SegmentedControl.d.ts +11 -6
- package/SegmentedControl/SegmentedControl.js +6 -2
- package/SegmentedControl/SegmentedControl.js.map +1 -1
- package/SegmentedControl/SegmentedControl.stories.d.ts +5 -1
- package/SegmentedControl/SegmentedControl.stories.js +100 -2
- package/SegmentedControl/SegmentedControl.stories.js.map +1 -1
- package/SegmentedControl/SegmentedControlTab.d.ts +10 -0
- package/SegmentedControl/SegmentedControlTab.js +21 -0
- package/SegmentedControl/SegmentedControlTab.js.map +1 -0
- package/SegmentedControl/SegmentedControlTabs.d.ts +14 -0
- package/SegmentedControl/SegmentedControlTabs.js +71 -0
- package/SegmentedControl/SegmentedControlTabs.js.map +1 -0
- package/SegmentedControl/SegmentedControlTabsContext.d.ts +19 -0
- package/SegmentedControl/SegmentedControlTabsContext.js +11 -0
- package/SegmentedControl/SegmentedControlTabsContext.js.map +1 -0
- package/SegmentedControl/index.d.ts +2 -0
- package/SegmentedControl/index.js +2 -0
- package/SegmentedControl/primitives/SegmentedControlPrimitive.d.ts +6 -2
- package/SegmentedControl/primitives/SegmentedControlPrimitive.js +4 -3
- package/SegmentedControl/primitives/SegmentedControlPrimitive.js.map +1 -1
- package/SegmentedControl/primitives/SegmentedControlPrimitive.stories.d.ts +2 -1
- package/SegmentedControl/primitives/SegmentedControlPrimitive.stories.js +8 -1
- package/SegmentedControl/primitives/SegmentedControlPrimitive.stories.js.map +1 -1
- package/Select/Select.d.ts +7 -6
- package/Select/Select.stories.d.ts +1 -1
- package/Select/Select.stories.js.map +1 -1
- package/Select/primitives/SelectPrimitive.stories.d.ts +1 -1
- package/Select/primitives/SelectPrimitive.stories.js.map +1 -1
- package/Select/primitives/components/SelectContent.js +4 -6
- package/Select/primitives/components/SelectContent.js.map +1 -1
- package/Select/primitives/components/SelectTrigger.d.ts +2 -2
- package/Separator/Separator.d.ts +9 -8
- package/Separator/Separator.stories.d.ts +1 -1
- package/Separator/Separator.stories.js.map +1 -1
- package/Sidebar/Sidebar.d.ts +9 -6
- package/Sidebar/Sidebar.stories.d.ts +1 -1
- package/Sidebar/Sidebar.stories.js.map +1 -1
- package/Sidebar/components/SidebarContent.js +1 -1
- package/Sidebar/components/SidebarContent.js.map +1 -1
- package/Sidebar/components/SidebarIcon.d.ts +7 -6
- package/Sidebar/components/SidebarProvider.d.ts +4 -4
- package/Sidebar/components/SidebarRoot.js +1 -1
- package/Sidebar/components/SidebarRoot.js.map +1 -1
- package/Sidebar/components/items/SidebarMenuGroup.d.ts +9 -8
- package/Sidebar/components/items/SidebarMenuItem.d.ts +13 -9
- package/Sidebar/components/items/SidebarMenuItem.js +3 -1
- package/Sidebar/components/items/SidebarMenuItem.js.map +1 -1
- package/Sidebar/components/items/SidebarMenuItemBadge.d.ts +6 -0
- package/Sidebar/components/items/SidebarMenuItemBadge.js +7 -0
- package/Sidebar/components/items/SidebarMenuItemBadge.js.map +1 -0
- package/Sidebar/components/items/SidebarMenuItemIcon.d.ts +7 -6
- package/Sidebar/components/items/SidebarMenuLink.d.ts +12 -9
- package/Sidebar/components/items/SidebarMenuLink.js +3 -1
- package/Sidebar/components/items/SidebarMenuLink.js.map +1 -1
- package/Sidebar/components/items/SidebarMenuProvider.d.ts +4 -4
- package/Sidebar/components/items/SidebarMenuRootButton.d.ts +1 -1
- package/Sidebar/components/items/SidebarMenuRootButton.js +8 -3
- package/Sidebar/components/items/SidebarMenuRootButton.js.map +1 -1
- package/Sidebar/components/items/SidebarMenuRootItem.d.ts +9 -7
- package/Sidebar/components/items/SidebarMenuSubButton.d.ts +1 -1
- package/Sidebar/components/items/SidebarMenuSubButton.js +14 -6
- package/Sidebar/components/items/SidebarMenuSubButton.js.map +1 -1
- package/Sidebar/components/items/SidebarMenuSubItem.js +3 -3
- package/Sidebar/components/items/SidebarMenuSubItem.js.map +1 -1
- package/Sidebar/components/items/SidebarMenuSubItemIndentation.js +2 -1
- package/Sidebar/components/items/SidebarMenuSubItemIndentation.js.map +1 -1
- package/Skeleton/Skeleton.d.ts +9 -7
- package/Skeleton/Skeleton.js +10 -4
- package/Skeleton/Skeleton.js.map +1 -1
- package/Skeleton/Skeleton.stories.d.ts +3 -1
- package/Skeleton/Skeleton.stories.js +28 -2
- package/Skeleton/Skeleton.stories.js.map +1 -1
- package/Slider/Slider.d.ts +7 -6
- package/Slider/Slider.stories.d.ts +1 -1
- package/Slider/Slider.stories.js.map +1 -1
- package/Slider/primitives/SliderPrimitive.stories.d.ts +1 -1
- package/Slider/primitives/SliderPrimitive.stories.js.map +1 -1
- package/SteppedProgress/SteppedProgress.d.ts +7 -6
- package/SteppedProgress/SteppedProgress.stories.d.ts +1 -1
- package/SteppedProgress/SteppedProgress.stories.js.map +1 -1
- package/SteppedProgress/SteppedProgressItem.d.ts +7 -6
- package/Switch/Switch.d.ts +10 -9
- package/Switch/Switch.js +21 -7
- package/Switch/Switch.js.map +1 -1
- package/Switch/Switch.stories.d.ts +1 -1
- package/Switch/Switch.stories.js.map +1 -1
- package/Switch/domains/SwitchItemDto.d.ts +1 -1
- package/Switch/primitives/SwitchPrimitive.d.ts +10 -6
- package/Switch/primitives/SwitchPrimitive.js +4 -3
- package/Switch/primitives/SwitchPrimitive.js.map +1 -1
- package/Switch/primitives/SwitchPrimitive.stories.d.ts +1 -1
- package/Switch/primitives/SwitchPrimitive.stories.js.map +1 -1
- package/Table/Table.d.ts +12 -10
- package/Table/components/Direction.d.ts +1 -1
- package/Tabs/Tabs.d.ts +14 -7
- package/Tabs/Tabs.js +32 -11
- package/Tabs/Tabs.js.map +1 -1
- package/Tabs/Tabs.mdx +27 -0
- package/Tabs/Tabs.stories.d.ts +2 -1
- package/Tabs/Tabs.stories.js +19 -1
- package/Tabs/Tabs.stories.js.map +1 -1
- package/Tabs/components/Content.d.ts +1 -1
- package/Tabs/components/List.d.ts +2 -2
- package/Tabs/components/Tab.d.ts +7 -6
- package/Tabs/components/Trigger.d.ts +3 -2
- package/Tabs/components/Trigger.js +8 -3
- package/Tabs/components/Trigger.js.map +1 -1
- package/Tag/Tag.d.ts +8 -7
- package/Tag/Tag.stories.d.ts +1 -1
- package/Tag/Tag.stories.js.map +1 -1
- package/Tags/Tags.d.ts +7 -6
- package/Tags/Tags.stories.d.ts +1 -1
- package/Tags/Tags.stories.js.map +1 -1
- package/Tags/primitives/TagsPrimitive.d.ts +7 -6
- package/Tags/primitives/TagsPrimitive.stories.d.ts +1 -1
- package/Tags/primitives/TagsPrimitive.stories.js.map +1 -1
- package/Text/Text.d.ts +8 -7
- package/Text/Text.stories.d.ts +1 -1
- package/Text/Text.stories.js.map +1 -1
- package/Textarea/Textarea.d.ts +7 -6
- package/Textarea/Textarea.stories.d.ts +1 -1
- package/Textarea/Textarea.stories.js.map +1 -1
- package/Textarea/TextareaPrimitive.d.ts +9 -8
- package/Textarea/TextareaPrimitive.stories.d.ts +1 -1
- package/Textarea/TextareaPrimitive.stories.js.map +1 -1
- package/TimeAgo/TimeAgo.stories.d.ts +1 -1
- package/TimeAgo/TimeAgo.stories.js.map +1 -1
- package/TimeAgo/getElapsedSeconds.js +3 -3
- package/TimeAgo/getElapsedSeconds.js.map +1 -1
- package/Toast/Toast.d.ts +7 -6
- package/Toast/components/ToastActions.d.ts +7 -6
- package/Toast/components/ToastDescription.d.ts +7 -6
- package/Toast/components/ToastTitle.d.ts +7 -6
- package/Toast/useToast.stories.d.ts +1 -1
- package/Toast/useToast.stories.js.map +1 -1
- package/Toggle/Toggle.d.ts +7 -6
- package/Toggle/Toggle.stories.d.ts +1 -1
- package/Toggle/Toggle.stories.js.map +1 -1
- package/Toggle/primitives/TogglePrimitive.d.ts +13 -9
- package/Toggle/primitives/TogglePrimitive.stories.d.ts +1 -1
- package/Toggle/primitives/TogglePrimitive.stories.js.map +1 -1
- package/ToggleGroup/ToggleGroup.d.ts +7 -6
- package/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
- package/ToggleGroup/ToggleGroup.stories.js.map +1 -1
- package/ToggleGroup/domains/ToggleGroupItem.d.ts +3 -0
- package/ToggleGroup/domains/ToggleGroupItem.js +6 -1
- package/ToggleGroup/domains/ToggleGroupItem.js.map +1 -1
- package/ToggleGroup/domains/ToggleGroupItemFormatted.d.ts +1 -0
- package/ToggleGroup/domains/ToggleGroupItemFormatter.js +2 -1
- package/ToggleGroup/domains/ToggleGroupItemFormatter.js.map +1 -1
- package/ToggleGroup/domains/ToggleGroupItemParams.d.ts +1 -0
- package/ToggleGroup/primitives/ToggleGroupPrimitive.d.ts +13 -9
- package/ToggleGroup/primitives/ToggleGroupPrimitive.js +12 -3
- package/ToggleGroup/primitives/ToggleGroupPrimitive.js.map +1 -1
- package/ToggleGroup/primitives/ToggleGroupPrimitive.stories.d.ts +1 -1
- package/ToggleGroup/primitives/ToggleGroupPrimitive.stories.js.map +1 -1
- package/Tooltip/Tooltip.d.ts +7 -6
- package/Tooltip/Tooltip.stories.d.ts +1 -1
- package/Tooltip/Tooltip.stories.js.map +1 -1
- package/Tree/Tree.d.ts +7 -6
- package/Tree/Tree.stories.d.ts +1 -1
- package/Tree/Tree.stories.js.map +1 -1
- package/Tree/components/Item.d.ts +7 -6
- package/Tree/components/ItemCollapseTrigger.d.ts +7 -6
- package/Tree/components/ItemContent.d.ts +8 -6
- package/Tree/components/ItemDragHandle.d.ts +7 -6
- package/Tree/components/ItemIcon.d.ts +7 -6
- package/Tree/components/ItemPlaceholder.d.ts +7 -6
- package/Tree/components/ItemSubIndentation.d.ts +7 -6
- package/Tree/useTree.js +6 -2
- package/Tree/useTree.js.map +1 -1
- package/Widget/Widget.d.ts +8 -22
- package/Widget/Widget.stories.d.ts +1 -1
- package/Widget/Widget.stories.js.map +1 -1
- package/Widget/components/Icon.d.ts +7 -6
- package/Widget/components/WidgetAction.d.ts +8 -6
- package/Widget/components/WidgetContent.d.ts +5 -5
- package/exports/admin/ui.d.ts +3 -0
- package/exports/admin/ui.js +3 -0
- package/hooks/index.d.ts +1 -0
- package/hooks/index.js +1 -0
- package/hooks/useEscapeScrollLock.d.ts +13 -0
- package/hooks/useEscapeScrollLock.js +21 -0
- package/hooks/useEscapeScrollLock.js.map +1 -0
- package/index.d.ts +8 -0
- package/index.js +8 -0
- package/package.json +33 -35
- package/theme.css +52 -0
- package/utils.js +53 -34
- package/utils.js.map +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyState/illustrations/SelectIllustration.js","sources":["../../../src/EmptyState/illustrations/SelectIllustration.tsx"],"sourcesContent":["import React from \"react\";\n\nexport const SelectIllustration = (props: React.SVGProps<SVGSVGElement>) => (\n <svg viewBox=\"0 0 145 120\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <g>\n <g>\n <g filter=\"url(#es_select_filter0_d_6795_48832)\">\n <path\n d=\"M9.83984 16.4211C9.83984 12.0029 13.4216 8.42114 17.8398 8.42114H126.84C131.258 8.42114 134.84 12.0029 134.84 16.4211V100.421C134.84 104.839 131.258 108.421 126.84 108.421H17.8398C13.4216 108.421 9.83984 104.839 9.83984 100.421V16.4211Z\"\n fill=\"white\"\n />\n </g>\n <rect\n x=\"21.0376\"\n y=\"35.5716\"\n width=\"30.1421\"\n height=\"6.06791\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"21.0376\"\n y=\"54.0071\"\n width=\"30.1421\"\n height=\"6.06791\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"21.0376\"\n y=\"44.5868\"\n width=\"30.1421\"\n height=\"6.47244\"\n rx=\"1.71\"\n fill=\"#FA5723\"\n />\n <rect\n x=\"21.0376\"\n y=\"63.0223\"\n width=\"30.1421\"\n height=\"6.47244\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"59.0981\"\n y=\"35.5716\"\n width=\"64.1833\"\n height=\"57.6158\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <ellipse cx=\"20.7858\" cy=\"18.8146\" rx=\"2.47525\" ry=\"2.5\" fill=\"#FA5723\" />\n <ellipse cx=\"28.8302\" cy=\"18.8146\" rx=\"2.47525\" ry=\"2.5\" fill=\"#FA5723\" />\n <ellipse cx=\"37.4933\" cy=\"18.8146\" rx=\"2.47525\" ry=\"2.5\" fill=\"#FA5723\" />\n </g>\n </g>\n <defs>\n <filter\n id=\"es_select_filter0_d_6795_48832\"\n x=\"-0.000156403\"\n y=\"-2.15769e-05\"\n width=\"144.68\"\n height=\"119.68\"\n filterUnits=\"userSpaceOnUse\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feFlood floodOpacity=\"0\" result=\"BackgroundImageFix\" />\n <feColorMatrix\n in=\"SourceAlpha\"\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n result=\"hardAlpha\"\n />\n <feOffset dy=\"1.41884\" />\n <feGaussianBlur stdDeviation=\"4.92\" />\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0\" />\n <feBlend\n mode=\"normal\"\n in2=\"BackgroundImageFix\"\n result=\"effect1_dropShadow_6795_48832\"\n />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"effect1_dropShadow_6795_48832\"\n result=\"shape\"\n />\n </filter>\n </defs>\n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K;QACL,IAAG;QACH,KAAI;QACJ,QAAO"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
const TableIllustration = (props)=>/*#__PURE__*/ react.createElement("svg", {
|
|
3
|
+
viewBox: "0 0 145 120",
|
|
4
|
+
fill: "none",
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
...props
|
|
7
|
+
}, /*#__PURE__*/ react.createElement("g", null, /*#__PURE__*/ react.createElement("g", null, /*#__PURE__*/ react.createElement("g", null, /*#__PURE__*/ react.createElement("g", {
|
|
8
|
+
filter: "url(#es_table_filter0_d_6795_48832)"
|
|
9
|
+
}, /*#__PURE__*/ react.createElement("path", {
|
|
10
|
+
d: "M9.83984 16.4212C9.83984 12.0029 13.4216 8.42116 17.8398 8.42116H126.84C131.258 8.42116 134.84 12.0029 134.84 16.4212V100.421C134.84 104.839 131.258 108.421 126.84 108.421H17.8398C13.4216 108.421 9.83984 104.839 9.83984 100.421V16.4212Z",
|
|
11
|
+
fill: "white"
|
|
12
|
+
})), /*#__PURE__*/ react.createElement("ellipse", {
|
|
13
|
+
cx: "20.7853",
|
|
14
|
+
cy: "18.8145",
|
|
15
|
+
rx: "2.47525",
|
|
16
|
+
ry: "2.5",
|
|
17
|
+
fill: "#FA5723"
|
|
18
|
+
}), /*#__PURE__*/ react.createElement("ellipse", {
|
|
19
|
+
cx: "28.8302",
|
|
20
|
+
cy: "18.8145",
|
|
21
|
+
rx: "2.47525",
|
|
22
|
+
ry: "2.5",
|
|
23
|
+
fill: "#FA5723"
|
|
24
|
+
}), /*#__PURE__*/ react.createElement("ellipse", {
|
|
25
|
+
cx: "37.4938",
|
|
26
|
+
cy: "18.8145",
|
|
27
|
+
rx: "2.47525",
|
|
28
|
+
ry: "2.5",
|
|
29
|
+
fill: "#FA5723"
|
|
30
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
31
|
+
x: "18.3101",
|
|
32
|
+
y: "38.553",
|
|
33
|
+
width: "24.953",
|
|
34
|
+
height: "6.04586",
|
|
35
|
+
rx: "1.71",
|
|
36
|
+
fill: "#F0F1F3"
|
|
37
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
38
|
+
x: "18.3101",
|
|
39
|
+
y: "56.6906",
|
|
40
|
+
width: "24.953",
|
|
41
|
+
height: "7.0535",
|
|
42
|
+
rx: "1.71",
|
|
43
|
+
fill: "#F0F1F3"
|
|
44
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
45
|
+
x: "18.3101",
|
|
46
|
+
y: "47.6218",
|
|
47
|
+
width: "24.953",
|
|
48
|
+
height: "6.04586",
|
|
49
|
+
rx: "1.71",
|
|
50
|
+
fill: "#F0F1F3"
|
|
51
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
52
|
+
x: "18.3101",
|
|
53
|
+
y: "66.767",
|
|
54
|
+
width: "24.953",
|
|
55
|
+
height: "7.0535",
|
|
56
|
+
rx: "1.71",
|
|
57
|
+
fill: "#F0F1F3"
|
|
58
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
59
|
+
x: "45.9531",
|
|
60
|
+
y: "38.553",
|
|
61
|
+
width: "24.953",
|
|
62
|
+
height: "6.04586",
|
|
63
|
+
rx: "1.71",
|
|
64
|
+
fill: "#F0F1F3"
|
|
65
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
66
|
+
x: "45.9531",
|
|
67
|
+
y: "56.8422",
|
|
68
|
+
width: "24.953",
|
|
69
|
+
height: "7.0535",
|
|
70
|
+
rx: "1.71",
|
|
71
|
+
fill: "#F0F1F3"
|
|
72
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
73
|
+
x: "45.9531",
|
|
74
|
+
y: "47.6976",
|
|
75
|
+
width: "24.953",
|
|
76
|
+
height: "6.04586",
|
|
77
|
+
rx: "1.71",
|
|
78
|
+
fill: "#F0F1F3"
|
|
79
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
80
|
+
x: "45.9531",
|
|
81
|
+
y: "66.9944",
|
|
82
|
+
width: "24.953",
|
|
83
|
+
height: "7.0535",
|
|
84
|
+
rx: "1.71",
|
|
85
|
+
fill: "#F0F1F3"
|
|
86
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
87
|
+
x: "73.4009",
|
|
88
|
+
y: "38.553",
|
|
89
|
+
width: "24.953",
|
|
90
|
+
height: "6.04586",
|
|
91
|
+
rx: "1.71",
|
|
92
|
+
fill: "#F0F1F3"
|
|
93
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
94
|
+
x: "73.4009",
|
|
95
|
+
y: "56.8422",
|
|
96
|
+
width: "24.953",
|
|
97
|
+
height: "7.0535",
|
|
98
|
+
rx: "1.71",
|
|
99
|
+
fill: "#F0F1F3"
|
|
100
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
101
|
+
x: "73.4009",
|
|
102
|
+
y: "47.6976",
|
|
103
|
+
width: "24.953",
|
|
104
|
+
height: "6.04586",
|
|
105
|
+
rx: "1.71",
|
|
106
|
+
fill: "#F0F1F3"
|
|
107
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
108
|
+
x: "73.4009",
|
|
109
|
+
y: "66.9944",
|
|
110
|
+
width: "24.953",
|
|
111
|
+
height: "7.0535",
|
|
112
|
+
rx: "1.71",
|
|
113
|
+
fill: "#F0F1F3"
|
|
114
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
115
|
+
x: "100.85",
|
|
116
|
+
y: "38.553",
|
|
117
|
+
width: "24.953",
|
|
118
|
+
height: "6.04586",
|
|
119
|
+
rx: "1.71",
|
|
120
|
+
fill: "#F0F1F3"
|
|
121
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
122
|
+
x: "100.85",
|
|
123
|
+
y: "56.8422",
|
|
124
|
+
width: "24.953",
|
|
125
|
+
height: "7.0535",
|
|
126
|
+
rx: "1.71",
|
|
127
|
+
fill: "#F0F1F3"
|
|
128
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
129
|
+
x: "100.85",
|
|
130
|
+
y: "47.6976",
|
|
131
|
+
width: "24.953",
|
|
132
|
+
height: "6.04586",
|
|
133
|
+
rx: "1.71",
|
|
134
|
+
fill: "#F0F1F3"
|
|
135
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
136
|
+
x: "100.85",
|
|
137
|
+
y: "66.9944",
|
|
138
|
+
width: "24.953",
|
|
139
|
+
height: "7.0535",
|
|
140
|
+
rx: "1.71",
|
|
141
|
+
fill: "#F0F1F3"
|
|
142
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
143
|
+
x: "18.3101",
|
|
144
|
+
y: "76.8435",
|
|
145
|
+
width: "24.953",
|
|
146
|
+
height: "7.0535",
|
|
147
|
+
rx: "1.71",
|
|
148
|
+
fill: "#F0F1F3"
|
|
149
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
150
|
+
x: "18.3101",
|
|
151
|
+
y: "86.9199",
|
|
152
|
+
width: "24.953",
|
|
153
|
+
height: "7.0535",
|
|
154
|
+
rx: "1.71",
|
|
155
|
+
fill: "#F0F1F3"
|
|
156
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
157
|
+
x: "45.9531",
|
|
158
|
+
y: "77.1466",
|
|
159
|
+
width: "24.953",
|
|
160
|
+
height: "7.0535",
|
|
161
|
+
rx: "1.71",
|
|
162
|
+
fill: "#F0F1F3"
|
|
163
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
164
|
+
x: "45.9531",
|
|
165
|
+
y: "87.2988",
|
|
166
|
+
width: "24.953",
|
|
167
|
+
height: "7.0535",
|
|
168
|
+
rx: "1.71",
|
|
169
|
+
fill: "#F0F1F3"
|
|
170
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
171
|
+
x: "73.4009",
|
|
172
|
+
y: "77.1466",
|
|
173
|
+
width: "24.953",
|
|
174
|
+
height: "7.0535",
|
|
175
|
+
rx: "1.71",
|
|
176
|
+
fill: "#F0F1F3"
|
|
177
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
178
|
+
x: "73.4009",
|
|
179
|
+
y: "87.2988",
|
|
180
|
+
width: "24.953",
|
|
181
|
+
height: "7.0535",
|
|
182
|
+
rx: "1.71",
|
|
183
|
+
fill: "#F0F1F3"
|
|
184
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
185
|
+
x: "100.85",
|
|
186
|
+
y: "77.1466",
|
|
187
|
+
width: "24.953",
|
|
188
|
+
height: "7.0535",
|
|
189
|
+
rx: "1.71",
|
|
190
|
+
fill: "#F0F1F3"
|
|
191
|
+
}), /*#__PURE__*/ react.createElement("rect", {
|
|
192
|
+
x: "100.85",
|
|
193
|
+
y: "87.2988",
|
|
194
|
+
width: "24.953",
|
|
195
|
+
height: "7.0535",
|
|
196
|
+
rx: "1.71",
|
|
197
|
+
fill: "#F0F1F3"
|
|
198
|
+
})))), /*#__PURE__*/ react.createElement("defs", null, /*#__PURE__*/ react.createElement("filter", {
|
|
199
|
+
id: "es_table_filter0_d_6795_48832",
|
|
200
|
+
x: "-0.000156403",
|
|
201
|
+
y: "-6.31809e-06",
|
|
202
|
+
width: "144.68",
|
|
203
|
+
height: "119.68",
|
|
204
|
+
filterUnits: "userSpaceOnUse",
|
|
205
|
+
colorInterpolationFilters: "sRGB"
|
|
206
|
+
}, /*#__PURE__*/ react.createElement("feFlood", {
|
|
207
|
+
floodOpacity: "0",
|
|
208
|
+
result: "BackgroundImageFix"
|
|
209
|
+
}), /*#__PURE__*/ react.createElement("feColorMatrix", {
|
|
210
|
+
in: "SourceAlpha",
|
|
211
|
+
type: "matrix",
|
|
212
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
213
|
+
result: "hardAlpha"
|
|
214
|
+
}), /*#__PURE__*/ react.createElement("feOffset", {
|
|
215
|
+
dy: "1.41884"
|
|
216
|
+
}), /*#__PURE__*/ react.createElement("feGaussianBlur", {
|
|
217
|
+
stdDeviation: "4.92"
|
|
218
|
+
}), /*#__PURE__*/ react.createElement("feColorMatrix", {
|
|
219
|
+
type: "matrix",
|
|
220
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
221
|
+
}), /*#__PURE__*/ react.createElement("feBlend", {
|
|
222
|
+
mode: "normal",
|
|
223
|
+
in2: "BackgroundImageFix",
|
|
224
|
+
result: "effect1_dropShadow_6795_48832"
|
|
225
|
+
}), /*#__PURE__*/ react.createElement("feBlend", {
|
|
226
|
+
mode: "normal",
|
|
227
|
+
in: "SourceGraphic",
|
|
228
|
+
in2: "effect1_dropShadow_6795_48832",
|
|
229
|
+
result: "shape"
|
|
230
|
+
}))));
|
|
231
|
+
export { TableIllustration };
|
|
232
|
+
|
|
233
|
+
//# sourceMappingURL=TableIllustration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyState/illustrations/TableIllustration.js","sources":["../../../src/EmptyState/illustrations/TableIllustration.tsx"],"sourcesContent":["import React from \"react\";\n\nexport const TableIllustration = (props: React.SVGProps<SVGSVGElement>) => (\n <svg viewBox=\"0 0 145 120\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <g>\n <g>\n <g>\n <g filter=\"url(#es_table_filter0_d_6795_48832)\">\n <path\n d=\"M9.83984 16.4212C9.83984 12.0029 13.4216 8.42116 17.8398 8.42116H126.84C131.258 8.42116 134.84 12.0029 134.84 16.4212V100.421C134.84 104.839 131.258 108.421 126.84 108.421H17.8398C13.4216 108.421 9.83984 104.839 9.83984 100.421V16.4212Z\"\n fill=\"white\"\n />\n </g>\n <ellipse cx=\"20.7853\" cy=\"18.8145\" rx=\"2.47525\" ry=\"2.5\" fill=\"#FA5723\" />\n <ellipse cx=\"28.8302\" cy=\"18.8145\" rx=\"2.47525\" ry=\"2.5\" fill=\"#FA5723\" />\n <ellipse cx=\"37.4938\" cy=\"18.8145\" rx=\"2.47525\" ry=\"2.5\" fill=\"#FA5723\" />\n <rect\n x=\"18.3101\"\n y=\"38.553\"\n width=\"24.953\"\n height=\"6.04586\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"18.3101\"\n y=\"56.6906\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"18.3101\"\n y=\"47.6218\"\n width=\"24.953\"\n height=\"6.04586\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"18.3101\"\n y=\"66.767\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"45.9531\"\n y=\"38.553\"\n width=\"24.953\"\n height=\"6.04586\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"45.9531\"\n y=\"56.8422\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"45.9531\"\n y=\"47.6976\"\n width=\"24.953\"\n height=\"6.04586\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"45.9531\"\n y=\"66.9944\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"73.4009\"\n y=\"38.553\"\n width=\"24.953\"\n height=\"6.04586\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"73.4009\"\n y=\"56.8422\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"73.4009\"\n y=\"47.6976\"\n width=\"24.953\"\n height=\"6.04586\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"73.4009\"\n y=\"66.9944\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"100.85\"\n y=\"38.553\"\n width=\"24.953\"\n height=\"6.04586\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"100.85\"\n y=\"56.8422\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"100.85\"\n y=\"47.6976\"\n width=\"24.953\"\n height=\"6.04586\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"100.85\"\n y=\"66.9944\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"18.3101\"\n y=\"76.8435\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"18.3101\"\n y=\"86.9199\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"45.9531\"\n y=\"77.1466\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"45.9531\"\n y=\"87.2988\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"73.4009\"\n y=\"77.1466\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"73.4009\"\n y=\"87.2988\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"100.85\"\n y=\"77.1466\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n <rect\n x=\"100.85\"\n y=\"87.2988\"\n width=\"24.953\"\n height=\"7.0535\"\n rx=\"1.71\"\n fill=\"#F0F1F3\"\n />\n </g>\n </g>\n </g>\n <defs>\n <filter\n id=\"es_table_filter0_d_6795_48832\"\n x=\"-0.000156403\"\n y=\"-6.31809e-06\"\n width=\"144.68\"\n height=\"119.68\"\n filterUnits=\"userSpaceOnUse\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feFlood floodOpacity=\"0\" result=\"BackgroundImageFix\" />\n <feColorMatrix\n in=\"SourceAlpha\"\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n result=\"hardAlpha\"\n />\n <feOffset dy=\"1.41884\" />\n <feGaussianBlur stdDeviation=\"4.92\" />\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0\" />\n <feBlend\n mode=\"normal\"\n in2=\"BackgroundImageFix\"\n result=\"effect1_dropShadow_6795_48832\"\n />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"effect1_dropShadow_6795_48832\"\n result=\"shape\"\n />\n </filter>\n </defs>\n </svg>\n);\n"],"names":["TableIllustration","props"],"mappings":";AAEO,MAAMA,oBAAoB,CAACC,QAAAA,WAAAA,GAC9B,oBAAC;QAAI,SAAQ;QAAc,MAAK;QAAO,OAAM;QAA8B,GAAGA,KAAK;qBAC/E,oBAAC,yBACG,oBAAC,yBACG,oBAAC,yBACG,oBAAC;QAAE,QAAO;qBACN,oBAAC;QACG,GAAE;QACF,MAAK;uBAGb,oBAAC;QAAQ,IAAG;QAAU,IAAG;QAAU,IAAG;QAAU,IAAG;QAAM,MAAK;sBAC9D,oBAAC;QAAQ,IAAG;QAAU,IAAG;QAAU,IAAG;QAAU,IAAG;QAAM,MAAK;sBAC9D,oBAAC;QAAQ,IAAG;QAAU,IAAG;QAAU,IAAG;QAAU,IAAG;QAAM,MAAK;sBAC9D,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;sBAET,oBAAC;QACG,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,IAAG;QACH,MAAK;yBAKrB,oBAAC,4BACG,oBAAC;QACG,IAAG;QACH,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,aAAY;QACZ,2BAA0B;qBAE1B,oBAAC;QAAQ,cAAa;QAAI,QAAO;sBACjC,oBAAC;QACG,IAAG;QACH,MAAK;QACL,QAAO;QACP,QAAO;sBAEX,oBAAC;QAAS,IAAG;sBACb,oBAAC;QAAe,cAAa;sBAC7B,oBAAC;QAAc,MAAK;QAAS,QAAO;sBACpC,oBAAC;QACG,MAAK;QACL,KAAI;QACJ,QAAO;sBAEX,oBAAC;QACG,MAAK;QACL,IAAG;QACH,KAAI;QACJ,QAAO"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import react from "react";
|
|
2
|
+
const UploadIllustration = (props)=>/*#__PURE__*/ react.createElement("svg", {
|
|
3
|
+
viewBox: "0 0 145 120",
|
|
4
|
+
fill: "none",
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
...props
|
|
7
|
+
}, /*#__PURE__*/ react.createElement("g", null, /*#__PURE__*/ react.createElement("g", null, /*#__PURE__*/ react.createElement("g", null, /*#__PURE__*/ react.createElement("g", {
|
|
8
|
+
filter: "url(#es_upload_filter0_d_6795_48832)"
|
|
9
|
+
}, /*#__PURE__*/ react.createElement("path", {
|
|
10
|
+
d: "M9.83984 16.4211C9.83984 12.0029 13.4216 8.42114 17.8398 8.42114H126.84C131.258 8.42114 134.84 12.0029 134.84 16.4211V100.421C134.84 104.839 131.258 108.421 126.84 108.421H17.8398C13.4216 108.421 9.83984 104.839 9.83984 100.421V16.4211Z",
|
|
11
|
+
fill: "white"
|
|
12
|
+
})), /*#__PURE__*/ react.createElement("ellipse", {
|
|
13
|
+
cx: "20.7853",
|
|
14
|
+
cy: "18.8145",
|
|
15
|
+
rx: "2.47525",
|
|
16
|
+
ry: "2.5",
|
|
17
|
+
fill: "#FA5723"
|
|
18
|
+
}), /*#__PURE__*/ react.createElement("ellipse", {
|
|
19
|
+
cx: "28.8302",
|
|
20
|
+
cy: "18.8145",
|
|
21
|
+
rx: "2.47525",
|
|
22
|
+
ry: "2.5",
|
|
23
|
+
fill: "#FA5723"
|
|
24
|
+
}), /*#__PURE__*/ react.createElement("ellipse", {
|
|
25
|
+
cx: "37.4938",
|
|
26
|
+
cy: "18.8145",
|
|
27
|
+
rx: "2.47525",
|
|
28
|
+
ry: "2.5",
|
|
29
|
+
fill: "#FA5723"
|
|
30
|
+
}), /*#__PURE__*/ react.createElement("g", {
|
|
31
|
+
clipPath: "url(#es_upload_clip0_6795_48832)"
|
|
32
|
+
}, /*#__PURE__*/ react.createElement("path", {
|
|
33
|
+
d: "M89.2764 58.5558C87.8065 50.8348 81.2568 45.0385 73.3885 45.0385C67.1415 45.0385 61.7158 48.7088 59.0138 54.0799C52.5074 54.796 47.4492 60.5028 47.4492 67.4181C47.4492 74.8257 53.2639 80.8458 60.4189 80.8458H88.5198C94.4858 80.8458 99.3278 75.8328 99.3278 69.656C99.3278 63.7478 94.8965 58.9586 89.2764 58.5558ZM88.5198 76.3699H60.4189C55.6417 76.3699 51.7724 72.364 51.7724 67.4181C51.7724 62.8303 55.0797 59.0034 59.4678 58.5334L61.7807 58.2872L62.8615 56.1612C64.915 52.0657 68.9356 49.5144 73.3885 49.5144C79.0519 49.5144 83.9372 53.677 85.0396 59.4286L85.6881 62.7855L88.9953 63.0317C92.3675 63.2555 95.0046 66.1872 95.0046 69.656C95.0046 73.3487 92.0864 76.3699 88.5198 76.3699ZM64.7421 65.1801H70.2542V71.894H76.5229V65.1801H82.035L73.3885 56.2283L64.7421 65.1801Z",
|
|
34
|
+
fill: "#BEC3CC"
|
|
35
|
+
}))))), /*#__PURE__*/ react.createElement("defs", null, /*#__PURE__*/ react.createElement("filter", {
|
|
36
|
+
id: "es_upload_filter0_d_6795_48832",
|
|
37
|
+
x: "-0.000156403",
|
|
38
|
+
y: "-2.15769e-05",
|
|
39
|
+
width: "144.68",
|
|
40
|
+
height: "119.68",
|
|
41
|
+
filterUnits: "userSpaceOnUse",
|
|
42
|
+
colorInterpolationFilters: "sRGB"
|
|
43
|
+
}, /*#__PURE__*/ react.createElement("feFlood", {
|
|
44
|
+
floodOpacity: "0",
|
|
45
|
+
result: "BackgroundImageFix"
|
|
46
|
+
}), /*#__PURE__*/ react.createElement("feColorMatrix", {
|
|
47
|
+
in: "SourceAlpha",
|
|
48
|
+
type: "matrix",
|
|
49
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
50
|
+
result: "hardAlpha"
|
|
51
|
+
}), /*#__PURE__*/ react.createElement("feOffset", {
|
|
52
|
+
dy: "1.41884"
|
|
53
|
+
}), /*#__PURE__*/ react.createElement("feGaussianBlur", {
|
|
54
|
+
stdDeviation: "4.92"
|
|
55
|
+
}), /*#__PURE__*/ react.createElement("feColorMatrix", {
|
|
56
|
+
type: "matrix",
|
|
57
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
58
|
+
}), /*#__PURE__*/ react.createElement("feBlend", {
|
|
59
|
+
mode: "normal",
|
|
60
|
+
in2: "BackgroundImageFix",
|
|
61
|
+
result: "effect1_dropShadow_6795_48832"
|
|
62
|
+
}), /*#__PURE__*/ react.createElement("feBlend", {
|
|
63
|
+
mode: "normal",
|
|
64
|
+
in: "SourceGraphic",
|
|
65
|
+
in2: "effect1_dropShadow_6795_48832",
|
|
66
|
+
result: "shape"
|
|
67
|
+
})), /*#__PURE__*/ react.createElement("clipPath", {
|
|
68
|
+
id: "es_upload_clip0_6795_48832"
|
|
69
|
+
}, /*#__PURE__*/ react.createElement("rect", {
|
|
70
|
+
width: "51.8786",
|
|
71
|
+
height: "53.7109",
|
|
72
|
+
fill: "white",
|
|
73
|
+
transform: "translate(47.4492 36.0867)"
|
|
74
|
+
}))));
|
|
75
|
+
export { UploadIllustration };
|
|
76
|
+
|
|
77
|
+
//# sourceMappingURL=UploadIllustration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyState/illustrations/UploadIllustration.js","sources":["../../../src/EmptyState/illustrations/UploadIllustration.tsx"],"sourcesContent":["import React from \"react\";\n\nexport const UploadIllustration = (props: React.SVGProps<SVGSVGElement>) => (\n <svg viewBox=\"0 0 145 120\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <g>\n <g>\n <g>\n <g filter=\"url(#es_upload_filter0_d_6795_48832)\">\n <path\n d=\"M9.83984 16.4211C9.83984 12.0029 13.4216 8.42114 17.8398 8.42114H126.84C131.258 8.42114 134.84 12.0029 134.84 16.4211V100.421C134.84 104.839 131.258 108.421 126.84 108.421H17.8398C13.4216 108.421 9.83984 104.839 9.83984 100.421V16.4211Z\"\n fill=\"white\"\n />\n </g>\n <ellipse cx=\"20.7853\" cy=\"18.8145\" rx=\"2.47525\" ry=\"2.5\" fill=\"#FA5723\" />\n <ellipse cx=\"28.8302\" cy=\"18.8145\" rx=\"2.47525\" ry=\"2.5\" fill=\"#FA5723\" />\n <ellipse cx=\"37.4938\" cy=\"18.8145\" rx=\"2.47525\" ry=\"2.5\" fill=\"#FA5723\" />\n <g clipPath=\"url(#es_upload_clip0_6795_48832)\">\n <path\n d=\"M89.2764 58.5558C87.8065 50.8348 81.2568 45.0385 73.3885 45.0385C67.1415 45.0385 61.7158 48.7088 59.0138 54.0799C52.5074 54.796 47.4492 60.5028 47.4492 67.4181C47.4492 74.8257 53.2639 80.8458 60.4189 80.8458H88.5198C94.4858 80.8458 99.3278 75.8328 99.3278 69.656C99.3278 63.7478 94.8965 58.9586 89.2764 58.5558ZM88.5198 76.3699H60.4189C55.6417 76.3699 51.7724 72.364 51.7724 67.4181C51.7724 62.8303 55.0797 59.0034 59.4678 58.5334L61.7807 58.2872L62.8615 56.1612C64.915 52.0657 68.9356 49.5144 73.3885 49.5144C79.0519 49.5144 83.9372 53.677 85.0396 59.4286L85.6881 62.7855L88.9953 63.0317C92.3675 63.2555 95.0046 66.1872 95.0046 69.656C95.0046 73.3487 92.0864 76.3699 88.5198 76.3699ZM64.7421 65.1801H70.2542V71.894H76.5229V65.1801H82.035L73.3885 56.2283L64.7421 65.1801Z\"\n fill=\"#BEC3CC\"\n />\n </g>\n </g>\n </g>\n </g>\n <defs>\n <filter\n id=\"es_upload_filter0_d_6795_48832\"\n x=\"-0.000156403\"\n y=\"-2.15769e-05\"\n width=\"144.68\"\n height=\"119.68\"\n filterUnits=\"userSpaceOnUse\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feFlood floodOpacity=\"0\" result=\"BackgroundImageFix\" />\n <feColorMatrix\n in=\"SourceAlpha\"\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n result=\"hardAlpha\"\n />\n <feOffset dy=\"1.41884\" />\n <feGaussianBlur stdDeviation=\"4.92\" />\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0\" />\n <feBlend\n mode=\"normal\"\n in2=\"BackgroundImageFix\"\n result=\"effect1_dropShadow_6795_48832\"\n />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"effect1_dropShadow_6795_48832\"\n result=\"shape\"\n />\n </filter>\n <clipPath id=\"es_upload_clip0_6795_48832\">\n <rect\n width=\"51.8786\"\n height=\"53.7109\"\n fill=\"white\"\n transform=\"translate(47.4492 36.0867)\"\n />\n </clipPath>\n </defs>\n </svg>\n);\n"],"names":["UploadIllustration","props"],"mappings":";AAEO,MAAMA,qBAAqB,CAACC,QAAAA,WAAAA,GAC/B,oBAAC;QAAI,SAAQ;QAAc,MAAK;QAAO,OAAM;QAA8B,GAAGA,KAAK;qBAC/E,oBAAC,yBACG,oBAAC,yBACG,oBAAC,yBACG,oBAAC;QAAE,QAAO;qBACN,oBAAC;QACG,GAAE;QACF,MAAK;uBAGb,oBAAC;QAAQ,IAAG;QAAU,IAAG;QAAU,IAAG;QAAU,IAAG;QAAM,MAAK;sBAC9D,oBAAC;QAAQ,IAAG;QAAU,IAAG;QAAU,IAAG;QAAU,IAAG;QAAM,MAAK;sBAC9D,oBAAC;QAAQ,IAAG;QAAU,IAAG;QAAU,IAAG;QAAU,IAAG;QAAM,MAAK;sBAC9D,oBAAC;QAAE,UAAS;qBACR,oBAAC;QACG,GAAE;QACF,MAAK;0BAMzB,oBAAC,4BACG,oBAAC;QACG,IAAG;QACH,GAAE;QACF,GAAE;QACF,OAAM;QACN,QAAO;QACP,aAAY;QACZ,2BAA0B;qBAE1B,oBAAC;QAAQ,cAAa;QAAI,QAAO;sBACjC,oBAAC;QACG,IAAG;QACH,MAAK;QACL,QAAO;QACP,QAAO;sBAEX,oBAAC;QAAS,IAAG;sBACb,oBAAC;QAAe,cAAa;sBAC7B,oBAAC;QAAc,MAAK;QAAS,QAAO;sBACpC,oBAAC;QACG,MAAK;QACL,KAAI;QACJ,QAAO;sBAEX,oBAAC;QACG,MAAK;QACL,IAAG;QACH,KAAI;QACJ,QAAO;uBAGf,oBAAC;QAAS,IAAG;qBACT,oBAAC;QACG,OAAM;QACN,QAAO;QACP,MAAK;QACL,WAAU"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { ContentIllustration } from "./ContentIllustration.js";
|
|
2
|
+
export { TableIllustration } from "./TableIllustration.js";
|
|
3
|
+
export { ListingIllustration } from "./ListingIllustration.js";
|
|
4
|
+
export { LayoutIllustration } from "./LayoutIllustration.js";
|
|
5
|
+
export { UploadIllustration } from "./UploadIllustration.js";
|
|
6
|
+
export { SelectIllustration } from "./SelectIllustration.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { ContentIllustration } from "./ContentIllustration.js";
|
|
2
|
+
export { TableIllustration } from "./TableIllustration.js";
|
|
3
|
+
export { ListingIllustration } from "./ListingIllustration.js";
|
|
4
|
+
export { LayoutIllustration } from "./LayoutIllustration.js";
|
|
5
|
+
export { UploadIllustration } from "./UploadIllustration.js";
|
|
6
|
+
export { SelectIllustration } from "./SelectIllustration.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./EmptyState.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./EmptyState.js";
|
|
@@ -2,60 +2,61 @@ import React from "react";
|
|
|
2
2
|
import { type FilePickerPrimitiveProps } from "./primitives/index.js";
|
|
3
3
|
import { type FormComponentProps } from "../FormComponent/index.js";
|
|
4
4
|
type FilePickerProps = FilePickerPrimitiveProps & Omit<FormComponentProps, "value">;
|
|
5
|
-
declare const
|
|
6
|
-
|
|
5
|
+
declare const BaseFilePicker: ({ label, hint, description, note, required, disabled, validation, validate, onBlur: originalOnBlur, type, ...props }: FilePickerProps) => React.JSX.Element;
|
|
6
|
+
declare const FilePicker: typeof BaseFilePicker & {
|
|
7
|
+
original: typeof BaseFilePicker;
|
|
7
8
|
originalName: string;
|
|
8
9
|
displayName: string;
|
|
9
10
|
} & {
|
|
10
|
-
original:
|
|
11
|
-
original:
|
|
11
|
+
original: typeof BaseFilePicker & {
|
|
12
|
+
original: typeof BaseFilePicker;
|
|
12
13
|
originalName: string;
|
|
13
14
|
displayName: string;
|
|
14
15
|
};
|
|
15
16
|
originalName: string;
|
|
16
17
|
displayName: string;
|
|
17
18
|
} & {
|
|
18
|
-
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<
|
|
19
|
-
original:
|
|
19
|
+
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<typeof BaseFilePicker & {
|
|
20
|
+
original: typeof BaseFilePicker;
|
|
20
21
|
originalName: string;
|
|
21
22
|
displayName: string;
|
|
22
23
|
}>) => (props: unknown) => React.JSX.Element;
|
|
23
24
|
} & {
|
|
24
25
|
Preview: {
|
|
25
|
-
Image: (({ value, className, variant, disabled, onRemoveItem, onReplaceItem, onEditItem }: import("~/FilePicker/primitives/components/index.js").ImagePreviewProps) => React.JSX.Element) & {
|
|
26
|
-
original: ({ value, className, variant, disabled, onRemoveItem, onReplaceItem, onEditItem }: import("~/FilePicker/primitives/components/index.js").ImagePreviewProps) => React.JSX.Element;
|
|
26
|
+
Image: (({ value, className, variant, disabled, onRemoveItem, onReplaceItem, onEditItem, renderImage }: import("~/FilePicker/primitives/components/index.js").ImagePreviewProps) => React.JSX.Element) & {
|
|
27
|
+
original: ({ value, className, variant, disabled, onRemoveItem, onReplaceItem, onEditItem, renderImage }: import("~/FilePicker/primitives/components/index.js").ImagePreviewProps) => React.JSX.Element;
|
|
27
28
|
originalName: string;
|
|
28
29
|
displayName: string;
|
|
29
30
|
} & {
|
|
30
|
-
original: (({ value, className, variant, disabled, onRemoveItem, onReplaceItem, onEditItem }: import("~/FilePicker/primitives/components/index.js").ImagePreviewProps) => React.JSX.Element) & {
|
|
31
|
-
original: ({ value, className, variant, disabled, onRemoveItem, onReplaceItem, onEditItem }: import("~/FilePicker/primitives/components/index.js").ImagePreviewProps) => React.JSX.Element;
|
|
31
|
+
original: (({ value, className, variant, disabled, onRemoveItem, onReplaceItem, onEditItem, renderImage }: import("~/FilePicker/primitives/components/index.js").ImagePreviewProps) => React.JSX.Element) & {
|
|
32
|
+
original: ({ value, className, variant, disabled, onRemoveItem, onReplaceItem, onEditItem, renderImage }: import("~/FilePicker/primitives/components/index.js").ImagePreviewProps) => React.JSX.Element;
|
|
32
33
|
originalName: string;
|
|
33
34
|
displayName: string;
|
|
34
35
|
};
|
|
35
36
|
originalName: string;
|
|
36
37
|
displayName: string;
|
|
37
38
|
} & {
|
|
38
|
-
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ value, className, variant, disabled, onRemoveItem, onReplaceItem, onEditItem }: import("~/FilePicker/primitives/components/index.js").ImagePreviewProps) => React.JSX.Element) & {
|
|
39
|
-
original: ({ value, className, variant, disabled, onRemoveItem, onReplaceItem, onEditItem }: import("~/FilePicker/primitives/components/index.js").ImagePreviewProps) => React.JSX.Element;
|
|
39
|
+
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ value, className, variant, disabled, onRemoveItem, onReplaceItem, onEditItem, renderImage }: import("~/FilePicker/primitives/components/index.js").ImagePreviewProps) => React.JSX.Element) & {
|
|
40
|
+
original: ({ value, className, variant, disabled, onRemoveItem, onReplaceItem, onEditItem, renderImage }: import("~/FilePicker/primitives/components/index.js").ImagePreviewProps) => React.JSX.Element;
|
|
40
41
|
originalName: string;
|
|
41
42
|
displayName: string;
|
|
42
43
|
}>) => (props: unknown) => React.JSX.Element;
|
|
43
44
|
};
|
|
44
|
-
RichItem: (({ className, disabled, onRemoveItem, onReplaceItem, onEditItem, value, variant, preview, ...props }: import("~/FilePicker/primitives/components/index.js").RichItemPreviewProps) => React.JSX.Element) & {
|
|
45
|
-
original: ({ className, disabled, onRemoveItem, onReplaceItem, onEditItem, value, variant, preview, ...props }: import("~/FilePicker/primitives/components/index.js").RichItemPreviewProps) => React.JSX.Element;
|
|
45
|
+
RichItem: (({ className, disabled, onRemoveItem, onReplaceItem, onEditItem, value, variant, preview, renderImage, ...props }: import("~/FilePicker/primitives/components/index.js").RichItemPreviewProps) => React.JSX.Element) & {
|
|
46
|
+
original: ({ className, disabled, onRemoveItem, onReplaceItem, onEditItem, value, variant, preview, renderImage, ...props }: import("~/FilePicker/primitives/components/index.js").RichItemPreviewProps) => React.JSX.Element;
|
|
46
47
|
originalName: string;
|
|
47
48
|
displayName: string;
|
|
48
49
|
} & {
|
|
49
|
-
original: (({ className, disabled, onRemoveItem, onReplaceItem, onEditItem, value, variant, preview, ...props }: import("~/FilePicker/primitives/components/index.js").RichItemPreviewProps) => React.JSX.Element) & {
|
|
50
|
-
original: ({ className, disabled, onRemoveItem, onReplaceItem, onEditItem, value, variant, preview, ...props }: import("~/FilePicker/primitives/components/index.js").RichItemPreviewProps) => React.JSX.Element;
|
|
50
|
+
original: (({ className, disabled, onRemoveItem, onReplaceItem, onEditItem, value, variant, preview, renderImage, ...props }: import("~/FilePicker/primitives/components/index.js").RichItemPreviewProps) => React.JSX.Element) & {
|
|
51
|
+
original: ({ className, disabled, onRemoveItem, onReplaceItem, onEditItem, value, variant, preview, renderImage, ...props }: import("~/FilePicker/primitives/components/index.js").RichItemPreviewProps) => React.JSX.Element;
|
|
51
52
|
originalName: string;
|
|
52
53
|
displayName: string;
|
|
53
54
|
};
|
|
54
55
|
originalName: string;
|
|
55
56
|
displayName: string;
|
|
56
57
|
} & {
|
|
57
|
-
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ className, disabled, onRemoveItem, onReplaceItem, onEditItem, value, variant, preview, ...props }: import("~/FilePicker/primitives/components/index.js").RichItemPreviewProps) => React.JSX.Element) & {
|
|
58
|
-
original: ({ className, disabled, onRemoveItem, onReplaceItem, onEditItem, value, variant, preview, ...props }: import("~/FilePicker/primitives/components/index.js").RichItemPreviewProps) => React.JSX.Element;
|
|
58
|
+
createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<(({ className, disabled, onRemoveItem, onReplaceItem, onEditItem, value, variant, preview, renderImage, ...props }: import("~/FilePicker/primitives/components/index.js").RichItemPreviewProps) => React.JSX.Element) & {
|
|
59
|
+
original: ({ className, disabled, onRemoveItem, onReplaceItem, onEditItem, value, variant, preview, renderImage, ...props }: import("~/FilePicker/primitives/components/index.js").RichItemPreviewProps) => React.JSX.Element;
|
|
59
60
|
originalName: string;
|
|
60
61
|
displayName: string;
|
|
61
62
|
}>) => (props: unknown) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
2
|
import { FilePicker } from "../FilePicker/index.js";
|
|
3
3
|
declare const meta: Meta<typeof FilePicker>;
|
|
4
4
|
export default meta;
|
|
@@ -22,4 +22,10 @@ export declare const CompactWithErrors: Story;
|
|
|
22
22
|
export declare const CompactDisabled: Story;
|
|
23
23
|
export declare const CompactWithValidateFunction: Story;
|
|
24
24
|
export declare const CompactFullExample: Story;
|
|
25
|
+
/**
|
|
26
|
+
* Reproduces the Website Builder style sidebar at its 206px value column: the preview stacks,
|
|
27
|
+
* the file name truncates in the middle so the extension and version suffix survive, and the
|
|
28
|
+
* actions spell themselves out instead of costing a fixed block of the row.
|
|
29
|
+
*/
|
|
30
|
+
export declare const CompactWithLongFileNameInNarrowContainer: Story;
|
|
25
31
|
export declare const Documentation: Story;
|
|
@@ -210,6 +210,29 @@ const CompactFullExample = {
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
};
|
|
213
|
+
const CompactWithLongFileNameInNarrowContainer = {
|
|
214
|
+
args: {
|
|
215
|
+
...Compact.args
|
|
216
|
+
},
|
|
217
|
+
render: (args)=>{
|
|
218
|
+
const [selectedFile, setSelectedFile] = useState({
|
|
219
|
+
name: "tide-cc-statuses-2026-08-21-final-v2.png",
|
|
220
|
+
mimeType: "image/png",
|
|
221
|
+
size: 674161,
|
|
222
|
+
url: "https://picsum.photos/1200/800"
|
|
223
|
+
});
|
|
224
|
+
return /*#__PURE__*/ react.createElement("div", {
|
|
225
|
+
style: {
|
|
226
|
+
width: 206
|
|
227
|
+
}
|
|
228
|
+
}, /*#__PURE__*/ react.createElement(FilePicker, {
|
|
229
|
+
...args,
|
|
230
|
+
value: selectedFile,
|
|
231
|
+
onSelectItem: ()=>setSelectedFile(getFile()),
|
|
232
|
+
onRemoveItem: ()=>setSelectedFile(null)
|
|
233
|
+
}));
|
|
234
|
+
}
|
|
235
|
+
};
|
|
213
236
|
const Documentation = {
|
|
214
237
|
render: (args)=>{
|
|
215
238
|
const [selectedFile, setSelectedFile] = useState(args.value);
|
|
@@ -324,6 +347,6 @@ const Documentation = {
|
|
|
324
347
|
}
|
|
325
348
|
};
|
|
326
349
|
export default FilePicker_stories;
|
|
327
|
-
export { AreaDisabled, AreaFullExample, AreaType, AreaWithDescription, AreaWithErrors, AreaWithLabel, AreaWithLabelRequired, AreaWithNotes, AreaWithValidateFunction, Compact, CompactDisabled, CompactFullExample, CompactWithDescription, CompactWithErrors, CompactWithLabel, CompactWithLabelRequired, CompactWithNotes, CompactWithValidateFunction, Default, Documentation };
|
|
350
|
+
export { AreaDisabled, AreaFullExample, AreaType, AreaWithDescription, AreaWithErrors, AreaWithLabel, AreaWithLabelRequired, AreaWithNotes, AreaWithValidateFunction, Compact, CompactDisabled, CompactFullExample, CompactWithDescription, CompactWithErrors, CompactWithLabel, CompactWithLabelRequired, CompactWithLongFileNameInNarrowContainer, CompactWithNotes, CompactWithValidateFunction, Default, Documentation };
|
|
328
351
|
|
|
329
352
|
//# sourceMappingURL=FilePicker.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilePicker/FilePicker.stories.js","sources":["../../src/FilePicker/FilePicker.stories.tsx"],"sourcesContent":["import React, { useState, useEffect } from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react-webpack5\";\nimport { type FileItemDto, FilePicker } from \"~/FilePicker/index.js\";\n\nconst getRandomNumber = (min: number, max: number): number =>\n Math.floor(Math.random() * (max - min + 1)) + min;\n\nconst getFile = (): FileItemDto => {\n const width = getRandomNumber(500, 2000); // Random width between 500 and 2000\n const height = getRandomNumber(500, 2000); // Random height between 500 and 2000\n const fileSize = getRandomNumber(500000, 5000000); // Random file size between 500KB and 5MB\n\n return {\n name: \"selected-file.jpg\",\n mimeType: \"image/jpeg\",\n size: fileSize,\n url: `https://picsum.photos/${width}/${height}`\n };\n};\n\nconst meta: Meta<typeof FilePicker> = {\n title: \"Components/Form/FilePicker\",\n component: FilePicker,\n argTypes: {\n onSelectItem: { action: \"onSelectItem\" },\n onEditItem: { action: \"onEditItem\" },\n onRemoveItem: { action: \"onRemoveItem\" },\n disabled: {\n control: \"boolean\",\n defaultValue: false\n }\n },\n parameters: {\n layout: \"padded\"\n },\n render: args => {\n const [selectedFile, setSelectedFile] = useState(args.value);\n return (\n <FilePicker\n {...args}\n value={selectedFile}\n onSelectItem={() => setSelectedFile(getFile())}\n onRemoveItem={() => setSelectedFile(null)}\n onEditItem={() => alert(`Editing File`)}\n />\n );\n }\n};\n\nexport default meta;\ntype Story = StoryObj<typeof FilePicker>;\n\nexport const Default: Story = {};\n\nexport const AreaType: Story = {\n args: {\n ...Default.args,\n type: \"area\"\n }\n};\n\nexport const AreaWithLabel: Story = {\n args: {\n ...AreaType.args,\n label: \"Any field label\"\n }\n};\n\nexport const AreaWithLabelRequired: Story = {\n args: {\n ...AreaType.args,\n label: \"Any field label\",\n required: true\n }\n};\n\nexport const AreaWithDescription: Story = {\n args: {\n ...AreaType.args,\n description: \"Provide the required information for processing your request.\"\n }\n};\n\nexport const AreaWithNotes: Story = {\n args: {\n ...AreaType.args,\n note: \"Note: Ensure your selection or input is accurate before proceeding.\"\n }\n};\n\nexport const AreaWithErrors: Story = {\n args: {\n ...AreaType.args,\n validation: {\n isValid: false,\n message: \"This field is required.\"\n }\n }\n};\n\nexport const AreaDisabled: Story = {\n args: {\n ...AreaType.args,\n label: \"Any field label\",\n disabled: true\n }\n};\n\nexport const AreaWithValidateFunction: Story = {\n args: {\n ...AreaType.args\n },\n render: args => {\n const [validation, setValidation] = useState<any>({ isValid: true, message: undefined });\n\n const validate = async () => {\n setValidation({ isValid: false, message: \"Any custom error message.\" });\n };\n\n return <FilePicker {...args} validate={validate} validation={validation} />;\n }\n};\n\nexport const AreaFullExample: Story = {\n args: {\n ...AreaType.args,\n label: \"Any field label\",\n required: true,\n description: \"Provide the required information for processing your request.\",\n note: \"Note: Ensure your selection or input is accurate before proceeding.\",\n validation: {\n isValid: false,\n message: \"This field is required.\"\n }\n }\n};\n\nexport const Compact: Story = {\n args: {\n ...Default.args,\n type: \"compact\"\n }\n};\n\nexport const CompactWithLabel: Story = {\n args: {\n ...Compact.args,\n label: \"Any field label\"\n }\n};\n\nexport const CompactWithLabelRequired: Story = {\n args: {\n ...Compact.args,\n label: \"Any field label\",\n required: true\n }\n};\n\nexport const CompactWithDescription: Story = {\n args: {\n ...Compact.args,\n description: \"Provide the required information for processing your request.\"\n }\n};\n\nexport const CompactWithNotes: Story = {\n args: {\n ...Compact.args,\n note: \"Note: Ensure your selection or input is accurate before proceeding.\"\n }\n};\n\nexport const CompactWithErrors: Story = {\n args: {\n ...Compact.args,\n validation: {\n isValid: false,\n message: \"This field is required.\"\n }\n }\n};\n\nexport const CompactDisabled: Story = {\n args: {\n ...Compact.args,\n label: \"Any field label\",\n disabled: true\n }\n};\n\nexport const CompactWithValidateFunction: Story = {\n args: {\n ...Compact.args\n },\n render: args => {\n const [validation, setValidation] = useState<any>({ isValid: true, message: undefined });\n\n const validate = async () => {\n setValidation({ isValid: false, message: \"Any custom error message.\" });\n };\n\n return <FilePicker {...args} validate={validate} validation={validation} />;\n }\n};\n\nexport const CompactFullExample: Story = {\n args: {\n ...Compact.args,\n label: \"Any field label\",\n required: true,\n description: \"Provide the required information for processing your request.\",\n note: \"Note: Ensure your selection or input is accurate before proceeding.\",\n validation: {\n isValid: false,\n message: \"This field is required.\"\n }\n }\n};\n\nexport const Documentation: Story = {\n render: args => {\n const [selectedFile, setSelectedFile] = useState(args.value);\n const [validation, setValidation] = useState({ isValid: true, message: \"\" });\n\n // Update value when args.value changes\n useEffect(() => {\n setSelectedFile(args.value);\n }, [args.value]);\n\n const handleSelect = () => {\n setSelectedFile(getFile());\n setValidation({ isValid: true, message: \"\" });\n };\n\n const handleEdit = (file: any) => {\n if (file) {\n console.log(\"Editing file:\", file);\n alert(`Editing File: ${file.name}`);\n }\n };\n\n const handleRemove = () => {\n setSelectedFile(null);\n\n if (args.required) {\n setValidation({ isValid: false, message: \"Please select a file\" });\n }\n };\n\n // Validate on required change or value change\n useEffect(() => {\n if (args.required && !selectedFile) {\n setValidation({ isValid: false, message: \"Please select a file\" });\n } else {\n setValidation({ isValid: true, message: \"\" });\n }\n }, [args.required, selectedFile]);\n\n return (\n <FilePicker\n {...args}\n value={selectedFile}\n onSelectItem={handleSelect}\n onRemoveItem={handleRemove}\n onEditItem={handleEdit}\n validation={validation}\n />\n );\n },\n args: {\n label: \"Upload Image\",\n required: true,\n disabled: false,\n description: \"Select a file to upload (JPG, PNG, PDF)\",\n note: \"Note: Maximum file size is 5MB\",\n type: \"area\",\n value: null,\n validation: undefined,\n onSelectItem: undefined,\n onEditItem: undefined,\n onRemoveItem: undefined\n },\n argTypes: {\n label: {\n description: \"Label text for the file picker\",\n control: \"text\"\n },\n required: {\n description: \"Makes the field required when set to true\",\n control: \"boolean\"\n },\n disabled: {\n description: \"Disables the file picker when set to true\",\n control: \"boolean\"\n },\n description: {\n description: \"Additional description text below the field\",\n control: \"text\"\n },\n note: {\n description: \"Additional note text below the field\",\n control: \"text\"\n },\n type: {\n description: \"The visual style of the file picker\",\n control: \"radio\",\n options: [\"area\", \"compact\"]\n },\n value: {\n description: \"The currently selected file\",\n control: \"object\"\n },\n validation: {\n description:\n \"Object containing validation state and message. Please refer to the example code for details on usage.\"\n },\n onSelectItem: {\n description: \"Function called when a file is selected\"\n },\n onEditItem: {\n description: \"Function called when a file is edited\"\n },\n onRemoveItem: {\n description: \"Function called when a file is removed\"\n }\n }\n};\n"],"names":["getRandomNumber","min","max","Math","getFile","width","height","fileSize","meta","FilePicker","args","selectedFile","setSelectedFile","useState","alert","Default","AreaType","AreaWithLabel","AreaWithLabelRequired","AreaWithDescription","AreaWithNotes","AreaWithErrors","AreaDisabled","AreaWithValidateFunction","validation","setValidation","undefined","validate","AreaFullExample","Compact","CompactWithLabel","CompactWithLabelRequired","CompactWithDescription","CompactWithNotes","CompactWithErrors","CompactDisabled","CompactWithValidateFunction","CompactFullExample","Documentation","useEffect","handleSelect","handleEdit","file","console","handleRemove"],"mappings":";;AAIA,MAAMA,kBAAkB,CAACC,KAAaC,MAClCC,KAAK,KAAK,CAACA,KAAK,MAAM,KAAMD,CAAAA,MAAMD,MAAM,MAAMA;AAElD,MAAMG,UAAU;IACZ,MAAMC,QAAQL,gBAAgB,KAAK;IACnC,MAAMM,SAASN,gBAAgB,KAAK;IACpC,MAAMO,WAAWP,gBAAgB,QAAQ;IAEzC,OAAO;QACH,MAAM;QACN,UAAU;QACV,MAAMO;QACN,KAAK,CAAC,sBAAsB,EAAEF,MAAM,CAAC,EAAEC,QAAQ;IACnD;AACJ;AAEA,MAAME,OAAgC;IAClC,OAAO;IACP,WAAWC;IACX,UAAU;QACN,cAAc;YAAE,QAAQ;QAAe;QACvC,YAAY;YAAE,QAAQ;QAAa;QACnC,cAAc;YAAE,QAAQ;QAAe;QACvC,UAAU;YACN,SAAS;YACT,cAAc;QAClB;IACJ;IACA,YAAY;QACR,QAAQ;IACZ;IACA,QAAQC,CAAAA;QACJ,MAAM,CAACC,cAAcC,gBAAgB,GAAGC,SAASH,KAAK,KAAK;QAC3D,OAAO,WAAP,GACI,oBAACD,YAAUA;YACN,GAAGC,IAAI;YACR,OAAOC;YACP,cAAc,IAAMC,gBAAgBR;YACpC,cAAc,IAAMQ,gBAAgB;YACpC,YAAY,IAAME,MAAM;;IAGpC;AACJ;AAEA,2BAAeN;AAGR,MAAMO,UAAiB,CAAC;AAExB,MAAMC,WAAkB;IAC3B,MAAM;QACF,GAAGD,QAAQ,IAAI;QACf,MAAM;IACV;AACJ;AAEO,MAAME,gBAAuB;IAChC,MAAM;Q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ACC;YAChB,IAAIA,MAAM;gBACNC,QAAQ,GAAG,CAAC,iBAAiBD;gBAC7B5B,MAAM,CAAC,cAAc,EAAE4B,KAAK,IAAI,EAAE;YACtC;QACJ;QAEA,MAAME,eAAe;YACjBhC,gBAAgB;YAEhB,IAAIF,KAAK,QAAQ,EACbe,cAAc;gBAAE,SAAS;gBAAO,SAAS;YAAuB;QAExE;QAGAc,UAAU;YACF7B,KAAK,QAAQ,IAAI,CAACC,eAClBc,cAAc;gBAAE,SAAS;gBAAO,SAAS;YAAuB,KAEhEA,cAAc;gBAAE,SAAS;gBAAM,SAAS;YAAG;QAEnD,GAAG;YAACf,KAAK,QAAQ;YAAEC;SAAa;QAEhC,OAAO,WAAP,GACI,oBAACF,YAAUA;YACN,GAAGC,IAAI;YACR,OAAOC;YACP,cAAc6B;YACd,cAAcI;YACd,YAAYH;YACZ,YAAYjB;;IAGxB;IACA,MAAM;QACF,OAAO;QACP,UAAU;QACV,UAAU;QACV,aAAa;QACb,MAAM;QACN,MAAM;QACN,OAAO;QACP,YAAYE;QACZ,cAAcA;QACd,YAAYA;QACZ,cAAcA;IAClB;IACA,UAAU;QACN,OAAO;YACH,aAAa;YACb,SAAS;QACb;QACA,UAAU;YACN,aAAa;YACb,SAAS;QACb;QACA,UAAU;YACN,aAAa;YACb,SAAS;QACb;QACA,aAAa;YACT,aAAa;YACb,SAAS;QACb;QACA,MAAM;YACF,aAAa;YACb,SAAS;QACb;QACA,MAAM;YACF,aAAa;YACb,SAAS;YACT,SAAS;gBAAC;gBAAQ;aAAU;QAChC;QACA,OAAO;YACH,aAAa;YACb,SAAS;QACb;QACA,YAAY;YACR,aACI;QACR;QACA,cAAc;YACV,aAAa;QACjB;QACA,YAAY;YACR,aAAa;QACjB;QACA,cAAc;YACV,aAAa;QACjB;IACJ;AACJ"}
|
|
1
|
+
{"version":3,"file":"FilePicker/FilePicker.stories.js","sources":["../../src/FilePicker/FilePicker.stories.tsx"],"sourcesContent":["import React, { useState, useEffect } from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react\";\nimport { type FileItemDto, FilePicker } from \"~/FilePicker/index.js\";\n\nconst getRandomNumber = (min: number, max: number): number =>\n Math.floor(Math.random() * (max - min + 1)) + min;\n\nconst getFile = (): FileItemDto => {\n const width = getRandomNumber(500, 2000); // Random width between 500 and 2000\n const height = getRandomNumber(500, 2000); // Random height between 500 and 2000\n const fileSize = getRandomNumber(500000, 5000000); // Random file size between 500KB and 5MB\n\n return {\n name: \"selected-file.jpg\",\n mimeType: \"image/jpeg\",\n size: fileSize,\n url: `https://picsum.photos/${width}/${height}`\n };\n};\n\nconst meta: Meta<typeof FilePicker> = {\n title: \"Components/Form/FilePicker\",\n component: FilePicker,\n argTypes: {\n onSelectItem: { action: \"onSelectItem\" },\n onEditItem: { action: \"onEditItem\" },\n onRemoveItem: { action: \"onRemoveItem\" },\n disabled: {\n control: \"boolean\",\n defaultValue: false\n }\n },\n parameters: {\n layout: \"padded\"\n },\n render: args => {\n const [selectedFile, setSelectedFile] = useState(args.value);\n return (\n <FilePicker\n {...args}\n value={selectedFile}\n onSelectItem={() => setSelectedFile(getFile())}\n onRemoveItem={() => setSelectedFile(null)}\n onEditItem={() => alert(`Editing File`)}\n />\n );\n }\n};\n\nexport default meta;\ntype Story = StoryObj<typeof FilePicker>;\n\nexport const Default: Story = {};\n\nexport const AreaType: Story = {\n args: {\n ...Default.args,\n type: \"area\"\n }\n};\n\nexport const AreaWithLabel: Story = {\n args: {\n ...AreaType.args,\n label: \"Any field label\"\n }\n};\n\nexport const AreaWithLabelRequired: Story = {\n args: {\n ...AreaType.args,\n label: \"Any field label\",\n required: true\n }\n};\n\nexport const AreaWithDescription: Story = {\n args: {\n ...AreaType.args,\n description: \"Provide the required information for processing your request.\"\n }\n};\n\nexport const AreaWithNotes: Story = {\n args: {\n ...AreaType.args,\n note: \"Note: Ensure your selection or input is accurate before proceeding.\"\n }\n};\n\nexport const AreaWithErrors: Story = {\n args: {\n ...AreaType.args,\n validation: {\n isValid: false,\n message: \"This field is required.\"\n }\n }\n};\n\nexport const AreaDisabled: Story = {\n args: {\n ...AreaType.args,\n label: \"Any field label\",\n disabled: true\n }\n};\n\nexport const AreaWithValidateFunction: Story = {\n args: {\n ...AreaType.args\n },\n render: args => {\n const [validation, setValidation] = useState<any>({ isValid: true, message: undefined });\n\n const validate = async () => {\n setValidation({ isValid: false, message: \"Any custom error message.\" });\n };\n\n return <FilePicker {...args} validate={validate} validation={validation} />;\n }\n};\n\nexport const AreaFullExample: Story = {\n args: {\n ...AreaType.args,\n label: \"Any field label\",\n required: true,\n description: \"Provide the required information for processing your request.\",\n note: \"Note: Ensure your selection or input is accurate before proceeding.\",\n validation: {\n isValid: false,\n message: \"This field is required.\"\n }\n }\n};\n\nexport const Compact: Story = {\n args: {\n ...Default.args,\n type: \"compact\"\n }\n};\n\nexport const CompactWithLabel: Story = {\n args: {\n ...Compact.args,\n label: \"Any field label\"\n }\n};\n\nexport const CompactWithLabelRequired: Story = {\n args: {\n ...Compact.args,\n label: \"Any field label\",\n required: true\n }\n};\n\nexport const CompactWithDescription: Story = {\n args: {\n ...Compact.args,\n description: \"Provide the required information for processing your request.\"\n }\n};\n\nexport const CompactWithNotes: Story = {\n args: {\n ...Compact.args,\n note: \"Note: Ensure your selection or input is accurate before proceeding.\"\n }\n};\n\nexport const CompactWithErrors: Story = {\n args: {\n ...Compact.args,\n validation: {\n isValid: false,\n message: \"This field is required.\"\n }\n }\n};\n\nexport const CompactDisabled: Story = {\n args: {\n ...Compact.args,\n label: \"Any field label\",\n disabled: true\n }\n};\n\nexport const CompactWithValidateFunction: Story = {\n args: {\n ...Compact.args\n },\n render: args => {\n const [validation, setValidation] = useState<any>({ isValid: true, message: undefined });\n\n const validate = async () => {\n setValidation({ isValid: false, message: \"Any custom error message.\" });\n };\n\n return <FilePicker {...args} validate={validate} validation={validation} />;\n }\n};\n\nexport const CompactFullExample: Story = {\n args: {\n ...Compact.args,\n label: \"Any field label\",\n required: true,\n description: \"Provide the required information for processing your request.\",\n note: \"Note: Ensure your selection or input is accurate before proceeding.\",\n validation: {\n isValid: false,\n message: \"This field is required.\"\n }\n }\n};\n\n/**\n * Reproduces the Website Builder style sidebar at its 206px value column: the preview stacks,\n * the file name truncates in the middle so the extension and version suffix survive, and the\n * actions spell themselves out instead of costing a fixed block of the row.\n */\nexport const CompactWithLongFileNameInNarrowContainer: Story = {\n args: {\n ...Compact.args\n },\n render: args => {\n const [selectedFile, setSelectedFile] = useState<FileItemDto | null>({\n name: \"tide-cc-statuses-2026-08-21-final-v2.png\",\n mimeType: \"image/png\",\n size: 674161,\n url: \"https://picsum.photos/1200/800\"\n });\n\n return (\n <div style={{ width: 206 }}>\n <FilePicker\n {...args}\n value={selectedFile}\n onSelectItem={() => setSelectedFile(getFile())}\n onRemoveItem={() => setSelectedFile(null)}\n />\n </div>\n );\n }\n};\n\nexport const Documentation: Story = {\n render: args => {\n const [selectedFile, setSelectedFile] = useState(args.value);\n const [validation, setValidation] = useState({ isValid: true, message: \"\" });\n\n // Update value when args.value changes\n useEffect(() => {\n setSelectedFile(args.value);\n }, [args.value]);\n\n const handleSelect = () => {\n setSelectedFile(getFile());\n setValidation({ isValid: true, message: \"\" });\n };\n\n const handleEdit = (file: any) => {\n if (file) {\n console.log(\"Editing file:\", file);\n alert(`Editing File: ${file.name}`);\n }\n };\n\n const handleRemove = () => {\n setSelectedFile(null);\n\n if (args.required) {\n setValidation({ isValid: false, message: \"Please select a file\" });\n }\n };\n\n // Validate on required change or value change\n useEffect(() => {\n if (args.required && !selectedFile) {\n setValidation({ isValid: false, message: \"Please select a file\" });\n } else {\n setValidation({ isValid: true, message: \"\" });\n }\n }, [args.required, selectedFile]);\n\n return (\n <FilePicker\n {...args}\n value={selectedFile}\n onSelectItem={handleSelect}\n onRemoveItem={handleRemove}\n onEditItem={handleEdit}\n validation={validation}\n />\n );\n },\n args: {\n label: \"Upload Image\",\n required: true,\n disabled: false,\n description: \"Select a file to upload (JPG, PNG, PDF)\",\n note: \"Note: Maximum file size is 5MB\",\n type: \"area\",\n value: null,\n validation: undefined,\n onSelectItem: undefined,\n onEditItem: undefined,\n onRemoveItem: undefined\n },\n argTypes: {\n label: {\n description: \"Label text for the file picker\",\n control: \"text\"\n },\n required: {\n description: \"Makes the field required when set to true\",\n control: \"boolean\"\n },\n disabled: {\n description: \"Disables the file picker when set to true\",\n control: \"boolean\"\n },\n description: {\n description: \"Additional description text below the field\",\n control: \"text\"\n },\n note: {\n description: \"Additional note text below the field\",\n control: \"text\"\n },\n type: {\n description: \"The visual style of the file picker\",\n control: \"radio\",\n options: [\"area\", \"compact\"]\n },\n value: {\n description: \"The currently selected file\",\n control: \"object\"\n },\n validation: {\n description:\n \"Object containing validation state and message. Please refer to the example code for details on usage.\"\n },\n onSelectItem: {\n description: \"Function called when a file is selected\"\n },\n onEditItem: {\n description: \"Function called when a file is edited\"\n },\n onRemoveItem: {\n description: \"Function called when a file is removed\"\n }\n }\n};\n"],"names":["getRandomNumber","min","max","Math","getFile","width","height","fileSize","meta","FilePicker","args","selectedFile","setSelectedFile","useState","alert","Default","AreaType","AreaWithLabel","AreaWithLabelRequired","AreaWithDescription","AreaWithNotes","AreaWithErrors","AreaDisabled","AreaWithValidateFunction","validation","setValidation","undefined","validate","AreaFullExample","Compact","CompactWithLabel","CompactWithLabelRequired","CompactWithDescription","CompactWithNotes","CompactWithErrors","CompactDisabled","CompactWithValidateFunction","CompactFullExample","CompactWithLongFileNameInNarrowContainer","Documentation","useEffect","handleSelect","handleEdit","file","console","handleRemove"],"mappings":";;AAIA,MAAMA,kBAAkB,CAACC,KAAaC,MAClCC,KAAK,KAAK,CAACA,KAAK,MAAM,KAAMD,CAAAA,MAAMD,MAAM,MAAMA;AAElD,MAAMG,UAAU;IACZ,MAAMC,QAAQL,gBAAgB,KAAK;IACnC,MAAMM,SAASN,gBAAgB,KAAK;IACpC,MAAMO,WAAWP,gBAAgB,QAAQ;IAEzC,OAAO;QACH,MAAM;QACN,UAAU;QACV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