@cfx-dev/ui-components 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/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/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 +94 -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 +269 -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
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import p from "./InputDropzone.js";
|
|
4
|
+
function u() {
|
|
5
|
+
const [r, t] = e.useState([]), s = e.useCallback((o) => {
|
|
6
|
+
t(o);
|
|
7
|
+
}, []), a = e.useCallback((o) => {
|
|
8
|
+
t((i) => {
|
|
9
|
+
const n = [...i], l = n.indexOf(o);
|
|
10
|
+
return l !== -1 && n.splice(l, 1), n;
|
|
11
|
+
});
|
|
12
|
+
}, []);
|
|
13
|
+
return /* @__PURE__ */ c(
|
|
14
|
+
p,
|
|
15
|
+
{
|
|
16
|
+
value: r,
|
|
17
|
+
onRemoveFile: a,
|
|
18
|
+
onDrop: s,
|
|
19
|
+
text: "Drag and Drop file here or",
|
|
20
|
+
linkText: "Choose file."
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
const h = e.memo(u);
|
|
25
|
+
export {
|
|
26
|
+
h as default
|
|
27
|
+
};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { FileWithPath } from 'react-dropzone';
|
|
2
3
|
|
|
3
4
|
export interface ItemPreviewProps {
|
|
4
5
|
file: FileWithPath;
|
|
5
6
|
onRemoveFile: (file: FileWithPath) => void;
|
|
6
7
|
removeAriaLabel?: string;
|
|
8
|
+
className?: string;
|
|
7
9
|
}
|
|
8
|
-
|
|
10
|
+
declare function ItemPreview({ file, onRemoveFile, removeAriaLabel, className, }: ItemPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const _default: React.MemoExoticComponent<typeof ItemPreview>;
|
|
12
|
+
export default _default;
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { Button as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as i, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { Button as l } from "../Button/Button.js";
|
|
4
|
+
import { Text as f } from "../Text/Text.js";
|
|
5
|
+
import { clsx as h } from "../../utils/clsx.js";
|
|
6
|
+
import '../../assets/ItemPreview.css';const p = "_root_7ek6f_1", d = "_filePath_7ek6f_13", r = {
|
|
7
|
+
root: p,
|
|
8
|
+
filePath: d
|
|
8
9
|
};
|
|
9
|
-
function
|
|
10
|
+
function _({
|
|
10
11
|
file: t,
|
|
11
|
-
onRemoveFile:
|
|
12
|
-
removeAriaLabel: o = ""
|
|
12
|
+
onRemoveFile: s,
|
|
13
|
+
removeAriaLabel: o = "",
|
|
14
|
+
className: c
|
|
13
15
|
}) {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
}, [t,
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
16
|
+
const m = e.useCallback(() => {
|
|
17
|
+
s(t);
|
|
18
|
+
}, [t, s]), n = e.useMemo(() => `${o}${o ? ", " : ""}${t.path}`, [o, t.path]);
|
|
19
|
+
return /* @__PURE__ */ i("div", { className: h(r.root, c), children: [
|
|
20
|
+
/* @__PURE__ */ a(f, { family: "secondary", className: r.filePath, children: t.path }),
|
|
21
|
+
/* @__PURE__ */ a(l, { theme: "secondary", ariaLabel: n, icon: "Close", onClick: m })
|
|
20
22
|
] });
|
|
21
23
|
}
|
|
24
|
+
const $ = e.memo(_);
|
|
22
25
|
export {
|
|
23
|
-
|
|
26
|
+
$ as default
|
|
24
27
|
};
|
|
@@ -2,5 +2,6 @@ import { default as React } from 'react';
|
|
|
2
2
|
|
|
3
3
|
export interface InteractiveProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
4
4
|
showPointer?: boolean;
|
|
5
|
+
as?: React.ElementType;
|
|
5
6
|
}
|
|
6
7
|
export declare const Interactive: React.ForwardRefExoticComponent<Omit<InteractiveProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
4
|
-
import '../../assets/Interactive.css';const f = "_root_1o2df_1",
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import i from "react";
|
|
3
|
+
import { clsx as m } from "../../utils/clsx.js";
|
|
4
|
+
import '../../assets/Interactive.css';const f = "_root_1o2df_1", l = {
|
|
5
5
|
root: f
|
|
6
|
-
}, h =
|
|
6
|
+
}, h = i.forwardRef(function(o, t) {
|
|
7
7
|
const {
|
|
8
8
|
showPointer: r = !0,
|
|
9
9
|
className: e,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
as: s = "div",
|
|
11
|
+
...n
|
|
12
|
+
} = o, c = m(e, {
|
|
13
|
+
[l.root]: r
|
|
13
14
|
});
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ a(s, { ref: t, className: c, ...n, children: o.children });
|
|
15
16
|
});
|
|
16
17
|
export {
|
|
17
18
|
h as Interactive
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { ui as
|
|
4
|
-
import { clsx as
|
|
5
|
-
import '../../assets/Island.css';const
|
|
6
|
-
root:
|
|
7
|
-
grow:
|
|
8
|
-
"no-round-border-top-left": "_no-round-border-top-
|
|
9
|
-
"no-round-border-top-right": "_no-round-border-top-
|
|
10
|
-
"no-round-border-bottom-left": "_no-round-border-bottom-
|
|
11
|
-
"no-round-border-bottom-right": "_no-round-border-bottom-
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import b from "react";
|
|
3
|
+
import { ui as p } from "../ui.js";
|
|
4
|
+
import { clsx as h } from "../../utils/clsx.js";
|
|
5
|
+
import '../../assets/Island.css';const w = "_root_mdgcu_1", R = "_grow_mdgcu_15", t = {
|
|
6
|
+
root: w,
|
|
7
|
+
grow: R,
|
|
8
|
+
"no-round-border-top-left": "_no-round-border-top-left_mdgcu_19",
|
|
9
|
+
"no-round-border-top-right": "_no-round-border-top-right_mdgcu_22",
|
|
10
|
+
"no-round-border-bottom-left": "_no-round-border-bottom-left_mdgcu_25",
|
|
11
|
+
"no-round-border-bottom-right": "_no-round-border-bottom-right_mdgcu_28"
|
|
12
12
|
};
|
|
13
|
-
var
|
|
14
|
-
const
|
|
13
|
+
var B = /* @__PURE__ */ ((o) => (o[o.TopLeft = 1] = "TopLeft", o[o.TopRight = 2] = "TopRight", o[o.BottomLeft = 4] = "BottomLeft", o[o.BottomRight = 8] = "BottomRight", o[o.Top = 3] = "Top", o[o.Left = 5] = "Left", o[o.Right = 10] = "Right", o[o.Bottom = 12] = "Bottom", o[o.All = 15] = "All", o))(B || {});
|
|
14
|
+
const l = b.forwardRef(function(i, u) {
|
|
15
15
|
const {
|
|
16
|
-
grow:
|
|
17
|
-
widthQ:
|
|
16
|
+
grow: f = !1,
|
|
17
|
+
widthQ: m = 0,
|
|
18
18
|
straightCorner: r = 0,
|
|
19
|
-
children:
|
|
20
|
-
className:
|
|
21
|
-
} =
|
|
22
|
-
[t.grow]:
|
|
19
|
+
children: d,
|
|
20
|
+
className: e
|
|
21
|
+
} = i, _ = h(t.root, e, {
|
|
22
|
+
[t.grow]: f,
|
|
23
23
|
[t["no-round-border-top-left"]]: r & 1,
|
|
24
24
|
[t["no-round-border-top-right"]]: r & 2,
|
|
25
25
|
[t["no-round-border-bottom-left"]]: r & 4,
|
|
26
26
|
[t["no-round-border-bottom-right"]]: r & 8
|
|
27
27
|
/* BottomRight */
|
|
28
|
-
}),
|
|
29
|
-
return
|
|
28
|
+
}), g = {};
|
|
29
|
+
return m > 0 && (g.width = p.q(m)), /* @__PURE__ */ c("div", { className: _, style: g, ref: u, children: d });
|
|
30
30
|
});
|
|
31
31
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
l as Island,
|
|
33
|
+
B as IslandCorner
|
|
34
34
|
};
|
|
@@ -1,51 +1,54 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import w from "react";
|
|
3
|
-
import { clsx as
|
|
4
|
-
import { FlexRestricter as
|
|
5
|
-
import '../../../assets/Flex.css';const
|
|
6
|
-
root:
|
|
7
|
-
"full-width": "_full-
|
|
8
|
-
"full-height": "_full-
|
|
9
|
-
centered:
|
|
10
|
-
"centered-axis": "_centered-
|
|
11
|
-
"centered-cross-axis": "_centered-cross-
|
|
12
|
-
"baseline-axis": "_baseline-
|
|
13
|
-
"baseline-cross-axis": "_baseline-cross-
|
|
14
|
-
"reverse-order": "_reverse-
|
|
3
|
+
import { clsx as v } from "../../../utils/clsx.js";
|
|
4
|
+
import { FlexRestricter as z } from "./FlexRestricter.js";
|
|
5
|
+
import '../../../assets/Flex.css';const R = "_root_1bx3e_1", F = "_centered_1bx3e_11", C = "_vertical_1bx3e_30", N = "_repell_1bx3e_36", E = "_wrap_1bx3e_39", T = "_stretch_1bx3e_51", j = "_horizontal_1bx3e_57", e = {
|
|
6
|
+
root: R,
|
|
7
|
+
"full-width": "_full-width_1bx3e_5",
|
|
8
|
+
"full-height": "_full-height_1bx3e_8",
|
|
9
|
+
centered: F,
|
|
10
|
+
"centered-axis": "_centered-axis_1bx3e_15",
|
|
11
|
+
"centered-cross-axis": "_centered-cross-axis_1bx3e_18",
|
|
12
|
+
"baseline-axis": "_baseline-axis_1bx3e_21",
|
|
13
|
+
"baseline-cross-axis": "_baseline-cross-axis_1bx3e_24",
|
|
14
|
+
"reverse-order": "_reverse-order_1bx3e_27",
|
|
15
15
|
vertical: C,
|
|
16
16
|
repell: N,
|
|
17
17
|
wrap: E,
|
|
18
|
-
"align-to-end": "_align-to-
|
|
19
|
-
"align-to-end-axis": "_align-to-end-
|
|
20
|
-
"space-between": "_space-
|
|
18
|
+
"align-to-end": "_align-to-end_1bx3e_42",
|
|
19
|
+
"align-to-end-axis": "_align-to-end-axis_1bx3e_45",
|
|
20
|
+
"space-between": "_space-between_1bx3e_48",
|
|
21
21
|
stretch: T,
|
|
22
22
|
horizontal: j,
|
|
23
|
-
"gap-none": "_gap-
|
|
24
|
-
"gap-
|
|
25
|
-
"gap-
|
|
26
|
-
"gap-
|
|
27
|
-
"gap-
|
|
28
|
-
"gap-
|
|
29
|
-
"gap-
|
|
23
|
+
"gap-none": "_gap-none_1bx3e_63",
|
|
24
|
+
"gap-hairthin": "_gap-hairthin_1bx3e_66",
|
|
25
|
+
"gap-thin": "_gap-thin_1bx3e_69",
|
|
26
|
+
"gap-xxsmall": "_gap-xxsmall_1bx3e_72",
|
|
27
|
+
"gap-xsmall": "_gap-xsmall_1bx3e_75",
|
|
28
|
+
"gap-small": "_gap-small_1bx3e_78",
|
|
29
|
+
"gap-normal": "_gap-normal_1bx3e_81",
|
|
30
|
+
"gap-large": "_gap-large_1bx3e_84",
|
|
31
|
+
"gap-xlarge": "_gap-xlarge_1bx3e_87",
|
|
32
|
+
"gap-safezone": "_gap-safezone_1bx3e_90"
|
|
30
33
|
};
|
|
31
34
|
function A(l, s) {
|
|
32
35
|
const {
|
|
33
|
-
fullWidth:
|
|
36
|
+
fullWidth: n = !1,
|
|
34
37
|
fullHeight: o = !1,
|
|
35
38
|
vertical: t = !1,
|
|
36
39
|
centered: a = !1,
|
|
37
40
|
repell: i = !1,
|
|
38
|
-
stretch:
|
|
41
|
+
stretch: x = !1,
|
|
39
42
|
wrap: c = !1,
|
|
40
|
-
alignToEnd:
|
|
41
|
-
alignToEndAxis:
|
|
42
|
-
spaceBetween:
|
|
43
|
-
reverseOrder:
|
|
44
|
-
gap:
|
|
45
|
-
children:
|
|
46
|
-
className:
|
|
47
|
-
} = l,
|
|
48
|
-
[e["full-width"]]:
|
|
43
|
+
alignToEnd: p = !1,
|
|
44
|
+
alignToEndAxis: b = !1,
|
|
45
|
+
spaceBetween: g = !1,
|
|
46
|
+
reverseOrder: d = !1,
|
|
47
|
+
gap: f = "normal",
|
|
48
|
+
children: h,
|
|
49
|
+
className: m
|
|
50
|
+
} = l, u = v(e.root, m, e[`gap-${f}`], {
|
|
51
|
+
[e["full-width"]]: n,
|
|
49
52
|
[e["full-height"]]: o,
|
|
50
53
|
[e.centered]: a === !0,
|
|
51
54
|
[e["centered-axis"]]: a === "axis",
|
|
@@ -55,21 +58,21 @@ function A(l, s) {
|
|
|
55
58
|
[e.vertical]: t,
|
|
56
59
|
[e.horizontal]: !t,
|
|
57
60
|
[e.repell]: i,
|
|
58
|
-
[e.stretch]:
|
|
61
|
+
[e.stretch]: x,
|
|
59
62
|
[e.wrap]: c,
|
|
60
|
-
[e["align-to-end"]]:
|
|
61
|
-
[e["align-to-end-axis"]]:
|
|
62
|
-
[e["space-between"]]:
|
|
63
|
-
[e["reverse-order"]]:
|
|
63
|
+
[e["align-to-end"]]: p,
|
|
64
|
+
[e["align-to-end-axis"]]: b,
|
|
65
|
+
[e["space-between"]]: g,
|
|
66
|
+
[e["reverse-order"]]: d
|
|
64
67
|
});
|
|
65
|
-
return /* @__PURE__ */ r("div", { ref: s, className:
|
|
68
|
+
return /* @__PURE__ */ r("div", { ref: s, className: u, children: h });
|
|
66
69
|
}
|
|
67
|
-
const B = w.forwardRef(A),
|
|
68
|
-
|
|
70
|
+
const B = w.forwardRef(A), _ = B;
|
|
71
|
+
_.Restricted = function({
|
|
69
72
|
children: s
|
|
70
73
|
}) {
|
|
71
|
-
return /* @__PURE__ */ r(
|
|
74
|
+
return /* @__PURE__ */ r(_, { children: /* @__PURE__ */ r(z, { children: s }) });
|
|
72
75
|
};
|
|
73
76
|
export {
|
|
74
|
-
|
|
77
|
+
_ as Flex
|
|
75
78
|
};
|
|
@@ -1,35 +1,38 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { clsx as
|
|
3
|
-
import '../../../assets/Pad.css';const
|
|
4
|
-
root:
|
|
5
|
-
"offset-none": "_offset-
|
|
6
|
-
"offset-
|
|
7
|
-
"offset-
|
|
8
|
-
"offset-
|
|
9
|
-
"offset-
|
|
10
|
-
"offset-
|
|
11
|
-
"offset-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"only-
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as u } from "../../../utils/clsx.js";
|
|
3
|
+
import '../../../assets/Pad.css';const i = "_root_1wpeu_1", o = {
|
|
4
|
+
root: i,
|
|
5
|
+
"offset-none": "_offset-none_1wpeu_1",
|
|
6
|
+
"offset-hairthin": "_offset-hairthin_1wpeu_4",
|
|
7
|
+
"offset-thin": "_offset-thin_1wpeu_7",
|
|
8
|
+
"offset-xxsmall": "_offset-xxsmall_1wpeu_10",
|
|
9
|
+
"offset-xsmall": "_offset-xsmall_1wpeu_13",
|
|
10
|
+
"offset-small": "_offset-small_1wpeu_16",
|
|
11
|
+
"offset-normal": "_offset-normal_1wpeu_19",
|
|
12
|
+
"offset-large": "_offset-large_1wpeu_22",
|
|
13
|
+
"offset-xlarge": "_offset-xlarge_1wpeu_25",
|
|
14
|
+
"offset-safezone": "_offset-safezone_1wpeu_28",
|
|
15
|
+
"only-top": "_only-top_1wpeu_31",
|
|
16
|
+
"only-left": "_only-left_1wpeu_34",
|
|
17
|
+
"only-right": "_only-right_1wpeu_37",
|
|
18
|
+
"only-bottom": "_only-bottom_1wpeu_40"
|
|
16
19
|
};
|
|
17
20
|
function h(_) {
|
|
18
21
|
const {
|
|
19
|
-
top:
|
|
20
|
-
left:
|
|
22
|
+
top: t = !1,
|
|
23
|
+
left: f = !1,
|
|
21
24
|
right: s = !1,
|
|
22
|
-
bottom:
|
|
25
|
+
bottom: l = !1,
|
|
23
26
|
size: n = "normal",
|
|
24
|
-
children:
|
|
25
|
-
className:
|
|
26
|
-
} = _,
|
|
27
|
-
[o["only-top"]]:
|
|
28
|
-
[o["only-left"]]:
|
|
29
|
-
[o["only-right"]]:
|
|
30
|
-
[o["only-bottom"]]:
|
|
27
|
+
children: a,
|
|
28
|
+
className: r
|
|
29
|
+
} = _, e = !(t || f || s || l), p = u(o.root, r, o[`offset-${n}`], {
|
|
30
|
+
[o["only-top"]]: e || t,
|
|
31
|
+
[o["only-left"]]: e || f,
|
|
32
|
+
[o["only-right"]]: e || s,
|
|
33
|
+
[o["only-bottom"]]: e || l
|
|
31
34
|
});
|
|
32
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ m("div", { className: p, children: a });
|
|
33
36
|
}
|
|
34
37
|
export {
|
|
35
38
|
h as Pad
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
interface RailProps {
|
|
3
|
+
export interface RailProps {
|
|
4
4
|
axis: 'x' | 'y';
|
|
5
5
|
pos: number;
|
|
6
6
|
rootRef: React.RefObject<HTMLDivElement>;
|
|
@@ -10,4 +10,3 @@ interface RailProps {
|
|
|
10
10
|
setRootActive(active: boolean): void;
|
|
11
11
|
}
|
|
12
12
|
export declare function Rail(props: RailProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -2,9 +2,8 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../Interactive/Interactive.js";
|
|
4
4
|
import "../../../utils/clsx.js";
|
|
5
|
-
import "../../../utils/hooks.js";
|
|
6
5
|
import "../../../utils/math.js";
|
|
7
|
-
import { R
|
|
6
|
+
import { R } from "../../../Rail-rtPENZs2.js";
|
|
8
7
|
export {
|
|
9
|
-
|
|
8
|
+
R as Rail
|
|
10
9
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsxs as j, jsx as
|
|
1
|
+
import { jsxs as j, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import r from "react";
|
|
3
3
|
import { useContextualStyle as W } from "../../Style/Style.js";
|
|
4
4
|
import { clsx as b } from "../../../utils/clsx.js";
|
|
5
5
|
import { mergeRefs as k } from "../../../utils/mergeRefs.js";
|
|
6
|
-
import { s as o, R as w } from "../../../Rail-
|
|
6
|
+
import { s as o, R as w } from "../../../Rail-rtPENZs2.js";
|
|
7
7
|
const N = {
|
|
8
8
|
size: 0,
|
|
9
9
|
scrollPos: 0,
|
|
10
10
|
scrollSize: 0
|
|
11
|
-
}, K = r.forwardRef(function(
|
|
11
|
+
}, K = r.forwardRef(function(u, P) {
|
|
12
12
|
const {
|
|
13
13
|
children: y,
|
|
14
14
|
className: A,
|
|
15
|
-
onScroll:
|
|
16
|
-
minThumbSize:
|
|
17
|
-
verticalAsHorizontal:
|
|
18
|
-
} =
|
|
15
|
+
onScroll: l,
|
|
16
|
+
minThumbSize: f = 20,
|
|
17
|
+
verticalAsHorizontal: S = !1
|
|
18
|
+
} = u, e = r.useRef(null), a = r.useRef(null), [L, m] = r.useState(!1), [c, E] = r.useState(N), [T, g] = r.useState(0), [n, C] = r.useState(N), [I, X] = r.useState(0), Y = b(o.root, A, {
|
|
19
19
|
[o.active]: L
|
|
20
20
|
});
|
|
21
21
|
r.useLayoutEffect(() => {
|
|
22
|
-
if (!
|
|
22
|
+
if (!a.current)
|
|
23
23
|
throw new Error("No scrollable content ref");
|
|
24
24
|
const s = new ResizeObserver(() => {
|
|
25
25
|
var t, d, h, v, p, x;
|
|
@@ -33,16 +33,16 @@ const N = {
|
|
|
33
33
|
scrollSize: ((x = e.current) == null ? void 0 : x.scrollWidth) || 0
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
|
-
return s.observe(
|
|
36
|
+
return s.observe(a.current), () => s.disconnect();
|
|
37
37
|
}, []);
|
|
38
38
|
const _ = r.useCallback(
|
|
39
39
|
(s) => {
|
|
40
|
-
e.current && (
|
|
40
|
+
e.current && (l == null || l(s), X(e.current.scrollTop), g(e.current.scrollLeft));
|
|
41
41
|
},
|
|
42
|
-
[
|
|
42
|
+
[l]
|
|
43
43
|
);
|
|
44
44
|
r.useEffect(() => {
|
|
45
|
-
if (!
|
|
45
|
+
if (!S || !e.current)
|
|
46
46
|
return;
|
|
47
47
|
const s = (t) => {
|
|
48
48
|
t.preventDefault(), t.stopPropagation(), e.current && (e.current.scrollLeft += t.deltaY);
|
|
@@ -51,35 +51,35 @@ const N = {
|
|
|
51
51
|
var t;
|
|
52
52
|
return (t = e.current) == null ? void 0 : t.removeEventListener("wheel", s);
|
|
53
53
|
};
|
|
54
|
-
}, [
|
|
55
|
-
const z =
|
|
54
|
+
}, [S]);
|
|
55
|
+
const z = c.scrollSize - c.size > 1, R = n.scrollSize - n.size > 1, H = b(o.scroller, {
|
|
56
56
|
[o["no-x-scroll"]]: !z,
|
|
57
57
|
[o["no-y-scroll"]]: !R
|
|
58
58
|
});
|
|
59
59
|
return /* @__PURE__ */ j("div", { ref: P, style: W(), className: Y, children: [
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
R && /* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ i("div", { ref: k(e, u.scrollerRef), className: H, onScroll: _, children: /* @__PURE__ */ i("div", { ref: a, className: o.content, children: y }) }),
|
|
61
|
+
R && /* @__PURE__ */ i(
|
|
62
62
|
w,
|
|
63
63
|
{
|
|
64
64
|
rootRef: e,
|
|
65
65
|
axis: "y",
|
|
66
|
-
size:
|
|
66
|
+
size: n.size,
|
|
67
67
|
pos: I,
|
|
68
|
-
scrollSize:
|
|
68
|
+
scrollSize: n.scrollSize,
|
|
69
69
|
setRootActive: m,
|
|
70
|
-
minThumbSize:
|
|
70
|
+
minThumbSize: f
|
|
71
71
|
}
|
|
72
72
|
),
|
|
73
|
-
z && /* @__PURE__ */
|
|
73
|
+
z && /* @__PURE__ */ i(
|
|
74
74
|
w,
|
|
75
75
|
{
|
|
76
76
|
rootRef: e,
|
|
77
77
|
axis: "x",
|
|
78
|
-
size:
|
|
78
|
+
size: c.size,
|
|
79
79
|
pos: T,
|
|
80
|
-
scrollSize:
|
|
80
|
+
scrollSize: c.scrollSize,
|
|
81
81
|
setRootActive: m,
|
|
82
|
-
minThumbSize:
|
|
82
|
+
minThumbSize: f
|
|
83
83
|
}
|
|
84
84
|
)
|
|
85
85
|
] });
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import d from "react";
|
|
3
|
+
import { Flex as i } from "../Flex/Flex.js";
|
|
4
|
+
import { Text as t } from "../../Text/Text.js";
|
|
5
|
+
import { LOREM_IPSUM as e } from "../../../utils/loremipsum.js";
|
|
6
|
+
import { Scrollable as o } from "./Scrollable.js";
|
|
7
|
+
function c() {
|
|
8
|
+
return /* @__PURE__ */ l("div", { children: [
|
|
9
|
+
/* @__PURE__ */ l(i, { vertical: !0, fullWidth: !0, children: [
|
|
10
|
+
/* @__PURE__ */ r(t, { size: "large", children: "Vertical" }),
|
|
11
|
+
/* @__PURE__ */ r(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
style: {
|
|
15
|
+
height: "200px",
|
|
16
|
+
backgroundColor: "rgba(0, 0, 0, 0.75)"
|
|
17
|
+
},
|
|
18
|
+
children: /* @__PURE__ */ l(o, { children: [
|
|
19
|
+
e,
|
|
20
|
+
/* @__PURE__ */ r("br", {}),
|
|
21
|
+
e,
|
|
22
|
+
/* @__PURE__ */ r("br", {}),
|
|
23
|
+
e,
|
|
24
|
+
/* @__PURE__ */ r("br", {}),
|
|
25
|
+
e,
|
|
26
|
+
/* @__PURE__ */ r("br", {}),
|
|
27
|
+
e,
|
|
28
|
+
/* @__PURE__ */ r("br", {}),
|
|
29
|
+
e,
|
|
30
|
+
/* @__PURE__ */ r("br", {}),
|
|
31
|
+
e,
|
|
32
|
+
/* @__PURE__ */ r("br", {}),
|
|
33
|
+
e
|
|
34
|
+
] })
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
] }),
|
|
38
|
+
/* @__PURE__ */ l(i, { vertical: !0, fullWidth: !0, children: [
|
|
39
|
+
/* @__PURE__ */ r("br", {}),
|
|
40
|
+
/* @__PURE__ */ r(t, { size: "large", children: "Horizontal" }),
|
|
41
|
+
/* @__PURE__ */ r(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
style: {
|
|
45
|
+
width: "600px",
|
|
46
|
+
backgroundColor: "rgba(0, 0, 0, 0.75)"
|
|
47
|
+
},
|
|
48
|
+
children: /* @__PURE__ */ r(o, { children: /* @__PURE__ */ l(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
style: {
|
|
52
|
+
width: "1000px",
|
|
53
|
+
overflow: "hidden"
|
|
54
|
+
},
|
|
55
|
+
children: [
|
|
56
|
+
e,
|
|
57
|
+
/* @__PURE__ */ r("br", {}),
|
|
58
|
+
e,
|
|
59
|
+
/* @__PURE__ */ r("br", {}),
|
|
60
|
+
e
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
) })
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] }),
|
|
67
|
+
/* @__PURE__ */ l(i, { vertical: !0, fullWidth: !0, children: [
|
|
68
|
+
/* @__PURE__ */ r("br", {}),
|
|
69
|
+
/* @__PURE__ */ r(t, { size: "large", children: "Vertical + Horizontal" }),
|
|
70
|
+
/* @__PURE__ */ r(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
style: {
|
|
74
|
+
height: "200px",
|
|
75
|
+
width: "600px",
|
|
76
|
+
backgroundColor: "rgba(0, 0, 0, 0.75)"
|
|
77
|
+
},
|
|
78
|
+
children: /* @__PURE__ */ r(o, { children: /* @__PURE__ */ l(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
style: {
|
|
82
|
+
width: "1000px",
|
|
83
|
+
overflow: "hidden"
|
|
84
|
+
},
|
|
85
|
+
children: [
|
|
86
|
+
e,
|
|
87
|
+
/* @__PURE__ */ r("br", {}),
|
|
88
|
+
e,
|
|
89
|
+
/* @__PURE__ */ r("br", {}),
|
|
90
|
+
e,
|
|
91
|
+
/* @__PURE__ */ r("br", {}),
|
|
92
|
+
e,
|
|
93
|
+
/* @__PURE__ */ r("br", {}),
|
|
94
|
+
e,
|
|
95
|
+
/* @__PURE__ */ r("br", {}),
|
|
96
|
+
e,
|
|
97
|
+
/* @__PURE__ */ r("br", {}),
|
|
98
|
+
e,
|
|
99
|
+
/* @__PURE__ */ r("br", {}),
|
|
100
|
+
e
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
) })
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
] })
|
|
107
|
+
] });
|
|
108
|
+
}
|
|
109
|
+
const f = d.memo(c);
|
|
110
|
+
export {
|
|
111
|
+
f as default
|
|
112
|
+
};
|