@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,33 +1,174 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import a from "react";
|
|
3
|
+
import r from "../Flex/Flex.js";
|
|
4
|
+
import "../Icons/cfx-icons/Close.js";
|
|
5
|
+
import "../Icons/cfx-icons/Controller.js";
|
|
6
|
+
import "../Icons/cfx-icons/Copy.js";
|
|
7
|
+
import "../Icons/cfx-icons/DownArrow.js";
|
|
8
|
+
import "../Icons/cfx-icons/DownChevron.js";
|
|
9
|
+
import "../Icons/cfx-icons/Download.js";
|
|
10
|
+
import "../Icons/cfx-icons/Expand.js";
|
|
11
|
+
import "../Icons/cfx-icons/ExternalLink.js";
|
|
12
|
+
import "../Icons/cfx-icons/Filter.js";
|
|
13
|
+
import "../Icons/cfx-icons/Folder.js";
|
|
14
|
+
import "../Icons/cfx-icons/Heart.js";
|
|
15
|
+
import "../Icons/cfx-icons/HeartFilled.js";
|
|
16
|
+
import "../Icons/cfx-icons/Help.js";
|
|
17
|
+
import "../Icons/cfx-icons/LeftArrow.js";
|
|
18
|
+
import "../Icons/cfx-icons/LeftChevron.js";
|
|
19
|
+
import "../Icons/cfx-icons/Map.js";
|
|
20
|
+
import "../Icons/cfx-icons/Menu.js";
|
|
21
|
+
import "../Icons/cfx-icons/Minus.js";
|
|
22
|
+
import "../Icons/cfx-icons/More.js";
|
|
23
|
+
import "../Icons/cfx-icons/MoreInfo.js";
|
|
24
|
+
import "../Icons/cfx-icons/Pencil.js";
|
|
25
|
+
import "../Icons/cfx-icons/Play.js";
|
|
26
|
+
import "../Icons/cfx-icons/Plus.js";
|
|
27
|
+
import "../Icons/cfx-icons/Radio.js";
|
|
28
|
+
import "../Icons/cfx-icons/Refresh.js";
|
|
29
|
+
import "../Icons/cfx-icons/RightArrow.js";
|
|
30
|
+
import "../Icons/cfx-icons/RightChevron.js";
|
|
31
|
+
import "../Icons/cfx-icons/Search.js";
|
|
32
|
+
import "../Icons/cfx-icons/ServerList.js";
|
|
33
|
+
import "../Icons/cfx-icons/ServerReconnect.js";
|
|
34
|
+
import "../Icons/cfx-icons/Sort.js";
|
|
35
|
+
import "../Icons/cfx-icons/Square.js";
|
|
36
|
+
import "../Icons/cfx-icons/SquareFilled.js";
|
|
37
|
+
import "../Icons/cfx-icons/SquareTick.js";
|
|
38
|
+
import "../Icons/cfx-icons/Stop.js";
|
|
39
|
+
import "../Icons/cfx-icons/Success.js";
|
|
40
|
+
import n from "../Icons/cfx-icons/Tick.js";
|
|
41
|
+
import "../Icons/cfx-icons/Transfer.js";
|
|
42
|
+
import "../Icons/cfx-icons/Trash.js";
|
|
43
|
+
import "../Icons/cfx-icons/Undo.js";
|
|
44
|
+
import "../Icons/cfx-icons/UpArrow.js";
|
|
45
|
+
import "../Icons/cfx-icons/UpChevron.js";
|
|
46
|
+
import "../Icons/cfx-icons/Upload.js";
|
|
47
|
+
import "../Icons/cfx-icons/Users.js";
|
|
48
|
+
import "../Icons/cfx-icons/Visibility.js";
|
|
49
|
+
import "../Icons/cfx-icons/VisibilityOff.js";
|
|
50
|
+
import "../Icons/cfx-icons/Warning.js";
|
|
51
|
+
import "../Icons/cfx-icons/Cart.js";
|
|
52
|
+
import "../Icons/cfx-icons/User.js";
|
|
53
|
+
import "../Icons/cfx-icons/Verified.js";
|
|
54
|
+
import "../Icons/cfx-icons/UpvotesBurst.js";
|
|
55
|
+
import "../Icons/cfx-icons/UpvotesRecurring.js";
|
|
56
|
+
import "../Icons/cfx-iconsXLarge/Close.js";
|
|
57
|
+
import "../Icons/cfx-iconsXLarge/Controller.js";
|
|
58
|
+
import "../Icons/cfx-iconsXLarge/Copy.js";
|
|
59
|
+
import "../Icons/cfx-iconsXLarge/DownArrow.js";
|
|
60
|
+
import "../Icons/cfx-iconsXLarge/DownChevron.js";
|
|
61
|
+
import "../Icons/cfx-iconsXLarge/Download.js";
|
|
62
|
+
import "../Icons/cfx-iconsXLarge/Expand.js";
|
|
63
|
+
import "../Icons/cfx-iconsXLarge/ExternalLink.js";
|
|
64
|
+
import "../Icons/cfx-iconsXLarge/Filter.js";
|
|
65
|
+
import "../Icons/cfx-iconsXLarge/Folder.js";
|
|
66
|
+
import "../Icons/cfx-iconsXLarge/Heart.js";
|
|
67
|
+
import "../Icons/cfx-iconsXLarge/HeartFilled.js";
|
|
68
|
+
import "../Icons/cfx-iconsXLarge/Help.js";
|
|
69
|
+
import "../Icons/cfx-iconsXLarge/LeftArrow.js";
|
|
70
|
+
import "../Icons/cfx-iconsXLarge/LeftChevron.js";
|
|
71
|
+
import "../Icons/cfx-iconsXLarge/Map.js";
|
|
72
|
+
import "../Icons/cfx-iconsXLarge/Menu.js";
|
|
73
|
+
import "../Icons/cfx-iconsXLarge/Minus.js";
|
|
74
|
+
import "../Icons/cfx-iconsXLarge/More.js";
|
|
75
|
+
import "../Icons/cfx-iconsXLarge/MoreInfo.js";
|
|
76
|
+
import "../Icons/cfx-iconsXLarge/Pencil.js";
|
|
77
|
+
import "../Icons/cfx-iconsXLarge/Play.js";
|
|
78
|
+
import "../Icons/cfx-iconsXLarge/Plus.js";
|
|
79
|
+
import "../Icons/cfx-iconsXLarge/Radio.js";
|
|
80
|
+
import "../Icons/cfx-iconsXLarge/Refresh.js";
|
|
81
|
+
import "../Icons/cfx-iconsXLarge/RightArrow.js";
|
|
82
|
+
import "../Icons/cfx-iconsXLarge/RightChevron.js";
|
|
83
|
+
import "../Icons/cfx-iconsXLarge/Search.js";
|
|
84
|
+
import "../Icons/cfx-iconsXLarge/ServerList.js";
|
|
85
|
+
import "../Icons/cfx-iconsXLarge/ServerReconnect.js";
|
|
86
|
+
import "../Icons/cfx-iconsXLarge/Sort.js";
|
|
87
|
+
import "../Icons/cfx-iconsXLarge/Square.js";
|
|
88
|
+
import "../Icons/cfx-iconsXLarge/SquareFilled.js";
|
|
89
|
+
import "../Icons/cfx-iconsXLarge/SquareTick.js";
|
|
90
|
+
import "../Icons/cfx-iconsXLarge/Stop.js";
|
|
91
|
+
import "../Icons/cfx-iconsXLarge/Success.js";
|
|
92
|
+
import "../Icons/cfx-iconsXLarge/Tick.js";
|
|
93
|
+
import "../Icons/cfx-iconsXLarge/Transfer.js";
|
|
94
|
+
import "../Icons/cfx-iconsXLarge/Trash.js";
|
|
95
|
+
import "../Icons/cfx-iconsXLarge/Undo.js";
|
|
96
|
+
import "../Icons/cfx-iconsXLarge/UpArrow.js";
|
|
97
|
+
import "../Icons/cfx-iconsXLarge/UpChevron.js";
|
|
98
|
+
import "../Icons/cfx-iconsXLarge/Upload.js";
|
|
99
|
+
import "../Icons/cfx-iconsXLarge/Users.js";
|
|
100
|
+
import "../Icons/cfx-iconsXLarge/Visibility.js";
|
|
101
|
+
import "../Icons/cfx-iconsXLarge/VisibilityOff.js";
|
|
102
|
+
import "../Icons/cfx-iconsXLarge/Warning.js";
|
|
103
|
+
import "../Icons/cfx-iconsXLarge/Cart.js";
|
|
104
|
+
import "../Icons/cfx-iconsXLarge/User.js";
|
|
105
|
+
import "../Icons/cfx-iconsXLarge/Verified.js";
|
|
106
|
+
import "../Icons/cfx-iconsXLarge/UpvotesBurst.js";
|
|
107
|
+
import "../Icons/cfx-iconsXLarge/UpvotesRecurring.js";
|
|
108
|
+
import t from "./Checkbox.js";
|
|
109
|
+
const h = "cfxui__CheckboxShowcase__root__5c0e0", d = "cfxui__CheckboxShowcase__checked__e49f9", s = "cfxui__CheckboxShowcase__icon__686ec", m = {
|
|
110
|
+
root: h,
|
|
111
|
+
checked: d,
|
|
112
|
+
icon: s
|
|
10
113
|
};
|
|
11
|
-
function l
|
|
12
|
-
const [
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
114
|
+
function ki(l) {
|
|
115
|
+
const [e, p] = a.useState(!1);
|
|
116
|
+
return /* @__PURE__ */ i(r, { direction: "column", gap: "large", children: [
|
|
117
|
+
/* @__PURE__ */ i(r, { direction: "column", gap: "small", children: [
|
|
118
|
+
/* @__PURE__ */ o("h4", { children: "Small" }),
|
|
119
|
+
/* @__PURE__ */ o(t, { size: "small" })
|
|
120
|
+
] }),
|
|
121
|
+
/* @__PURE__ */ i(r, { direction: "column", gap: "small", children: [
|
|
122
|
+
/* @__PURE__ */ o("h4", { children: "Medium" }),
|
|
123
|
+
/* @__PURE__ */ o(t, { size: "medium" })
|
|
124
|
+
] }),
|
|
125
|
+
/* @__PURE__ */ i(r, { direction: "column", gap: "small", children: [
|
|
126
|
+
/* @__PURE__ */ o("h4", { children: "Large" }),
|
|
127
|
+
/* @__PURE__ */ o(t, { size: "large" })
|
|
128
|
+
] }),
|
|
129
|
+
/* @__PURE__ */ i(r, { direction: "column", gap: "small", children: [
|
|
130
|
+
/* @__PURE__ */ o("h4", { children: "Color Accent" }),
|
|
131
|
+
/* @__PURE__ */ o(t, { color: "accent" })
|
|
132
|
+
] }),
|
|
133
|
+
/* @__PURE__ */ i(r, { direction: "column", gap: "small", children: [
|
|
134
|
+
/* @__PURE__ */ o("h4", { children: "Tick" }),
|
|
135
|
+
/* @__PURE__ */ o(t, { iconIndicator: n })
|
|
136
|
+
] }),
|
|
137
|
+
/* @__PURE__ */ i(r, { direction: "column", gap: "small", children: [
|
|
138
|
+
/* @__PURE__ */ o("h4", { children: "Secondary" }),
|
|
139
|
+
/* @__PURE__ */ o(
|
|
140
|
+
t,
|
|
141
|
+
{
|
|
142
|
+
iconIndicator: n,
|
|
143
|
+
theme: "secondary",
|
|
144
|
+
onCheckedChange: p,
|
|
145
|
+
onClick: () => p((c) => !c),
|
|
146
|
+
checked: e
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
] }),
|
|
150
|
+
/* @__PURE__ */ i(r, { direction: "column", gap: "small", children: [
|
|
151
|
+
/* @__PURE__ */ o("h4", { children: "Custom" }),
|
|
152
|
+
/* @__PURE__ */ o(
|
|
153
|
+
t,
|
|
154
|
+
{
|
|
155
|
+
...l,
|
|
156
|
+
id: "checkbox1",
|
|
157
|
+
name: "checkbox1",
|
|
158
|
+
checked: e,
|
|
159
|
+
onCheckedChange: p,
|
|
160
|
+
onClick: () => p((c) => !c),
|
|
161
|
+
size: "medium",
|
|
162
|
+
rootClassName: m.root,
|
|
163
|
+
indicatorClassName: m.indicator,
|
|
164
|
+
iconClassName: m.icon,
|
|
165
|
+
checkedClassName: m.checked,
|
|
166
|
+
squareClassName: m.square
|
|
167
|
+
}
|
|
168
|
+
)
|
|
169
|
+
] })
|
|
170
|
+
] });
|
|
30
171
|
}
|
|
31
172
|
export {
|
|
32
|
-
|
|
173
|
+
ki as default
|
|
33
174
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
4
|
-
const
|
|
5
|
-
root:
|
|
6
|
-
small:
|
|
7
|
-
|
|
8
|
-
large:
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { clsx as n } from "../../utils/clsx.js";
|
|
4
|
+
const a = "cfxui__ControlBox__root__6a08c", i = "cfxui__ControlBox__small__8beb2", x = "cfxui__ControlBox__medium__628cd", u = "cfxui__ControlBox__large__1039d", o = {
|
|
5
|
+
root: a,
|
|
6
|
+
small: i,
|
|
7
|
+
medium: x,
|
|
8
|
+
large: u
|
|
9
9
|
};
|
|
10
|
-
function
|
|
10
|
+
function f(t) {
|
|
11
11
|
const {
|
|
12
|
-
size:
|
|
13
|
-
className:
|
|
14
|
-
children:
|
|
15
|
-
ref:
|
|
16
|
-
} =
|
|
17
|
-
return /* @__PURE__ */
|
|
12
|
+
size: _ = "medium",
|
|
13
|
+
className: r,
|
|
14
|
+
children: l,
|
|
15
|
+
ref: m
|
|
16
|
+
} = t, s = n(o.root, r, o[_]);
|
|
17
|
+
return /* @__PURE__ */ c("div", { ref: m, className: s, children: l });
|
|
18
18
|
}
|
|
19
|
-
const p =
|
|
19
|
+
const p = e.memo(f);
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
f as ControlBox,
|
|
22
22
|
p as default
|
|
23
23
|
};
|
|
@@ -6,7 +6,7 @@ import { Scrollable as c } from "../Scrollable/Scrollable.js";
|
|
|
6
6
|
import { Text as r } from "../Text/Text.js";
|
|
7
7
|
import "../../utils/ui/ui.js";
|
|
8
8
|
import { DataTable as o } from "./DataTable.js";
|
|
9
|
-
const
|
|
9
|
+
const i = [
|
|
10
10
|
[
|
|
11
11
|
"Cell 1",
|
|
12
12
|
"Cell 2",
|
|
@@ -26,7 +26,7 @@ const n = [
|
|
|
26
26
|
["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")],
|
|
27
27
|
["Cell 4", "Cell 5", "Cell 6", new Date(2023, 1, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "2")],
|
|
28
28
|
["Cell 7", "Cell 8", "Cell 9", new Date(2023, 2, 1).toLocaleDateString(), /* @__PURE__ */ e(l, { children: "Badge" }, "3")]
|
|
29
|
-
],
|
|
29
|
+
], n = [
|
|
30
30
|
{ text: "Header 1" },
|
|
31
31
|
{ text: "Header 2" },
|
|
32
32
|
{ text: "Header 3" },
|
|
@@ -35,9 +35,9 @@ const n = [
|
|
|
35
35
|
];
|
|
36
36
|
function C() {
|
|
37
37
|
return /* @__PURE__ */ t(a, { gap: "large", vertical: !0, children: [
|
|
38
|
-
/* @__PURE__ */ t(a, { gap: "
|
|
38
|
+
/* @__PURE__ */ t(a, { gap: "medium", vertical: !0, children: [
|
|
39
39
|
/* @__PURE__ */ e(r, { children: "Table" }),
|
|
40
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(o, { headers:
|
|
40
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(o, { headers: n, data: i }) })
|
|
41
41
|
] }),
|
|
42
42
|
/* @__PURE__ */ t(a, { fullWidth: !0, vertical: !0, children: [
|
|
43
43
|
/* @__PURE__ */ e(r, { children: "Table with scroll" }),
|
|
@@ -48,7 +48,7 @@ function C() {
|
|
|
48
48
|
height: "400px",
|
|
49
49
|
overflow: "hidden"
|
|
50
50
|
},
|
|
51
|
-
children: /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(o, { includeRadio: !0, headers:
|
|
51
|
+
children: /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(o, { includeRadio: !0, headers: n, data: i }) })
|
|
52
52
|
}
|
|
53
53
|
)
|
|
54
54
|
] })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { GetColorProps } from '../../utils/color';
|
|
3
3
|
|
|
4
|
-
export type DotSize = 'small' | '
|
|
4
|
+
export type DotSize = 'small' | 'medium' | 'large';
|
|
5
5
|
export interface DotProps extends GetColorProps {
|
|
6
6
|
size?: DotSize;
|
|
7
7
|
className?: string;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { getColor as
|
|
4
|
-
const
|
|
5
|
-
root:
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as m } from "../../utils/clsx.js";
|
|
3
|
+
import { getColor as c } from "../../utils/color.js";
|
|
4
|
+
const l = "cfxui__Dot__root__9bed3", _ = {
|
|
5
|
+
root: l,
|
|
6
6
|
"size-small": "cfxui__Dot__size-small__b7d03",
|
|
7
|
-
"size-
|
|
7
|
+
"size-medium": "cfxui__Dot__size-medium__27fc4",
|
|
8
8
|
"size-large": "cfxui__Dot__size-large__4fe0a"
|
|
9
9
|
};
|
|
10
10
|
function z(o) {
|
|
11
11
|
const {
|
|
12
|
-
color:
|
|
13
|
-
size:
|
|
14
|
-
className:
|
|
15
|
-
ref:
|
|
12
|
+
color: e = "primary",
|
|
13
|
+
size: i = "medium",
|
|
14
|
+
className: r,
|
|
15
|
+
ref: s
|
|
16
16
|
} = o;
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ t(
|
|
18
18
|
"div",
|
|
19
19
|
{
|
|
20
|
-
ref:
|
|
21
|
-
className:
|
|
20
|
+
ref: s,
|
|
21
|
+
className: m(_.root, _[`size-${i}`], r),
|
|
22
22
|
style: {
|
|
23
|
-
backgroundColor:
|
|
23
|
+
backgroundColor: c({
|
|
24
24
|
...o,
|
|
25
|
-
color:
|
|
25
|
+
color: e
|
|
26
26
|
})
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { InputSize } from '../Input';
|
|
3
|
-
import { ResponsiveValueType } from '../../utils/ui';
|
|
4
2
|
|
|
5
3
|
export interface DropdownOption<T extends string> {
|
|
6
4
|
value: T;
|
|
7
5
|
label: React.ReactNode;
|
|
8
6
|
disabled?: boolean;
|
|
9
7
|
}
|
|
10
|
-
export type
|
|
8
|
+
export type ExtraClassNameType = 'content' | 'trigger';
|
|
11
9
|
export type DropdownContentOption = DropdownOption<string>;
|
|
12
10
|
export interface DropdownContentProps {
|
|
13
11
|
options: DropdownContentOption[];
|
|
14
12
|
className?: string;
|
|
15
13
|
itemClassName?: string;
|
|
16
14
|
triggerWidth?: React.CSSProperties['width'];
|
|
17
|
-
size?: ResponsiveValueType<InputSize>;
|
|
18
15
|
fullWidth?: boolean;
|
|
19
16
|
onSelect: (value: string) => void;
|
|
20
17
|
}
|
|
21
|
-
export declare function getDropdownContentSizeClassNames(size?: DropdownContentProps['size'], extraClassName?: ExtraClassNameTyape): string;
|
|
22
18
|
declare function DropdownContent(props: DropdownContentProps): import("react/jsx-runtime").JSX.Element;
|
|
23
19
|
declare const _default: React.MemoExoticComponent<typeof DropdownContent>;
|
|
24
20
|
export default _default;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { D as a
|
|
2
|
+
import { D as a } from "../../DropdownContent-BMfQCuaP.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../../utils/clsx.js";
|
|
5
5
|
import "../../utils/ui/ui.js";
|
|
6
6
|
export {
|
|
7
|
-
a as default
|
|
8
|
-
i as getDropdownContentSizeClassNames
|
|
7
|
+
a as default
|
|
9
8
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as DropdownContent
|
|
1
|
+
export { default as DropdownContent } from './DropdownContent';
|
|
2
2
|
export type { DropdownContentProps, DropdownContentOption, } from './DropdownContent';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DropdownContentProps } from '../DropdownContent';
|
|
3
3
|
|
|
4
|
-
export interface DropdownMenuProps extends React.PropsWithChildren, Omit<DropdownContentProps, 'className'
|
|
4
|
+
export interface DropdownMenuProps extends React.PropsWithChildren, Omit<DropdownContentProps, 'className'> {
|
|
5
5
|
contentClassName?: string;
|
|
6
|
-
contentSize?: DropdownContentProps['size'];
|
|
7
6
|
dir?: 'ltr' | 'rtl';
|
|
8
7
|
}
|
|
9
8
|
declare function DropdownMenu(props: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,33 +1,31 @@
|
|
|
1
1
|
import { jsxs as d, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { R as m, T as
|
|
3
|
-
import
|
|
4
|
-
function
|
|
2
|
+
import { R as m, T as c, D as p } from "../../DropdownContent-BMfQCuaP.js";
|
|
3
|
+
import f from "react";
|
|
4
|
+
function u(t) {
|
|
5
5
|
const {
|
|
6
|
-
options:
|
|
7
|
-
onSelect:
|
|
6
|
+
options: r,
|
|
7
|
+
onSelect: e,
|
|
8
8
|
contentClassName: n,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
dir: i = "ltr",
|
|
9
|
+
fullWidth: s = !1,
|
|
10
|
+
dir: a = "ltr",
|
|
12
11
|
children: l,
|
|
13
|
-
...
|
|
12
|
+
...i
|
|
14
13
|
} = t;
|
|
15
|
-
return /* @__PURE__ */ d(m, { dir:
|
|
16
|
-
/* @__PURE__ */ o(
|
|
14
|
+
return /* @__PURE__ */ d(m, { dir: a, children: [
|
|
15
|
+
/* @__PURE__ */ o(c, { asChild: !0, children: l }),
|
|
17
16
|
/* @__PURE__ */ o(
|
|
18
|
-
|
|
17
|
+
p,
|
|
19
18
|
{
|
|
20
|
-
options:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
onSelect: r,
|
|
19
|
+
options: r,
|
|
20
|
+
fullWidth: s,
|
|
21
|
+
onSelect: e,
|
|
24
22
|
className: n,
|
|
25
|
-
...
|
|
23
|
+
...i
|
|
26
24
|
}
|
|
27
25
|
)
|
|
28
26
|
] });
|
|
29
27
|
}
|
|
30
|
-
const
|
|
28
|
+
const x = f.memo(u);
|
|
31
29
|
export {
|
|
32
|
-
|
|
30
|
+
x as default
|
|
33
31
|
};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DropdownContentOption } from '../DropdownContent';
|
|
3
|
-
import { IconSize } from '../Icon';
|
|
4
|
-
import { InputSize } from '../Input';
|
|
5
|
-
import { ResponsiveValueType } from '../../utils/ui';
|
|
6
3
|
|
|
7
|
-
export declare const ICON_SIZE_MAP: Record<InputSize, IconSize>;
|
|
8
4
|
export interface DropdownSelectProps<T = string> {
|
|
9
5
|
options: DropdownContentOption[];
|
|
10
6
|
value?: T;
|
|
11
7
|
onChange: (value: T) => void;
|
|
12
8
|
placeholder?: React.ReactNode;
|
|
13
|
-
size?: ResponsiveValueType<InputSize>;
|
|
14
9
|
disabled?: boolean;
|
|
15
10
|
ref?: React.Ref<HTMLButtonElement>;
|
|
16
11
|
fullWidth?: boolean;
|
|
@@ -1,84 +1,76 @@
|
|
|
1
|
-
import { jsxs as f, jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { clsx as
|
|
6
|
-
import { Icon as
|
|
7
|
-
import { mergeRefs as
|
|
8
|
-
const
|
|
9
|
-
icon:
|
|
10
|
-
trigger:
|
|
11
|
-
onlight:
|
|
12
|
-
fullWidth:
|
|
13
|
-
placeholder:
|
|
14
|
-
}, K = {
|
|
15
|
-
small: "xxsmall",
|
|
16
|
-
normal: "xsmall",
|
|
17
|
-
large: "normal"
|
|
1
|
+
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { R as D, T as W, D as C } from "../../DropdownContent-BMfQCuaP.js";
|
|
3
|
+
import a, { useRef as R, useState as v, useEffect as b } from "react";
|
|
4
|
+
import N from "../Flex/Flex.js";
|
|
5
|
+
import { clsx as T } from "../../utils/clsx.js";
|
|
6
|
+
import { Icon as j } from "../Icon/Icon.js";
|
|
7
|
+
import { mergeRefs as y } from "../../utils/mergeRefs.js";
|
|
8
|
+
const k = "cfxui__DropdownSelect__icon__d05b8", B = "cfxui__DropdownSelect__trigger__c03df", E = "cfxui__DropdownSelect__onlight__f0191", F = "cfxui__DropdownSelect__fullWidth__dce56", I = "cfxui__DropdownSelect__placeholder__e0d89", e = {
|
|
9
|
+
icon: k,
|
|
10
|
+
trigger: B,
|
|
11
|
+
onlight: E,
|
|
12
|
+
fullWidth: F,
|
|
13
|
+
placeholder: I
|
|
18
14
|
};
|
|
19
|
-
function
|
|
15
|
+
function J(_) {
|
|
20
16
|
const {
|
|
21
|
-
options:
|
|
17
|
+
options: l,
|
|
22
18
|
value: t,
|
|
23
|
-
onChange:
|
|
24
|
-
size: i = "normal",
|
|
19
|
+
onChange: i,
|
|
25
20
|
fullWidth: o = !1,
|
|
26
|
-
onlight:
|
|
27
|
-
disabled:
|
|
28
|
-
placeholder:
|
|
21
|
+
onlight: u = !1,
|
|
22
|
+
disabled: g,
|
|
23
|
+
placeholder: p = "Select...",
|
|
29
24
|
ref: h,
|
|
30
|
-
name:
|
|
31
|
-
} =
|
|
32
|
-
w,
|
|
25
|
+
name: s
|
|
26
|
+
} = _, n = R(null), [m, x] = v(void 0), S = T(
|
|
33
27
|
e.trigger,
|
|
34
28
|
{
|
|
35
29
|
[e.placeholder]: !t,
|
|
36
30
|
[e.fullWidth]: o,
|
|
37
|
-
[e.onlight]:
|
|
31
|
+
[e.onlight]: u
|
|
38
32
|
}
|
|
39
|
-
),
|
|
40
|
-
c
|
|
41
|
-
}, [
|
|
42
|
-
() =>
|
|
43
|
-
[
|
|
33
|
+
), w = a.useCallback((c) => {
|
|
34
|
+
i(c);
|
|
35
|
+
}, [i]), d = a.useMemo(
|
|
36
|
+
() => l.find((c) => c.value === t),
|
|
37
|
+
[l, t]
|
|
44
38
|
);
|
|
45
|
-
return
|
|
46
|
-
o && n.current &&
|
|
47
|
-
}, [o]), /* @__PURE__ */ f(
|
|
48
|
-
|
|
39
|
+
return b(() => {
|
|
40
|
+
o && n.current && x(n.current.offsetWidth);
|
|
41
|
+
}, [o]), /* @__PURE__ */ f(D, { children: [
|
|
42
|
+
s && /* @__PURE__ */ r(
|
|
49
43
|
"input",
|
|
50
44
|
{
|
|
51
45
|
type: "hidden",
|
|
52
|
-
name:
|
|
46
|
+
name: s,
|
|
53
47
|
value: t
|
|
54
48
|
}
|
|
55
49
|
),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
|
|
50
|
+
/* @__PURE__ */ r(
|
|
51
|
+
W,
|
|
58
52
|
{
|
|
59
|
-
ref:
|
|
60
|
-
className:
|
|
61
|
-
disabled:
|
|
62
|
-
children: /* @__PURE__ */ f(
|
|
63
|
-
d !== void 0 ? d.label :
|
|
64
|
-
/* @__PURE__ */
|
|
53
|
+
ref: y(h, n),
|
|
54
|
+
className: S,
|
|
55
|
+
disabled: g,
|
|
56
|
+
children: /* @__PURE__ */ f(N, { gap: "small", centered: !0, spaceBetween: !0, children: [
|
|
57
|
+
d !== void 0 ? d.label : p,
|
|
58
|
+
/* @__PURE__ */ r(j, { className: e.icon, name: "DownChevron" })
|
|
65
59
|
] })
|
|
66
60
|
}
|
|
67
61
|
),
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
|
|
62
|
+
/* @__PURE__ */ r(
|
|
63
|
+
C,
|
|
70
64
|
{
|
|
71
|
-
triggerWidth:
|
|
72
|
-
options:
|
|
73
|
-
size: i,
|
|
65
|
+
triggerWidth: m,
|
|
66
|
+
options: l,
|
|
74
67
|
fullWidth: o,
|
|
75
|
-
onSelect:
|
|
68
|
+
onSelect: w
|
|
76
69
|
}
|
|
77
70
|
)
|
|
78
71
|
] });
|
|
79
72
|
}
|
|
80
73
|
export {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
L as default
|
|
74
|
+
J as DropdownSelect,
|
|
75
|
+
J as default
|
|
84
76
|
};
|