twenty-ui 2.45.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/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 +1 -1
- package/dist/components/data-display/MetricRow/types/MetricRowProps.d.ts +2 -3
- 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 -85
- 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 +1 -1
- package/dist/components/input/ImageInput/types/ImageInputProps.d.ts +4 -4
- 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/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/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/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/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 +43 -32
- 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 -631
- 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/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/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 +10 -1
- package/dist/primitives/feedback/internal/constants/FeedbackStatusColors.d.ts +7 -0
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +9 -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 +3 -1
- 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/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 +20 -0
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +19 -15
- 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/internal/BreadcrumbItemContent.d.ts +1 -1
- package/dist/primitives/navigation/Breadcrumb/types/BreadcrumbItem.d.ts +4 -1
- 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 +3 -3
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +2 -2
- 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 +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/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 +2 -0
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +4 -4
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +72 -63
- 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-D3fk3hSo.cjs → typography-CBqN-Jhw.cjs} +1 -1
- package/dist/typography-D-DQvgaS.js +5 -0
- package/dist/{useIsMobile-CAIiLC-3.js → useIsMobile-BvEB9MOV.js} +1 -1
- package/dist/{useIsMobile-UXHqqYXb.cjs → useIsMobile-C_rtkXZO.cjs} +1 -1
- 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 -0
- 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-C0FtFpJC.js +0 -68
- package/dist/Avatar-CkI8b3nh.cjs +0 -1
- package/dist/HorizontalSeparator-JwV0dB5W.js +0 -44
- package/dist/HorizontalSeparator-vJLHHlc4.cjs +0 -1
- package/dist/ListItem-B2HOeN2h.cjs +0 -1
- package/dist/ListItem-D8BQRK1W.js +0 -97
- package/dist/ListItem.module-Dxd8jOJP.js +0 -35
- package/dist/ListItem.module-RqrfwrFg.cjs +0 -1
- 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-CNpmkBvJ.js +0 -198
- package/dist/OverflowingTextWithTooltip-tsJWb_Ie.cjs +0 -1
- package/dist/ProgressBar-21MXyySH.js +0 -108
- package/dist/ProgressBar-CyqeRyzA.cjs +0 -1
- package/dist/ResizeHandle-CGYGfOVF.js +0 -89
- package/dist/ResizeHandle-CI-VTVOi.cjs +0 -1
- package/dist/Shortcut-CRCVbA2m.js +0 -71
- package/dist/Shortcut-CuBFak3I.cjs +0 -1
- package/dist/Switch-BQp0t6JZ.js +0 -129
- package/dist/Switch-CFCj3OQZ.cjs +0 -1
- 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-BizDepCM.cjs +0 -1
- package/dist/components-CC-3jXEq.js +0 -2144
- package/dist/data-display-BgweQocz.cjs +0 -1
- package/dist/data-display-Dn_nzrc8.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-C50264Jb.js +0 -407
- package/dist/input-CRiX4eQH.cjs +0 -1
- package/dist/layout-BEC7fKLU.js +0 -34
- package/dist/layout-DniJJ8Mx.cjs +0 -1
- package/dist/navigation-B9YTBTaa.cjs +0 -1
- package/dist/navigation-CQUyRKgk.js +0 -122
- package/dist/primitives/accessibility/components/VisibilityHidden.d.ts +0 -3
- 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/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-C9ZUjKxU.js +0 -264
- package/dist/surfaces-Davk4uBw.cjs +0 -1
- package/dist/theme-DumxXtpW.cjs +0 -1
- package/dist/typography-DUJWRilJ.js +0 -5
- package/dist/useProvidedTextDirection-B7ovnsdr.cjs +0 -1
- package/dist/useProvidedTextDirection-P1dtjUtE.js +0 -9
- package/dist/utilities-CJKPcDM4.js +0 -28
- package/dist/utilities-CdR__WZM.cjs +0 -1
- /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/{components/navigation/Dropdown → utilities}/internal/preventDismissingClickActivation.d.ts +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DropdownOptionItemProps } from '../types/DropdownOptionItemProps';
|
|
2
|
-
export declare const DropdownOptionItem: ({ selected, indicator, onSelect, closeOnSelect, color, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, children, render, disabled, nativeButton, onClick, onFocus, id, ...props }: DropdownOptionItemProps) => import("react").JSX.Element;
|
|
2
|
+
export declare const DropdownOptionItem: ({ selected, indicator, onSelect, closeOnSelect, color, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, actions, actionsVisibility, children, render, disabled, nativeButton, onClick, onFocus, id, ...props }: DropdownOptionItemProps) => import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DropdownSectionProps } from '../types/DropdownSectionProps';
|
|
2
|
-
export declare const DropdownSection: ({ label, scrollable, className, children, ...props }: DropdownSectionProps) => import("react").JSX.Element;
|
|
2
|
+
export declare const DropdownSection: ({ label, scrollable, columns, style, className, children, ...props }: DropdownSectionProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const getNextDropdownGridItem: ({ key, items, currentItem, search, isRightToLeft, }: {
|
|
2
|
+
key: string;
|
|
3
|
+
items: HTMLElement[];
|
|
4
|
+
currentItem: HTMLElement | undefined;
|
|
5
|
+
search: HTMLInputElement | null;
|
|
6
|
+
isRightToLeft: boolean;
|
|
7
|
+
}) => HTMLElement | undefined;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export declare const getNextDropdownItem: ({ key, items, currentIndex, search, isSearch, }: {
|
|
1
|
+
export declare const getNextDropdownItem: ({ key, items, currentIndex, search, isSearch, isRightToLeft, }: {
|
|
2
2
|
key: string;
|
|
3
3
|
items: HTMLElement[];
|
|
4
4
|
currentIndex: number;
|
|
5
5
|
search: HTMLInputElement | null;
|
|
6
6
|
isSearch: boolean;
|
|
7
|
+
isRightToLeft?: boolean;
|
|
7
8
|
}) => HTMLElement | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button as ButtonPrimitive } from '@base-ui/react/button';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
import { ListItemProps } from '../../../../primitives/navigation/ListItem/types/ListItemProps';
|
|
4
|
-
export type DropdownActionItemProps = Omit<ButtonPrimitive.Props, 'render' | 'className' | 'style'> & Pick<ListItemProps, 'color' | 'startIcon' | 'endIcon' | 'description' | 'descriptionPlacement' | 'shortcut' | 'shortcutJoinLabel' | 'hasSubmenu'> & {
|
|
4
|
+
export type DropdownActionItemProps = Omit<ButtonPrimitive.Props, 'render' | 'className' | 'style'> & Pick<ListItemProps, 'color' | 'startIcon' | 'endIcon' | 'description' | 'descriptionPlacement' | 'shortcut' | 'shortcutJoinLabel' | 'hasSubmenu' | 'actions' | 'actionsVisibility'> & {
|
|
5
5
|
render?: ReactElement;
|
|
6
6
|
className?: string;
|
|
7
7
|
style?: React.CSSProperties;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { PopoverPopupProps } from '../../../../primitives/surfaces/Popover/types/PopoverPopupProps';
|
|
3
|
-
|
|
3
|
+
import { PopoverPortalProps } from '../../../../primitives/surfaces/Popover/types/PopoverPortalProps';
|
|
4
|
+
import { PopoverPositionerProps } from '../../../../primitives/surfaces/Popover/types/PopoverPositionerProps';
|
|
5
|
+
export type DropdownContentProps = PopoverPopupProps & Pick<PopoverPortalProps, 'container' | 'keepMounted'> & Pick<PopoverPositionerProps, 'side' | 'align' | 'sideOffset' | 'alignOffset' | 'anchor' | 'collisionPadding'> & {
|
|
4
6
|
width?: CSSProperties['width'];
|
|
5
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DropdownActionItemProps } from './DropdownActionItemProps';
|
|
2
|
-
export type DropdownSubmenuTriggerProps = Omit<DropdownActionItemProps, 'page' | 'closeOnClick'> & {
|
|
2
|
+
export type DropdownSubmenuTriggerProps = Omit<DropdownActionItemProps, 'page' | 'closeOnClick' | 'actions' | 'actionsVisibility'> & {
|
|
3
3
|
openOnHover?: boolean;
|
|
4
4
|
delay?: number;
|
|
5
5
|
closeDelay?: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Popover as PopoverPrimitive } from '@base-ui/react/popover';
|
|
2
|
-
export type DropdownTriggerProps = PopoverPrimitive.Trigger.Props
|
|
2
|
+
export type DropdownTriggerProps = Omit<PopoverPrimitive.Trigger.Props, 'handle' | 'payload'>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ListItemButtonProps } from './types/ListItemButtonProps';
|
|
2
|
+
export declare const ListItemButton: ({ color, selected, focused, indicator, startIcon, endIcon, description, descriptionPlacement, shortcut, shortcutJoinLabel, hasSubmenu, disabled, type, children, ...buttonProps }: ListItemButtonProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Button as ButtonPrimitive } from '@base-ui/react/button';
|
|
2
|
+
import { ComponentPropsWithRef } from 'react';
|
|
3
|
+
import { ListItemProps } from '../../../../primitives/navigation/ListItem/types/ListItemProps';
|
|
4
|
+
export type ListItemButtonProps = Omit<ComponentPropsWithRef<'button'>, 'color'> & Pick<ButtonPrimitive.Props, 'focusableWhenDisabled'> & Pick<ListItemProps, 'color' | 'selected' | 'focused' | 'indicator' | 'startIcon' | 'endIcon' | 'description' | 'descriptionPlacement' | 'shortcut' | 'shortcutJoinLabel' | 'hasSubmenu'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from '../../../../primitives/input/Button/types/ButtonProps';
|
|
2
2
|
import { TabsTabProps } from '../../../../primitives/navigation/Tabs/types/TabsTabProps';
|
|
3
|
-
export type TabButtonProps = Omit<ButtonProps, 'variant' | 'color' | 'fullWidth' | 'loading' | 'elevated' | 'shortcut' | 'shortcutJoinLabel'> & Pick<TabsTabProps, 'badge'> & {
|
|
3
|
+
export type TabButtonProps = Omit<ButtonProps, 'variant' | 'color' | 'fullWidth' | 'loading' | 'loadingPosition' | 'elevated' | 'shortcut' | 'shortcutJoinLabel'> & Pick<TabsTabProps, 'badge'> & {
|
|
4
4
|
active?: boolean;
|
|
5
5
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { Dropdown } from './Dropdown/Dropdown';
|
|
2
|
+
export { useDropdownPage } from './Dropdown/hooks/useDropdownPage';
|
|
3
|
+
export type { DropdownActionItemProps } from './Dropdown/types/DropdownActionItemProps';
|
|
4
|
+
export type { DropdownCloseProps } from './Dropdown/types/DropdownCloseProps';
|
|
5
|
+
export type { DropdownContentProps } from './Dropdown/types/DropdownContentProps';
|
|
6
|
+
export type { DropdownDismissEvent } from './Dropdown/types/DropdownDismissEvent';
|
|
7
|
+
export type { DropdownHeaderProps } from './Dropdown/types/DropdownHeaderProps';
|
|
8
|
+
export type { DropdownOptionItemProps } from './Dropdown/types/DropdownOptionItemProps';
|
|
9
|
+
export type { DropdownPageProps } from './Dropdown/types/DropdownPageProps';
|
|
10
|
+
export type { DropdownRootProps } from './Dropdown/types/DropdownRootProps';
|
|
11
|
+
export type { DropdownSearchProps } from './Dropdown/types/DropdownSearchProps';
|
|
12
|
+
export type { DropdownSectionProps } from './Dropdown/types/DropdownSectionProps';
|
|
13
|
+
export type { DropdownSubmenuProps } from './Dropdown/types/DropdownSubmenuProps';
|
|
14
|
+
export type { DropdownSubmenuTriggerProps } from './Dropdown/types/DropdownSubmenuTriggerProps';
|
|
15
|
+
export type { DropdownTitleProps } from './Dropdown/types/DropdownTitleProps';
|
|
16
|
+
export type { DropdownTriggerProps } from './Dropdown/types/DropdownTriggerProps';
|
|
17
|
+
export type { DropdownType } from './Dropdown/types/DropdownType';
|
|
18
|
+
export { ListItemButton } from './ListItemButton/ListItemButton';
|
|
19
|
+
export type { ListItemButtonProps } from './ListItemButton/types/ListItemButtonProps';
|
|
20
|
+
export { DEFAULT_COLOR_LABELS } from './MenuItem/constants/DefaultColorLabels';
|
|
21
|
+
export { MenuItem } from './MenuItem/MenuItem';
|
|
22
|
+
export type { ColorLabels } from './MenuItem/types/ColorLabels';
|
|
23
|
+
export type { MenuItemAccent } from './MenuItem/types/MenuItemAccent';
|
|
24
|
+
export type { MenuItemDraggableGripMode } from './MenuItem/types/MenuItemDraggableGripMode';
|
|
25
|
+
export type { MenuItemProps } from './MenuItem/types/MenuItemProps';
|
|
26
|
+
export { MenuItemAvatar } from './MenuItemAvatar/MenuItemAvatar';
|
|
27
|
+
export type { MenuItemAvatarProps } from './MenuItemAvatar/types/MenuItemAvatarProps';
|
|
28
|
+
export { MenuItemDraggable } from './MenuItemDraggable/MenuItemDraggable';
|
|
29
|
+
export type { MenuItemDraggableProps } from './MenuItemDraggable/types/MenuItemDraggableProps';
|
|
30
|
+
export { MenuItemSuggestion } from './MenuItemSuggestion/MenuItemSuggestion';
|
|
31
|
+
export type { MenuItemSuggestionProps } from './MenuItemSuggestion/types/MenuItemSuggestionProps';
|
|
32
|
+
export { MenuPicker } from './MenuPicker/MenuPicker';
|
|
33
|
+
export type { MenuPickerProps } from './MenuPicker/types/MenuPickerProps';
|
|
34
|
+
export { TabButton } from './TabButton/TabButton';
|
|
35
|
+
export type { TabButtonProps } from './TabButton/types/TabButtonProps';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../Dropdown-Ckcy6ZLF.cjs"),e=require("../navigation-CsxM7PWb.cjs");exports.DEFAULT_COLOR_LABELS=e.DEFAULT_COLOR_LABELS;exports.Dropdown=t.Dropdown;exports.ListItemButton=e.ListItemButton;exports.MenuItem=e.MenuItem;exports.MenuItemAvatar=e.MenuItemAvatar;exports.MenuItemDraggable=e.MenuItemDraggable;exports.MenuItemSuggestion=e.MenuItemSuggestion;exports.MenuPicker=e.MenuPicker;exports.TabButton=e.TabButton;exports.useDropdownPage=e.useDropdownPage;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { t } from "../Dropdown-CZVEnq0N.js";
|
|
2
|
+
import { a as s, c as o, i as n, l as r, n as m, o as u, r as i, s as g, t as p } from "../navigation-BVhRDMCr.js";
|
|
3
|
+
export {
|
|
4
|
+
g as DEFAULT_COLOR_LABELS,
|
|
5
|
+
t as Dropdown,
|
|
6
|
+
o as ListItemButton,
|
|
7
|
+
u as MenuItem,
|
|
8
|
+
s as MenuItemAvatar,
|
|
9
|
+
n as MenuItemDraggable,
|
|
10
|
+
i as MenuItemSuggestion,
|
|
11
|
+
m as MenuPicker,
|
|
12
|
+
p as TabButton,
|
|
13
|
+
r as useDropdownPage
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { SwitchProps } from '../../../../primitives/input/Switch/types/SwitchProps';
|
|
4
|
+
export type SettingsRowProps = Omit<SwitchProps, 'children'> & {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
startElement?: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
focused?: boolean;
|
|
9
|
+
labelRef?: useRender.ComponentProps<'label'>['ref'];
|
|
10
|
+
labelRender?: useRender.ComponentProps<'label'>['render'];
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../settings-bRqO7Q-5.cjs");exports.SettingsRow=e.SettingsRow;
|
package/dist/components.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./data-display-Bw-5dsCu.cjs"),u=require("./TintedIconTile-Dp4uH0Up.cjs"),o=require("./feedback-BleeRoOP.cjs"),r=require("./Dropdown-Ckcy6ZLF.cjs"),t=require("./input-D9vXRp8R.cjs"),i=require("./layout-DJq0Dcmq.cjs"),e=require("./navigation-CsxM7PWb.cjs"),a=require("./settings-bRqO7Q-5.cjs");exports.AnimatedIconCrossfade=i.AnimatedIconCrossfade;exports.AvatarGroup=n.AvatarGroup;exports.Callout=o.Callout;exports.CommandBlock=n.CommandBlock;exports.CountrySelect=t.CountrySelect;exports.CurrencyPicker=t.CurrencyPicker;exports.DEFAULT_COLOR_LABELS=e.DEFAULT_COLOR_LABELS;exports.Dropdown=r.Dropdown;exports.IconButton=r.IconButton;exports.ImageInput=t.ImageInput;exports.InlineBanner=o.InlineBanner;exports.JsonTree=n.JsonTree;exports.LightButton=t.LightButton;exports.LightIconButton=r.LightIconButton;exports.ListItemButton=e.ListItemButton;exports.MainButton=t.MainButton;exports.MenuItem=e.MenuItem;exports.MenuItemAvatar=e.MenuItemAvatar;exports.MenuItemDraggable=e.MenuItemDraggable;exports.MenuItemSuggestion=e.MenuItemSuggestion;exports.MenuPicker=e.MenuPicker;exports.MetricRow=n.MetricRow;exports.NotificationCounter=n.NotificationCounter;exports.OverflowingList=i.OverflowingList;exports.PhoneCountryPicker=t.PhoneCountryPicker;exports.SearchInput=t.SearchInput;exports.Section=i.Section;exports.SettingsRow=a.SettingsRow;exports.TabButton=e.TabButton;exports.TintedIconTile=u.TintedIconTile;exports.Toast=o.Toast;exports.ToastProvider=o.ToastProvider;exports.Toaster=o.Toaster;exports.getIconTileColorShades=u.getIconTileColorShades;exports.useDropdownPage=e.useDropdownPage;exports.useToast=o.useToast;
|
package/dist/components.mjs
CHANGED
|
@@ -1,35 +1,46 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as t, i as o, n as s, r, t as n } from "./data-display-CehSwX8i.js";
|
|
2
|
+
import { n as i, t as m } from "./TintedIconTile-BZgRO7cg.js";
|
|
3
|
+
import { a as c, i as p, n as I, o as f, r as g, t as l } from "./feedback-BV1EK98d.js";
|
|
4
|
+
import { n as B, r as C, t as d } from "./Dropdown-CZVEnq0N.js";
|
|
5
|
+
import { a as M, i as S, n as P, o as h, r as w, s as A, t as k } from "./input-CKcuJwhb.js";
|
|
6
|
+
import { n as D, r as y, t as O } from "./layout-Bt-DUE1X.js";
|
|
7
|
+
import { a as b, c as E, i as _, l as x, n as F, o as G, r as J, s as N, t as U } from "./navigation-BVhRDMCr.js";
|
|
8
|
+
import { t as q } from "./settings-Fpo_5Uen.js";
|
|
2
9
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
10
|
+
y as AnimatedIconCrossfade,
|
|
11
|
+
t as AvatarGroup,
|
|
12
|
+
f as Callout,
|
|
13
|
+
o as CommandBlock,
|
|
14
|
+
A as CountrySelect,
|
|
15
|
+
h as CurrencyPicker,
|
|
16
|
+
N as DEFAULT_COLOR_LABELS,
|
|
17
|
+
d as Dropdown,
|
|
18
|
+
C as IconButton,
|
|
19
|
+
M as ImageInput,
|
|
20
|
+
c as InlineBanner,
|
|
21
|
+
r as JsonTree,
|
|
22
|
+
S as LightButton,
|
|
23
|
+
B as LightIconButton,
|
|
24
|
+
E as ListItemButton,
|
|
25
|
+
w as MainButton,
|
|
26
|
+
G as MenuItem,
|
|
27
|
+
b as MenuItemAvatar,
|
|
28
|
+
_ as MenuItemDraggable,
|
|
29
|
+
J as MenuItemSuggestion,
|
|
30
|
+
F as MenuPicker,
|
|
31
|
+
s as MetricRow,
|
|
32
|
+
n as NotificationCounter,
|
|
33
|
+
D as OverflowingList,
|
|
34
|
+
P as PhoneCountryPicker,
|
|
35
|
+
k as SearchInput,
|
|
25
36
|
O as Section,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
q as SettingsRow,
|
|
38
|
+
U as TabButton,
|
|
39
|
+
m as TintedIconTile,
|
|
40
|
+
g as Toast,
|
|
41
|
+
I as ToastProvider,
|
|
42
|
+
l as Toaster,
|
|
43
|
+
i as getIconTileColorShades,
|
|
44
|
+
x as useDropdownPage,
|
|
45
|
+
p as useToast
|
|
35
46
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i=require("./theme-Zf62UE02.cjs"),p=require("./isDefined-DS2Q42p5.cjs"),z=require("./utilities-06FvJQzl.cjs"),k=require("./Loader-GFhTL4Aw.cjs"),C=require("./OverflowingTextWithTooltip-CXHiE4BG.cjs");let f=require("@base-ui/react/use-render"),x=require("@sniptt/guards"),_=require("clsx"),e=require("react/jsx-runtime");var B={xl:{fontSize:"16px",width:"40px"},lg:{fontSize:"13px",width:"24px"},md:{fontSize:"12px",width:"16px"},sm:{fontSize:"10px",width:"14px"},xs:{fontSize:"8px",width:"12px"}},L="_chip_a644p_1",F="_endElementDivider_a644p_75",j={chip:L,endElementDivider:F},Y={height:"var(--t-spacing-4)"},M=({children:t,size:r="sm",variant:a="ghost",color:n="primary",shape:s="square",weight:l="regular",onClick:o,clickable:d=p.isDefined(o),startElement:c,endElement:u,endElementDivider:v=!1,maxWidth:g,truncate:h=!0,tooltipContent:b,tooltipDelay:q,isTooltipMultiline:w,tooltipPlace:S,alwaysShowTooltip:P=!1,className:N,style:O,render:V,ref:D,...E})=>{const R=p.isDefined(t)&&!(0,x.isBoolean)(t)&&t!=="",A=(0,x.isString)(t)?{text:t,tooltipContent:b}:{text:t??!1,tooltipContent:b??""};return(0,f.useRender)({render:V,ref:D,state:{size:r,variant:a,color:n,shape:s,weight:l,clickable:d,truncate:h},props:{...E,onClick:o,className:(0,_.clsx)(j.chip,N),style:{...p.isDefined(g)?{"--tw-chip-max-width":`calc(${g}px - 2 * var(--tw-chip-padding))`}:{},...O},children:(0,e.jsxs)(e.Fragment,{children:[c,R&&(0,e.jsx)(C.OverflowingTextWithTooltip,{...A,render:(0,e.jsx)("span",{}),style:r==="md"?Y:void 0,truncate:h,tooltipDelay:q,isTooltipMultiline:w,tooltipPlace:S,alwaysShowTooltip:P}),p.isDefined(u)&&u!==!1&&(0,e.jsxs)(e.Fragment,{children:[v&&(0,e.jsx)("span",{className:j.endElementDivider}),u]})]})}})},W="_root_6bfj6_1",Z="_circle_6bfj6_13",T={root:W,circle:Z},$=({colorName:t,color:r,variant:a,className:n,style:s,render:l,ref:o,...d})=>(0,f.useRender)({defaultTagName:"div",render:l,ref:o,props:{...d,className:(0,_.clsx)(T.root,a==="circle"&&T.circle,n),style:{"--color-sample-color":r??i.themeCssVariables.tag.background[t],"--color-sample-border-color":i.themeCssVariables.tag.text[t],...s}}}),I="_pill_fndai_1",U={pill:I},G=({className:t,label:r,Icon:a,size:n="sm",color:s="tertiary"})=>(0,e.jsxs)("span",{className:(0,_.clsx)(U.pill,t),"data-size":n,"data-color":s,children:[a&&(0,e.jsx)(a,{size:12}),r]}),H="_status_y5v42_1",J="_content_y5v42_49",y={status:H,content:J},K=({children:t,color:r,loading:a=!1,weight:n="regular",className:s,style:l,render:o,ref:d,...c})=>{const u=z.parseThemeColor(r);return(0,f.useRender)({defaultTagName:"span",render:o,ref:d,state:{loading:a,weight:n},props:{"aria-busy":a||void 0,...c,className:(0,_.clsx)(y.status,s),style:{"--tw-status-background":i.themeCssVariables.tag.background[u],"--tw-status-text-color":i.themeCssVariables.tag.text[u],...l},children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:y.content,children:t}),a&&(0,e.jsx)(k.Loader,{color:r,"aria-hidden":"true",render:(0,e.jsx)("span",{})})]})}})},Q="_tag_1rqsl_1",X="_content_1rqsl_46",ee="_overflowingText_1rqsl_55",te="_iconContainer_1rqsl_59",m={tag:Q,content:X,overflowingText:ee,iconContainer:te},re=({children:t,color:r,weight:a="regular",variant:n="soft",startIcon:s,truncate:l=!0,borderStyle:o="solid",className:d,style:c,render:u,ref:v,...g})=>(0,f.useRender)({defaultTagName:"span",render:u,ref:v,state:{variant:n,weight:a,truncate:l},props:{...g,className:(0,_.clsx)(m.tag,d),style:{"--tw-tag-background":r==="transparent"?"transparent":i.themeCssVariables.tag.background[r]??i.themeCssVariables.tag.background.gray,"--tw-tag-text":r==="transparent"?i.themeCssVariables.font.color.secondary:i.themeCssVariables.tag.text[r]??i.themeCssVariables.font.color.secondary,"--tw-tag-border-style":o,...c},children:(0,e.jsxs)(e.Fragment,{children:[p.isDefined(s)&&!(0,x.isBoolean)(s)&&s!==""&&(0,e.jsx)("span",{className:m.iconContainer,"aria-hidden":!0,children:s}),(0,e.jsx)("span",{className:m.content,children:(0,x.isString)(t)&&l?(0,e.jsx)(C.OverflowingTextWithTooltip,{text:t,render:(0,e.jsx)("span",{}),className:m.overflowingText}):t})]})}});Object.defineProperty(exports,"AVATAR_PROPERTIES_BY_SIZE",{enumerable:!0,get:function(){return B}});Object.defineProperty(exports,"Chip",{enumerable:!0,get:function(){return M}});Object.defineProperty(exports,"ColorSample",{enumerable:!0,get:function(){return $}});Object.defineProperty(exports,"Pill",{enumerable:!0,get:function(){return G}});Object.defineProperty(exports,"Status",{enumerable:!0,get:function(){return K}});Object.defineProperty(exports,"Tag",{enumerable:!0,get:function(){return re}});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const g=require("./theme-Zf62UE02.cjs"),u=require("./isDefined-DS2Q42p5.cjs"),H=require("./VisuallyHidden-B-n4x1KY.cjs"),K=require("./ProgressRing-CHLADu5q.cjs");let k=require("@base-ui/react/use-render"),d=require("@sniptt/guards"),c=require("clsx"),v=require("react"),e=require("react/jsx-runtime"),V=require("@base-ui/react/collapsible"),x=require("@tabler/icons-react");var U="_container_5cu4g_1",X="_itemContainer_5cu4g_6",Q="_overflowCountContainer_5cu4g_22",W="_overflowCount_5cu4g_22",y={container:U,itemContainer:X,overflowCountContainer:Q,overflowCount:W},Y=4,Z=({avatars:r,className:n,maxVisible:t=Y,total:s,renderOverflow:l,overflowShape:a="square",overlap:o="right",overlapOffset:i="3px",render:p,ref:C,..._})=>{const h=v.Children.toArray(r),w=Number.isNaN(t)?0:Math.max(0,Math.floor(t)),f=h.slice(0,w),b=s??h.length,N=(Number.isFinite(b)?Math.max(h.length,Math.floor(b)):h.length)-f.length,A=u.isDefined(l),I=N>0&&(A?l(N):(0,e.jsxs)("span",{className:y.overflowCount,"data-shape":a,children:["+",N]})),L=(0,d.isNonEmptyArray)(v.Children.toArray(I)),$={"--avatar-group-overlap-offset":i},G=(0,k.useRender)({render:p,ref:C,props:{..._,className:(0,c.clsx)(y.container,n),children:(0,e.jsxs)(e.Fragment,{children:[v.Children.map(f,S=>(0,e.jsx)("span",{className:y.itemContainer,"data-overlap":o,style:$,children:S},(0,v.isValidElement)(S)?S.key:void 0)),L&&(0,e.jsx)("span",{className:(0,c.clsx)(y.itemContainer,!A&&y.overflowCountContainer),"data-overlap":o,style:$,children:I})]})}});return(0,d.isNonEmptyArray)(f)||L?G:null},ee="_container_1j72k_1",re="_commands_1j72k_13",ne="_actions_1j72k_25",te="_prompt_1j72k_32",J={container:ee,commands:re,actions:ne,prompt:te},se=({commands:r,actions:n,render:t,ref:s,className:l,...a})=>(0,k.useRender)({render:t,ref:s,props:{...a,className:(0,c.clsx)(J.container,l),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("pre",{className:J.commands,children:(0,e.jsx)("code",{children:r.map((o,i)=>(0,e.jsxs)("span",{children:[i>0&&`
|
|
2
|
+
`,(0,e.jsx)("span",{className:J.prompt,"aria-hidden":"true",children:"> "}),o]},i))})}),u.isDefined(n)&&(0,e.jsx)("div",{className:J.actions,children:n})]})}}),oe="_list_1i4lv_1",ae="_nested_1i4lv_8",P={list:oe,nested:ae},le=({depth:r,className:n,children:t})=>(0,e.jsx)("ul",{className:(0,c.clsx)(P.list,r>0&&P.nested,n),children:t}),M=(0,v.createContext)(void 0),j=()=>{const r=(0,v.useContext)(M);if(!u.isDefined(r))throw new Error("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider");return r},ie="_button_1e3ij_1",ce="_red_1e3ij_17",de="_chevron_1e3ij_22",E={button:ie,red:ce,chevron:de},ue=({isOpen:r,onClick:n,variant:t})=>{const s=g.useTheme(),{arrowButtonCollapsedLabel:l,arrowButtonExpandedLabel:a}=j(),o=t==="blue"?g.themeCssVariables.color.blue:t==="red"?g.themeCssVariables.font.color.danger:g.themeCssVariables.font.color.secondary;return(0,e.jsxs)("button",{className:(0,c.clsx)(E.button,t==="red"&&E.red),onClick:n,children:[(0,e.jsx)(H.VisuallyHidden,{children:r?a:l}),(0,e.jsx)("div",{className:E.chevron,"data-open":r||void 0,children:(0,e.jsx)(x.IconChevronDown,{size:s.icon.size.md,color:o})})]})},_e=({label:r,value:n,depth:t,keyPath:s,highlighting:l})=>{const{emptyArrayLabel:a}=j();return(0,e.jsx)(D,{elements:[...n.entries()].map(([o,i])=>({id:o,label:String(o),value:i})),renderElementsCount:o=>`[${o}]`,label:r,Icon:x.IconBrackets,depth:t,emptyElementsText:a,keyPath:s,highlighting:l})},me=({label:r,value:n,depth:t,keyPath:s,highlighting:l})=>{const{emptyObjectLabel:a}=j();return(0,e.jsx)(D,{elements:Object.entries(n).map(([o,i])=>({id:o,label:o,value:i})),renderElementsCount:o=>`{${o}}`,label:r,Icon:x.IconCube,depth:t,emptyElementsText:a,keyPath:s,highlighting:l})},ve="_labelContainer_1pq94_1",xe="_blue_1pq94_23",he="_red_1pq94_29",O={labelContainer:ve,blue:xe,red:he},F=({label:r,Icon:n,highlighting:t})=>{const s=g.useTheme();return(0,e.jsxs)("span",{className:(0,c.clsx)(O.labelContainer,t==="blue"&&O.blue,t==="red"&&O.red),children:[(0,e.jsx)(n,{size:s.icon.size.md,color:t==="blue"?s.color.blue:t==="red"?s.font.color.danger:s.font.color.tertiary}),(0,e.jsx)("span",{children:r})]})},be="_text_1ot24_1",je="_blue_1ot24_10",pe="_red_1ot24_14",Ce="_button_1ot24_18",T={text:be,blue:je,red:pe,button:Ce},fe=({valueAsString:r,highlighting:n})=>{const{onNodeValueClick:t}=j(),s=u.isDefined(t),l=()=>{t?.(r)},a=(0,c.clsx)(T.text,n==="blue"&&T.blue,n==="red"&&T.red);return s?(0,e.jsx)("button",{className:(0,c.clsx)(a,T.button),type:"button",onClick:l,children:r}):(0,e.jsx)("span",{className:a,children:r})},Ne="_listItem_1i7if_1",ye={listItem:Ne},q=r=>(0,e.jsxs)("li",{className:ye.listItem,children:[r.label&&(0,e.jsx)(F,{label:r.label,Icon:r.Icon,highlighting:r.highlighting}),(0,e.jsx)(fe,{valueAsString:r.valueAsString,highlighting:r.highlighting})]}),ge=r=>(0,d.isArray)(r),z=({label:r,value:n,depth:t,keyPath:s})=>{const{getNodeHighlighting:l,emptyStringLabel:a}=j(),o=l?.(s);return u.isDefined(n)?(0,d.isString)(n)?(0,e.jsx)(q,{label:r,valueAsString:(0,d.isNonEmptyString)(n)?n:a,Icon:x.IconTypography,highlighting:o}):(0,d.isNumber)(n)?(0,e.jsx)(q,{label:r,valueAsString:String(n),Icon:x.IconNumber9,highlighting:o}):(0,d.isBoolean)(n)?(0,e.jsx)(q,{label:r,valueAsString:String(n),Icon:x.IconCheckbox,highlighting:o}):ge(n)?(0,e.jsx)(_e,{label:r,value:n,depth:t,keyPath:s,highlighting:o}):(0,e.jsx)(me,{label:r,value:n,depth:t,keyPath:s,highlighting:o}):(0,e.jsx)(q,{label:r,valueAsString:"null",Icon:x.IconCircleOff,highlighting:o})},qe="_container_d0cqx_1",we="_labelContainer_d0cqx_6",Ae="_elementsCount_d0cqx_12",Ie="_elementsCountRed_d0cqx_16",Je="_panel_d0cqx_20",Te="_list_d0cqx_30",Se="_nested_d0cqx_37",m={container:qe,labelContainer:we,elementsCount:Ae,elementsCountRed:Ie,panel:Je,list:Te,nested:Se},D=({label:r,Icon:n,elements:t,renderElementsCount:s,emptyElementsText:l,depth:a,keyPath:o,highlighting:i})=>{const{shouldExpandNodeInitially:p}=j(),C=!u.isDefined(r),[_,h]=(0,v.useState)(p({keyPath:o,depth:a})),w=(0,e.jsx)("ul",{className:(0,c.clsx)(m.list,a>0&&m.nested),children:t.length===0?(0,e.jsx)(q,{valueAsString:l,highlighting:void 0}):t.map(({id:b,label:N,value:A})=>{const I=(0,d.isNonEmptyString)(o)?`${o}.${b}`:String(b);return(0,e.jsx)(z,{label:N,value:A,depth:a+1,keyPath:I},b)})}),f=()=>{h(!_)};return C?(0,e.jsx)("li",{className:m.container,children:w}):(0,e.jsxs)(V.Collapsible.Root,{className:m.container,open:_,render:(0,e.jsx)("li",{}),children:[(0,e.jsxs)("div",{className:m.labelContainer,children:[(0,e.jsx)(ue,{isOpen:_,onClick:f,variant:i==="partial-blue"?"blue":i==="red"?i:void 0}),(0,e.jsx)(F,{label:r,Icon:n,highlighting:i==="red"?i:void 0}),s&&(0,e.jsx)("span",{className:(0,c.clsx)(m.elementsCount,i==="red"&&m.elementsCountRed),children:s(t.length)})]}),(0,e.jsx)(V.Collapsible.Panel,{className:m.panel,children:w})]})},Ee=({value:r,children:n})=>(0,e.jsx)(M.Provider,{value:r,children:n}),Oe=({depth:r})=>r<=1,Re=({value:r,entries:n,shouldExpandNodeInitially:t=Oe,...s})=>(0,e.jsx)(Ee,{value:{...s,shouldExpandNodeInitially:t},children:(0,e.jsx)(le,{depth:0,children:u.isDefined(n)?(0,e.jsx)(D,{elements:n,Icon:x.IconBrackets,depth:0,keyPath:"",emptyElementsText:s.emptyObjectLabel}):(0,e.jsx)(z,{value:r??null,depth:0,keyPath:""})})}),ke="_row_1hj4l_1",De="_label_1hj4l_11",Le="_icon_1hj4l_20",R={row:ke,label:De,icon:Le},$e=({children:r,startIcon:n,value:t,progress:s,progressColor:l,progressValueText:a,render:o,ref:i,className:p,...C})=>{const _=(0,v.useId)();return(0,k.useRender)({render:o,ref:i,props:{...C,className:(0,c.clsx)(R.row,p),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:R.label,children:[u.isDefined(n)&&(0,e.jsx)("span",{className:R.icon,"aria-hidden":"true",children:n}),(0,e.jsx)("span",{id:_,children:r})]}),u.isDefined(s)?(0,e.jsx)(K.ProgressRing,{value:s,size:"sm",barColor:l,"aria-labelledby":_,"aria-valuetext":a??((0,d.isString)(t)?t:void 0),children:t}):(0,e.jsx)("span",{children:t})]})}})},Ve="_notificationCounter_1lalu_1",Pe="_primary_1lalu_13",Be="_secondary_1lalu_18",B={notificationCounter:Ve,primary:Pe,secondary:Be},Me=({count:r,variant:n="primary",className:t})=>(0,e.jsx)("div",{className:(0,c.clsx)(B.notificationCounter,B[n],t),children:r});Object.defineProperty(exports,"AvatarGroup",{enumerable:!0,get:function(){return Z}});Object.defineProperty(exports,"CommandBlock",{enumerable:!0,get:function(){return se}});Object.defineProperty(exports,"JsonTree",{enumerable:!0,get:function(){return Re}});Object.defineProperty(exports,"MetricRow",{enumerable:!0,get:function(){return $e}});Object.defineProperty(exports,"NotificationCounter",{enumerable:!0,get:function(){return Me}});
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { t as _ } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { a as l } from "./theme-yAk9zrNA.js";
|
|
3
|
+
import { s as O } from "./utilities-DpSj_IdQ.js";
|
|
4
|
+
import { t as V } from "./Loader-BBMC4fe6.js";
|
|
5
|
+
import { t as N } from "./OverflowingTextWithTooltip-wRABzEWd.js";
|
|
6
|
+
import { useRender as x } from "@base-ui/react/use-render";
|
|
7
|
+
import { isBoolean as C, isString as E } from "@sniptt/guards";
|
|
8
|
+
import { clsx as f } from "clsx";
|
|
9
|
+
import { Fragment as v, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
10
|
+
var pa = {
|
|
11
|
+
xl: {
|
|
12
|
+
fontSize: "16px",
|
|
13
|
+
width: "40px"
|
|
14
|
+
},
|
|
15
|
+
lg: {
|
|
16
|
+
fontSize: "13px",
|
|
17
|
+
width: "24px"
|
|
18
|
+
},
|
|
19
|
+
md: {
|
|
20
|
+
fontSize: "12px",
|
|
21
|
+
width: "16px"
|
|
22
|
+
},
|
|
23
|
+
sm: {
|
|
24
|
+
fontSize: "10px",
|
|
25
|
+
width: "14px"
|
|
26
|
+
},
|
|
27
|
+
xs: {
|
|
28
|
+
fontSize: "8px",
|
|
29
|
+
width: "12px"
|
|
30
|
+
}
|
|
31
|
+
}, Y = "_chip_a644p_1", $ = "_endElementDivider_a644p_75", T = {
|
|
32
|
+
chip: Y,
|
|
33
|
+
endElementDivider: $
|
|
34
|
+
}, F = { height: "var(--t-spacing-4)" }, da = ({ children: a, size: t = "sm", variant: e = "ghost", color: o = "primary", shape: r = "square", weight: i = "regular", onClick: n, clickable: d = _(n), startElement: m, endElement: p, endElementDivider: h = !1, maxWidth: g, truncate: w = !0, tooltipContent: y, tooltipDelay: z, isTooltipMultiline: k, tooltipPlace: q, alwaysShowTooltip: D = !1, className: P, style: j, render: A, ref: L, ...R }) => {
|
|
35
|
+
const B = _(a) && !C(a) && a !== "", M = E(a) ? {
|
|
36
|
+
text: a,
|
|
37
|
+
tooltipContent: y
|
|
38
|
+
} : {
|
|
39
|
+
text: a ?? !1,
|
|
40
|
+
tooltipContent: y ?? ""
|
|
41
|
+
};
|
|
42
|
+
return x({
|
|
43
|
+
render: A,
|
|
44
|
+
ref: L,
|
|
45
|
+
state: {
|
|
46
|
+
size: t,
|
|
47
|
+
variant: e,
|
|
48
|
+
color: o,
|
|
49
|
+
shape: r,
|
|
50
|
+
weight: i,
|
|
51
|
+
clickable: d,
|
|
52
|
+
truncate: w
|
|
53
|
+
},
|
|
54
|
+
props: {
|
|
55
|
+
...R,
|
|
56
|
+
onClick: n,
|
|
57
|
+
className: f(T.chip, P),
|
|
58
|
+
style: {
|
|
59
|
+
..._(g) ? { "--tw-chip-max-width": `calc(${g}px - 2 * var(--tw-chip-padding))` } : {},
|
|
60
|
+
...j
|
|
61
|
+
},
|
|
62
|
+
children: /* @__PURE__ */ c(v, { children: [
|
|
63
|
+
m,
|
|
64
|
+
B && /* @__PURE__ */ s(N, {
|
|
65
|
+
...M,
|
|
66
|
+
render: /* @__PURE__ */ s("span", {}),
|
|
67
|
+
style: t === "md" ? F : void 0,
|
|
68
|
+
truncate: w,
|
|
69
|
+
tooltipDelay: z,
|
|
70
|
+
isTooltipMultiline: k,
|
|
71
|
+
tooltipPlace: q,
|
|
72
|
+
alwaysShowTooltip: D
|
|
73
|
+
}),
|
|
74
|
+
_(p) && p !== !1 && /* @__PURE__ */ c(v, { children: [h && /* @__PURE__ */ s("span", { className: T.endElementDivider }), p] })
|
|
75
|
+
] })
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}, U = "_root_6bfj6_1", Z = "_circle_6bfj6_13", S = {
|
|
79
|
+
root: U,
|
|
80
|
+
circle: Z
|
|
81
|
+
}, ma = ({ colorName: a, color: t, variant: e, className: o, style: r, render: i, ref: n, ...d }) => x({
|
|
82
|
+
defaultTagName: "div",
|
|
83
|
+
render: i,
|
|
84
|
+
ref: n,
|
|
85
|
+
props: {
|
|
86
|
+
...d,
|
|
87
|
+
className: f(S.root, e === "circle" && S.circle, o),
|
|
88
|
+
style: {
|
|
89
|
+
"--color-sample-color": t ?? l.tag.background[a],
|
|
90
|
+
"--color-sample-border-color": l.tag.text[a],
|
|
91
|
+
...r
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}), G = "_pill_fndai_1", H = { pill: G }, _a = ({ className: a, label: t, Icon: e, size: o = "sm", color: r = "tertiary" }) => /* @__PURE__ */ c("span", {
|
|
95
|
+
className: f(H.pill, a),
|
|
96
|
+
"data-size": o,
|
|
97
|
+
"data-color": r,
|
|
98
|
+
children: [e && /* @__PURE__ */ s(e, { size: 12 }), t]
|
|
99
|
+
}), J = "_status_y5v42_1", K = "_content_y5v42_49", b = {
|
|
100
|
+
status: J,
|
|
101
|
+
content: K
|
|
102
|
+
}, ca = ({ children: a, color: t, loading: e = !1, weight: o = "regular", className: r, style: i, render: n, ref: d, ...m }) => {
|
|
103
|
+
const p = O(t);
|
|
104
|
+
return x({
|
|
105
|
+
defaultTagName: "span",
|
|
106
|
+
render: n,
|
|
107
|
+
ref: d,
|
|
108
|
+
state: {
|
|
109
|
+
loading: e,
|
|
110
|
+
weight: o
|
|
111
|
+
},
|
|
112
|
+
props: {
|
|
113
|
+
"aria-busy": e || void 0,
|
|
114
|
+
...m,
|
|
115
|
+
className: f(b.status, r),
|
|
116
|
+
style: {
|
|
117
|
+
"--tw-status-background": l.tag.background[p],
|
|
118
|
+
"--tw-status-text-color": l.tag.text[p],
|
|
119
|
+
...i
|
|
120
|
+
},
|
|
121
|
+
children: /* @__PURE__ */ c(v, { children: [/* @__PURE__ */ s("span", {
|
|
122
|
+
className: b.content,
|
|
123
|
+
children: a
|
|
124
|
+
}), e && /* @__PURE__ */ s(V, {
|
|
125
|
+
color: t,
|
|
126
|
+
"aria-hidden": "true",
|
|
127
|
+
render: /* @__PURE__ */ s("span", {})
|
|
128
|
+
})] })
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}, Q = "_tag_1rqsl_1", W = "_content_1rqsl_46", X = "_overflowingText_1rqsl_55", I = "_iconContainer_1rqsl_59", u = {
|
|
132
|
+
tag: Q,
|
|
133
|
+
content: W,
|
|
134
|
+
overflowingText: X,
|
|
135
|
+
iconContainer: I
|
|
136
|
+
}, fa = ({ children: a, color: t, weight: e = "regular", variant: o = "soft", startIcon: r, truncate: i = !0, borderStyle: n = "solid", className: d, style: m, render: p, ref: h, ...g }) => x({
|
|
137
|
+
defaultTagName: "span",
|
|
138
|
+
render: p,
|
|
139
|
+
ref: h,
|
|
140
|
+
state: {
|
|
141
|
+
variant: o,
|
|
142
|
+
weight: e,
|
|
143
|
+
truncate: i
|
|
144
|
+
},
|
|
145
|
+
props: {
|
|
146
|
+
...g,
|
|
147
|
+
className: f(u.tag, d),
|
|
148
|
+
style: {
|
|
149
|
+
"--tw-tag-background": t === "transparent" ? "transparent" : l.tag.background[t] ?? l.tag.background.gray,
|
|
150
|
+
"--tw-tag-text": t === "transparent" ? l.font.color.secondary : l.tag.text[t] ?? l.font.color.secondary,
|
|
151
|
+
"--tw-tag-border-style": n,
|
|
152
|
+
...m
|
|
153
|
+
},
|
|
154
|
+
children: /* @__PURE__ */ c(v, { children: [_(r) && !C(r) && r !== "" && /* @__PURE__ */ s("span", {
|
|
155
|
+
className: u.iconContainer,
|
|
156
|
+
"aria-hidden": !0,
|
|
157
|
+
children: r
|
|
158
|
+
}), /* @__PURE__ */ s("span", {
|
|
159
|
+
className: u.content,
|
|
160
|
+
children: E(a) && i ? /* @__PURE__ */ s(N, {
|
|
161
|
+
text: a,
|
|
162
|
+
render: /* @__PURE__ */ s("span", {}),
|
|
163
|
+
className: u.overflowingText
|
|
164
|
+
}) : a
|
|
165
|
+
})] })
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
export {
|
|
169
|
+
da as a,
|
|
170
|
+
ma as i,
|
|
171
|
+
ca as n,
|
|
172
|
+
pa as o,
|
|
173
|
+
_a as r,
|
|
174
|
+
fa as t
|
|
175
|
+
};
|