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,394 @@
|
|
|
1
|
+
import { t as h } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { Dn as Q, Xi as N } from "./icon-Bo3y4NHM.js";
|
|
3
|
+
import { a as S, r as b } from "./theme-yAk9zrNA.js";
|
|
4
|
+
import { t as A } from "./TintedIconTile-BZgRO7cg.js";
|
|
5
|
+
import { t as Z } from "./Shortcut-CWRh02hg.js";
|
|
6
|
+
import { t as ee } from "./Button-DQUIhQAm.js";
|
|
7
|
+
import { t as te } from "./mergeClassNames-ClFMR1v0.js";
|
|
8
|
+
import { r as ae, t as w } from "./OverflowingTextWithTooltip-wRABzEWd.js";
|
|
9
|
+
import { t as ne } from "./ListItem-BVJEFywj.js";
|
|
10
|
+
import { i as re } from "./Dropdown-CZVEnq0N.js";
|
|
11
|
+
import { t as oe } from "./Avatar-DnJMCjoR.js";
|
|
12
|
+
import { t as ie } from "./handleClickableElementKeyDown-C8Uz61XJ.js";
|
|
13
|
+
import { n as se, t as le } from "./TabsTabContent-s6J5bZ3R.js";
|
|
14
|
+
import { isNonEmptyString as E, isString as L } from "@sniptt/guards";
|
|
15
|
+
import { clsx as _ } from "clsx";
|
|
16
|
+
import { forwardRef as j } from "react";
|
|
17
|
+
import { Fragment as me, jsx as e, jsxs as g } from "react/jsx-runtime";
|
|
18
|
+
import { Button as de } from "@base-ui/react/button";
|
|
19
|
+
var dt = () => {
|
|
20
|
+
const { pageId: a, goToPage: r, goBack: n, canGoBack: i } = re();
|
|
21
|
+
return {
|
|
22
|
+
page: a,
|
|
23
|
+
goToPage: (t) => r({ id: t }),
|
|
24
|
+
goBack: n,
|
|
25
|
+
canGoBack: i
|
|
26
|
+
};
|
|
27
|
+
}, ut = ({ color: a, selected: r, focused: n, indicator: i, startIcon: t, endIcon: s, description: m, descriptionPlacement: o, shortcut: d, shortcutJoinLabel: l, hasSubmenu: c, disabled: u = !1, type: v = "button", children: k, ...M }) => /* @__PURE__ */ e(ne, {
|
|
28
|
+
color: a,
|
|
29
|
+
selected: r,
|
|
30
|
+
focused: n,
|
|
31
|
+
indicator: i,
|
|
32
|
+
startIcon: t,
|
|
33
|
+
endIcon: s,
|
|
34
|
+
description: m,
|
|
35
|
+
descriptionPlacement: o,
|
|
36
|
+
shortcut: d,
|
|
37
|
+
shortcutJoinLabel: l,
|
|
38
|
+
hasSubmenu: c,
|
|
39
|
+
disabled: u,
|
|
40
|
+
render: /* @__PURE__ */ e(de, {
|
|
41
|
+
...M,
|
|
42
|
+
nativeButton: !0,
|
|
43
|
+
type: v,
|
|
44
|
+
disabled: u
|
|
45
|
+
}),
|
|
46
|
+
children: k
|
|
47
|
+
}), ct = {
|
|
48
|
+
gray: "Gray",
|
|
49
|
+
tomato: "Tomato",
|
|
50
|
+
red: "Red",
|
|
51
|
+
ruby: "Ruby",
|
|
52
|
+
crimson: "Crimson",
|
|
53
|
+
pink: "Pink",
|
|
54
|
+
plum: "Plum",
|
|
55
|
+
purple: "Purple",
|
|
56
|
+
violet: "Violet",
|
|
57
|
+
iris: "Iris",
|
|
58
|
+
cyan: "Cyan",
|
|
59
|
+
turquoise: "Turquoise",
|
|
60
|
+
sky: "Sky",
|
|
61
|
+
blue: "Blue",
|
|
62
|
+
jade: "Jade",
|
|
63
|
+
green: "Green",
|
|
64
|
+
grass: "Grass",
|
|
65
|
+
mint: "Mint",
|
|
66
|
+
lime: "Lime",
|
|
67
|
+
bronze: "Bronze",
|
|
68
|
+
gold: "Gold",
|
|
69
|
+
brown: "Brown",
|
|
70
|
+
orange: "Orange",
|
|
71
|
+
amber: "Amber",
|
|
72
|
+
yellow: "Yellow"
|
|
73
|
+
}, ue = "_iconContainer_1ivx0_1", ce = "_withBackground_1ivx0_9", F = {
|
|
74
|
+
iconContainer: ue,
|
|
75
|
+
withBackground: ce
|
|
76
|
+
}, T = ({ children: a, className: r, hasBackground: n = !0 }) => /* @__PURE__ */ e("div", {
|
|
77
|
+
className: _(F.iconContainer, n && F.withBackground, r),
|
|
78
|
+
children: a
|
|
79
|
+
}), ve = ({ Icon: a, iconThemeColor: r, withContainer: n = !1, withContainerBackground: i = !0 }) => {
|
|
80
|
+
const t = b();
|
|
81
|
+
if (!a) return null;
|
|
82
|
+
if (h(r)) return /* @__PURE__ */ e(A, {
|
|
83
|
+
icon: /* @__PURE__ */ e(a, {
|
|
84
|
+
size: t.icon.size.md,
|
|
85
|
+
stroke: t.icon.stroke.sm
|
|
86
|
+
}),
|
|
87
|
+
color: r,
|
|
88
|
+
style: {
|
|
89
|
+
width: t.icon.size.md,
|
|
90
|
+
height: t.icon.size.md
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
const s = /* @__PURE__ */ e(a, {
|
|
94
|
+
size: t.icon.size.md,
|
|
95
|
+
stroke: t.icon.stroke.sm
|
|
96
|
+
});
|
|
97
|
+
return n ? /* @__PURE__ */ e(T, {
|
|
98
|
+
hasBackground: i,
|
|
99
|
+
children: s
|
|
100
|
+
}) : s;
|
|
101
|
+
}, _e = "_iconSwapContainer_g9ywp_1", Ie = "_defaultIcon_g9ywp_8", he = "_hoverIcon_g9ywp_13", z = {
|
|
102
|
+
iconSwapContainer: _e,
|
|
103
|
+
defaultIcon: Ie,
|
|
104
|
+
hoverIcon: he
|
|
105
|
+
}, fe = ({ LeftIcon: a, iconThemeColor: r, withIconContainer: n = !1, gripIconColor: i }) => {
|
|
106
|
+
const t = b();
|
|
107
|
+
if (!a) return null;
|
|
108
|
+
const s = /* @__PURE__ */ g("div", {
|
|
109
|
+
className: z.iconSwapContainer,
|
|
110
|
+
children: [/* @__PURE__ */ e("div", {
|
|
111
|
+
className: _(z.defaultIcon, "grip-swap-default-icon"),
|
|
112
|
+
children: h(r) ? /* @__PURE__ */ e(A, {
|
|
113
|
+
icon: /* @__PURE__ */ e(a, {
|
|
114
|
+
size: t.icon.size.md,
|
|
115
|
+
stroke: t.icon.stroke.sm
|
|
116
|
+
}),
|
|
117
|
+
color: r,
|
|
118
|
+
style: {
|
|
119
|
+
width: t.icon.size.md,
|
|
120
|
+
height: t.icon.size.md
|
|
121
|
+
}
|
|
122
|
+
}) : /* @__PURE__ */ e(a, {
|
|
123
|
+
size: t.icon.size.md,
|
|
124
|
+
stroke: t.icon.stroke.sm
|
|
125
|
+
})
|
|
126
|
+
}), /* @__PURE__ */ e("div", {
|
|
127
|
+
className: _(z.hoverIcon, "grip-swap-hover-icon"),
|
|
128
|
+
children: /* @__PURE__ */ e(N, {
|
|
129
|
+
size: t.icon.size.md,
|
|
130
|
+
stroke: t.icon.stroke.sm,
|
|
131
|
+
color: i
|
|
132
|
+
})
|
|
133
|
+
})]
|
|
134
|
+
});
|
|
135
|
+
return n && !h(r) ? /* @__PURE__ */ e(T, { children: s }) : s;
|
|
136
|
+
}, ge = "_menuItemBase_1jkew_1", be = "_hoverableMenuItemBase_1jkew_54", pe = "_menuItemLabel_1jkew_136", ye = "_menuItemLabelLight_1jkew_145", ke = "_noIconFiller_1jkew_155", Me = "_menuItemLeftContent_1jkew_159", Ce = "_menuItemRightContent_1jkew_172", Se = "_draggableItem_1jkew_183", we = "_menuItemIconCheckContainer_1jkew_189", Le = "_menuItemContextualText_1jkew_196", ze = "_rightMenuItemContextualText_1jkew_206", I = {
|
|
137
|
+
menuItemBase: ge,
|
|
138
|
+
hoverableMenuItemBase: be,
|
|
139
|
+
menuItemLabel: pe,
|
|
140
|
+
menuItemLabelLight: ye,
|
|
141
|
+
noIconFiller: ke,
|
|
142
|
+
menuItemLeftContent: Me,
|
|
143
|
+
menuItemRightContent: Ce,
|
|
144
|
+
draggableItem: Se,
|
|
145
|
+
menuItemIconCheckContainer: we,
|
|
146
|
+
menuItemContextualText: Le,
|
|
147
|
+
rightMenuItemContextualText: ze
|
|
148
|
+
}, Be = j(({ accent: a, isKeySelected: r, isHoverBackgroundDisabled: n, hovered: i, disabled: t, focused: s, className: m, children: o, ...d }, l) => /* @__PURE__ */ e("div", {
|
|
149
|
+
ref: l,
|
|
150
|
+
className: _(I.menuItemBase, m),
|
|
151
|
+
"data-accent": a,
|
|
152
|
+
"data-key-selected": r || void 0,
|
|
153
|
+
"data-hover-background-disabled": n || void 0,
|
|
154
|
+
"data-disabled": t || void 0,
|
|
155
|
+
"data-focused": s || void 0,
|
|
156
|
+
...d,
|
|
157
|
+
children: o
|
|
158
|
+
}));
|
|
159
|
+
Be.displayName = "StyledMenuItemBase";
|
|
160
|
+
var f = (a, r) => {
|
|
161
|
+
const n = j(({ className: i, children: t, ...s }, m) => /* @__PURE__ */ e("div", {
|
|
162
|
+
ref: m,
|
|
163
|
+
className: _(a, i),
|
|
164
|
+
...s,
|
|
165
|
+
children: t
|
|
166
|
+
}));
|
|
167
|
+
return n.displayName = r, n;
|
|
168
|
+
}, Ne = f(I.menuItemLabel, "StyledMenuItemLabel"), vt = f(I.menuItemLabelLight, "StyledMenuItemLabelLight"), _t = f(I.noIconFiller, "StyledNoIconFiller"), $ = f(I.menuItemLeftContent, "StyledMenuItemLeftContent"), x = f(I.menuItemRightContent, "StyledMenuItemRightContent"), G = f(I.draggableItem, "StyledDraggableItem"), R = j(({ accent: a, isKeySelected: r, isHoverBackgroundDisabled: n, hovered: i, disabled: t, focused: s, isIconDisplayedOnHoverOnly: m, cursor: o, className: d, children: l, ...c }, u) => /* @__PURE__ */ e("div", {
|
|
169
|
+
ref: u,
|
|
170
|
+
className: _(I.hoverableMenuItemBase, d),
|
|
171
|
+
"data-accent": a,
|
|
172
|
+
"data-key-selected": r || void 0,
|
|
173
|
+
"data-hover-background-disabled": n || void 0,
|
|
174
|
+
"data-disabled": t || void 0,
|
|
175
|
+
"data-focused": s || void 0,
|
|
176
|
+
"data-icon-displayed-on-hover-only": m || void 0,
|
|
177
|
+
"data-cursor": o,
|
|
178
|
+
...c,
|
|
179
|
+
children: l
|
|
180
|
+
}));
|
|
181
|
+
R.displayName = "StyledHoverableMenuItemBase";
|
|
182
|
+
var xe = f(I.menuItemContextualText, "StyledMenuItemContextualText"), je = f(I.rightMenuItemContextualText, "StyledRightMenuItemContextualText"), Te = "_mainText_d0zu3_1", Re = "_menuItemLabelRight_d0zu3_9", O = {
|
|
183
|
+
mainText: Te,
|
|
184
|
+
menuItemLabelRight: Re
|
|
185
|
+
}, D = ({ className: a, LeftComponent: r, LeftIcon: n, iconThemeColor: i, withIconContainer: t = !1, withIconContainerBackground: s = !0, text: m, contextualText: o, contextualTextPosition: d = "left", gripMode: l = "never", disabled: c = !1 }) => {
|
|
186
|
+
const u = b(), v = t ? S.font.color.tertiary : c ? S.font.color.extraLight : S.font.color.light;
|
|
187
|
+
return /* @__PURE__ */ g($, {
|
|
188
|
+
className: a,
|
|
189
|
+
children: [
|
|
190
|
+
l === "always" && (t ? /* @__PURE__ */ e(T, {
|
|
191
|
+
hasBackground: s,
|
|
192
|
+
children: /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(N, {
|
|
193
|
+
size: u.icon.size.md,
|
|
194
|
+
stroke: u.icon.stroke.sm,
|
|
195
|
+
color: v
|
|
196
|
+
}) })
|
|
197
|
+
}) : /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(N, {
|
|
198
|
+
size: u.icon.size.md,
|
|
199
|
+
stroke: u.icon.stroke.sm,
|
|
200
|
+
color: v
|
|
201
|
+
}) })),
|
|
202
|
+
l === "onHover" ? /* @__PURE__ */ e(fe, {
|
|
203
|
+
LeftIcon: n,
|
|
204
|
+
iconThemeColor: i,
|
|
205
|
+
withIconContainer: t,
|
|
206
|
+
gripIconColor: v
|
|
207
|
+
}) : /* @__PURE__ */ e(ve, {
|
|
208
|
+
Icon: n,
|
|
209
|
+
iconThemeColor: i,
|
|
210
|
+
withContainer: t,
|
|
211
|
+
withContainerBackground: s
|
|
212
|
+
}),
|
|
213
|
+
r,
|
|
214
|
+
/* @__PURE__ */ g(Ne, { children: [L(m) ? /* @__PURE__ */ e("div", {
|
|
215
|
+
className: O.mainText,
|
|
216
|
+
children: /* @__PURE__ */ e(w, { text: m })
|
|
217
|
+
}) : m, d === "left" && /* @__PURE__ */ e(me, { children: L(o) ? E(o) && /* @__PURE__ */ e(xe, { children: /* @__PURE__ */ e(w, {
|
|
218
|
+
text: `· ${o}`,
|
|
219
|
+
tooltipContent: o
|
|
220
|
+
}) }) : o })] }),
|
|
221
|
+
d === "right" && /* @__PURE__ */ e("div", {
|
|
222
|
+
className: O.menuItemLabelRight,
|
|
223
|
+
children: /* @__PURE__ */ e(je, { children: L(o) ? /* @__PURE__ */ e(w, { text: o }) : o })
|
|
224
|
+
})
|
|
225
|
+
]
|
|
226
|
+
});
|
|
227
|
+
}, De = "_subMenuIcon_j232v_1", Pe = "_subMenuIconOpened_j232v_9", q = {
|
|
228
|
+
subMenuIcon: De,
|
|
229
|
+
subMenuIconOpened: Pe
|
|
230
|
+
}, Fe = ({ accent: a = "default", className: r, withIconContainer: n = !1, withIconContainerBackground: i = !0, iconButtons: t, isIconDisplayedOnHoverOnly: s = !0, LeftIcon: m, iconThemeColor: o, LeftComponent: d, RightIcon: l, RightComponent: c, onClick: u, onMouseEnter: v, onMouseLeave: k, testId: M, text: H, contextualTextPosition: V = "left", contextualText: W, hasSubMenu: J = !1, disabled: p = !1, focused: K = !1, selected: U = !1, shortcut: P, shortcutJoinLabel: X, isSubMenuOpened: Y = !1 }) => {
|
|
231
|
+
const y = b();
|
|
232
|
+
return /* @__PURE__ */ g(R, {
|
|
233
|
+
"data-testid": M ?? void 0,
|
|
234
|
+
onClick: p ? void 0 : (C) => {
|
|
235
|
+
u && (C.preventDefault(), C.stopPropagation(), u?.(C));
|
|
236
|
+
},
|
|
237
|
+
disabled: p,
|
|
238
|
+
className: r,
|
|
239
|
+
accent: a,
|
|
240
|
+
isIconDisplayedOnHoverOnly: s,
|
|
241
|
+
onMouseEnter: v,
|
|
242
|
+
onMouseLeave: k,
|
|
243
|
+
focused: K || U,
|
|
244
|
+
children: [/* @__PURE__ */ e(D, {
|
|
245
|
+
LeftIcon: m ?? void 0,
|
|
246
|
+
iconThemeColor: o,
|
|
247
|
+
LeftComponent: d,
|
|
248
|
+
withIconContainer: n,
|
|
249
|
+
withIconContainerBackground: i,
|
|
250
|
+
text: H,
|
|
251
|
+
contextualText: W,
|
|
252
|
+
contextualTextPosition: V,
|
|
253
|
+
disabled: p
|
|
254
|
+
}), /* @__PURE__ */ g(x, { children: [
|
|
255
|
+
t && /* @__PURE__ */ e(x, {
|
|
256
|
+
className: "hoverable-buttons",
|
|
257
|
+
children: t
|
|
258
|
+
}),
|
|
259
|
+
h(P) && /* @__PURE__ */ e(Z, {
|
|
260
|
+
shortcut: P,
|
|
261
|
+
sequenceJoinLabel: X
|
|
262
|
+
}),
|
|
263
|
+
l && /* @__PURE__ */ e(l, {
|
|
264
|
+
size: y.icon.size.md,
|
|
265
|
+
stroke: y.icon.stroke.sm
|
|
266
|
+
}),
|
|
267
|
+
c,
|
|
268
|
+
J && /* @__PURE__ */ e("div", {
|
|
269
|
+
className: _(q.subMenuIcon, Y && q.subMenuIconOpened),
|
|
270
|
+
style: { visibility: p ? "hidden" : "visible" },
|
|
271
|
+
children: /* @__PURE__ */ e(Q, {
|
|
272
|
+
size: y.icon.size.sm,
|
|
273
|
+
color: y.font.color.light
|
|
274
|
+
})
|
|
275
|
+
})
|
|
276
|
+
] })]
|
|
277
|
+
});
|
|
278
|
+
}, It = ({ accent: a = "default", className: r, iconButtons: n, isIconDisplayedOnHoverOnly: i = !0, isTooltipOpen: t, onClick: s, onMouseEnter: m, onMouseLeave: o, testId: d, avatar: l, hasSubMenu: c = !1, text: u, contextualText: v }) => /* @__PURE__ */ e(Fe, {
|
|
279
|
+
accent: a,
|
|
280
|
+
className: r,
|
|
281
|
+
iconButtons: n,
|
|
282
|
+
isIconDisplayedOnHoverOnly: i,
|
|
283
|
+
isTooltipOpen: t,
|
|
284
|
+
LeftComponent: h(l) ? /* @__PURE__ */ e(oe, {
|
|
285
|
+
name: l.name,
|
|
286
|
+
src: l.src,
|
|
287
|
+
colorSeed: l.colorSeed,
|
|
288
|
+
size: l.size,
|
|
289
|
+
shape: l.shape
|
|
290
|
+
}) : void 0,
|
|
291
|
+
onClick: s,
|
|
292
|
+
onMouseEnter: m,
|
|
293
|
+
onMouseLeave: o,
|
|
294
|
+
testId: d,
|
|
295
|
+
text: u,
|
|
296
|
+
contextualText: v,
|
|
297
|
+
hasSubMenu: c
|
|
298
|
+
}), ht = ({ LeftIcon: a, withIconContainer: r = !1, accent: n = "default", iconButtons: i, onClick: t, text: s, contextualText: m, isDragDisabled: o = !1, className: d, isIconDisplayedOnHoverOnly: l = !0, gripMode: c = "never" }) => /* @__PURE__ */ g(R, {
|
|
299
|
+
onClick: t,
|
|
300
|
+
accent: n,
|
|
301
|
+
className: d,
|
|
302
|
+
isIconDisplayedOnHoverOnly: l,
|
|
303
|
+
cursor: c !== "never" ? o ? "default" : "drag" : "default",
|
|
304
|
+
children: [/* @__PURE__ */ e(D, {
|
|
305
|
+
LeftIcon: a,
|
|
306
|
+
text: s,
|
|
307
|
+
contextualText: m,
|
|
308
|
+
withIconContainer: r,
|
|
309
|
+
disabled: o,
|
|
310
|
+
gripMode: c
|
|
311
|
+
}), i && /* @__PURE__ */ e(x, {
|
|
312
|
+
className: "hoverable-buttons",
|
|
313
|
+
children: i
|
|
314
|
+
})]
|
|
315
|
+
}), Ge = "_suggestionMenuItem_1qyjt_1", Oe = { suggestionMenuItem: Ge }, ft = ({ LeftIcon: a, withIconContainer: r = !1, text: n, contextualText: i = void 0, contextualTextPosition: t = "left", className: s, selected: m, onClick: o }) => {
|
|
316
|
+
const d = (l) => {
|
|
317
|
+
o && (l.preventDefault(), l.stopPropagation(), o?.(l));
|
|
318
|
+
};
|
|
319
|
+
return /* @__PURE__ */ e("li", {
|
|
320
|
+
className: _(Oe.suggestionMenuItem, s),
|
|
321
|
+
"data-selected": m || void 0,
|
|
322
|
+
role: h(o) ? "button" : void 0,
|
|
323
|
+
tabIndex: h(o) ? 0 : void 0,
|
|
324
|
+
onClick: d,
|
|
325
|
+
onKeyDown: ie,
|
|
326
|
+
children: /* @__PURE__ */ e($, { children: /* @__PURE__ */ e(D, {
|
|
327
|
+
LeftIcon: a ?? void 0,
|
|
328
|
+
text: n,
|
|
329
|
+
contextualText: i,
|
|
330
|
+
contextualTextPosition: t,
|
|
331
|
+
withIconContainer: r
|
|
332
|
+
}) })
|
|
333
|
+
});
|
|
334
|
+
}, qe = "_menuPicker_o8ra4_1", Ae = "_iconContainer_o8ra4_41", Ee = "_label_o8ra4_50", B = {
|
|
335
|
+
menuPicker: qe,
|
|
336
|
+
iconContainer: Ae,
|
|
337
|
+
label: Ee
|
|
338
|
+
}, gt = ({ id: a, icon: r, label: n, selected: i = !1, disabled: t = !1, showLabel: s = !0, onClick: m, className: o, testId: d, tooltipContent: l, tooltipDelay: c = 0, tooltipOffset: u = 5 }) => {
|
|
339
|
+
const v = b();
|
|
340
|
+
return /* @__PURE__ */ e(ae, {
|
|
341
|
+
content: l,
|
|
342
|
+
disabled: !E(l),
|
|
343
|
+
sideOffset: u,
|
|
344
|
+
side: "bottom",
|
|
345
|
+
positionMethod: "fixed",
|
|
346
|
+
delay: c,
|
|
347
|
+
children: /* @__PURE__ */ g("button", {
|
|
348
|
+
id: a,
|
|
349
|
+
disabled: t,
|
|
350
|
+
onClick: m,
|
|
351
|
+
className: _(B.menuPicker, o),
|
|
352
|
+
"data-testid": d,
|
|
353
|
+
"data-selected": i ? "" : void 0,
|
|
354
|
+
"aria-pressed": i,
|
|
355
|
+
"aria-disabled": t,
|
|
356
|
+
"aria-label": n,
|
|
357
|
+
children: [/* @__PURE__ */ e("div", {
|
|
358
|
+
className: B.iconContainer,
|
|
359
|
+
children: /* @__PURE__ */ e(r, {
|
|
360
|
+
size: v.icon.size.md,
|
|
361
|
+
stroke: v.icon.stroke.sm
|
|
362
|
+
})
|
|
363
|
+
}), h(n) && s && /* @__PURE__ */ e("div", {
|
|
364
|
+
className: B.label,
|
|
365
|
+
"data-selected": i ? "" : void 0,
|
|
366
|
+
"data-disabled": t ? "" : void 0,
|
|
367
|
+
children: n
|
|
368
|
+
})]
|
|
369
|
+
})
|
|
370
|
+
});
|
|
371
|
+
}, $e = "_button_quwcq_1", He = { button: $e }, bt = ({ active: a = !1, className: r, children: n, startIcon: i, endIcon: t, badge: s, size: m = "sm", ...o }) => /* @__PURE__ */ e(ee, {
|
|
372
|
+
...o,
|
|
373
|
+
variant: "ghost",
|
|
374
|
+
size: m,
|
|
375
|
+
"data-active": a || void 0,
|
|
376
|
+
className: te(_(se.tab, He.button), r),
|
|
377
|
+
children: /* @__PURE__ */ e(le, {
|
|
378
|
+
startIcon: i,
|
|
379
|
+
endIcon: t,
|
|
380
|
+
badge: s,
|
|
381
|
+
children: n
|
|
382
|
+
})
|
|
383
|
+
});
|
|
384
|
+
export {
|
|
385
|
+
It as a,
|
|
386
|
+
ut as c,
|
|
387
|
+
ht as i,
|
|
388
|
+
dt as l,
|
|
389
|
+
gt as n,
|
|
390
|
+
Fe as o,
|
|
391
|
+
ft as r,
|
|
392
|
+
ct as s,
|
|
393
|
+
bt as t
|
|
394
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const I=require("./theme-Zf62UE02.cjs"),f=require("./isDefined-DS2Q42p5.cjs"),A=require("./TintedIconTile-Dp4uH0Up.cjs"),X=require("./Shortcut-oYvcja2P.cjs"),Z=require("./Button-DkijwPOi.cjs"),ee=require("./mergeClassNames-D4lshrT6.cjs"),y=require("./OverflowingTextWithTooltip-CXHiE4BG.cjs"),te=require("./ListItem-fFbJhi6M.cjs"),ne=require("./Dropdown-Ckcy6ZLF.cjs"),re=require("./Avatar-DK78lGPU.cjs"),ie=require("./handleClickableElementKeyDown-CByqtBhO.cjs"),D=require("./TabsTabContent-DZUNi_iE.cjs");let b=require("@sniptt/guards"),_=require("clsx"),q=require("react"),e=require("react/jsx-runtime"),ae=require("@base-ui/react/button"),p=require("@tabler/icons-react");var oe=()=>{const{pageId:n,goToPage:i,goBack:r,canGoBack:o}=ne.useDropdownContext();return{page:n,goToPage:t=>i({id:t}),goBack:r,canGoBack:o}},se=({color:n,selected:i,focused:r,indicator:o,startIcon:t,endIcon:s,description:l,descriptionPlacement:a,shortcut:d,shortcutJoinLabel:u,hasSubmenu:m,disabled:c=!1,type:v="button",children:k,...M})=>(0,e.jsx)(te.ListItem,{color:n,selected:i,focused:r,indicator:o,startIcon:t,endIcon:s,description:l,descriptionPlacement:a,shortcut:d,shortcutJoinLabel:u,hasSubmenu:m,disabled:c,render:(0,e.jsx)(ae.Button,{...M,nativeButton:!0,type:v,disabled:c}),children:k}),ue={gray:"Gray",tomato:"Tomato",red:"Red",ruby:"Ruby",crimson:"Crimson",pink:"Pink",plum:"Plum",purple:"Purple",violet:"Violet",iris:"Iris",cyan:"Cyan",turquoise:"Turquoise",sky:"Sky",blue:"Blue",jade:"Jade",green:"Green",grass:"Grass",mint:"Mint",lime:"Lime",bronze:"Bronze",gold:"Gold",brown:"Brown",orange:"Orange",amber:"Amber",yellow:"Yellow"},le="_iconContainer_1ivx0_1",de="_withBackground_1ivx0_9",P={iconContainer:le,withBackground:de},T=({children:n,className:i,hasBackground:r=!0})=>(0,e.jsx)("div",{className:(0,_.clsx)(P.iconContainer,r&&P.withBackground,i),children:n}),ce=({Icon:n,iconThemeColor:i,withContainer:r=!1,withContainerBackground:o=!0})=>{const t=I.useTheme();if(!n)return null;if(f.isDefined(i))return(0,e.jsx)(A.TintedIconTile,{icon:(0,e.jsx)(n,{size:t.icon.size.md,stroke:t.icon.stroke.sm}),color:i,style:{width:t.icon.size.md,height:t.icon.size.md}});const s=(0,e.jsx)(n,{size:t.icon.size.md,stroke:t.icon.stroke.sm});return r?(0,e.jsx)(T,{hasBackground:o,children:s}):s},me="_iconSwapContainer_g9ywp_1",ve="_defaultIcon_g9ywp_8",_e="_hoverIcon_g9ywp_13",w={iconSwapContainer:me,defaultIcon:ve,hoverIcon:_e},he=({LeftIcon:n,iconThemeColor:i,withIconContainer:r=!1,gripIconColor:o})=>{const t=I.useTheme();if(!n)return null;const s=(0,e.jsxs)("div",{className:w.iconSwapContainer,children:[(0,e.jsx)("div",{className:(0,_.clsx)(w.defaultIcon,"grip-swap-default-icon"),children:f.isDefined(i)?(0,e.jsx)(A.TintedIconTile,{icon:(0,e.jsx)(n,{size:t.icon.size.md,stroke:t.icon.stroke.sm}),color:i,style:{width:t.icon.size.md,height:t.icon.size.md}}):(0,e.jsx)(n,{size:t.icon.size.md,stroke:t.icon.stroke.sm})}),(0,e.jsx)("div",{className:(0,_.clsx)(w.hoverIcon,"grip-swap-hover-icon"),children:(0,e.jsx)(p.IconGripVertical,{size:t.icon.size.md,stroke:t.icon.stroke.sm,color:o})})]});return r&&!f.isDefined(i)?(0,e.jsx)(T,{children:s}):s},Ie="_menuItemBase_1jkew_1",fe="_hoverableMenuItemBase_1jkew_54",ge="_menuItemLabel_1jkew_136",be="_menuItemLabelLight_1jkew_145",xe="_noIconFiller_1jkew_155",je="_menuItemLeftContent_1jkew_159",ye="_menuItemRightContent_1jkew_172",pe="_draggableItem_1jkew_183",ke="_menuItemIconCheckContainer_1jkew_189",Me="_menuItemContextualText_1jkew_196",Ce="_rightMenuItemContextualText_1jkew_206",h={menuItemBase:Ie,hoverableMenuItemBase:fe,menuItemLabel:ge,menuItemLabelLight:be,noIconFiller:xe,menuItemLeftContent:je,menuItemRightContent:ye,draggableItem:pe,menuItemIconCheckContainer:ke,menuItemContextualText:Me,rightMenuItemContextualText:Ce},we=(0,q.forwardRef)(({accent:n,isKeySelected:i,isHoverBackgroundDisabled:r,hovered:o,disabled:t,focused:s,className:l,children:a,...d},u)=>(0,e.jsx)("div",{ref:u,className:(0,_.clsx)(h.menuItemBase,l),"data-accent":n,"data-key-selected":i||void 0,"data-hover-background-disabled":r||void 0,"data-disabled":t||void 0,"data-focused":s||void 0,...d,children:a}));we.displayName="StyledMenuItemBase";var g=(n,i)=>{const r=(0,q.forwardRef)(({className:o,children:t,...s},l)=>(0,e.jsx)("div",{ref:l,className:(0,_.clsx)(n,o),...s,children:t}));return r.displayName=i,r},Se=g(h.menuItemLabel,"StyledMenuItemLabel"),Je=g(h.menuItemLabelLight,"StyledMenuItemLabelLight"),Ue=g(h.noIconFiller,"StyledNoIconFiller"),E=g(h.menuItemLeftContent,"StyledMenuItemLeftContent"),L=g(h.menuItemRightContent,"StyledMenuItemRightContent"),O=g(h.draggableItem,"StyledDraggableItem"),B=(0,q.forwardRef)(({accent:n,isKeySelected:i,isHoverBackgroundDisabled:r,hovered:o,disabled:t,focused:s,isIconDisplayedOnHoverOnly:l,cursor:a,className:d,children:u,...m},c)=>(0,e.jsx)("div",{ref:c,className:(0,_.clsx)(h.hoverableMenuItemBase,d),"data-accent":n,"data-key-selected":i||void 0,"data-hover-background-disabled":r||void 0,"data-disabled":t||void 0,"data-focused":s||void 0,"data-icon-displayed-on-hover-only":l||void 0,"data-cursor":a,...m,children:u}));B.displayName="StyledHoverableMenuItemBase";var Le=g(h.menuItemContextualText,"StyledMenuItemContextualText"),qe=g(h.rightMenuItemContextualText,"StyledRightMenuItemContextualText"),Te="_mainText_d0zu3_1",Be="_menuItemLabelRight_d0zu3_9",R={mainText:Te,menuItemLabelRight:Be},z=({className:n,LeftComponent:i,LeftIcon:r,iconThemeColor:o,withIconContainer:t=!1,withIconContainerBackground:s=!0,text:l,contextualText:a,contextualTextPosition:d="left",gripMode:u="never",disabled:m=!1})=>{const c=I.useTheme(),v=t?I.themeCssVariables.font.color.tertiary:m?I.themeCssVariables.font.color.extraLight:I.themeCssVariables.font.color.light;return(0,e.jsxs)(E,{className:n,children:[u==="always"&&(t?(0,e.jsx)(T,{hasBackground:s,children:(0,e.jsx)(O,{children:(0,e.jsx)(p.IconGripVertical,{size:c.icon.size.md,stroke:c.icon.stroke.sm,color:v})})}):(0,e.jsx)(O,{children:(0,e.jsx)(p.IconGripVertical,{size:c.icon.size.md,stroke:c.icon.stroke.sm,color:v})})),u==="onHover"?(0,e.jsx)(he,{LeftIcon:r,iconThemeColor:o,withIconContainer:t,gripIconColor:v}):(0,e.jsx)(ce,{Icon:r,iconThemeColor:o,withContainer:t,withContainerBackground:s}),i,(0,e.jsxs)(Se,{children:[(0,b.isString)(l)?(0,e.jsx)("div",{className:R.mainText,children:(0,e.jsx)(y.OverflowingTextWithTooltip,{text:l})}):l,d==="left"&&(0,e.jsx)(e.Fragment,{children:(0,b.isString)(a)?(0,b.isNonEmptyString)(a)&&(0,e.jsx)(Le,{children:(0,e.jsx)(y.OverflowingTextWithTooltip,{text:`· ${a}`,tooltipContent:a})}):a})]}),d==="right"&&(0,e.jsx)("div",{className:R.menuItemLabelRight,children:(0,e.jsx)(qe,{children:(0,b.isString)(a)?(0,e.jsx)(y.OverflowingTextWithTooltip,{text:a}):a})})]})},ze="_subMenuIcon_j232v_1",Ne="_subMenuIconOpened_j232v_9",G={subMenuIcon:ze,subMenuIconOpened:Ne},F=({accent:n="default",className:i,withIconContainer:r=!1,withIconContainerBackground:o=!0,iconButtons:t,isIconDisplayedOnHoverOnly:s=!0,LeftIcon:l,iconThemeColor:a,LeftComponent:d,RightIcon:u,RightComponent:m,onClick:c,onMouseEnter:v,onMouseLeave:k,testId:M,text:V,contextualTextPosition:W="left",contextualText:H,hasSubMenu:K=!1,disabled:x=!1,focused:J=!1,selected:U=!1,shortcut:N,shortcutJoinLabel:$,isSubMenuOpened:Y=!1})=>{const j=I.useTheme(),Q=C=>{c&&(C.preventDefault(),C.stopPropagation(),c?.(C))};return(0,e.jsxs)(B,{"data-testid":M??void 0,onClick:x?void 0:Q,disabled:x,className:i,accent:n,isIconDisplayedOnHoverOnly:s,onMouseEnter:v,onMouseLeave:k,focused:J||U,children:[(0,e.jsx)(z,{LeftIcon:l??void 0,iconThemeColor:a,LeftComponent:d,withIconContainer:r,withIconContainerBackground:o,text:V,contextualText:H,contextualTextPosition:W,disabled:x}),(0,e.jsxs)(L,{children:[t&&(0,e.jsx)(L,{className:"hoverable-buttons",children:t}),f.isDefined(N)&&(0,e.jsx)(X.Shortcut,{shortcut:N,sequenceJoinLabel:$}),u&&(0,e.jsx)(u,{size:j.icon.size.md,stroke:j.icon.stroke.sm}),m,K&&(0,e.jsx)("div",{className:(0,_.clsx)(G.subMenuIcon,Y&&G.subMenuIconOpened),style:{visibility:x?"hidden":"visible"},children:(0,e.jsx)(p.IconChevronRight,{size:j.icon.size.sm,color:j.font.color.light})})]})]})},De=({accent:n="default",className:i,iconButtons:r,isIconDisplayedOnHoverOnly:o=!0,isTooltipOpen:t,onClick:s,onMouseEnter:l,onMouseLeave:a,testId:d,avatar:u,hasSubMenu:m=!1,text:c,contextualText:v})=>(0,e.jsx)(F,{accent:n,className:i,iconButtons:r,isIconDisplayedOnHoverOnly:o,isTooltipOpen:t,LeftComponent:f.isDefined(u)?(0,e.jsx)(re.Avatar,{name:u.name,src:u.src,colorSeed:u.colorSeed,size:u.size,shape:u.shape}):void 0,onClick:s,onMouseEnter:l,onMouseLeave:a,testId:d,text:c,contextualText:v,hasSubMenu:m}),Pe=({LeftIcon:n,withIconContainer:i=!1,accent:r="default",iconButtons:o,onClick:t,text:s,contextualText:l,isDragDisabled:a=!1,className:d,isIconDisplayedOnHoverOnly:u=!0,gripMode:m="never"})=>(0,e.jsxs)(B,{onClick:t,accent:r,className:d,isIconDisplayedOnHoverOnly:u,cursor:m!=="never"?a?"default":"drag":"default",children:[(0,e.jsx)(z,{LeftIcon:n,text:s,contextualText:l,withIconContainer:i,disabled:a,gripMode:m}),o&&(0,e.jsx)(L,{className:"hoverable-buttons",children:o})]}),Oe="_suggestionMenuItem_1qyjt_1",Re={suggestionMenuItem:Oe},Ge=({LeftIcon:n,withIconContainer:i=!1,text:r,contextualText:o=void 0,contextualTextPosition:t="left",className:s,selected:l,onClick:a})=>{const d=u=>{a&&(u.preventDefault(),u.stopPropagation(),a?.(u))};return(0,e.jsx)("li",{className:(0,_.clsx)(Re.suggestionMenuItem,s),"data-selected":l||void 0,role:f.isDefined(a)?"button":void 0,tabIndex:f.isDefined(a)?0:void 0,onClick:d,onKeyDown:ie.handleClickableElementKeyDown,children:(0,e.jsx)(E,{children:(0,e.jsx)(z,{LeftIcon:n??void 0,text:r,contextualText:o,contextualTextPosition:t,withIconContainer:i})})})},Ae="_menuPicker_o8ra4_1",Ee="_iconContainer_o8ra4_41",Fe="_label_o8ra4_50",S={menuPicker:Ae,iconContainer:Ee,label:Fe},Ve=({id:n,icon:i,label:r,selected:o=!1,disabled:t=!1,showLabel:s=!0,onClick:l,className:a,testId:d,tooltipContent:u,tooltipDelay:m=0,tooltipOffset:c=5})=>{const v=I.useTheme();return(0,e.jsx)(y.Tooltip,{content:u,disabled:!(0,b.isNonEmptyString)(u),sideOffset:c,side:"bottom",positionMethod:"fixed",delay:m,children:(0,e.jsxs)("button",{id:n,disabled:t,onClick:l,className:(0,_.clsx)(S.menuPicker,a),"data-testid":d,"data-selected":o?"":void 0,"aria-pressed":o,"aria-disabled":t,"aria-label":r,children:[(0,e.jsx)("div",{className:S.iconContainer,children:(0,e.jsx)(i,{size:v.icon.size.md,stroke:v.icon.stroke.sm})}),f.isDefined(r)&&s&&(0,e.jsx)("div",{className:S.label,"data-selected":o?"":void 0,"data-disabled":t?"":void 0,children:r})]})})},We="_button_quwcq_1",He={button:We},Ke=({active:n=!1,className:i,children:r,startIcon:o,endIcon:t,badge:s,size:l="sm",...a})=>(0,e.jsx)(Z.Button,{...a,variant:"ghost",size:l,"data-active":n||void 0,className:ee.mergeClassNames((0,_.clsx)(D.Tab_module_default.tab,He.button),i),children:(0,e.jsx)(D.TabsTabContent,{startIcon:o,endIcon:t,badge:s,children:r})});Object.defineProperty(exports,"DEFAULT_COLOR_LABELS",{enumerable:!0,get:function(){return ue}});Object.defineProperty(exports,"ListItemButton",{enumerable:!0,get:function(){return se}});Object.defineProperty(exports,"MenuItem",{enumerable:!0,get:function(){return F}});Object.defineProperty(exports,"MenuItemAvatar",{enumerable:!0,get:function(){return De}});Object.defineProperty(exports,"MenuItemDraggable",{enumerable:!0,get:function(){return Pe}});Object.defineProperty(exports,"MenuItemSuggestion",{enumerable:!0,get:function(){return Ge}});Object.defineProperty(exports,"MenuPicker",{enumerable:!0,get:function(){return Ve}});Object.defineProperty(exports,"TabButton",{enumerable:!0,get:function(){return Ke}});Object.defineProperty(exports,"useDropdownPage",{enumerable:!0,get:function(){return oe}});
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { t as T } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { t as p } from "./mergeClassNames-ClFMR1v0.js";
|
|
3
|
+
import { n as u, t as w } from "./TabsTabContent-s6J5bZ3R.js";
|
|
4
|
+
import { useRender as y } from "@base-ui/react/use-render";
|
|
5
|
+
import { isString as A } from "@sniptt/guards";
|
|
6
|
+
import { clsx as N } from "clsx";
|
|
7
|
+
import { jsx as d, jsxs as x } from "react/jsx-runtime";
|
|
8
|
+
import { useDirection as k } from "@base-ui/react/direction-provider";
|
|
9
|
+
import { Tabs as f } from "@base-ui/react/tabs";
|
|
10
|
+
var v = "_root_ikxnr_1", K = "_list_ikxnr_13", B = "_item_ikxnr_24", I = "_content_ikxnr_35", D = "_separator_ikxnr_55", m = {
|
|
11
|
+
root: v,
|
|
12
|
+
list: K,
|
|
13
|
+
item: B,
|
|
14
|
+
content: I,
|
|
15
|
+
separator: D
|
|
16
|
+
}, R = ({ children: r, href: a, render: n, title: t, current: s, className: o, ref: l, "aria-current": e = s ? "page" : void 0, ...b }) => y({
|
|
17
|
+
defaultTagName: T(a) ? "a" : "span",
|
|
18
|
+
render: n,
|
|
19
|
+
ref: l,
|
|
20
|
+
props: {
|
|
21
|
+
...b,
|
|
22
|
+
children: r,
|
|
23
|
+
href: a,
|
|
24
|
+
title: t ?? (A(r) ? r : void 0),
|
|
25
|
+
"aria-current": e,
|
|
26
|
+
"data-linked": T(a) || void 0,
|
|
27
|
+
className: N(m.content, o)
|
|
28
|
+
}
|
|
29
|
+
}), M = ({ links: r, className: a, render: n, ref: t, "aria-label": s = "Breadcrumb", ...o }) => y({
|
|
30
|
+
defaultTagName: "nav",
|
|
31
|
+
render: n,
|
|
32
|
+
ref: t,
|
|
33
|
+
props: {
|
|
34
|
+
...o,
|
|
35
|
+
"aria-label": s,
|
|
36
|
+
className: N(m.root, a),
|
|
37
|
+
children: /* @__PURE__ */ d("ol", {
|
|
38
|
+
className: m.list,
|
|
39
|
+
children: r.map((l, e) => /* @__PURE__ */ x("li", {
|
|
40
|
+
className: m.item,
|
|
41
|
+
children: [e > 0 && /* @__PURE__ */ d("span", {
|
|
42
|
+
className: m.separator,
|
|
43
|
+
"aria-hidden": "true",
|
|
44
|
+
children: "/"
|
|
45
|
+
}), /* @__PURE__ */ d(R, {
|
|
46
|
+
...l,
|
|
47
|
+
current: e === r.length - 1
|
|
48
|
+
})]
|
|
49
|
+
}, e))
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
}), H = ({ event: r, direction: a, loopFocus: n }) => {
|
|
53
|
+
if (r.altKey || r.ctrlKey || r.metaKey || r.shiftKey) return;
|
|
54
|
+
const t = r.currentTarget, s = Array.from(t.querySelectorAll('[role="tab"]')).filter((i) => i.closest('[role="tablist"]') === t), o = s.findIndex((i) => i === r.target);
|
|
55
|
+
if (o === -1) return;
|
|
56
|
+
const l = a === "rtl" ? ["ArrowLeft", "ArrowRight"] : ["ArrowRight", "ArrowLeft"], [e, b] = t.getAttribute("aria-orientation") === "vertical" ? ["ArrowDown", "ArrowUp"] : l;
|
|
57
|
+
if (![
|
|
58
|
+
e,
|
|
59
|
+
b,
|
|
60
|
+
"Home",
|
|
61
|
+
"End"
|
|
62
|
+
].includes(r.key)) return;
|
|
63
|
+
r.preventBaseUIHandler(), r.preventDefault();
|
|
64
|
+
const c = s.filter((i) => !i.hasAttribute("data-disabled") && !i.hasAttribute("disabled") && i.getAttribute("aria-disabled") !== "true" && !i.closest("[hidden], [inert]"));
|
|
65
|
+
if (r.key === "Home") {
|
|
66
|
+
c[0]?.focus();
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
if (r.key === "End") {
|
|
70
|
+
c[c.length - 1]?.focus();
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
const _ = r.key === b, h = _ ? [...c].reverse() : c, g = h.find((i) => _ ? s.indexOf(i) < o : s.indexOf(i) > o);
|
|
74
|
+
if (T(g)) {
|
|
75
|
+
g.focus();
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
n && h[0]?.focus();
|
|
79
|
+
}, L = ({ className: r, children: a, onKeyDown: n, loopFocus: t = !0, ...s }) => {
|
|
80
|
+
const o = k(), l = (e) => {
|
|
81
|
+
if (n?.(e), e.defaultPrevented) {
|
|
82
|
+
e.preventBaseUIHandler();
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
e.baseUIHandlerPrevented || H({
|
|
86
|
+
event: e,
|
|
87
|
+
direction: o,
|
|
88
|
+
loopFocus: t
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
return /* @__PURE__ */ x(f.List, {
|
|
92
|
+
...s,
|
|
93
|
+
loopFocus: t,
|
|
94
|
+
onKeyDown: l,
|
|
95
|
+
className: p(u.list, r),
|
|
96
|
+
children: [a, /* @__PURE__ */ d(f.Indicator, { className: u.indicator })]
|
|
97
|
+
});
|
|
98
|
+
}, P = ({ className: r, ...a }) => /* @__PURE__ */ d(f.Panel, {
|
|
99
|
+
...a,
|
|
100
|
+
className: p(u.panel, r)
|
|
101
|
+
}), U = ({ className: r, ...a }) => /* @__PURE__ */ d(f.Root, {
|
|
102
|
+
...a,
|
|
103
|
+
className: p(u.root, r)
|
|
104
|
+
}), C = ({ className: r, children: a, startIcon: n, endIcon: t, badge: s, highlighted: o = !1, size: l = "sm", ...e }) => /* @__PURE__ */ d(f.Tab, {
|
|
105
|
+
...e,
|
|
106
|
+
className: p(u.tab, r),
|
|
107
|
+
"data-size": l,
|
|
108
|
+
"data-highlighted": o || void 0,
|
|
109
|
+
children: /* @__PURE__ */ d(w, {
|
|
110
|
+
startIcon: n,
|
|
111
|
+
endIcon: t,
|
|
112
|
+
badge: s,
|
|
113
|
+
children: a
|
|
114
|
+
})
|
|
115
|
+
}), Q = {
|
|
116
|
+
Root: U,
|
|
117
|
+
List: L,
|
|
118
|
+
Tab: C,
|
|
119
|
+
Panel: P
|
|
120
|
+
};
|
|
121
|
+
export {
|
|
122
|
+
M as n,
|
|
123
|
+
Q as t
|
|
124
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const T=require("./isDefined-DS2Q42p5.cjs"),f=require("./mergeClassNames-D4lshrT6.cjs"),u=require("./TabsTabContent-DZUNi_iE.cjs");let N=require("@base-ui/react/use-render"),h=require("@sniptt/guards"),y=require("clsx"),l=require("react/jsx-runtime"),j=require("@base-ui/react/direction-provider"),_=require("@base-ui/react/tabs");var q="_root_ikxnr_1",v="_list_ikxnr_13",w="_item_ikxnr_24",A="_content_ikxnr_35",k="_separator_ikxnr_55",b={root:q,list:v,item:w,content:A,separator:k},D=({children:e,href:r,render:o,title:t,current:s,className:i,ref:d,"aria-current":a=s?"page":void 0,...m})=>(0,N.useRender)({defaultTagName:T.isDefined(r)?"a":"span",render:o,ref:d,props:{...m,children:e,href:r,title:t??((0,h.isString)(e)?e:void 0),"aria-current":a,"data-linked":T.isDefined(r)||void 0,className:(0,y.clsx)(b.content,i)}}),K=({links:e,className:r,render:o,ref:t,"aria-label":s="Breadcrumb",...i})=>(0,N.useRender)({defaultTagName:"nav",render:o,ref:t,props:{...i,"aria-label":s,className:(0,y.clsx)(b.root,r),children:(0,l.jsx)("ol",{className:b.list,children:e.map((d,a)=>(0,l.jsxs)("li",{className:b.item,children:[a>0&&(0,l.jsx)("span",{className:b.separator,"aria-hidden":"true",children:"/"}),(0,l.jsx)(D,{...d,current:a===e.length-1})]},a))})}}),B=({event:e,direction:r,loopFocus:o})=>{if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const t=e.currentTarget,s=Array.from(t.querySelectorAll('[role="tab"]')).filter(n=>n.closest('[role="tablist"]')===t),i=s.findIndex(n=>n===e.target);if(i===-1)return;const d=r==="rtl"?["ArrowLeft","ArrowRight"]:["ArrowRight","ArrowLeft"],[a,m]=t.getAttribute("aria-orientation")==="vertical"?["ArrowDown","ArrowUp"]:d;if(![a,m,"Home","End"].includes(e.key))return;e.preventBaseUIHandler(),e.preventDefault();const c=s.filter(n=>!n.hasAttribute("data-disabled")&&!n.hasAttribute("disabled")&&n.getAttribute("aria-disabled")!=="true"&&!n.closest("[hidden], [inert]"));if(e.key==="Home"){c[0]?.focus();return}if(e.key==="End"){c[c.length-1]?.focus();return}const x=e.key===m,g=x?[...c].reverse():c,p=g.find(n=>x?s.indexOf(n)<i:s.indexOf(n)>i);if(T.isDefined(p)){p.focus();return}o&&g[0]?.focus()},C=({className:e,children:r,onKeyDown:o,loopFocus:t=!0,...s})=>{const i=(0,j.useDirection)(),d=a=>{if(o?.(a),a.defaultPrevented){a.preventBaseUIHandler();return}a.baseUIHandlerPrevented||B({event:a,direction:i,loopFocus:t})};return(0,l.jsxs)(_.Tabs.List,{...s,loopFocus:t,onKeyDown:d,className:f.mergeClassNames(u.Tab_module_default.list,e),children:[r,(0,l.jsx)(_.Tabs.Indicator,{className:u.Tab_module_default.indicator})]})},I=({className:e,...r})=>(0,l.jsx)(_.Tabs.Panel,{...r,className:f.mergeClassNames(u.Tab_module_default.panel,e)}),P=({className:e,...r})=>(0,l.jsx)(_.Tabs.Root,{...r,className:f.mergeClassNames(u.Tab_module_default.root,e)}),R=({className:e,children:r,startIcon:o,endIcon:t,badge:s,highlighted:i=!1,size:d="sm",...a})=>(0,l.jsx)(_.Tabs.Tab,{...a,className:f.mergeClassNames(u.Tab_module_default.tab,e),"data-size":d,"data-highlighted":i||void 0,children:(0,l.jsx)(u.TabsTabContent,{startIcon:o,endIcon:t,badge:s,children:r})}),H={Root:P,List:C,Tab:R,Panel:I};Object.defineProperty(exports,"Breadcrumb",{enumerable:!0,get:function(){return K}});Object.defineProperty(exports,"Tabs",{enumerable:!0,get:function(){return H}});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { t as _ } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
var i = /[·ʻʼ´¨ˆ˜΄ˇ˘˙˚˛˝¯¸^`]/g, T = new RegExp("([\\p{Script=Latin}\\p{Script=Greek}\\p{Script_Extensions=Arabic}\\p{Script=Hebrew}])\\p{Mark}+", "gu"), R = new RegExp("(\\p{Script=Cyrillic})(\\p{Mark}+)", "gu"), p = /[\u0300\u0301]/g, C = ["г", "к"], L = /[가-힣]+/g, S = /[ㄱ-ㆎ]/g, E = {
|
|
3
|
+
ø: "o",
|
|
4
|
+
æ: "ae",
|
|
5
|
+
ß: "ss",
|
|
6
|
+
ð: "d",
|
|
7
|
+
þ: "th",
|
|
8
|
+
ł: "l",
|
|
9
|
+
œ: "oe",
|
|
10
|
+
đ: "d",
|
|
11
|
+
ı: "i",
|
|
12
|
+
ŋ: "ng",
|
|
13
|
+
ς: "σ",
|
|
14
|
+
ё: "е"
|
|
15
|
+
}, c = new RegExp(`[${Object.keys(E).join("")}]`, "g"), A = (e, r, a) => C.includes(r) ? `${r}${a}` : `${r}${a.replace(p, "")}`, n = (e) => _(e) ? e.toLowerCase().normalize("NFD").replace(i, "").replace(T, "$1").replace(R, A).normalize("NFC").replace(L, (r) => r.normalize("NFD")).replace(S, (r) => r.normalize("NFKD")).replace(c, (r) => E[r] ?? r) : "";
|
|
16
|
+
export {
|
|
17
|
+
n as t
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const E=require("./isDefined-DS2Q42p5.cjs");var _=/[·ʻʼ´¨ˆ˜΄ˇ˘˙˚˛˝¯¸^`]/g,c=new RegExp("([\\p{Script=Latin}\\p{Script=Greek}\\p{Script_Extensions=Arabic}\\p{Script=Hebrew}])\\p{Mark}+","gu"),T=new RegExp("(\\p{Script=Cyrillic})(\\p{Mark}+)","gu"),n=/[\u0300\u0301]/g,R=["г","к"],S=/[가-힣]+/g,C=/[ㄱ-ㆎ]/g,i={ø:"o",æ:"ae",ß:"ss",ð:"d",þ:"th",ł:"l",œ:"oe",đ:"d",ı:"i",ŋ:"ng",ς:"σ",ё:"е"},L=new RegExp(`[${Object.keys(i).join("")}]`,"g"),p=(r,e,a)=>R.includes(e)?`${e}${a}`:`${e}${a.replace(n,"")}`,A=r=>E.isDefined(r)?r.toLowerCase().normalize("NFD").replace(_,"").replace(c,"$1").replace(T,p).normalize("NFC").replace(S,e=>e.normalize("NFD")).replace(C,e=>e.normalize("NFKD")).replace(L,e=>i[e]??e):"";Object.defineProperty(exports,"normalizeSearchText",{enumerable:!0,get:function(){return A}});
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { VisuallyHidden } from './components/VisuallyHidden';
|
|
2
|
+
export type { VisuallyHiddenProps } from './types/VisuallyHiddenProps';
|
|
2
3
|
export { handleClickableElementKeyDown } from './utils/handleClickableElementKeyDown';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../handleClickableElementKeyDown-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../VisuallyHidden-B-n4x1KY.cjs"),l=require("../handleClickableElementKeyDown-CByqtBhO.cjs");exports.VisuallyHidden=e.VisuallyHidden;exports.handleClickableElementKeyDown=l.handleClickableElementKeyDown;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as l } from "../VisuallyHidden-CFZP7ybO.js";
|
|
2
|
+
import { t } from "../handleClickableElementKeyDown-C8Uz61XJ.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
l as VisuallyHidden,
|
|
5
|
+
t as handleClickableElementKeyDown
|
|
5
6
|
};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { AvatarProps } from './types/AvatarProps';
|
|
2
|
-
export declare const Avatar: ({ src, name,
|
|
2
|
+
export declare const Avatar: (({ src, name, icon, imageProps, fallbackProps, backgroundColor, ...props }: AvatarProps) => import("react").JSX.Element) & {
|
|
3
|
+
Root: ({ name, colorSeed, size, shape, variant, color, backgroundColor, borderColor, pulsing, ring, className, style, ...props }: import('..').AvatarRootProps) => import("react").JSX.Element;
|
|
4
|
+
Image: ({ className, ...props }: import('..').AvatarImageProps) => import("react").JSX.Element;
|
|
5
|
+
Fallback: ({ className, ...props }: import('..').AvatarFallbackProps) => import("react").JSX.Element;
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getAvatarInitial: (name?: string) => string | undefined;
|