@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,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import d from "react";
|
|
3
3
|
import a from "../Flex/Flex.js";
|
|
4
4
|
import { Text as i } from "../Text/Text.js";
|
|
5
5
|
import "../../utils/ui/ui.js";
|
|
6
|
-
import { Select as
|
|
7
|
-
const
|
|
6
|
+
import { Select as t } from "./Select.js";
|
|
7
|
+
const u = [
|
|
8
8
|
{
|
|
9
9
|
value: "value",
|
|
10
10
|
label: "Label"
|
|
@@ -38,85 +38,58 @@ const t = [
|
|
|
38
38
|
label: "Label7"
|
|
39
39
|
}
|
|
40
40
|
];
|
|
41
|
-
function
|
|
42
|
-
const [c, r] =
|
|
41
|
+
function n() {
|
|
42
|
+
const [c, r] = d.useState("value");
|
|
43
43
|
return /* @__PURE__ */ l(a, { gap: "large", vertical: !0, children: [
|
|
44
|
-
/* @__PURE__ */ l(a, { gap: "
|
|
45
|
-
/* @__PURE__ */ e(i, { children: "
|
|
44
|
+
/* @__PURE__ */ l(a, { gap: "medium", vertical: !0, children: [
|
|
45
|
+
/* @__PURE__ */ e(i, { children: "Default" }),
|
|
46
46
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
47
|
-
|
|
47
|
+
t,
|
|
48
48
|
{
|
|
49
|
-
size: "small",
|
|
50
49
|
value: c,
|
|
51
50
|
onChange: r,
|
|
52
|
-
options:
|
|
51
|
+
options: u
|
|
53
52
|
}
|
|
54
53
|
) })
|
|
55
54
|
] }),
|
|
56
|
-
/* @__PURE__ */ l(a, { gap: "
|
|
57
|
-
/* @__PURE__ */ e(i, { children: "Size normal" }),
|
|
58
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
59
|
-
n,
|
|
60
|
-
{
|
|
61
|
-
value: c,
|
|
62
|
-
onChange: r,
|
|
63
|
-
options: t
|
|
64
|
-
}
|
|
65
|
-
) })
|
|
66
|
-
] }),
|
|
67
|
-
/* @__PURE__ */ l(a, { gap: "normal", vertical: !0, children: [
|
|
68
|
-
/* @__PURE__ */ e(i, { children: "Size large" }),
|
|
69
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
70
|
-
n,
|
|
71
|
-
{
|
|
72
|
-
size: "large",
|
|
73
|
-
value: c,
|
|
74
|
-
onChange: r,
|
|
75
|
-
options: t
|
|
76
|
-
}
|
|
77
|
-
) })
|
|
78
|
-
] }),
|
|
79
|
-
/* @__PURE__ */ l(a, { gap: "normal", vertical: !0, children: [
|
|
55
|
+
/* @__PURE__ */ l(a, { gap: "medium", vertical: !0, children: [
|
|
80
56
|
/* @__PURE__ */ e(i, { children: "Placeholder" }),
|
|
81
57
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
82
|
-
|
|
58
|
+
t,
|
|
83
59
|
{
|
|
84
60
|
placeholder: "Placeholder",
|
|
85
|
-
size: "large",
|
|
86
61
|
onChange: r,
|
|
87
|
-
options:
|
|
62
|
+
options: u
|
|
88
63
|
}
|
|
89
64
|
) })
|
|
90
65
|
] }),
|
|
91
|
-
/* @__PURE__ */ l(a, { gap: "
|
|
66
|
+
/* @__PURE__ */ l(a, { gap: "medium", vertical: !0, children: [
|
|
92
67
|
/* @__PURE__ */ e(i, { children: "Disabled" }),
|
|
93
68
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
94
|
-
|
|
69
|
+
t,
|
|
95
70
|
{
|
|
96
71
|
disabled: !0,
|
|
97
|
-
size: "large",
|
|
98
72
|
value: c,
|
|
99
73
|
onChange: r,
|
|
100
|
-
options:
|
|
74
|
+
options: u
|
|
101
75
|
}
|
|
102
76
|
) })
|
|
103
77
|
] }),
|
|
104
|
-
/* @__PURE__ */ l(a, { gap: "
|
|
78
|
+
/* @__PURE__ */ l(a, { gap: "medium", vertical: !0, children: [
|
|
105
79
|
/* @__PURE__ */ e(i, { children: "Full Width" }),
|
|
106
80
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
107
|
-
|
|
81
|
+
t,
|
|
108
82
|
{
|
|
109
83
|
fullWidth: !0,
|
|
110
|
-
size: "large",
|
|
111
84
|
value: c,
|
|
112
85
|
onChange: r,
|
|
113
|
-
options:
|
|
86
|
+
options: u
|
|
114
87
|
}
|
|
115
88
|
) })
|
|
116
89
|
] })
|
|
117
90
|
] });
|
|
118
91
|
}
|
|
119
|
-
const
|
|
92
|
+
const s = d.memo(n);
|
|
120
93
|
export {
|
|
121
|
-
|
|
94
|
+
s as default
|
|
122
95
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { MPProps
|
|
2
|
+
import { MPProps } from '../../utils/ui';
|
|
3
3
|
|
|
4
4
|
export interface SeparatorProps extends MPProps {
|
|
5
5
|
thin?: boolean;
|
|
6
6
|
vertical?: boolean;
|
|
7
7
|
content?: React.ReactNode;
|
|
8
|
-
offset?: OffsetType;
|
|
9
8
|
}
|
|
10
9
|
export declare function Separator(props: SeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,50 +1,37 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { clsx as
|
|
4
|
-
import { ui as
|
|
5
|
-
const
|
|
6
|
-
root:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"separator-offset-small": "cfxui__Separator__separator-offset-small__872f2",
|
|
13
|
-
"separator-offset-normal": "cfxui__Separator__separator-offset-normal__60e53",
|
|
14
|
-
"separator-offset-medium": "cfxui__Separator__separator-offset-medium__032b1",
|
|
15
|
-
"separator-offset-large": "cfxui__Separator__separator-offset-large__918a2",
|
|
16
|
-
"separator-offset-xlarge": "cfxui__Separator__separator-offset-xlarge__01c53",
|
|
17
|
-
"separator-offset-safezone": "cfxui__Separator__separator-offset-safezone__d28af",
|
|
18
|
-
separator: u,
|
|
19
|
-
content: d,
|
|
20
|
-
thin: S,
|
|
21
|
-
text: h,
|
|
22
|
-
vertical: v
|
|
1
|
+
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import p from "react";
|
|
3
|
+
import { clsx as m } from "../../utils/clsx.js";
|
|
4
|
+
import { ui as c } from "../../utils/ui/ui.js";
|
|
5
|
+
const d = "cfxui__Separator__root__3aea3", f = "cfxui__Separator__separator__5dbbd", x = "cfxui__Separator__content__7ade9", u = "cfxui__Separator__thin__628fd", v = "cfxui__Separator__text__d02da", h = "cfxui__Separator__vertical__8bd90", t = {
|
|
6
|
+
root: d,
|
|
7
|
+
separator: f,
|
|
8
|
+
content: x,
|
|
9
|
+
thin: u,
|
|
10
|
+
text: v,
|
|
11
|
+
vertical: h
|
|
23
12
|
};
|
|
24
|
-
function M(
|
|
13
|
+
function M(_) {
|
|
25
14
|
const {
|
|
26
|
-
content:
|
|
27
|
-
thin:
|
|
15
|
+
content: e,
|
|
16
|
+
thin: n = !1,
|
|
28
17
|
vertical: i = !1,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
a[`separator-offset-${c}`],
|
|
34
|
-
s.getAllMPClassnames(e),
|
|
18
|
+
...r
|
|
19
|
+
} = _, o = m(
|
|
20
|
+
t.root,
|
|
21
|
+
c.getAllMPClassnames(r),
|
|
35
22
|
{
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
23
|
+
[t.text]: !!e,
|
|
24
|
+
[t.thin]: n,
|
|
25
|
+
[t.vertical]: i
|
|
39
26
|
}
|
|
40
|
-
),
|
|
41
|
-
...
|
|
42
|
-
}), [
|
|
43
|
-
return
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
] }) : /* @__PURE__ */
|
|
27
|
+
), s = p.useMemo(() => ({
|
|
28
|
+
...c.getAllMPStyles(r)
|
|
29
|
+
}), [r]);
|
|
30
|
+
return e ? /* @__PURE__ */ l("div", { className: o, style: s, children: [
|
|
31
|
+
/* @__PURE__ */ a("div", { className: t.separator }),
|
|
32
|
+
/* @__PURE__ */ a("div", { className: t.content, children: e }),
|
|
33
|
+
/* @__PURE__ */ a("div", { className: t.separator })
|
|
34
|
+
] }) : /* @__PURE__ */ a("div", { className: o, style: s, children: /* @__PURE__ */ a("div", { className: t.separator }) });
|
|
48
35
|
}
|
|
49
36
|
export {
|
|
50
37
|
M as Separator
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import u, { useState as n, useEffect as f } from "react";
|
|
3
3
|
import { Badge as t } from "../Badge/Badge.js";
|
|
4
4
|
import p from "../Button/Button.js";
|
|
5
5
|
import "../../utils/links.js";
|
|
@@ -16,7 +16,7 @@ const g = [
|
|
|
16
16
|
{ text: "Item" }
|
|
17
17
|
];
|
|
18
18
|
function S() {
|
|
19
|
-
const [l, a] = n(!0), [d, s] = n([]),
|
|
19
|
+
const [l, a] = n(!0), [d, s] = n([]), i = () => {
|
|
20
20
|
a(!0);
|
|
21
21
|
const h = setTimeout(() => {
|
|
22
22
|
s([
|
|
@@ -27,30 +27,30 @@ function S() {
|
|
|
27
27
|
}, 5e3);
|
|
28
28
|
return () => clearTimeout(h);
|
|
29
29
|
};
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
}, []), /* @__PURE__ */
|
|
30
|
+
return f(() => {
|
|
31
|
+
i();
|
|
32
|
+
}, []), /* @__PURE__ */ o(m, { gap: "large", vertical: !0, children: [
|
|
33
33
|
/* @__PURE__ */ e(r, { children: "Skeleton within Table" }),
|
|
34
|
-
/* @__PURE__ */ e(m, { gap: "
|
|
34
|
+
/* @__PURE__ */ e(m, { gap: "medium", vertical: !0, children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
35
35
|
x,
|
|
36
36
|
{
|
|
37
37
|
loading: l,
|
|
38
38
|
includeRadio: !0,
|
|
39
39
|
headers: g,
|
|
40
|
-
data: l ? Array(3).fill(Array(5).fill(/* @__PURE__ */ e(c, { width: "100%", height: "
|
|
40
|
+
data: l ? Array(3).fill(Array(5).fill(/* @__PURE__ */ e(c, { width: "100%", height: "small" }))) : d
|
|
41
41
|
}
|
|
42
42
|
) }) }),
|
|
43
43
|
/* @__PURE__ */ e(r, { children: "Skeleton in Text" }),
|
|
44
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ o(r, { children: [
|
|
45
45
|
"This is a",
|
|
46
|
-
/* @__PURE__ */ e(c, { width: "200px", height: "
|
|
46
|
+
/* @__PURE__ */ e(c, { width: "200px", height: "small" }),
|
|
47
47
|
" ",
|
|
48
48
|
"in Text"
|
|
49
49
|
] }),
|
|
50
|
-
/* @__PURE__ */ e(p, { theme: "secondary", onClick:
|
|
50
|
+
/* @__PURE__ */ e(p, { theme: "secondary", onClick: i, text: "Restart Timer" })
|
|
51
51
|
] });
|
|
52
52
|
}
|
|
53
|
-
const y =
|
|
53
|
+
const y = u.memo(S);
|
|
54
54
|
export {
|
|
55
55
|
y as default
|
|
56
56
|
};
|
|
@@ -4,12 +4,12 @@ import a from "../Flex/Flex.js";
|
|
|
4
4
|
import { Text as t } from "../Text/Text.js";
|
|
5
5
|
import "../../utils/ui/ui.js";
|
|
6
6
|
import { Slider as l } from "./Slider.js";
|
|
7
|
-
const m = "cfxui__SliderShowcase__track__9ceda",
|
|
7
|
+
const m = "cfxui__SliderShowcase__track__9ceda", s = {
|
|
8
8
|
track: m
|
|
9
9
|
};
|
|
10
|
-
function
|
|
10
|
+
function c() {
|
|
11
11
|
return /* @__PURE__ */ r(a, { gap: "large", vertical: !0, children: [
|
|
12
|
-
/* @__PURE__ */ r(a, { gap: "
|
|
12
|
+
/* @__PURE__ */ r(a, { gap: "medium", vertical: !0, children: [
|
|
13
13
|
/* @__PURE__ */ e(t, { children: "Default Slider" }),
|
|
14
14
|
/* @__PURE__ */ e(
|
|
15
15
|
"div",
|
|
@@ -26,14 +26,14 @@ function s() {
|
|
|
26
26
|
step: 1,
|
|
27
27
|
ariaLabel: "Volume",
|
|
28
28
|
className: "",
|
|
29
|
-
trackClassName:
|
|
29
|
+
trackClassName: s.track,
|
|
30
30
|
name: "volume"
|
|
31
31
|
}
|
|
32
32
|
)
|
|
33
33
|
}
|
|
34
34
|
)
|
|
35
35
|
] }),
|
|
36
|
-
/* @__PURE__ */ r(a, { gap: "
|
|
36
|
+
/* @__PURE__ */ r(a, { gap: "medium", vertical: !0, children: [
|
|
37
37
|
/* @__PURE__ */ e(t, { children: "Custom Slider" }),
|
|
38
38
|
/* @__PURE__ */ e(
|
|
39
39
|
"div",
|
|
@@ -59,7 +59,7 @@ function s() {
|
|
|
59
59
|
] })
|
|
60
60
|
] });
|
|
61
61
|
}
|
|
62
|
-
const x = i.memo(
|
|
62
|
+
const x = i.memo(c);
|
|
63
63
|
export {
|
|
64
64
|
x as default
|
|
65
65
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { ResponsiveValueType } from '../../utils/ui';
|
|
2
|
+
import { InputTheme } from '../Input/Input.types';
|
|
4
3
|
|
|
4
|
+
export type StateType = 'default' | 'success' | 'error';
|
|
5
5
|
export interface StyledInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
6
6
|
className?: string;
|
|
7
|
-
size?: ResponsiveValueType<InputSize>;
|
|
8
7
|
theme?: InputTheme;
|
|
9
8
|
ref?: React.Ref<HTMLInputElement>;
|
|
9
|
+
state?: StateType;
|
|
10
10
|
}
|
|
11
11
|
declare function StyledInput(props: StyledInputProps): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export default StyledInput;
|
|
@@ -1,46 +1,30 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { clsx as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
large: r,
|
|
8
|
-
onlight: d,
|
|
9
|
-
"inputSize-initial-large": "cfxui__StyledInput__inputSize-initial-large__43033",
|
|
10
|
-
"inputSize-initial-small": "cfxui__StyledInput__inputSize-initial-small__6e9de",
|
|
11
|
-
"inputSize-small-large": "cfxui__StyledInput__inputSize-small-large__77186",
|
|
12
|
-
"inputSize-small-small": "cfxui__StyledInput__inputSize-small-small__968a4",
|
|
13
|
-
"inputSize-small-medium-large": "cfxui__StyledInput__inputSize-small-medium-large__96f91",
|
|
14
|
-
"inputSize-small-medium-small": "cfxui__StyledInput__inputSize-small-medium-small__0a42b",
|
|
15
|
-
"inputSize-medium-large": "cfxui__StyledInput__inputSize-medium-large__e552f",
|
|
16
|
-
"inputSize-medium-small": "cfxui__StyledInput__inputSize-medium-small__28227",
|
|
17
|
-
"inputSize-medium-large-large": "cfxui__StyledInput__inputSize-medium-large-large__0c8e8",
|
|
18
|
-
"inputSize-medium-large-small": "cfxui__StyledInput__inputSize-medium-large-small__35702",
|
|
19
|
-
"inputSize-large-large": "cfxui__StyledInput__inputSize-large-large__7dfe8",
|
|
20
|
-
"inputSize-large-small": "cfxui__StyledInput__inputSize-large-small__69180",
|
|
21
|
-
"inputSize-xlarge-large": "cfxui__StyledInput__inputSize-xlarge-large__f4d6e",
|
|
22
|
-
"inputSize-xlarge-small": "cfxui__StyledInput__inputSize-xlarge-small__b60c7"
|
|
2
|
+
import { clsx as l } from "../../utils/clsx.js";
|
|
3
|
+
const u = "cfxui__StyledInput__root__37064", a = "cfxui__StyledInput__onlight__dcd8f", t = {
|
|
4
|
+
root: u,
|
|
5
|
+
onlight: a,
|
|
6
|
+
"state-error": "cfxui__StyledInput__state-error__79815"
|
|
23
7
|
};
|
|
24
|
-
function
|
|
8
|
+
function i(o) {
|
|
25
9
|
const {
|
|
26
10
|
className: e,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...
|
|
30
|
-
} =
|
|
11
|
+
theme: r = "default",
|
|
12
|
+
state: s = "default",
|
|
13
|
+
..._
|
|
14
|
+
} = o;
|
|
31
15
|
return /* @__PURE__ */ n(
|
|
32
16
|
"input",
|
|
33
17
|
{
|
|
34
|
-
className:
|
|
18
|
+
className: l(
|
|
35
19
|
e,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
20
|
+
t.root,
|
|
21
|
+
t[r],
|
|
22
|
+
t[`state-${s}`]
|
|
39
23
|
),
|
|
40
|
-
...
|
|
24
|
+
..._
|
|
41
25
|
}
|
|
42
26
|
);
|
|
43
27
|
}
|
|
44
28
|
export {
|
|
45
|
-
|
|
29
|
+
i as default
|
|
46
30
|
};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import * as SwitchUi from '@radix-ui/react-switch';
|
|
3
|
+
export type ThemeType = 'primary' | 'secondary';
|
|
4
|
+
export type ViewType = 'default' | 'alternative';
|
|
5
|
+
export declare function getSwitchClassNames(classNameRoot?: string, theme?: ThemeType, view?: ViewType): string;
|
|
6
|
+
export declare function getSwitchThumbClassNames(classNameThumb?: string, theme?: ThemeType, view?: ViewType): string;
|
|
3
7
|
export interface SwitchProps extends SwitchUi.SwitchProps {
|
|
4
8
|
classNameRoot?: string;
|
|
5
9
|
classNameThumb?: string;
|
|
10
|
+
theme?: ThemeType;
|
|
11
|
+
view?: ViewType;
|
|
6
12
|
}
|
|
7
13
|
declare const _default: React.NamedExoticComponent<SwitchProps>;
|
|
8
14
|
export default _default;
|
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsxs as x, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import * as u from "react";
|
|
3
3
|
import M from "react";
|
|
4
|
-
import { b as
|
|
4
|
+
import { b as R, u as H, c as j, P as k, a as A, d as q } from "../../index-CfQtbUfi.js";
|
|
5
5
|
import { u as z } from "../../index-BZPx6jYI.js";
|
|
6
|
-
import { clsx as
|
|
7
|
-
var
|
|
8
|
-
(e,
|
|
6
|
+
import { clsx as N } from "../../utils/clsx.js";
|
|
7
|
+
var S = "Switch", [L, at] = j(S), [O, $] = L(S), P = u.forwardRef(
|
|
8
|
+
(e, c) => {
|
|
9
9
|
const {
|
|
10
10
|
__scopeSwitch: t,
|
|
11
11
|
name: o,
|
|
12
|
-
checked:
|
|
13
|
-
defaultChecked:
|
|
14
|
-
required:
|
|
15
|
-
disabled:
|
|
16
|
-
value:
|
|
17
|
-
onCheckedChange:
|
|
18
|
-
form:
|
|
19
|
-
...
|
|
20
|
-
} = e, [p,
|
|
21
|
-
prop:
|
|
22
|
-
defaultProp:
|
|
23
|
-
onChange:
|
|
24
|
-
caller:
|
|
12
|
+
checked: s,
|
|
13
|
+
defaultChecked: h,
|
|
14
|
+
required: a,
|
|
15
|
+
disabled: r,
|
|
16
|
+
value: i = "on",
|
|
17
|
+
onCheckedChange: f,
|
|
18
|
+
form: d,
|
|
19
|
+
...b
|
|
20
|
+
} = e, [p, m] = u.useState(null), v = R(c, (w) => m(w)), y = u.useRef(!1), C = p ? d || !!p.closest("form") : !0, [_, U] = H({
|
|
21
|
+
prop: s,
|
|
22
|
+
defaultProp: h ?? !1,
|
|
23
|
+
onChange: f,
|
|
24
|
+
caller: S
|
|
25
25
|
});
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
26
|
+
return /* @__PURE__ */ x(O, { scope: t, checked: _, disabled: r, children: [
|
|
27
|
+
/* @__PURE__ */ l(
|
|
28
|
+
k.button,
|
|
29
29
|
{
|
|
30
30
|
type: "button",
|
|
31
31
|
role: "switch",
|
|
32
|
-
"aria-checked":
|
|
33
|
-
"aria-required":
|
|
34
|
-
"data-state": B(
|
|
35
|
-
"data-disabled":
|
|
36
|
-
disabled:
|
|
37
|
-
value:
|
|
38
|
-
...
|
|
39
|
-
ref:
|
|
40
|
-
onClick: A(e.onClick, (
|
|
41
|
-
U((I) => !I),
|
|
32
|
+
"aria-checked": _,
|
|
33
|
+
"aria-required": a,
|
|
34
|
+
"data-state": B(_),
|
|
35
|
+
"data-disabled": r ? "" : void 0,
|
|
36
|
+
disabled: r,
|
|
37
|
+
value: i,
|
|
38
|
+
...b,
|
|
39
|
+
ref: v,
|
|
40
|
+
onClick: A(e.onClick, (w) => {
|
|
41
|
+
U((I) => !I), C && (y.current = w.isPropagationStopped(), y.current || w.stopPropagation());
|
|
42
42
|
})
|
|
43
43
|
}
|
|
44
44
|
),
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
C && /* @__PURE__ */ l(
|
|
46
|
+
E,
|
|
47
47
|
{
|
|
48
48
|
control: p,
|
|
49
|
-
bubbles: !
|
|
49
|
+
bubbles: !y.current,
|
|
50
50
|
name: o,
|
|
51
|
-
value:
|
|
52
|
-
checked:
|
|
53
|
-
required:
|
|
54
|
-
disabled:
|
|
55
|
-
form:
|
|
51
|
+
value: i,
|
|
52
|
+
checked: _,
|
|
53
|
+
required: a,
|
|
54
|
+
disabled: r,
|
|
55
|
+
form: d,
|
|
56
56
|
style: { transform: "translateX(-100%)" }
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
] });
|
|
60
60
|
}
|
|
61
61
|
);
|
|
62
|
-
|
|
63
|
-
var
|
|
64
|
-
(e,
|
|
65
|
-
const { __scopeSwitch: t, ...o } = e,
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
|
|
62
|
+
P.displayName = S;
|
|
63
|
+
var T = "SwitchThumb", g = u.forwardRef(
|
|
64
|
+
(e, c) => {
|
|
65
|
+
const { __scopeSwitch: t, ...o } = e, s = $(T, t);
|
|
66
|
+
return /* @__PURE__ */ l(
|
|
67
|
+
k.span,
|
|
68
68
|
{
|
|
69
|
-
"data-state": B(
|
|
70
|
-
"data-disabled":
|
|
69
|
+
"data-state": B(s.checked),
|
|
70
|
+
"data-disabled": s.disabled ? "" : void 0,
|
|
71
71
|
...o,
|
|
72
|
-
ref:
|
|
72
|
+
ref: c
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
|
-
|
|
78
|
-
var D = "SwitchBubbleInput",
|
|
77
|
+
g.displayName = T;
|
|
78
|
+
var D = "SwitchBubbleInput", E = u.forwardRef(
|
|
79
79
|
({
|
|
80
80
|
__scopeSwitch: e,
|
|
81
|
-
control:
|
|
81
|
+
control: c,
|
|
82
82
|
checked: t,
|
|
83
83
|
bubbles: o = !0,
|
|
84
|
-
...
|
|
85
|
-
},
|
|
86
|
-
const
|
|
87
|
-
return
|
|
88
|
-
const
|
|
89
|
-
if (!
|
|
90
|
-
const
|
|
91
|
-
|
|
84
|
+
...s
|
|
85
|
+
}, h) => {
|
|
86
|
+
const a = u.useRef(null), r = R(a, h), i = z(t), f = q(c);
|
|
87
|
+
return u.useEffect(() => {
|
|
88
|
+
const d = a.current;
|
|
89
|
+
if (!d) return;
|
|
90
|
+
const b = window.HTMLInputElement.prototype, m = Object.getOwnPropertyDescriptor(
|
|
91
|
+
b,
|
|
92
92
|
"checked"
|
|
93
93
|
).set;
|
|
94
|
-
if (
|
|
95
|
-
const
|
|
96
|
-
|
|
94
|
+
if (i !== t && m) {
|
|
95
|
+
const v = new Event("click", { bubbles: o });
|
|
96
|
+
m.call(d, t), d.dispatchEvent(v);
|
|
97
97
|
}
|
|
98
|
-
}, [
|
|
98
|
+
}, [i, t, o]), /* @__PURE__ */ l(
|
|
99
99
|
"input",
|
|
100
100
|
{
|
|
101
101
|
type: "checkbox",
|
|
102
102
|
"aria-hidden": !0,
|
|
103
103
|
defaultChecked: t,
|
|
104
|
-
...
|
|
104
|
+
...s,
|
|
105
105
|
tabIndex: -1,
|
|
106
|
-
ref:
|
|
106
|
+
ref: r,
|
|
107
107
|
style: {
|
|
108
|
-
...
|
|
109
|
-
...
|
|
108
|
+
...s.style,
|
|
109
|
+
...f,
|
|
110
110
|
position: "absolute",
|
|
111
111
|
pointerEvents: "none",
|
|
112
112
|
opacity: 0,
|
|
@@ -116,37 +116,51 @@ var D = "SwitchBubbleInput", g = r.forwardRef(
|
|
|
116
116
|
);
|
|
117
117
|
}
|
|
118
118
|
);
|
|
119
|
-
|
|
119
|
+
E.displayName = D;
|
|
120
120
|
function B(e) {
|
|
121
121
|
return e ? "checked" : "unchecked";
|
|
122
122
|
}
|
|
123
|
-
var F =
|
|
124
|
-
const X = "cfxui__Switch__switchUnset__c8b03", G = "cfxui__Switch__switchRoot__f2911", J = "cfxui__Switch__switchThumb__9cbf5",
|
|
123
|
+
var F = P, W = g;
|
|
124
|
+
const X = "cfxui__Switch__switchUnset__c8b03", G = "cfxui__Switch__switchRoot__f2911", J = "cfxui__Switch__primary__2653f", K = "cfxui__Switch__secondary__7f1cf", Q = "cfxui__Switch__alternative__33f60", V = "cfxui__Switch__switchThumb__9cbf5", n = {
|
|
125
125
|
switchUnset: X,
|
|
126
126
|
switchRoot: G,
|
|
127
|
-
|
|
127
|
+
primary: J,
|
|
128
|
+
secondary: K,
|
|
129
|
+
default: "cfxui__Switch__default__4e727",
|
|
130
|
+
alternative: Q,
|
|
131
|
+
switchThumb: V
|
|
128
132
|
};
|
|
129
|
-
function
|
|
133
|
+
function Y(e, c = "primary", t = "default") {
|
|
134
|
+
return N(n.switchRoot, n.switchUnset, e, n[c], n[t]);
|
|
135
|
+
}
|
|
136
|
+
function Z(e, c = "primary", t = "default") {
|
|
137
|
+
return N(n.switchThumb, e, n[c], n[t]);
|
|
138
|
+
}
|
|
139
|
+
function tt(e) {
|
|
130
140
|
const {
|
|
131
|
-
classNameRoot:
|
|
141
|
+
classNameRoot: c,
|
|
132
142
|
classNameThumb: t,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
143
|
+
theme: o = "primary",
|
|
144
|
+
view: s = "default",
|
|
145
|
+
name: h,
|
|
146
|
+
checked: a,
|
|
147
|
+
...r
|
|
148
|
+
} = e, i = Y(c, o, s), f = Z(t, o, s);
|
|
149
|
+
return /* @__PURE__ */ x(F, { ...r, className: i, children: [
|
|
150
|
+
h && /* @__PURE__ */ l(
|
|
139
151
|
"input",
|
|
140
152
|
{
|
|
141
153
|
type: "hidden",
|
|
142
|
-
name:
|
|
143
|
-
value:
|
|
154
|
+
name: h,
|
|
155
|
+
value: a ? "on" : ""
|
|
144
156
|
}
|
|
145
157
|
),
|
|
146
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ l(W, { className: f })
|
|
147
159
|
] });
|
|
148
160
|
}
|
|
149
|
-
const
|
|
161
|
+
const it = M.memo(tt);
|
|
150
162
|
export {
|
|
151
|
-
|
|
163
|
+
it as default,
|
|
164
|
+
Y as getSwitchClassNames,
|
|
165
|
+
Z as getSwitchThumbClassNames
|
|
152
166
|
};
|