@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
|
@@ -0,0 +1,964 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import gn from "react";
|
|
4
|
+
import { c as me, P as N, a as g, b as U, u as ye, g as wn, f as Mn, h as Pe } from "./index-CfQtbUfi.js";
|
|
5
|
+
import { c as xe, u as Te } from "./index-9LBuZ7x4.js";
|
|
6
|
+
import { u as le, a as ve, c as Ae, h as _n, b as hn, R as Cn, F as Rn, D as In, C as bn, d as En, A as Sn, e as Dn } from "./Combination-CcTTSYNP.js";
|
|
7
|
+
import { P as ge } from "./index-3ctv5u9o.js";
|
|
8
|
+
import { clsx as Se } from "./utils/clsx.js";
|
|
9
|
+
import { ui as yn } from "./utils/ui/ui.js";
|
|
10
|
+
var de = "rovingFocusGroup.onEntryFocus", Pn = { bubbles: !1, cancelable: !0 }, z = "RovingFocusGroup", [fe, Ne, xn] = xe(z), [Tn, Oe] = me(
|
|
11
|
+
z,
|
|
12
|
+
[xn]
|
|
13
|
+
), [An, Nn] = Tn(z), Fe = a.forwardRef(
|
|
14
|
+
(e, t) => /* @__PURE__ */ s(fe.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ s(fe.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ s(On, { ...e, ref: t }) }) })
|
|
15
|
+
);
|
|
16
|
+
Fe.displayName = z;
|
|
17
|
+
var On = a.forwardRef((e, t) => {
|
|
18
|
+
const {
|
|
19
|
+
__scopeRovingFocusGroup: n,
|
|
20
|
+
orientation: o,
|
|
21
|
+
loop: r = !1,
|
|
22
|
+
dir: c,
|
|
23
|
+
currentTabStopId: i,
|
|
24
|
+
defaultCurrentTabStopId: l,
|
|
25
|
+
onCurrentTabStopIdChange: m,
|
|
26
|
+
onEntryFocus: v,
|
|
27
|
+
preventScrollOnEntryFocus: d = !1,
|
|
28
|
+
...u
|
|
29
|
+
} = e, f = a.useRef(null), M = U(t, f), w = Te(c), [b, _] = ye({
|
|
30
|
+
prop: i,
|
|
31
|
+
defaultProp: l ?? null,
|
|
32
|
+
onChange: m,
|
|
33
|
+
caller: z
|
|
34
|
+
}), [R, T] = a.useState(!1), h = ve(v), D = Ne(n), B = a.useRef(!1), [J, O] = a.useState(0);
|
|
35
|
+
return a.useEffect(() => {
|
|
36
|
+
const C = f.current;
|
|
37
|
+
if (C)
|
|
38
|
+
return C.addEventListener(de, h), () => C.removeEventListener(de, h);
|
|
39
|
+
}, [h]), /* @__PURE__ */ s(
|
|
40
|
+
An,
|
|
41
|
+
{
|
|
42
|
+
scope: n,
|
|
43
|
+
orientation: o,
|
|
44
|
+
dir: w,
|
|
45
|
+
loop: r,
|
|
46
|
+
currentTabStopId: b,
|
|
47
|
+
onItemFocus: a.useCallback(
|
|
48
|
+
(C) => _(C),
|
|
49
|
+
[_]
|
|
50
|
+
),
|
|
51
|
+
onItemShiftTab: a.useCallback(() => T(!0), []),
|
|
52
|
+
onFocusableItemAdd: a.useCallback(
|
|
53
|
+
() => O((C) => C + 1),
|
|
54
|
+
[]
|
|
55
|
+
),
|
|
56
|
+
onFocusableItemRemove: a.useCallback(
|
|
57
|
+
() => O((C) => C - 1),
|
|
58
|
+
[]
|
|
59
|
+
),
|
|
60
|
+
children: /* @__PURE__ */ s(
|
|
61
|
+
N.div,
|
|
62
|
+
{
|
|
63
|
+
tabIndex: R || J === 0 ? -1 : 0,
|
|
64
|
+
"data-orientation": o,
|
|
65
|
+
...u,
|
|
66
|
+
ref: M,
|
|
67
|
+
style: { outline: "none", ...e.style },
|
|
68
|
+
onMouseDown: g(e.onMouseDown, () => {
|
|
69
|
+
B.current = !0;
|
|
70
|
+
}),
|
|
71
|
+
onFocus: g(e.onFocus, (C) => {
|
|
72
|
+
const G = !B.current;
|
|
73
|
+
if (C.target === C.currentTarget && G && !R) {
|
|
74
|
+
const F = new CustomEvent(de, Pn);
|
|
75
|
+
if (C.currentTarget.dispatchEvent(F), !F.defaultPrevented) {
|
|
76
|
+
const V = D().filter((P) => P.focusable), W = V.find((P) => P.active), Q = V.find((P) => P.id === b), se = [W, Q, ...V].filter(
|
|
77
|
+
Boolean
|
|
78
|
+
).map((P) => P.ref.current);
|
|
79
|
+
Le(se, d);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
B.current = !1;
|
|
83
|
+
}),
|
|
84
|
+
onBlur: g(e.onBlur, () => T(!1))
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
}), ke = "RovingFocusGroupItem", Ge = a.forwardRef(
|
|
90
|
+
(e, t) => {
|
|
91
|
+
const {
|
|
92
|
+
__scopeRovingFocusGroup: n,
|
|
93
|
+
focusable: o = !0,
|
|
94
|
+
active: r = !1,
|
|
95
|
+
tabStopId: c,
|
|
96
|
+
children: i,
|
|
97
|
+
...l
|
|
98
|
+
} = e, m = le(), v = c || m, d = Nn(ke, n), u = d.currentTabStopId === v, f = Ne(n), { onFocusableItemAdd: M, onFocusableItemRemove: w, currentTabStopId: b } = d;
|
|
99
|
+
return a.useEffect(() => {
|
|
100
|
+
if (o)
|
|
101
|
+
return M(), () => w();
|
|
102
|
+
}, [o, M, w]), /* @__PURE__ */ s(
|
|
103
|
+
fe.ItemSlot,
|
|
104
|
+
{
|
|
105
|
+
scope: n,
|
|
106
|
+
id: v,
|
|
107
|
+
focusable: o,
|
|
108
|
+
active: r,
|
|
109
|
+
children: /* @__PURE__ */ s(
|
|
110
|
+
N.span,
|
|
111
|
+
{
|
|
112
|
+
tabIndex: u ? 0 : -1,
|
|
113
|
+
"data-orientation": d.orientation,
|
|
114
|
+
...l,
|
|
115
|
+
ref: t,
|
|
116
|
+
onMouseDown: g(e.onMouseDown, (_) => {
|
|
117
|
+
o ? d.onItemFocus(v) : _.preventDefault();
|
|
118
|
+
}),
|
|
119
|
+
onFocus: g(e.onFocus, () => d.onItemFocus(v)),
|
|
120
|
+
onKeyDown: g(e.onKeyDown, (_) => {
|
|
121
|
+
if (_.key === "Tab" && _.shiftKey) {
|
|
122
|
+
d.onItemShiftTab();
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
if (_.target !== _.currentTarget) return;
|
|
126
|
+
const R = Gn(_, d.orientation, d.dir);
|
|
127
|
+
if (R !== void 0) {
|
|
128
|
+
if (_.metaKey || _.ctrlKey || _.altKey || _.shiftKey) return;
|
|
129
|
+
_.preventDefault();
|
|
130
|
+
let h = f().filter((D) => D.focusable).map((D) => D.ref.current);
|
|
131
|
+
if (R === "last") h.reverse();
|
|
132
|
+
else if (R === "prev" || R === "next") {
|
|
133
|
+
R === "prev" && h.reverse();
|
|
134
|
+
const D = h.indexOf(_.currentTarget);
|
|
135
|
+
h = d.loop ? Ln(h, D + 1) : h.slice(D + 1);
|
|
136
|
+
}
|
|
137
|
+
setTimeout(() => Le(h));
|
|
138
|
+
}
|
|
139
|
+
}),
|
|
140
|
+
children: typeof i == "function" ? i({ isCurrentTabStop: u, hasTabStop: b != null }) : i
|
|
141
|
+
}
|
|
142
|
+
)
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
Ge.displayName = ke;
|
|
148
|
+
var Fn = {
|
|
149
|
+
ArrowLeft: "prev",
|
|
150
|
+
ArrowUp: "prev",
|
|
151
|
+
ArrowRight: "next",
|
|
152
|
+
ArrowDown: "next",
|
|
153
|
+
PageUp: "first",
|
|
154
|
+
Home: "first",
|
|
155
|
+
PageDown: "last",
|
|
156
|
+
End: "last"
|
|
157
|
+
};
|
|
158
|
+
function kn(e, t) {
|
|
159
|
+
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
160
|
+
}
|
|
161
|
+
function Gn(e, t, n) {
|
|
162
|
+
const o = kn(e.key, n);
|
|
163
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
164
|
+
return Fn[o];
|
|
165
|
+
}
|
|
166
|
+
function Le(e, t = !1) {
|
|
167
|
+
const n = document.activeElement;
|
|
168
|
+
for (const o of e)
|
|
169
|
+
if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
170
|
+
}
|
|
171
|
+
function Ln(e, t) {
|
|
172
|
+
return e.map((n, o) => e[(t + o) % e.length]);
|
|
173
|
+
}
|
|
174
|
+
var Kn = Fe, Un = Ge, pe = ["Enter", " "], $n = ["ArrowDown", "PageUp", "Home"], Ke = ["ArrowUp", "PageDown", "End"], Bn = [...$n, ...Ke], Vn = {
|
|
175
|
+
ltr: [...pe, "ArrowRight"],
|
|
176
|
+
rtl: [...pe, "ArrowLeft"]
|
|
177
|
+
}, Wn = {
|
|
178
|
+
ltr: ["ArrowLeft"],
|
|
179
|
+
rtl: ["ArrowRight"]
|
|
180
|
+
}, Z = "Menu", [H, Yn, Xn] = xe(Z), [k, Ue] = me(Z, [
|
|
181
|
+
Xn,
|
|
182
|
+
Ae,
|
|
183
|
+
Oe
|
|
184
|
+
]), re = Ae(), $e = Oe(), [Hn, $] = k(Z), [jn, q] = k(Z), Be = (e) => {
|
|
185
|
+
const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: c, modal: i = !0 } = e, l = re(t), [m, v] = a.useState(null), d = a.useRef(!1), u = ve(c), f = Te(r);
|
|
186
|
+
return a.useEffect(() => {
|
|
187
|
+
const M = () => {
|
|
188
|
+
d.current = !0, document.addEventListener("pointerdown", w, { capture: !0, once: !0 }), document.addEventListener("pointermove", w, { capture: !0, once: !0 });
|
|
189
|
+
}, w = () => d.current = !1;
|
|
190
|
+
return document.addEventListener("keydown", M, { capture: !0 }), () => {
|
|
191
|
+
document.removeEventListener("keydown", M, { capture: !0 }), document.removeEventListener("pointerdown", w, { capture: !0 }), document.removeEventListener("pointermove", w, { capture: !0 });
|
|
192
|
+
};
|
|
193
|
+
}, []), /* @__PURE__ */ s(En, { ...l, children: /* @__PURE__ */ s(
|
|
194
|
+
Hn,
|
|
195
|
+
{
|
|
196
|
+
scope: t,
|
|
197
|
+
open: n,
|
|
198
|
+
onOpenChange: u,
|
|
199
|
+
content: m,
|
|
200
|
+
onContentChange: v,
|
|
201
|
+
children: /* @__PURE__ */ s(
|
|
202
|
+
jn,
|
|
203
|
+
{
|
|
204
|
+
scope: t,
|
|
205
|
+
onClose: a.useCallback(() => u(!1), [u]),
|
|
206
|
+
isUsingKeyboardRef: d,
|
|
207
|
+
dir: f,
|
|
208
|
+
modal: i,
|
|
209
|
+
children: o
|
|
210
|
+
}
|
|
211
|
+
)
|
|
212
|
+
}
|
|
213
|
+
) });
|
|
214
|
+
};
|
|
215
|
+
Be.displayName = Z;
|
|
216
|
+
var zn = "MenuAnchor", we = a.forwardRef(
|
|
217
|
+
(e, t) => {
|
|
218
|
+
const { __scopeMenu: n, ...o } = e, r = re(n);
|
|
219
|
+
return /* @__PURE__ */ s(Sn, { ...r, ...o, ref: t });
|
|
220
|
+
}
|
|
221
|
+
);
|
|
222
|
+
we.displayName = zn;
|
|
223
|
+
var Zn = "MenuPortal", [mo, Ve] = k(Zn, {
|
|
224
|
+
forceMount: void 0
|
|
225
|
+
}), S = "MenuContent", [qn, Me] = k(S), We = a.forwardRef(
|
|
226
|
+
(e, t) => {
|
|
227
|
+
const n = Ve(S, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, c = $(S, e.__scopeMenu), i = q(S, e.__scopeMenu);
|
|
228
|
+
return /* @__PURE__ */ s(H.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s(ge, { present: o || c.open, children: /* @__PURE__ */ s(H.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ s(Jn, { ...r, ref: t }) : /* @__PURE__ */ s(Qn, { ...r, ref: t }) }) }) });
|
|
229
|
+
}
|
|
230
|
+
), Jn = a.forwardRef(
|
|
231
|
+
(e, t) => {
|
|
232
|
+
const n = $(S, e.__scopeMenu), o = a.useRef(null), r = U(t, o);
|
|
233
|
+
return a.useEffect(() => {
|
|
234
|
+
const c = o.current;
|
|
235
|
+
if (c) return _n(c);
|
|
236
|
+
}, []), /* @__PURE__ */ s(
|
|
237
|
+
_e,
|
|
238
|
+
{
|
|
239
|
+
...e,
|
|
240
|
+
ref: r,
|
|
241
|
+
trapFocus: n.open,
|
|
242
|
+
disableOutsidePointerEvents: n.open,
|
|
243
|
+
disableOutsideScroll: !0,
|
|
244
|
+
onFocusOutside: g(
|
|
245
|
+
e.onFocusOutside,
|
|
246
|
+
(c) => c.preventDefault(),
|
|
247
|
+
{ checkForDefaultPrevented: !1 }
|
|
248
|
+
),
|
|
249
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
250
|
+
}
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
), Qn = a.forwardRef((e, t) => {
|
|
254
|
+
const n = $(S, e.__scopeMenu);
|
|
255
|
+
return /* @__PURE__ */ s(
|
|
256
|
+
_e,
|
|
257
|
+
{
|
|
258
|
+
...e,
|
|
259
|
+
ref: t,
|
|
260
|
+
trapFocus: !1,
|
|
261
|
+
disableOutsidePointerEvents: !1,
|
|
262
|
+
disableOutsideScroll: !1,
|
|
263
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
264
|
+
}
|
|
265
|
+
);
|
|
266
|
+
}), et = Mn("MenuContent.ScrollLock"), _e = a.forwardRef(
|
|
267
|
+
(e, t) => {
|
|
268
|
+
const {
|
|
269
|
+
__scopeMenu: n,
|
|
270
|
+
loop: o = !1,
|
|
271
|
+
trapFocus: r,
|
|
272
|
+
onOpenAutoFocus: c,
|
|
273
|
+
onCloseAutoFocus: i,
|
|
274
|
+
disableOutsidePointerEvents: l,
|
|
275
|
+
onEntryFocus: m,
|
|
276
|
+
onEscapeKeyDown: v,
|
|
277
|
+
onPointerDownOutside: d,
|
|
278
|
+
onFocusOutside: u,
|
|
279
|
+
onInteractOutside: f,
|
|
280
|
+
onDismiss: M,
|
|
281
|
+
disableOutsideScroll: w,
|
|
282
|
+
...b
|
|
283
|
+
} = e, _ = $(S, n), R = q(S, n), T = re(n), h = $e(n), D = Yn(n), [B, J] = a.useState(null), O = a.useRef(null), C = U(t, O, _.onContentChange), G = a.useRef(0), F = a.useRef(""), V = a.useRef(0), W = a.useRef(null), Q = a.useRef("right"), ee = a.useRef(0), se = w ? Cn : a.Fragment, P = w ? { as: et, allowPinchZoom: !0 } : void 0, vn = (p) => {
|
|
284
|
+
var K, be;
|
|
285
|
+
const E = F.current + p, y = D().filter((x) => !x.disabled), A = document.activeElement, ue = (K = y.find((x) => x.ref.current === A)) == null ? void 0 : K.textValue, ie = y.map((x) => x.textValue), Ie = ft(ie, E, ue), Y = (be = y.find((x) => x.textValue === Ie)) == null ? void 0 : be.ref.current;
|
|
286
|
+
(function x(Ee) {
|
|
287
|
+
F.current = Ee, window.clearTimeout(G.current), Ee !== "" && (G.current = window.setTimeout(() => x(""), 1e3));
|
|
288
|
+
})(E), Y && setTimeout(() => Y.focus());
|
|
289
|
+
};
|
|
290
|
+
a.useEffect(() => () => window.clearTimeout(G.current), []), hn();
|
|
291
|
+
const L = a.useCallback((p) => {
|
|
292
|
+
var y, A;
|
|
293
|
+
return Q.current === ((y = W.current) == null ? void 0 : y.side) && mt(p, (A = W.current) == null ? void 0 : A.area);
|
|
294
|
+
}, []);
|
|
295
|
+
return /* @__PURE__ */ s(
|
|
296
|
+
qn,
|
|
297
|
+
{
|
|
298
|
+
scope: n,
|
|
299
|
+
searchRef: F,
|
|
300
|
+
onItemEnter: a.useCallback(
|
|
301
|
+
(p) => {
|
|
302
|
+
L(p) && p.preventDefault();
|
|
303
|
+
},
|
|
304
|
+
[L]
|
|
305
|
+
),
|
|
306
|
+
onItemLeave: a.useCallback(
|
|
307
|
+
(p) => {
|
|
308
|
+
var E;
|
|
309
|
+
L(p) || ((E = O.current) == null || E.focus(), J(null));
|
|
310
|
+
},
|
|
311
|
+
[L]
|
|
312
|
+
),
|
|
313
|
+
onTriggerLeave: a.useCallback(
|
|
314
|
+
(p) => {
|
|
315
|
+
L(p) && p.preventDefault();
|
|
316
|
+
},
|
|
317
|
+
[L]
|
|
318
|
+
),
|
|
319
|
+
pointerGraceTimerRef: V,
|
|
320
|
+
onPointerGraceIntentChange: a.useCallback((p) => {
|
|
321
|
+
W.current = p;
|
|
322
|
+
}, []),
|
|
323
|
+
children: /* @__PURE__ */ s(se, { ...P, children: /* @__PURE__ */ s(
|
|
324
|
+
Rn,
|
|
325
|
+
{
|
|
326
|
+
asChild: !0,
|
|
327
|
+
trapped: r,
|
|
328
|
+
onMountAutoFocus: g(c, (p) => {
|
|
329
|
+
var E;
|
|
330
|
+
p.preventDefault(), (E = O.current) == null || E.focus({ preventScroll: !0 });
|
|
331
|
+
}),
|
|
332
|
+
onUnmountAutoFocus: i,
|
|
333
|
+
children: /* @__PURE__ */ s(
|
|
334
|
+
In,
|
|
335
|
+
{
|
|
336
|
+
asChild: !0,
|
|
337
|
+
disableOutsidePointerEvents: l,
|
|
338
|
+
onEscapeKeyDown: v,
|
|
339
|
+
onPointerDownOutside: d,
|
|
340
|
+
onFocusOutside: u,
|
|
341
|
+
onInteractOutside: f,
|
|
342
|
+
onDismiss: M,
|
|
343
|
+
children: /* @__PURE__ */ s(
|
|
344
|
+
Kn,
|
|
345
|
+
{
|
|
346
|
+
asChild: !0,
|
|
347
|
+
...h,
|
|
348
|
+
dir: R.dir,
|
|
349
|
+
orientation: "vertical",
|
|
350
|
+
loop: o,
|
|
351
|
+
currentTabStopId: B,
|
|
352
|
+
onCurrentTabStopIdChange: J,
|
|
353
|
+
onEntryFocus: g(m, (p) => {
|
|
354
|
+
R.isUsingKeyboardRef.current || p.preventDefault();
|
|
355
|
+
}),
|
|
356
|
+
preventScrollOnEntryFocus: !0,
|
|
357
|
+
children: /* @__PURE__ */ s(
|
|
358
|
+
bn,
|
|
359
|
+
{
|
|
360
|
+
role: "menu",
|
|
361
|
+
"aria-orientation": "vertical",
|
|
362
|
+
"data-state": cn(_.open),
|
|
363
|
+
"data-radix-menu-content": "",
|
|
364
|
+
dir: R.dir,
|
|
365
|
+
...T,
|
|
366
|
+
...b,
|
|
367
|
+
ref: C,
|
|
368
|
+
style: { outline: "none", ...b.style },
|
|
369
|
+
onKeyDown: g(b.onKeyDown, (p) => {
|
|
370
|
+
const y = p.target.closest("[data-radix-menu-content]") === p.currentTarget, A = p.ctrlKey || p.altKey || p.metaKey, ue = p.key.length === 1;
|
|
371
|
+
y && (p.key === "Tab" && p.preventDefault(), !A && ue && vn(p.key));
|
|
372
|
+
const ie = O.current;
|
|
373
|
+
if (p.target !== ie || !Bn.includes(p.key)) return;
|
|
374
|
+
p.preventDefault();
|
|
375
|
+
const Y = D().filter((K) => !K.disabled).map((K) => K.ref.current);
|
|
376
|
+
Ke.includes(p.key) && Y.reverse(), dt(Y);
|
|
377
|
+
}),
|
|
378
|
+
onBlur: g(e.onBlur, (p) => {
|
|
379
|
+
p.currentTarget.contains(p.target) || (window.clearTimeout(G.current), F.current = "");
|
|
380
|
+
}),
|
|
381
|
+
onPointerMove: g(
|
|
382
|
+
e.onPointerMove,
|
|
383
|
+
j((p) => {
|
|
384
|
+
const E = p.target, y = ee.current !== p.clientX;
|
|
385
|
+
if (p.currentTarget.contains(E) && y) {
|
|
386
|
+
const A = p.clientX > ee.current ? "right" : "left";
|
|
387
|
+
Q.current = A, ee.current = p.clientX;
|
|
388
|
+
}
|
|
389
|
+
})
|
|
390
|
+
)
|
|
391
|
+
}
|
|
392
|
+
)
|
|
393
|
+
}
|
|
394
|
+
)
|
|
395
|
+
}
|
|
396
|
+
)
|
|
397
|
+
}
|
|
398
|
+
) })
|
|
399
|
+
}
|
|
400
|
+
);
|
|
401
|
+
}
|
|
402
|
+
);
|
|
403
|
+
We.displayName = S;
|
|
404
|
+
var nt = "MenuGroup", he = a.forwardRef(
|
|
405
|
+
(e, t) => {
|
|
406
|
+
const { __scopeMenu: n, ...o } = e;
|
|
407
|
+
return /* @__PURE__ */ s(N.div, { role: "group", ...o, ref: t });
|
|
408
|
+
}
|
|
409
|
+
);
|
|
410
|
+
he.displayName = nt;
|
|
411
|
+
var tt = "MenuLabel", Ye = a.forwardRef(
|
|
412
|
+
(e, t) => {
|
|
413
|
+
const { __scopeMenu: n, ...o } = e;
|
|
414
|
+
return /* @__PURE__ */ s(N.div, { ...o, ref: t });
|
|
415
|
+
}
|
|
416
|
+
);
|
|
417
|
+
Ye.displayName = tt;
|
|
418
|
+
var te = "MenuItem", De = "menu.itemSelect", ae = a.forwardRef(
|
|
419
|
+
(e, t) => {
|
|
420
|
+
const { disabled: n = !1, onSelect: o, ...r } = e, c = a.useRef(null), i = q(te, e.__scopeMenu), l = Me(te, e.__scopeMenu), m = U(t, c), v = a.useRef(!1), d = () => {
|
|
421
|
+
const u = c.current;
|
|
422
|
+
if (!n && u) {
|
|
423
|
+
const f = new CustomEvent(De, { bubbles: !0, cancelable: !0 });
|
|
424
|
+
u.addEventListener(De, (M) => o == null ? void 0 : o(M), { once: !0 }), wn(u, f), f.defaultPrevented ? v.current = !1 : i.onClose();
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
return /* @__PURE__ */ s(
|
|
428
|
+
Xe,
|
|
429
|
+
{
|
|
430
|
+
...r,
|
|
431
|
+
ref: m,
|
|
432
|
+
disabled: n,
|
|
433
|
+
onClick: g(e.onClick, d),
|
|
434
|
+
onPointerDown: (u) => {
|
|
435
|
+
var f;
|
|
436
|
+
(f = e.onPointerDown) == null || f.call(e, u), v.current = !0;
|
|
437
|
+
},
|
|
438
|
+
onPointerUp: g(e.onPointerUp, (u) => {
|
|
439
|
+
var f;
|
|
440
|
+
v.current || (f = u.currentTarget) == null || f.click();
|
|
441
|
+
}),
|
|
442
|
+
onKeyDown: g(e.onKeyDown, (u) => {
|
|
443
|
+
const f = l.searchRef.current !== "";
|
|
444
|
+
n || f && u.key === " " || pe.includes(u.key) && (u.currentTarget.click(), u.preventDefault());
|
|
445
|
+
})
|
|
446
|
+
}
|
|
447
|
+
);
|
|
448
|
+
}
|
|
449
|
+
);
|
|
450
|
+
ae.displayName = te;
|
|
451
|
+
var Xe = a.forwardRef(
|
|
452
|
+
(e, t) => {
|
|
453
|
+
const { __scopeMenu: n, disabled: o = !1, textValue: r, ...c } = e, i = Me(te, n), l = $e(n), m = a.useRef(null), v = U(t, m), [d, u] = a.useState(!1), [f, M] = a.useState("");
|
|
454
|
+
return a.useEffect(() => {
|
|
455
|
+
const w = m.current;
|
|
456
|
+
w && M((w.textContent ?? "").trim());
|
|
457
|
+
}, [c.children]), /* @__PURE__ */ s(
|
|
458
|
+
H.ItemSlot,
|
|
459
|
+
{
|
|
460
|
+
scope: n,
|
|
461
|
+
disabled: o,
|
|
462
|
+
textValue: r ?? f,
|
|
463
|
+
children: /* @__PURE__ */ s(Un, { asChild: !0, ...l, focusable: !o, children: /* @__PURE__ */ s(
|
|
464
|
+
N.div,
|
|
465
|
+
{
|
|
466
|
+
role: "menuitem",
|
|
467
|
+
"data-highlighted": d ? "" : void 0,
|
|
468
|
+
"aria-disabled": o || void 0,
|
|
469
|
+
"data-disabled": o ? "" : void 0,
|
|
470
|
+
...c,
|
|
471
|
+
ref: v,
|
|
472
|
+
onPointerMove: g(
|
|
473
|
+
e.onPointerMove,
|
|
474
|
+
j((w) => {
|
|
475
|
+
o ? i.onItemLeave(w) : (i.onItemEnter(w), w.defaultPrevented || w.currentTarget.focus({ preventScroll: !0 }));
|
|
476
|
+
})
|
|
477
|
+
),
|
|
478
|
+
onPointerLeave: g(
|
|
479
|
+
e.onPointerLeave,
|
|
480
|
+
j((w) => i.onItemLeave(w))
|
|
481
|
+
),
|
|
482
|
+
onFocus: g(e.onFocus, () => u(!0)),
|
|
483
|
+
onBlur: g(e.onBlur, () => u(!1))
|
|
484
|
+
}
|
|
485
|
+
) })
|
|
486
|
+
}
|
|
487
|
+
);
|
|
488
|
+
}
|
|
489
|
+
), ot = "MenuCheckboxItem", He = a.forwardRef(
|
|
490
|
+
(e, t) => {
|
|
491
|
+
const { checked: n = !1, onCheckedChange: o, ...r } = e;
|
|
492
|
+
return /* @__PURE__ */ s(Je, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ s(
|
|
493
|
+
ae,
|
|
494
|
+
{
|
|
495
|
+
role: "menuitemcheckbox",
|
|
496
|
+
"aria-checked": oe(n) ? "mixed" : n,
|
|
497
|
+
...r,
|
|
498
|
+
ref: t,
|
|
499
|
+
"data-state": Re(n),
|
|
500
|
+
onSelect: g(
|
|
501
|
+
r.onSelect,
|
|
502
|
+
() => o == null ? void 0 : o(oe(n) ? !0 : !n),
|
|
503
|
+
{ checkForDefaultPrevented: !1 }
|
|
504
|
+
)
|
|
505
|
+
}
|
|
506
|
+
) });
|
|
507
|
+
}
|
|
508
|
+
);
|
|
509
|
+
He.displayName = ot;
|
|
510
|
+
var je = "MenuRadioGroup", [rt, at] = k(
|
|
511
|
+
je,
|
|
512
|
+
{ value: void 0, onValueChange: () => {
|
|
513
|
+
} }
|
|
514
|
+
), ze = a.forwardRef(
|
|
515
|
+
(e, t) => {
|
|
516
|
+
const { value: n, onValueChange: o, ...r } = e, c = ve(o);
|
|
517
|
+
return /* @__PURE__ */ s(rt, { scope: e.__scopeMenu, value: n, onValueChange: c, children: /* @__PURE__ */ s(he, { ...r, ref: t }) });
|
|
518
|
+
}
|
|
519
|
+
);
|
|
520
|
+
ze.displayName = je;
|
|
521
|
+
var Ze = "MenuRadioItem", qe = a.forwardRef(
|
|
522
|
+
(e, t) => {
|
|
523
|
+
const { value: n, ...o } = e, r = at(Ze, e.__scopeMenu), c = n === r.value;
|
|
524
|
+
return /* @__PURE__ */ s(Je, { scope: e.__scopeMenu, checked: c, children: /* @__PURE__ */ s(
|
|
525
|
+
ae,
|
|
526
|
+
{
|
|
527
|
+
role: "menuitemradio",
|
|
528
|
+
"aria-checked": c,
|
|
529
|
+
...o,
|
|
530
|
+
ref: t,
|
|
531
|
+
"data-state": Re(c),
|
|
532
|
+
onSelect: g(
|
|
533
|
+
o.onSelect,
|
|
534
|
+
() => {
|
|
535
|
+
var i;
|
|
536
|
+
return (i = r.onValueChange) == null ? void 0 : i.call(r, n);
|
|
537
|
+
},
|
|
538
|
+
{ checkForDefaultPrevented: !1 }
|
|
539
|
+
)
|
|
540
|
+
}
|
|
541
|
+
) });
|
|
542
|
+
}
|
|
543
|
+
);
|
|
544
|
+
qe.displayName = Ze;
|
|
545
|
+
var Ce = "MenuItemIndicator", [Je, ct] = k(
|
|
546
|
+
Ce,
|
|
547
|
+
{ checked: !1 }
|
|
548
|
+
), Qe = a.forwardRef(
|
|
549
|
+
(e, t) => {
|
|
550
|
+
const { __scopeMenu: n, forceMount: o, ...r } = e, c = ct(Ce, n);
|
|
551
|
+
return /* @__PURE__ */ s(
|
|
552
|
+
ge,
|
|
553
|
+
{
|
|
554
|
+
present: o || oe(c.checked) || c.checked === !0,
|
|
555
|
+
children: /* @__PURE__ */ s(
|
|
556
|
+
N.span,
|
|
557
|
+
{
|
|
558
|
+
...r,
|
|
559
|
+
ref: t,
|
|
560
|
+
"data-state": Re(c.checked)
|
|
561
|
+
}
|
|
562
|
+
)
|
|
563
|
+
}
|
|
564
|
+
);
|
|
565
|
+
}
|
|
566
|
+
);
|
|
567
|
+
Qe.displayName = Ce;
|
|
568
|
+
var st = "MenuSeparator", en = a.forwardRef(
|
|
569
|
+
(e, t) => {
|
|
570
|
+
const { __scopeMenu: n, ...o } = e;
|
|
571
|
+
return /* @__PURE__ */ s(
|
|
572
|
+
N.div,
|
|
573
|
+
{
|
|
574
|
+
role: "separator",
|
|
575
|
+
"aria-orientation": "horizontal",
|
|
576
|
+
...o,
|
|
577
|
+
ref: t
|
|
578
|
+
}
|
|
579
|
+
);
|
|
580
|
+
}
|
|
581
|
+
);
|
|
582
|
+
en.displayName = st;
|
|
583
|
+
var ut = "MenuArrow", nn = a.forwardRef(
|
|
584
|
+
(e, t) => {
|
|
585
|
+
const { __scopeMenu: n, ...o } = e, r = re(n);
|
|
586
|
+
return /* @__PURE__ */ s(Dn, { ...r, ...o, ref: t });
|
|
587
|
+
}
|
|
588
|
+
);
|
|
589
|
+
nn.displayName = ut;
|
|
590
|
+
var it = "MenuSub", [vo, tn] = k(it), X = "MenuSubTrigger", on = a.forwardRef(
|
|
591
|
+
(e, t) => {
|
|
592
|
+
const n = $(X, e.__scopeMenu), o = q(X, e.__scopeMenu), r = tn(X, e.__scopeMenu), c = Me(X, e.__scopeMenu), i = a.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: m } = c, v = { __scopeMenu: e.__scopeMenu }, d = a.useCallback(() => {
|
|
593
|
+
i.current && window.clearTimeout(i.current), i.current = null;
|
|
594
|
+
}, []);
|
|
595
|
+
return a.useEffect(() => d, [d]), a.useEffect(() => {
|
|
596
|
+
const u = l.current;
|
|
597
|
+
return () => {
|
|
598
|
+
window.clearTimeout(u), m(null);
|
|
599
|
+
};
|
|
600
|
+
}, [l, m]), /* @__PURE__ */ s(we, { asChild: !0, ...v, children: /* @__PURE__ */ s(
|
|
601
|
+
Xe,
|
|
602
|
+
{
|
|
603
|
+
id: r.triggerId,
|
|
604
|
+
"aria-haspopup": "menu",
|
|
605
|
+
"aria-expanded": n.open,
|
|
606
|
+
"aria-controls": r.contentId,
|
|
607
|
+
"data-state": cn(n.open),
|
|
608
|
+
...e,
|
|
609
|
+
ref: Pe(t, r.onTriggerChange),
|
|
610
|
+
onClick: (u) => {
|
|
611
|
+
var f;
|
|
612
|
+
(f = e.onClick) == null || f.call(e, u), !(e.disabled || u.defaultPrevented) && (u.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
613
|
+
},
|
|
614
|
+
onPointerMove: g(
|
|
615
|
+
e.onPointerMove,
|
|
616
|
+
j((u) => {
|
|
617
|
+
c.onItemEnter(u), !u.defaultPrevented && !e.disabled && !n.open && !i.current && (c.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
618
|
+
n.onOpenChange(!0), d();
|
|
619
|
+
}, 100));
|
|
620
|
+
})
|
|
621
|
+
),
|
|
622
|
+
onPointerLeave: g(
|
|
623
|
+
e.onPointerLeave,
|
|
624
|
+
j((u) => {
|
|
625
|
+
var M, w;
|
|
626
|
+
d();
|
|
627
|
+
const f = (M = n.content) == null ? void 0 : M.getBoundingClientRect();
|
|
628
|
+
if (f) {
|
|
629
|
+
const b = (w = n.content) == null ? void 0 : w.dataset.side, _ = b === "right", R = _ ? -5 : 5, T = f[_ ? "left" : "right"], h = f[_ ? "right" : "left"];
|
|
630
|
+
c.onPointerGraceIntentChange({
|
|
631
|
+
area: [
|
|
632
|
+
// Apply a bleed on clientX to ensure that our exit point is
|
|
633
|
+
// consistently within polygon bounds
|
|
634
|
+
{ x: u.clientX + R, y: u.clientY },
|
|
635
|
+
{ x: T, y: f.top },
|
|
636
|
+
{ x: h, y: f.top },
|
|
637
|
+
{ x: h, y: f.bottom },
|
|
638
|
+
{ x: T, y: f.bottom }
|
|
639
|
+
],
|
|
640
|
+
side: b
|
|
641
|
+
}), window.clearTimeout(l.current), l.current = window.setTimeout(
|
|
642
|
+
() => c.onPointerGraceIntentChange(null),
|
|
643
|
+
300
|
|
644
|
+
);
|
|
645
|
+
} else {
|
|
646
|
+
if (c.onTriggerLeave(u), u.defaultPrevented) return;
|
|
647
|
+
c.onPointerGraceIntentChange(null);
|
|
648
|
+
}
|
|
649
|
+
})
|
|
650
|
+
),
|
|
651
|
+
onKeyDown: g(e.onKeyDown, (u) => {
|
|
652
|
+
var M;
|
|
653
|
+
const f = c.searchRef.current !== "";
|
|
654
|
+
e.disabled || f && u.key === " " || Vn[o.dir].includes(u.key) && (n.onOpenChange(!0), (M = n.content) == null || M.focus(), u.preventDefault());
|
|
655
|
+
})
|
|
656
|
+
}
|
|
657
|
+
) });
|
|
658
|
+
}
|
|
659
|
+
);
|
|
660
|
+
on.displayName = X;
|
|
661
|
+
var rn = "MenuSubContent", an = a.forwardRef(
|
|
662
|
+
(e, t) => {
|
|
663
|
+
const n = Ve(S, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, c = $(S, e.__scopeMenu), i = q(S, e.__scopeMenu), l = tn(rn, e.__scopeMenu), m = a.useRef(null), v = U(t, m);
|
|
664
|
+
return /* @__PURE__ */ s(H.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s(ge, { present: o || c.open, children: /* @__PURE__ */ s(H.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ s(
|
|
665
|
+
_e,
|
|
666
|
+
{
|
|
667
|
+
id: l.contentId,
|
|
668
|
+
"aria-labelledby": l.triggerId,
|
|
669
|
+
...r,
|
|
670
|
+
ref: v,
|
|
671
|
+
align: "start",
|
|
672
|
+
side: i.dir === "rtl" ? "left" : "right",
|
|
673
|
+
disableOutsidePointerEvents: !1,
|
|
674
|
+
disableOutsideScroll: !1,
|
|
675
|
+
trapFocus: !1,
|
|
676
|
+
onOpenAutoFocus: (d) => {
|
|
677
|
+
var u;
|
|
678
|
+
i.isUsingKeyboardRef.current && ((u = m.current) == null || u.focus()), d.preventDefault();
|
|
679
|
+
},
|
|
680
|
+
onCloseAutoFocus: (d) => d.preventDefault(),
|
|
681
|
+
onFocusOutside: g(e.onFocusOutside, (d) => {
|
|
682
|
+
d.target !== l.trigger && c.onOpenChange(!1);
|
|
683
|
+
}),
|
|
684
|
+
onEscapeKeyDown: g(e.onEscapeKeyDown, (d) => {
|
|
685
|
+
i.onClose(), d.preventDefault();
|
|
686
|
+
}),
|
|
687
|
+
onKeyDown: g(e.onKeyDown, (d) => {
|
|
688
|
+
var M;
|
|
689
|
+
const u = d.currentTarget.contains(d.target), f = Wn[i.dir].includes(d.key);
|
|
690
|
+
u && f && (c.onOpenChange(!1), (M = l.trigger) == null || M.focus(), d.preventDefault());
|
|
691
|
+
})
|
|
692
|
+
}
|
|
693
|
+
) }) }) });
|
|
694
|
+
}
|
|
695
|
+
);
|
|
696
|
+
an.displayName = rn;
|
|
697
|
+
function cn(e) {
|
|
698
|
+
return e ? "open" : "closed";
|
|
699
|
+
}
|
|
700
|
+
function oe(e) {
|
|
701
|
+
return e === "indeterminate";
|
|
702
|
+
}
|
|
703
|
+
function Re(e) {
|
|
704
|
+
return oe(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
705
|
+
}
|
|
706
|
+
function dt(e) {
|
|
707
|
+
const t = document.activeElement;
|
|
708
|
+
for (const n of e)
|
|
709
|
+
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
710
|
+
}
|
|
711
|
+
function lt(e, t) {
|
|
712
|
+
return e.map((n, o) => e[(t + o) % e.length]);
|
|
713
|
+
}
|
|
714
|
+
function ft(e, t, n) {
|
|
715
|
+
const r = t.length > 1 && Array.from(t).every((v) => v === t[0]) ? t[0] : t, c = n ? e.indexOf(n) : -1;
|
|
716
|
+
let i = lt(e, Math.max(c, 0));
|
|
717
|
+
r.length === 1 && (i = i.filter((v) => v !== n));
|
|
718
|
+
const m = i.find(
|
|
719
|
+
(v) => v.toLowerCase().startsWith(r.toLowerCase())
|
|
720
|
+
);
|
|
721
|
+
return m !== n ? m : void 0;
|
|
722
|
+
}
|
|
723
|
+
function pt(e, t) {
|
|
724
|
+
const { x: n, y: o } = e;
|
|
725
|
+
let r = !1;
|
|
726
|
+
for (let c = 0, i = t.length - 1; c < t.length; i = c++) {
|
|
727
|
+
const l = t[c], m = t[i], v = l.x, d = l.y, u = m.x, f = m.y;
|
|
728
|
+
d > o != f > o && n < (u - v) * (o - d) / (f - d) + v && (r = !r);
|
|
729
|
+
}
|
|
730
|
+
return r;
|
|
731
|
+
}
|
|
732
|
+
function mt(e, t) {
|
|
733
|
+
if (!t) return !1;
|
|
734
|
+
const n = { x: e.clientX, y: e.clientY };
|
|
735
|
+
return pt(n, t);
|
|
736
|
+
}
|
|
737
|
+
function j(e) {
|
|
738
|
+
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
739
|
+
}
|
|
740
|
+
var vt = Be, gt = we, wt = We, Mt = he, _t = Ye, ht = ae, Ct = He, Rt = ze, It = qe, bt = Qe, Et = en, St = nn, Dt = on, yt = an, ce = "DropdownMenu", [Pt, go] = me(
|
|
741
|
+
ce,
|
|
742
|
+
[Ue]
|
|
743
|
+
), I = Ue(), [xt, sn] = Pt(ce), un = (e) => {
|
|
744
|
+
const {
|
|
745
|
+
__scopeDropdownMenu: t,
|
|
746
|
+
children: n,
|
|
747
|
+
dir: o,
|
|
748
|
+
open: r,
|
|
749
|
+
defaultOpen: c,
|
|
750
|
+
onOpenChange: i,
|
|
751
|
+
modal: l = !0
|
|
752
|
+
} = e, m = I(t), v = a.useRef(null), [d, u] = ye({
|
|
753
|
+
prop: r,
|
|
754
|
+
defaultProp: c ?? !1,
|
|
755
|
+
onChange: i,
|
|
756
|
+
caller: ce
|
|
757
|
+
});
|
|
758
|
+
return /* @__PURE__ */ s(
|
|
759
|
+
xt,
|
|
760
|
+
{
|
|
761
|
+
scope: t,
|
|
762
|
+
triggerId: le(),
|
|
763
|
+
triggerRef: v,
|
|
764
|
+
contentId: le(),
|
|
765
|
+
open: d,
|
|
766
|
+
onOpenChange: u,
|
|
767
|
+
onOpenToggle: a.useCallback(() => u((f) => !f), [u]),
|
|
768
|
+
modal: l,
|
|
769
|
+
children: /* @__PURE__ */ s(vt, { ...m, open: d, onOpenChange: u, dir: o, modal: l, children: n })
|
|
770
|
+
}
|
|
771
|
+
);
|
|
772
|
+
};
|
|
773
|
+
un.displayName = ce;
|
|
774
|
+
var dn = "DropdownMenuTrigger", ln = a.forwardRef(
|
|
775
|
+
(e, t) => {
|
|
776
|
+
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, c = sn(dn, n), i = I(n);
|
|
777
|
+
return /* @__PURE__ */ s(gt, { asChild: !0, ...i, children: /* @__PURE__ */ s(
|
|
778
|
+
N.button,
|
|
779
|
+
{
|
|
780
|
+
type: "button",
|
|
781
|
+
id: c.triggerId,
|
|
782
|
+
"aria-haspopup": "menu",
|
|
783
|
+
"aria-expanded": c.open,
|
|
784
|
+
"aria-controls": c.open ? c.contentId : void 0,
|
|
785
|
+
"data-state": c.open ? "open" : "closed",
|
|
786
|
+
"data-disabled": o ? "" : void 0,
|
|
787
|
+
disabled: o,
|
|
788
|
+
...r,
|
|
789
|
+
ref: Pe(t, c.triggerRef),
|
|
790
|
+
onPointerDown: g(e.onPointerDown, (l) => {
|
|
791
|
+
!o && l.button === 0 && l.ctrlKey === !1 && (c.onOpenToggle(), c.open || l.preventDefault());
|
|
792
|
+
}),
|
|
793
|
+
onKeyDown: g(e.onKeyDown, (l) => {
|
|
794
|
+
o || (["Enter", " "].includes(l.key) && c.onOpenToggle(), l.key === "ArrowDown" && c.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(l.key) && l.preventDefault());
|
|
795
|
+
})
|
|
796
|
+
}
|
|
797
|
+
) });
|
|
798
|
+
}
|
|
799
|
+
);
|
|
800
|
+
ln.displayName = dn;
|
|
801
|
+
var fn = "DropdownMenuContent", pn = a.forwardRef(
|
|
802
|
+
(e, t) => {
|
|
803
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = sn(fn, n), c = I(n), i = a.useRef(!1);
|
|
804
|
+
return /* @__PURE__ */ s(
|
|
805
|
+
wt,
|
|
806
|
+
{
|
|
807
|
+
id: r.contentId,
|
|
808
|
+
"aria-labelledby": r.triggerId,
|
|
809
|
+
...c,
|
|
810
|
+
...o,
|
|
811
|
+
ref: t,
|
|
812
|
+
onCloseAutoFocus: g(e.onCloseAutoFocus, (l) => {
|
|
813
|
+
var m;
|
|
814
|
+
i.current || (m = r.triggerRef.current) == null || m.focus(), i.current = !1, l.preventDefault();
|
|
815
|
+
}),
|
|
816
|
+
onInteractOutside: g(e.onInteractOutside, (l) => {
|
|
817
|
+
const m = l.detail.originalEvent, v = m.button === 0 && m.ctrlKey === !0, d = m.button === 2 || v;
|
|
818
|
+
(!r.modal || d) && (i.current = !0);
|
|
819
|
+
}),
|
|
820
|
+
style: {
|
|
821
|
+
...e.style,
|
|
822
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
823
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
824
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
825
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
826
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
);
|
|
830
|
+
}
|
|
831
|
+
);
|
|
832
|
+
pn.displayName = fn;
|
|
833
|
+
var Tt = "DropdownMenuGroup", At = a.forwardRef(
|
|
834
|
+
(e, t) => {
|
|
835
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = I(n);
|
|
836
|
+
return /* @__PURE__ */ s(Mt, { ...r, ...o, ref: t });
|
|
837
|
+
}
|
|
838
|
+
);
|
|
839
|
+
At.displayName = Tt;
|
|
840
|
+
var Nt = "DropdownMenuLabel", Ot = a.forwardRef(
|
|
841
|
+
(e, t) => {
|
|
842
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = I(n);
|
|
843
|
+
return /* @__PURE__ */ s(_t, { ...r, ...o, ref: t });
|
|
844
|
+
}
|
|
845
|
+
);
|
|
846
|
+
Ot.displayName = Nt;
|
|
847
|
+
var Ft = "DropdownMenuItem", mn = a.forwardRef(
|
|
848
|
+
(e, t) => {
|
|
849
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = I(n);
|
|
850
|
+
return /* @__PURE__ */ s(ht, { ...r, ...o, ref: t });
|
|
851
|
+
}
|
|
852
|
+
);
|
|
853
|
+
mn.displayName = Ft;
|
|
854
|
+
var kt = "DropdownMenuCheckboxItem", Gt = a.forwardRef((e, t) => {
|
|
855
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = I(n);
|
|
856
|
+
return /* @__PURE__ */ s(Ct, { ...r, ...o, ref: t });
|
|
857
|
+
});
|
|
858
|
+
Gt.displayName = kt;
|
|
859
|
+
var Lt = "DropdownMenuRadioGroup", Kt = a.forwardRef((e, t) => {
|
|
860
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = I(n);
|
|
861
|
+
return /* @__PURE__ */ s(Rt, { ...r, ...o, ref: t });
|
|
862
|
+
});
|
|
863
|
+
Kt.displayName = Lt;
|
|
864
|
+
var Ut = "DropdownMenuRadioItem", $t = a.forwardRef((e, t) => {
|
|
865
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = I(n);
|
|
866
|
+
return /* @__PURE__ */ s(It, { ...r, ...o, ref: t });
|
|
867
|
+
});
|
|
868
|
+
$t.displayName = Ut;
|
|
869
|
+
var Bt = "DropdownMenuItemIndicator", Vt = a.forwardRef((e, t) => {
|
|
870
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = I(n);
|
|
871
|
+
return /* @__PURE__ */ s(bt, { ...r, ...o, ref: t });
|
|
872
|
+
});
|
|
873
|
+
Vt.displayName = Bt;
|
|
874
|
+
var Wt = "DropdownMenuSeparator", Yt = a.forwardRef((e, t) => {
|
|
875
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = I(n);
|
|
876
|
+
return /* @__PURE__ */ s(Et, { ...r, ...o, ref: t });
|
|
877
|
+
});
|
|
878
|
+
Yt.displayName = Wt;
|
|
879
|
+
var Xt = "DropdownMenuArrow", Ht = a.forwardRef(
|
|
880
|
+
(e, t) => {
|
|
881
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = I(n);
|
|
882
|
+
return /* @__PURE__ */ s(St, { ...r, ...o, ref: t });
|
|
883
|
+
}
|
|
884
|
+
);
|
|
885
|
+
Ht.displayName = Xt;
|
|
886
|
+
var jt = "DropdownMenuSubTrigger", zt = a.forwardRef((e, t) => {
|
|
887
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = I(n);
|
|
888
|
+
return /* @__PURE__ */ s(Dt, { ...r, ...o, ref: t });
|
|
889
|
+
});
|
|
890
|
+
zt.displayName = jt;
|
|
891
|
+
var Zt = "DropdownMenuSubContent", qt = a.forwardRef((e, t) => {
|
|
892
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = I(n);
|
|
893
|
+
return /* @__PURE__ */ s(
|
|
894
|
+
yt,
|
|
895
|
+
{
|
|
896
|
+
...r,
|
|
897
|
+
...o,
|
|
898
|
+
ref: t,
|
|
899
|
+
style: {
|
|
900
|
+
...e.style,
|
|
901
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
902
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
903
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
904
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
905
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
);
|
|
909
|
+
});
|
|
910
|
+
qt.displayName = Zt;
|
|
911
|
+
var wo = un, Mo = ln, Jt = pn, Qt = mn;
|
|
912
|
+
const eo = "cfxui__DropdownContent__fullWidth__c56c3", no = "cfxui__DropdownContent__item__8feac", to = "cfxui__DropdownContent__content__ea3aa", oo = "cfxui__DropdownContent__disabled__9002a", ne = {
|
|
913
|
+
fullWidth: eo,
|
|
914
|
+
item: no,
|
|
915
|
+
content: to,
|
|
916
|
+
disabled: oo
|
|
917
|
+
};
|
|
918
|
+
function ro(e) {
|
|
919
|
+
const {
|
|
920
|
+
triggerWidth: t,
|
|
921
|
+
options: n,
|
|
922
|
+
fullWidth: o = !1,
|
|
923
|
+
className: r,
|
|
924
|
+
itemClassName: c,
|
|
925
|
+
onSelect: i
|
|
926
|
+
} = e, l = Se(
|
|
927
|
+
r,
|
|
928
|
+
ne.content,
|
|
929
|
+
{
|
|
930
|
+
[ne.fullWidth]: o
|
|
931
|
+
}
|
|
932
|
+
);
|
|
933
|
+
return /* @__PURE__ */ s(
|
|
934
|
+
Jt,
|
|
935
|
+
{
|
|
936
|
+
align: "end",
|
|
937
|
+
side: "bottom",
|
|
938
|
+
className: l,
|
|
939
|
+
style: {
|
|
940
|
+
width: t,
|
|
941
|
+
zIndex: yn.zindex("max")
|
|
942
|
+
},
|
|
943
|
+
children: n.map((m) => /* @__PURE__ */ s(
|
|
944
|
+
Qt,
|
|
945
|
+
{
|
|
946
|
+
disabled: m.disabled,
|
|
947
|
+
className: Se(ne.item, c, {
|
|
948
|
+
[ne.disabled]: m.disabled
|
|
949
|
+
}),
|
|
950
|
+
onSelect: () => i(m.value),
|
|
951
|
+
style: { width: t },
|
|
952
|
+
children: m.label
|
|
953
|
+
},
|
|
954
|
+
m.value
|
|
955
|
+
))
|
|
956
|
+
}
|
|
957
|
+
);
|
|
958
|
+
}
|
|
959
|
+
const _o = gn.memo(ro);
|
|
960
|
+
export {
|
|
961
|
+
_o as D,
|
|
962
|
+
wo as R,
|
|
963
|
+
Mo as T
|
|
964
|
+
};
|