@cfx-dev/ui-components 1.0.0 → 2.0.1
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/README.md +1 -1
- package/dist/{Combination-Dp_plIQU.js → Combination-BRUj3CHE.js} +42 -43
- package/dist/Logos.types-Bdec3F0Q.js +6 -0
- package/dist/Rail-rtPENZs2.js +81 -0
- package/dist/assets/Accordion.css +1 -0
- package/dist/assets/Avatar.css +1 -1
- package/dist/assets/Badge.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/ButtonBar.css +1 -0
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/ClipboardButton.css +1 -0
- package/dist/assets/ColorShowcase.css +1 -0
- package/dist/assets/ColorVariationsShowcase.css +1 -0
- package/dist/assets/ColorsShowcase.css +1 -0
- package/dist/assets/ControlHeightShowcase.css +1 -0
- package/dist/assets/Dot.css +1 -1
- package/dist/assets/Flex.css +1 -1
- package/dist/assets/Flyout.css +1 -1
- package/dist/assets/IconBig.css +1 -0
- package/dist/assets/IconButton.css +1 -0
- package/dist/assets/InfoPanel.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputDropzone.css +1 -1
- package/dist/assets/Island.css +1 -1
- package/dist/assets/ItemPreview.css +1 -1
- package/dist/assets/Modal.css +1 -1
- package/dist/assets/NavList.css +1 -1
- package/dist/assets/OffsetShowcase.css +1 -0
- package/dist/assets/Pad.css +1 -1
- package/dist/assets/Popover.css +1 -1
- package/dist/assets/PopoverShowcase.css +1 -0
- package/dist/assets/Prose.css +1 -1
- package/dist/assets/QuantShowcase.css +1 -0
- package/dist/assets/Radio.css +1 -1
- package/dist/assets/Rail.css +1 -1
- package/dist/assets/RichInput.css +1 -1
- package/dist/assets/Select.css +1 -1
- package/dist/assets/Separator.css +1 -1
- package/dist/assets/Spacer.css +1 -1
- package/dist/assets/Switch.css +1 -1
- package/dist/assets/Tabular.css +1 -1
- package/dist/assets/Text.css +1 -1
- package/dist/assets/TextShowcase.css +1 -0
- package/dist/assets/Textarea.css +1 -1
- package/dist/assets/Title.css +1 -1
- package/dist/assets/ToggleGroup.css +1 -0
- package/dist/assets/global.css +1 -1
- package/dist/assets/themes.css +1 -1
- package/dist/cfxIcons-BlbKR-zU.js +86 -0
- package/dist/cfxIconsBig-CNY8zL27.js +14 -0
- package/dist/components/Accordion/Accordion.d.ts +26 -0
- package/dist/components/Accordion/Accordion.js +120 -0
- package/dist/components/Accordion/AccordionShowcase.d.ts +5 -0
- package/dist/components/Accordion/AccordionShowcase.js +60 -0
- package/dist/components/Accordion/index.d.ts +0 -0
- package/dist/components/Accordion/index.js +1 -0
- package/dist/components/Avatar/Avatar.d.ts +5 -1
- package/dist/components/Avatar/Avatar.js +31 -16
- package/dist/components/Avatar/AvatarShowcase.d.ts +5 -0
- package/dist/components/Avatar/AvatarShowcase.js +33 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +4 -0
- package/dist/components/BackdropPortal/BackdropPortal.js +9 -6
- package/dist/components/Badge/Badge.d.ts +4 -1
- package/dist/components/Badge/Badge.js +23 -13
- package/dist/components/Badge/BadgeShowcase.d.ts +5 -0
- package/dist/components/Badge/BadgeShowcase.js +56 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.js +4 -0
- package/dist/components/Button/Button.d.ts +4 -6
- package/dist/components/Button/Button.js +84 -84
- package/dist/components/Button/ButtonBar.d.ts +3 -2
- package/dist/components/Button/ButtonBar.js +27 -9
- package/dist/components/Button/ButtonShowcase.d.ts +5 -0
- package/dist/components/Button/ButtonShowcase.js +89 -0
- package/dist/components/Button/index.d.ts +6 -0
- package/dist/components/Button/index.js +10 -0
- package/dist/components/Checkbox/Checkbox.d.ts +10 -9
- package/dist/components/Checkbox/Checkbox.js +249 -37
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.js +4 -0
- package/dist/components/ClipboardButton/ClipboardButton.d.ts +16 -0
- package/dist/components/ClipboardButton/ClipboardButton.js +50 -0
- package/dist/components/ClipboardButton/index.d.ts +0 -0
- package/dist/components/ClipboardButton/index.js +1 -0
- package/dist/components/Dot/Dot.d.ts +5 -2
- package/dist/components/Dot/Dot.js +25 -10
- package/dist/components/Dot/index.d.ts +2 -0
- package/dist/components/Dot/index.js +4 -0
- package/dist/components/Flyout/Flyout.js +47 -46
- package/dist/components/Icon/Icon.d.ts +7 -6
- package/dist/components/Icon/Icon.js +31 -19
- package/dist/components/Icon/index.d.ts +3 -0
- package/dist/components/Icon/index.js +4 -0
- package/dist/components/IconBig/IconBig.d.ts +12 -0
- package/dist/components/IconBig/IconBig.js +69 -0
- package/dist/components/IconBig/index.d.ts +2 -0
- package/dist/components/IconBig/index.js +4 -0
- package/dist/components/IconButton/IconButton.d.ts +16 -0
- package/dist/components/IconButton/IconButton.js +35 -0
- package/dist/components/IconButton/index.d.ts +2 -0
- package/dist/components/IconButton/index.js +4 -0
- package/dist/components/Icons/Icons.types.d.ts +4 -0
- package/dist/components/Icons/Icons.types.js +1 -0
- package/dist/components/Icons/IconsShowcase.js +101 -0
- package/dist/components/Icons/cfx-icons/Close.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Close.js +27 -0
- package/dist/components/Icons/cfx-icons/Controller.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Controller.js +31 -0
- package/dist/components/Icons/cfx-icons/Copy.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Copy.js +27 -0
- package/dist/components/Icons/cfx-icons/DownArrow.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/DownArrow.js +27 -0
- package/dist/components/Icons/cfx-icons/DownChevron.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/DownChevron.js +27 -0
- package/dist/components/Icons/cfx-icons/Download.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Download.js +27 -0
- package/dist/components/Icons/cfx-icons/Expand.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Expand.js +26 -0
- package/dist/components/Icons/cfx-icons/ExternalLink.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/ExternalLink.js +27 -0
- package/dist/components/Icons/cfx-icons/Heart.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Heart.js +25 -0
- package/dist/components/Icons/cfx-icons/HeartFilled.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/HeartFilled.js +25 -0
- package/dist/components/Icons/cfx-icons/Help.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Help.js +27 -0
- package/dist/components/Icons/cfx-icons/LeftArrow.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/LeftArrow.js +27 -0
- package/dist/components/Icons/cfx-icons/LeftChevron.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/LeftChevron.js +27 -0
- package/dist/components/Icons/cfx-icons/Map.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Map.js +39 -0
- package/dist/components/Icons/cfx-icons/Menu.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Menu.js +49 -0
- package/dist/components/Icons/cfx-icons/Minus.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Minus.js +27 -0
- package/dist/components/Icons/cfx-icons/More.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/More.js +27 -0
- package/dist/components/Icons/cfx-icons/MoreInfo.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/MoreInfo.js +27 -0
- package/dist/components/Icons/cfx-icons/Pencil.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Pencil.js +25 -0
- package/dist/components/Icons/cfx-icons/Play.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Play.js +25 -0
- package/dist/components/Icons/cfx-icons/Plus.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Plus.js +27 -0
- package/dist/components/Icons/cfx-icons/Refresh.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Refresh.js +27 -0
- package/dist/components/Icons/cfx-icons/RightArrow.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/RightArrow.js +27 -0
- package/dist/components/Icons/cfx-icons/RightChevron.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/RightChevron.js +27 -0
- package/dist/components/Icons/cfx-icons/Search.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Search.js +27 -0
- package/dist/components/Icons/cfx-icons/Sort.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Sort.js +27 -0
- package/dist/components/Icons/cfx-icons/Square.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Square.js +18 -0
- package/dist/components/Icons/cfx-icons/SquareCheck.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/SquareCheck.js +27 -0
- package/dist/components/Icons/cfx-icons/Stop.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Stop.js +27 -0
- package/dist/components/Icons/cfx-icons/Tick.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Tick.js +27 -0
- package/dist/components/Icons/cfx-icons/Transfer.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Transfer.js +27 -0
- package/dist/components/Icons/cfx-icons/Trash.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Trash.js +23 -0
- package/dist/components/Icons/cfx-icons/Undo.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Undo.js +27 -0
- package/dist/components/Icons/cfx-icons/UpArrow.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/UpArrow.js +27 -0
- package/dist/components/Icons/cfx-icons/UpChevron.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/UpChevron.js +27 -0
- package/dist/components/Icons/cfx-icons/Upload.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Upload.js +27 -0
- package/dist/components/Icons/cfx-icons/Users.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Users.js +43 -0
- package/dist/components/Icons/cfx-icons/Visibility.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Visibility.js +23 -0
- package/dist/components/Icons/cfx-icons/VisibilityOff.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/VisibilityOff.js +23 -0
- package/dist/components/Icons/cfx-icons/Warning.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Warning.js +27 -0
- package/dist/components/Icons/cfx-icons-big/Like.d.ts +5 -0
- package/dist/components/Icons/cfx-icons-big/Like.js +25 -0
- package/dist/components/Icons/cfx-icons-big/Subscriptions.d.ts +5 -0
- package/dist/components/Icons/cfx-icons-big/Subscriptions.js +33 -0
- package/dist/components/Icons/cfx-icons-big/Upload.d.ts +5 -0
- package/dist/components/Icons/cfx-icons-big/Upload.js +27 -0
- package/dist/components/Icons/cfx-icons-big/Warning.d.ts +5 -0
- package/dist/components/Icons/cfx-icons-big/Warning.js +27 -0
- package/dist/components/Icons/cfxIcons.d.ts +40 -0
- package/dist/components/Icons/cfxIcons.js +82 -0
- package/dist/components/Icons/cfxIconsBig.d.ts +4 -0
- package/dist/components/Icons/cfxIconsBig.js +10 -0
- package/dist/components/Icons/index.d.ts +3 -0
- package/dist/components/Icons/index.js +6 -0
- package/dist/components/InfoPanel/InfoPanel.d.ts +10 -7
- package/dist/components/InfoPanel/InfoPanel.js +50 -28
- package/dist/components/InfoPanel/InfoPanelShowcase.d.ts +5 -0
- package/dist/components/InfoPanel/InfoPanelShowcase.js +47 -0
- package/dist/components/InfoPanel/index.d.ts +2 -0
- package/dist/components/InfoPanel/index.js +4 -0
- package/dist/components/Input/Input.d.ts +16 -19
- package/dist/components/Input/Input.js +73 -81
- package/dist/components/Input/InputShowcase.d.ts +5 -0
- package/dist/components/Input/InputShowcase.js +90 -0
- package/dist/components/Input/RichInput.d.ts +2 -1
- package/dist/components/Input/RichInput.js +37 -35
- package/dist/components/Input/index.d.ts +4 -0
- package/dist/components/Input/index.js +6 -0
- package/dist/components/InputDropzone/InputDropzone.d.ts +6 -3
- package/dist/components/InputDropzone/InputDropzone.js +260 -259
- package/dist/components/InputDropzone/InputDropzoneShowcase.d.ts +5 -0
- package/dist/components/InputDropzone/InputDropzoneShowcase.js +27 -0
- package/dist/components/InputDropzone/ItemPreview.d.ts +5 -1
- package/dist/components/InputDropzone/ItemPreview.js +20 -17
- package/dist/components/InputDropzone/index.d.ts +4 -0
- package/dist/components/InputDropzone/index.js +6 -0
- package/dist/components/Interactive/Interactive.d.ts +1 -0
- package/dist/components/Interactive/Interactive.js +10 -9
- package/dist/components/Island/Island.js +23 -23
- package/dist/components/Layout/Flex/Flex.js +46 -43
- package/dist/components/Layout/Pad/Pad.js +29 -26
- package/dist/components/Layout/Scrollable/Rail.d.ts +1 -2
- package/dist/components/Layout/Scrollable/Rail.js +2 -3
- package/dist/components/Layout/Scrollable/Scrollable.js +23 -23
- package/dist/components/Layout/Scrollable/ScrollableShowcase.d.ts +5 -0
- package/dist/components/Layout/Scrollable/ScrollableShowcase.js +112 -0
- package/dist/components/Layout/Scrollable/VirtualScrollable.js +6 -7
- package/dist/components/Layout/Scrollable/index.d.ts +6 -0
- package/dist/components/Layout/Scrollable/index.js +8 -0
- package/dist/components/Logos/Logos.types.d.ts +26 -0
- package/dist/components/Logos/Logos.types.js +1 -0
- package/dist/components/Logos/LogosShowcase.d.ts +5 -0
- package/dist/components/Logos/LogosShowcase.js +430 -0
- package/dist/components/Logos/cfx/CompositeLogo.d.ts +5 -0
- package/dist/components/Logos/cfx/CompositeLogo.js +91 -0
- package/dist/components/Logos/cfx/Icon.d.ts +5 -0
- package/dist/components/Logos/cfx/Icon.js +23 -0
- package/dist/components/Logos/cfx/Logo.d.ts +5 -0
- package/dist/components/Logos/cfx/Logo.js +70 -0
- package/dist/components/Logos/cfx/Wordmark.d.ts +5 -0
- package/dist/components/Logos/cfx/Wordmark.js +60 -0
- package/dist/components/Logos/cfx/index.d.ts +4 -0
- package/dist/components/Logos/cfx/index.js +10 -0
- package/dist/components/Logos/cfxbazaar/CompositeLogo.d.ts +5 -0
- package/dist/components/Logos/cfxbazaar/CompositeLogo.js +102 -0
- package/dist/components/Logos/cfxbazaar/Wordmark.d.ts +5 -0
- package/dist/components/Logos/cfxbazaar/Wordmark.js +81 -0
- package/dist/components/Logos/cfxbazaar/index.d.ts +2 -0
- package/dist/components/Logos/cfxbazaar/index.js +6 -0
- package/dist/components/Logos/discord/Icon.d.ts +5 -0
- package/dist/components/Logos/discord/Icon.js +23 -0
- package/dist/components/Logos/discord/index.d.ts +1 -0
- package/dist/components/Logos/discord/index.js +4 -0
- package/dist/components/Logos/esx/Icon.d.ts +5 -0
- package/dist/components/Logos/esx/Icon.js +26 -0
- package/dist/components/Logos/esx/index.d.ts +1 -0
- package/dist/components/Logos/esx/index.js +4 -0
- package/dist/components/Logos/fivem/CompositeLogo.d.ts +5 -0
- package/dist/components/Logos/fivem/CompositeLogo.js +98 -0
- package/dist/components/Logos/fivem/Icon.d.ts +5 -0
- package/dist/components/Logos/fivem/Icon.js +39 -0
- package/dist/components/Logos/fivem/LockupLandscape.d.ts +5 -0
- package/dist/components/Logos/fivem/LockupLandscape.js +81 -0
- package/dist/components/Logos/fivem/LockupPortrait.d.ts +5 -0
- package/dist/components/Logos/fivem/LockupPortrait.js +140 -0
- package/dist/components/Logos/fivem/Logo.d.ts +5 -0
- package/dist/components/Logos/fivem/Logo.js +63 -0
- package/dist/components/Logos/fivem/Wordmark.d.ts +5 -0
- package/dist/components/Logos/fivem/Wordmark.js +39 -0
- package/dist/components/Logos/fivem/index.d.ts +6 -0
- package/dist/components/Logos/fivem/index.js +14 -0
- package/dist/components/Logos/google/Icon.d.ts +5 -0
- package/dist/components/Logos/google/Icon.js +46 -0
- package/dist/components/Logos/google/Wordmark.d.ts +5 -0
- package/dist/components/Logos/google/Wordmark.js +63 -0
- package/dist/components/Logos/google/index.d.ts +2 -0
- package/dist/components/Logos/google/index.js +6 -0
- package/dist/components/Logos/index.d.ts +29 -0
- package/dist/components/Logos/index.js +33 -0
- package/dist/components/Logos/patreon/Icon.d.ts +5 -0
- package/dist/components/Logos/patreon/Icon.js +23 -0
- package/dist/components/Logos/patreon/Wordmark.d.ts +5 -0
- package/dist/components/Logos/patreon/Wordmark.js +32 -0
- package/dist/components/Logos/patreon/index.d.ts +2 -0
- package/dist/components/Logos/patreon/index.js +6 -0
- package/dist/components/Logos/qbcore/Icon.d.ts +5 -0
- package/dist/components/Logos/qbcore/Icon.js +26 -0
- package/dist/components/Logos/qbcore/index.d.ts +1 -0
- package/dist/components/Logos/qbcore/index.js +4 -0
- package/dist/components/Logos/redemrp/Icon.d.ts +5 -0
- package/dist/components/Logos/redemrp/Icon.js +26 -0
- package/dist/components/Logos/redemrp/index.d.ts +1 -0
- package/dist/components/Logos/redemrp/index.js +4 -0
- package/dist/components/Logos/redm/CompositeLogo.d.ts +5 -0
- package/dist/components/Logos/redm/CompositeLogo.js +250 -0
- package/dist/components/Logos/redm/Icon.d.ts +5 -0
- package/dist/components/Logos/redm/Icon.js +88 -0
- package/dist/components/Logos/redm/LockupLandscape.d.ts +5 -0
- package/dist/components/Logos/redm/LockupLandscape.js +231 -0
- package/dist/components/Logos/redm/LockupPortrait.d.ts +5 -0
- package/dist/components/Logos/redm/LockupPortrait.js +182 -0
- package/dist/components/Logos/redm/Logo.d.ts +5 -0
- package/dist/components/Logos/redm/Logo.js +214 -0
- package/dist/components/Logos/redm/Wordmark.d.ts +5 -0
- package/dist/components/Logos/redm/Wordmark.js +35 -0
- package/dist/components/Logos/redm/index.d.ts +6 -0
- package/dist/components/Logos/redm/index.js +14 -0
- package/dist/components/Logos/rockstar/Icon.d.ts +5 -0
- package/dist/components/Logos/rockstar/Icon.js +32 -0
- package/dist/components/Logos/rockstar/index.d.ts +1 -0
- package/dist/components/Logos/rockstar/index.js +4 -0
- package/dist/components/Logos/tebex/Icon.d.ts +5 -0
- package/dist/components/Logos/tebex/Icon.js +23 -0
- package/dist/components/Logos/tebex/Wordmark.d.ts +5 -0
- package/dist/components/Logos/tebex/Wordmark.js +34 -0
- package/dist/components/Logos/tebex/index.d.ts +2 -0
- package/dist/components/Logos/tebex/index.js +6 -0
- package/dist/components/Logos/vorpcore/Icon.d.ts +5 -0
- package/dist/components/Logos/vorpcore/Icon.js +26 -0
- package/dist/components/Logos/vorpcore/index.d.ts +1 -0
- package/dist/components/Logos/vorpcore/index.js +4 -0
- package/dist/components/Modal/Modal.d.ts +13 -6
- package/dist/components/Modal/Modal.js +75 -34
- package/dist/components/Modal/ModalShowcase.d.ts +5 -0
- package/dist/components/Modal/ModalShowcase.js +52 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Modal/index.js +4 -0
- package/dist/components/NavList/NavList.js +5 -5
- package/dist/components/OnScreenSensor.js +13 -10
- package/dist/components/Overlay/Overlay.js +10 -8
- package/dist/components/Popover/Popover.d.ts +5 -3
- package/dist/components/Popover/Popover.js +32 -26
- package/dist/components/Popover/PopoverShowcase.d.ts +5 -0
- package/dist/components/Popover/PopoverShowcase.js +53 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.js +4 -0
- package/dist/components/Prose/Prose.js +1 -1
- package/dist/components/Radio/Radio.js +20 -20
- package/dist/components/Select/Select.d.ts +5 -3
- package/dist/components/Select/Select.js +1997 -2230
- package/dist/components/Select/SelectShowcase.d.ts +5 -0
- package/dist/components/Select/SelectShowcase.js +121 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/index.js +4 -0
- package/dist/components/Separator/Separator.d.ts +2 -0
- package/dist/components/Separator/Separator.js +33 -22
- package/dist/components/Shroud/Shroud.js +11 -8
- package/dist/components/Spacer/Spacer.d.ts +3 -1
- package/dist/components/Spacer/Spacer.js +22 -18
- package/dist/components/Switch/Switch.d.ts +6 -15
- package/dist/components/Switch/Switch.js +119 -62
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +4 -0
- package/dist/components/Table/Table.js +41 -35
- package/dist/components/Tabular/Tabular.d.ts +20 -15
- package/dist/components/Tabular/Tabular.js +84 -54
- package/dist/components/Tabular/TabularShowcase.d.ts +5 -0
- package/dist/components/Tabular/TabularShowcase.js +47 -0
- package/dist/components/Tabular/index.d.ts +2 -0
- package/dist/components/Tabular/index.js +4 -0
- package/dist/components/Text/BodyShowcase.d.ts +5 -0
- package/dist/components/Text/BodyShowcase.js +133 -0
- package/dist/components/Text/HeadingShowcase.d.ts +5 -0
- package/dist/components/Text/HeadingShowcase.js +101 -0
- package/dist/components/Text/Text.d.ts +5 -3
- package/dist/components/Text/Text.js +59 -47
- package/dist/components/Text/Text.types.d.ts +11 -9
- package/dist/components/Text/TextShowcase.d.ts +12 -0
- package/dist/components/Text/TextShowcase.js +46 -0
- package/dist/components/Text/index.d.ts +2 -0
- package/dist/components/Text/index.js +8 -0
- package/dist/components/Textarea/Textarea.js +35 -35
- package/dist/components/Title/Title.d.ts +6 -2
- package/dist/components/Title/Title.js +89 -83
- package/dist/components/Title/TitleShowcase.d.ts +5 -0
- package/dist/components/Title/TitleShowcase.js +22 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +17 -0
- package/dist/components/ToggleGroup/ToggleGroup.js +65 -0
- package/dist/iconBase-C6DV9qqL.js +60 -0
- package/dist/{index-C1KmDBa6.js → index-2hJuj4UN.js} +939 -939
- package/dist/index-BCMIaGt2.js +10 -0
- package/dist/index-BFDtbr-9.js +8 -0
- package/dist/index-BgyFvlVL.js +14 -0
- package/dist/index-Bj7QGXdt.js +10 -0
- package/dist/index-CjWRnNpt.js +210 -0
- package/dist/index-CndZSWbO.js +8 -0
- package/dist/index-Cy4ZbWBL.js +8 -0
- package/dist/index-D7JPdg13.js +18 -0
- package/dist/index-DXAZagKA.js +8 -0
- package/dist/index-DmiGJpGO.js +8 -0
- package/dist/index-DwfZyjnS.js +8 -0
- package/dist/index-Jh-MtE10.js +18 -0
- package/dist/index-kbBuAY0m.js +10 -0
- package/dist/index-zDYfHjPd.js +10 -0
- package/dist/inheritsLoose-CyjgKRgL.js +21 -0
- package/dist/main.d.ts +36 -19
- package/dist/main.js +166 -148
- package/dist/style-guide/Colors/ColorShowcase.d.ts +21 -0
- package/dist/style-guide/Colors/ColorShowcase.js +1881 -0
- package/dist/style-guide/Colors/ColorVariationsShowcase.d.ts +5 -0
- package/dist/style-guide/Colors/ColorVariationsShowcase.js +43 -0
- package/dist/style-guide/Colors/ColorsShowcase.d.ts +5 -0
- package/dist/style-guide/Colors/ColorsShowcase.js +43 -0
- package/dist/style-guide/Layout/ControlHeightShowcase.d.ts +5 -0
- package/dist/style-guide/Layout/ControlHeightShowcase.js +27 -0
- package/dist/style-guide/Layout/OffsetShowcase.d.ts +5 -0
- package/dist/style-guide/Layout/OffsetShowcase.js +32 -0
- package/dist/style-guide/Layout/QuantShowcase.d.ts +5 -0
- package/dist/style-guide/Layout/QuantShowcase.js +36 -0
- package/dist/styles-scss/_typography.scss +52 -0
- package/dist/styles-scss/_ui.scss +126 -9
- package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplay.ttf +0 -0
- package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplay.woff +0 -0
- package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplay.woff2 +0 -0
- package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplayBold.ttf +0 -0
- package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplayBold.woff +0 -0
- package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowDisplayBold.woff2 +0 -0
- package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowText.ttf +0 -0
- package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowText.woff +0 -0
- package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowText.woff2 +0 -0
- package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextBold.ttf +0 -0
- package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextBold.woff +0 -0
- package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextBold.woff2 +0 -0
- package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextIt.ttf +0 -0
- package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextIt.woff +0 -0
- package/dist/styles-scss/assets/fonts/HelveticaNow/HelveticaNowTextIt.woff2 +0 -0
- package/dist/styles-scss/global.scss +95 -41
- package/dist/styles-scss/themes/theme_cfx.scss +32 -0
- package/dist/styles-scss/themes/theme_fivem.scss +32 -0
- package/dist/styles-scss/themes/theme_redm.scss +32 -0
- package/dist/styles-scss/themes/theme_wireframe.scss +32 -0
- package/dist/styles-scss/themes.scss +4 -2
- package/dist/styles-scss/tokens.scss +274 -190
- package/dist/types/Offset.d.ts +1 -0
- package/dist/types/Offset.js +1 -0
- package/dist/utils/color.d.ts +9 -0
- package/dist/utils/color.js +18 -0
- package/dist/utils/hooks/index.d.ts +8 -0
- package/dist/utils/hooks/index.js +16 -0
- package/dist/utils/hooks/useDynamicRef.d.ts +3 -0
- package/dist/utils/hooks/useDynamicRef.js +8 -0
- package/dist/utils/hooks/useGlobalKeyboardEvent.d.ts +6 -0
- package/dist/utils/hooks/useGlobalKeyboardEvent.js +29 -0
- package/dist/utils/hooks/useInstance.d.ts +1 -0
- package/dist/utils/hooks/useInstance.js +9 -0
- package/dist/utils/hooks/useKeyboardClose.d.ts +4 -0
- package/dist/utils/hooks/useKeyboardClose.js +12 -0
- package/dist/utils/hooks/useOutlet.d.ts +4 -0
- package/dist/utils/hooks/useOutlet.js +26 -0
- package/dist/utils/hooks/usePopoverController.d.ts +9 -0
- package/dist/utils/hooks/usePopoverController.js +35 -0
- package/dist/utils/hooks/useWindowResize.d.ts +1 -0
- package/dist/utils/hooks/useWindowResize.js +12 -0
- package/dist/utils/loremipsum.d.ts +1 -0
- package/dist/utils/loremipsum.js +4 -0
- package/dist/utils/random.d.ts +3 -0
- package/dist/utils/random.js +14 -0
- package/package.json +5 -6
- package/dist/Button.module-Z6njvP9Z.js +0 -17
- package/dist/Icons-BlBKvJD8.js +0 -104
- package/dist/Rail-CCuyJpf6.js +0 -89
- package/dist/extends-hS2Bh-Yp.js +0 -12
- package/dist/index.esm-BkynlSN6.js +0 -72
- package/dist/inheritsLoose-A8WKSWDx.js +0 -11
- package/dist/style-guide/Colours/DarkThemeSwatches.d.ts +0 -2
- package/dist/style-guide/Colours/DarkThemeSwatches.js +0 -110
- package/dist/style-guide/Colours/LightThemeSwatches.d.ts +0 -2
- package/dist/style-guide/Colours/LightThemeSwatches.js +0 -105
- package/dist/style-guide/Colours/Swatches.d.ts +0 -6
- package/dist/style-guide/Colours/Swatches.js +0 -48
- package/dist/style-guide/Icons/IconDisplayGrid.js +0 -42
- package/dist/style-guide/Icons/Icons.d.ts +0 -38
- package/dist/style-guide/Icons/Icons.js +0 -7
- package/dist/styles-scss/assets/images/bgpat.png +0 -0
- package/dist/styles-scss/assets/images/checkered_dark.svg +0 -7
- package/dist/styles-scss/assets/images/checkered_light.svg +0 -7
- package/dist/styles-scss/theme_dark.scss +0 -24
- package/dist/styles-scss/theme_light.scss +0 -54
- package/dist/utils/hooks.d.ts +0 -15
- package/dist/utils/hooks.js +0 -79
- /package/dist/{style-guide/Icons/IconDisplayGrid.d.ts → components/Icons/IconsShowcase.d.ts} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as he, jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as he, jsx as re } from "react/jsx-runtime";
|
|
2
|
+
import xe, { useMemo as L, useRef as te, useReducer as hr, useEffect as De, useCallback as D, forwardRef as Dr, useImperativeHandle as Ar, Fragment as wr } from "react";
|
|
3
3
|
import { P as l } from "../../index-DQMInta3.js";
|
|
4
4
|
import { a as M, b as $, c as We, d as Be } from "../../tslib.es6-CBKHJX9H.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { clsx as
|
|
8
|
-
import
|
|
9
|
-
import '../../assets/InputDropzone.css';var
|
|
5
|
+
import { IconBig as Or } from "../IconBig/IconBig.js";
|
|
6
|
+
import { Text as Ue } from "../Text/Text.js";
|
|
7
|
+
import { clsx as Er } from "../../utils/clsx.js";
|
|
8
|
+
import Fr from "./ItemPreview.js";
|
|
9
|
+
import '../../assets/InputDropzone.css';var _r = /* @__PURE__ */ new Map([
|
|
10
10
|
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
|
11
11
|
["aac", "audio/aac"],
|
|
12
12
|
["abw", "application/x-abiword"],
|
|
@@ -90,8 +90,8 @@ import '../../assets/InputDropzone.css';var xr = /* @__PURE__ */ new Map([
|
|
|
90
90
|
["mov", "video/quicktime"],
|
|
91
91
|
["msg", "application/vnd.ms-outlook"]
|
|
92
92
|
]);
|
|
93
|
-
function
|
|
94
|
-
var t =
|
|
93
|
+
function U(e, r) {
|
|
94
|
+
var t = xr(e);
|
|
95
95
|
if (typeof t.path != "string") {
|
|
96
96
|
var n = e.webkitRelativePath;
|
|
97
97
|
Object.defineProperty(t, "path", {
|
|
@@ -103,10 +103,10 @@ function Y(e, r) {
|
|
|
103
103
|
}
|
|
104
104
|
return t;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function xr(e) {
|
|
107
107
|
var r = e.name, t = r && r.lastIndexOf(".") !== -1;
|
|
108
108
|
if (t && !e.type) {
|
|
109
|
-
var n = r.split(".").pop().toLowerCase(), i =
|
|
109
|
+
var n = r.split(".").pop().toLowerCase(), i = _r.get(n);
|
|
110
110
|
i && Object.defineProperty(e, "type", {
|
|
111
111
|
value: i,
|
|
112
112
|
writable: !1,
|
|
@@ -125,27 +125,27 @@ var jr = [
|
|
|
125
125
|
function Pr(e) {
|
|
126
126
|
return M(this, void 0, void 0, function() {
|
|
127
127
|
return $(this, function(r) {
|
|
128
|
-
return oe(e) &&
|
|
128
|
+
return oe(e) && Ir(e.dataTransfer) ? [2, Rr(e.dataTransfer, e.type)] : Tr(e) ? [2, Cr(e)] : Array.isArray(e) && e.every(function(t) {
|
|
129
129
|
return "getFile" in t && typeof t.getFile == "function";
|
|
130
|
-
}) ? [2,
|
|
130
|
+
}) ? [2, Sr(e)] : [2, []];
|
|
131
131
|
});
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Ir(e) {
|
|
135
135
|
return oe(e);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Tr(e) {
|
|
138
138
|
return oe(e) && oe(e.target);
|
|
139
139
|
}
|
|
140
140
|
function oe(e) {
|
|
141
141
|
return typeof e == "object" && e !== null;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Cr(e) {
|
|
144
144
|
return we(e.target.files).map(function(r) {
|
|
145
|
-
return
|
|
145
|
+
return U(r);
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Sr(e) {
|
|
149
149
|
return M(this, void 0, void 0, function() {
|
|
150
150
|
var r;
|
|
151
151
|
return $(this, function(t) {
|
|
@@ -156,7 +156,7 @@ function Cr(e) {
|
|
|
156
156
|
}))];
|
|
157
157
|
case 1:
|
|
158
158
|
return r = t.sent(), [2, r.map(function(n) {
|
|
159
|
-
return
|
|
159
|
+
return U(n);
|
|
160
160
|
})];
|
|
161
161
|
}
|
|
162
162
|
});
|
|
@@ -170,18 +170,18 @@ function Rr(e, r) {
|
|
|
170
170
|
case 0:
|
|
171
171
|
return e.items ? (t = we(e.items).filter(function(a) {
|
|
172
172
|
return a.kind === "file";
|
|
173
|
-
}), r !== "drop" ? [2, t] : [4, Promise.all(t.map(
|
|
173
|
+
}), r !== "drop" ? [2, t] : [4, Promise.all(t.map(zr))]) : [3, 2];
|
|
174
174
|
case 1:
|
|
175
|
-
return n = i.sent(), [2,
|
|
175
|
+
return n = i.sent(), [2, Ye(tr(n))];
|
|
176
176
|
case 2:
|
|
177
|
-
return [2,
|
|
178
|
-
return
|
|
177
|
+
return [2, Ye(we(e.files).map(function(a) {
|
|
178
|
+
return U(a);
|
|
179
179
|
}))];
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Ye(e) {
|
|
185
185
|
return e.filter(function(r) {
|
|
186
186
|
return jr.indexOf(r.name) === -1;
|
|
187
187
|
});
|
|
@@ -195,44 +195,44 @@ function we(e) {
|
|
|
195
195
|
}
|
|
196
196
|
return r;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function zr(e) {
|
|
199
199
|
if (typeof e.webkitGetAsEntry != "function")
|
|
200
|
-
return
|
|
200
|
+
return Ge(e);
|
|
201
201
|
var r = e.webkitGetAsEntry();
|
|
202
|
-
return r && r.isDirectory ?
|
|
202
|
+
return r && r.isDirectory ? nr(r) : Ge(e);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function tr(e) {
|
|
205
205
|
return e.reduce(function(r, t) {
|
|
206
|
-
return We(We([], Be(r), !1), Be(Array.isArray(t) ?
|
|
206
|
+
return We(We([], Be(r), !1), Be(Array.isArray(t) ? tr(t) : [t]), !1);
|
|
207
207
|
}, []);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function Ge(e) {
|
|
210
210
|
var r = e.getAsFile();
|
|
211
211
|
if (!r)
|
|
212
212
|
return Promise.reject("".concat(e, " is not a File"));
|
|
213
|
-
var t =
|
|
213
|
+
var t = U(r);
|
|
214
214
|
return Promise.resolve(t);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function kr(e) {
|
|
217
217
|
return M(this, void 0, void 0, function() {
|
|
218
218
|
return $(this, function(r) {
|
|
219
|
-
return [2, e.isDirectory ?
|
|
219
|
+
return [2, e.isDirectory ? nr(e) : Lr(e)];
|
|
220
220
|
});
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function nr(e) {
|
|
224
224
|
var r = e.createReader();
|
|
225
225
|
return new Promise(function(t, n) {
|
|
226
226
|
var i = [];
|
|
227
227
|
function a() {
|
|
228
|
-
var
|
|
229
|
-
r.readEntries(function(
|
|
230
|
-
return M(
|
|
228
|
+
var u = this;
|
|
229
|
+
r.readEntries(function(s) {
|
|
230
|
+
return M(u, void 0, void 0, function() {
|
|
231
231
|
var d, A, w;
|
|
232
232
|
return $(this, function(v) {
|
|
233
233
|
switch (v.label) {
|
|
234
234
|
case 0:
|
|
235
|
-
if (
|
|
235
|
+
if (s.length) return [3, 5];
|
|
236
236
|
v.label = 1;
|
|
237
237
|
case 1:
|
|
238
238
|
return v.trys.push([1, 3, , 4]), [4, Promise.all(i)];
|
|
@@ -243,7 +243,7 @@ function tr(e) {
|
|
|
243
243
|
case 4:
|
|
244
244
|
return [3, 6];
|
|
245
245
|
case 5:
|
|
246
|
-
w = Promise.all(
|
|
246
|
+
w = Promise.all(s.map(kr)), i.push(w), a(), v.label = 6;
|
|
247
247
|
case 6:
|
|
248
248
|
return [
|
|
249
249
|
2
|
|
@@ -252,8 +252,8 @@ function tr(e) {
|
|
|
252
252
|
}
|
|
253
253
|
});
|
|
254
254
|
});
|
|
255
|
-
}, function(
|
|
256
|
-
n(
|
|
255
|
+
}, function(s) {
|
|
256
|
+
n(s);
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
a();
|
|
@@ -264,7 +264,7 @@ function Lr(e) {
|
|
|
264
264
|
return $(this, function(r) {
|
|
265
265
|
return [2, new Promise(function(t, n) {
|
|
266
266
|
e.file(function(i) {
|
|
267
|
-
var a =
|
|
267
|
+
var a = U(i, e.fullPath);
|
|
268
268
|
t(a);
|
|
269
269
|
}, function(i) {
|
|
270
270
|
n(i);
|
|
@@ -276,15 +276,15 @@ function Lr(e) {
|
|
|
276
276
|
var Mr = function(e, r) {
|
|
277
277
|
if (e && r) {
|
|
278
278
|
var t = Array.isArray(r) ? r : r.split(","), n = e.name || "", i = (e.type || "").toLowerCase(), a = i.replace(/\/.*$/, "");
|
|
279
|
-
return t.some(function(
|
|
280
|
-
var
|
|
281
|
-
return
|
|
279
|
+
return t.some(function(u) {
|
|
280
|
+
var s = u.trim().toLowerCase();
|
|
281
|
+
return s.charAt(0) === "." ? n.toLowerCase().endsWith(s) : s.endsWith("/*") ? a === s.replace(/\/.*$/, "") : i === s;
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
284
|
return !0;
|
|
285
285
|
};
|
|
286
|
-
function
|
|
287
|
-
return Hr(e) || Kr(e) ||
|
|
286
|
+
function qe(e) {
|
|
287
|
+
return Hr(e) || Kr(e) || ir(e) || $r();
|
|
288
288
|
}
|
|
289
289
|
function $r() {
|
|
290
290
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -294,9 +294,9 @@ function Kr(e) {
|
|
|
294
294
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
295
295
|
}
|
|
296
296
|
function Hr(e) {
|
|
297
|
-
if (Array.isArray(e)) return
|
|
297
|
+
if (Array.isArray(e)) return Oe(e);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Je(e, r) {
|
|
300
300
|
var t = Object.keys(e);
|
|
301
301
|
if (Object.getOwnPropertySymbols) {
|
|
302
302
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -306,61 +306,61 @@ function Ge(e, r) {
|
|
|
306
306
|
}
|
|
307
307
|
return t;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function Ve(e) {
|
|
310
310
|
for (var r = 1; r < arguments.length; r++) {
|
|
311
311
|
var t = arguments[r] != null ? arguments[r] : {};
|
|
312
|
-
r % 2 ?
|
|
313
|
-
|
|
314
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
312
|
+
r % 2 ? Je(Object(t), !0).forEach(function(n) {
|
|
313
|
+
or(e, n, t[n]);
|
|
314
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Je(Object(t)).forEach(function(n) {
|
|
315
315
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
return e;
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function or(e, r, t) {
|
|
321
321
|
return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
return
|
|
323
|
+
function B(e, r) {
|
|
324
|
+
return Br(e) || Wr(e, r) || ir(e, r) || Nr();
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function Nr() {
|
|
327
327
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
328
328
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function ir(e, r) {
|
|
331
331
|
if (e) {
|
|
332
|
-
if (typeof e == "string") return
|
|
332
|
+
if (typeof e == "string") return Oe(e, r);
|
|
333
333
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
334
334
|
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
|
|
335
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
|
335
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Oe(e, r);
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function Oe(e, r) {
|
|
339
339
|
(r == null || r > e.length) && (r = e.length);
|
|
340
340
|
for (var t = 0, n = new Array(r); t < r; t++)
|
|
341
341
|
n[t] = e[t];
|
|
342
342
|
return n;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function Wr(e, r) {
|
|
345
345
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
346
346
|
if (t != null) {
|
|
347
|
-
var n = [], i = !0, a = !1,
|
|
347
|
+
var n = [], i = !0, a = !1, u, s;
|
|
348
348
|
try {
|
|
349
|
-
for (t = t.call(e); !(i = (
|
|
349
|
+
for (t = t.call(e); !(i = (u = t.next()).done) && (n.push(u.value), !(r && n.length === r)); i = !0)
|
|
350
350
|
;
|
|
351
351
|
} catch (d) {
|
|
352
|
-
a = !0,
|
|
352
|
+
a = !0, s = d;
|
|
353
353
|
} finally {
|
|
354
354
|
try {
|
|
355
355
|
!i && t.return != null && t.return();
|
|
356
356
|
} finally {
|
|
357
|
-
if (a) throw
|
|
357
|
+
if (a) throw s;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
360
|
return n;
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Br(e) {
|
|
364
364
|
if (Array.isArray(e)) return e;
|
|
365
365
|
}
|
|
366
366
|
var Ur = "file-invalid-type", Yr = "file-too-large", Gr = "file-too-small", qr = "too-many-files", Jr = function(r) {
|
|
@@ -370,12 +370,12 @@ var Ur = "file-invalid-type", Yr = "file-too-large", Gr = "file-too-small", qr =
|
|
|
370
370
|
code: Ur,
|
|
371
371
|
message: "File type must be ".concat(t)
|
|
372
372
|
};
|
|
373
|
-
},
|
|
373
|
+
}, Qe = function(r) {
|
|
374
374
|
return {
|
|
375
375
|
code: Yr,
|
|
376
376
|
message: "File is larger than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
|
|
377
377
|
};
|
|
378
|
-
},
|
|
378
|
+
}, Xe = function(r) {
|
|
379
379
|
return {
|
|
380
380
|
code: Gr,
|
|
381
381
|
message: "File is smaller than ".concat(r, " ").concat(r === 1 ? "byte" : "bytes")
|
|
@@ -384,28 +384,28 @@ var Ur = "file-invalid-type", Yr = "file-too-large", Gr = "file-too-small", qr =
|
|
|
384
384
|
code: qr,
|
|
385
385
|
message: "Too many files"
|
|
386
386
|
};
|
|
387
|
-
function
|
|
387
|
+
function ar(e, r) {
|
|
388
388
|
var t = e.type === "application/x-moz-file" || Mr(e, r);
|
|
389
389
|
return [t, t ? null : Jr(r)];
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
if (
|
|
393
|
-
if (
|
|
394
|
-
if (e.size > t) return [!1,
|
|
395
|
-
if (e.size < r) return [!1,
|
|
391
|
+
function cr(e, r, t) {
|
|
392
|
+
if (C(e.size))
|
|
393
|
+
if (C(r) && C(t)) {
|
|
394
|
+
if (e.size > t) return [!1, Qe(t)];
|
|
395
|
+
if (e.size < r) return [!1, Xe(r)];
|
|
396
396
|
} else {
|
|
397
|
-
if (
|
|
398
|
-
if (
|
|
397
|
+
if (C(r) && e.size < r) return [!1, Xe(r)];
|
|
398
|
+
if (C(t) && e.size > t) return [!1, Qe(t)];
|
|
399
399
|
}
|
|
400
400
|
return [!0, null];
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function C(e) {
|
|
403
403
|
return e != null;
|
|
404
404
|
}
|
|
405
405
|
function Qr(e) {
|
|
406
|
-
var r = e.files, t = e.accept, n = e.minSize, i = e.maxSize, a = e.multiple,
|
|
407
|
-
return !a && r.length > 1 || a &&
|
|
408
|
-
var A =
|
|
406
|
+
var r = e.files, t = e.accept, n = e.minSize, i = e.maxSize, a = e.multiple, u = e.maxFiles, s = e.validator;
|
|
407
|
+
return !a && r.length > 1 || a && u >= 1 && r.length > u ? !1 : r.every(function(d) {
|
|
408
|
+
var A = ar(d, t), w = B(A, 1), v = w[0], _ = cr(d, n, i), x = B(_, 1), j = x[0], P = s ? s(d) : null;
|
|
409
409
|
return v && j && !P;
|
|
410
410
|
});
|
|
411
411
|
}
|
|
@@ -417,7 +417,7 @@ function ne(e) {
|
|
|
417
417
|
return r === "Files" || r === "application/x-moz-file";
|
|
418
418
|
}) : !!e.target && !!e.target.files;
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function Ze(e) {
|
|
421
421
|
e.preventDefault();
|
|
422
422
|
}
|
|
423
423
|
function Xr(e) {
|
|
@@ -430,14 +430,14 @@ function et() {
|
|
|
430
430
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
431
431
|
return Xr(e) || Zr(e);
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function O() {
|
|
434
434
|
for (var e = arguments.length, r = new Array(e), t = 0; t < e; t++)
|
|
435
435
|
r[t] = arguments[t];
|
|
436
436
|
return function(n) {
|
|
437
|
-
for (var i = arguments.length, a = new Array(i > 1 ? i - 1 : 0),
|
|
438
|
-
a[
|
|
439
|
-
return r.some(function(
|
|
440
|
-
return !ie(n) &&
|
|
437
|
+
for (var i = arguments.length, a = new Array(i > 1 ? i - 1 : 0), u = 1; u < i; u++)
|
|
438
|
+
a[u - 1] = arguments[u];
|
|
439
|
+
return r.some(function(s) {
|
|
440
|
+
return !ie(n) && s && s.apply(void 0, [n].concat(a)), ie(n);
|
|
441
441
|
});
|
|
442
442
|
};
|
|
443
443
|
}
|
|
@@ -445,13 +445,13 @@ function rt() {
|
|
|
445
445
|
return "showOpenFilePicker" in window;
|
|
446
446
|
}
|
|
447
447
|
function tt(e) {
|
|
448
|
-
if (
|
|
448
|
+
if (C(e)) {
|
|
449
449
|
var r = Object.entries(e).filter(function(t) {
|
|
450
|
-
var n =
|
|
451
|
-
return
|
|
450
|
+
var n = B(t, 2), i = n[0], a = n[1], u = !0;
|
|
451
|
+
return ur(i) || (console.warn('Skipped "'.concat(i, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), u = !1), (!Array.isArray(a) || !a.every(sr)) && (console.warn('Skipped "'.concat(i, '" because an invalid file extension was provided.')), u = !1), u;
|
|
452
452
|
}).reduce(function(t, n) {
|
|
453
|
-
var i =
|
|
454
|
-
return
|
|
453
|
+
var i = B(n, 2), a = i[0], u = i[1];
|
|
454
|
+
return Ve(Ve({}, t), {}, or({}, a, u));
|
|
455
455
|
}, {});
|
|
456
456
|
return [{
|
|
457
457
|
// description is required due to https://crbug.com/1264708
|
|
@@ -462,12 +462,12 @@ function tt(e) {
|
|
|
462
462
|
return e;
|
|
463
463
|
}
|
|
464
464
|
function nt(e) {
|
|
465
|
-
if (
|
|
465
|
+
if (C(e))
|
|
466
466
|
return Object.entries(e).reduce(function(r, t) {
|
|
467
|
-
var n =
|
|
468
|
-
return [].concat(
|
|
467
|
+
var n = B(t, 2), i = n[0], a = n[1];
|
|
468
|
+
return [].concat(qe(r), [i], qe(a));
|
|
469
469
|
}, []).filter(function(r) {
|
|
470
|
-
return
|
|
470
|
+
return ur(r) || sr(r);
|
|
471
471
|
}).join(",");
|
|
472
472
|
}
|
|
473
473
|
function ot(e) {
|
|
@@ -476,15 +476,15 @@ function ot(e) {
|
|
|
476
476
|
function it(e) {
|
|
477
477
|
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function ur(e) {
|
|
480
480
|
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || /\w+\/[-+.\w]+/g.test(e);
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function sr(e) {
|
|
483
483
|
return /^.*\.[\w]+$/.test(e);
|
|
484
484
|
}
|
|
485
485
|
var at = ["children"], ct = ["open"], ut = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], st = ["refKey", "onChange", "onClick"];
|
|
486
486
|
function lt(e) {
|
|
487
|
-
return dt(e) || pt(e) ||
|
|
487
|
+
return dt(e) || pt(e) || lr(e) || ft();
|
|
488
488
|
}
|
|
489
489
|
function ft() {
|
|
490
490
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -494,24 +494,24 @@ function pt(e) {
|
|
|
494
494
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
495
495
|
}
|
|
496
496
|
function dt(e) {
|
|
497
|
-
if (Array.isArray(e)) return
|
|
497
|
+
if (Array.isArray(e)) return Ee(e);
|
|
498
498
|
}
|
|
499
499
|
function Ae(e, r) {
|
|
500
|
-
return vt(e) || gt(e, r) ||
|
|
500
|
+
return vt(e) || gt(e, r) || lr(e, r) || mt();
|
|
501
501
|
}
|
|
502
502
|
function mt() {
|
|
503
503
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
504
504
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function lr(e, r) {
|
|
507
507
|
if (e) {
|
|
508
|
-
if (typeof e == "string") return
|
|
508
|
+
if (typeof e == "string") return Ee(e, r);
|
|
509
509
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
510
510
|
if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
|
|
511
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
|
511
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Ee(e, r);
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Ee(e, r) {
|
|
515
515
|
(r == null || r > e.length) && (r = e.length);
|
|
516
516
|
for (var t = 0, n = new Array(r); t < r; t++)
|
|
517
517
|
n[t] = e[t];
|
|
@@ -520,17 +520,17 @@ function Fe(e, r) {
|
|
|
520
520
|
function gt(e, r) {
|
|
521
521
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
522
522
|
if (t != null) {
|
|
523
|
-
var n = [], i = !0, a = !1,
|
|
523
|
+
var n = [], i = !0, a = !1, u, s;
|
|
524
524
|
try {
|
|
525
|
-
for (t = t.call(e); !(i = (
|
|
525
|
+
for (t = t.call(e); !(i = (u = t.next()).done) && (n.push(u.value), !(r && n.length === r)); i = !0)
|
|
526
526
|
;
|
|
527
527
|
} catch (d) {
|
|
528
|
-
a = !0,
|
|
528
|
+
a = !0, s = d;
|
|
529
529
|
} finally {
|
|
530
530
|
try {
|
|
531
531
|
!i && t.return != null && t.return();
|
|
532
532
|
} finally {
|
|
533
|
-
if (a) throw
|
|
533
|
+
if (a) throw s;
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
return n;
|
|
@@ -539,7 +539,7 @@ function gt(e, r) {
|
|
|
539
539
|
function vt(e) {
|
|
540
540
|
if (Array.isArray(e)) return e;
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function er(e, r) {
|
|
543
543
|
var t = Object.keys(e);
|
|
544
544
|
if (Object.getOwnPropertySymbols) {
|
|
545
545
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -552,15 +552,15 @@ function Xe(e, r) {
|
|
|
552
552
|
function f(e) {
|
|
553
553
|
for (var r = 1; r < arguments.length; r++) {
|
|
554
554
|
var t = arguments[r] != null ? arguments[r] : {};
|
|
555
|
-
r % 2 ?
|
|
556
|
-
|
|
557
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
555
|
+
r % 2 ? er(Object(t), !0).forEach(function(n) {
|
|
556
|
+
Fe(e, n, t[n]);
|
|
557
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : er(Object(t)).forEach(function(n) {
|
|
558
558
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
561
|
return e;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function Fe(e, r, t) {
|
|
564
564
|
return r in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;
|
|
565
565
|
}
|
|
566
566
|
function ae(e, r) {
|
|
@@ -580,18 +580,18 @@ function yt(e, r) {
|
|
|
580
580
|
i = n[a], !(r.indexOf(i) >= 0) && (t[i] = e[i]);
|
|
581
581
|
return t;
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
var t = e.children, n = ae(e, at), i =
|
|
585
|
-
return
|
|
583
|
+
var je = /* @__PURE__ */ Dr(function(e, r) {
|
|
584
|
+
var t = e.children, n = ae(e, at), i = pr(n), a = i.open, u = ae(i, ct);
|
|
585
|
+
return Ar(r, function() {
|
|
586
586
|
return {
|
|
587
587
|
open: a
|
|
588
588
|
};
|
|
589
|
-
}, [a]), /* @__PURE__ */
|
|
589
|
+
}, [a]), /* @__PURE__ */ xe.createElement(wr, null, t(f(f({}, u), {}, {
|
|
590
590
|
open: a
|
|
591
591
|
})));
|
|
592
592
|
});
|
|
593
|
-
|
|
594
|
-
var
|
|
593
|
+
je.displayName = "Dropzone";
|
|
594
|
+
var fr = {
|
|
595
595
|
disabled: !1,
|
|
596
596
|
getFilesFromEvent: Pr,
|
|
597
597
|
maxSize: 1 / 0,
|
|
@@ -607,8 +607,8 @@ var lr = {
|
|
|
607
607
|
useFsAccessApi: !0,
|
|
608
608
|
autoFocus: !1
|
|
609
609
|
};
|
|
610
|
-
|
|
611
|
-
|
|
610
|
+
je.defaultProps = fr;
|
|
611
|
+
je.propTypes = {
|
|
612
612
|
/**
|
|
613
613
|
* Render function that exposes the dropzone state and prop getter fns
|
|
614
614
|
*
|
|
@@ -776,7 +776,7 @@ Ee.propTypes = {
|
|
|
776
776
|
*/
|
|
777
777
|
validator: l.func
|
|
778
778
|
};
|
|
779
|
-
var
|
|
779
|
+
var _e = {
|
|
780
780
|
isFocused: !1,
|
|
781
781
|
isFileDialogActive: !1,
|
|
782
782
|
isDragActive: !1,
|
|
@@ -785,52 +785,52 @@ var xe = {
|
|
|
785
785
|
acceptedFiles: [],
|
|
786
786
|
fileRejections: []
|
|
787
787
|
};
|
|
788
|
-
function
|
|
789
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = f(f({},
|
|
788
|
+
function pr() {
|
|
789
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = f(f({}, fr), e), t = r.accept, n = r.disabled, i = r.getFilesFromEvent, a = r.maxSize, u = r.minSize, s = r.multiple, d = r.maxFiles, A = r.onDragEnter, w = r.onDragLeave, v = r.onDragOver, _ = r.onDrop, x = r.onDropAccepted, j = r.onDropRejected, P = r.onFileDialogCancel, K = r.onFileDialogOpen, Y = r.useFsAccessApi, G = r.autoFocus, E = r.preventDropOnDocument, Pe = r.noClick, ce = r.noKeyboard, Ie = r.noDrag, I = r.noDragEventsBubbling, ue = r.onError, H = r.validator, N = L(function() {
|
|
790
790
|
return nt(t);
|
|
791
791
|
}, [t]), Te = L(function() {
|
|
792
792
|
return tt(t);
|
|
793
793
|
}, [t]), se = L(function() {
|
|
794
|
-
return typeof K == "function" ? K :
|
|
795
|
-
}, [K]),
|
|
796
|
-
return typeof P == "function" ? P :
|
|
797
|
-
}, [P]), g = te(null), h = te(null),
|
|
798
|
-
!
|
|
794
|
+
return typeof K == "function" ? K : rr;
|
|
795
|
+
}, [K]), q = L(function() {
|
|
796
|
+
return typeof P == "function" ? P : rr;
|
|
797
|
+
}, [P]), g = te(null), h = te(null), dr = hr(bt, _e), Ce = Ae(dr, 2), le = Ce[0], y = Ce[1], mr = le.isFocused, Se = le.isFileDialogActive, J = te(typeof window < "u" && window.isSecureContext && Y && rt()), Re = function() {
|
|
798
|
+
!J.current && Se && setTimeout(function() {
|
|
799
799
|
if (h.current) {
|
|
800
800
|
var c = h.current.files;
|
|
801
801
|
c.length || (y({
|
|
802
802
|
type: "closeDialog"
|
|
803
|
-
}),
|
|
803
|
+
}), q());
|
|
804
804
|
}
|
|
805
805
|
}, 300);
|
|
806
806
|
};
|
|
807
807
|
De(function() {
|
|
808
|
-
return window.addEventListener("focus",
|
|
809
|
-
window.removeEventListener("focus",
|
|
808
|
+
return window.addEventListener("focus", Re, !1), function() {
|
|
809
|
+
window.removeEventListener("focus", Re, !1);
|
|
810
810
|
};
|
|
811
|
-
}, [h, Se,
|
|
812
|
-
var
|
|
813
|
-
g.current && g.current.contains(c.target) || (c.preventDefault(),
|
|
811
|
+
}, [h, Se, q, J]);
|
|
812
|
+
var S = te([]), ze = function(c) {
|
|
813
|
+
g.current && g.current.contains(c.target) || (c.preventDefault(), S.current = []);
|
|
814
814
|
};
|
|
815
815
|
De(function() {
|
|
816
|
-
return
|
|
817
|
-
|
|
816
|
+
return E && (document.addEventListener("dragover", Ze, !1), document.addEventListener("drop", ze, !1)), function() {
|
|
817
|
+
E && (document.removeEventListener("dragover", Ze), document.removeEventListener("drop", ze));
|
|
818
818
|
};
|
|
819
|
-
}, [g,
|
|
820
|
-
return !n &&
|
|
819
|
+
}, [g, E]), De(function() {
|
|
820
|
+
return !n && G && g.current && g.current.focus(), function() {
|
|
821
821
|
};
|
|
822
|
-
}, [g,
|
|
823
|
-
var
|
|
822
|
+
}, [g, G, n]);
|
|
823
|
+
var T = D(function(o) {
|
|
824
824
|
ue ? ue(o) : console.error(o);
|
|
825
825
|
}, [ue]), ke = D(function(o) {
|
|
826
|
-
o.preventDefault(), o.persist(),
|
|
827
|
-
if (!(ie(o) && !
|
|
826
|
+
o.preventDefault(), o.persist(), Z(o), S.current = [].concat(lt(S.current), [o.target]), ne(o) && Promise.resolve(i(o)).then(function(c) {
|
|
827
|
+
if (!(ie(o) && !I)) {
|
|
828
828
|
var p = c.length, m = p > 0 && Qr({
|
|
829
829
|
files: c,
|
|
830
|
-
accept:
|
|
831
|
-
minSize:
|
|
830
|
+
accept: N,
|
|
831
|
+
minSize: u,
|
|
832
832
|
maxSize: a,
|
|
833
|
-
multiple:
|
|
833
|
+
multiple: s,
|
|
834
834
|
maxFiles: d,
|
|
835
835
|
validator: H
|
|
836
836
|
}), b = p > 0 && !m;
|
|
@@ -842,10 +842,10 @@ function fr() {
|
|
|
842
842
|
}), A && A(o);
|
|
843
843
|
}
|
|
844
844
|
}).catch(function(c) {
|
|
845
|
-
return
|
|
845
|
+
return T(c);
|
|
846
846
|
});
|
|
847
|
-
}, [i, A,
|
|
848
|
-
o.preventDefault(), o.persist(),
|
|
847
|
+
}, [i, A, T, I, N, u, a, s, d, H]), Le = D(function(o) {
|
|
848
|
+
o.preventDefault(), o.persist(), Z(o);
|
|
849
849
|
var c = ne(o);
|
|
850
850
|
if (c && o.dataTransfer)
|
|
851
851
|
try {
|
|
@@ -853,33 +853,33 @@ function fr() {
|
|
|
853
853
|
} catch {
|
|
854
854
|
}
|
|
855
855
|
return c && v && v(o), !1;
|
|
856
|
-
}, [v,
|
|
857
|
-
o.preventDefault(), o.persist(),
|
|
858
|
-
var c =
|
|
856
|
+
}, [v, I]), Me = D(function(o) {
|
|
857
|
+
o.preventDefault(), o.persist(), Z(o);
|
|
858
|
+
var c = S.current.filter(function(m) {
|
|
859
859
|
return g.current && g.current.contains(m);
|
|
860
860
|
}), p = c.indexOf(o.target);
|
|
861
|
-
p !== -1 && c.splice(p, 1),
|
|
861
|
+
p !== -1 && c.splice(p, 1), S.current = c, !(c.length > 0) && (y({
|
|
862
862
|
type: "setDraggedFiles",
|
|
863
863
|
isDragActive: !1,
|
|
864
864
|
isDragAccept: !1,
|
|
865
865
|
isDragReject: !1
|
|
866
866
|
}), ne(o) && w && w(o));
|
|
867
|
-
}, [g, w,
|
|
867
|
+
}, [g, w, I]), V = D(function(o, c) {
|
|
868
868
|
var p = [], m = [];
|
|
869
869
|
o.forEach(function(b) {
|
|
870
|
-
var
|
|
870
|
+
var W = ar(b, N), k = Ae(W, 2), pe = k[0], de = k[1], me = cr(b, u, a), ee = Ae(me, 2), ge = ee[0], ve = ee[1], ye = H ? H(b) : null;
|
|
871
871
|
if (pe && ge && !ye)
|
|
872
872
|
p.push(b);
|
|
873
873
|
else {
|
|
874
874
|
var be = [de, ve];
|
|
875
875
|
ye && (be = be.concat(ye)), m.push({
|
|
876
876
|
file: b,
|
|
877
|
-
errors: be.filter(function(
|
|
878
|
-
return
|
|
877
|
+
errors: be.filter(function(br) {
|
|
878
|
+
return br;
|
|
879
879
|
})
|
|
880
880
|
});
|
|
881
881
|
}
|
|
882
|
-
}), (!
|
|
882
|
+
}), (!s && p.length > 1 || s && d >= 1 && p.length > d) && (p.forEach(function(b) {
|
|
883
883
|
m.push({
|
|
884
884
|
file: b,
|
|
885
885
|
errors: [Vr]
|
|
@@ -888,102 +888,102 @@ function fr() {
|
|
|
888
888
|
acceptedFiles: p,
|
|
889
889
|
fileRejections: m,
|
|
890
890
|
type: "setFiles"
|
|
891
|
-
}),
|
|
892
|
-
}, [y,
|
|
893
|
-
o.preventDefault(), o.persist(),
|
|
894
|
-
ie(o) && !
|
|
891
|
+
}), _ && _(p, m, c), m.length > 0 && j && j(m, c), p.length > 0 && x && x(p, c);
|
|
892
|
+
}, [y, s, N, u, a, d, _, x, j, H]), Q = D(function(o) {
|
|
893
|
+
o.preventDefault(), o.persist(), Z(o), S.current = [], ne(o) && Promise.resolve(i(o)).then(function(c) {
|
|
894
|
+
ie(o) && !I || V(c, o);
|
|
895
895
|
}).catch(function(c) {
|
|
896
|
-
return
|
|
896
|
+
return T(c);
|
|
897
897
|
}), y({
|
|
898
898
|
type: "reset"
|
|
899
899
|
});
|
|
900
|
-
}, [i,
|
|
901
|
-
if (
|
|
900
|
+
}, [i, V, T, I]), R = D(function() {
|
|
901
|
+
if (J.current) {
|
|
902
902
|
y({
|
|
903
903
|
type: "openDialog"
|
|
904
904
|
}), se();
|
|
905
905
|
var o = {
|
|
906
|
-
multiple:
|
|
906
|
+
multiple: s,
|
|
907
907
|
types: Te
|
|
908
908
|
};
|
|
909
909
|
window.showOpenFilePicker(o).then(function(c) {
|
|
910
910
|
return i(c);
|
|
911
911
|
}).then(function(c) {
|
|
912
|
-
|
|
912
|
+
V(c, null), y({
|
|
913
913
|
type: "closeDialog"
|
|
914
914
|
});
|
|
915
915
|
}).catch(function(c) {
|
|
916
|
-
ot(c) ? (
|
|
916
|
+
ot(c) ? (q(c), y({
|
|
917
917
|
type: "closeDialog"
|
|
918
|
-
})) : it(c) ? (
|
|
918
|
+
})) : it(c) ? (J.current = !1, h.current ? (h.current.value = null, h.current.click()) : T(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : T(c);
|
|
919
919
|
});
|
|
920
920
|
return;
|
|
921
921
|
}
|
|
922
922
|
h.current && (y({
|
|
923
923
|
type: "openDialog"
|
|
924
924
|
}), se(), h.current.value = null, h.current.click());
|
|
925
|
-
}, [y, se,
|
|
925
|
+
}, [y, se, q, Y, V, T, Te, s]), $e = D(function(o) {
|
|
926
926
|
!g.current || !g.current.isEqualNode(o.target) || (o.key === " " || o.key === "Enter" || o.keyCode === 32 || o.keyCode === 13) && (o.preventDefault(), R());
|
|
927
|
-
}, [g, R]),
|
|
927
|
+
}, [g, R]), Ke = D(function() {
|
|
928
928
|
y({
|
|
929
929
|
type: "focus"
|
|
930
930
|
});
|
|
931
|
-
}, []),
|
|
931
|
+
}, []), He = D(function() {
|
|
932
932
|
y({
|
|
933
933
|
type: "blur"
|
|
934
934
|
});
|
|
935
|
-
}, []),
|
|
936
|
-
|
|
937
|
-
}, [
|
|
935
|
+
}, []), Ne = D(function() {
|
|
936
|
+
Pe || (et() ? setTimeout(R, 0) : R());
|
|
937
|
+
}, [Pe, R]), z = function(c) {
|
|
938
938
|
return n ? null : c;
|
|
939
939
|
}, fe = function(c) {
|
|
940
|
-
return ce ? null :
|
|
940
|
+
return ce ? null : z(c);
|
|
941
|
+
}, X = function(c) {
|
|
942
|
+
return Ie ? null : z(c);
|
|
941
943
|
}, Z = function(c) {
|
|
942
|
-
|
|
943
|
-
},
|
|
944
|
-
T && c.stopPropagation();
|
|
945
|
-
}, mr = L(function() {
|
|
944
|
+
I && c.stopPropagation();
|
|
945
|
+
}, gr = L(function() {
|
|
946
946
|
return function() {
|
|
947
|
-
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, p = c === void 0 ? "ref" : c, m = o.role, b = o.onKeyDown,
|
|
948
|
-
return f(f(
|
|
949
|
-
onKeyDown: fe(
|
|
950
|
-
onFocus: fe(
|
|
951
|
-
onBlur: fe(
|
|
952
|
-
onClick:
|
|
953
|
-
onDragEnter:
|
|
954
|
-
onDragOver:
|
|
955
|
-
onDragLeave:
|
|
956
|
-
onDrop:
|
|
947
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, p = c === void 0 ? "ref" : c, m = o.role, b = o.onKeyDown, W = o.onFocus, k = o.onBlur, pe = o.onClick, de = o.onDragEnter, me = o.onDragOver, ee = o.onDragLeave, ge = o.onDrop, ve = ae(o, ut);
|
|
948
|
+
return f(f(Fe({
|
|
949
|
+
onKeyDown: fe(O(b, $e)),
|
|
950
|
+
onFocus: fe(O(W, Ke)),
|
|
951
|
+
onBlur: fe(O(k, He)),
|
|
952
|
+
onClick: z(O(pe, Ne)),
|
|
953
|
+
onDragEnter: X(O(de, ke)),
|
|
954
|
+
onDragOver: X(O(me, Le)),
|
|
955
|
+
onDragLeave: X(O(ee, Me)),
|
|
956
|
+
onDrop: X(O(ge, Q)),
|
|
957
957
|
role: typeof m == "string" && m !== "" ? m : "presentation"
|
|
958
958
|
}, p, g), !n && !ce ? {
|
|
959
959
|
tabIndex: 0
|
|
960
960
|
} : {}), ve);
|
|
961
961
|
};
|
|
962
|
-
}, [g,
|
|
962
|
+
}, [g, $e, Ke, He, Ne, ke, Le, Me, Q, ce, Ie, n]), vr = D(function(o) {
|
|
963
963
|
o.stopPropagation();
|
|
964
|
-
}, []),
|
|
964
|
+
}, []), yr = L(function() {
|
|
965
965
|
return function() {
|
|
966
|
-
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, p = c === void 0 ? "ref" : c, m = o.onChange, b = o.onClick,
|
|
967
|
-
accept:
|
|
968
|
-
multiple:
|
|
966
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = o.refKey, p = c === void 0 ? "ref" : c, m = o.onChange, b = o.onClick, W = ae(o, st), k = Fe({
|
|
967
|
+
accept: N,
|
|
968
|
+
multiple: s,
|
|
969
969
|
type: "file",
|
|
970
970
|
style: {
|
|
971
971
|
display: "none"
|
|
972
972
|
},
|
|
973
|
-
onChange:
|
|
974
|
-
onClick:
|
|
973
|
+
onChange: z(O(m, Q)),
|
|
974
|
+
onClick: z(O(b, vr)),
|
|
975
975
|
tabIndex: -1
|
|
976
976
|
}, p, h);
|
|
977
|
-
return f(f({},
|
|
977
|
+
return f(f({}, k), W);
|
|
978
978
|
};
|
|
979
|
-
}, [h, t,
|
|
979
|
+
}, [h, t, s, Q, n]);
|
|
980
980
|
return f(f({}, le), {}, {
|
|
981
|
-
isFocused:
|
|
982
|
-
getRootProps:
|
|
983
|
-
getInputProps:
|
|
981
|
+
isFocused: mr && !n,
|
|
982
|
+
getRootProps: gr,
|
|
983
|
+
getInputProps: yr,
|
|
984
984
|
rootRef: g,
|
|
985
985
|
inputRef: h,
|
|
986
|
-
open:
|
|
986
|
+
open: z(R)
|
|
987
987
|
});
|
|
988
988
|
}
|
|
989
989
|
function bt(e, r) {
|
|
@@ -997,7 +997,7 @@ function bt(e, r) {
|
|
|
997
997
|
isFocused: !1
|
|
998
998
|
});
|
|
999
999
|
case "openDialog":
|
|
1000
|
-
return f(f({},
|
|
1000
|
+
return f(f({}, _e), {}, {
|
|
1001
1001
|
isFileDialogActive: !0
|
|
1002
1002
|
});
|
|
1003
1003
|
case "closeDialog":
|
|
@@ -1016,88 +1016,89 @@ function bt(e, r) {
|
|
|
1016
1016
|
fileRejections: r.fileRejections
|
|
1017
1017
|
});
|
|
1018
1018
|
case "reset":
|
|
1019
|
-
return f({},
|
|
1019
|
+
return f({}, _e);
|
|
1020
1020
|
default:
|
|
1021
1021
|
return e;
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function rr() {
|
|
1025
1025
|
}
|
|
1026
|
-
const ht = "
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
dragActive: Ft,
|
|
1033
|
-
linkText: Ot
|
|
1026
|
+
const ht = "_dropzone_ir264_1", Dt = "_text_ir264_19", At = "_disabled_ir264_25", wt = "_focused_ir264_39", Ot = "_dragActive_ir264_39", F = {
|
|
1027
|
+
dropzone: ht,
|
|
1028
|
+
text: Dt,
|
|
1029
|
+
disabled: At,
|
|
1030
|
+
focused: wt,
|
|
1031
|
+
dragActive: Ot
|
|
1034
1032
|
};
|
|
1035
|
-
function
|
|
1033
|
+
function Et(e) {
|
|
1036
1034
|
const {
|
|
1037
|
-
value: r,
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
rootAriaLabel: s = "",
|
|
1035
|
+
value: r = [],
|
|
1036
|
+
text: t,
|
|
1037
|
+
linkText: n,
|
|
1038
|
+
removeItemAriaLabel: i = "",
|
|
1039
|
+
rootAriaLabel: a = "",
|
|
1043
1040
|
onRemoveFile: u,
|
|
1044
|
-
|
|
1041
|
+
dropzoneItemClassName: s,
|
|
1042
|
+
dropzoneClassName: d,
|
|
1043
|
+
...A
|
|
1045
1044
|
} = e, {
|
|
1046
|
-
isFocused:
|
|
1047
|
-
isDragActive:
|
|
1048
|
-
isDragAccept:
|
|
1045
|
+
isFocused: w,
|
|
1046
|
+
isDragActive: v,
|
|
1047
|
+
isDragAccept: _,
|
|
1049
1048
|
isDragReject: x,
|
|
1050
|
-
isFileDialogActive:
|
|
1051
|
-
acceptedFiles: j,
|
|
1049
|
+
isFileDialogActive: j,
|
|
1052
1050
|
getRootProps: P,
|
|
1053
1051
|
getInputProps: K
|
|
1054
|
-
} =
|
|
1055
|
-
u && u(
|
|
1056
|
-
}, [u]),
|
|
1057
|
-
[F.disabled]:
|
|
1058
|
-
[F.focused]:
|
|
1059
|
-
[F.dragActive]:
|
|
1060
|
-
[F.dragAccept]:
|
|
1052
|
+
} = pr(A), Y = xe.useCallback((E) => {
|
|
1053
|
+
u && u(E);
|
|
1054
|
+
}, [u]), G = Er(F.dropzone, d, {
|
|
1055
|
+
[F.disabled]: A.disabled,
|
|
1056
|
+
[F.focused]: w,
|
|
1057
|
+
[F.dragActive]: v,
|
|
1058
|
+
[F.dragAccept]: _,
|
|
1061
1059
|
[F.dragReject]: x,
|
|
1062
|
-
[F.fileDialogActive]:
|
|
1060
|
+
[F.fileDialogActive]: j
|
|
1063
1061
|
});
|
|
1064
|
-
return /* @__PURE__ */ he("section", {
|
|
1062
|
+
return /* @__PURE__ */ he("section", { children: [
|
|
1065
1063
|
/* @__PURE__ */ he(
|
|
1066
1064
|
"div",
|
|
1067
1065
|
{
|
|
1068
|
-
className:
|
|
1066
|
+
className: G,
|
|
1069
1067
|
...P({
|
|
1070
|
-
"aria-label":
|
|
1068
|
+
"aria-label": a
|
|
1071
1069
|
}),
|
|
1072
1070
|
children: [
|
|
1073
|
-
/* @__PURE__ */
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1071
|
+
/* @__PURE__ */ re("input", { ...K() }),
|
|
1072
|
+
/* @__PURE__ */ re(Or, { name: "Upload" }),
|
|
1073
|
+
/* @__PURE__ */ he(Ue, { family: "secondary", className: F.text, children: [
|
|
1074
|
+
n ? `${t} ` : t,
|
|
1075
|
+
!!n && /* @__PURE__ */ re(
|
|
1076
|
+
Ue,
|
|
1077
|
+
{
|
|
1078
|
+
weight: "bold",
|
|
1079
|
+
family: "secondary",
|
|
1080
|
+
color: "tertiary",
|
|
1081
|
+
underlined: !0,
|
|
1082
|
+
children: n
|
|
1083
|
+
}
|
|
1084
|
+
)
|
|
1086
1085
|
] })
|
|
1087
1086
|
]
|
|
1088
1087
|
}
|
|
1089
1088
|
),
|
|
1090
|
-
|
|
1091
|
-
|
|
1089
|
+
r.map((E) => /* @__PURE__ */ re(
|
|
1090
|
+
Fr,
|
|
1092
1091
|
{
|
|
1093
|
-
removeAriaLabel:
|
|
1094
|
-
file:
|
|
1095
|
-
onRemoveFile:
|
|
1092
|
+
removeAriaLabel: i,
|
|
1093
|
+
file: E,
|
|
1094
|
+
onRemoveFile: Y,
|
|
1095
|
+
className: s
|
|
1096
1096
|
},
|
|
1097
|
-
|
|
1097
|
+
E.path
|
|
1098
1098
|
))
|
|
1099
1099
|
] });
|
|
1100
1100
|
}
|
|
1101
|
+
const St = xe.memo(Et);
|
|
1101
1102
|
export {
|
|
1102
|
-
|
|
1103
|
+
St as default
|
|
1103
1104
|
};
|