twenty-ui 2.47.0 → 2.49.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 +27 -2
- package/dist/{AllIcons-DrlkKKQf.cjs → AllIcons-Cyd7721G.cjs} +1 -1
- package/dist/{AllIcons-G3nKeM41.js → AllIcons-D132B8_i.js} +1 -1
- package/dist/Avatar-C6WxBgjS.cjs +1 -0
- package/dist/{Avatar-D-QA0RE5.js → Avatar-ifVlxbx_.js} +18 -17
- package/dist/{Button-Cs07psdD.js → Button-DIw804CX.js} +1 -1
- package/dist/{Button-COxEKIHL.cjs → Button-DTm1WDzp.cjs} +1 -1
- package/dist/Dropdown-1OAJvS1f.js +1000 -0
- package/dist/Dropdown-Bl4OXCf9.cjs +1 -0
- package/dist/{ListItem-CXu35dzp.js → ListItem-DizNUBT8.js} +4 -4
- package/dist/{ListItem-q6DHGlev.cjs → ListItem-DwBb-I1D.cjs} +1 -1
- package/dist/ListItem.module-BJ9Ttjrc.js +34 -0
- package/dist/ListItem.module-CO4u2oeF.cjs +1 -0
- package/dist/OverflowingTextWithTooltip-BmUROIah.js +90 -0
- package/dist/OverflowingTextWithTooltip-Z2daM0_x.cjs +1 -0
- package/dist/{ProgressBar-D_3Gia0E.js → ProgressBar-B3xACTV2.js} +1 -1
- package/dist/{ProgressBar-oF1qVHFx.cjs → ProgressBar-OpSMnDBz.cjs} +1 -1
- package/dist/{Radio-BMoQHDe7.js → Radio-BEAztmPu.js} +1 -1
- package/dist/{Radio-D_YUizSv.cjs → Radio-Dx6b4SYZ.cjs} +1 -1
- package/dist/ResizeHandle-B1MuHTNA.cjs +1 -0
- package/dist/{ResizeHandle-Bjg4R0c-.js → ResizeHandle-B30OYZxS.js} +57 -55
- package/dist/Shortcut-Bp9iDdQg.js +73 -0
- package/dist/Shortcut-N8TELGPI.cjs +1 -0
- package/dist/TabsTabContent-Co27Y2TU.cjs +1 -0
- package/dist/TabsTabContent-DVcObDp6.js +39 -0
- package/dist/{TintedIconTile-4BGa8g8n.js → TintedIconTile-B1XDtGrF.js} +1 -1
- package/dist/{TintedIconTile-CU2hCerq.cjs → TintedIconTile-DO1XJXCQ.cjs} +1 -1
- package/dist/Tooltip-Bg9Uk01p.cjs +1 -0
- package/dist/Tooltip-cLCgtFBF.js +124 -0
- package/dist/components/__stories__/reading-direction/DirectionalLayoutExample.d.ts +3 -1
- package/dist/components/code-editor/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/components/code-editor/CodeEditor/__stories__/ControlledCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/ModelCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/ResizableCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/ThemedCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/UnmountingCodeEditor.d.ts +2 -0
- package/dist/components/code-editor/CodeEditor/__stories__/waitForCodeEditorContent.d.ts +4 -1
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorAutoHeightEffect.d.ts +9 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorLifecycleEffect.d.ts +11 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorLoaderConfigurationEffect.d.ts +7 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorMarkersEffect.d.ts +10 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorResizableHeightEffect.d.ts +11 -0
- package/dist/components/code-editor/CodeEditor/internal/CodeEditorThemeEffect.d.ts +10 -0
- package/dist/components/code-editor/CodeEditor/internal/constants/CodeEditorDefaultHeight.d.ts +1 -0
- package/dist/components/code-editor/CodeEditor/internal/types/ResizedCodeEditorHeight.d.ts +4 -0
- package/dist/components/code-editor/CodeEditor/internal/useCodeEditorHeight.d.ts +13 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/defineCodeEditorDefaultTheme.d.ts +7 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/getBaseCodeEditorTheme.d.ts +4 -1
- package/dist/components/code-editor/CodeEditor/internal/utils/getBoundedCodeEditorHeight.d.ts +1 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/getCurrentCodeEditorHeight.d.ts +7 -0
- package/dist/components/code-editor/CodeEditor/internal/utils/getResizableCodeEditorHeight.d.ts +5 -0
- package/dist/components/code-editor/CodeEditor/types/CodeEditorProps.d.ts +4 -2
- package/dist/components/code-editor.cjs +1 -1
- package/dist/components/code-editor.mjs +268 -155
- package/dist/components/data-display.cjs +1 -1
- package/dist/components/data-display.mjs +2 -2
- package/dist/components/feedback/Toast/internal/components/ToastCountdownEffect.d.ts +4 -3
- package/dist/components/feedback/Toast/internal/components/ToastProviderLifecycleEffect.d.ts +3 -0
- package/dist/components/feedback/Toast/internal/constants/DefaultToastDuration.d.ts +1 -0
- package/dist/components/feedback/Toast/internal/contexts/ToastContext.d.ts +60 -1
- package/dist/components/feedback/Toast/internal/contexts/ToastTimingContext.d.ts +12 -2
- package/dist/components/feedback/Toast/internal/hooks/useToastContext.d.ts +60 -1
- package/dist/components/feedback/Toast/internal/hooks/useToastCountdown.d.ts +26 -0
- package/dist/components/feedback/Toast/internal/stores/createToastStore.d.ts +60 -1
- package/dist/components/feedback/Toast/internal/utils/assertValidToastLimit.d.ts +1 -0
- package/dist/components/feedback/Toast/internal/utils/completeToastExit.d.ts +3 -2
- package/dist/components/feedback/Toast/internal/utils/createToastCountdownStore.d.ts +22 -0
- package/dist/components/feedback/Toast/internal/utils/createToastLifecycle.d.ts +62 -0
- package/dist/components/feedback/Toast/internal/utils/dismissToasts.d.ts +3 -2
- package/dist/components/feedback/Toast/internal/utils/updateToastLimit.d.ts +5 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleControls.d.ts +7 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleExample.d.ts +2 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleExampleProps.d.ts +7 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleTimingOverrideExample.d.ts +9 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterLifecycleUnrelatedNotificationActions.d.ts +5 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterPortalExample.d.ts +5 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderLayoutReplayEffect.d.ts +4 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderPassiveReplayEffect.d.ts +4 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderReplayExample.d.ts +6 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderSuspenseExample.d.ts +4 -0
- package/dist/components/feedback/Toaster/__stories__/ToasterProviderSuspension.d.ts +5 -0
- package/dist/components/feedback/Toaster/internal/ToasterItemExitEffect.d.ts +2 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input/CountrySelect/CountrySelect.d.ts +5 -2
- package/dist/components/input/CountrySelect/__stories__/CountrySelectPartsExample.d.ts +11 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectComponent.d.ts +2 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectContext.d.ts +2 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectContextValue.d.ts +11 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectDropdown.d.ts +4 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectOptions.d.ts +2 -11
- package/dist/components/input/CountrySelect/internal/CountrySelectOptionsContent.d.ts +2 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectRoot.d.ts +2 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectTrigger.d.ts +2 -0
- package/dist/components/input/CountrySelect/internal/NO_COUNTRY_SELECTION_VALUE.d.ts +1 -0
- package/dist/components/input/CountrySelect/internal/PreparedCountryChoice.d.ts +5 -0
- package/dist/components/input/CountrySelect/internal/getCountrySelectionValue.d.ts +1 -0
- package/dist/components/input/CountrySelect/internal/useCountrySelectContextOrThrow.d.ts +1 -0
- package/dist/components/input/CountrySelect/types/CountryChoice.d.ts +1 -0
- package/dist/components/input/CountrySelect/types/CountrySelectOptionsProps.d.ts +10 -0
- package/dist/components/input/CountrySelect/types/CountrySelectOptionsState.d.ts +4 -0
- package/dist/components/input/CountrySelect/types/CountrySelectProps.d.ts +7 -13
- package/dist/components/input/CountrySelect/types/CountrySelectRootProps.d.ts +12 -0
- package/dist/components/input/CountrySelect/types/CountrySelectTriggerProps.d.ts +6 -0
- package/dist/components/input/CurrencyPicker/CurrencyPicker.d.ts +4 -3
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerChangingDefaultExample.d.ts +5 -0
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerControlledExample.d.ts +5 -0
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerControlledSearchExample.d.ts +5 -0
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerExample.d.ts +3 -4
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerListLabelExample.d.ts +1 -0
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerRootStateExample.d.ts +1 -0
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerContext.d.ts +11 -0
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerOptions.d.ts +1 -1
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerRoot.d.ts +2 -0
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerShorthand.d.ts +2 -0
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerTrigger.d.ts +1 -1
- package/dist/components/input/CurrencyPicker/internal/PreparedCurrencyPickerOption.d.ts +7 -0
- package/dist/components/input/CurrencyPicker/internal/getCurrencyPickerSearchText.d.ts +2 -0
- package/dist/components/input/CurrencyPicker/internal/useCurrencyPickerContextOrThrow.d.ts +7 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerChangeEventDetails.d.ts +2 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerOption.d.ts +1 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerOptionsProps.d.ts +6 -5
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerProps.d.ts +10 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerRootProps.d.ts +17 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerState.d.ts +6 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerTriggerProps.d.ts +3 -2
- package/dist/components/input/IconButton/__stories__/IconButtonExample.d.ts +7 -0
- package/dist/components/input/PhoneCountryPicker/PhoneCountryPicker.d.ts +5 -3
- package/dist/components/input/PhoneCountryPicker/__stories__/PhoneCountryPickerExample.d.ts +7 -3
- package/dist/components/input/PhoneCountryPicker/__stories__/testDisabledPhoneCountryPicker.d.ts +5 -0
- package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountryCallingCodeDirection.d.ts +3 -0
- package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountryNullSelection.d.ts +5 -0
- package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountrySelection.d.ts +5 -0
- package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerContext.d.ts +9 -0
- package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerOptions.d.ts +1 -1
- package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerRoot.d.ts +2 -0
- package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerTrigger.d.ts +1 -1
- package/dist/components/input/PhoneCountryPicker/internal/PreparedPhoneCountryOption.d.ts +5 -0
- package/dist/components/input/PhoneCountryPicker/internal/getPhoneCountryOptionTooltipLabel.d.ts +2 -0
- package/dist/components/input/PhoneCountryPicker/internal/matchesPhoneCountrySearch.d.ts +6 -0
- package/dist/components/input/PhoneCountryPicker/internal/usePhoneCountryPickerContextOrThrow.d.ts +7 -0
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryOption.d.ts +1 -0
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerOptionsProps.d.ts +4 -5
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerProps.d.ts +10 -0
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerRootProps.d.ts +12 -0
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerTriggerProps.d.ts +1 -3
- package/dist/components/input/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/input/SearchInput/types/SearchInputProps.d.ts +2 -3
- package/dist/components/input/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/components/input/SegmentedControl/types/SegmentedControlProps.d.ts +2 -0
- package/dist/components/input/SegmentedControl/types/SegmentedControlSize.d.ts +1 -0
- package/dist/components/input/index.d.ts +11 -0
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +13 -13
- package/dist/components/layout/OverflowingList/OverflowingList.d.ts +1 -1
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListActionsExample.d.ts +7 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListCanceledCloseExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListControlledExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListControlledStateExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListDisabledTriggerFocusExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListEventBlockingExample.d.ts +7 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListFocusExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListInstanceCleanupExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListStateExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/__stories__/OverflowingListTriggerRefExample.d.ts +1 -0
- package/dist/components/layout/OverflowingList/internal/OverflowingListItem.d.ts +8 -2
- package/dist/components/layout/OverflowingList/internal/OverflowingListItemFocusEffect.d.ts +8 -0
- package/dist/components/layout/OverflowingList/internal/OverflowingListLayoutEffect.d.ts +16 -0
- package/dist/components/layout/OverflowingList/internal/OverflowingListPopupTarget.d.ts +10 -0
- package/dist/components/layout/OverflowingList/internal/focusOverflowingListFallback.d.ts +8 -0
- package/dist/components/layout/OverflowingList/internal/measureItemWidths.d.ts +1 -2
- package/dist/components/layout/OverflowingList/internal/measureOverflowingListLayout.d.ts +9 -0
- package/dist/components/layout/OverflowingList/internal/types/OverflowingListLayout.d.ts +4 -0
- package/dist/components/layout/OverflowingList/internal/useFocusedElementUnmountRef.d.ts +1 -1
- package/dist/components/layout/OverflowingList/internal/useOverflowingListFocus.d.ts +30 -0
- package/dist/components/layout/OverflowingList/internal/useOverflowingListLayout.d.ts +6 -6
- package/dist/components/layout/OverflowingList/types/OverflowingListProps.d.ts +7 -2
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.mjs +1 -1
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +5 -4
- package/dist/components/navigation/Dropdown/__stories__/DropdownIconGridExample.d.ts +3 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownSelectionGroupsExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/DropdownActionItem.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +12 -6
- package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownOptionItemOwner.d.ts +7 -0
- package/dist/components/navigation/Dropdown/internal/DropdownRowFocus.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/DropdownRowsEffect.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSelectionContext.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSelectionContextValue.d.ts +9 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSelectionGroup.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSelectionGroupEffect.d.ts +11 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSubmenuTrigger.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/createDropdownSelectionEventDetails.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/dropdownItemActivation.d.ts +11 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownItemExplicitId.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownOptionItemRole.d.ts +9 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownRows.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownSearch.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownSelectionGroupState.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownTabStopRowId.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/getTrailingFocusGuard.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/isDropdownDismissPrevented.d.ts +2 -1
- package/dist/components/navigation/Dropdown/internal/isDropdownOptionItemSelected.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/isDropdownRow.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/isEnabledDropdownItem.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/useDropdownItemFocus.d.ts +0 -1
- package/dist/components/navigation/Dropdown/internal/useDropdownKeyboardNavigation.d.ts +1 -6
- package/dist/components/navigation/Dropdown/internal/useDropdownSelections.d.ts +12 -0
- package/dist/components/navigation/Dropdown/types/DropdownOptionItemProps.d.ts +7 -2
- package/dist/components/navigation/Dropdown/types/DropdownOptionItemSelectEventDetails.d.ts +2 -0
- package/dist/components/navigation/Dropdown/types/DropdownOptionItemState.d.ts +5 -0
- package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupChangeEventDetails.d.ts +7 -0
- package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupProps.d.ts +21 -0
- package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupState.d.ts +7 -0
- package/dist/components/navigation/index.d.ts +5 -0
- package/dist/components/navigation.cjs +1 -1
- package/dist/components/navigation.mjs +2 -2
- package/dist/components/settings.cjs +1 -1
- package/dist/components/settings.mjs +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +22 -22
- package/dist/data-display-BSKGlijb.cjs +1 -0
- package/dist/{data-display-DU3G8ZyI.js → data-display-BtXCGOGw.js} +82 -81
- package/dist/data-display-DtXIhJ4B.js +184 -0
- package/dist/data-display-XV3ht1rC.cjs +2 -0
- package/dist/doNotTranslate-BSVT8Xyd.js +4 -0
- package/dist/doNotTranslate-CHE7WmRS.cjs +1 -0
- package/dist/feedback-Cs-38OH4.cjs +1 -0
- package/dist/feedback-DTyVVcTb.js +665 -0
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/constants/TwentyIconDictionary.d.ts +7 -7
- package/dist/icon/index.d.ts +1 -1
- package/dist/{icon-JuDK6Wxr.cjs → icon-BNcdwwdl.cjs} +1 -1
- package/dist/{icon-BdXwnJA6.js → icon-CUE-QGQK.js} +129 -128
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +77 -76
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +222 -220
- package/dist/{input-Bnu5kNjg.cjs → input-B_rBplmn.cjs} +1 -1
- package/dist/input-BrjD91wv.js +785 -0
- package/dist/input-ChlFcqIS.cjs +1 -0
- package/dist/{input-vl6yK36n.js → input-D1oyk0tD.js} +4 -4
- package/dist/layout-CthYckvl.cjs +1 -0
- package/dist/layout-DQcjBu08.js +439 -0
- package/dist/{navigation-itBinyPi.js → navigation-B6nka3bW.js} +127 -130
- package/dist/navigation-CIVYqPc5.js +132 -0
- package/dist/navigation-CflGBYv-.cjs +1 -0
- package/dist/navigation-DoInK0Sp.cjs +1 -0
- package/dist/preventDismissingClickActivation-AaqHBLnW.js +45 -0
- package/dist/preventDismissingClickActivation-CIhWvKCu.cjs +1 -0
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +2 -2
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +1 -1
- package/dist/primitives/input/Radio/__stories__/RadioCardContent.d.ts +8 -0
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +3 -3
- package/dist/primitives/layout/ResizeHandle/__stories__/ResizableNotesExample.d.ts +2 -0
- package/dist/primitives/layout.cjs +1 -1
- package/dist/primitives/layout.mjs +1 -1
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +2 -2
- package/dist/primitives/surfaces/Tooltip/Tooltip.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/internal/TooltipPopup.d.ts +1 -1
- package/dist/primitives/surfaces/Tooltip/types/TooltipPopupProps.d.ts +2 -0
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +2 -2
- package/dist/primitives/typography/OverflowingTextWithTooltip/OverflowingTextTooltipModeProvider.d.ts +6 -0
- package/dist/primitives/typography/OverflowingTextWithTooltip/internal/OverflowingTextTooltipModeContext.d.ts +2 -0
- package/dist/primitives/typography/OverflowingTextWithTooltip/internal/isElementOverflowing.d.ts +1 -0
- package/dist/primitives/typography/OverflowingTextWithTooltip/types/OverflowingTextTooltipMode.d.ts +1 -0
- package/dist/primitives/typography/Shortcut/Shortcut.d.ts +1 -1
- package/dist/primitives/typography/Shortcut/internal/getShortcutPresentation.d.ts +1 -1
- package/dist/primitives/typography/Shortcut/types/ShortcutFormatOptions.d.ts +1 -0
- package/dist/primitives/typography/index.d.ts +2 -0
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +10 -9
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +37 -36
- package/dist/{settings-CC-2gcAx.js → settings-BgVuLpg9.js} +1 -1
- package/dist/{settings-BiSAY2oN.cjs → settings-CPXhrmbK.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/surfaces-0rL5DoHt.cjs +1 -0
- package/dist/{surfaces-DZ2A-Nb9.js → surfaces-BLsR5ka0.js} +54 -54
- package/dist/testing/GroupedCatalog.d.ts +14 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.mjs +96 -66
- package/dist/typography-DT2eKLvd.js +11 -0
- package/dist/typography-bKeSMuJd.cjs +1 -0
- package/dist/useIsMobile-Byp9AIq-.cjs +1 -0
- package/dist/useIsMobile-D1ImfQnE.js +38 -0
- package/dist/utilities/internal/doNotTranslate.d.ts +1 -0
- package/dist/utilities-BKCMZyqZ.js +53 -0
- package/dist/utilities-xZh8D2gd.cjs +1 -0
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +3 -3
- package/package.json +3 -3
- package/dist/Avatar-CQhIEazb.cjs +0 -1
- package/dist/Dropdown-BBUGkQQV.cjs +0 -1
- package/dist/Dropdown-CScN_olN.js +0 -784
- package/dist/ListItem.module-Ar-vZ7Qu.js +0 -34
- package/dist/ListItem.module-B8NeDH1P.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-Be2-wCcZ.js +0 -88
- package/dist/OverflowingTextWithTooltip-BlufG-6n.cjs +0 -1
- package/dist/ResizeHandle-CNlQ4TEE.cjs +0 -1
- package/dist/Shortcut-DKfB0kej.js +0 -71
- package/dist/Shortcut-ZuZ-KYSk.cjs +0 -1
- package/dist/TabsTabContent-DZUNi_iE.cjs +0 -1
- package/dist/TabsTabContent-s6J5bZ3R.js +0 -39
- package/dist/Tooltip-BMkznyoi.js +0 -120
- package/dist/Tooltip-JOYVeSsf.cjs +0 -1
- package/dist/components/navigation/Dropdown/internal/DropdownSearchTargetEffect.d.ts +0 -5
- package/dist/data-display-BMV-nC-9.js +0 -181
- package/dist/data-display-BkujQe5v.cjs +0 -1
- package/dist/data-display-DjhAHvj1.cjs +0 -2
- package/dist/feedback-B5x8tmnG.cjs +0 -1
- package/dist/feedback-DhilJ_fX.js +0 -509
- package/dist/input-BEKjAOjS.cjs +0 -1
- package/dist/input-BUgnp6eA.js +0 -559
- package/dist/layout-BKHabkTu.js +0 -267
- package/dist/layout-wuIu4rJ3.cjs +0 -1
- package/dist/navigation-B1hPNYv2.cjs +0 -1
- package/dist/navigation-Dg46Wr5m.js +0 -131
- package/dist/navigation-WsiYsmaq.cjs +0 -1
- package/dist/preventDismissingClickActivation-CzWqpjiX.js +0 -44
- package/dist/preventDismissingClickActivation-DZxTSLV3.cjs +0 -1
- package/dist/surfaces-vyAhk2Gw.cjs +0 -1
- package/dist/typography-8DF9mq2w.cjs +0 -1
- package/dist/typography-DmY7-GzQ.js +0 -5
- package/dist/useIsMobile-DxOPI2_E.cjs +0 -1
- package/dist/useIsMobile-nrufFzMb.js +0 -37
- package/dist/utilities-BeLfNQ0Q.cjs +0 -1
- package/dist/utilities-CEi9I09B.js +0 -52
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { t as _ } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { Dn as Z, Xi as x } from "./icon-
|
|
2
|
+
import { Dn as Z, Xi as x } from "./icon-CUE-QGQK.js";
|
|
3
|
+
import { t as ee } from "./doNotTranslate-BSVT8Xyd.js";
|
|
3
4
|
import { a as w, r as y } from "./theme-B2EaXhye.js";
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as ne } from "./Shortcut-
|
|
7
|
-
import { r as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as L } from "./OverflowingTextWithTooltip-
|
|
10
|
-
import { t as
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { n as
|
|
5
|
+
import { t as te } from "./mergeClassNames-ClFMR1v0.js";
|
|
6
|
+
import { t as ae } from "./TintedIconTile-B1XDtGrF.js";
|
|
7
|
+
import { t as ne } from "./Shortcut-Bp9iDdQg.js";
|
|
8
|
+
import { r as re, t as oe } from "./Button-DIw804CX.js";
|
|
9
|
+
import { t as ie } from "./Tooltip-cLCgtFBF.js";
|
|
10
|
+
import { t as L } from "./OverflowingTextWithTooltip-BmUROIah.js";
|
|
11
|
+
import { t as se } from "./ListItem-DizNUBT8.js";
|
|
12
|
+
import { o as le } from "./Dropdown-1OAJvS1f.js";
|
|
13
|
+
import { t as me } from "./Avatar-ifVlxbx_.js";
|
|
14
|
+
import { t as de } from "./handleClickableElementKeyDown-C8Uz61XJ.js";
|
|
15
|
+
import { n as ue, t as ce } from "./TabsTabContent-DVcObDp6.js";
|
|
15
16
|
import { isNonEmptyString as E, isString as B } from "@sniptt/guards";
|
|
16
17
|
import { clsx as I } from "clsx";
|
|
17
|
-
import { forwardRef as j, useContext as
|
|
18
|
+
import { forwardRef as j, useContext as ve } from "react";
|
|
18
19
|
import { Fragment as G, jsx as e, jsxs as g } from "react/jsx-runtime";
|
|
19
|
-
import { Button as
|
|
20
|
-
var
|
|
21
|
-
const { pageId:
|
|
20
|
+
import { Button as _e } from "@base-ui/react/button";
|
|
21
|
+
var ht = () => {
|
|
22
|
+
const { pageId: a, goToPage: r, goBack: n, canGoBack: s } = le();
|
|
22
23
|
return {
|
|
23
|
-
page:
|
|
24
|
+
page: a,
|
|
24
25
|
goToPage: (t) => r({ id: t }),
|
|
25
|
-
goBack:
|
|
26
|
+
goBack: n,
|
|
26
27
|
canGoBack: s
|
|
27
28
|
};
|
|
28
|
-
},
|
|
29
|
-
color:
|
|
29
|
+
}, ft = ({ color: a, selected: r, focused: n, indicator: s, startIcon: t, endIcon: i, description: m, descriptionPlacement: l, shortcut: d, shortcutJoinLabel: o, hasSubmenu: c, disabled: u = !1, type: v = "button", children: f, ...p }) => /* @__PURE__ */ e(se, {
|
|
30
|
+
color: a,
|
|
30
31
|
selected: r,
|
|
31
|
-
focused:
|
|
32
|
+
focused: n,
|
|
32
33
|
indicator: s,
|
|
33
34
|
startIcon: t,
|
|
34
35
|
endIcon: i,
|
|
@@ -38,14 +39,14 @@ var _t = () => {
|
|
|
38
39
|
shortcutJoinLabel: o,
|
|
39
40
|
hasSubmenu: c,
|
|
40
41
|
disabled: u,
|
|
41
|
-
render: /* @__PURE__ */ e(
|
|
42
|
+
render: /* @__PURE__ */ e(_e, {
|
|
42
43
|
...p,
|
|
43
44
|
nativeButton: !0,
|
|
44
45
|
type: v,
|
|
45
46
|
disabled: u
|
|
46
47
|
}),
|
|
47
48
|
children: f
|
|
48
|
-
}),
|
|
49
|
+
}), gt = ee({
|
|
49
50
|
gray: "Gray",
|
|
50
51
|
tomato: "Tomato",
|
|
51
52
|
red: "Red",
|
|
@@ -71,46 +72,42 @@ var _t = () => {
|
|
|
71
72
|
orange: "Orange",
|
|
72
73
|
amber: "Amber",
|
|
73
74
|
yellow: "Yellow"
|
|
74
|
-
},
|
|
75
|
-
iconContainer:
|
|
76
|
-
withBackground:
|
|
77
|
-
}, M = ({ children:
|
|
78
|
-
className: I(F.iconContainer,
|
|
79
|
-
children:
|
|
80
|
-
}), $ = ({ Icon:
|
|
75
|
+
}), Ie = "_iconContainer_1ivx0_1", he = "_withBackground_1ivx0_9", F = {
|
|
76
|
+
iconContainer: Ie,
|
|
77
|
+
withBackground: he
|
|
78
|
+
}, M = ({ children: a, className: r, hasBackground: n = !0 }) => /* @__PURE__ */ e("div", {
|
|
79
|
+
className: I(F.iconContainer, n && F.withBackground, r),
|
|
80
|
+
children: a
|
|
81
|
+
}), $ = ({ Icon: a, iconThemeColor: r, withContainer: n = !1, withContainerBackground: s = !0 }) => {
|
|
81
82
|
const t = y();
|
|
82
|
-
if (!
|
|
83
|
-
if (_(r)) return /* @__PURE__ */ e(
|
|
84
|
-
icon: /* @__PURE__ */ e(
|
|
83
|
+
if (!a) return null;
|
|
84
|
+
if (_(r)) return /* @__PURE__ */ e(ae, {
|
|
85
|
+
icon: /* @__PURE__ */ e(a, {
|
|
85
86
|
size: t.icon.size.md,
|
|
86
87
|
stroke: t.icon.stroke.sm
|
|
87
88
|
}),
|
|
88
|
-
color: r
|
|
89
|
-
style: {
|
|
90
|
-
width: t.icon.size.md,
|
|
91
|
-
height: t.icon.size.md
|
|
92
|
-
}
|
|
89
|
+
color: r
|
|
93
90
|
});
|
|
94
|
-
const i = /* @__PURE__ */ e(
|
|
91
|
+
const i = /* @__PURE__ */ e(a, {
|
|
95
92
|
size: t.icon.size.md,
|
|
96
93
|
stroke: t.icon.stroke.sm
|
|
97
94
|
});
|
|
98
|
-
return
|
|
95
|
+
return n ? /* @__PURE__ */ e(M, {
|
|
99
96
|
hasBackground: s,
|
|
100
97
|
children: i
|
|
101
98
|
}) : i;
|
|
102
|
-
},
|
|
103
|
-
iconSwapContainer:
|
|
104
|
-
defaultIcon:
|
|
105
|
-
hoverIcon:
|
|
106
|
-
},
|
|
99
|
+
}, fe = "_iconSwapContainer_g9ywp_1", ge = "_defaultIcon_g9ywp_8", be = "_hoverIcon_g9ywp_13", z = {
|
|
100
|
+
iconSwapContainer: fe,
|
|
101
|
+
defaultIcon: ge,
|
|
102
|
+
hoverIcon: be
|
|
103
|
+
}, pe = ({ leadingContent: a, withIconContainer: r = !1, withIconContainerBackground: n = !0, gripIconColor: s }) => {
|
|
107
104
|
const t = y();
|
|
108
|
-
if (!_(
|
|
105
|
+
if (!_(a)) return null;
|
|
109
106
|
const i = /* @__PURE__ */ g("div", {
|
|
110
107
|
className: z.iconSwapContainer,
|
|
111
108
|
children: [/* @__PURE__ */ e("div", {
|
|
112
109
|
className: I(z.defaultIcon, "grip-swap-default-icon"),
|
|
113
|
-
children:
|
|
110
|
+
children: a
|
|
114
111
|
}), /* @__PURE__ */ e("div", {
|
|
115
112
|
className: I(z.hoverIcon, "grip-swap-hover-icon"),
|
|
116
113
|
children: /* @__PURE__ */ e(x, {
|
|
@@ -121,47 +118,47 @@ var _t = () => {
|
|
|
121
118
|
})]
|
|
122
119
|
});
|
|
123
120
|
return r ? /* @__PURE__ */ e(M, {
|
|
124
|
-
hasBackground:
|
|
121
|
+
hasBackground: n,
|
|
125
122
|
children: i
|
|
126
123
|
}) : i;
|
|
127
|
-
},
|
|
128
|
-
hoverableMenuItemBase:
|
|
129
|
-
menuItemBase:
|
|
130
|
-
menuItemLabel:
|
|
131
|
-
menuItemLabelLight:
|
|
132
|
-
noIconFiller:
|
|
133
|
-
menuItemLeftContent:
|
|
134
|
-
menuItemRightContent:
|
|
135
|
-
draggableItem:
|
|
136
|
-
menuItemIconCheckContainer:
|
|
137
|
-
menuItemContextualText:
|
|
138
|
-
rightMenuItemContextualText:
|
|
139
|
-
},
|
|
124
|
+
}, ye = "_hoverableMenuItemBase_1jkew_54", ke = "_menuItemBase_1jkew_1", Ce = "_menuItemLabel_1jkew_136", Me = "_menuItemLabelLight_1jkew_145", Se = "_noIconFiller_1jkew_155", we = "_menuItemLeftContent_1jkew_159", Le = "_menuItemRightContent_1jkew_172", Be = "_draggableItem_1jkew_183", ze = "_menuItemIconCheckContainer_1jkew_189", Ne = "_menuItemContextualText_1jkew_196", xe = "_rightMenuItemContextualText_1jkew_206", h = {
|
|
125
|
+
hoverableMenuItemBase: ye,
|
|
126
|
+
menuItemBase: ke,
|
|
127
|
+
menuItemLabel: Ce,
|
|
128
|
+
menuItemLabelLight: Me,
|
|
129
|
+
noIconFiller: Se,
|
|
130
|
+
menuItemLeftContent: we,
|
|
131
|
+
menuItemRightContent: Le,
|
|
132
|
+
draggableItem: Be,
|
|
133
|
+
menuItemIconCheckContainer: ze,
|
|
134
|
+
menuItemContextualText: Ne,
|
|
135
|
+
rightMenuItemContextualText: xe
|
|
136
|
+
}, Te = j(({ accent: a, isKeySelected: r, isHoverBackgroundDisabled: n, hovered: s, disabled: t, focused: i, className: m, children: l, ...d }, o) => /* @__PURE__ */ e("div", {
|
|
140
137
|
ref: o,
|
|
141
138
|
className: I(h.menuItemBase, m),
|
|
142
|
-
"data-accent":
|
|
139
|
+
"data-accent": a,
|
|
143
140
|
"data-key-selected": r || void 0,
|
|
144
|
-
"data-hover-background-disabled":
|
|
141
|
+
"data-hover-background-disabled": n || void 0,
|
|
145
142
|
"data-disabled": t || void 0,
|
|
146
143
|
"data-focused": i || void 0,
|
|
147
144
|
...d,
|
|
148
145
|
children: l
|
|
149
146
|
}));
|
|
150
|
-
|
|
151
|
-
var b = (
|
|
152
|
-
const
|
|
147
|
+
Te.displayName = "StyledMenuItemBase";
|
|
148
|
+
var b = (a, r) => {
|
|
149
|
+
const n = j(({ className: s, children: t, ...i }, m) => /* @__PURE__ */ e("div", {
|
|
153
150
|
ref: m,
|
|
154
|
-
className: I(
|
|
151
|
+
className: I(a, s),
|
|
155
152
|
...i,
|
|
156
153
|
children: t
|
|
157
154
|
}));
|
|
158
|
-
return
|
|
159
|
-
},
|
|
155
|
+
return n.displayName = r, n;
|
|
156
|
+
}, je = b(h.menuItemLabel, "StyledMenuItemLabel"), bt = b(h.menuItemLabelLight, "StyledMenuItemLabelLight"), pt = b(h.noIconFiller, "StyledNoIconFiller"), H = b(h.menuItemLeftContent, "StyledMenuItemLeftContent"), T = b(h.menuItemRightContent, "StyledMenuItemRightContent"), O = b(h.draggableItem, "StyledDraggableItem"), R = j(({ accent: a, isKeySelected: r, isHoverBackgroundDisabled: n, hovered: s, disabled: t, focused: i, isIconDisplayedOnHoverOnly: m, cursor: l, className: d, children: o, ...c }, u) => /* @__PURE__ */ e("div", {
|
|
160
157
|
ref: u,
|
|
161
158
|
className: I(h.hoverableMenuItemBase, d),
|
|
162
|
-
"data-accent":
|
|
159
|
+
"data-accent": a,
|
|
163
160
|
"data-key-selected": r || void 0,
|
|
164
|
-
"data-hover-background-disabled":
|
|
161
|
+
"data-hover-background-disabled": n || void 0,
|
|
165
162
|
"data-disabled": t || void 0,
|
|
166
163
|
"data-focused": i || void 0,
|
|
167
164
|
"data-icon-displayed-on-hover-only": m || void 0,
|
|
@@ -170,23 +167,23 @@ var b = (n, r) => {
|
|
|
170
167
|
children: o
|
|
171
168
|
}));
|
|
172
169
|
R.displayName = "StyledHoverableMenuItemBase";
|
|
173
|
-
var
|
|
174
|
-
mainText:
|
|
175
|
-
menuItemLabelRight:
|
|
176
|
-
},
|
|
177
|
-
if (_(
|
|
170
|
+
var Re = b(h.menuItemContextualText, "StyledMenuItemContextualText"), De = b(h.rightMenuItemContextualText, "StyledRightMenuItemContextualText"), Pe = "_mainText_d0zu3_1", Ge = "_menuItemLabelRight_d0zu3_9", q = {
|
|
171
|
+
mainText: Pe,
|
|
172
|
+
menuItemLabelRight: Ge
|
|
173
|
+
}, Fe = ({ LeftComponent: a, LeftIcon: r, iconThemeColor: n }) => {
|
|
174
|
+
if (_(a)) return a;
|
|
178
175
|
if (_(r)) return /* @__PURE__ */ e($, {
|
|
179
176
|
Icon: r,
|
|
180
|
-
iconThemeColor:
|
|
177
|
+
iconThemeColor: n
|
|
181
178
|
});
|
|
182
|
-
}, D = ({ className:
|
|
183
|
-
const u = y(), v = t ? w.font.color.tertiary : c ? w.font.color.extraLight : w.font.color.light, f =
|
|
179
|
+
}, D = ({ className: a, LeftComponent: r, LeftIcon: n, iconThemeColor: s, withIconContainer: t = !1, withIconContainerBackground: i = !0, text: m, contextualText: l, contextualTextPosition: d = "left", gripMode: o = "never", disabled: c = !1 }) => {
|
|
180
|
+
const u = y(), v = t ? w.font.color.tertiary : c ? w.font.color.extraLight : w.font.color.light, f = Fe({
|
|
184
181
|
LeftComponent: r,
|
|
185
|
-
LeftIcon:
|
|
182
|
+
LeftIcon: n,
|
|
186
183
|
iconThemeColor: s
|
|
187
184
|
}), p = t && !_(s);
|
|
188
185
|
return /* @__PURE__ */ g(H, {
|
|
189
|
-
className:
|
|
186
|
+
className: a,
|
|
190
187
|
children: [
|
|
191
188
|
o === "always" && (t ? /* @__PURE__ */ e(M, {
|
|
192
189
|
hasBackground: i,
|
|
@@ -204,35 +201,35 @@ var je = b(h.menuItemContextualText, "StyledMenuItemContextualText"), Re = b(h.r
|
|
|
204
201
|
hasBackground: i,
|
|
205
202
|
children: f
|
|
206
203
|
}) : f),
|
|
207
|
-
o === "onHover" && /* @__PURE__ */ e(
|
|
204
|
+
o === "onHover" && /* @__PURE__ */ e(pe, {
|
|
208
205
|
leadingContent: f,
|
|
209
206
|
withIconContainer: p,
|
|
210
207
|
withIconContainerBackground: i,
|
|
211
208
|
gripIconColor: v
|
|
212
209
|
}),
|
|
213
210
|
o === "never" && /* @__PURE__ */ g(G, { children: [/* @__PURE__ */ e($, {
|
|
214
|
-
Icon:
|
|
211
|
+
Icon: n,
|
|
215
212
|
iconThemeColor: s,
|
|
216
213
|
withContainer: t,
|
|
217
214
|
withContainerBackground: i
|
|
218
215
|
}), r] }),
|
|
219
|
-
/* @__PURE__ */ g(
|
|
216
|
+
/* @__PURE__ */ g(je, { children: [B(m) ? /* @__PURE__ */ e("div", {
|
|
220
217
|
className: q.mainText,
|
|
221
218
|
children: /* @__PURE__ */ e(L, { text: m })
|
|
222
|
-
}) : m, d === "left" && /* @__PURE__ */ e(G, { children: B(l) ? E(l) && /* @__PURE__ */ e(
|
|
219
|
+
}) : m, d === "left" && /* @__PURE__ */ e(G, { children: B(l) ? E(l) && /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(L, {
|
|
223
220
|
text: `· ${l}`,
|
|
224
221
|
tooltipContent: l
|
|
225
222
|
}) }) : l })] }),
|
|
226
223
|
d === "right" && /* @__PURE__ */ e("div", {
|
|
227
224
|
className: q.menuItemLabelRight,
|
|
228
|
-
children: /* @__PURE__ */ e(
|
|
225
|
+
children: /* @__PURE__ */ e(De, { children: B(l) ? /* @__PURE__ */ e(L, { text: l }) : l })
|
|
229
226
|
})
|
|
230
227
|
]
|
|
231
228
|
});
|
|
232
|
-
},
|
|
233
|
-
subMenuIcon:
|
|
234
|
-
subMenuIconOpened:
|
|
235
|
-
},
|
|
229
|
+
}, Oe = "_subMenuIcon_j232v_1", qe = "_subMenuIconOpened_j232v_9", A = {
|
|
230
|
+
subMenuIcon: Oe,
|
|
231
|
+
subMenuIconOpened: qe
|
|
232
|
+
}, Ae = ({ accent: a = "default", className: r, withIconContainer: n = !1, withIconContainerBackground: s = !0, iconButtons: t, isIconDisplayedOnHoverOnly: i = !0, LeftIcon: m, iconThemeColor: l, LeftComponent: d, RightIcon: o, RightComponent: c, onClick: u, onMouseEnter: v, onMouseLeave: f, testId: p, text: V, contextualTextPosition: W = "left", contextualText: J, hasSubMenu: K = !1, disabled: k = !1, focused: U = !1, selected: X = !1, shortcut: P, shortcutJoinLabel: Y, isSubMenuOpened: Q = !1 }) => {
|
|
236
233
|
const C = y();
|
|
237
234
|
return /* @__PURE__ */ g(R, {
|
|
238
235
|
"data-testid": p ?? void 0,
|
|
@@ -241,7 +238,7 @@ var je = b(h.menuItemContextualText, "StyledMenuItemContextualText"), Re = b(h.r
|
|
|
241
238
|
},
|
|
242
239
|
disabled: k,
|
|
243
240
|
className: r,
|
|
244
|
-
accent:
|
|
241
|
+
accent: a,
|
|
245
242
|
isIconDisplayedOnHoverOnly: i,
|
|
246
243
|
onMouseEnter: v,
|
|
247
244
|
onMouseLeave: f,
|
|
@@ -250,7 +247,7 @@ var je = b(h.menuItemContextualText, "StyledMenuItemContextualText"), Re = b(h.r
|
|
|
250
247
|
LeftIcon: m ?? void 0,
|
|
251
248
|
iconThemeColor: l,
|
|
252
249
|
LeftComponent: d,
|
|
253
|
-
withIconContainer:
|
|
250
|
+
withIconContainer: n,
|
|
254
251
|
withIconContainerBackground: s,
|
|
255
252
|
text: V,
|
|
256
253
|
contextualText: J,
|
|
@@ -280,13 +277,13 @@ var je = b(h.menuItemContextualText, "StyledMenuItemContextualText"), Re = b(h.r
|
|
|
280
277
|
})
|
|
281
278
|
] })]
|
|
282
279
|
});
|
|
283
|
-
},
|
|
284
|
-
accent:
|
|
280
|
+
}, yt = ({ accent: a = "default", className: r, iconButtons: n, isIconDisplayedOnHoverOnly: s = !0, isTooltipOpen: t, onClick: i, onMouseEnter: m, onMouseLeave: l, testId: d, avatar: o, hasSubMenu: c = !1, text: u, contextualText: v }) => /* @__PURE__ */ e(Ae, {
|
|
281
|
+
accent: a,
|
|
285
282
|
className: r,
|
|
286
|
-
iconButtons:
|
|
283
|
+
iconButtons: n,
|
|
287
284
|
isIconDisplayedOnHoverOnly: s,
|
|
288
285
|
isTooltipOpen: t,
|
|
289
|
-
LeftComponent: _(o) ? /* @__PURE__ */ e(
|
|
286
|
+
LeftComponent: _(o) ? /* @__PURE__ */ e(me, {
|
|
290
287
|
name: o.name,
|
|
291
288
|
src: o.src,
|
|
292
289
|
colorSeed: o.colorSeed,
|
|
@@ -300,50 +297,50 @@ var je = b(h.menuItemContextualText, "StyledMenuItemContextualText"), Re = b(h.r
|
|
|
300
297
|
text: u,
|
|
301
298
|
contextualText: v,
|
|
302
299
|
hasSubMenu: c
|
|
303
|
-
}),
|
|
300
|
+
}), kt = ({ LeftIcon: a, LeftComponent: r, withIconContainer: n = !1, accent: s = "default", iconButtons: t, onClick: i, text: m, contextualText: l, isDragDisabled: d = !1, className: o, isIconDisplayedOnHoverOnly: c = !0, gripMode: u = "never" }) => /* @__PURE__ */ g(R, {
|
|
304
301
|
onClick: i,
|
|
305
302
|
accent: s,
|
|
306
303
|
className: o,
|
|
307
304
|
isIconDisplayedOnHoverOnly: c,
|
|
308
305
|
cursor: u !== "never" ? d ? "default" : "drag" : "default",
|
|
309
306
|
children: [/* @__PURE__ */ e(D, {
|
|
310
|
-
LeftIcon:
|
|
307
|
+
LeftIcon: a,
|
|
311
308
|
LeftComponent: r,
|
|
312
309
|
text: m,
|
|
313
310
|
contextualText: l,
|
|
314
|
-
withIconContainer:
|
|
311
|
+
withIconContainer: n,
|
|
315
312
|
disabled: d,
|
|
316
313
|
gripMode: u
|
|
317
314
|
}), t && /* @__PURE__ */ e(T, {
|
|
318
315
|
className: "hoverable-buttons",
|
|
319
316
|
children: t
|
|
320
317
|
})]
|
|
321
|
-
}),
|
|
318
|
+
}), Ee = "_suggestionMenuItem_1qyjt_1", $e = { suggestionMenuItem: Ee }, Ct = ({ LeftIcon: a, withIconContainer: r = !1, text: n, contextualText: s = void 0, contextualTextPosition: t = "left", className: i, selected: m, onClick: l }) => {
|
|
322
319
|
const d = (o) => {
|
|
323
320
|
l && (o.preventDefault(), o.stopPropagation(), l?.(o));
|
|
324
321
|
};
|
|
325
322
|
return /* @__PURE__ */ e("li", {
|
|
326
|
-
className: I(
|
|
323
|
+
className: I($e.suggestionMenuItem, i),
|
|
327
324
|
"data-selected": m || void 0,
|
|
328
325
|
role: _(l) ? "button" : void 0,
|
|
329
326
|
tabIndex: _(l) ? 0 : void 0,
|
|
330
327
|
onClick: d,
|
|
331
|
-
onKeyDown:
|
|
328
|
+
onKeyDown: de,
|
|
332
329
|
children: /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(D, {
|
|
333
|
-
LeftIcon:
|
|
334
|
-
text:
|
|
330
|
+
LeftIcon: a ?? void 0,
|
|
331
|
+
text: n,
|
|
335
332
|
contextualText: s,
|
|
336
333
|
contextualTextPosition: t,
|
|
337
334
|
withIconContainer: r
|
|
338
335
|
}) })
|
|
339
336
|
});
|
|
340
|
-
},
|
|
341
|
-
menuPicker:
|
|
342
|
-
iconContainer:
|
|
343
|
-
label:
|
|
344
|
-
},
|
|
337
|
+
}, He = "_menuPicker_o8ra4_1", Ve = "_iconContainer_o8ra4_41", We = "_label_o8ra4_50", N = {
|
|
338
|
+
menuPicker: He,
|
|
339
|
+
iconContainer: Ve,
|
|
340
|
+
label: We
|
|
341
|
+
}, Mt = ({ id: a, icon: r, label: n, selected: s = !1, disabled: t = !1, showLabel: i = !0, onClick: m, className: l, testId: d, tooltipContent: o, tooltipDelay: c = 0, tooltipOffset: u = 5 }) => {
|
|
345
342
|
const v = y();
|
|
346
|
-
return /* @__PURE__ */ e(
|
|
343
|
+
return /* @__PURE__ */ e(ie, {
|
|
347
344
|
content: o,
|
|
348
345
|
disabled: !E(o),
|
|
349
346
|
sideOffset: u,
|
|
@@ -351,7 +348,7 @@ var je = b(h.menuItemContextualText, "StyledMenuItemContextualText"), Re = b(h.r
|
|
|
351
348
|
positionMethod: "fixed",
|
|
352
349
|
delay: c,
|
|
353
350
|
children: /* @__PURE__ */ g("button", {
|
|
354
|
-
id:
|
|
351
|
+
id: a,
|
|
355
352
|
disabled: t,
|
|
356
353
|
onClick: m,
|
|
357
354
|
className: I(N.menuPicker, l),
|
|
@@ -359,45 +356,45 @@ var je = b(h.menuItemContextualText, "StyledMenuItemContextualText"), Re = b(h.r
|
|
|
359
356
|
"data-selected": s ? "" : void 0,
|
|
360
357
|
"aria-pressed": s,
|
|
361
358
|
"aria-disabled": t,
|
|
362
|
-
"aria-label":
|
|
359
|
+
"aria-label": n,
|
|
363
360
|
children: [/* @__PURE__ */ e("div", {
|
|
364
361
|
className: N.iconContainer,
|
|
365
362
|
children: /* @__PURE__ */ e(r, {
|
|
366
363
|
size: v.icon.size.md,
|
|
367
364
|
stroke: v.icon.stroke.sm
|
|
368
365
|
})
|
|
369
|
-
}), _(
|
|
366
|
+
}), _(n) && i && /* @__PURE__ */ e("div", {
|
|
370
367
|
className: N.label,
|
|
371
368
|
"data-selected": s ? "" : void 0,
|
|
372
369
|
"data-disabled": t ? "" : void 0,
|
|
373
|
-
children:
|
|
370
|
+
children: n
|
|
374
371
|
})]
|
|
375
372
|
})
|
|
376
373
|
});
|
|
377
|
-
},
|
|
378
|
-
const d =
|
|
379
|
-
return /* @__PURE__ */ e(
|
|
374
|
+
}, Je = "_button_quwcq_1", Ke = { button: Je }, St = ({ active: a = !1, className: r, children: n, startIcon: s, endIcon: t, badge: i, size: m, ...l }) => {
|
|
375
|
+
const d = ve(re), o = m ?? d?.size ?? "sm";
|
|
376
|
+
return /* @__PURE__ */ e(oe, {
|
|
380
377
|
...l,
|
|
381
378
|
variant: "ghost",
|
|
382
379
|
size: o,
|
|
383
|
-
"data-active":
|
|
384
|
-
className:
|
|
385
|
-
children: /* @__PURE__ */ e(
|
|
380
|
+
"data-active": a || void 0,
|
|
381
|
+
className: te(I(ue.tab, Ke.button), r),
|
|
382
|
+
children: /* @__PURE__ */ e(ce, {
|
|
386
383
|
startIcon: s,
|
|
387
384
|
endIcon: t,
|
|
388
385
|
badge: i,
|
|
389
|
-
children:
|
|
386
|
+
children: n
|
|
390
387
|
})
|
|
391
388
|
});
|
|
392
389
|
};
|
|
393
390
|
export {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
391
|
+
yt as a,
|
|
392
|
+
ft as c,
|
|
393
|
+
kt as i,
|
|
394
|
+
ht as l,
|
|
395
|
+
Mt as n,
|
|
396
|
+
Ae as o,
|
|
397
|
+
Ct as r,
|
|
398
|
+
gt as s,
|
|
399
|
+
St as t
|
|
403
400
|
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { t as p } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { t as T } from "./doNotTranslate-BSVT8Xyd.js";
|
|
3
|
+
import { t as _ } from "./mergeClassNames-ClFMR1v0.js";
|
|
4
|
+
import { n as g, t as B } from "./TabsTabContent-DVcObDp6.js";
|
|
5
|
+
import { useRender as x } from "@base-ui/react/use-render";
|
|
6
|
+
import { isString as L } from "@sniptt/guards";
|
|
7
|
+
import { clsx as E } from "clsx";
|
|
8
|
+
import { jsx as l, jsxs as R } from "react/jsx-runtime";
|
|
9
|
+
import { useDirection as K } from "@base-ui/react/direction-provider";
|
|
10
|
+
import { Tabs as h } from "@base-ui/react/tabs";
|
|
11
|
+
var C = "_root_ikxnr_1", O = "_list_ikxnr_13", S = "_item_ikxnr_24", D = "_content_ikxnr_35", H = "_separator_ikxnr_55", b = {
|
|
12
|
+
root: C,
|
|
13
|
+
list: O,
|
|
14
|
+
item: S,
|
|
15
|
+
content: D,
|
|
16
|
+
separator: H
|
|
17
|
+
}, P = ({ children: a, href: r, render: i, title: o, current: t, className: s, ref: e, "aria-current": n = t ? "page" : void 0, ...m }) => x({
|
|
18
|
+
defaultTagName: p(r) ? "a" : "span",
|
|
19
|
+
render: i,
|
|
20
|
+
ref: e,
|
|
21
|
+
props: {
|
|
22
|
+
...m,
|
|
23
|
+
children: a,
|
|
24
|
+
href: r,
|
|
25
|
+
title: o ?? (L(a) ? a : void 0),
|
|
26
|
+
"aria-current": n,
|
|
27
|
+
"data-linked": p(r) || void 0,
|
|
28
|
+
className: E(b.content, s)
|
|
29
|
+
}
|
|
30
|
+
}), sa = ({ links: a, className: r, render: i, ref: o, "aria-label": t = T("Breadcrumb"), ...s }) => x({
|
|
31
|
+
defaultTagName: "nav",
|
|
32
|
+
render: i,
|
|
33
|
+
ref: o,
|
|
34
|
+
props: {
|
|
35
|
+
...s,
|
|
36
|
+
"aria-label": t,
|
|
37
|
+
className: E(b.root, r),
|
|
38
|
+
children: /* @__PURE__ */ l("ol", {
|
|
39
|
+
className: b.list,
|
|
40
|
+
children: a.map((e, n) => /* @__PURE__ */ R("li", {
|
|
41
|
+
className: b.item,
|
|
42
|
+
children: [n > 0 && /* @__PURE__ */ l("span", {
|
|
43
|
+
className: b.separator,
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
children: "/"
|
|
46
|
+
}), /* @__PURE__ */ l(P, {
|
|
47
|
+
...e,
|
|
48
|
+
current: n === a.length - 1
|
|
49
|
+
})]
|
|
50
|
+
}, n))
|
|
51
|
+
})
|
|
52
|
+
}
|
|
53
|
+
}), U = ({ className: a, ...r }) => /* @__PURE__ */ l(h.Indicator, {
|
|
54
|
+
...r,
|
|
55
|
+
className: _(g.indicator, a)
|
|
56
|
+
}), j = '[role="tab"]', q = '[role="tablist"]', z = T("[hidden], [inert]"), k = (a) => a.hasAttribute("data-disabled") || a.hasAttribute("disabled") || a.getAttribute("aria-disabled") === "true" || p(a.closest(z)), M = ({ event: a, direction: r, loopFocus: i }) => {
|
|
57
|
+
if (a.altKey || a.ctrlKey || a.metaKey || a.shiftKey) return;
|
|
58
|
+
const o = a.currentTarget, t = [];
|
|
59
|
+
o.querySelectorAll(j).forEach((d) => {
|
|
60
|
+
d.closest(q) === o && t.push(d);
|
|
61
|
+
});
|
|
62
|
+
const s = t.findIndex((d) => d === a.target);
|
|
63
|
+
if (s === -1) return;
|
|
64
|
+
const e = T(r === "rtl" ? ["ArrowLeft", "ArrowRight"] : ["ArrowRight", "ArrowLeft"]), [n, m] = o.getAttribute("data-orientation") === "vertical" ? T(["ArrowDown", "ArrowUp"]) : e;
|
|
65
|
+
if (!T([
|
|
66
|
+
n,
|
|
67
|
+
m,
|
|
68
|
+
"Home",
|
|
69
|
+
"End"
|
|
70
|
+
]).includes(a.key)) return;
|
|
71
|
+
const y = a.key === m;
|
|
72
|
+
let u = s + (y ? -1 : 1);
|
|
73
|
+
a.key === "Home" && (u = 0), a.key === "End" && (u = t.length - 1);
|
|
74
|
+
const w = u < 0 || u >= t.length, I = y ? t.length - 1 : 0, A = t[w && i ? I : u];
|
|
75
|
+
if (!p(A) || !k(A)) return;
|
|
76
|
+
a.preventBaseUIHandler(), a.preventDefault();
|
|
77
|
+
const f = t.filter((d) => !k(d));
|
|
78
|
+
let c;
|
|
79
|
+
if (a.key === "Home" && (c = f[0]), a.key === "End" && (c = f[f.length - 1]), a.key === n || a.key === m) {
|
|
80
|
+
const d = y ? [...f].reverse() : f;
|
|
81
|
+
c = d.find((N) => y ? t.indexOf(N) < s : t.indexOf(N) > s), c ??= i ? d[0] : void 0;
|
|
82
|
+
}
|
|
83
|
+
if (!p(c) || c === a.target) return;
|
|
84
|
+
a.stopPropagation();
|
|
85
|
+
const v = c;
|
|
86
|
+
queueMicrotask(() => v.focus());
|
|
87
|
+
}, V = ({ className: a, onKeyDown: r, loopFocus: i = !0, ...o }) => {
|
|
88
|
+
const t = K(), s = (e) => {
|
|
89
|
+
if (r?.(e), e.defaultPrevented) {
|
|
90
|
+
e.preventBaseUIHandler();
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
e.baseUIHandlerPrevented || M({
|
|
94
|
+
event: e,
|
|
95
|
+
direction: t,
|
|
96
|
+
loopFocus: i
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
return /* @__PURE__ */ l(h.List, {
|
|
100
|
+
...o,
|
|
101
|
+
loopFocus: i,
|
|
102
|
+
onKeyDown: s,
|
|
103
|
+
className: _(g.list, a)
|
|
104
|
+
});
|
|
105
|
+
}, $ = ({ className: a, ...r }) => /* @__PURE__ */ l(h.Panel, {
|
|
106
|
+
...r,
|
|
107
|
+
className: _(g.panel, a)
|
|
108
|
+
}), G = ({ className: a, ...r }) => /* @__PURE__ */ l(h.Root, {
|
|
109
|
+
...r,
|
|
110
|
+
className: _(g.root, a)
|
|
111
|
+
}), J = ({ className: a, children: r, startIcon: i, endIcon: o, badge: t, highlighted: s = !1, size: e = "sm", ...n }) => /* @__PURE__ */ l(h.Tab, {
|
|
112
|
+
...n,
|
|
113
|
+
className: _(g.tab, a),
|
|
114
|
+
"data-size": e,
|
|
115
|
+
"data-highlighted": s || void 0,
|
|
116
|
+
children: /* @__PURE__ */ l(B, {
|
|
117
|
+
startIcon: i,
|
|
118
|
+
endIcon: o,
|
|
119
|
+
badge: t,
|
|
120
|
+
children: r
|
|
121
|
+
})
|
|
122
|
+
}), ia = {
|
|
123
|
+
Root: G,
|
|
124
|
+
List: V,
|
|
125
|
+
Tab: J,
|
|
126
|
+
Indicator: U,
|
|
127
|
+
Panel: $
|
|
128
|
+
};
|
|
129
|
+
export {
|
|
130
|
+
sa as n,
|
|
131
|
+
ia as t
|
|
132
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const g=require("./theme-1XkFz8Qu.cjs"),_=require("./isDefined-DS2Q42p5.cjs"),Z=require("./doNotTranslate-CHE7WmRS.cjs"),ee=require("./mergeClassNames-D4lshrT6.cjs"),te=require("./TintedIconTile-DO1XJXCQ.cjs"),ne=require("./Shortcut-N8TELGPI.cjs"),z=require("./Button-DTm1WDzp.cjs"),re=require("./Tooltip-Bg9Uk01p.cjs"),w=require("./OverflowingTextWithTooltip-Z2daM0_x.cjs"),ae=require("./ListItem-DwBb-I1D.cjs"),ie=require("./Dropdown-Bl4OXCf9.cjs"),oe=require("./Avatar-C6WxBgjS.cjs"),se=require("./handleClickableElementKeyDown-CByqtBhO.cjs"),P=require("./TabsTabContent-Co27Y2TU.cjs");let j=require("@sniptt/guards"),f=require("clsx"),k=require("react"),e=require("react/jsx-runtime"),ue=require("@base-ui/react/button"),C=require("@tabler/icons-react");var le=()=>{const{pageId:n,goToPage:a,goBack:r,canGoBack:s}=ie.useDropdownContext();return{page:n,goToPage:t=>a({id:t}),goBack:r,canGoBack:s}},de=({color:n,selected:a,focused:r,indicator:s,startIcon:t,endIcon:o,description:l,descriptionPlacement:u,shortcut:d,shortcutJoinLabel:i,hasSubmenu:m,disabled:c=!1,type:v="button",children:h,...x})=>(0,e.jsx)(ae.ListItem,{color:n,selected:a,focused:r,indicator:s,startIcon:t,endIcon:o,description:l,descriptionPlacement:u,shortcut:d,shortcutJoinLabel:i,hasSubmenu:m,disabled:c,render:(0,e.jsx)(ue.Button,{...x,nativeButton:!0,type:v,disabled:c}),children:h}),ce=Z.doNotTranslate({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"}),me="_iconContainer_1ivx0_1",ve="_withBackground_1ivx0_9",O={iconContainer:me,withBackground:ve},M=({children:n,className:a,hasBackground:r=!0})=>(0,e.jsx)("div",{className:(0,f.clsx)(O.iconContainer,r&&O.withBackground,a),children:n}),E=({Icon:n,iconThemeColor:a,withContainer:r=!1,withContainerBackground:s=!0})=>{const t=g.useTheme();if(!n)return null;if(_.isDefined(a))return(0,e.jsx)(te.TintedIconTile,{icon:(0,e.jsx)(n,{size:t.icon.size.md,stroke:t.icon.stroke.sm}),color:a});const o=(0,e.jsx)(n,{size:t.icon.size.md,stroke:t.icon.stroke.sm});return r?(0,e.jsx)(M,{hasBackground:s,children:o}):o},_e="_iconSwapContainer_g9ywp_1",fe="_defaultIcon_g9ywp_8",Ie="_hoverIcon_g9ywp_13",L={iconSwapContainer:_e,defaultIcon:fe,hoverIcon:Ie},he=({leadingContent:n,withIconContainer:a=!1,withIconContainerBackground:r=!0,gripIconColor:s})=>{const t=g.useTheme();if(!_.isDefined(n))return null;const o=(0,e.jsxs)("div",{className:L.iconSwapContainer,children:[(0,e.jsx)("div",{className:(0,f.clsx)(L.defaultIcon,"grip-swap-default-icon"),children:n}),(0,e.jsx)("div",{className:(0,f.clsx)(L.hoverIcon,"grip-swap-hover-icon"),children:(0,e.jsx)(C.IconGripVertical,{size:t.icon.size.md,stroke:t.icon.stroke.sm,color:s})})]});return a?(0,e.jsx)(M,{hasBackground:r,children:o}):o},ge="_hoverableMenuItemBase_1jkew_54",be="_menuItemBase_1jkew_1",xe="_menuItemLabel_1jkew_136",je="_menuItemLabelLight_1jkew_145",ye="_noIconFiller_1jkew_155",pe="_menuItemLeftContent_1jkew_159",Ce="_menuItemRightContent_1jkew_172",Me="_draggableItem_1jkew_183",ke="_menuItemIconCheckContainer_1jkew_189",Se="_menuItemContextualText_1jkew_196",we="_rightMenuItemContextualText_1jkew_206",I={hoverableMenuItemBase:ge,menuItemBase:be,menuItemLabel:xe,menuItemLabelLight:je,noIconFiller:ye,menuItemLeftContent:pe,menuItemRightContent:Ce,draggableItem:Me,menuItemIconCheckContainer:ke,menuItemContextualText:Se,rightMenuItemContextualText:we},Le=(0,k.forwardRef)(({accent:n,isKeySelected:a,isHoverBackgroundDisabled:r,hovered:s,disabled:t,focused:o,className:l,children:u,...d},i)=>(0,e.jsx)("div",{ref:i,className:(0,f.clsx)(I.menuItemBase,l),"data-accent":n,"data-key-selected":a||void 0,"data-hover-background-disabled":r||void 0,"data-disabled":t||void 0,"data-focused":o||void 0,...d,children:u}));Le.displayName="StyledMenuItemBase";var b=(n,a)=>{const r=(0,k.forwardRef)(({className:s,children:t,...o},l)=>(0,e.jsx)("div",{ref:l,className:(0,f.clsx)(n,s),...o,children:t}));return r.displayName=a,r},qe=b(I.menuItemLabel,"StyledMenuItemLabel"),Ye=b(I.menuItemLabelLight,"StyledMenuItemLabelLight"),Qe=b(I.noIconFiller,"StyledNoIconFiller"),F=b(I.menuItemLeftContent,"StyledMenuItemLeftContent"),T=b(I.menuItemRightContent,"StyledMenuItemRightContent"),R=b(I.draggableItem,"StyledDraggableItem"),B=(0,k.forwardRef)(({accent:n,isKeySelected:a,isHoverBackgroundDisabled:r,hovered:s,disabled:t,focused:o,isIconDisplayedOnHoverOnly:l,cursor:u,className:d,children:i,...m},c)=>(0,e.jsx)("div",{ref:c,className:(0,f.clsx)(I.hoverableMenuItemBase,d),"data-accent":n,"data-key-selected":a||void 0,"data-hover-background-disabled":r||void 0,"data-disabled":t||void 0,"data-focused":o||void 0,"data-icon-displayed-on-hover-only":l||void 0,"data-cursor":u,...m,children:i}));B.displayName="StyledHoverableMenuItemBase";var Te=b(I.menuItemContextualText,"StyledMenuItemContextualText"),Be=b(I.rightMenuItemContextualText,"StyledRightMenuItemContextualText"),Ne="_mainText_d0zu3_1",De="_menuItemLabelRight_d0zu3_9",G={mainText:Ne,menuItemLabelRight:De},ze=({LeftComponent:n,LeftIcon:a,iconThemeColor:r})=>{if(_.isDefined(n))return n;if(_.isDefined(a))return(0,e.jsx)(E,{Icon:a,iconThemeColor:r})},N=({className:n,LeftComponent:a,LeftIcon:r,iconThemeColor:s,withIconContainer:t=!1,withIconContainerBackground:o=!0,text:l,contextualText:u,contextualTextPosition:d="left",gripMode:i="never",disabled:m=!1})=>{const c=g.useTheme(),v=t?g.themeCssVariables.font.color.tertiary:m?g.themeCssVariables.font.color.extraLight:g.themeCssVariables.font.color.light,h=ze({LeftComponent:a,LeftIcon:r,iconThemeColor:s}),x=t&&!_.isDefined(s);return(0,e.jsxs)(F,{className:n,children:[i==="always"&&(t?(0,e.jsx)(M,{hasBackground:o,children:(0,e.jsx)(R,{children:(0,e.jsx)(C.IconGripVertical,{size:c.icon.size.md,stroke:c.icon.stroke.sm,color:v})})}):(0,e.jsx)(R,{children:(0,e.jsx)(C.IconGripVertical,{size:c.icon.size.md,stroke:c.icon.stroke.sm,color:v})})),i==="always"&&(x&&_.isDefined(h)?(0,e.jsx)(M,{hasBackground:o,children:h}):h),i==="onHover"&&(0,e.jsx)(he,{leadingContent:h,withIconContainer:x,withIconContainerBackground:o,gripIconColor:v}),i==="never"&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(E,{Icon:r,iconThemeColor:s,withContainer:t,withContainerBackground:o}),a]}),(0,e.jsxs)(qe,{children:[(0,j.isString)(l)?(0,e.jsx)("div",{className:G.mainText,children:(0,e.jsx)(w.OverflowingTextWithTooltip,{text:l})}):l,d==="left"&&(0,e.jsx)(e.Fragment,{children:(0,j.isString)(u)?(0,j.isNonEmptyString)(u)&&(0,e.jsx)(Te,{children:(0,e.jsx)(w.OverflowingTextWithTooltip,{text:`· ${u}`,tooltipContent:u})}):u})]}),d==="right"&&(0,e.jsx)("div",{className:G.menuItemLabelRight,children:(0,e.jsx)(Be,{children:(0,j.isString)(u)?(0,e.jsx)(w.OverflowingTextWithTooltip,{text:u}):u})})]})},Pe="_subMenuIcon_j232v_1",Oe="_subMenuIconOpened_j232v_9",A={subMenuIcon:Pe,subMenuIconOpened:Oe},V=({accent:n="default",className:a,withIconContainer:r=!1,withIconContainerBackground:s=!0,iconButtons:t,isIconDisplayedOnHoverOnly:o=!0,LeftIcon:l,iconThemeColor:u,LeftComponent:d,RightIcon:i,RightComponent:m,onClick:c,onMouseEnter:v,onMouseLeave:h,testId:x,text:W,contextualTextPosition:H="left",contextualText:K,hasSubMenu:J=!1,disabled:y=!1,focused:U=!1,selected:$=!1,shortcut:D,shortcutJoinLabel:Y,isSubMenuOpened:Q=!1})=>{const p=g.useTheme(),X=S=>{c&&(S.preventDefault(),S.stopPropagation(),c?.(S))};return(0,e.jsxs)(B,{"data-testid":x??void 0,onClick:y?void 0:X,disabled:y,className:a,accent:n,isIconDisplayedOnHoverOnly:o,onMouseEnter:v,onMouseLeave:h,focused:U||$,children:[(0,e.jsx)(N,{LeftIcon:l??void 0,iconThemeColor:u,LeftComponent:d,withIconContainer:r,withIconContainerBackground:s,text:W,contextualText:K,contextualTextPosition:H,disabled:y}),(0,e.jsxs)(T,{children:[t&&(0,e.jsx)(T,{className:"hoverable-buttons",children:t}),_.isDefined(D)&&(0,e.jsx)(ne.Shortcut,{shortcut:D,sequenceJoinLabel:Y}),i&&(0,e.jsx)(i,{size:p.icon.size.md,stroke:p.icon.stroke.sm}),m,J&&(0,e.jsx)("div",{className:(0,f.clsx)(A.subMenuIcon,Q&&A.subMenuIconOpened),style:{visibility:y?"hidden":"visible"},children:(0,e.jsx)(C.IconChevronRight,{size:p.icon.size.sm,color:p.font.color.light})})]})]})},Re=({accent:n="default",className:a,iconButtons:r,isIconDisplayedOnHoverOnly:s=!0,isTooltipOpen:t,onClick:o,onMouseEnter:l,onMouseLeave:u,testId:d,avatar:i,hasSubMenu:m=!1,text:c,contextualText:v})=>(0,e.jsx)(V,{accent:n,className:a,iconButtons:r,isIconDisplayedOnHoverOnly:s,isTooltipOpen:t,LeftComponent:_.isDefined(i)?(0,e.jsx)(oe.Avatar,{name:i.name,src:i.src,colorSeed:i.colorSeed,size:i.size,shape:i.shape}):void 0,onClick:o,onMouseEnter:l,onMouseLeave:u,testId:d,text:c,contextualText:v,hasSubMenu:m}),Ge=({LeftIcon:n,LeftComponent:a,withIconContainer:r=!1,accent:s="default",iconButtons:t,onClick:o,text:l,contextualText:u,isDragDisabled:d=!1,className:i,isIconDisplayedOnHoverOnly:m=!0,gripMode:c="never"})=>(0,e.jsxs)(B,{onClick:o,accent:s,className:i,isIconDisplayedOnHoverOnly:m,cursor:c!=="never"?d?"default":"drag":"default",children:[(0,e.jsx)(N,{LeftIcon:n,LeftComponent:a,text:l,contextualText:u,withIconContainer:r,disabled:d,gripMode:c}),t&&(0,e.jsx)(T,{className:"hoverable-buttons",children:t})]}),Ae="_suggestionMenuItem_1qyjt_1",Ee={suggestionMenuItem:Ae},Fe=({LeftIcon:n,withIconContainer:a=!1,text:r,contextualText:s=void 0,contextualTextPosition:t="left",className:o,selected:l,onClick:u})=>{const d=i=>{u&&(i.preventDefault(),i.stopPropagation(),u?.(i))};return(0,e.jsx)("li",{className:(0,f.clsx)(Ee.suggestionMenuItem,o),"data-selected":l||void 0,role:_.isDefined(u)?"button":void 0,tabIndex:_.isDefined(u)?0:void 0,onClick:d,onKeyDown:se.handleClickableElementKeyDown,children:(0,e.jsx)(F,{children:(0,e.jsx)(N,{LeftIcon:n??void 0,text:r,contextualText:s,contextualTextPosition:t,withIconContainer:a})})})},Ve="_menuPicker_o8ra4_1",We="_iconContainer_o8ra4_41",He="_label_o8ra4_50",q={menuPicker:Ve,iconContainer:We,label:He},Ke=({id:n,icon:a,label:r,selected:s=!1,disabled:t=!1,showLabel:o=!0,onClick:l,className:u,testId:d,tooltipContent:i,tooltipDelay:m=0,tooltipOffset:c=5})=>{const v=g.useTheme();return(0,e.jsx)(re.Tooltip,{content:i,disabled:!(0,j.isNonEmptyString)(i),sideOffset:c,side:"bottom",positionMethod:"fixed",delay:m,children:(0,e.jsxs)("button",{id:n,disabled:t,onClick:l,className:(0,f.clsx)(q.menuPicker,u),"data-testid":d,"data-selected":s?"":void 0,"aria-pressed":s,"aria-disabled":t,"aria-label":r,children:[(0,e.jsx)("div",{className:q.iconContainer,children:(0,e.jsx)(a,{size:v.icon.size.md,stroke:v.icon.stroke.sm})}),_.isDefined(r)&&o&&(0,e.jsx)("div",{className:q.label,"data-selected":s?"":void 0,"data-disabled":t?"":void 0,children:r})]})})},Je="_button_quwcq_1",Ue={button:Je},$e=({active:n=!1,className:a,children:r,startIcon:s,endIcon:t,badge:o,size:l,...u})=>{const d=(0,k.useContext)(z.ButtonGroupContext),i=l??d?.size??"sm";return(0,e.jsx)(z.Button,{...u,variant:"ghost",size:i,"data-active":n||void 0,className:ee.mergeClassNames((0,f.clsx)(P.Tab_module_default.tab,Ue.button),a),children:(0,e.jsx)(P.TabsTabContent,{startIcon:s,endIcon:t,badge:o,children:r})})};Object.defineProperty(exports,"DEFAULT_COLOR_LABELS",{enumerable:!0,get:function(){return ce}});Object.defineProperty(exports,"ListItemButton",{enumerable:!0,get:function(){return de}});Object.defineProperty(exports,"MenuItem",{enumerable:!0,get:function(){return V}});Object.defineProperty(exports,"MenuItemAvatar",{enumerable:!0,get:function(){return Re}});Object.defineProperty(exports,"MenuItemDraggable",{enumerable:!0,get:function(){return Ge}});Object.defineProperty(exports,"MenuItemSuggestion",{enumerable:!0,get:function(){return Fe}});Object.defineProperty(exports,"MenuPicker",{enumerable:!0,get:function(){return Ke}});Object.defineProperty(exports,"TabButton",{enumerable:!0,get:function(){return $e}});Object.defineProperty(exports,"useDropdownPage",{enumerable:!0,get:function(){return le}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const g=require("./isDefined-DS2Q42p5.cjs"),f=require("./doNotTranslate-CHE7WmRS.cjs"),N=require("./mergeClassNames-D4lshrT6.cjs"),c=require("./TabsTabContent-Co27Y2TU.cjs");let k=require("@base-ui/react/use-render"),w=require("@sniptt/guards"),q=require("clsx"),l=require("react/jsx-runtime"),C=require("@base-ui/react/direction-provider"),x=require("@base-ui/react/tabs");var I="_root_ikxnr_1",B="_list_ikxnr_13",D="_item_ikxnr_24",L="_content_ikxnr_35",R="_separator_ikxnr_55",T={root:I,list:B,item:D,content:L,separator:R},K=({children:e,href:r,render:i,title:n,current:a,className:s,ref:t,"aria-current":o=a?"page":void 0,...b})=>(0,k.useRender)({defaultTagName:g.isDefined(r)?"a":"span",render:i,ref:t,props:{...b,children:e,href:r,title:n??((0,w.isString)(e)?e:void 0),"aria-current":o,"data-linked":g.isDefined(r)||void 0,className:(0,q.clsx)(T.content,s)}}),O=({links:e,className:r,render:i,ref:n,"aria-label":a=f.doNotTranslate("Breadcrumb"),...s})=>(0,k.useRender)({defaultTagName:"nav",render:i,ref:n,props:{...s,"aria-label":a,className:(0,q.clsx)(T.root,r),children:(0,l.jsx)("ol",{className:T.list,children:e.map((t,o)=>(0,l.jsxs)("li",{className:T.item,children:[o>0&&(0,l.jsx)("span",{className:T.separator,"aria-hidden":"true",children:"/"}),(0,l.jsx)(K,{...t,current:o===e.length-1})]},o))})}}),P=({className:e,...r})=>(0,l.jsx)(x.Tabs.Indicator,{...r,className:N.mergeClassNames(c.Tab_module_default.indicator,e)}),S='[role="tab"]',H='[role="tablist"]',U=f.doNotTranslate("[hidden], [inert]"),A=e=>e.hasAttribute("data-disabled")||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"||g.isDefined(e.closest(U)),z=({event:e,direction:r,loopFocus:i})=>{if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const n=e.currentTarget,a=[];n.querySelectorAll(S).forEach(d=>{d.closest(H)===n&&a.push(d)});const s=a.findIndex(d=>d===e.target);if(s===-1)return;const t=f.doNotTranslate(r==="rtl"?["ArrowLeft","ArrowRight"]:["ArrowRight","ArrowLeft"]),[o,b]=n.getAttribute("data-orientation")==="vertical"?f.doNotTranslate(["ArrowDown","ArrowUp"]):t;if(!f.doNotTranslate([o,b,"Home","End"]).includes(e.key))return;const p=e.key===b;let _=s+(p?-1:1);e.key==="Home"&&(_=0),e.key==="End"&&(_=a.length-1);const E=_<0||_>=a.length,j=p?a.length-1:0,h=a[E&&i?j:_];if(!g.isDefined(h)||!A(h))return;e.preventBaseUIHandler(),e.preventDefault();const m=a.filter(d=>!A(d));let u;if(e.key==="Home"&&(u=m[0]),e.key==="End"&&(u=m[m.length-1]),e.key===o||e.key===b){const d=p?[...m].reverse():m;u=d.find(y=>p?a.indexOf(y)<s:a.indexOf(y)>s),u??=i?d[0]:void 0}if(!g.isDefined(u)||u===e.target)return;e.stopPropagation();const v=u;queueMicrotask(()=>v.focus())},M=({className:e,onKeyDown:r,loopFocus:i=!0,...n})=>{const a=(0,C.useDirection)(),s=t=>{if(r?.(t),t.defaultPrevented){t.preventBaseUIHandler();return}t.baseUIHandlerPrevented||z({event:t,direction:a,loopFocus:i})};return(0,l.jsx)(x.Tabs.List,{...n,loopFocus:i,onKeyDown:s,className:N.mergeClassNames(c.Tab_module_default.list,e)})},V=({className:e,...r})=>(0,l.jsx)(x.Tabs.Panel,{...r,className:N.mergeClassNames(c.Tab_module_default.panel,e)}),G=({className:e,...r})=>(0,l.jsx)(x.Tabs.Root,{...r,className:N.mergeClassNames(c.Tab_module_default.root,e)}),J=({className:e,children:r,startIcon:i,endIcon:n,badge:a,highlighted:s=!1,size:t="sm",...o})=>(0,l.jsx)(x.Tabs.Tab,{...o,className:N.mergeClassNames(c.Tab_module_default.tab,e),"data-size":t,"data-highlighted":s||void 0,children:(0,l.jsx)(c.TabsTabContent,{startIcon:i,endIcon:n,badge:a,children:r})}),Q={Root:G,List:M,Tab:J,Indicator:P,Panel:V};Object.defineProperty(exports,"Breadcrumb",{enumerable:!0,get:function(){return O}});Object.defineProperty(exports,"Tabs",{enumerable:!0,get:function(){return Q}});
|