@cfx-dev/ui-components 4.5.21 → 5.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/dist/DropdownContent-BMfQCuaP.js +964 -0
- package/dist/Table.module-CMz5ENmI.js +17 -0
- package/dist/assets/all_css.css +1 -1
- package/dist/assets/css/Accordion.css +1 -1
- package/dist/assets/css/AccordionShowcase.css +1 -1
- package/dist/assets/css/Avatar.css +1 -1
- package/dist/assets/css/Badge.css +1 -1
- package/dist/assets/css/BurgerMenu.css +1 -1
- package/dist/assets/css/Button.css +1 -1
- package/dist/assets/css/Checkbox.css +1 -1
- package/dist/assets/css/ControlBox.css +1 -1
- package/dist/assets/css/CountryFlag.css +1 -1
- package/dist/assets/css/DataTable.css +1 -1
- package/dist/assets/css/Dot.css +1 -1
- package/dist/assets/css/DropdownContent.css +1 -1
- package/dist/assets/css/DropdownSelect.css +1 -1
- package/dist/assets/css/FlexShowcase.css +1 -1
- package/dist/assets/css/Flyout.css +1 -1
- package/dist/assets/css/FormField.css +1 -0
- package/dist/assets/css/Icon.css +1 -1
- package/dist/assets/css/IconButton.css +1 -1
- package/dist/assets/css/InfoPanel.css +1 -1
- package/dist/assets/css/Input.css +1 -1
- package/dist/assets/css/InputDropzone.css +1 -1
- package/dist/assets/css/Island.css +1 -1
- package/dist/assets/css/ItemPreview.css +1 -1
- package/dist/assets/css/Link.css +1 -1
- package/dist/assets/css/Loaf.css +1 -1
- package/dist/assets/css/Modal.css +1 -1
- package/dist/assets/css/NavList.css +1 -1
- package/dist/assets/css/Page.css +1 -1
- package/dist/assets/css/Popover.css +1 -1
- package/dist/assets/css/Prose.css +1 -1
- package/dist/assets/css/Radio.css +1 -1
- package/dist/assets/css/Range.css +1 -1
- package/dist/assets/css/RangeInput.css +1 -1
- package/dist/assets/css/RichInput.css +1 -1
- package/dist/assets/css/Select.css +1 -1
- package/dist/assets/css/Separator.css +1 -1
- package/dist/assets/css/Skeleton.css +1 -1
- package/dist/assets/css/Slider.css +1 -1
- package/dist/assets/css/StyledInput.css +1 -1
- package/dist/assets/css/StyledTextarea.css +1 -1
- package/dist/assets/css/Switch.css +1 -1
- package/dist/assets/css/Table.css +1 -1
- package/dist/assets/css/Tabular.css +1 -1
- package/dist/assets/css/Text.css +1 -1
- package/dist/assets/css/TextShowcase.css +1 -1
- package/dist/assets/css/Textarea.css +1 -1
- package/dist/assets/css/Title.css +1 -1
- package/dist/assets/css/ToggleGroup.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/cfxIcons-0xD_EEXT.js +110 -0
- package/dist/cfxIconsXLarge-D0vz6Yd_.js +110 -0
- package/dist/components/Accordion/Accordion.d.ts +0 -3
- package/dist/components/Accordion/Accordion.js +117 -121
- package/dist/components/Accordion/AccordionShowcase.js +22 -26
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/Avatar.js +12 -12
- package/dist/components/Avatar/AvatarShowcase.js +4 -4
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/Badge.js +7 -7
- package/dist/components/Badge/BadgeShowcase.js +20 -20
- package/dist/components/BurgerMenu/BurgerMenu.js +7 -7
- package/dist/components/BurgerMenu/BurgerMenuShowcase.js +8 -8
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +15 -15
- package/dist/components/Button/ButtonShowcase.js +80 -57
- package/dist/components/Checkbox/Checkbox.d.ts +4 -1
- package/dist/components/Checkbox/Checkbox.js +276 -191
- package/dist/components/Checkbox/CheckboxShowcase.js +170 -29
- package/dist/components/ControlBox/ControlBox.d.ts +1 -1
- package/dist/components/ControlBox/ControlBox.js +17 -17
- package/dist/components/DataTable/DataTableShowcase.js +5 -5
- package/dist/components/Dot/Dot.d.ts +1 -1
- package/dist/components/Dot/Dot.js +15 -15
- package/dist/components/DropdownContent/DropdownContent.d.ts +1 -5
- package/dist/components/DropdownContent/DropdownContent.js +2 -3
- package/dist/components/DropdownContent/index.d.ts +1 -1
- package/dist/components/DropdownContent/index.js +2 -3
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +1 -2
- package/dist/components/DropdownMenu/DropdownMenu.js +17 -19
- package/dist/components/DropdownSelect/DropdownSelect.d.ts +0 -5
- package/dist/components/DropdownSelect/DropdownSelect.js +47 -55
- package/dist/components/DropdownSelect/DropdownSelectShowcase.js +10 -11
- package/dist/components/Flyout/Flyout.d.ts +1 -1
- package/dist/components/Flyout/Flyout.js +10 -10
- package/dist/components/FormField/FormField.d.ts +20 -0
- package/dist/components/FormField/FormField.js +68 -0
- package/dist/components/FormField/FormFieldShowcase.d.ts +5 -0
- package/dist/components/FormField/FormFieldShowcase.js +59 -0
- package/dist/components/FormField/index.d.ts +1 -0
- package/dist/components/FormField/index.js +4 -0
- package/dist/components/Icon/Icon.d.ts +6 -2
- package/dist/components/Icon/Icon.js +33 -32
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Icons/Icons.types.d.ts +1 -3
- package/dist/components/Icons/IconsShowcase.js +224 -92
- package/dist/components/Icons/cfx-icons/Cart.js +17 -33
- package/dist/components/Icons/cfx-icons/Close.js +7 -8
- package/dist/components/Icons/cfx-icons/Controller.js +13 -20
- package/dist/components/Icons/cfx-icons/Copy.js +6 -7
- package/dist/components/Icons/cfx-icons/DownArrow.js +4 -5
- package/dist/components/Icons/cfx-icons/DownChevron.js +4 -5
- package/dist/components/Icons/cfx-icons/Download.js +6 -7
- package/dist/components/Icons/cfx-icons/Expand.js +1 -1
- package/dist/components/Icons/cfx-icons/ExternalLink.js +9 -10
- package/dist/components/Icons/cfx-icons/Filter.js +9 -9
- package/dist/components/Icons/cfx-icons/Folder.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Folder.js +24 -0
- package/dist/components/Icons/cfx-icons/Heart.js +9 -10
- package/dist/components/Icons/cfx-icons/HeartFilled.js +3 -4
- package/dist/components/Icons/cfx-icons/Help.js +9 -10
- package/dist/components/Icons/cfx-icons/LeftArrow.js +9 -10
- package/dist/components/Icons/cfx-icons/LeftChevron.js +7 -8
- package/dist/components/Icons/cfx-icons/Map.js +14 -30
- package/dist/components/Icons/cfx-icons/Menu.js +17 -40
- package/dist/components/Icons/cfx-icons/Minus.js +2 -3
- package/dist/components/Icons/cfx-icons/More.js +4 -5
- package/dist/components/Icons/cfx-icons/MoreInfo.js +6 -7
- package/dist/components/Icons/cfx-icons/Pencil.js +3 -3
- package/dist/components/Icons/cfx-icons/Play.js +6 -6
- package/dist/components/Icons/cfx-icons/Plus.js +4 -5
- package/dist/components/Icons/cfx-icons/Radio.js +15 -25
- package/dist/components/Icons/cfx-icons/Refresh.js +10 -11
- package/dist/components/Icons/cfx-icons/RightArrow.js +9 -10
- package/dist/components/Icons/cfx-icons/RightChevron.js +4 -5
- package/dist/components/Icons/cfx-icons/Search.js +9 -10
- package/dist/components/Icons/cfx-icons/ServerList.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/ServerList.js +24 -0
- package/dist/components/Icons/cfx-icons/ServerReconnect.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/ServerReconnect.js +24 -0
- package/dist/components/Icons/cfx-icons/Sort.js +6 -7
- package/dist/components/Icons/cfx-icons/Square.js +8 -9
- package/dist/components/Icons/cfx-icons/SquareFilled.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/SquareFilled.js +23 -0
- package/dist/components/Icons/cfx-icons/SquareTick.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/SquareTick.js +26 -0
- package/dist/components/Icons/cfx-icons/Stop.js +7 -8
- package/dist/components/Icons/cfx-icons/Success.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Success.js +26 -0
- package/dist/components/Icons/cfx-icons/Tick.js +4 -5
- package/dist/components/Icons/cfx-icons/Transfer.js +7 -8
- package/dist/components/Icons/cfx-icons/Trash.js +6 -6
- package/dist/components/Icons/cfx-icons/Undo.js +5 -6
- package/dist/components/Icons/cfx-icons/UpArrow.js +9 -10
- package/dist/components/Icons/cfx-icons/UpChevron.js +4 -5
- package/dist/components/Icons/cfx-icons/Upload.js +7 -8
- package/dist/components/Icons/cfx-icons/UpvotesBurst.js +10 -10
- package/dist/components/Icons/cfx-icons/UpvotesRecurring.js +10 -11
- package/dist/components/Icons/cfx-icons/User.js +13 -20
- package/dist/components/Icons/cfx-icons/Users.js +13 -32
- package/dist/components/Icons/cfx-icons/Verified.js +1 -1
- package/dist/components/Icons/cfx-icons/Visibility.js +8 -8
- package/dist/components/Icons/cfx-icons/VisibilityOff.js +1 -1
- package/dist/components/Icons/cfx-icons/Warning.js +9 -10
- package/dist/components/Icons/cfx-iconsXLarge/Cart.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Cart.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Close.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Close.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Controller.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Controller.js +24 -0
- package/dist/components/Icons/cfx-iconsXLarge/Copy.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Copy.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/DownArrow.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/DownArrow.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/DownChevron.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/DownChevron.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Download.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Download.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Expand.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Expand.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/ExternalLink.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/ExternalLink.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Filter.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Filter.js +23 -0
- package/dist/components/Icons/cfx-iconsXLarge/Folder.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Folder.js +24 -0
- package/dist/components/Icons/cfx-iconsXLarge/Heart.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Heart.js +24 -0
- package/dist/components/Icons/cfx-iconsXLarge/HeartFilled.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/HeartFilled.js +24 -0
- package/dist/components/Icons/cfx-iconsXLarge/Help.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Help.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/LeftArrow.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/LeftArrow.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/LeftChevron.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/LeftChevron.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Map.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Map.js +23 -0
- package/dist/components/Icons/cfx-iconsXLarge/Menu.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Menu.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Minus.d.ts +5 -0
- package/dist/components/Icons/{cfx-icons-big/Upload.js → cfx-iconsXLarge/Minus.js} +2 -3
- package/dist/components/Icons/cfx-iconsXLarge/More.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/More.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/MoreInfo.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/MoreInfo.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Pencil.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Pencil.js +25 -0
- package/dist/components/Icons/cfx-iconsXLarge/Play.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Play.js +25 -0
- package/dist/components/Icons/cfx-iconsXLarge/Plus.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Plus.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Radio.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Radio.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Refresh.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Refresh.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/RightArrow.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/RightArrow.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/RightChevron.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/RightChevron.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Search.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Search.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/ServerList.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/ServerList.js +24 -0
- package/dist/components/Icons/cfx-iconsXLarge/ServerReconnect.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/ServerReconnect.js +24 -0
- package/dist/components/Icons/cfx-iconsXLarge/Sort.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Sort.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Square.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Square.js +23 -0
- package/dist/components/Icons/cfx-iconsXLarge/SquareFilled.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/SquareFilled.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/SquareTick.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/SquareTick.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Stop.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Stop.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Success.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Success.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Tick.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Tick.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Transfer.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Transfer.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Trash.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Trash.js +23 -0
- package/dist/components/Icons/cfx-iconsXLarge/Undo.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Undo.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/UpArrow.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/UpArrow.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/UpChevron.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/UpChevron.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Upload.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/UpvotesBurst.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/UpvotesBurst.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/UpvotesRecurring.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/UpvotesRecurring.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/User.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/User.js +24 -0
- package/dist/components/Icons/cfx-iconsXLarge/Users.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Users.js +24 -0
- package/dist/components/Icons/cfx-iconsXLarge/Verified.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Verified.js +23 -0
- package/dist/components/Icons/cfx-iconsXLarge/Visibility.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Visibility.js +23 -0
- package/dist/components/Icons/cfx-iconsXLarge/VisibilityOff.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/VisibilityOff.js +23 -0
- package/dist/components/Icons/cfx-iconsXLarge/Warning.js +26 -0
- package/dist/components/Icons/cfxIcons.d.ts +6 -1
- package/dist/components/Icons/cfxIcons.js +88 -78
- package/dist/components/Icons/cfxIconsXLarge.d.ts +52 -0
- package/dist/components/Icons/cfxIconsXLarge.js +106 -0
- package/dist/components/Icons/index.d.ts +2 -2
- package/dist/components/Icons/index.js +3 -3
- package/dist/components/InfoPanel/InfoPanel.d.ts +1 -1
- package/dist/components/InfoPanel/InfoPanel.js +10 -10
- package/dist/components/InfoPanel/InfoPanelShowcase.js +30 -30
- package/dist/components/Input/Input.d.ts +3 -3
- package/dist/components/Input/Input.js +94 -107
- package/dist/components/Input/Input.types.d.ts +1 -1
- package/dist/components/Input/InputShowcase.js +80 -64
- package/dist/components/Input/RichInput.js +48 -62
- package/dist/components/InputDropzone/InputDropzone.js +52 -43
- package/dist/components/InputDropzone/ItemPreview.js +23 -21
- package/dist/components/Layout/Pad/Pad.d.ts +2 -2
- package/dist/components/Layout/Pad/Pad.js +1 -1
- package/dist/components/Link/LinkShowcase.js +39 -39
- package/dist/components/Loaf/Loaf.d.ts +2 -2
- package/dist/components/Loaf/Loaf.js +15 -15
- package/dist/components/Modal/Modal.d.ts +3 -3
- package/dist/components/Modal/Modal.js +26 -26
- package/dist/components/Modal/ModalShowcase.js +13 -13
- package/dist/components/Pagination/Pagination.js +5 -5
- package/dist/components/RSC/Flex/Flex.d.ts +2 -2
- package/dist/components/RSC/Flex/Flex.js +17 -17
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/Radio/Radio.js +19 -19
- package/dist/components/Range/RangeShowcase.js +10 -10
- package/dist/components/Select/Select.d.ts +0 -3
- package/dist/components/Select/Select.js +372 -391
- package/dist/components/Select/SelectShowcase.js +20 -47
- package/dist/components/Separator/Separator.d.ts +1 -2
- package/dist/components/Separator/Separator.js +29 -42
- package/dist/components/Skeleton/SkeletonShowcase.js +12 -12
- package/dist/components/Slider/SliderShowcase.js +6 -6
- package/dist/components/StyledInput/StyledInput.d.ts +3 -3
- package/dist/components/StyledInput/StyledInput.js +16 -32
- package/dist/components/Switch/Switch.d.ts +6 -0
- package/dist/components/Switch/Switch.js +99 -85
- package/dist/components/Table/TableBody.js +1 -1
- package/dist/components/Table/TableCell.js +1 -1
- package/dist/components/Table/TableCellCheckbox.js +1 -1
- package/dist/components/Table/TableHeader.js +1 -1
- package/dist/components/Table/TableIconButton.js +1 -1
- package/dist/components/Table/TableRoot.js +1 -1
- package/dist/components/Table/TableRow.d.ts +1 -1
- package/dist/components/Table/TableRow.js +8 -8
- package/dist/components/TableResponsiveText/TableResponsiveText.js +4 -4
- package/dist/components/Tabular/TabularShowcase.js +22 -22
- package/dist/components/Text/BodyShowcase.js +261 -48
- package/dist/components/Text/HeadingShowcase.js +179 -24
- package/dist/components/Text/Text.d.ts +1 -0
- package/dist/components/Text/Text.js +62 -57
- package/dist/components/Text/Text.types.d.ts +6 -4
- package/dist/components/Text/TextShowcase.d.ts +15 -6
- package/dist/components/Text/TextShowcase.js +63 -38
- package/dist/components/Title/TitleShowcase.js +97 -17
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.js +22 -22
- package/dist/components/ToggleGroup/ToggleGroupShowcase.js +76 -40
- package/dist/main.d.ts +5 -6
- package/dist/main.js +87 -87
- package/dist/styles-scss/_ui.scss +94 -14
- package/dist/styles-scss/global.scss +17 -15
- package/dist/styles-scss/tokens.scss +158 -53
- package/dist/utils/ui/index.d.ts +2 -2
- package/dist/utils/ui/index.js +12 -10
- package/dist/utils/ui/ui.d.ts +7 -2
- package/dist/utils/ui/ui.js +64 -46
- package/dist/utils/ui/ui.types.d.ts +68 -23
- package/dist/utils/ui/ui.types.js +18 -15
- package/package.json +1 -1
- package/dist/DropdownContent-MvHlrWi6.js +0 -989
- package/dist/Table.module-DffST69u.js +0 -17
- package/dist/assets/css/IconBig.css +0 -1
- package/dist/cfxIcons-B4SQ4Ljd.js +0 -100
- package/dist/cfxIconsBig-BLJjMT-Y.js +0 -16
- package/dist/components/IconBig/IconBig.d.ts +0 -13
- package/dist/components/IconBig/IconBig.js +0 -78
- package/dist/components/IconBig/index.d.ts +0 -2
- package/dist/components/IconBig/index.js +0 -4
- package/dist/components/Icons/cfx-icons/SquareCheck.d.ts +0 -5
- package/dist/components/Icons/cfx-icons/SquareCheck.js +0 -27
- package/dist/components/Icons/cfx-icons-big/Confirm.d.ts +0 -5
- package/dist/components/Icons/cfx-icons-big/Confirm.js +0 -39
- package/dist/components/Icons/cfx-icons-big/Like.d.ts +0 -5
- package/dist/components/Icons/cfx-icons-big/Like.js +0 -25
- package/dist/components/Icons/cfx-icons-big/Subscriptions.d.ts +0 -5
- package/dist/components/Icons/cfx-icons-big/Subscriptions.js +0 -33
- package/dist/components/Icons/cfx-icons-big/Warning.js +0 -27
- package/dist/components/Icons/cfxIconsBig.d.ts +0 -5
- package/dist/components/Icons/cfxIconsBig.js +0 -12
- /package/dist/components/Icons/{cfx-icons-big → cfx-iconsXLarge}/Upload.d.ts +0 -0
- /package/dist/components/Icons/{cfx-icons-big → cfx-iconsXLarge}/Warning.d.ts +0 -0
|
@@ -1,83 +1,69 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { clsx as
|
|
1
|
+
import { jsxs as D, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import r from "react";
|
|
3
|
+
import F from "../Button/Button.js";
|
|
4
|
+
import { clsx as L } from "../../utils/clsx.js";
|
|
5
5
|
import "../../utils/links.js";
|
|
6
|
-
import { useDynamicRef as
|
|
6
|
+
import { useDynamicRef as u } from "../../utils/hooks/useDynamicRef.js";
|
|
7
7
|
import "../../utils/hooks/useGlobalKeyboardEvent.js";
|
|
8
8
|
import "../../utils/hooks/useKeyboardClose.js";
|
|
9
9
|
import "../../index-Cl_RnsqN.js";
|
|
10
|
-
import { ui as
|
|
11
|
-
const
|
|
12
|
-
root:
|
|
13
|
-
renderer:
|
|
14
|
-
clear:
|
|
15
|
-
"richinputSizeinitial-large": "cfxui__RichInput__richinputSizeinitial-large__4991c",
|
|
16
|
-
"richinputSizeinitial-small": "cfxui__RichInput__richinputSizeinitial-small__cb0af",
|
|
17
|
-
"richinputSizesmall-large": "cfxui__RichInput__richinputSizesmall-large__d8bc8",
|
|
18
|
-
"richinputSizesmall-small": "cfxui__RichInput__richinputSizesmall-small__2f49a",
|
|
19
|
-
"richinputSizesmall-medium-large": "cfxui__RichInput__richinputSizesmall-medium-large__e3523",
|
|
20
|
-
"richinputSizesmall-medium-small": "cfxui__RichInput__richinputSizesmall-medium-small__a84f9",
|
|
21
|
-
"richinputSizemedium-large": "cfxui__RichInput__richinputSizemedium-large__80e93",
|
|
22
|
-
"richinputSizemedium-small": "cfxui__RichInput__richinputSizemedium-small__f42a7",
|
|
23
|
-
"richinputSizemedium-large-large": "cfxui__RichInput__richinputSizemedium-large-large__b8650",
|
|
24
|
-
"richinputSizemedium-large-small": "cfxui__RichInput__richinputSizemedium-large-small__30be4",
|
|
25
|
-
"richinputSizelarge-large": "cfxui__RichInput__richinputSizelarge-large__13d43",
|
|
26
|
-
"richinputSizelarge-small": "cfxui__RichInput__richinputSizelarge-small__de800",
|
|
27
|
-
"richinputSizexlarge-large": "cfxui__RichInput__richinputSizexlarge-large__fe171",
|
|
28
|
-
"richinputSizexlarge-small": "cfxui__RichInput__richinputSizexlarge-small__32365"
|
|
10
|
+
import { ui as T } from "../../utils/ui/ui.js";
|
|
11
|
+
const j = "cfxui__RichInput__root__57e6e", w = "cfxui__RichInput__renderer__8b298", z = "cfxui__RichInput__clear__5538b", c = {
|
|
12
|
+
root: j,
|
|
13
|
+
renderer: w,
|
|
14
|
+
clear: z
|
|
29
15
|
};
|
|
30
|
-
function P(
|
|
16
|
+
function P(f) {
|
|
31
17
|
const {
|
|
32
|
-
size: m = "
|
|
18
|
+
size: m = "medium",
|
|
33
19
|
value: a,
|
|
34
20
|
onChange: p,
|
|
35
|
-
onFocus:
|
|
36
|
-
onBlur:
|
|
37
|
-
onSelect:
|
|
38
|
-
onKeyDown:
|
|
39
|
-
className:
|
|
40
|
-
rendered:
|
|
41
|
-
placeholder:
|
|
42
|
-
autoFocus:
|
|
43
|
-
withClearButton:
|
|
44
|
-
ref:
|
|
45
|
-
} =
|
|
46
|
-
|
|
47
|
-
}, [
|
|
21
|
+
onFocus: d,
|
|
22
|
+
onBlur: _,
|
|
23
|
+
onSelect: h,
|
|
24
|
+
onKeyDown: C,
|
|
25
|
+
className: R,
|
|
26
|
+
rendered: g,
|
|
27
|
+
placeholder: x,
|
|
28
|
+
autoFocus: S,
|
|
29
|
+
withClearButton: b = !1,
|
|
30
|
+
ref: k
|
|
31
|
+
} = f, i = r.useRef(null), t = r.useRef(null), n = u(p), l = u(h), I = r.useCallback((e) => {
|
|
32
|
+
n.current(e.target.value);
|
|
33
|
+
}, [n]), N = r.useCallback(() => {
|
|
48
34
|
var e;
|
|
49
|
-
|
|
50
|
-
}, [
|
|
51
|
-
if (!
|
|
35
|
+
n.current(""), (e = i.current) == null || e.focus();
|
|
36
|
+
}, [n]), v = r.useCallback((e) => {
|
|
37
|
+
if (!l.current || !(e.target instanceof HTMLInputElement))
|
|
52
38
|
return;
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
}, [
|
|
56
|
-
|
|
57
|
-
}, []),
|
|
39
|
+
const s = e.target;
|
|
40
|
+
l.current(s.selectionStart, s.selectionEnd, s.selectionDirection);
|
|
41
|
+
}, [l]), y = r.useCallback((e) => {
|
|
42
|
+
t.current && (t.current.scrollTop = e.target.scrollTop, t.current.scrollLeft = e.target.scrollLeft);
|
|
43
|
+
}, []), B = L(
|
|
58
44
|
c.root,
|
|
59
|
-
|
|
60
|
-
|
|
45
|
+
R,
|
|
46
|
+
T.getResponsiveFlatClassnames("richinput-size", m).map((e) => c[e])
|
|
61
47
|
);
|
|
62
|
-
return /* @__PURE__ */
|
|
63
|
-
/* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ D("div", { ref: k, className: B, children: [
|
|
49
|
+
/* @__PURE__ */ o(
|
|
64
50
|
"input",
|
|
65
51
|
{
|
|
66
|
-
ref:
|
|
67
|
-
autoFocus:
|
|
52
|
+
ref: i,
|
|
53
|
+
autoFocus: S,
|
|
68
54
|
type: "text",
|
|
69
55
|
value: a,
|
|
70
|
-
onChange:
|
|
71
|
-
placeholder:
|
|
72
|
-
onBlur:
|
|
73
|
-
onFocus:
|
|
74
|
-
onScroll:
|
|
75
|
-
onSelect:
|
|
76
|
-
onKeyDown:
|
|
56
|
+
onChange: I,
|
|
57
|
+
placeholder: x,
|
|
58
|
+
onBlur: _,
|
|
59
|
+
onFocus: d,
|
|
60
|
+
onScroll: y,
|
|
61
|
+
onSelect: v,
|
|
62
|
+
onKeyDown: C
|
|
77
63
|
}
|
|
78
64
|
),
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
|
|
65
|
+
/* @__PURE__ */ o("div", { ref: t, className: c.renderer, children: g }),
|
|
66
|
+
b && a && /* @__PURE__ */ o("div", { className: c.clear, children: /* @__PURE__ */ o(F, { icon: "Close", onClick: N }) })
|
|
81
67
|
] });
|
|
82
68
|
}
|
|
83
69
|
export {
|
|
@@ -2,7 +2,7 @@ import { jsxs as wa, jsx as B } from "react/jsx-runtime";
|
|
|
2
2
|
import oa, { useMemo as T, useRef as ea, useReducer as hi, useEffect as ka, useCallback as y, forwardRef as yi, useImperativeHandle as wi, Fragment as ki } from "react";
|
|
3
3
|
import { P as s } from "../../index-DQMInta3.js";
|
|
4
4
|
import { a as I } from "../../tslib.es6-CtHwNPxX.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Icon as ji } from "../Icon/Icon.js";
|
|
6
6
|
import { Text as Na } from "../Text/Text.js";
|
|
7
7
|
import { clsx as Di } from "../../utils/clsx.js";
|
|
8
8
|
import Wa from "./ItemPreview.js";
|
|
@@ -1436,8 +1436,8 @@ function Ki(a, i) {
|
|
|
1436
1436
|
try {
|
|
1437
1437
|
for (t = t.call(a); !(p = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); p = !0)
|
|
1438
1438
|
;
|
|
1439
|
-
} catch (
|
|
1440
|
-
o = !0, r =
|
|
1439
|
+
} catch (v) {
|
|
1440
|
+
o = !0, r = v;
|
|
1441
1441
|
} finally {
|
|
1442
1442
|
try {
|
|
1443
1443
|
!p && t.return != null && t.return();
|
|
@@ -1491,8 +1491,8 @@ function P(a) {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
function Vi(a) {
|
|
1493
1493
|
var i = a.files, t = a.accept, n = a.minSize, p = a.maxSize, o = a.multiple, l = a.maxFiles, r = a.validator;
|
|
1494
|
-
return !o && i.length > 1 || o && l >= 1 && i.length > l ? !1 : i.every(function(
|
|
1495
|
-
var k = oi(
|
|
1494
|
+
return !o && i.length > 1 || o && l >= 1 && i.length > l ? !1 : i.every(function(v) {
|
|
1495
|
+
var k = oi(v, t), z = U(k, 1), A = z[0], j = ci(v, n, p), _ = U(j, 1), E = _[0], F = r ? r(v) : null;
|
|
1496
1496
|
return A && E && !F;
|
|
1497
1497
|
});
|
|
1498
1498
|
}
|
|
@@ -1584,9 +1584,9 @@ function mt(a) {
|
|
|
1584
1584
|
if (Array.isArray(a)) return _a(a);
|
|
1585
1585
|
}
|
|
1586
1586
|
function Da(a, i) {
|
|
1587
|
-
return ft(a) ||
|
|
1587
|
+
return ft(a) || vt(a, i) || si(a, i) || ut();
|
|
1588
1588
|
}
|
|
1589
|
-
function
|
|
1589
|
+
function ut() {
|
|
1590
1590
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1591
1591
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1592
1592
|
}
|
|
@@ -1604,15 +1604,15 @@ function _a(a, i) {
|
|
|
1604
1604
|
n[t] = a[t];
|
|
1605
1605
|
return n;
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1607
|
+
function vt(a, i) {
|
|
1608
1608
|
var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
1609
1609
|
if (t != null) {
|
|
1610
1610
|
var n = [], p = !0, o = !1, l, r;
|
|
1611
1611
|
try {
|
|
1612
1612
|
for (t = t.call(a); !(p = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); p = !0)
|
|
1613
1613
|
;
|
|
1614
|
-
} catch (
|
|
1615
|
-
o = !0, r =
|
|
1614
|
+
} catch (v) {
|
|
1615
|
+
o = !0, r = v;
|
|
1616
1616
|
} finally {
|
|
1617
1617
|
try {
|
|
1618
1618
|
!p && t.return != null && t.return();
|
|
@@ -1873,7 +1873,7 @@ var Fa = {
|
|
|
1873
1873
|
fileRejections: []
|
|
1874
1874
|
};
|
|
1875
1875
|
function mi() {
|
|
1876
|
-
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = d(d({}, di), a), t = i.accept, n = i.disabled, p = i.getFilesFromEvent, o = i.maxSize, l = i.minSize, r = i.multiple,
|
|
1876
|
+
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = d(d({}, di), a), t = i.accept, n = i.disabled, p = i.getFilesFromEvent, o = i.maxSize, l = i.minSize, r = i.multiple, v = i.maxFiles, k = i.onDragEnter, z = i.onDragLeave, A = i.onDragOver, j = i.onDrop, _ = i.onDropAccepted, E = i.onDropRejected, F = i.onFileDialogCancel, M = i.onFileDialogOpen, Y = i.useFsAccessApi, G = i.autoFocus, $ = i.preventDropOnDocument, J = i.noClick, K = i.noKeyboard, V = i.noDrag, f = i.noDragEventsBubbling, sa = i.onError, H = i.validator, N = T(function() {
|
|
1877
1877
|
return tt(t);
|
|
1878
1878
|
}, [t]), Pa = T(function() {
|
|
1879
1879
|
return it(t);
|
|
@@ -1881,7 +1881,7 @@ function mi() {
|
|
|
1881
1881
|
return typeof M == "function" ? M : ii;
|
|
1882
1882
|
}, [M]), Q = T(function() {
|
|
1883
1883
|
return typeof F == "function" ? F : ii;
|
|
1884
|
-
}, [F]), x = ea(null), h = ea(null),
|
|
1884
|
+
}, [F]), x = ea(null), h = ea(null), ui = hi(gt, Fa), Ia = Da(ui, 2), ma = Ia[0], g = Ia[1], vi = ma.isFocused, Ra = ma.isFileDialogActive, X = ea(typeof window < "u" && window.isSecureContext && Y && at()), qa = function() {
|
|
1885
1885
|
!X.current && Ra && setTimeout(function() {
|
|
1886
1886
|
if (h.current) {
|
|
1887
1887
|
var c = h.current.files;
|
|
@@ -1912,17 +1912,17 @@ function mi() {
|
|
|
1912
1912
|
}, [sa]), Sa = y(function(e) {
|
|
1913
1913
|
e.preventDefault(), e.persist(), ta(e), R.current = [].concat(rt(R.current), [e.target]), pa(e) && Promise.resolve(p(e)).then(function(c) {
|
|
1914
1914
|
if (!(la(e) && !f)) {
|
|
1915
|
-
var m = c.length,
|
|
1915
|
+
var m = c.length, u = m > 0 && Vi({
|
|
1916
1916
|
files: c,
|
|
1917
1917
|
accept: N,
|
|
1918
1918
|
minSize: l,
|
|
1919
1919
|
maxSize: o,
|
|
1920
1920
|
multiple: r,
|
|
1921
|
-
maxFiles:
|
|
1921
|
+
maxFiles: v,
|
|
1922
1922
|
validator: H
|
|
1923
|
-
}), b = m > 0 && !
|
|
1923
|
+
}), b = m > 0 && !u;
|
|
1924
1924
|
g({
|
|
1925
|
-
isDragAccept:
|
|
1925
|
+
isDragAccept: u,
|
|
1926
1926
|
isDragReject: b,
|
|
1927
1927
|
isDragActive: !0,
|
|
1928
1928
|
type: "setDraggedFiles"
|
|
@@ -1931,7 +1931,7 @@ function mi() {
|
|
|
1931
1931
|
}).catch(function(c) {
|
|
1932
1932
|
return O(c);
|
|
1933
1933
|
});
|
|
1934
|
-
}, [p, k, O, f, N, l, o, r,
|
|
1934
|
+
}, [p, k, O, f, N, l, o, r, v, H]), Ta = y(function(e) {
|
|
1935
1935
|
e.preventDefault(), e.persist(), ta(e);
|
|
1936
1936
|
var c = pa(e);
|
|
1937
1937
|
if (c && e.dataTransfer)
|
|
@@ -1942,8 +1942,8 @@ function mi() {
|
|
|
1942
1942
|
return c && A && A(e), !1;
|
|
1943
1943
|
}, [A, f]), La = y(function(e) {
|
|
1944
1944
|
e.preventDefault(), e.persist(), ta(e);
|
|
1945
|
-
var c = R.current.filter(function(
|
|
1946
|
-
return x.current && x.current.contains(
|
|
1945
|
+
var c = R.current.filter(function(u) {
|
|
1946
|
+
return x.current && x.current.contains(u);
|
|
1947
1947
|
}), m = c.indexOf(e.target);
|
|
1948
1948
|
m !== -1 && c.splice(m, 1), R.current = c, !(c.length > 0) && (g({
|
|
1949
1949
|
type: "setDraggedFiles",
|
|
@@ -1952,32 +1952,32 @@ function mi() {
|
|
|
1952
1952
|
isDragReject: !1
|
|
1953
1953
|
}), pa(e) && z && z(e));
|
|
1954
1954
|
}, [x, z, f]), Z = y(function(e, c) {
|
|
1955
|
-
var m = [],
|
|
1955
|
+
var m = [], u = [];
|
|
1956
1956
|
e.forEach(function(b) {
|
|
1957
|
-
var W = oi(b, N), S = Da(W, 2),
|
|
1958
|
-
if (
|
|
1957
|
+
var W = oi(b, N), S = Da(W, 2), va = S[0], fa = S[1], xa = ci(b, l, o), na = Da(xa, 2), ga = na[0], ba = na[1], ha = H ? H(b) : null;
|
|
1958
|
+
if (va && ga && !ha)
|
|
1959
1959
|
m.push(b);
|
|
1960
1960
|
else {
|
|
1961
1961
|
var ya = [fa, ba];
|
|
1962
|
-
ha && (ya = ya.concat(ha)),
|
|
1962
|
+
ha && (ya = ya.concat(ha)), u.push({
|
|
1963
1963
|
file: b,
|
|
1964
1964
|
errors: ya.filter(function(bi) {
|
|
1965
1965
|
return bi;
|
|
1966
1966
|
})
|
|
1967
1967
|
});
|
|
1968
1968
|
}
|
|
1969
|
-
}), (!r && m.length > 1 || r &&
|
|
1970
|
-
|
|
1969
|
+
}), (!r && m.length > 1 || r && v >= 1 && m.length > v) && (m.forEach(function(b) {
|
|
1970
|
+
u.push({
|
|
1971
1971
|
file: b,
|
|
1972
1972
|
errors: [Ji]
|
|
1973
1973
|
});
|
|
1974
1974
|
}), m.splice(0)), g({
|
|
1975
1975
|
acceptedFiles: m,
|
|
1976
|
-
fileRejections:
|
|
1977
|
-
isDragReject:
|
|
1976
|
+
fileRejections: u,
|
|
1977
|
+
isDragReject: u.length > 0,
|
|
1978
1978
|
type: "setFiles"
|
|
1979
|
-
}), j && j(m,
|
|
1980
|
-
}, [g, r, N, l, o,
|
|
1979
|
+
}), j && j(m, u, c), u.length > 0 && E && E(u, c), m.length > 0 && _ && _(m, c);
|
|
1980
|
+
}, [g, r, N, l, o, v, j, _, E, H]), aa = y(function(e) {
|
|
1981
1981
|
e.preventDefault(), e.persist(), ta(e), R.current = [], pa(e) && Promise.resolve(p(e)).then(function(c) {
|
|
1982
1982
|
la(e) && !f || Z(c, e);
|
|
1983
1983
|
}).catch(function(c) {
|
|
@@ -2024,7 +2024,7 @@ function mi() {
|
|
|
2024
2024
|
J || (Zi() ? setTimeout(q, 0) : q());
|
|
2025
2025
|
}, [J, q]), C = function(c) {
|
|
2026
2026
|
return n ? null : c;
|
|
2027
|
-
},
|
|
2027
|
+
}, ua = function(c) {
|
|
2028
2028
|
return K ? null : C(c);
|
|
2029
2029
|
}, ia = function(c) {
|
|
2030
2030
|
return V ? null : C(c);
|
|
@@ -2032,17 +2032,17 @@ function mi() {
|
|
|
2032
2032
|
f && c.stopPropagation();
|
|
2033
2033
|
}, fi = T(function() {
|
|
2034
2034
|
return function() {
|
|
2035
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c,
|
|
2035
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, u = e.role, b = e.onKeyDown, W = e.onFocus, S = e.onBlur, va = e.onClick, fa = e.onDragEnter, xa = e.onDragOver, na = e.onDragLeave, ga = e.onDrop, ba = ra(e, ct);
|
|
2036
2036
|
return d(d(Ea({
|
|
2037
|
-
onKeyDown:
|
|
2038
|
-
onFocus:
|
|
2039
|
-
onBlur:
|
|
2040
|
-
onClick: C(w(
|
|
2037
|
+
onKeyDown: ua(w(b, Ma)),
|
|
2038
|
+
onFocus: ua(w(W, $a)),
|
|
2039
|
+
onBlur: ua(w(S, Ka)),
|
|
2040
|
+
onClick: C(w(va, Ha)),
|
|
2041
2041
|
onDragEnter: ia(w(fa, Sa)),
|
|
2042
2042
|
onDragOver: ia(w(xa, Ta)),
|
|
2043
2043
|
onDragLeave: ia(w(na, La)),
|
|
2044
2044
|
onDrop: ia(w(ga, aa)),
|
|
2045
|
-
role: typeof
|
|
2045
|
+
role: typeof u == "string" && u !== "" ? u : "presentation"
|
|
2046
2046
|
}, m, x), !n && !K ? {
|
|
2047
2047
|
tabIndex: 0
|
|
2048
2048
|
} : {}), ba);
|
|
@@ -2051,7 +2051,7 @@ function mi() {
|
|
|
2051
2051
|
e.stopPropagation();
|
|
2052
2052
|
}, []), gi = T(function() {
|
|
2053
2053
|
return function() {
|
|
2054
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c,
|
|
2054
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = e.refKey, m = c === void 0 ? "ref" : c, u = e.onChange, b = e.onClick, W = ra(e, lt), S = Ea({
|
|
2055
2055
|
accept: N,
|
|
2056
2056
|
multiple: r,
|
|
2057
2057
|
type: "file",
|
|
@@ -2067,7 +2067,7 @@ function mi() {
|
|
|
2067
2067
|
width: "1px",
|
|
2068
2068
|
whiteSpace: "nowrap"
|
|
2069
2069
|
},
|
|
2070
|
-
onChange: C(w(
|
|
2070
|
+
onChange: C(w(u, aa)),
|
|
2071
2071
|
onClick: C(w(b, xi)),
|
|
2072
2072
|
tabIndex: -1
|
|
2073
2073
|
}, m, h);
|
|
@@ -2075,7 +2075,7 @@ function mi() {
|
|
|
2075
2075
|
};
|
|
2076
2076
|
}, [h, t, r, aa, n]);
|
|
2077
2077
|
return d(d({}, ma), {}, {
|
|
2078
|
-
isFocused:
|
|
2078
|
+
isFocused: vi && !n,
|
|
2079
2079
|
getRootProps: fi,
|
|
2080
2080
|
getInputProps: gi,
|
|
2081
2081
|
rootRef: x,
|
|
@@ -2137,7 +2137,7 @@ function jt(a) {
|
|
|
2137
2137
|
removeItemAriaLabel: o = "",
|
|
2138
2138
|
rootAriaLabel: l = "",
|
|
2139
2139
|
onRemoveFile: r,
|
|
2140
|
-
onRemoveRejection:
|
|
2140
|
+
onRemoveRejection: v,
|
|
2141
2141
|
dropzoneItemClassName: k,
|
|
2142
2142
|
dropzoneClassName: z,
|
|
2143
2143
|
name: A,
|
|
@@ -2153,8 +2153,8 @@ function jt(a) {
|
|
|
2153
2153
|
} = mi(j), J = oa.useCallback((f) => {
|
|
2154
2154
|
r && r(f);
|
|
2155
2155
|
}, [r]), K = oa.useCallback((f) => {
|
|
2156
|
-
|
|
2157
|
-
}, [
|
|
2156
|
+
v && v(f);
|
|
2157
|
+
}, [v]), V = Di(D.dropzone, z, {
|
|
2158
2158
|
[D.disabled]: j.disabled,
|
|
2159
2159
|
[D.focused]: _,
|
|
2160
2160
|
[D.dragActive]: E,
|
|
@@ -2172,7 +2172,16 @@ function jt(a) {
|
|
|
2172
2172
|
}),
|
|
2173
2173
|
children: [
|
|
2174
2174
|
/* @__PURE__ */ B("input", { ...$({ name: A }) }),
|
|
2175
|
-
/* @__PURE__ */ B(
|
|
2175
|
+
/* @__PURE__ */ B(
|
|
2176
|
+
ji,
|
|
2177
|
+
{
|
|
2178
|
+
name: "Upload",
|
|
2179
|
+
size: {
|
|
2180
|
+
large: "xlarge",
|
|
2181
|
+
initial: "medium"
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
),
|
|
2176
2185
|
/* @__PURE__ */ wa(Na, { className: D.text, children: [
|
|
2177
2186
|
p ? `${n} ` : n,
|
|
2178
2187
|
!!p && /* @__PURE__ */ B(
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import i from "react";
|
|
3
|
+
import n from "../Flex/Flex.js";
|
|
4
|
+
import { clsx as s } from "../../utils/clsx.js";
|
|
5
|
+
import p from "../IconButton/IconButton.js";
|
|
6
|
+
import { Text as d } from "../Text/Text.js";
|
|
7
|
+
const u = "cfxui__ItemPreview__root__bb9bc", w = "cfxui__ItemPreview__preview__fff25", x = "cfxui__ItemPreview__failed__98fb7", h = "cfxui__ItemPreview__filePath__54877", t = {
|
|
7
8
|
root: u,
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
preview: w,
|
|
10
|
+
failed: x,
|
|
11
|
+
filePath: h
|
|
10
12
|
};
|
|
11
13
|
function P({
|
|
12
|
-
file:
|
|
13
|
-
onRemoveFile:
|
|
14
|
-
removeAriaLabel:
|
|
15
|
-
className:
|
|
16
|
-
theme:
|
|
14
|
+
file: e,
|
|
15
|
+
onRemoveFile: a,
|
|
16
|
+
removeAriaLabel: o = "",
|
|
17
|
+
className: c,
|
|
18
|
+
theme: _ = "default"
|
|
17
19
|
}) {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
}, [
|
|
21
|
-
return /* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */ c(
|
|
23
|
-
/* @__PURE__ */
|
|
20
|
+
const f = i.useCallback(() => {
|
|
21
|
+
a(e);
|
|
22
|
+
}, [e, a]), l = i.useMemo(() => `${o}${o ? ", " : ""}${e.path}`, [o, e.path]);
|
|
23
|
+
return /* @__PURE__ */ m(n, { direction: "row", display: "flex", alignItems: "center", className: s(t.root, t[_], c), children: [
|
|
24
|
+
/* @__PURE__ */ r("div", { className: s(t.preview, t[_], c), children: /* @__PURE__ */ r(d, { family: "secondary", className: t.filePath, children: e.path }) }),
|
|
25
|
+
/* @__PURE__ */ r(p, { areaSize: "large", ariaLabel: l, name: "Close", onClick: f })
|
|
24
26
|
] });
|
|
25
27
|
}
|
|
26
|
-
const
|
|
28
|
+
const g = i.memo(P);
|
|
27
29
|
export {
|
|
28
|
-
|
|
30
|
+
g as default
|
|
29
31
|
};
|
|
@@ -4,9 +4,9 @@ export interface PadProps {
|
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
/**
|
|
7
|
-
* '
|
|
7
|
+
* 'medium' by default
|
|
8
8
|
*/
|
|
9
|
-
size?: 'none' | 'small' | '
|
|
9
|
+
size?: 'none' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
10
10
|
top?: boolean;
|
|
11
11
|
left?: boolean;
|
|
12
12
|
right?: boolean;
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { Text as
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import n from "react";
|
|
3
|
+
import d from "../Flex/Flex.js";
|
|
4
|
+
import { Text as r } from "../Text/Text.js";
|
|
5
5
|
import "../../utils/ui/ui.js";
|
|
6
6
|
import t from "./ButtonLink.js";
|
|
7
|
-
import
|
|
7
|
+
import l from "./Link.js";
|
|
8
8
|
function c() {
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */ e(
|
|
12
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
13
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
14
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
9
|
+
return /* @__PURE__ */ i(d, { gap: "large", vertical: !0, children: [
|
|
10
|
+
/* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
|
|
11
|
+
/* @__PURE__ */ e(r, { children: "Color Default" }),
|
|
12
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { href: "/", children: "Link active" }) }),
|
|
13
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { href: "/", disabled: !0, children: "Link disable" }) }),
|
|
14
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { href: "/", unstyled: !0, children: "Link unstyled" }) })
|
|
15
15
|
] }),
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */ e(
|
|
18
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
19
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
16
|
+
/* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
|
|
17
|
+
/* @__PURE__ */ e(r, { children: "Color secondary" }),
|
|
18
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { href: "/", color: "secondary", children: "Link active" }) }),
|
|
19
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { href: "/", color: "secondary", disabled: !0, children: "Link disable" }) })
|
|
20
20
|
] }),
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */ e(
|
|
23
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
24
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
21
|
+
/* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
|
|
22
|
+
/* @__PURE__ */ e(r, { children: "Color red" }),
|
|
23
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { href: "/", color: "red", children: "Link active" }) }),
|
|
24
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(l, { href: "/", color: "red", disabled: !0, children: "Link disable" }) })
|
|
25
25
|
] }),
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */ e(
|
|
26
|
+
/* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
|
|
27
|
+
/* @__PURE__ */ e(r, { children: "ButtonLink - look like link but its button" }),
|
|
28
28
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { children: "Link active" }) }),
|
|
29
29
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, { disabled: !0, children: "Link disable" }) })
|
|
30
30
|
] }),
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */ e(
|
|
33
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ r
|
|
31
|
+
/* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
|
|
32
|
+
/* @__PURE__ */ e(r, { children: "Inside text" }),
|
|
33
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", children: [
|
|
34
34
|
"Out of link text.",
|
|
35
35
|
" ",
|
|
36
|
-
/* @__PURE__ */ e(
|
|
36
|
+
/* @__PURE__ */ e(l, { href: "/", children: "Link text" })
|
|
37
37
|
] }) })
|
|
38
38
|
] }),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */ e(
|
|
41
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ r
|
|
39
|
+
/* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
|
|
40
|
+
/* @__PURE__ */ e(r, { children: "Inside typographic text" }),
|
|
41
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", typographic: !0, children: [
|
|
42
42
|
"Out of link text.",
|
|
43
43
|
" ",
|
|
44
|
-
/* @__PURE__ */ e(
|
|
44
|
+
/* @__PURE__ */ e(l, { href: "/", children: "Link text" })
|
|
45
45
|
] }) })
|
|
46
46
|
] }),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */ e(
|
|
47
|
+
/* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
|
|
48
|
+
/* @__PURE__ */ e(r, { children: "Row a tag" }),
|
|
49
49
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("a", { href: "/", children: "Link text" }) })
|
|
50
50
|
] }),
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ r
|
|
51
|
+
/* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
|
|
52
|
+
/* @__PURE__ */ e(r, { children: "Row a in text" }),
|
|
53
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", children: [
|
|
54
54
|
"Out of link text.",
|
|
55
55
|
" ",
|
|
56
56
|
/* @__PURE__ */ e("a", { href: "/", children: "Link text" })
|
|
57
57
|
] }) })
|
|
58
58
|
] }),
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */ e(
|
|
61
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ r
|
|
59
|
+
/* @__PURE__ */ i(d, { gap: "medium", vertical: !0, children: [
|
|
60
|
+
/* @__PURE__ */ e(r, { children: "Row a in typographic text" }),
|
|
61
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ i(r, { size: "large", as: "h2", typographic: !0, children: [
|
|
62
62
|
"Out of link text.",
|
|
63
63
|
" ",
|
|
64
64
|
/* @__PURE__ */ e("a", { href: "/", children: "Link text" })
|
|
@@ -66,7 +66,7 @@ function c() {
|
|
|
66
66
|
] })
|
|
67
67
|
] });
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const f = n.memo(c);
|
|
70
70
|
export {
|
|
71
|
-
|
|
71
|
+
f as default
|
|
72
72
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
|
|
3
|
-
export type LoafSize = 'small' | '
|
|
4
|
-
export type LoafColor = '
|
|
3
|
+
export type LoafSize = 'small' | 'medium' | 'large';
|
|
4
|
+
export type LoafColor = 'default' | 'gold' | 'error';
|
|
5
5
|
export interface LoafProps {
|
|
6
6
|
size?: LoafSize;
|
|
7
7
|
color?: LoafColor;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { clsx as t } from "../../utils/clsx.js";
|
|
3
|
-
const
|
|
4
|
-
root:
|
|
5
|
-
"color-
|
|
6
|
-
bright:
|
|
3
|
+
const u = "cfxui__Loaf__root__05393", m = "cfxui__Loaf__bright__6638c", o = {
|
|
4
|
+
root: u,
|
|
5
|
+
"color-default": "cfxui__Loaf__color-default__5b15b",
|
|
6
|
+
bright: m,
|
|
7
7
|
"color-gold": "cfxui__Loaf__color-gold__4fa59",
|
|
8
8
|
"color-error": "cfxui__Loaf__color-error__9887b",
|
|
9
9
|
"size-small": "cfxui__Loaf__size-small__942f7",
|
|
10
|
-
"size-
|
|
10
|
+
"size-medium": "cfxui__Loaf__size-medium__2679d",
|
|
11
11
|
"size-large": "cfxui__Loaf__size-large__1679c"
|
|
12
12
|
};
|
|
13
13
|
function g(_) {
|
|
14
14
|
const {
|
|
15
|
-
size: r = "
|
|
16
|
-
color:
|
|
17
|
-
bright:
|
|
18
|
-
children:
|
|
19
|
-
className:
|
|
20
|
-
ref:
|
|
21
|
-
} = _,
|
|
22
|
-
[o.bright]:
|
|
15
|
+
size: r = "medium",
|
|
16
|
+
color: i = "default",
|
|
17
|
+
bright: c = !1,
|
|
18
|
+
children: f,
|
|
19
|
+
className: e,
|
|
20
|
+
ref: l
|
|
21
|
+
} = _, s = t(o.root, o[`size-${r}`], o[`color-${i}`], e, {
|
|
22
|
+
[o.bright]: c
|
|
23
23
|
});
|
|
24
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ a("div", { ref: l, className: s, children: f });
|
|
25
25
|
}
|
|
26
26
|
export {
|
|
27
27
|
g as Loaf
|