@cfx-dev/ui-components 4.5.22 → 5.0.2
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 +67 -22
- package/dist/utils/ui/ui.types.js +10 -7
- 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
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import r from "./components/Icons/cfx-icons/Close.js";
|
|
2
|
+
import o from "./components/Icons/cfx-icons/Controller.js";
|
|
3
|
+
import m from "./components/Icons/cfx-icons/Copy.js";
|
|
4
|
+
import t from "./components/Icons/cfx-icons/DownArrow.js";
|
|
5
|
+
import i from "./components/Icons/cfx-icons/DownChevron.js";
|
|
6
|
+
import p from "./components/Icons/cfx-icons/Download.js";
|
|
7
|
+
import f from "./components/Icons/cfx-icons/Expand.js";
|
|
8
|
+
import e from "./components/Icons/cfx-icons/ExternalLink.js";
|
|
9
|
+
import n from "./components/Icons/cfx-icons/Filter.js";
|
|
10
|
+
import l from "./components/Icons/cfx-icons/Folder.js";
|
|
11
|
+
import a from "./components/Icons/cfx-icons/Heart.js";
|
|
12
|
+
import s from "./components/Icons/cfx-icons/HeartFilled.js";
|
|
13
|
+
import c from "./components/Icons/cfx-icons/Help.js";
|
|
14
|
+
import u from "./components/Icons/cfx-icons/LeftArrow.js";
|
|
15
|
+
import d from "./components/Icons/cfx-icons/LeftChevron.js";
|
|
16
|
+
import S from "./components/Icons/cfx-icons/Map.js";
|
|
17
|
+
import h from "./components/Icons/cfx-icons/Menu.js";
|
|
18
|
+
import v from "./components/Icons/cfx-icons/Minus.js";
|
|
19
|
+
import C from "./components/Icons/cfx-icons/More.js";
|
|
20
|
+
import U from "./components/Icons/cfx-icons/MoreInfo.js";
|
|
21
|
+
import w from "./components/Icons/cfx-icons/Pencil.js";
|
|
22
|
+
import g from "./components/Icons/cfx-icons/Play.js";
|
|
23
|
+
import y from "./components/Icons/cfx-icons/Plus.js";
|
|
24
|
+
import M from "./components/Icons/cfx-icons/Radio.js";
|
|
25
|
+
import R from "./components/Icons/cfx-icons/Refresh.js";
|
|
26
|
+
import b from "./components/Icons/cfx-icons/RightArrow.js";
|
|
27
|
+
import T from "./components/Icons/cfx-icons/RightChevron.js";
|
|
28
|
+
import A from "./components/Icons/cfx-icons/Search.js";
|
|
29
|
+
import F from "./components/Icons/cfx-icons/ServerList.js";
|
|
30
|
+
import L from "./components/Icons/cfx-icons/ServerReconnect.js";
|
|
31
|
+
import P from "./components/Icons/cfx-icons/Sort.js";
|
|
32
|
+
import _ from "./components/Icons/cfx-icons/Square.js";
|
|
33
|
+
import k from "./components/Icons/cfx-icons/SquareFilled.js";
|
|
34
|
+
import q from "./components/Icons/cfx-icons/SquareTick.js";
|
|
35
|
+
import x from "./components/Icons/cfx-icons/Stop.js";
|
|
36
|
+
import D from "./components/Icons/cfx-icons/Success.js";
|
|
37
|
+
import H from "./components/Icons/cfx-icons/Tick.js";
|
|
38
|
+
import I from "./components/Icons/cfx-icons/Transfer.js";
|
|
39
|
+
import O from "./components/Icons/cfx-icons/Trash.js";
|
|
40
|
+
import V from "./components/Icons/cfx-icons/Undo.js";
|
|
41
|
+
import j from "./components/Icons/cfx-icons/UpArrow.js";
|
|
42
|
+
import E from "./components/Icons/cfx-icons/UpChevron.js";
|
|
43
|
+
import z from "./components/Icons/cfx-icons/Upload.js";
|
|
44
|
+
import B from "./components/Icons/cfx-icons/Users.js";
|
|
45
|
+
import W from "./components/Icons/cfx-icons/Visibility.js";
|
|
46
|
+
import G from "./components/Icons/cfx-icons/VisibilityOff.js";
|
|
47
|
+
import J from "./components/Icons/cfx-icons/Warning.js";
|
|
48
|
+
import K from "./components/Icons/cfx-icons/Cart.js";
|
|
49
|
+
import N from "./components/Icons/cfx-icons/User.js";
|
|
50
|
+
import Q from "./components/Icons/cfx-icons/Verified.js";
|
|
51
|
+
import X from "./components/Icons/cfx-icons/UpvotesBurst.js";
|
|
52
|
+
import Y from "./components/Icons/cfx-icons/UpvotesRecurring.js";
|
|
53
|
+
const Xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
54
|
+
__proto__: null,
|
|
55
|
+
Cart: K,
|
|
56
|
+
Close: r,
|
|
57
|
+
Controller: o,
|
|
58
|
+
Copy: m,
|
|
59
|
+
DownArrow: t,
|
|
60
|
+
DownChevron: i,
|
|
61
|
+
Download: p,
|
|
62
|
+
Expand: f,
|
|
63
|
+
ExternalLink: e,
|
|
64
|
+
Filter: n,
|
|
65
|
+
Folder: l,
|
|
66
|
+
Heart: a,
|
|
67
|
+
HeartFilled: s,
|
|
68
|
+
Help: c,
|
|
69
|
+
LeftArrow: u,
|
|
70
|
+
LeftChevron: d,
|
|
71
|
+
Map: S,
|
|
72
|
+
Menu: h,
|
|
73
|
+
Minus: v,
|
|
74
|
+
More: C,
|
|
75
|
+
MoreInfo: U,
|
|
76
|
+
Pencil: w,
|
|
77
|
+
Play: g,
|
|
78
|
+
Plus: y,
|
|
79
|
+
Radio: M,
|
|
80
|
+
Refresh: R,
|
|
81
|
+
RightArrow: b,
|
|
82
|
+
RightChevron: T,
|
|
83
|
+
Search: A,
|
|
84
|
+
ServerList: F,
|
|
85
|
+
ServerReconnect: L,
|
|
86
|
+
Sort: P,
|
|
87
|
+
Square: _,
|
|
88
|
+
SquareFilled: k,
|
|
89
|
+
SquareTick: q,
|
|
90
|
+
Stop: x,
|
|
91
|
+
Success: D,
|
|
92
|
+
Tick: H,
|
|
93
|
+
Transfer: I,
|
|
94
|
+
Trash: O,
|
|
95
|
+
Undo: V,
|
|
96
|
+
UpArrow: j,
|
|
97
|
+
UpChevron: E,
|
|
98
|
+
Upload: z,
|
|
99
|
+
UpvotesBurst: X,
|
|
100
|
+
UpvotesRecurring: Y,
|
|
101
|
+
User: N,
|
|
102
|
+
Users: B,
|
|
103
|
+
Verified: Q,
|
|
104
|
+
Visibility: W,
|
|
105
|
+
VisibilityOff: G,
|
|
106
|
+
Warning: J
|
|
107
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
108
|
+
export {
|
|
109
|
+
Xr as I
|
|
110
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import r from "./components/Icons/cfx-iconsXLarge/Close.js";
|
|
2
|
+
import o from "./components/Icons/cfx-iconsXLarge/Controller.js";
|
|
3
|
+
import m from "./components/Icons/cfx-iconsXLarge/Copy.js";
|
|
4
|
+
import t from "./components/Icons/cfx-iconsXLarge/DownArrow.js";
|
|
5
|
+
import i from "./components/Icons/cfx-iconsXLarge/DownChevron.js";
|
|
6
|
+
import p from "./components/Icons/cfx-iconsXLarge/Download.js";
|
|
7
|
+
import f from "./components/Icons/cfx-iconsXLarge/Expand.js";
|
|
8
|
+
import e from "./components/Icons/cfx-iconsXLarge/ExternalLink.js";
|
|
9
|
+
import n from "./components/Icons/cfx-iconsXLarge/Filter.js";
|
|
10
|
+
import l from "./components/Icons/cfx-iconsXLarge/Folder.js";
|
|
11
|
+
import a from "./components/Icons/cfx-iconsXLarge/Heart.js";
|
|
12
|
+
import s from "./components/Icons/cfx-iconsXLarge/HeartFilled.js";
|
|
13
|
+
import c from "./components/Icons/cfx-iconsXLarge/Help.js";
|
|
14
|
+
import u from "./components/Icons/cfx-iconsXLarge/LeftArrow.js";
|
|
15
|
+
import d from "./components/Icons/cfx-iconsXLarge/LeftChevron.js";
|
|
16
|
+
import S from "./components/Icons/cfx-iconsXLarge/Map.js";
|
|
17
|
+
import h from "./components/Icons/cfx-iconsXLarge/Menu.js";
|
|
18
|
+
import v from "./components/Icons/cfx-iconsXLarge/Minus.js";
|
|
19
|
+
import C from "./components/Icons/cfx-iconsXLarge/More.js";
|
|
20
|
+
import U from "./components/Icons/cfx-iconsXLarge/MoreInfo.js";
|
|
21
|
+
import g from "./components/Icons/cfx-iconsXLarge/Pencil.js";
|
|
22
|
+
import w from "./components/Icons/cfx-iconsXLarge/Play.js";
|
|
23
|
+
import y from "./components/Icons/cfx-iconsXLarge/Plus.js";
|
|
24
|
+
import M from "./components/Icons/cfx-iconsXLarge/Radio.js";
|
|
25
|
+
import R from "./components/Icons/cfx-iconsXLarge/Refresh.js";
|
|
26
|
+
import b from "./components/Icons/cfx-iconsXLarge/RightArrow.js";
|
|
27
|
+
import L from "./components/Icons/cfx-iconsXLarge/RightChevron.js";
|
|
28
|
+
import T from "./components/Icons/cfx-iconsXLarge/Search.js";
|
|
29
|
+
import A from "./components/Icons/cfx-iconsXLarge/ServerList.js";
|
|
30
|
+
import F from "./components/Icons/cfx-iconsXLarge/ServerReconnect.js";
|
|
31
|
+
import P from "./components/Icons/cfx-iconsXLarge/Sort.js";
|
|
32
|
+
import _ from "./components/Icons/cfx-iconsXLarge/Square.js";
|
|
33
|
+
import k from "./components/Icons/cfx-iconsXLarge/SquareFilled.js";
|
|
34
|
+
import q from "./components/Icons/cfx-iconsXLarge/SquareTick.js";
|
|
35
|
+
import x from "./components/Icons/cfx-iconsXLarge/Stop.js";
|
|
36
|
+
import D from "./components/Icons/cfx-iconsXLarge/Success.js";
|
|
37
|
+
import H from "./components/Icons/cfx-iconsXLarge/Tick.js";
|
|
38
|
+
import I from "./components/Icons/cfx-iconsXLarge/Transfer.js";
|
|
39
|
+
import O from "./components/Icons/cfx-iconsXLarge/Trash.js";
|
|
40
|
+
import V from "./components/Icons/cfx-iconsXLarge/Undo.js";
|
|
41
|
+
import j from "./components/Icons/cfx-iconsXLarge/UpArrow.js";
|
|
42
|
+
import E from "./components/Icons/cfx-iconsXLarge/UpChevron.js";
|
|
43
|
+
import z from "./components/Icons/cfx-iconsXLarge/Upload.js";
|
|
44
|
+
import B from "./components/Icons/cfx-iconsXLarge/Users.js";
|
|
45
|
+
import W from "./components/Icons/cfx-iconsXLarge/Visibility.js";
|
|
46
|
+
import X from "./components/Icons/cfx-iconsXLarge/VisibilityOff.js";
|
|
47
|
+
import G from "./components/Icons/cfx-iconsXLarge/Warning.js";
|
|
48
|
+
import J from "./components/Icons/cfx-iconsXLarge/Cart.js";
|
|
49
|
+
import K from "./components/Icons/cfx-iconsXLarge/User.js";
|
|
50
|
+
import N from "./components/Icons/cfx-iconsXLarge/Verified.js";
|
|
51
|
+
import Q from "./components/Icons/cfx-iconsXLarge/UpvotesBurst.js";
|
|
52
|
+
import Y from "./components/Icons/cfx-iconsXLarge/UpvotesRecurring.js";
|
|
53
|
+
const Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
54
|
+
__proto__: null,
|
|
55
|
+
Cart: J,
|
|
56
|
+
Close: r,
|
|
57
|
+
Controller: o,
|
|
58
|
+
Copy: m,
|
|
59
|
+
DownArrow: t,
|
|
60
|
+
DownChevron: i,
|
|
61
|
+
Download: p,
|
|
62
|
+
Expand: f,
|
|
63
|
+
ExternalLink: e,
|
|
64
|
+
Filter: n,
|
|
65
|
+
Folder: l,
|
|
66
|
+
Heart: a,
|
|
67
|
+
HeartFilled: s,
|
|
68
|
+
Help: c,
|
|
69
|
+
LeftArrow: u,
|
|
70
|
+
LeftChevron: d,
|
|
71
|
+
Map: S,
|
|
72
|
+
Menu: h,
|
|
73
|
+
Minus: v,
|
|
74
|
+
More: C,
|
|
75
|
+
MoreInfo: U,
|
|
76
|
+
Pencil: g,
|
|
77
|
+
Play: w,
|
|
78
|
+
Plus: y,
|
|
79
|
+
Radio: M,
|
|
80
|
+
Refresh: R,
|
|
81
|
+
RightArrow: b,
|
|
82
|
+
RightChevron: L,
|
|
83
|
+
Search: T,
|
|
84
|
+
ServerList: A,
|
|
85
|
+
ServerReconnect: F,
|
|
86
|
+
Sort: P,
|
|
87
|
+
Square: _,
|
|
88
|
+
SquareFilled: k,
|
|
89
|
+
SquareTick: q,
|
|
90
|
+
Stop: x,
|
|
91
|
+
Success: D,
|
|
92
|
+
Tick: H,
|
|
93
|
+
Transfer: I,
|
|
94
|
+
Trash: O,
|
|
95
|
+
Undo: V,
|
|
96
|
+
UpArrow: j,
|
|
97
|
+
UpChevron: E,
|
|
98
|
+
Upload: z,
|
|
99
|
+
UpvotesBurst: Q,
|
|
100
|
+
UpvotesRecurring: Y,
|
|
101
|
+
User: K,
|
|
102
|
+
Users: B,
|
|
103
|
+
Verified: N,
|
|
104
|
+
Visibility: W,
|
|
105
|
+
VisibilityOff: X,
|
|
106
|
+
Warning: G
|
|
107
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
108
|
+
export {
|
|
109
|
+
Qr as I
|
|
110
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { IconName } from '../Icon';
|
|
3
2
|
import { BoxDisplayType } from '../RSC/Box/Box.types';
|
|
4
3
|
|
|
5
4
|
export interface AccordionProps {
|
|
@@ -10,8 +9,6 @@ export declare const AccordionItem: React.FC<React.PropsWithChildren>;
|
|
|
10
9
|
export declare const AccordionHeader: React.FC<React.PropsWithChildren>;
|
|
11
10
|
export interface AccordionTriggerProps {
|
|
12
11
|
text: string;
|
|
13
|
-
iconLeft?: IconName;
|
|
14
|
-
iconLeftClassName?: string;
|
|
15
12
|
iconRightClassName?: string;
|
|
16
13
|
className?: string;
|
|
17
14
|
textClassName?: string;
|
|
@@ -1,174 +1,170 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as d, jsxs as T } from "react/jsx-runtime";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { Text as
|
|
5
|
-
import { ui as
|
|
3
|
+
import { Icon as N } from "../Icon/Icon.js";
|
|
4
|
+
import { Text as v } from "../Text/Text.js";
|
|
5
|
+
import { ui as k } from "../../utils/ui/ui.js";
|
|
6
6
|
import { clsx as g } from "../../utils/clsx.js";
|
|
7
|
-
import { debounce as
|
|
8
|
-
import { minmax as
|
|
9
|
-
const
|
|
10
|
-
iconFlip:
|
|
11
|
-
triggerContainer:
|
|
12
|
-
iconUp:
|
|
13
|
-
iconDown:
|
|
14
|
-
text:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, I = e.createContext(void 0), Z = function(r) {
|
|
7
|
+
import { debounce as D } from "../../utils/execution.js";
|
|
8
|
+
import { minmax as E } from "../../utils/math.js";
|
|
9
|
+
const U = "cfxui__Accordion__iconFlip__367de", F = "cfxui__Accordion__triggerContainer__b92c1", $ = "cfxui__Accordion__iconUp__28d27", S = "cfxui__Accordion__iconDown__b9e95", W = "cfxui__Accordion__text__03dc4", z = "cfxui__Accordion__iconRight__bbf0c", H = "cfxui__Accordion__content__5ecaf", M = "cfxui__Accordion__contentText__1384b", O = "cfxui__Accordion__open__ed604", j = "cfxui__Accordion__closed__be897", t = {
|
|
10
|
+
iconFlip: U,
|
|
11
|
+
triggerContainer: F,
|
|
12
|
+
iconUp: $,
|
|
13
|
+
iconDown: S,
|
|
14
|
+
text: W,
|
|
15
|
+
iconRight: z,
|
|
16
|
+
content: H,
|
|
17
|
+
contentText: M,
|
|
18
|
+
open: O,
|
|
19
|
+
closed: j
|
|
20
|
+
}, w = e.createContext(void 0), Q = function(i) {
|
|
22
21
|
const {
|
|
23
|
-
children:
|
|
24
|
-
className:
|
|
25
|
-
} =
|
|
26
|
-
|
|
27
|
-
...
|
|
28
|
-
[
|
|
22
|
+
children: r,
|
|
23
|
+
className: x
|
|
24
|
+
} = i, [h, p] = e.useState({}), [m, s] = e.useState(null), n = e.useRef(null), u = e.useCallback((a) => {
|
|
25
|
+
p((c) => ({
|
|
26
|
+
...c,
|
|
27
|
+
[a]: !c[a]
|
|
29
28
|
}));
|
|
30
|
-
}, []),
|
|
31
|
-
|
|
32
|
-
...
|
|
33
|
-
[
|
|
29
|
+
}, []), l = e.useCallback((a) => {
|
|
30
|
+
p((c) => ({
|
|
31
|
+
...c,
|
|
32
|
+
[a]: !1
|
|
34
33
|
}));
|
|
35
34
|
}, []), f = e.useMemo(() => ({
|
|
36
|
-
openItems:
|
|
37
|
-
toggleItem:
|
|
38
|
-
closeItem:
|
|
39
|
-
rootWidth:
|
|
35
|
+
openItems: h,
|
|
36
|
+
toggleItem: u,
|
|
37
|
+
closeItem: l,
|
|
38
|
+
rootWidth: m
|
|
40
39
|
}), [
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
]),
|
|
46
|
-
|
|
47
|
-
}, []),
|
|
48
|
-
return e.useEffect(() => (window.addEventListener("resize",
|
|
49
|
-
window.removeEventListener("resize",
|
|
50
|
-
}), [
|
|
51
|
-
},
|
|
52
|
-
children:
|
|
40
|
+
h,
|
|
41
|
+
u,
|
|
42
|
+
l,
|
|
43
|
+
m
|
|
44
|
+
]), o = e.useCallback(() => {
|
|
45
|
+
n.current && s(n.current.getBoundingClientRect().width);
|
|
46
|
+
}, []), _ = e.useMemo(() => D(o, 250), [o]);
|
|
47
|
+
return e.useEffect(() => (window.addEventListener("resize", _), () => {
|
|
48
|
+
window.removeEventListener("resize", _);
|
|
49
|
+
}), [_]), /* @__PURE__ */ d(w.Provider, { value: f, children: /* @__PURE__ */ d("div", { ref: n, className: x, role: "presentation", children: r }) });
|
|
50
|
+
}, I = e.createContext(""), X = function({
|
|
51
|
+
children: i
|
|
53
52
|
}) {
|
|
54
|
-
const
|
|
55
|
-
return /* @__PURE__ */
|
|
56
|
-
},
|
|
57
|
-
children:
|
|
53
|
+
const r = e.useId();
|
|
54
|
+
return /* @__PURE__ */ d(I.Provider, { value: r, children: /* @__PURE__ */ d("div", { className: t.item, id: r, role: "region", "aria-labelledby": `${r}-header`, children: i }) });
|
|
55
|
+
}, Y = function({
|
|
56
|
+
children: i
|
|
58
57
|
}) {
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
-
},
|
|
58
|
+
return /* @__PURE__ */ d("div", { className: t.header, children: i });
|
|
59
|
+
}, Z = function(i) {
|
|
61
60
|
const {
|
|
62
|
-
text:
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
} = r, d = e.useContext(I), n = e.useContext(v);
|
|
70
|
-
if (!d)
|
|
61
|
+
text: r,
|
|
62
|
+
iconRightClassName: x,
|
|
63
|
+
className: h,
|
|
64
|
+
textClassName: p,
|
|
65
|
+
preopen: m = !1
|
|
66
|
+
} = i, s = e.useContext(w), n = e.useContext(I);
|
|
67
|
+
if (!s)
|
|
71
68
|
throw new Error("AccordionTrigger must be used within an Accordion");
|
|
72
69
|
const {
|
|
73
|
-
toggleItem:
|
|
74
|
-
closeItem:
|
|
75
|
-
openItems:
|
|
76
|
-
} =
|
|
77
|
-
if (
|
|
78
|
-
|
|
70
|
+
toggleItem: u,
|
|
71
|
+
closeItem: l,
|
|
72
|
+
openItems: f
|
|
73
|
+
} = s, o = typeof f[n] > "u" ? m : f[n], [_, a] = e.useState(!1), [c, R] = e.useState(o ? "UpChevron" : "DownChevron"), b = e.useCallback(() => {
|
|
74
|
+
if (o) {
|
|
75
|
+
l(n);
|
|
79
76
|
return;
|
|
80
77
|
}
|
|
81
|
-
|
|
82
|
-
}, [
|
|
83
|
-
(A.key === "Enter" || A.key === " ") &&
|
|
84
|
-
}, [
|
|
78
|
+
u(n);
|
|
79
|
+
}, [o, u, n, l]), y = e.useCallback((A) => {
|
|
80
|
+
(A.key === "Enter" || A.key === " ") && b();
|
|
81
|
+
}, [b]);
|
|
85
82
|
return e.useEffect(() => {
|
|
86
83
|
const A = setTimeout(() => {
|
|
87
|
-
|
|
84
|
+
R(o ? "UpChevron" : "DownChevron"), a(!1);
|
|
88
85
|
}, 300);
|
|
89
|
-
return
|
|
90
|
-
}, [
|
|
86
|
+
return a(!0), () => clearTimeout(A);
|
|
87
|
+
}, [o]), /* @__PURE__ */ T(
|
|
91
88
|
"div",
|
|
92
89
|
{
|
|
93
|
-
className: g(
|
|
94
|
-
onClick:
|
|
95
|
-
onKeyDown:
|
|
90
|
+
className: g(t.triggerContainer, h),
|
|
91
|
+
onClick: b,
|
|
92
|
+
onKeyDown: y,
|
|
96
93
|
role: "button",
|
|
97
94
|
tabIndex: 0,
|
|
98
|
-
"aria-expanded":
|
|
95
|
+
"aria-expanded": o,
|
|
99
96
|
"aria-controls": `${n}-content`,
|
|
100
97
|
id: `${n}-header`,
|
|
101
98
|
children: [
|
|
102
|
-
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
|
|
105
|
-
y,
|
|
99
|
+
/* @__PURE__ */ d(v, { size: "small", className: g(t.text, p), children: r }),
|
|
100
|
+
/* @__PURE__ */ d(
|
|
101
|
+
N,
|
|
106
102
|
{
|
|
107
|
-
className: g(
|
|
108
|
-
[
|
|
109
|
-
[
|
|
110
|
-
[
|
|
103
|
+
className: g(t.iconRight, x, {
|
|
104
|
+
[t.iconFlip]: _,
|
|
105
|
+
[t.iconUp]: c === "UpChevron",
|
|
106
|
+
[t.iconDown]: c === "DownChevron"
|
|
111
107
|
}),
|
|
112
|
-
name:
|
|
108
|
+
name: c
|
|
113
109
|
}
|
|
114
110
|
)
|
|
115
111
|
]
|
|
116
112
|
}
|
|
117
113
|
);
|
|
118
|
-
},
|
|
119
|
-
children:
|
|
120
|
-
className:
|
|
121
|
-
innerClassName:
|
|
122
|
-
contentDisplay:
|
|
123
|
-
preopen:
|
|
114
|
+
}, ee = function({
|
|
115
|
+
children: i,
|
|
116
|
+
className: r,
|
|
117
|
+
innerClassName: x,
|
|
118
|
+
contentDisplay: h = "inline-block",
|
|
119
|
+
preopen: p = !1
|
|
124
120
|
}) {
|
|
125
|
-
const
|
|
126
|
-
if (!
|
|
121
|
+
const m = e.useContext(w), s = e.useContext(I), [n, u] = e.useState(null), l = e.useRef(null);
|
|
122
|
+
if (!m)
|
|
127
123
|
throw new Error("AccordionContent must be used within an Accordion");
|
|
128
124
|
const {
|
|
129
125
|
openItems: f,
|
|
130
|
-
rootWidth:
|
|
131
|
-
} =
|
|
126
|
+
rootWidth: o
|
|
127
|
+
} = m, _ = typeof f[s] > "u" ? p : f[s], a = e.useMemo(() => n === null ? 250 : E(n / 150 * 250, 350, 500), [n]);
|
|
132
128
|
return e.useEffect(() => {
|
|
133
|
-
|
|
134
|
-
}, [
|
|
135
|
-
if (
|
|
136
|
-
const
|
|
137
|
-
|
|
129
|
+
u(null);
|
|
130
|
+
}, [o]), e.useEffect(() => {
|
|
131
|
+
if (n === null && l.current) {
|
|
132
|
+
const c = l.current.getBoundingClientRect().height;
|
|
133
|
+
u(c);
|
|
138
134
|
}
|
|
139
|
-
}, [
|
|
135
|
+
}, [n]), /* @__PURE__ */ d(
|
|
140
136
|
"div",
|
|
141
137
|
{
|
|
142
|
-
id: `${
|
|
138
|
+
id: `${s}-content`,
|
|
143
139
|
role: "region",
|
|
144
|
-
"aria-labelledby": `${
|
|
145
|
-
className: g(
|
|
146
|
-
[
|
|
147
|
-
[
|
|
140
|
+
"aria-labelledby": `${s}-header`,
|
|
141
|
+
className: g(t.content, r, {
|
|
142
|
+
[t.open]: _,
|
|
143
|
+
[t.closed]: !_
|
|
148
144
|
}),
|
|
149
145
|
style: {
|
|
150
|
-
"--content-display":
|
|
151
|
-
"--content-height":
|
|
152
|
-
"--content-animation-time": `${
|
|
146
|
+
"--content-display": h,
|
|
147
|
+
"--content-height": k.q(200),
|
|
148
|
+
"--content-animation-time": `${a}ms`
|
|
153
149
|
},
|
|
154
|
-
children: /* @__PURE__ */
|
|
155
|
-
|
|
150
|
+
children: /* @__PURE__ */ d(
|
|
151
|
+
v,
|
|
156
152
|
{
|
|
157
153
|
color: "secondary",
|
|
158
|
-
size: "
|
|
154
|
+
size: "small",
|
|
159
155
|
typographic: !0,
|
|
160
|
-
className: g(
|
|
161
|
-
ref:
|
|
162
|
-
children:
|
|
156
|
+
className: g(t.contentText, x),
|
|
157
|
+
ref: l,
|
|
158
|
+
children: i
|
|
163
159
|
}
|
|
164
160
|
)
|
|
165
161
|
}
|
|
166
162
|
);
|
|
167
163
|
};
|
|
168
164
|
export {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
165
|
+
Q as Accordion,
|
|
166
|
+
ee as AccordionContent,
|
|
167
|
+
Y as AccordionHeader,
|
|
168
|
+
X as AccordionItem,
|
|
169
|
+
Z as AccordionTrigger
|
|
174
170
|
};
|
|
@@ -3,7 +3,7 @@ import s from "react";
|
|
|
3
3
|
import a from "../Flex/Flex.js";
|
|
4
4
|
import { Text as h } from "../Text/Text.js";
|
|
5
5
|
import "../../utils/ui/ui.js";
|
|
6
|
-
import { Accordion as l, AccordionItem as o, AccordionHeader as r, AccordionTrigger as
|
|
6
|
+
import { Accordion as l, AccordionItem as o, AccordionHeader as r, AccordionTrigger as n, AccordionContent as i } from "./Accordion.js";
|
|
7
7
|
const u = "cfxui__AccordionShowcase__customTrigger__50550", d = "cfxui__AccordionShowcase__customTriggerIconRight__29b74", g = "cfxui__AccordionShowcase__customTriggerText__6f61c", y = "cfxui__AccordionShowcase__customContent__f7c2f", m = "cfxui__AccordionShowcase__customContentInner__f3d0e", c = {
|
|
8
8
|
customTrigger: u,
|
|
9
9
|
customTriggerIconRight: d,
|
|
@@ -18,12 +18,12 @@ function v() {
|
|
|
18
18
|
/* @__PURE__ */ t(l, { children: [
|
|
19
19
|
/* @__PURE__ */ t(o, { children: [
|
|
20
20
|
/* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
|
|
21
|
-
|
|
21
|
+
n,
|
|
22
22
|
{
|
|
23
23
|
text: "Will I get banned from GTA:O?"
|
|
24
24
|
}
|
|
25
25
|
) }),
|
|
26
|
-
/* @__PURE__ */ t(
|
|
26
|
+
/* @__PURE__ */ t(i, { children: [
|
|
27
27
|
"Nope!",
|
|
28
28
|
" ",
|
|
29
29
|
/* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
@@ -33,42 +33,39 @@ function v() {
|
|
|
33
33
|
] }),
|
|
34
34
|
/* @__PURE__ */ t(o, { children: [
|
|
35
35
|
/* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
|
|
36
|
-
|
|
36
|
+
n,
|
|
37
37
|
{
|
|
38
|
-
text: "Can I cheat on FiveM?"
|
|
39
|
-
iconLeft: "Heart"
|
|
38
|
+
text: "Can I cheat on FiveM?"
|
|
40
39
|
}
|
|
41
40
|
) }),
|
|
42
|
-
/* @__PURE__ */ e(
|
|
41
|
+
/* @__PURE__ */ e(i, { children: "Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned!" })
|
|
43
42
|
] }),
|
|
44
43
|
/* @__PURE__ */ t(o, { children: [
|
|
45
44
|
/* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
|
|
46
|
-
|
|
45
|
+
n,
|
|
47
46
|
{
|
|
48
|
-
text: "Is this accordion any good?"
|
|
49
|
-
iconLeft: "Pencil"
|
|
47
|
+
text: "Is this accordion any good?"
|
|
50
48
|
}
|
|
51
49
|
) }),
|
|
52
|
-
/* @__PURE__ */ e(
|
|
50
|
+
/* @__PURE__ */ e(i, { children: "Obviously!" })
|
|
53
51
|
] }),
|
|
54
52
|
/* @__PURE__ */ t(o, { children: [
|
|
55
53
|
/* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
|
|
56
|
-
|
|
54
|
+
n,
|
|
57
55
|
{
|
|
58
56
|
text: "Who said?"
|
|
59
57
|
}
|
|
60
58
|
) }),
|
|
61
|
-
/* @__PURE__ */ e(
|
|
59
|
+
/* @__PURE__ */ e(i, { children: "Me!" })
|
|
62
60
|
] }),
|
|
63
61
|
/* @__PURE__ */ t(o, { children: [
|
|
64
62
|
/* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
|
|
65
|
-
|
|
63
|
+
n,
|
|
66
64
|
{
|
|
67
|
-
text: "Long long text, Long long text, Long long text, Long long text, Long long text, Long long text to test the overflow, will it work? Let's see!"
|
|
68
|
-
iconLeft: "MoreInfo"
|
|
65
|
+
text: "Long long text, Long long text, Long long text, Long long text, Long long text, Long long text to test the overflow, will it work? Let's see!"
|
|
69
66
|
}
|
|
70
67
|
) }),
|
|
71
|
-
/* @__PURE__ */ t(
|
|
68
|
+
/* @__PURE__ */ t(i, { children: [
|
|
72
69
|
"Nope!",
|
|
73
70
|
" ",
|
|
74
71
|
/* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
@@ -78,12 +75,12 @@ function v() {
|
|
|
78
75
|
] }),
|
|
79
76
|
/* @__PURE__ */ t(o, { children: [
|
|
80
77
|
/* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
|
|
81
|
-
|
|
78
|
+
n,
|
|
82
79
|
{
|
|
83
|
-
text: "Long long text, Long long text, Long long text, Long long text, Long long text, Long long text to test the overflow, will it work? Let's see!"
|
|
80
|
+
text: "Long long text, Long long text, Long long text, Long long text, Long long text, Long long Long long text, Long long text, Long long text, Long long text, Long long text, Long long Long long text, Long long text, Long long text, Long long text, Long long text, Long long text to test the overflow, will it work? Let's see!"
|
|
84
81
|
}
|
|
85
82
|
) }),
|
|
86
|
-
/* @__PURE__ */ t(
|
|
83
|
+
/* @__PURE__ */ t(i, { children: [
|
|
87
84
|
"Nope!",
|
|
88
85
|
" ",
|
|
89
86
|
/* @__PURE__ */ e("a", { href: "https://cfx.re", children: "FiveM" }),
|
|
@@ -110,7 +107,7 @@ function v() {
|
|
|
110
107
|
/* @__PURE__ */ t(l, { children: [
|
|
111
108
|
/* @__PURE__ */ t(o, { children: [
|
|
112
109
|
/* @__PURE__ */ e(
|
|
113
|
-
|
|
110
|
+
n,
|
|
114
111
|
{
|
|
115
112
|
text: "Will I get banned from GTA:O?",
|
|
116
113
|
className: c.customTrigger,
|
|
@@ -119,7 +116,7 @@ function v() {
|
|
|
119
116
|
}
|
|
120
117
|
),
|
|
121
118
|
/* @__PURE__ */ t(
|
|
122
|
-
|
|
119
|
+
i,
|
|
123
120
|
{
|
|
124
121
|
className: c.customContent,
|
|
125
122
|
innerClassName: c.customContentInner,
|
|
@@ -135,14 +132,13 @@ function v() {
|
|
|
135
132
|
] }),
|
|
136
133
|
/* @__PURE__ */ t(o, { children: [
|
|
137
134
|
/* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(
|
|
138
|
-
|
|
135
|
+
n,
|
|
139
136
|
{
|
|
140
|
-
text: "Can I cheat on FiveM?",
|
|
141
|
-
iconLeft: "Heart",
|
|
137
|
+
text: "Can I cheat on FiveM? (This should be preopened)",
|
|
142
138
|
preopen: !0
|
|
143
139
|
}
|
|
144
140
|
) }),
|
|
145
|
-
/* @__PURE__ */ e(
|
|
141
|
+
/* @__PURE__ */ e(i, { preopen: !0, children: "Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned! Dont be a cheater, you will get banned!" })
|
|
146
142
|
] })
|
|
147
143
|
] })
|
|
148
144
|
] })
|