twenty-ui 2.44.0 → 2.46.0
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/README.md +24 -18
- package/dist/{AllIcons-CFMhMGzh.js → AllIcons-CLbeNZLM.js} +1 -1
- package/dist/{AllIcons-Cz8pObev.cjs → AllIcons-C_27esn4.cjs} +1 -1
- package/dist/Avatar-DK78lGPU.cjs +1 -0
- package/dist/Avatar-DnJMCjoR.js +72 -0
- package/dist/Button-DQUIhQAm.js +71 -0
- package/dist/Button-DkijwPOi.cjs +1 -0
- package/dist/Dropdown-CZVEnq0N.js +774 -0
- package/dist/Dropdown-Ckcy6ZLF.cjs +1 -0
- package/dist/{Heading-CQqDjovJ.cjs → Heading-CTRYClCO.cjs} +1 -1
- package/dist/{Heading-DvxTKEaL.js → Heading-pXllCJCO.js} +4 -4
- package/dist/Input-D3-FH2Zz.js +49 -0
- package/dist/Input-W2vWPc9r.cjs +1 -0
- package/dist/InputGroup-DEozqrQd.cjs +1 -0
- package/dist/InputGroup-wM9PT12U.js +51 -0
- package/dist/ListItem-BVJEFywj.js +86 -0
- package/dist/ListItem-fFbJhi6M.cjs +1 -0
- package/dist/ListItem.module-Ar-vZ7Qu.js +34 -0
- package/dist/ListItem.module-B8NeDH1P.cjs +1 -0
- package/dist/Loader-BBMC4fe6.js +29 -0
- package/dist/Loader-GFhTL4Aw.cjs +1 -0
- package/dist/MenuSeparator-BdPwyE9f.js +25 -0
- package/dist/MenuSeparator-wRxC7b_c.cjs +1 -0
- package/dist/OverflowingTextWithTooltip-CXHiE4BG.cjs +1 -0
- package/dist/OverflowingTextWithTooltip-wRABzEWd.js +199 -0
- package/dist/Popover-C-JjVGKl.js +57 -0
- package/dist/Popover-D_S9MGZm.cjs +1 -0
- package/dist/ProgressBar-BHiYQW6F.cjs +1 -0
- package/dist/ProgressBar-B_GDjg9S.js +83 -0
- package/dist/ProgressRing-CHLADu5q.cjs +1 -0
- package/dist/ProgressRing-Cwqo4hWZ.js +57 -0
- package/dist/ResizeHandle-BGboQXCx.cjs +1 -0
- package/dist/ResizeHandle-X2NdHzqt.js +191 -0
- package/dist/Separator-0LzwPfOn.js +10 -0
- package/dist/Separator-UJVlrTzw.cjs +1 -0
- package/dist/Shortcut-CWRh02hg.js +71 -0
- package/dist/Shortcut-oYvcja2P.cjs +1 -0
- package/dist/Switch-Ck8QAAbb.cjs +1 -0
- package/dist/Switch-DOd0gh7W.js +25 -0
- package/dist/TabsTabContent-DZUNi_iE.cjs +1 -0
- package/dist/TabsTabContent-s6J5bZ3R.js +39 -0
- package/dist/TintedIconTile-BZgRO7cg.js +40 -0
- package/dist/TintedIconTile-Dp4uH0Up.cjs +1 -0
- package/dist/VisuallyHidden-B-n4x1KY.cjs +1 -0
- package/dist/VisuallyHidden-CFZP7ybO.js +14 -0
- package/dist/components/code-editor/CodeEditorHeader/CodeEditorHeader.d.ts +1 -1
- package/dist/components/code-editor/CodeEditorHeader/types/CodeEditorHeaderProps.d.ts +6 -4
- package/dist/components/code-editor.cjs +1 -1
- package/dist/components/code-editor.mjs +76 -69
- package/dist/components/data-display/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/components/data-display/AvatarGroup/__stories__/AvatarGroupIdentityExample.d.ts +1 -0
- package/dist/components/data-display/AvatarGroup/__stories__/AvatarGroupStatefulAvatar.d.ts +3 -0
- package/dist/components/data-display/AvatarGroup/types/AvatarGroupProps.d.ts +4 -4
- package/dist/components/data-display/CommandBlock/CommandBlock.d.ts +2 -7
- package/dist/components/data-display/CommandBlock/types/CommandBlockProps.d.ts +6 -0
- package/dist/components/data-display/MetricRow/MetricRow.d.ts +2 -0
- package/dist/components/data-display/MetricRow/types/MetricRowProps.d.ts +10 -0
- package/dist/components/data-display/TintedIconTile/TintedIconTile.d.ts +1 -1
- package/dist/components/data-display/TintedIconTile/types/TintedIconTileProps.d.ts +4 -5
- package/dist/components/data-display/index.d.ts +17 -0
- package/dist/components/data-display.cjs +1 -0
- package/dist/components/data-display.mjs +11 -0
- package/dist/components/feedback/Callout/Callout.d.ts +3 -2
- package/dist/components/feedback/Callout/internal/CalloutAction.d.ts +2 -0
- package/dist/components/feedback/Callout/internal/CalloutComponent.d.ts +2 -0
- package/dist/components/feedback/Callout/types/CalloutActionProps.d.ts +2 -0
- package/dist/components/feedback/Callout/types/CalloutColor.d.ts +2 -0
- package/dist/components/feedback/Callout/types/CalloutProps.d.ts +14 -12
- package/dist/components/feedback/Callout/types/CalloutState.d.ts +8 -0
- package/dist/components/feedback/Callout/types/CalloutStatus.d.ts +2 -0
- package/dist/components/feedback/Callout/types/CalloutVariant.d.ts +1 -1
- package/dist/components/feedback/InlineBanner/InlineBanner.d.ts +3 -2
- package/dist/components/feedback/InlineBanner/internal/InlineBannerComponent.d.ts +2 -0
- package/dist/components/feedback/InlineBanner/types/InlineBannerLayout.d.ts +1 -0
- package/dist/components/feedback/InlineBanner/types/InlineBannerProps.d.ts +4 -10
- package/dist/components/feedback/Toast/hooks/useToast.d.ts +2 -2
- package/dist/components/feedback/index.d.ts +20 -0
- package/dist/components/feedback.cjs +1 -0
- package/dist/components/feedback.mjs +9 -0
- package/dist/components/index.d.ts +6 -80
- package/dist/components/input/CountrySelect/CountrySelect.d.ts +2 -0
- package/dist/components/input/CountrySelect/__stories__/COUNTRY_CHOICES.d.ts +5 -0
- package/dist/components/input/CountrySelect/__stories__/CountrySelectAvailabilityExample.d.ts +8 -0
- package/dist/components/input/CountrySelect/__stories__/CountrySelectExample.d.ts +2 -0
- package/dist/components/input/CountrySelect/__stories__/assertCountryAvailabilityReset.d.ts +5 -0
- package/dist/components/input/CountrySelect/__stories__/waitForCountryPopup.d.ts +4 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectAvailabilityEffect.d.ts +7 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectOptions.d.ts +11 -0
- package/dist/components/input/CountrySelect/internal/getCountrySelectLabelledBy.d.ts +5 -0
- package/dist/components/input/CountrySelect/types/CountryChoice.d.ts +6 -0
- package/dist/components/input/CountrySelect/types/CountrySelectProps.d.ts +15 -0
- package/dist/components/input/CurrencyPicker/CurrencyPicker.d.ts +4 -0
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerExample.d.ts +11 -0
- package/dist/components/input/CurrencyPicker/__stories__/currencyPickerStoryOptions.d.ts +9 -0
- package/dist/components/input/CurrencyPicker/__stories__/openCurrencyPicker.d.ts +8 -0
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerOptions.d.ts +2 -0
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerTrigger.d.ts +2 -0
- package/dist/components/input/CurrencyPicker/internal/getCurrencyPickerLabel.d.ts +2 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerOption.d.ts +5 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerOptionsProps.d.ts +10 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerTriggerProps.d.ts +4 -0
- package/dist/components/input/IconButton/types/IconButtonProps.d.ts +8 -3
- package/dist/components/input/ImageInput/ImageInput.d.ts +2 -0
- package/dist/components/input/ImageInput/__stories__/ImageInputPreviewChangesExample.d.ts +2 -0
- package/dist/components/input/ImageInput/__stories__/imageInputPreviewUrl.d.ts +1 -0
- package/dist/components/input/ImageInput/internal/ImageInputPreview.d.ts +5 -0
- package/dist/components/input/ImageInput/types/ImageInputProps.d.ts +15 -0
- package/dist/components/input/PhoneCountryPicker/PhoneCountryPicker.d.ts +4 -0
- package/dist/components/input/PhoneCountryPicker/__stories__/PhoneCountryPickerExample.d.ts +12 -0
- package/dist/components/input/PhoneCountryPicker/__stories__/openPhoneCountryPicker.d.ts +8 -0
- package/dist/components/input/PhoneCountryPicker/__stories__/phoneCountryOptions.d.ts +2 -0
- package/dist/components/input/PhoneCountryPicker/__stories__/phoneCountryPickerStoryA11yParameters.d.ts +12 -0
- package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerOptions.d.ts +2 -0
- package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerTrigger.d.ts +2 -0
- package/dist/components/input/PhoneCountryPicker/internal/getPhoneCountryOptionLabel.d.ts +2 -0
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryOption.d.ts +7 -0
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerOptionsProps.d.ts +8 -0
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerTriggerProps.d.ts +6 -0
- package/dist/components/input/index.d.ts +23 -0
- package/dist/components/input.cjs +1 -0
- package/dist/components/input.mjs +13 -0
- package/dist/components/layout/AnimatedIconCrossfade/AnimatedIconCrossfade.d.ts +2 -9
- package/dist/components/layout/AnimatedIconCrossfade/types/AnimatedIconCrossfadeProps.d.ts +7 -0
- package/dist/components/layout/OverflowingList/OverflowingList.d.ts +2 -0
- package/dist/components/layout/OverflowingList/__stories__/OVERFLOWING_LIST_STORY_ITEMS.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListControlledFocusExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListMutableTag.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListResizeExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/expectOverflowingListPopupGeometry.d.ts +4 -0
- package/dist/components/layout/OverflowingList/internal/OverflowingListItem.d.ts +9 -0
- package/dist/components/layout/OverflowingList/internal/getVisibleItemCount.d.ts +6 -0
- package/dist/components/layout/OverflowingList/internal/measureItemWidths.d.ts +5 -0
- package/dist/components/layout/OverflowingList/internal/useFocusedElementUnmountRef.d.ts +1 -0
- package/dist/components/layout/OverflowingList/internal/useOverflowingListLayout.d.ts +12 -0
- package/dist/components/layout/OverflowingList/types/OverflowingListProps.d.ts +7 -0
- package/dist/components/layout/Section/Section.d.ts +2 -2
- package/dist/components/layout/Section/internal/SectionHeader.d.ts +1 -1
- package/dist/components/layout/Section/types/SectionHeaderProps.d.ts +3 -2
- package/dist/components/layout/index.d.ts +7 -0
- package/dist/components/layout.cjs +1 -0
- package/dist/components/layout.mjs +6 -0
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +13 -13
- package/dist/components/navigation/Dropdown/internal/DropdownActionItem.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownBack.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownItemOwner.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/DropdownItemWithActions.d.ts +7 -0
- package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownSection.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownSubmenuTrigger.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/getNativeDisabled.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/getNextDropdownGridItem.d.ts +7 -0
- package/dist/components/navigation/Dropdown/internal/getNextDropdownItem.d.ts +2 -1
- package/dist/components/navigation/Dropdown/internal/useDropdownItemFocus.d.ts +2 -1
- package/dist/components/navigation/Dropdown/types/DropdownActionItemProps.d.ts +1 -1
- package/dist/components/navigation/Dropdown/types/DropdownContentProps.d.ts +3 -1
- package/dist/components/navigation/Dropdown/types/DropdownDismissEvent.d.ts +1 -0
- package/dist/components/navigation/Dropdown/types/DropdownOptionItemProps.d.ts +1 -1
- package/dist/components/navigation/Dropdown/types/DropdownSectionProps.d.ts +1 -0
- package/dist/components/navigation/Dropdown/types/DropdownSubmenuTriggerProps.d.ts +1 -1
- package/dist/components/navigation/Dropdown/types/DropdownTriggerProps.d.ts +1 -1
- package/dist/components/navigation/ListItemButton/ListItemButton.d.ts +2 -0
- package/dist/components/navigation/ListItemButton/types/ListItemButtonProps.d.ts +4 -0
- package/dist/components/navigation/MenuItem/MenuItem.d.ts +1 -1
- package/dist/components/navigation/MenuItem/types/MenuItemProps.d.ts +3 -3
- package/dist/components/navigation/TabButton/types/TabButtonProps.d.ts +1 -1
- package/dist/components/navigation/index.d.ts +35 -0
- package/dist/components/navigation.cjs +1 -0
- package/dist/components/navigation.mjs +14 -0
- package/dist/components/settings/SettingsRow/SettingsRow.d.ts +2 -0
- package/dist/components/settings/SettingsRow/__stories__/ControlledSettingsRowFormExample.d.ts +2 -0
- package/dist/components/settings/SettingsRow/internal/SettingsRowLabel.d.ts +2 -0
- package/dist/components/settings/SettingsRow/types/SettingsRowProps.d.ts +11 -0
- package/dist/components/settings/index.d.ts +2 -0
- package/dist/components/settings.cjs +1 -0
- package/dist/components/settings.mjs +4 -0
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +44 -31
- package/dist/data-display-BMM4rYOl.cjs +1 -0
- package/dist/data-display-Bw-5dsCu.cjs +2 -0
- package/dist/data-display-CRDo6TBH.js +175 -0
- package/dist/data-display-CehSwX8i.js +333 -0
- package/dist/feedback-BV1EK98d.js +382 -0
- package/dist/feedback-BleeRoOP.cjs +1 -0
- package/dist/feedback-CI5j7IZ3.js +37 -0
- package/dist/feedback-f1_n3da1.cjs +1 -0
- package/dist/handleClickableElementKeyDown-C8Uz61XJ.js +6 -0
- package/dist/handleClickableElementKeyDown-CByqtBhO.cjs +1 -0
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/index.d.ts +1 -1
- package/dist/{icon-B7aZ6RxF.js → icon-Bo3y4NHM.js} +552 -548
- package/dist/{icon-DK8OPi-m.cjs → icon-DM8Yjnig.cjs} +1 -1
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +468 -464
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +657 -622
- package/dist/input-CKcuJwhb.js +450 -0
- package/dist/input-CmZ5aC9o.js +548 -0
- package/dist/input-D9vXRp8R.cjs +1 -0
- package/dist/input-DSvyF-Tb.cjs +1 -0
- package/dist/isRenderableSlot-DT_depzM.js +6 -0
- package/dist/isRenderableSlot-Guryb6Nf.cjs +1 -0
- package/dist/layout-Bt-DUE1X.js +267 -0
- package/dist/layout-DJq0Dcmq.cjs +1 -0
- package/dist/layout-d4uPminV.cjs +1 -0
- package/dist/layout-xYrynD7_.js +29 -0
- package/dist/mergeClassNames-ClFMR1v0.js +6 -0
- package/dist/mergeClassNames-D4lshrT6.cjs +1 -0
- package/dist/navigation-BVhRDMCr.js +394 -0
- package/dist/navigation-CsxM7PWb.cjs +1 -0
- package/dist/navigation-DK1z9KJj.js +124 -0
- package/dist/navigation-DOSnqFwk.cjs +1 -0
- package/dist/normalizeSearchText-DA4xMLCJ.js +18 -0
- package/dist/normalizeSearchText-DoNMfZqV.cjs +1 -0
- package/dist/primitives/accessibility/components/VisuallyHidden.d.ts +2 -0
- package/dist/primitives/accessibility/index.d.ts +2 -1
- package/dist/primitives/accessibility/types/VisuallyHiddenProps.d.ts +2 -0
- package/dist/primitives/accessibility.cjs +1 -1
- package/dist/primitives/accessibility.mjs +4 -3
- package/dist/primitives/data-display/Avatar/Avatar.d.ts +5 -1
- package/dist/primitives/data-display/Avatar/internal/AvatarFallback.d.ts +2 -0
- package/dist/primitives/data-display/Avatar/internal/AvatarImage.d.ts +2 -0
- package/dist/primitives/data-display/Avatar/internal/AvatarRoot.d.ts +2 -0
- package/dist/primitives/data-display/Avatar/internal/getAvatarInitial.d.ts +1 -0
- package/dist/primitives/data-display/Avatar/types/AvatarFallbackProps.d.ts +2 -0
- package/dist/primitives/data-display/Avatar/types/AvatarFallbackState.d.ts +2 -0
- package/dist/primitives/data-display/Avatar/types/AvatarImageLoadingStatus.d.ts +2 -0
- package/dist/primitives/data-display/Avatar/types/AvatarImageProps.d.ts +2 -0
- package/dist/primitives/data-display/Avatar/types/AvatarImageState.d.ts +2 -0
- package/dist/primitives/data-display/Avatar/types/AvatarProps.d.ts +6 -16
- package/dist/primitives/data-display/Avatar/types/AvatarRootProps.d.ts +15 -0
- package/dist/primitives/data-display/Avatar/types/AvatarRootState.d.ts +2 -0
- package/dist/primitives/data-display/Chip/Chip.d.ts +1 -1
- package/dist/primitives/data-display/Chip/types/ChipProps.d.ts +2 -10
- package/dist/primitives/data-display/ColorSample/ColorSample.d.ts +2 -12
- package/dist/primitives/data-display/ColorSample/types/ColorSampleProps.d.ts +8 -0
- package/dist/primitives/data-display/ColorSample/types/ColorSampleVariant.d.ts +1 -0
- package/dist/primitives/data-display/Status/Status.d.ts +1 -1
- package/dist/primitives/data-display/Status/types/StatusProps.d.ts +2 -19
- package/dist/primitives/data-display/Status/types/StatusState.d.ts +4 -0
- package/dist/primitives/data-display/Tag/Tag.d.ts +1 -1
- package/dist/primitives/data-display/Tag/types/TagProps.d.ts +2 -7
- package/dist/primitives/data-display/Tag/types/TagState.d.ts +5 -0
- package/dist/primitives/data-display/index.d.ts +11 -1
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +2 -2
- package/dist/primitives/feedback/Banner/Banner.d.ts +2 -9
- package/dist/primitives/feedback/Banner/internal/BannerAction.d.ts +2 -0
- package/dist/primitives/feedback/Banner/internal/BannerComponent.d.ts +2 -0
- package/dist/primitives/feedback/Banner/types/BannerActionProps.d.ts +2 -0
- package/dist/primitives/feedback/Banner/types/BannerColor.d.ts +1 -0
- package/dist/primitives/feedback/Banner/types/BannerProps.d.ts +13 -0
- package/dist/primitives/feedback/Banner/types/BannerState.d.ts +8 -0
- package/dist/primitives/feedback/Banner/types/BannerStatus.d.ts +1 -0
- package/dist/primitives/feedback/Banner/types/BannerVariant.d.ts +1 -0
- package/dist/primitives/feedback/Loader/Loader.d.ts +2 -6
- package/dist/primitives/feedback/Loader/types/LoaderProps.d.ts +5 -0
- package/dist/primitives/feedback/ProgressRing/ProgressRing.d.ts +2 -0
- package/dist/primitives/feedback/ProgressRing/types/ProgressRingProps.d.ts +6 -0
- package/dist/primitives/feedback/Skeleton/Skeleton.d.ts +2 -0
- package/dist/primitives/feedback/Skeleton/constants/SKELETON_HEIGHT_SIZES.d.ts +7 -0
- package/dist/primitives/feedback/Skeleton/types/SkeletonProps.d.ts +10 -0
- package/dist/primitives/feedback/index.d.ts +12 -1
- package/dist/primitives/feedback/internal/constants/FeedbackStatusColors.d.ts +7 -0
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +10 -5
- package/dist/primitives/input/Autocomplete/Autocomplete.d.ts +9 -0
- package/dist/primitives/input/Autocomplete/__stories__/AutocompleteExample.d.ts +4 -0
- package/dist/primitives/input/Autocomplete/internal/AutocompleteEmpty.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/internal/AutocompleteInput.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/internal/AutocompleteInputGroup.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/internal/AutocompleteItem.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/internal/AutocompleteList.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/internal/AutocompletePopup.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/internal/AutocompleteRoot.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteEmptyProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteInputGroupProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteInputProps.d.ts +5 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteItemProps.d.ts +3 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteListProps.d.ts +2 -0
- package/dist/primitives/input/Autocomplete/types/AutocompletePopupProps.d.ts +5 -0
- package/dist/primitives/input/Autocomplete/types/AutocompleteRootProps.d.ts +4 -0
- package/dist/primitives/input/Button/Button.d.ts +1 -1
- package/dist/primitives/input/Button/types/ButtonLoadingPosition.d.ts +1 -0
- package/dist/primitives/input/Button/types/ButtonProps.d.ts +6 -2
- package/dist/primitives/input/Checkbox/Checkbox.d.ts +4 -2
- package/dist/primitives/input/Checkbox/internal/CheckboxComponent.d.ts +2 -0
- package/dist/primitives/input/Checkbox/internal/CheckboxIndicator.d.ts +2 -0
- package/dist/primitives/input/Checkbox/internal/CheckboxRoot.d.ts +2 -0
- package/dist/primitives/input/Checkbox/types/CheckboxIndicatorProps.d.ts +2 -0
- package/dist/primitives/input/Checkbox/types/CheckboxProps.d.ts +2 -20
- package/dist/primitives/input/Checkbox/types/CheckboxRootProps.d.ts +12 -0
- package/dist/primitives/input/Field/Field.d.ts +4 -3
- package/dist/primitives/input/Field/internal/FieldDescription.d.ts +1 -1
- package/dist/primitives/input/Field/internal/FieldError.d.ts +1 -1
- package/dist/primitives/input/Field/internal/FieldLabel.d.ts +1 -1
- package/dist/primitives/input/Field/types/FieldControlProps.d.ts +2 -0
- package/dist/primitives/input/Field/types/FieldDescriptionProps.d.ts +2 -0
- package/dist/primitives/input/Field/types/FieldErrorProps.d.ts +2 -0
- package/dist/primitives/input/Field/types/FieldItemProps.d.ts +2 -0
- package/dist/primitives/input/Field/types/FieldLabelProps.d.ts +2 -0
- package/dist/primitives/input/Field/types/FieldRootProps.d.ts +2 -0
- package/dist/primitives/input/Field/types/FieldValidityProps.d.ts +2 -0
- package/dist/primitives/input/Input/types/InputProps.d.ts +0 -1
- package/dist/primitives/input/InputGroup/types/InputGroupProps.d.ts +0 -1
- package/dist/primitives/input/NumberStepper/NumberStepper.d.ts +2 -0
- package/dist/primitives/input/NumberStepper/__stories__/ControlledNumberStepperExample.d.ts +2 -0
- package/dist/primitives/input/NumberStepper/__stories__/NumberStepperFieldExample.d.ts +2 -0
- package/dist/primitives/input/NumberStepper/__stories__/NumberStepperFormExample.d.ts +4 -0
- package/dist/primitives/input/NumberStepper/internal/constants/NumberStepperFormat.d.ts +1 -0
- package/dist/primitives/input/NumberStepper/internal/utils/isBlurRoundingOfCurrentValue.d.ts +8 -0
- package/dist/primitives/input/NumberStepper/types/NumberStepperProps.d.ts +7 -0
- package/dist/primitives/input/Slider/types/SliderRootProps.d.ts +1 -1
- package/dist/primitives/input/Switch/Switch.d.ts +4 -2
- package/dist/primitives/input/Switch/internal/SwitchComponent.d.ts +2 -0
- package/dist/primitives/input/Switch/internal/SwitchRoot.d.ts +2 -0
- package/dist/primitives/input/Switch/internal/SwitchThumb.d.ts +2 -0
- package/dist/primitives/input/Switch/types/SwitchProps.d.ts +2 -6
- package/dist/primitives/input/Switch/types/SwitchRootProps.d.ts +5 -0
- package/dist/primitives/input/Switch/types/SwitchThumbProps.d.ts +2 -0
- package/dist/primitives/input/Textarea/internal/TextareaControl.d.ts +11 -0
- package/dist/primitives/input/Textarea/internal/observeTextareaWidth.d.ts +1 -0
- package/dist/primitives/input/Textarea/types/TextareaProps.d.ts +1 -7
- package/dist/primitives/input/index.d.ts +22 -0
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +19 -14
- package/dist/primitives/layout/Collapsible/Collapsible.d.ts +4 -12
- package/dist/primitives/layout/Collapsible/internal/CollapsiblePanel.d.ts +2 -0
- package/dist/primitives/layout/Collapsible/types/CollapsiblePanelProps.d.ts +8 -0
- package/dist/primitives/layout/Collapsible/types/CollapsiblePanelState.d.ts +2 -0
- package/dist/primitives/layout/Collapsible/types/CollapsibleRootChangeEventDetails.d.ts +2 -0
- package/dist/primitives/layout/Collapsible/types/CollapsibleRootChangeEventReason.d.ts +2 -0
- package/dist/primitives/layout/Collapsible/types/CollapsibleRootProps.d.ts +2 -0
- package/dist/primitives/layout/Collapsible/types/CollapsibleRootState.d.ts +2 -0
- package/dist/primitives/layout/Collapsible/types/CollapsibleTriggerProps.d.ts +2 -0
- package/dist/primitives/layout/Collapsible/types/CollapsibleTriggerState.d.ts +2 -0
- package/dist/primitives/layout/DirectionProvider/DirectionProvider.d.ts +2 -0
- package/dist/primitives/layout/DirectionProvider/types/DirectionProviderProps.d.ts +2 -0
- package/dist/primitives/layout/ResizeHandle/ResizeHandle.d.ts +1 -1
- package/dist/primitives/layout/ResizeHandle/__stories__/ControlledResizeHandlePanel.d.ts +2 -0
- package/dist/primitives/layout/ResizeHandle/__stories__/DisablingResizeHandle.d.ts +2 -0
- package/dist/primitives/layout/ResizeHandle/__stories__/ResizeHandlePanelDemo.d.ts +2 -0
- package/dist/primitives/layout/ResizeHandle/__stories__/UnmountingResizeHandle.d.ts +2 -0
- package/dist/primitives/layout/ResizeHandle/__stories__/playCancelledResize.d.ts +6 -0
- package/dist/primitives/layout/ResizeHandle/internal/ResizeGesture.d.ts +12 -0
- package/dist/primitives/layout/ResizeHandle/internal/ResizeHandleDefaults.constant.d.ts +2 -0
- package/dist/primitives/layout/ResizeHandle/internal/ResizeHandleEdges.constant.d.ts +18 -0
- package/dist/primitives/layout/ResizeHandle/internal/useResizeHandleInteraction.d.ts +13 -14
- package/dist/primitives/layout/ResizeHandle/internal/useResizeHandlePointerInteraction.d.ts +19 -0
- package/dist/primitives/layout/ResizeHandle/types/ResizeHandleProps.d.ts +21 -1
- package/dist/primitives/layout/Separator/Separator.d.ts +2 -0
- package/dist/primitives/layout/Separator/types/SeparatorProps.d.ts +3 -0
- package/dist/primitives/layout/index.d.ts +12 -4
- package/dist/primitives/layout.cjs +1 -1
- package/dist/primitives/layout.mjs +5 -5
- package/dist/primitives/navigation/Breadcrumb/Breadcrumb.d.ts +2 -0
- package/dist/primitives/navigation/Breadcrumb/internal/BreadcrumbItemContent.d.ts +6 -0
- package/dist/primitives/navigation/Breadcrumb/types/BreadcrumbItem.d.ts +5 -0
- package/dist/primitives/navigation/Breadcrumb/types/BreadcrumbProps.d.ts +5 -0
- package/dist/primitives/navigation/ListItem/ListItem.d.ts +1 -1
- package/dist/primitives/navigation/ListItem/__stories__/ListItemMenuExample.d.ts +6 -0
- package/dist/primitives/navigation/ListItem/types/ListItemProps.d.ts +6 -5
- package/dist/primitives/navigation/index.d.ts +3 -0
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +5 -4
- package/dist/primitives/surfaces/AlertDialog/AlertDialog.d.ts +6 -1
- package/dist/primitives/surfaces/AlertDialog/__stories__/AlertDialogExample.d.ts +2 -10
- package/dist/primitives/surfaces/AlertDialog/__stories__/AlertDialogExampleProps.d.ts +11 -0
- package/dist/primitives/surfaces/AlertDialog/internal/AlertDialogBackdrop.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/internal/AlertDialogPopup.d.ts +1 -1
- package/dist/primitives/surfaces/AlertDialog/internal/AlertDialogPortal.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/internal/AlertDialogViewport.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogBackdropProps.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogBackdropState.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogCloseState.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogDescriptionState.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogHandle.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogPopupProps.d.ts +0 -8
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogPopupState.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogPortalProps.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogPortalState.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogRootActions.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogRootChangeEventDetails.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogRootChangeEventReason.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogRootState.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogTitleState.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogTriggerState.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogViewportProps.d.ts +2 -0
- package/dist/primitives/surfaces/AlertDialog/types/AlertDialogViewportState.d.ts +2 -0
- package/dist/primitives/surfaces/Card/Card.d.ts +4 -16
- package/dist/primitives/surfaces/Card/internal/CardContent.d.ts +2 -10
- package/dist/primitives/surfaces/Card/internal/CardFooter.d.ts +2 -6
- package/dist/primitives/surfaces/Card/internal/CardHeader.d.ts +2 -4
- package/dist/primitives/surfaces/Card/internal/CardRoot.d.ts +2 -8
- package/dist/primitives/surfaces/Card/types/CardContentProps.d.ts +4 -0
- package/dist/primitives/surfaces/Card/types/CardFooterProps.d.ts +4 -0
- package/dist/primitives/surfaces/Card/types/CardHeaderProps.d.ts +2 -0
- package/dist/primitives/surfaces/Card/types/CardRootProps.d.ts +6 -0
- package/dist/primitives/surfaces/Dialog/Dialog.d.ts +5 -1
- package/dist/primitives/surfaces/Dialog/__stories__/DialogExample.d.ts +1 -1
- package/dist/primitives/surfaces/Dialog/__stories__/DialogExampleProps.d.ts +3 -0
- package/dist/primitives/surfaces/Dialog/internal/DialogBackdrop.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/internal/DialogPopup.d.ts +1 -1
- package/dist/primitives/surfaces/Dialog/internal/DialogPortal.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/internal/DialogViewport.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogBackdropProps.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogBackdropState.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogCloseState.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogDescriptionState.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogHandle.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogPopupProps.d.ts +0 -4
- package/dist/primitives/surfaces/Dialog/types/DialogPopupState.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogPortalProps.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogPortalState.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogRootActions.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogRootChangeEventDetails.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogRootChangeEventReason.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogRootState.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogTitleState.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogTriggerState.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogViewportProps.d.ts +2 -0
- package/dist/primitives/surfaces/Dialog/types/DialogViewportState.d.ts +2 -0
- package/dist/primitives/surfaces/Menu/internal/getMenuListItemProps.d.ts +2 -2
- package/dist/primitives/surfaces/Menu/types/MenuItemSlotProps.d.ts +1 -1
- package/dist/primitives/surfaces/Popover/Popover.d.ts +8 -1
- package/dist/primitives/surfaces/Popover/internal/PopoverArrow.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/internal/PopoverPopup.d.ts +1 -1
- package/dist/primitives/surfaces/Popover/internal/PopoverPortal.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/internal/PopoverPositioner.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverAlign.d.ts +2 -1
- package/dist/primitives/surfaces/Popover/types/PopoverArrowProps.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverArrowState.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverBackdropProps.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverBackdropState.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverCloseState.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverDescriptionState.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverHandle.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverPopupProps.d.ts +1 -28
- package/dist/primitives/surfaces/Popover/types/PopoverPopupState.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverPortalProps.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverPortalState.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverPositionerProps.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverPositionerState.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverRootActions.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverRootChangeEventDetails.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverRootChangeEventReason.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverRootState.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverSide.d.ts +2 -1
- package/dist/primitives/surfaces/Popover/types/PopoverTitleState.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverTriggerState.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverViewportProps.d.ts +2 -0
- package/dist/primitives/surfaces/Popover/types/PopoverViewportState.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/Tooltip.d.ts +7 -3
- package/dist/primitives/surfaces/Tooltip/internal/TooltipArrow.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/internal/TooltipBody.d.ts +8 -0
- package/dist/primitives/surfaces/Tooltip/internal/TooltipComponent.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/internal/TooltipPopup.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/internal/TooltipPortal.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/internal/TooltipPositioner.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipAlign.d.ts +2 -1
- package/dist/primitives/surfaces/Tooltip/types/TooltipArrowProps.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipArrowState.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipHandle.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipPopupProps.d.ts +1 -10
- package/dist/primitives/surfaces/Tooltip/types/TooltipPopupState.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipPortalProps.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipPortalState.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipPositionerProps.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipPositionerState.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipProps.d.ts +16 -4
- package/dist/primitives/surfaces/Tooltip/types/TooltipProviderState.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipRootActions.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipRootChangeEventDetails.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipRootChangeEventReason.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipRootState.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipSide.d.ts +2 -1
- package/dist/primitives/surfaces/Tooltip/types/TooltipTriggerState.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipViewportProps.d.ts +2 -0
- package/dist/primitives/surfaces/Tooltip/types/TooltipViewportState.d.ts +2 -0
- package/dist/primitives/surfaces/index.d.ts +72 -1
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +4 -4
- package/dist/primitives/typography/OverflowingTextWithTooltip/OverflowingTextWithTooltip.d.ts +1 -18
- package/dist/primitives/typography/OverflowingTextWithTooltip/types/OverflowingTextWithTooltipProps.d.ts +17 -0
- package/dist/primitives/typography/Shortcut/Shortcut.d.ts +2 -0
- package/dist/primitives/typography/Shortcut/formatShortcut.d.ts +2 -0
- package/dist/primitives/typography/Shortcut/internal/getShortcutPresentation.d.ts +8 -0
- package/dist/primitives/typography/Shortcut/types/ShortcutDefinition.d.ts +1 -0
- package/dist/primitives/typography/Shortcut/types/ShortcutFormatOptions.d.ts +7 -0
- package/dist/primitives/typography/Shortcut/types/ShortcutProps.d.ts +6 -0
- package/dist/primitives/typography/Text/Text.d.ts +1 -18
- package/dist/primitives/typography/Text/internal/TextTruncationProps.d.ts +7 -0
- package/dist/primitives/typography/Text/types/TextProps.d.ts +3 -0
- package/dist/primitives/typography/index.d.ts +7 -0
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +8 -4
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +71 -55
- package/dist/settings-Fpo_5Uen.js +44 -0
- package/dist/settings-bRqO7Q-5.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/surfaces-C2s4Qrvy.cjs +1 -0
- package/dist/surfaces-CV04bWoI.js +294 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.mjs +6 -6
- package/dist/theme-Zf62UE02.cjs +1 -0
- package/dist/{theme-CjHovJAZ.js → theme-yAk9zrNA.js} +8 -8
- package/dist/theme.cjs +1 -1
- package/dist/theme.mjs +1 -1
- package/dist/typography-CBqN-Jhw.cjs +1 -0
- package/dist/typography-D-DQvgaS.js +5 -0
- package/dist/useIsMobile-BvEB9MOV.js +37 -0
- package/dist/useIsMobile-C_rtkXZO.cjs +1 -0
- package/dist/useProvidedTextDirection-Dk8LBQeF.js +6 -0
- package/dist/useProvidedTextDirection-PVaoQCLH.cjs +1 -0
- package/dist/utilities/color/utils/themeColorSchema.d.ts +1 -1
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/utils/normalizeSearchText.d.ts +1 -0
- package/dist/utilities-06FvJQzl.cjs +1 -0
- package/dist/utilities-DpSj_IdQ.js +52 -0
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +17 -16
- package/package.json +49 -1
- package/dist/Avatar-B5-MSVUG.cjs +0 -1
- package/dist/Avatar-Da_dlwJP.js +0 -68
- package/dist/HorizontalSeparator-JwV0dB5W.js +0 -44
- package/dist/HorizontalSeparator-vJLHHlc4.cjs +0 -1
- package/dist/ListItem-Bg7Sk5Nv.js +0 -112
- package/dist/ListItem-UYe5GaEQ.cjs +0 -1
- package/dist/ListItem.module-DkSRO3lX.cjs +0 -1
- package/dist/ListItem.module-DqkBkYtI.js +0 -38
- package/dist/Loader-BLkXvZli.js +0 -14
- package/dist/Loader-CMXdrX1d.cjs +0 -1
- package/dist/MenuSeparator-Ct3cQtJ2.cjs +0 -1
- package/dist/MenuSeparator-CyUYx1nk.js +0 -68
- package/dist/OverflowingTextWithTooltip-CtHMhu6b.js +0 -198
- package/dist/OverflowingTextWithTooltip-maBlogGW.cjs +0 -1
- package/dist/ProgressBar-C8N-1Iav.cjs +0 -1
- package/dist/ProgressBar-Cq6EDZz9.js +0 -58
- package/dist/ResizeHandle-DN1bRxQb.js +0 -89
- package/dist/ResizeHandle-cll01qBQ.cjs +0 -1
- package/dist/Switch-BLO0Y9bi.cjs +0 -1
- package/dist/Switch-CMVfAYqP.js +0 -127
- package/dist/TabsTabContent-BseLV1Wk.cjs +0 -1
- package/dist/TabsTabContent-_NCTxoP6.js +0 -40
- package/dist/components/data-display/TintedIconTile/internal/StyledTintedIconTileContainer/StyledTintedIconTileContainer.d.ts +0 -7
- package/dist/components/feedback/InlineBanner/internal/InlineBannerButton.d.ts +0 -5
- package/dist/components/feedback/InlineBanner/types/InlineBannerButtonProps.d.ts +0 -7
- package/dist/components/input/SettingsRow/SettingsRow.d.ts +0 -2
- package/dist/components/input/SettingsRow/types/SettingsRowProps.d.ts +0 -6
- package/dist/components/navigation/NavigationBar/NavigationBar.d.ts +0 -13
- package/dist/components/navigation/NavigationBar/internal/NavigationBarItem/NavigationBarItem.d.ts +0 -9
- package/dist/components-Bs-35QDJ.cjs +0 -1
- package/dist/components-kaERZ89J.js +0 -1865
- package/dist/data-display-DenoFbuP.cjs +0 -1
- package/dist/data-display-npY0auY_.js +0 -190
- package/dist/getSafeUrl-BuX_E2_8.cjs +0 -1
- package/dist/getSafeUrl-DXwcx-N0.js +0 -27
- package/dist/handleClickableElementKeyDown-0XD9MRqa.cjs +0 -1
- package/dist/handleClickableElementKeyDown-CJ_JsX2K.js +0 -11
- package/dist/input-BNuMVtkM.cjs +0 -1
- package/dist/input-COx4wMjs.js +0 -324
- package/dist/layout-BEC7fKLU.js +0 -34
- package/dist/layout-DniJJ8Mx.cjs +0 -1
- package/dist/navigation-CUofX3gO.js +0 -78
- package/dist/navigation-qJfYicT7.cjs +0 -1
- package/dist/primitives/accessibility/components/VisibilityHidden.d.ts +0 -3
- package/dist/primitives/input/Button/internal/ButtonHotKeys.d.ts +0 -5
- package/dist/primitives/layout/Collapsible/types/AnimationDurationObject.d.ts +0 -4
- package/dist/primitives/layout/Collapsible/types/AnimationDurations.d.ts +0 -2
- package/dist/primitives/layout/HorizontalSeparator/HorizontalSeparator.d.ts +0 -9
- package/dist/primitives/layout/TextDirectionProvider/TextDirectionProvider.d.ts +0 -8
- package/dist/primitives/navigation/ListItem/internal/MenuItemHotKeys/MenuItemHotKeys.d.ts +0 -6
- package/dist/primitives/navigation/Tabs/internal/isRenderableSlot.d.ts +0 -2
- package/dist/primitives/surfaces/Tooltip/internal/TooltipContent.d.ts +0 -2
- package/dist/primitives/surfaces/Tooltip/types/TooltipContentProps.d.ts +0 -6
- package/dist/primitives/typography/OverflowingTextWithTooltip/internal/LinkifiedText/LinkifiedText.d.ts +0 -5
- package/dist/primitives/typography/OverflowingTextWithTooltip/internal/LinkifiedText/linkifyText.d.ts +0 -6
- package/dist/surfaces-BJilWRcD.js +0 -264
- package/dist/surfaces-iGk6vB0x.cjs +0 -1
- package/dist/theme-DumxXtpW.cjs +0 -1
- package/dist/useProvidedTextDirection-B7ovnsdr.cjs +0 -1
- package/dist/useProvidedTextDirection-P1dtjUtE.js +0 -9
- package/dist/utilities/device/getOsShortcutSeparator.d.ts +0 -1
- package/dist/utilities-B7EwAZ4L.cjs +0 -1
- package/dist/utilities-CMrqpiWM.js +0 -64
- /package/dist/components/{input → settings}/SettingsRow/__stories__/ControlledSettingsRowExample.d.ts +0 -0
- /package/dist/primitives/layout/{TextDirectionProvider → DirectionProvider}/internal/TextDirection.d.ts +0 -0
- /package/dist/primitives/layout/{TextDirectionProvider → DirectionProvider}/internal/TextDirectionContext.d.ts +0 -0
- /package/dist/primitives/layout/{TextDirectionProvider → DirectionProvider}/internal/useProvidedTextDirection.d.ts +0 -0
- /package/dist/{primitives/navigation/ListItem → utilities}/internal/isRenderableSlot.d.ts +0 -0
- /package/dist/{components/navigation/Dropdown → utilities}/internal/preventDismissingClickActivation.d.ts +0 -0
|
@@ -0,0 +1,774 @@
|
|
|
1
|
+
import { t as c } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { Cn as qe, Dn as Be, En as Me, hl as Ke } from "./icon-Bo3y4NHM.js";
|
|
3
|
+
import { t as Ie } from "./isRenderableSlot-DT_depzM.js";
|
|
4
|
+
import { n as ye, t as Ge } from "./Button-DQUIhQAm.js";
|
|
5
|
+
import { t as Z } from "./mergeClassNames-ClFMR1v0.js";
|
|
6
|
+
import { n as De, r as He } from "./OverflowingTextWithTooltip-wRABzEWd.js";
|
|
7
|
+
import { t as te } from "./ListItem.module-Ar-vZ7Qu.js";
|
|
8
|
+
import { t as de } from "./ListItem-BVJEFywj.js";
|
|
9
|
+
import { t as V } from "./Popover-C-JjVGKl.js";
|
|
10
|
+
import { i as We, t as Ue } from "./Input-D3-FH2Zz.js";
|
|
11
|
+
import { n as ze, r as $e, t as je } from "./MenuSeparator-BdPwyE9f.js";
|
|
12
|
+
import { useRender as Te } from "@base-ui/react/use-render";
|
|
13
|
+
import { isBoolean as Ye, isFunction as Ve, isNonEmptyString as oe, isPositiveInteger as _e } from "@sniptt/guards";
|
|
14
|
+
import { clsx as M } from "clsx";
|
|
15
|
+
import { createContext as Xe, useCallback as J, useContext as ne, useEffect as Je, useId as ue, useLayoutEffect as Ae, useRef as Ce, useState as B } from "react";
|
|
16
|
+
import { Fragment as Qe, jsx as d, jsxs as ae } from "react/jsx-runtime";
|
|
17
|
+
import { Button as ke } from "@base-ui/react/button";
|
|
18
|
+
import { useMergedRefs as se } from "@base-ui/utils/useMergedRefs";
|
|
19
|
+
import { Popover as Pe } from "@base-ui/react/popover";
|
|
20
|
+
import { useDirection as Ne } from "@base-ui/react/direction-provider";
|
|
21
|
+
var Ze = "_content_wgn7f_1", et = "_page_wgn7f_12", tt = "_section_wgn7f_16", rt = "_separator_wgn7f_39", ot = "_back_wgn7f_47", nt = "_backIcon_wgn7f_59", at = "_searchContainer_wgn7f_63", st = "_search_wgn7f_63", it = "_status_wgn7f_80", ct = "_header_wgn7f_86", dt = "_title_wgn7f_99", ut = "_itemWithActions_wgn7f_108", lt = "_itemWithActionsPrimary_wgn7f_114", pt = "_itemActions_wgn7f_129", mt = "_itemDecoration_wgn7f_133", C = {
|
|
22
|
+
content: Ze,
|
|
23
|
+
page: et,
|
|
24
|
+
section: tt,
|
|
25
|
+
separator: rt,
|
|
26
|
+
back: ot,
|
|
27
|
+
backIcon: nt,
|
|
28
|
+
searchContainer: at,
|
|
29
|
+
search: st,
|
|
30
|
+
status: it,
|
|
31
|
+
header: ct,
|
|
32
|
+
title: dt,
|
|
33
|
+
itemWithActions: ut,
|
|
34
|
+
itemWithActionsPrimary: lt,
|
|
35
|
+
itemActions: pt,
|
|
36
|
+
itemDecoration: mt
|
|
37
|
+
}, le = ({ render: e, ref: t, disabled: r, ...o }) => Te({
|
|
38
|
+
render: e,
|
|
39
|
+
ref: t,
|
|
40
|
+
defaultTagName: "button",
|
|
41
|
+
props: {
|
|
42
|
+
...o,
|
|
43
|
+
disabled: r
|
|
44
|
+
}
|
|
45
|
+
}), pe = ({ nativeButton: e, renderProps: t }) => e && "disabled" in t && Ye(t.disabled) ? t.disabled : void 0, ft = "[data-dropdown-item]", xe = ({ actions: e, actionsVisibility: t = "hover", color: r = "neutral", selected: o = !1, focused: a = !1, indicator: s = "none", disabled: n = !1, hasSubmenu: u = !1, children: l }) => /* @__PURE__ */ ae("div", {
|
|
46
|
+
className: M(te.root, C.itemWithActions),
|
|
47
|
+
role: "none",
|
|
48
|
+
"data-actions-visibility": t,
|
|
49
|
+
"data-color": r,
|
|
50
|
+
"data-selected": o ? "" : void 0,
|
|
51
|
+
"data-highlighted": a ? "" : void 0,
|
|
52
|
+
"data-indicator": s,
|
|
53
|
+
"data-disabled": n ? "" : void 0,
|
|
54
|
+
onClick: (m) => {
|
|
55
|
+
m.target === m.currentTarget && m.currentTarget.querySelector(ft)?.click();
|
|
56
|
+
},
|
|
57
|
+
children: [
|
|
58
|
+
l,
|
|
59
|
+
/* @__PURE__ */ d("span", {
|
|
60
|
+
className: M(te.actions, C.itemActions),
|
|
61
|
+
children: e
|
|
62
|
+
}),
|
|
63
|
+
s === "check" && o && /* @__PURE__ */ d(qe, {
|
|
64
|
+
className: M(te.checkIndicator, C.itemDecoration),
|
|
65
|
+
"aria-hidden": !0
|
|
66
|
+
}),
|
|
67
|
+
u && /* @__PURE__ */ d(Be, {
|
|
68
|
+
className: M(te.submenuIcon, C.itemDecoration),
|
|
69
|
+
"aria-hidden": !0
|
|
70
|
+
})
|
|
71
|
+
]
|
|
72
|
+
}), me = (e) => e.getAttribute("aria-label") ?? e.textContent ?? "", Q = (e) => Array.from(e.querySelectorAll("[data-dropdown-item]")).filter((t) => t.getAttribute("aria-disabled") !== "true" && !t.hasAttribute("disabled") && t.closest("[data-dropdown-content]") === e), re = Xe(void 0), K = () => {
|
|
73
|
+
const e = ne(re);
|
|
74
|
+
if (!c(e)) throw new Error("Dropdown components must be inside Dropdown.Root");
|
|
75
|
+
return e;
|
|
76
|
+
}, fe = ({ id: e, disabled: t, isSubmenuTrigger: r = !1 }) => {
|
|
77
|
+
const o = K(), a = r ? o.parentType : o.type, s = r ? o.parentActiveItemId : o.activeItemId, n = r ? o.setParentActiveItemId : o.setActiveItemId;
|
|
78
|
+
return {
|
|
79
|
+
tabIndex: t || a === "menu" && s !== e ? -1 : 0,
|
|
80
|
+
activate: () => n?.(e)
|
|
81
|
+
};
|
|
82
|
+
}, Ee = ({ color: e, startIcon: t, endIcon: r, description: o, descriptionPlacement: a, shortcut: s, shortcutJoinLabel: n, hasSubmenu: u, actions: l, actionsVisibility: m, children: f, render: g, disabled: v = !1, nativeButton: i = !c(g), closeOnClick: N = !0, onClick: w, onFocus: y, page: p, id: b, ...h }) => {
|
|
83
|
+
const { type: D, closeTree: E, goToPage: _ } = K(), S = ue(), R = b ?? S, x = fe({
|
|
84
|
+
id: R,
|
|
85
|
+
disabled: v
|
|
86
|
+
}), k = Ie(l), F = u ?? c(p), L = /* @__PURE__ */ d(ke, {
|
|
87
|
+
...h,
|
|
88
|
+
id: R,
|
|
89
|
+
disabled: v,
|
|
90
|
+
nativeButton: i,
|
|
91
|
+
role: h.role ?? (D === "menu" ? "menuitem" : void 0),
|
|
92
|
+
tabIndex: x.tabIndex,
|
|
93
|
+
onFocus: (T) => {
|
|
94
|
+
x.activate(), y?.(T);
|
|
95
|
+
},
|
|
96
|
+
"data-dropdown-item": "",
|
|
97
|
+
"data-dropdown-page": p,
|
|
98
|
+
onClick: (T) => {
|
|
99
|
+
if (w?.(T), !T.defaultPrevented) {
|
|
100
|
+
if (c(p)) {
|
|
101
|
+
const P = T.currentTarget.closest("[data-dropdown-content]");
|
|
102
|
+
if (!c(P)) return;
|
|
103
|
+
_({
|
|
104
|
+
id: p,
|
|
105
|
+
trigger: {
|
|
106
|
+
id: b,
|
|
107
|
+
index: Q(P).indexOf(T.currentTarget),
|
|
108
|
+
page: p,
|
|
109
|
+
label: me(T.currentTarget)
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
N && E();
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
render: (T) => {
|
|
118
|
+
const P = pe({
|
|
119
|
+
nativeButton: i,
|
|
120
|
+
renderProps: T
|
|
121
|
+
});
|
|
122
|
+
return /* @__PURE__ */ d(de, {
|
|
123
|
+
...T,
|
|
124
|
+
render: /* @__PURE__ */ d(le, {
|
|
125
|
+
render: g,
|
|
126
|
+
disabled: P
|
|
127
|
+
}),
|
|
128
|
+
className: M(T.className, k && C.itemWithActionsPrimary),
|
|
129
|
+
disabled: v,
|
|
130
|
+
color: e,
|
|
131
|
+
startIcon: t,
|
|
132
|
+
endIcon: r,
|
|
133
|
+
actionsVisibility: m,
|
|
134
|
+
description: o,
|
|
135
|
+
descriptionPlacement: a,
|
|
136
|
+
shortcut: s,
|
|
137
|
+
shortcutJoinLabel: n,
|
|
138
|
+
hasSubmenu: !k && F,
|
|
139
|
+
children: f
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
return k ? /* @__PURE__ */ d(xe, {
|
|
144
|
+
actions: l,
|
|
145
|
+
actionsVisibility: m,
|
|
146
|
+
color: e,
|
|
147
|
+
disabled: v,
|
|
148
|
+
hasSubmenu: F,
|
|
149
|
+
children: L
|
|
150
|
+
}) : L;
|
|
151
|
+
}, gt = ({ children: e = "Back", className: t, onClick: r, ...o }) => {
|
|
152
|
+
const { goBack: a, canGoBack: s } = K();
|
|
153
|
+
return /* @__PURE__ */ d(Ee, {
|
|
154
|
+
...o,
|
|
155
|
+
className: M(C.back, t),
|
|
156
|
+
"data-dropdown-back": "",
|
|
157
|
+
disabled: o.disabled || !s,
|
|
158
|
+
startIcon: /* @__PURE__ */ d(Me, { className: C.backIcon }),
|
|
159
|
+
closeOnClick: !1,
|
|
160
|
+
onClick: (n) => {
|
|
161
|
+
r?.(n), !n.defaultPrevented && a();
|
|
162
|
+
},
|
|
163
|
+
children: e
|
|
164
|
+
});
|
|
165
|
+
}, wt = "_button_1qwl0_1", ht = "_tooltipAnchor_1qwl0_29", vt = "_icon_1qwl0_33", ce = {
|
|
166
|
+
button: wt,
|
|
167
|
+
tooltipAnchor: ht,
|
|
168
|
+
icon: vt
|
|
169
|
+
}, bt = ({ children: e, size: t, shape: r = "square", className: o, tooltip: a, tooltipPlace: s = "bottom", tooltipDelay: n = 1e3, tooltipOffset: u = 5, disabled: l, loading: m, ...f }) => {
|
|
170
|
+
const g = ne(ye), v = t ?? g?.size ?? "md", i = oe(a), N = l || m, w = /* @__PURE__ */ d(Ge, {
|
|
171
|
+
...f,
|
|
172
|
+
size: v === "xs" ? "sm" : v,
|
|
173
|
+
"data-icon-size": v,
|
|
174
|
+
"data-shape": r,
|
|
175
|
+
disabled: l,
|
|
176
|
+
loading: m,
|
|
177
|
+
startIcon: /* @__PURE__ */ d("span", {
|
|
178
|
+
className: ce.icon,
|
|
179
|
+
children: e
|
|
180
|
+
}),
|
|
181
|
+
className: Z(ce.button, o)
|
|
182
|
+
});
|
|
183
|
+
return i ? /* @__PURE__ */ d(He, {
|
|
184
|
+
content: a,
|
|
185
|
+
delay: n,
|
|
186
|
+
side: s,
|
|
187
|
+
sideOffset: u,
|
|
188
|
+
children: N ? /* @__PURE__ */ d("span", {
|
|
189
|
+
className: ce.tooltipAnchor,
|
|
190
|
+
children: w
|
|
191
|
+
}) : w
|
|
192
|
+
}) : w;
|
|
193
|
+
}, It = "_button_prhtf_1", yt = { button: It }, Dt = ({ className: e, emphasis: t = "standard", size: r, variant: o, ...a }) => {
|
|
194
|
+
const s = ne(ye), n = r ?? s?.size ?? "sm", u = o ?? s?.variant ?? "ghost";
|
|
195
|
+
return /* @__PURE__ */ d(bt, {
|
|
196
|
+
...a,
|
|
197
|
+
size: n,
|
|
198
|
+
variant: u,
|
|
199
|
+
"data-emphasis": t,
|
|
200
|
+
className: Z(yt.button, e)
|
|
201
|
+
});
|
|
202
|
+
}, Tt = ({ render: e, children: t, "aria-label": r, ...o }) => /* @__PURE__ */ d(Pe.Close, {
|
|
203
|
+
...o,
|
|
204
|
+
"aria-label": r,
|
|
205
|
+
render: e ?? /* @__PURE__ */ d(Dt, {
|
|
206
|
+
size: "sm",
|
|
207
|
+
"aria-label": r,
|
|
208
|
+
children: t ?? /* @__PURE__ */ d(Ke, {})
|
|
209
|
+
}),
|
|
210
|
+
children: c(e) ? t : void 0
|
|
211
|
+
}), ge = ({ content: e, target: t, edge: r = "first", type: o }) => {
|
|
212
|
+
const a = c(t?.id) ? e.ownerDocument.getElementById(t.id) : null;
|
|
213
|
+
if (c(a) && e.contains(a)) return a;
|
|
214
|
+
const s = Q(e), n = c(t) ? s.filter((i) => i.dataset.dropdownPage === t.page) : [], [u] = n;
|
|
215
|
+
if (n.length === 1 && c(u)) return u;
|
|
216
|
+
const l = oe(t?.label) ? n.filter((i) => me(i) === t?.label) : [], [m] = l;
|
|
217
|
+
if (l.length === 1 && c(m)) return m;
|
|
218
|
+
const f = c(t) ? s[t.index] : void 0;
|
|
219
|
+
if (c(f)) return f;
|
|
220
|
+
const g = e.querySelector('input:not(:disabled):not([type="hidden"]),button:not(:disabled),textarea:not(:disabled),select:not(:disabled),a[href],[tabindex="0"]');
|
|
221
|
+
if ((Array.from(e.querySelectorAll("[data-dropdown-page-type]")).find((i) => i.closest("[data-dropdown-content]") === e)?.dataset.dropdownPageType ?? o ?? e.dataset.type) === "panel") return g ?? e;
|
|
222
|
+
const v = e.querySelector("[data-dropdown-search]:not(:disabled)");
|
|
223
|
+
return c(v) ? v : r === "last" ? s[s.length - 1] ?? g ?? e : s.find((i) => !i.hasAttribute("data-dropdown-back")) ?? s[0] ?? g ?? e;
|
|
224
|
+
}, _t = ({ contentRef: e }) => {
|
|
225
|
+
const { open: t, pageId: r, pageFocusRequest: o, setPageFocusRequest: a } = K();
|
|
226
|
+
return Ae(() => {
|
|
227
|
+
c(o) && (a(void 0), !(!t || o.pageId !== r || !c(e.current)) && ge({
|
|
228
|
+
content: e.current,
|
|
229
|
+
target: o.target
|
|
230
|
+
}).focus());
|
|
231
|
+
}, [
|
|
232
|
+
e,
|
|
233
|
+
t,
|
|
234
|
+
r,
|
|
235
|
+
o,
|
|
236
|
+
a
|
|
237
|
+
]), null;
|
|
238
|
+
}, we = (e) => {
|
|
239
|
+
if (e.dataset.type === "panel") return;
|
|
240
|
+
const t = e.querySelector("[data-dropdown-search]:not(:disabled)");
|
|
241
|
+
if (!(!c(t) || !oe(t.value.trim())))
|
|
242
|
+
return Q(e).find((r) => r.hasAttribute("data-dropdown-option-item"));
|
|
243
|
+
}, At = ({ content: e }) => {
|
|
244
|
+
const { setSearchTargetId: t } = K();
|
|
245
|
+
return Ae(() => {
|
|
246
|
+
if (!c(e)) return;
|
|
247
|
+
const r = () => t(we(e)?.id);
|
|
248
|
+
r();
|
|
249
|
+
const o = new MutationObserver(r);
|
|
250
|
+
return o.observe(e, {
|
|
251
|
+
childList: !0,
|
|
252
|
+
subtree: !0,
|
|
253
|
+
attributes: !0,
|
|
254
|
+
attributeFilter: ["disabled", "aria-disabled"]
|
|
255
|
+
}), () => {
|
|
256
|
+
o.disconnect(), t(void 0);
|
|
257
|
+
};
|
|
258
|
+
}, [e, t]), null;
|
|
259
|
+
}, Ct = (e) => (e.ctrlKey || e.metaKey) && !e.defaultPrevented, kt = (e) => Array.from(e.ownerDocument.querySelectorAll("[data-dropdown-item][aria-controls]")).find((t) => t.getAttribute("aria-controls") === e.id), Pt = ({ rowCells: e, column: t, isEnabledCell: r }) => {
|
|
260
|
+
const o = Math.min(t, e.length - 1);
|
|
261
|
+
for (let a = 0; a < e.length; a++) {
|
|
262
|
+
const s = [e[o - a], e[o + a]].find(r);
|
|
263
|
+
if (c(s)) return s;
|
|
264
|
+
}
|
|
265
|
+
}, Oe = ({ key: e, items: t, currentItem: r, search: o, isRightToLeft: a }) => {
|
|
266
|
+
const s = r?.closest("[data-dropdown-columns]"), n = Number(s?.dataset.dropdownColumns), u = [
|
|
267
|
+
"ArrowUp",
|
|
268
|
+
"ArrowDown",
|
|
269
|
+
"ArrowLeft",
|
|
270
|
+
"ArrowRight"
|
|
271
|
+
].includes(e);
|
|
272
|
+
if (!c(s) || !c(r) || !u || !_e(n)) return;
|
|
273
|
+
const l = Array.from(s.children).filter((p) => p instanceof HTMLElement && !p.hasAttribute("data-dropdown-section-label")), m = l.indexOf(r);
|
|
274
|
+
if (m < 0) return;
|
|
275
|
+
const f = Math.floor(m / n), g = m % n, v = e === "ArrowUp" || e === "ArrowDown", i = e === "ArrowDown" || e === (a ? "ArrowLeft" : "ArrowRight") ? 1 : -1, N = Math.ceil(l.length / n), w = new Set(t), y = (p) => c(p) && w.has(p);
|
|
276
|
+
if (v) {
|
|
277
|
+
for (let h = f + i; h >= 0 && h < N; h += i) {
|
|
278
|
+
const D = l[Math.min(h * n + g, l.length - 1)];
|
|
279
|
+
if (y(D)) return D;
|
|
280
|
+
}
|
|
281
|
+
for (let h = f + i; h >= 0 && h < N; h += i) {
|
|
282
|
+
const D = Pt({
|
|
283
|
+
rowCells: l.slice(h * n, (h + 1) * n),
|
|
284
|
+
column: g,
|
|
285
|
+
isEnabledCell: y
|
|
286
|
+
});
|
|
287
|
+
if (c(D)) return D;
|
|
288
|
+
}
|
|
289
|
+
const p = l.filter(y), b = i < 0 ? p[0] : p[p.length - 1];
|
|
290
|
+
return (c(b) ? t[t.indexOf(b) + i] : void 0) ?? (i < 0 ? o : void 0) ?? r;
|
|
291
|
+
}
|
|
292
|
+
for (let p = g + i; p >= 0 && p < n; p += i) {
|
|
293
|
+
const b = l[f * n + p];
|
|
294
|
+
if (y(b)) return b;
|
|
295
|
+
}
|
|
296
|
+
return r;
|
|
297
|
+
}, Nt = ({ key: e, items: t, currentIndex: r, search: o, isSearch: a, isRightToLeft: s = !1 }) => {
|
|
298
|
+
const n = Oe({
|
|
299
|
+
key: e,
|
|
300
|
+
items: t,
|
|
301
|
+
currentItem: t[r],
|
|
302
|
+
search: o,
|
|
303
|
+
isRightToLeft: s
|
|
304
|
+
});
|
|
305
|
+
if (c(n)) return n;
|
|
306
|
+
const u = t.length - 1;
|
|
307
|
+
if (e === "ArrowDown") return t[r === u ? 0 : r + 1];
|
|
308
|
+
if (e === "ArrowUp" && r === 0 && c(o)) return o;
|
|
309
|
+
if (e === "ArrowUp") return t[r <= 0 ? u : r - 1];
|
|
310
|
+
if (!a && e === "Home") return t[0];
|
|
311
|
+
if (!a && e === "End") return t[u];
|
|
312
|
+
}, xt = 500, Et = ({ type: e, isSubmenu: t, setOpen: r }) => {
|
|
313
|
+
const o = Ne(), [a, s] = B({
|
|
314
|
+
text: "",
|
|
315
|
+
timestamp: 0
|
|
316
|
+
});
|
|
317
|
+
return (n) => {
|
|
318
|
+
if (n.defaultPrevented) return;
|
|
319
|
+
const u = n.currentTarget, l = n.target;
|
|
320
|
+
if (!(l instanceof HTMLElement) || l.closest("[data-dropdown-content]") !== u) return;
|
|
321
|
+
const m = l.matches('input,textarea,select,[contenteditable="true"]'), f = o === "rtl", g = f ? "ArrowRight" : "ArrowLeft", v = t && !m && n.key === g, i = v && e !== "panel" ? Oe({
|
|
322
|
+
key: n.key,
|
|
323
|
+
items: Q(u),
|
|
324
|
+
currentItem: l,
|
|
325
|
+
search: null,
|
|
326
|
+
isRightToLeft: f
|
|
327
|
+
}) : void 0, N = c(i) && i !== l;
|
|
328
|
+
if (t && (n.key === "Escape" || v && !N)) {
|
|
329
|
+
n.preventDefault(), n.stopPropagation(), kt(u)?.focus(), r(!1);
|
|
330
|
+
return;
|
|
331
|
+
}
|
|
332
|
+
if (e === "panel") return;
|
|
333
|
+
const w = u.querySelector("[data-dropdown-search]:not(:disabled)"), y = l === w;
|
|
334
|
+
if (m && !y) return;
|
|
335
|
+
const p = Q(u).filter((x) => !c(w) || !x.hasAttribute("data-dropdown-back")), b = y && n.key === "Enter" && !n.nativeEvent.isComposing ? we(u) : void 0;
|
|
336
|
+
if (c(b)) {
|
|
337
|
+
n.preventDefault(), b.click();
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
const h = p.indexOf(l), D = Nt({
|
|
341
|
+
key: n.key,
|
|
342
|
+
items: p,
|
|
343
|
+
currentIndex: h,
|
|
344
|
+
search: w,
|
|
345
|
+
isSearch: y,
|
|
346
|
+
isRightToLeft: f
|
|
347
|
+
});
|
|
348
|
+
if (c(D)) {
|
|
349
|
+
n.preventDefault(), D.focus();
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
if (m || n.key.length !== 1 || n.key === " " || n.altKey || n.ctrlKey || n.metaKey) return;
|
|
353
|
+
const E = Date.now(), _ = E - a.timestamp > xt ? n.key : a.text + n.key;
|
|
354
|
+
s({
|
|
355
|
+
text: _,
|
|
356
|
+
timestamp: E
|
|
357
|
+
});
|
|
358
|
+
const S = ([..._].every((x) => x === _[0]) ? n.key : _).toLocaleLowerCase(), R = [...p.slice(h + 1), ...p.slice(0, h + 1)].find((x) => me(x).trim().toLocaleLowerCase().startsWith(S));
|
|
359
|
+
c(R) && (n.preventDefault(), R.focus());
|
|
360
|
+
};
|
|
361
|
+
}, Ot = ({ side: e, align: t = "start", sideOffset: r = 0, alignOffset: o, anchor: a, collisionPadding: s, container: n, keepMounted: u, width: l = 200, className: m, style: f, children: g, initialFocus: v, onKeyDown: i, onInput: N, onClick: w, onMouseDown: y, onPointerDown: p, "aria-label": b, "aria-labelledby": h, ref: D, ...E }) => {
|
|
362
|
+
const { type: _, isSubmenu: S, setOpen: R, initialFocusEdge: x, focusOnOpen: k, triggerId: F, titleId: L, setSearchTargetId: T } = K(), P = Ce(null), [A, G] = B(null), H = se(P, D, G), z = Et({
|
|
363
|
+
type: _,
|
|
364
|
+
isSubmenu: S,
|
|
365
|
+
setOpen: R
|
|
366
|
+
}), $ = c(b) ? void 0 : L ?? F;
|
|
367
|
+
return /* @__PURE__ */ ae(Qe, { children: [
|
|
368
|
+
/* @__PURE__ */ d(V.Portal, {
|
|
369
|
+
container: n,
|
|
370
|
+
keepMounted: u,
|
|
371
|
+
children: /* @__PURE__ */ d(V.Positioner, {
|
|
372
|
+
side: e ?? (S ? "inline-end" : "bottom"),
|
|
373
|
+
align: t,
|
|
374
|
+
sideOffset: r,
|
|
375
|
+
alignOffset: o,
|
|
376
|
+
anchor: a,
|
|
377
|
+
collisionPadding: s,
|
|
378
|
+
children: /* @__PURE__ */ d(V.Popup, {
|
|
379
|
+
...E,
|
|
380
|
+
ref: H,
|
|
381
|
+
role: _ === "menu" ? "menu" : "dialog",
|
|
382
|
+
"aria-label": b,
|
|
383
|
+
"aria-labelledby": h ?? $,
|
|
384
|
+
"data-dropdown-content": "",
|
|
385
|
+
"data-type": _,
|
|
386
|
+
className: Z(C.content, m),
|
|
387
|
+
style: (I) => ({
|
|
388
|
+
width: l,
|
|
389
|
+
...Ve(f) ? f(I) : f
|
|
390
|
+
}),
|
|
391
|
+
initialFocus: v ?? (() => k ? c(P.current) ? ge({
|
|
392
|
+
content: P.current,
|
|
393
|
+
edge: x,
|
|
394
|
+
type: _
|
|
395
|
+
}) : !0 : !1),
|
|
396
|
+
onKeyDown: (I) => {
|
|
397
|
+
i?.(I), z(I), Ct(I) || I.stopPropagation();
|
|
398
|
+
},
|
|
399
|
+
onInput: (I) => {
|
|
400
|
+
N?.(I), T(we(I.currentTarget)?.id);
|
|
401
|
+
},
|
|
402
|
+
onClick: (I) => {
|
|
403
|
+
I.stopPropagation(), w?.(I);
|
|
404
|
+
},
|
|
405
|
+
onMouseDown: (I) => {
|
|
406
|
+
I.stopPropagation(), y?.(I);
|
|
407
|
+
},
|
|
408
|
+
onPointerDown: (I) => {
|
|
409
|
+
I.stopPropagation(), p?.(I);
|
|
410
|
+
},
|
|
411
|
+
children: g
|
|
412
|
+
})
|
|
413
|
+
})
|
|
414
|
+
}),
|
|
415
|
+
/* @__PURE__ */ d(_t, { contentRef: P }),
|
|
416
|
+
/* @__PURE__ */ d(At, { content: A })
|
|
417
|
+
] });
|
|
418
|
+
}, St = ({ className: e, ...t }) => /* @__PURE__ */ d(De, {
|
|
419
|
+
...t,
|
|
420
|
+
role: "status",
|
|
421
|
+
"aria-live": "polite",
|
|
422
|
+
className: M(C.status, e)
|
|
423
|
+
}), Rt = ({ render: e, ref: t, className: r, ...o }) => Te({
|
|
424
|
+
render: e,
|
|
425
|
+
ref: t,
|
|
426
|
+
props: {
|
|
427
|
+
...o,
|
|
428
|
+
className: M(C.header, r)
|
|
429
|
+
}
|
|
430
|
+
}), Ft = ({ className: e, ...t }) => /* @__PURE__ */ d(De, {
|
|
431
|
+
...t,
|
|
432
|
+
role: "status",
|
|
433
|
+
"aria-live": "polite",
|
|
434
|
+
"aria-busy": "true",
|
|
435
|
+
className: M(C.status, e)
|
|
436
|
+
}), Lt = ({ selected: e, indicator: t, onSelect: r, closeOnSelect: o, color: a, startIcon: s, endIcon: n, description: u, descriptionPlacement: l, shortcut: m, shortcutJoinLabel: f, hasSubmenu: g, actions: v, actionsVisibility: i, children: N, render: w, disabled: y = !1, nativeButton: p = !c(w), onClick: b, onFocus: h, id: D, ...E }) => {
|
|
437
|
+
const { type: _, multiple: S, closeTree: R, searchTargetId: x } = K(), k = _ === "menu", F = c(e), L = !k && (p || E.role === "button"), T = !k && !L && F && e, P = F ? S ? "menuitemcheckbox" : "menuitemradio" : "menuitem", A = S ? "checkbox" : "check", G = ue(), H = D ?? G, z = fe({
|
|
438
|
+
id: H,
|
|
439
|
+
disabled: y
|
|
440
|
+
}), $ = Ie(v), I = x === H, j = t ?? (F ? A : "none"), ee = $ && j === "check", Y = /* @__PURE__ */ d(ke, {
|
|
441
|
+
...E,
|
|
442
|
+
id: H,
|
|
443
|
+
disabled: y,
|
|
444
|
+
nativeButton: p,
|
|
445
|
+
role: k ? P : E.role,
|
|
446
|
+
"aria-checked": k && F ? e : void 0,
|
|
447
|
+
"aria-pressed": L && F ? e : void 0,
|
|
448
|
+
"aria-current": T ? "true" : void 0,
|
|
449
|
+
tabIndex: z.tabIndex,
|
|
450
|
+
onFocus: (W) => {
|
|
451
|
+
z.activate(), h?.(W);
|
|
452
|
+
},
|
|
453
|
+
"data-dropdown-item": "",
|
|
454
|
+
"data-dropdown-option-item": "",
|
|
455
|
+
onClick: (W) => {
|
|
456
|
+
b?.(W), !W.defaultPrevented && (r?.(), (o ?? !S) && R());
|
|
457
|
+
},
|
|
458
|
+
render: (W) => {
|
|
459
|
+
const ie = pe({
|
|
460
|
+
nativeButton: p,
|
|
461
|
+
renderProps: W
|
|
462
|
+
});
|
|
463
|
+
return /* @__PURE__ */ d(de, {
|
|
464
|
+
...W,
|
|
465
|
+
render: /* @__PURE__ */ d(le, {
|
|
466
|
+
render: w,
|
|
467
|
+
disabled: ie
|
|
468
|
+
}),
|
|
469
|
+
className: M(W.className, $ && C.itemWithActionsPrimary),
|
|
470
|
+
disabled: y,
|
|
471
|
+
selected: e,
|
|
472
|
+
focused: I,
|
|
473
|
+
indicator: ee ? "none" : j,
|
|
474
|
+
color: a,
|
|
475
|
+
startIcon: s,
|
|
476
|
+
endIcon: n,
|
|
477
|
+
actionsVisibility: i,
|
|
478
|
+
description: u,
|
|
479
|
+
descriptionPlacement: l,
|
|
480
|
+
shortcut: m,
|
|
481
|
+
shortcutJoinLabel: f,
|
|
482
|
+
hasSubmenu: !$ && g,
|
|
483
|
+
children: N
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
return $ ? /* @__PURE__ */ d(xe, {
|
|
488
|
+
actions: v,
|
|
489
|
+
actionsVisibility: i,
|
|
490
|
+
color: a,
|
|
491
|
+
selected: e,
|
|
492
|
+
focused: I,
|
|
493
|
+
indicator: j,
|
|
494
|
+
disabled: y,
|
|
495
|
+
hasSubmenu: g,
|
|
496
|
+
children: Y
|
|
497
|
+
}) : Y;
|
|
498
|
+
}, qt = ({ id: e, type: t, children: r }) => {
|
|
499
|
+
const o = K(), { registerPage: a } = o, s = J((n) => {
|
|
500
|
+
c(n) && a({
|
|
501
|
+
id: e,
|
|
502
|
+
type: t
|
|
503
|
+
});
|
|
504
|
+
}, [
|
|
505
|
+
e,
|
|
506
|
+
t,
|
|
507
|
+
a
|
|
508
|
+
]);
|
|
509
|
+
return o.pageId !== e ? null : /* @__PURE__ */ d(re.Provider, {
|
|
510
|
+
value: {
|
|
511
|
+
...o,
|
|
512
|
+
type: t ?? o.rootType
|
|
513
|
+
},
|
|
514
|
+
children: /* @__PURE__ */ d("div", {
|
|
515
|
+
ref: s,
|
|
516
|
+
className: C.page,
|
|
517
|
+
"data-dropdown-page-type": t ?? o.rootType,
|
|
518
|
+
children: r
|
|
519
|
+
})
|
|
520
|
+
});
|
|
521
|
+
}, Bt = ({ open: e, registerOpenNestedRoot: t }) => (Je(() => {
|
|
522
|
+
if (e)
|
|
523
|
+
return t?.();
|
|
524
|
+
}, [e, t]), null), Mt = (e) => e instanceof FocusEvent ? e.type === "focusout" && e.relatedTarget instanceof Element ? e.relatedTarget : null : e.target instanceof Element ? e.target : null, ve = ({ onDismiss: e, event: t }) => {
|
|
525
|
+
if (!c(e)) return !1;
|
|
526
|
+
let r = !1;
|
|
527
|
+
return e({
|
|
528
|
+
target: Mt(t),
|
|
529
|
+
type: t.type,
|
|
530
|
+
preventDefault: () => {
|
|
531
|
+
r = !0;
|
|
532
|
+
}
|
|
533
|
+
}), r;
|
|
534
|
+
}, be = () => {
|
|
535
|
+
const [e, t] = B();
|
|
536
|
+
return [e, J((r) => (t(r), () => t((o) => o === r ? void 0 : o)), [])];
|
|
537
|
+
}, Se = ({ children: e, type: t, open: r, defaultOpen: o = !1, onOpenChange: a, onEscapeKeyDown: s, onInteractOutside: n, multiple: u = !1, defaultPage: l = "root", isSubmenu: m = !1 }) => {
|
|
538
|
+
const f = ne(re), g = Ce(0), v = J(() => (g.current += 1, () => {
|
|
539
|
+
g.current -= 1;
|
|
540
|
+
}), []), [i, N] = B(o), w = r ?? i, [y, p] = B(w), [b, h] = B([{ id: l }]), [D, E] = B(), [_, S] = B(), R = b[b.length - 1]?.id, [x, k] = B(), [F, L] = B("first"), [T, P] = B(!0), [A, G] = B(), [H, z] = be(), [$, I] = be(), j = w && !y, ee = !w && y;
|
|
541
|
+
(j || ee) && p(w), j && (h([{ id: l }]), E(void 0), k(void 0)), ee && (L("first"), P(!0), G(void 0));
|
|
542
|
+
const Y = (q) => {
|
|
543
|
+
c(r) || N(q), a?.(q);
|
|
544
|
+
}, W = () => {
|
|
545
|
+
Y(!1), m && f?.closeTree();
|
|
546
|
+
}, ie = ({ id: q, trigger: O }) => {
|
|
547
|
+
k({ pageId: q }), h((U) => [...U, {
|
|
548
|
+
id: q,
|
|
549
|
+
trigger: O
|
|
550
|
+
}]);
|
|
551
|
+
}, Re = () => {
|
|
552
|
+
const q = b[b.length - 2];
|
|
553
|
+
if (!c(q)) return;
|
|
554
|
+
const O = b[b.length - 1]?.trigger;
|
|
555
|
+
k({
|
|
556
|
+
pageId: q.id,
|
|
557
|
+
target: O
|
|
558
|
+
}), h((U) => U.slice(0, -1));
|
|
559
|
+
}, Fe = J(({ id: q, type: O }) => {
|
|
560
|
+
if (!w) return;
|
|
561
|
+
const U = O ?? t;
|
|
562
|
+
E((X) => X?.id === q && X.type === U ? X : {
|
|
563
|
+
id: q,
|
|
564
|
+
type: U
|
|
565
|
+
});
|
|
566
|
+
}, [w, t]);
|
|
567
|
+
return /* @__PURE__ */ d(V.Root, {
|
|
568
|
+
open: w,
|
|
569
|
+
onOpenChange: (q, O) => {
|
|
570
|
+
const U = O.reason === "outside-press" || O.reason === "focus-out";
|
|
571
|
+
if (U && g.current > 0) {
|
|
572
|
+
O.cancel();
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
575
|
+
const X = O.reason === "escape-key" && ve({
|
|
576
|
+
onDismiss: s,
|
|
577
|
+
event: O.event
|
|
578
|
+
}), Le = U && ve({
|
|
579
|
+
onDismiss: n,
|
|
580
|
+
event: O.event
|
|
581
|
+
});
|
|
582
|
+
if (X || Le) {
|
|
583
|
+
O.cancel();
|
|
584
|
+
return;
|
|
585
|
+
}
|
|
586
|
+
U && We(O.event), P(O.reason !== "trigger-hover"), Y(q);
|
|
587
|
+
},
|
|
588
|
+
children: /* @__PURE__ */ ae(re.Provider, {
|
|
589
|
+
value: {
|
|
590
|
+
type: c(D) && D.id === R ? D.type : t,
|
|
591
|
+
rootType: t,
|
|
592
|
+
open: w,
|
|
593
|
+
multiple: u,
|
|
594
|
+
isSubmenu: m,
|
|
595
|
+
parentType: f?.type,
|
|
596
|
+
activeItemId: _,
|
|
597
|
+
parentActiveItemId: f?.activeItemId,
|
|
598
|
+
setActiveItemId: S,
|
|
599
|
+
setParentActiveItemId: f?.setActiveItemId,
|
|
600
|
+
pageId: R,
|
|
601
|
+
pageFocusRequest: x,
|
|
602
|
+
setPageFocusRequest: k,
|
|
603
|
+
canGoBack: b.length > 1,
|
|
604
|
+
initialFocusEdge: F,
|
|
605
|
+
setInitialFocusEdge: L,
|
|
606
|
+
focusOnOpen: T,
|
|
607
|
+
setFocusOnOpen: P,
|
|
608
|
+
setOpen: Y,
|
|
609
|
+
closeTree: W,
|
|
610
|
+
goToPage: ie,
|
|
611
|
+
goBack: Re,
|
|
612
|
+
registerPage: Fe,
|
|
613
|
+
registerOpenNestedRoot: v,
|
|
614
|
+
searchTargetId: A,
|
|
615
|
+
setSearchTargetId: G,
|
|
616
|
+
triggerId: H,
|
|
617
|
+
registerTrigger: z,
|
|
618
|
+
titleId: $,
|
|
619
|
+
registerTitle: I
|
|
620
|
+
},
|
|
621
|
+
children: [/* @__PURE__ */ d(Bt, {
|
|
622
|
+
open: w,
|
|
623
|
+
registerOpenNestedRoot: m ? void 0 : f?.registerOpenNestedRoot
|
|
624
|
+
}), e]
|
|
625
|
+
})
|
|
626
|
+
});
|
|
627
|
+
}, Kt = ({ onValueChange: e, className: t, ...r }) => {
|
|
628
|
+
const { searchTargetId: o } = K();
|
|
629
|
+
return /* @__PURE__ */ d("div", {
|
|
630
|
+
className: C.searchContainer,
|
|
631
|
+
children: /* @__PURE__ */ d(Ue, {
|
|
632
|
+
type: "search",
|
|
633
|
+
autoComplete: "off",
|
|
634
|
+
"aria-activedescendant": o,
|
|
635
|
+
...r,
|
|
636
|
+
"data-dropdown-search": "",
|
|
637
|
+
className: Z(C.search, t),
|
|
638
|
+
onValueChange: (a) => e?.(a)
|
|
639
|
+
})
|
|
640
|
+
});
|
|
641
|
+
}, Gt = ({ label: e, scrollable: t, columns: r, style: o, className: a, children: s, ...n }) => {
|
|
642
|
+
const u = _e(r) ? r : void 0;
|
|
643
|
+
return /* @__PURE__ */ ae($e, {
|
|
644
|
+
...n,
|
|
645
|
+
"data-scrollable": t || void 0,
|
|
646
|
+
"data-dropdown-columns": u,
|
|
647
|
+
style: {
|
|
648
|
+
...o,
|
|
649
|
+
...c(u) && { gridTemplateColumns: `repeat(${u}, minmax(0, 1fr))` }
|
|
650
|
+
},
|
|
651
|
+
className: M(C.section, a),
|
|
652
|
+
children: [c(e) && /* @__PURE__ */ d(ze, {
|
|
653
|
+
"data-dropdown-section-label": "",
|
|
654
|
+
children: e
|
|
655
|
+
}), s]
|
|
656
|
+
});
|
|
657
|
+
}, Ht = ({ className: e, ...t }) => /* @__PURE__ */ d(je, {
|
|
658
|
+
...t,
|
|
659
|
+
role: "separator",
|
|
660
|
+
"data-dropdown-separator": "",
|
|
661
|
+
className: M(C.separator, e)
|
|
662
|
+
}), Wt = ({ type: e = "menu", ...t }) => /* @__PURE__ */ d(Se, {
|
|
663
|
+
...t,
|
|
664
|
+
type: e,
|
|
665
|
+
isSubmenu: !0
|
|
666
|
+
}), he = (e) => J((t) => {
|
|
667
|
+
if (!(!c(t) || !oe(t.id)))
|
|
668
|
+
return e(t.id);
|
|
669
|
+
}, [e]), Ut = ({ color: e, startIcon: t, endIcon: r, description: o, descriptionPlacement: a, shortcut: s, shortcutJoinLabel: n, hasSubmenu: u = !0, children: l, render: m, disabled: f = !1, nativeButton: g = !c(m), openOnHover: v = !0, onKeyDown: i, onFocus: N, id: w, ref: y, ...p }) => {
|
|
670
|
+
const b = Ne(), { type: h, rootType: D, parentType: E, open: _, setOpen: S, setFocusOnOpen: R, registerTrigger: x } = K(), k = _ ? h : D, F = ue(), L = w ?? F, T = fe({
|
|
671
|
+
id: L,
|
|
672
|
+
disabled: f,
|
|
673
|
+
isSubmenuTrigger: !0
|
|
674
|
+
}), P = se(y, he(x));
|
|
675
|
+
return /* @__PURE__ */ d(V.Trigger, {
|
|
676
|
+
...p,
|
|
677
|
+
ref: P,
|
|
678
|
+
id: L,
|
|
679
|
+
disabled: f,
|
|
680
|
+
nativeButton: g,
|
|
681
|
+
openOnHover: v,
|
|
682
|
+
role: E === "menu" ? "menuitem" : void 0,
|
|
683
|
+
"aria-haspopup": k === "menu" ? "menu" : "dialog",
|
|
684
|
+
tabIndex: T.tabIndex,
|
|
685
|
+
onFocus: (A) => {
|
|
686
|
+
T.activate(), N?.(A);
|
|
687
|
+
},
|
|
688
|
+
"data-dropdown-item": "",
|
|
689
|
+
onKeyDown: (A) => {
|
|
690
|
+
if (i?.(A), A.defaultPrevented || f) return;
|
|
691
|
+
const G = b === "rtl" ? "ArrowLeft" : "ArrowRight";
|
|
692
|
+
if (A.key === G) {
|
|
693
|
+
A.preventDefault(), A.stopPropagation(), R(!0);
|
|
694
|
+
const H = A.currentTarget.getAttribute("aria-controls"), z = c(H) ? A.currentTarget.ownerDocument.getElementById(H) : null;
|
|
695
|
+
if (_ && c(z)) {
|
|
696
|
+
ge({
|
|
697
|
+
content: z,
|
|
698
|
+
type: h
|
|
699
|
+
}).focus();
|
|
700
|
+
return;
|
|
701
|
+
}
|
|
702
|
+
S(!0);
|
|
703
|
+
}
|
|
704
|
+
},
|
|
705
|
+
render: (A) => {
|
|
706
|
+
const G = pe({
|
|
707
|
+
nativeButton: g,
|
|
708
|
+
renderProps: A
|
|
709
|
+
});
|
|
710
|
+
return /* @__PURE__ */ d(de, {
|
|
711
|
+
...A,
|
|
712
|
+
render: /* @__PURE__ */ d(le, {
|
|
713
|
+
render: m,
|
|
714
|
+
disabled: G
|
|
715
|
+
}),
|
|
716
|
+
disabled: f,
|
|
717
|
+
color: e,
|
|
718
|
+
startIcon: t,
|
|
719
|
+
endIcon: r,
|
|
720
|
+
description: o,
|
|
721
|
+
descriptionPlacement: a,
|
|
722
|
+
shortcut: s,
|
|
723
|
+
shortcutJoinLabel: n,
|
|
724
|
+
hasSubmenu: u,
|
|
725
|
+
children: l
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
});
|
|
729
|
+
}, zt = ({ className: e, render: t, ref: r, ...o }) => {
|
|
730
|
+
const { registerTitle: a } = K(), s = se(r, he(a));
|
|
731
|
+
return /* @__PURE__ */ d(Pe.Title, {
|
|
732
|
+
...o,
|
|
733
|
+
ref: s,
|
|
734
|
+
render: t ?? /* @__PURE__ */ d("div", {}),
|
|
735
|
+
className: Z(C.title, e)
|
|
736
|
+
});
|
|
737
|
+
}, $t = ({ onKeyDown: e, onClick: t, ref: r, ...o }) => {
|
|
738
|
+
const { type: a, rootType: s, open: n, setOpen: u, setInitialFocusEdge: l, setFocusOnOpen: m, registerTrigger: f } = K(), g = n ? a : s, v = se(r, he(f));
|
|
739
|
+
return /* @__PURE__ */ d(V.Trigger, {
|
|
740
|
+
...o,
|
|
741
|
+
ref: v,
|
|
742
|
+
"aria-haspopup": g === "menu" ? "menu" : "dialog",
|
|
743
|
+
onClick: (i) => {
|
|
744
|
+
i.stopPropagation(), i.preventDefault(), t?.(i);
|
|
745
|
+
},
|
|
746
|
+
onKeyDown: (i) => {
|
|
747
|
+
e?.(i), !(i.defaultPrevented || i.baseUIHandlerPrevented || o.disabled || g === "panel") && (i.key !== "ArrowDown" && i.key !== "ArrowUp" || (i.preventDefault(), m(!0), l(i.key === "ArrowUp" ? "last" : "first"), u(!0)));
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
}, jt = Se, fr = {
|
|
751
|
+
Root: jt,
|
|
752
|
+
Trigger: $t,
|
|
753
|
+
Content: Ot,
|
|
754
|
+
ActionItem: Ee,
|
|
755
|
+
OptionItem: Lt,
|
|
756
|
+
Search: Kt,
|
|
757
|
+
Header: Rt,
|
|
758
|
+
Title: zt,
|
|
759
|
+
Close: Tt,
|
|
760
|
+
Page: qt,
|
|
761
|
+
Back: gt,
|
|
762
|
+
Submenu: Wt,
|
|
763
|
+
SubmenuTrigger: Ut,
|
|
764
|
+
Section: Gt,
|
|
765
|
+
Separator: Ht,
|
|
766
|
+
Loading: Ft,
|
|
767
|
+
Empty: St
|
|
768
|
+
};
|
|
769
|
+
export {
|
|
770
|
+
K as i,
|
|
771
|
+
Dt as n,
|
|
772
|
+
bt as r,
|
|
773
|
+
fr as t
|
|
774
|
+
};
|