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
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CurrencyPickerRootProps } from '../types/CurrencyPickerRootProps';
|
|
3
|
+
import { CurrencyPickerState } from '../types/CurrencyPickerState';
|
|
4
|
+
import { PreparedCurrencyPickerOption } from './PreparedCurrencyPickerOption';
|
|
5
|
+
export declare const CurrencyPickerContext: import('react').Context<{
|
|
6
|
+
state: CurrencyPickerState;
|
|
7
|
+
groupId: string;
|
|
8
|
+
options: PreparedCurrencyPickerOption[];
|
|
9
|
+
selectionProps: Pick<CurrencyPickerRootProps, "value" | "defaultValue" | "onValueChange" | "closeOnSelect">;
|
|
10
|
+
renderValue?: (state: CurrencyPickerState) => ReactNode;
|
|
11
|
+
} | undefined>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CurrencyPickerOptionsProps } from '../types/CurrencyPickerOptionsProps';
|
|
2
|
-
export declare const CurrencyPickerOptions: ({
|
|
2
|
+
export declare const CurrencyPickerOptions: ({ disabled, searchable, searchLabel, listLabel, emptyLabel, searchProps, className, render, ref, ...props }: CurrencyPickerOptionsProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { CurrencyPickerRootProps } from '../types/CurrencyPickerRootProps';
|
|
2
|
+
export declare const CurrencyPickerRoot: ({ currencies, value: controlledValue, defaultValue, onValueChange, closeOnSelect, disabled, selectedFirst, getOptionLabel, getSearchText, renderValue, children, }: CurrencyPickerRootProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { CurrencyPickerProps } from '../types/CurrencyPickerProps';
|
|
2
|
+
export declare const CurrencyPickerShorthand: ({ currencies, value, defaultValue, onValueChange, closeOnSelect, disabled, selectedFirst, getOptionLabel, getSearchText, renderValue, open, defaultOpen, onOpenChange, onEscapeKeyDown, onInteractOutside, triggerProps, contentProps, optionsProps, ...props }: CurrencyPickerProps) => import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CurrencyPickerTriggerProps } from '../types/CurrencyPickerTriggerProps';
|
|
2
|
-
export declare const CurrencyPickerTrigger: ({
|
|
2
|
+
export declare const CurrencyPickerTrigger: ({ children, placeholder, disabled, className, ...props }: CurrencyPickerTriggerProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const useCurrencyPickerContextOrThrow: () => {
|
|
2
|
+
state: import('../..').CurrencyPickerState;
|
|
3
|
+
groupId: string;
|
|
4
|
+
options: import('./PreparedCurrencyPickerOption').PreparedCurrencyPickerOption[];
|
|
5
|
+
selectionProps: Pick<import('../..').CurrencyPickerRootProps, "value" | "defaultValue" | "onValueChange" | "closeOnSelect">;
|
|
6
|
+
renderValue?: (state: import('../..').CurrencyPickerState) => import('react').ReactNode;
|
|
7
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
-
import {
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { DropdownSearchProps } from '../../../navigation/Dropdown/types/DropdownSearchProps';
|
|
3
4
|
export type CurrencyPickerOptionsProps = Omit<useRender.ComponentProps<'div'>, 'children'> & {
|
|
4
|
-
currencies: readonly CurrencyPickerOption[];
|
|
5
|
-
value?: string;
|
|
6
|
-
onValueChange: (code: string) => void;
|
|
7
5
|
disabled?: boolean;
|
|
6
|
+
searchable?: boolean;
|
|
8
7
|
searchLabel?: string;
|
|
9
|
-
|
|
8
|
+
listLabel?: string;
|
|
9
|
+
emptyLabel?: ReactNode;
|
|
10
|
+
searchProps?: DropdownSearchProps;
|
|
10
11
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DropdownContentProps } from '../../../navigation/Dropdown/types/DropdownContentProps';
|
|
2
|
+
import { DropdownRootProps } from '../../../navigation/Dropdown/types/DropdownRootProps';
|
|
3
|
+
import { CurrencyPickerOptionsProps } from './CurrencyPickerOptionsProps';
|
|
4
|
+
import { CurrencyPickerRootProps } from './CurrencyPickerRootProps';
|
|
5
|
+
import { CurrencyPickerTriggerProps } from './CurrencyPickerTriggerProps';
|
|
6
|
+
export type CurrencyPickerProps = Omit<CurrencyPickerRootProps, 'children'> & CurrencyPickerTriggerProps & Pick<DropdownRootProps, 'open' | 'defaultOpen' | 'onOpenChange' | 'onEscapeKeyDown' | 'onInteractOutside'> & {
|
|
7
|
+
triggerProps?: CurrencyPickerTriggerProps;
|
|
8
|
+
contentProps?: Omit<DropdownContentProps, 'children'>;
|
|
9
|
+
optionsProps?: CurrencyPickerOptionsProps;
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CurrencyPickerChangeEventDetails } from './CurrencyPickerChangeEventDetails';
|
|
3
|
+
import { CurrencyPickerOption } from './CurrencyPickerOption';
|
|
4
|
+
import { CurrencyPickerState } from './CurrencyPickerState';
|
|
5
|
+
export type CurrencyPickerRootProps = {
|
|
6
|
+
currencies: readonly CurrencyPickerOption[];
|
|
7
|
+
value?: string | null;
|
|
8
|
+
defaultValue?: string | null;
|
|
9
|
+
onValueChange?: (value: string | null, eventDetails: CurrencyPickerChangeEventDetails) => void;
|
|
10
|
+
closeOnSelect?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
selectedFirst?: boolean;
|
|
13
|
+
getOptionLabel?: (currency: CurrencyPickerOption) => ReactNode;
|
|
14
|
+
getSearchText?: (currency: CurrencyPickerOption) => string;
|
|
15
|
+
renderValue?: (state: CurrencyPickerState) => ReactNode;
|
|
16
|
+
children: ReactNode | ((state: CurrencyPickerState) => ReactNode);
|
|
17
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { DropdownTriggerProps } from '../../../navigation/Dropdown/types/DropdownTriggerProps';
|
|
2
|
-
export type CurrencyPickerTriggerProps = Omit<DropdownTriggerProps, '
|
|
3
|
-
|
|
3
|
+
export type CurrencyPickerTriggerProps = Omit<DropdownTriggerProps, 'value' | 'openOnHover' | 'delay' | 'closeDelay'> & {
|
|
4
|
+
placeholder?: ReactNode;
|
|
4
5
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { PhoneCountryPickerProps } from './types/PhoneCountryPickerProps';
|
|
2
|
+
export declare const PhoneCountryPicker: (({ countries, value, defaultValue, onValueChange, disabled, closeOnSelect, dropdownProps, contentProps, optionsProps, ...triggerProps }: PhoneCountryPickerProps) => import("react").JSX.Element) & {
|
|
3
|
+
Root: ({ children, countries, value: controlledValue, defaultValue, onValueChange, disabled, closeOnSelect, }: import('..').PhoneCountryPickerRootProps) => import("react").JSX.Element;
|
|
4
|
+
Trigger: ({ children, disabled: triggerDisabled, className, "aria-describedby": ariaDescribedBy, ...props }: import('..').PhoneCountryPickerTriggerProps) => import("react").JSX.Element;
|
|
5
|
+
Options: ({ searchLabel, listLabel, emptyLabel, disabled: optionsDisabled, className, render, ref, ...props }: import('..').PhoneCountryPickerOptionsProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
4
6
|
};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
import { DropdownSelectionGroupChangeEventDetails } from '../../../navigation/Dropdown/types/DropdownSelectionGroupChangeEventDetails';
|
|
1
2
|
import { PhoneCountryOption } from '../types/PhoneCountryOption';
|
|
2
3
|
type PhoneCountryPickerExampleProps = {
|
|
3
|
-
initialValue?: string;
|
|
4
|
+
initialValue?: string | null;
|
|
5
|
+
composition?: 'shorthand' | 'compound';
|
|
6
|
+
controlled?: boolean;
|
|
4
7
|
disabled?: boolean;
|
|
5
8
|
label?: string;
|
|
6
9
|
countries?: readonly PhoneCountryOption[];
|
|
7
10
|
searchLabel?: string;
|
|
11
|
+
listLabel?: string;
|
|
8
12
|
emptyLabel?: string;
|
|
9
|
-
onValueChange?: (value: string) => void;
|
|
13
|
+
onValueChange?: (value: string | null, eventDetails: DropdownSelectionGroupChangeEventDetails) => void;
|
|
10
14
|
};
|
|
11
|
-
export declare const PhoneCountryPickerExample: ({ initialValue, disabled, label, countries, searchLabel, emptyLabel, onValueChange, }: PhoneCountryPickerExampleProps) => import("react").JSX.Element;
|
|
15
|
+
export declare const PhoneCountryPickerExample: ({ initialValue, composition, controlled, disabled, label, countries, searchLabel, listLabel, emptyLabel, onValueChange, }: PhoneCountryPickerExampleProps) => import("react").JSX.Element;
|
|
12
16
|
export {};
|
package/dist/components/input/PhoneCountryPicker/__stories__/testDisabledPhoneCountryPicker.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PhoneCountryPickerRootProps } from '../types/PhoneCountryPickerRootProps';
|
|
2
|
+
export declare const testDisabledPhoneCountryPicker: ({ canvasElement, args, }: {
|
|
3
|
+
canvasElement: HTMLElement;
|
|
4
|
+
args: Pick<PhoneCountryPickerRootProps, "onValueChange">;
|
|
5
|
+
}) => Promise<void>;
|
package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountryNullSelection.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PhoneCountryPickerRootProps } from '../types/PhoneCountryPickerRootProps';
|
|
2
|
+
export declare const testPhoneCountryNullSelection: ({ canvasElement, args, }: {
|
|
3
|
+
canvasElement: HTMLElement;
|
|
4
|
+
args: Pick<PhoneCountryPickerRootProps, "onValueChange">;
|
|
5
|
+
}) => Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PhoneCountryPickerRootProps } from '../types/PhoneCountryPickerRootProps';
|
|
2
|
+
export declare const testPhoneCountrySelection: ({ canvasElement, args, }: {
|
|
3
|
+
canvasElement: HTMLElement;
|
|
4
|
+
args: Pick<PhoneCountryPickerRootProps, "onValueChange">;
|
|
5
|
+
}) => Promise<void>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PhoneCountryPickerRootProps } from '../types/PhoneCountryPickerRootProps';
|
|
2
|
+
import { PreparedPhoneCountryOption } from './PreparedPhoneCountryOption';
|
|
3
|
+
export declare const PhoneCountryPickerContext: import('react').Context<{
|
|
4
|
+
countries: readonly PreparedPhoneCountryOption[];
|
|
5
|
+
value: string | null;
|
|
6
|
+
onValueChange: NonNullable<PhoneCountryPickerRootProps["onValueChange"]>;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
closeOnSelect: boolean;
|
|
9
|
+
} | null>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PhoneCountryPickerOptionsProps } from '../types/PhoneCountryPickerOptionsProps';
|
|
2
|
-
export declare const PhoneCountryPickerOptions: ({
|
|
2
|
+
export declare const PhoneCountryPickerOptions: ({ searchLabel, listLabel, emptyLabel, disabled: optionsDisabled, className, render, ref, ...props }: PhoneCountryPickerOptionsProps) => import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { PhoneCountryPickerRootProps } from '../types/PhoneCountryPickerRootProps';
|
|
2
|
+
export declare const PhoneCountryPickerRoot: ({ children, countries, value: controlledValue, defaultValue, onValueChange, disabled, closeOnSelect, }: PhoneCountryPickerRootProps) => import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PhoneCountryPickerTriggerProps } from '../types/PhoneCountryPickerTriggerProps';
|
|
2
|
-
export declare const PhoneCountryPickerTrigger: ({
|
|
2
|
+
export declare const PhoneCountryPickerTrigger: ({ children, disabled: triggerDisabled, className, "aria-describedby": ariaDescribedBy, ...props }: PhoneCountryPickerTriggerProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PreparedPhoneCountryOption } from './PreparedPhoneCountryOption';
|
|
2
|
+
export declare const matchesPhoneCountrySearch: ({ country, normalizedSearch, callingCodeSearch, }: {
|
|
3
|
+
country: Pick<PreparedPhoneCountryOption, "searchLabel" | "searchValue" | "callingCode">;
|
|
4
|
+
normalizedSearch: string;
|
|
5
|
+
callingCodeSearch: string;
|
|
6
|
+
}) => boolean;
|
package/dist/components/input/PhoneCountryPicker/internal/usePhoneCountryPickerContextOrThrow.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const usePhoneCountryPickerContextOrThrow: () => {
|
|
2
|
+
countries: readonly import('./PreparedPhoneCountryOption').PreparedPhoneCountryOption[];
|
|
3
|
+
value: string | null;
|
|
4
|
+
onValueChange: NonNullable<import('../..').PhoneCountryPickerRootProps["onValueChange"]>;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
closeOnSelect: boolean;
|
|
7
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type PhoneCountryPickerOptionsProps = {
|
|
3
|
-
|
|
4
|
-
value?: string;
|
|
5
|
-
onValueChange: (value: string) => void;
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
export type PhoneCountryPickerOptionsProps = Omit<useRender.ComponentProps<'div'>, 'children'> & {
|
|
3
|
+
disabled?: boolean;
|
|
6
4
|
searchLabel?: string;
|
|
5
|
+
listLabel?: string;
|
|
7
6
|
emptyLabel?: string;
|
|
8
7
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DropdownContentProps } from '../../../navigation/Dropdown/types/DropdownContentProps';
|
|
2
|
+
import { DropdownRootProps } from '../../../navigation/Dropdown/types/DropdownRootProps';
|
|
3
|
+
import { PhoneCountryPickerOptionsProps } from './PhoneCountryPickerOptionsProps';
|
|
4
|
+
import { PhoneCountryPickerRootProps } from './PhoneCountryPickerRootProps';
|
|
5
|
+
import { PhoneCountryPickerTriggerProps } from './PhoneCountryPickerTriggerProps';
|
|
6
|
+
export type PhoneCountryPickerProps = Omit<PhoneCountryPickerRootProps, 'children'> & Omit<PhoneCountryPickerTriggerProps, 'value' | 'defaultValue'> & {
|
|
7
|
+
dropdownProps?: Omit<DropdownRootProps, 'children' | 'type' | 'multiple'>;
|
|
8
|
+
contentProps?: Omit<DropdownContentProps, 'children'>;
|
|
9
|
+
optionsProps?: PhoneCountryPickerOptionsProps;
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DropdownSelectionGroupChangeEventDetails } from '../../../navigation/Dropdown/types/DropdownSelectionGroupChangeEventDetails';
|
|
3
|
+
import { PhoneCountryOption } from './PhoneCountryOption';
|
|
4
|
+
export type PhoneCountryPickerRootProps = {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
countries: readonly PhoneCountryOption[];
|
|
7
|
+
value?: string | null;
|
|
8
|
+
defaultValue?: string | null;
|
|
9
|
+
onValueChange?: (value: string | null, eventDetails: DropdownSelectionGroupChangeEventDetails) => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
closeOnSelect?: boolean;
|
|
12
|
+
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { DropdownTriggerProps } from '../../../navigation/Dropdown/types/DropdownTriggerProps';
|
|
2
|
-
|
|
3
|
-
export type PhoneCountryPickerTriggerProps = Omit<DropdownTriggerProps, 'children' | 'render' | 'nativeButton' | 'aria-label'> & {
|
|
4
|
-
country?: PhoneCountryOption;
|
|
2
|
+
export type PhoneCountryPickerTriggerProps = Omit<DropdownTriggerProps, 'aria-label'> & {
|
|
5
3
|
'aria-label': string;
|
|
6
4
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SearchInputProps } from './types/SearchInputProps';
|
|
2
|
-
export declare const SearchInput: ({ placeholder,
|
|
2
|
+
export declare const SearchInput: ({ placeholder, actions, size, id, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, ...props }: SearchInputProps) => import("react").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { InputProps } from '../../../../primitives/input/Input/types/InputProps';
|
|
3
3
|
export type SearchInputProps = InputProps & {
|
|
4
|
-
|
|
5
|
-
filterButtonAriaLabel?: string;
|
|
4
|
+
actions?: ReactNode;
|
|
6
5
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SegmentedControlProps } from './types/SegmentedControlProps';
|
|
2
|
-
export declare const SegmentedControl: <TValue extends string>({ className, itemWidth, options, ...props }: SegmentedControlProps<TValue>) => import("react").JSX.Element;
|
|
2
|
+
export declare const SegmentedControl: <TValue extends string>({ className, itemWidth, options, size, ...props }: SegmentedControlProps<TValue>) => import("react").JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { RadioGroupProps } from '../../../../primitives/input/RadioGroup/types/RadioGroupProps';
|
|
2
2
|
import { SegmentedControlOption } from './SegmentedControlOption';
|
|
3
|
+
import { SegmentedControlSize } from './SegmentedControlSize';
|
|
3
4
|
export type SegmentedControlProps<TValue extends string = string> = Omit<RadioGroupProps<TValue>, 'aria-label' | 'aria-labelledby' | 'children' | 'role'> & {
|
|
4
5
|
itemWidth?: 'content' | 'equal';
|
|
5
6
|
options: readonly SegmentedControlOption<TValue>[];
|
|
7
|
+
size?: SegmentedControlSize;
|
|
6
8
|
} & ({
|
|
7
9
|
'aria-label': string;
|
|
8
10
|
} | {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SegmentedControlSize = 'sm' | 'md';
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
export { CountrySelect } from './CountrySelect/CountrySelect';
|
|
2
2
|
export type { CountryChoice } from './CountrySelect/types/CountryChoice';
|
|
3
|
+
export type { CountrySelectOptionsProps } from './CountrySelect/types/CountrySelectOptionsProps';
|
|
4
|
+
export type { CountrySelectOptionsState } from './CountrySelect/types/CountrySelectOptionsState';
|
|
3
5
|
export type { CountrySelectProps } from './CountrySelect/types/CountrySelectProps';
|
|
6
|
+
export type { CountrySelectRootProps } from './CountrySelect/types/CountrySelectRootProps';
|
|
7
|
+
export type { CountrySelectTriggerProps } from './CountrySelect/types/CountrySelectTriggerProps';
|
|
4
8
|
export { CurrencyPicker } from './CurrencyPicker/CurrencyPicker';
|
|
9
|
+
export type { CurrencyPickerChangeEventDetails } from './CurrencyPicker/types/CurrencyPickerChangeEventDetails';
|
|
5
10
|
export type { CurrencyPickerOption } from './CurrencyPicker/types/CurrencyPickerOption';
|
|
6
11
|
export type { CurrencyPickerOptionsProps } from './CurrencyPicker/types/CurrencyPickerOptionsProps';
|
|
12
|
+
export type { CurrencyPickerProps } from './CurrencyPicker/types/CurrencyPickerProps';
|
|
13
|
+
export type { CurrencyPickerRootProps } from './CurrencyPicker/types/CurrencyPickerRootProps';
|
|
14
|
+
export type { CurrencyPickerState } from './CurrencyPicker/types/CurrencyPickerState';
|
|
7
15
|
export type { CurrencyPickerTriggerProps } from './CurrencyPicker/types/CurrencyPickerTriggerProps';
|
|
8
16
|
export { IconButton } from './IconButton/IconButton';
|
|
9
17
|
export type { IconButtonProps } from './IconButton/types/IconButtonProps';
|
|
@@ -20,9 +28,12 @@ export type { NumberStepperProps } from './NumberStepper/types/NumberStepperProp
|
|
|
20
28
|
export { PhoneCountryPicker } from './PhoneCountryPicker/PhoneCountryPicker';
|
|
21
29
|
export type { PhoneCountryOption } from './PhoneCountryPicker/types/PhoneCountryOption';
|
|
22
30
|
export type { PhoneCountryPickerOptionsProps } from './PhoneCountryPicker/types/PhoneCountryPickerOptionsProps';
|
|
31
|
+
export type { PhoneCountryPickerProps } from './PhoneCountryPicker/types/PhoneCountryPickerProps';
|
|
32
|
+
export type { PhoneCountryPickerRootProps } from './PhoneCountryPicker/types/PhoneCountryPickerRootProps';
|
|
23
33
|
export type { PhoneCountryPickerTriggerProps } from './PhoneCountryPicker/types/PhoneCountryPickerTriggerProps';
|
|
24
34
|
export { SearchInput } from './SearchInput/SearchInput';
|
|
25
35
|
export type { SearchInputProps } from './SearchInput/types/SearchInputProps';
|
|
26
36
|
export { SegmentedControl } from './SegmentedControl/SegmentedControl';
|
|
27
37
|
export type { SegmentedControlOption } from './SegmentedControl/types/SegmentedControlOption';
|
|
28
38
|
export type { SegmentedControlProps } from './SegmentedControl/types/SegmentedControlProps';
|
|
39
|
+
export type { SegmentedControlSize } from './SegmentedControl/types/SegmentedControlSize';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../input-ChlFcqIS.cjs"),t=require("../Dropdown-Bl4OXCf9.cjs");exports.CountrySelect=e.CountrySelect;exports.CurrencyPicker=e.CurrencyPicker;exports.IconButton=t.IconButton;exports.ImageInput=e.ImageInput;exports.LightButton=e.LightButton;exports.LightIconButton=t.LightIconButton;exports.MainButton=e.MainButton;exports.NumberStepper=e.NumberStepper;exports.PhoneCountryPicker=e.PhoneCountryPicker;exports.SearchInput=e.SearchInput;exports.SegmentedControl=e.SegmentedControl;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { n, r as o } from "../
|
|
2
|
-
import { a
|
|
1
|
+
import { a as o, c as a, i as n, l as r, n as e, o as s, r as u, s as i, t as c } from "../input-BrjD91wv.js";
|
|
2
|
+
import { a as p, i as I } from "../Dropdown-1OAJvS1f.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
r as CountrySelect,
|
|
5
|
+
a as CurrencyPicker,
|
|
6
|
+
p as IconButton,
|
|
7
|
+
i as ImageInput,
|
|
8
|
+
s as LightButton,
|
|
9
|
+
I as LightIconButton,
|
|
10
|
+
o as MainButton,
|
|
11
|
+
n as NumberStepper,
|
|
12
|
+
u as PhoneCountryPicker,
|
|
13
|
+
e as SearchInput,
|
|
14
|
+
c as SegmentedControl
|
|
15
15
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { OverflowingListProps } from './types/OverflowingListProps';
|
|
2
|
-
export declare const OverflowingList: ({ children, showOverflowCount, maxInlineCount, overflowLabel, className, onMouseEnter, onMouseLeave, onFocusCapture, onBlurCapture, ref, ...props }: OverflowingListProps) => import("react").JSX.Element;
|
|
2
|
+
export declare const OverflowingList: ({ children, showOverflowCount, maxInlineCount, overflowLabel, open, defaultOpen, onOpenChange, actionsRef, triggerProps, popupProps, className, onMouseEnter, onMouseLeave, onFocusCapture, onBlurCapture, ref, ...props }: OverflowingListProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OverflowingListProps } from '../types/OverflowingListProps';
|
|
2
|
+
type OverflowingListActionsExampleProps = {
|
|
3
|
+
deferClose?: boolean;
|
|
4
|
+
onOpenChange?: OverflowingListProps['onOpenChange'];
|
|
5
|
+
};
|
|
6
|
+
export declare const OverflowingListActionsExample: ({ deferClose, onOpenChange, }: OverflowingListActionsExampleProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
package/dist/components/layout/OverflowingList/__stories__/OverflowingListCanceledCloseExample.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListCanceledCloseExample: () => import("react").JSX.Element;
|
package/dist/components/layout/OverflowingList/__stories__/OverflowingListControlledExample.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListControlledExample: () => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListControlledStateExample: () => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListDisabledTriggerFocusExample: () => import("react").JSX.Element;
|
package/dist/components/layout/OverflowingList/__stories__/OverflowingListEventBlockingExample.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SyntheticEvent } from 'react';
|
|
2
|
+
type OverflowingListEventBlockingExampleProps = {
|
|
3
|
+
onHostEvent: (event: SyntheticEvent) => void;
|
|
4
|
+
onOverrideEvent: (event: SyntheticEvent) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const OverflowingListEventBlockingExample: ({ onHostEvent, onOverrideEvent, }: OverflowingListEventBlockingExampleProps) => import("react").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListFocusExample: () => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListInstanceCleanupExample: () => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListStateExample: () => import("react").JSX.Element;
|
package/dist/components/layout/OverflowingList/__stories__/OverflowingListTriggerRefExample.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const OverflowingListTriggerRefExample: () => import("react").JSX.Element;
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
type OverflowingListItemProps = {
|
|
3
3
|
children: ReactElement;
|
|
4
|
+
index: number;
|
|
4
5
|
isHidden: boolean;
|
|
5
6
|
isLastVisible: boolean;
|
|
6
|
-
|
|
7
|
+
isInPopup: boolean;
|
|
8
|
+
onFocusLost: (options: {
|
|
9
|
+
index: number;
|
|
10
|
+
element: HTMLElement;
|
|
11
|
+
isInPopup: boolean;
|
|
12
|
+
}) => void;
|
|
7
13
|
};
|
|
8
|
-
export declare const OverflowingListItem: ({ children, isHidden, isLastVisible,
|
|
14
|
+
export declare const OverflowingListItem: ({ children, index, isHidden, isLastVisible, isInPopup, onFocusLost, }: OverflowingListItemProps) => import("react").JSX.Element;
|
|
9
15
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
type OverflowingListItemFocusEffectProps = {
|
|
3
|
+
elementRef: RefObject<HTMLDivElement | null>;
|
|
4
|
+
isHidden: boolean;
|
|
5
|
+
onFocusLost: (element: HTMLElement) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const OverflowingListItemFocusEffect: import('react').MemoExoticComponent<({ elementRef, isHidden, onFocusLost, }: OverflowingListItemFocusEffectProps) => null>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { OverflowingListLayout } from './types/OverflowingListLayout';
|
|
3
|
+
type OverflowingListLayoutEffectProps = {
|
|
4
|
+
containerRef: RefObject<HTMLDivElement | null>;
|
|
5
|
+
itemsRef: RefObject<HTMLDivElement | null>;
|
|
6
|
+
triggerRef: RefObject<HTMLElement | null>;
|
|
7
|
+
itemCount: number;
|
|
8
|
+
inlineItemCount: number;
|
|
9
|
+
reserveCountSpace: boolean;
|
|
10
|
+
isMeasurementEnabled: boolean;
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
onLayoutChange: (layout: OverflowingListLayout) => void;
|
|
13
|
+
onOverflowUnavailable: () => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const OverflowingListLayoutEffect: import('react').MemoExoticComponent<({ containerRef, itemsRef, triggerRef, itemCount, inlineItemCount, reserveCountSpace, isMeasurementEnabled, isOpen, onLayoutChange, onOverflowUnavailable, }: OverflowingListLayoutEffectProps) => null>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { OverflowingListProps } from '../types/OverflowingListProps';
|
|
3
|
+
type PopupRender = Exclude<NonNullable<NonNullable<OverflowingListProps['popupProps']>['render']>, ReactElement>;
|
|
4
|
+
type OverflowingListPopupTargetProps = {
|
|
5
|
+
props: Parameters<PopupRender>[0];
|
|
6
|
+
state: Parameters<PopupRender>[1];
|
|
7
|
+
render: NonNullable<OverflowingListProps['popupProps']>['render'];
|
|
8
|
+
};
|
|
9
|
+
export declare const OverflowingListPopupTarget: ({ props, state, render, }: OverflowingListPopupTargetProps) => import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const focusOverflowingListFallback: ({ items, popup, trigger, root, removedIndex, excludedItem, }: {
|
|
2
|
+
items: HTMLElement | null;
|
|
3
|
+
popup: HTMLElement | null;
|
|
4
|
+
trigger: HTMLElement | null;
|
|
5
|
+
root: HTMLElement | null;
|
|
6
|
+
removedIndex: number;
|
|
7
|
+
excludedItem?: HTMLElement;
|
|
8
|
+
}) => void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export declare const measureItemWidths: ({ items, itemElements,
|
|
1
|
+
export declare const measureItemWidths: ({ items, itemElements, }: {
|
|
2
2
|
items: HTMLElement;
|
|
3
3
|
itemElements: Element[];
|
|
4
|
-
supportsSynchronousLayout: boolean;
|
|
5
4
|
}) => number[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OverflowingListLayout } from './types/OverflowingListLayout';
|
|
2
|
+
export declare const measureOverflowingListLayout: ({ container, items, trigger, itemElements, itemCount, reserveCountSpace, }: {
|
|
3
|
+
container: HTMLElement;
|
|
4
|
+
items: HTMLElement;
|
|
5
|
+
trigger: HTMLElement | null;
|
|
6
|
+
itemElements: Element[];
|
|
7
|
+
itemCount: number;
|
|
8
|
+
reserveCountSpace: boolean;
|
|
9
|
+
}) => OverflowingListLayout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useFocusedElementUnmountRef: (onFocusedElementUnmount: () => void) => (element: HTMLElement | null) => (() => void) | undefined;
|
|
1
|
+
export declare const useFocusedElementUnmountRef: (onFocusedElementUnmount: (element: HTMLElement) => void) => (element: HTMLElement | null) => (() => void) | undefined;
|