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,198 +1,306 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return n(g) ? `#${a}${k}${b}${Math.round(parseFloat(g) * 255).toString(16).padStart(2, "0")}` : `#${a}${k}${b}`;
|
|
1
|
+
import { t as d } from "../isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { t as rr } from "../doNotTranslate-BSVT8Xyd.js";
|
|
3
|
+
import { n as er, r as or } from "../theme-B2EaXhye.js";
|
|
4
|
+
import { t as tr } from "../Loader-DtHWQH8w.js";
|
|
5
|
+
import { n as B, t as nr } from "../ResizeHandle-B30OYZxS.js";
|
|
6
|
+
import { useRender as ir } from "@base-ui/react/use-render";
|
|
7
|
+
import { isNumber as H } from "@sniptt/guards";
|
|
8
|
+
import { clsx as $ } from "clsx";
|
|
9
|
+
import { useEffect as p, useId as ar, useState as g } from "react";
|
|
10
|
+
import { Fragment as dr, jsx as s, jsxs as S } from "react/jsx-runtime";
|
|
11
|
+
import { clamp as sr } from "@base-ui/utils/clamp";
|
|
12
|
+
import lr, { loader as ur } from "@monaco-editor/react";
|
|
13
|
+
var cr = "baseCodeEditorTheme", fr = ({ shouldAutoHeight: r, editor: e, setContentHeight: o }) => (p(() => {
|
|
14
|
+
if (!r || !d(e)) {
|
|
15
|
+
o(void 0);
|
|
16
|
+
return;
|
|
18
17
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
const t = () => {
|
|
19
|
+
const a = e.getContentHeight();
|
|
20
|
+
!Number.isFinite(a) || a <= 0 || o(a);
|
|
21
|
+
};
|
|
22
|
+
t();
|
|
23
|
+
const i = e.onDidContentSizeChange(t);
|
|
24
|
+
return () => i.dispose();
|
|
25
|
+
}, [
|
|
26
|
+
e,
|
|
27
|
+
r,
|
|
28
|
+
o
|
|
29
|
+
]), null), gr = ({ editor: r, setEditor: e, setMonaco: o, setIsEditorFocused: t }) => (p(() => {
|
|
30
|
+
if (!d(r)) {
|
|
31
|
+
t(!1);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
t(r.hasWidgetFocus());
|
|
35
|
+
const i = [
|
|
36
|
+
r.onDidFocusEditorWidget(() => t(!0)),
|
|
37
|
+
r.onDidBlurEditorWidget(() => t(!1)),
|
|
38
|
+
r.onDidDispose(() => {
|
|
39
|
+
e(void 0), o(void 0);
|
|
40
|
+
})
|
|
41
|
+
];
|
|
42
|
+
return () => {
|
|
43
|
+
for (const a of i) a.dispose();
|
|
44
|
+
};
|
|
45
|
+
}, [
|
|
46
|
+
r,
|
|
47
|
+
e,
|
|
48
|
+
o,
|
|
49
|
+
t
|
|
50
|
+
]), null), pr = ({ configureMonacoLoader: r, setIsMonacoLoaderConfigured: e }) => (p(() => {
|
|
51
|
+
let o = !0;
|
|
52
|
+
return r().then(() => {
|
|
53
|
+
o && e(!0);
|
|
54
|
+
}), () => {
|
|
55
|
+
o = !1;
|
|
56
|
+
};
|
|
57
|
+
}, [r, e]), null), mr = ({ editor: r, monaco: e, setMarkers: o }) => (p(() => {
|
|
58
|
+
if (!d(r) || !d(e) || !d(o)) return;
|
|
59
|
+
const t = () => {
|
|
60
|
+
const a = r.getModel();
|
|
61
|
+
d(a) && e.editor.setModelMarkers(a, "customMarker", o(a.getValue()));
|
|
62
|
+
};
|
|
63
|
+
t();
|
|
64
|
+
const i = [r.onDidChangeModel(t), r.onDidChangeModelContent(t)];
|
|
65
|
+
return () => {
|
|
66
|
+
for (const a of i) a.dispose();
|
|
67
|
+
};
|
|
68
|
+
}, [
|
|
69
|
+
r,
|
|
70
|
+
e,
|
|
71
|
+
o
|
|
72
|
+
]), null), j = (r) => sr(r, B.min, B.max), vr = ({ height: r, resizable: e, editor: o, setResizedHeight: t }) => (p(() => {
|
|
73
|
+
if (!e || !d(o)) return;
|
|
74
|
+
const i = o.getContainerDomNode().parentElement?.getBoundingClientRect().height;
|
|
75
|
+
!d(i) || i <= 0 || t({
|
|
76
|
+
sourceHeight: r,
|
|
77
|
+
value: j(i)
|
|
78
|
+
});
|
|
79
|
+
}, [
|
|
80
|
+
o,
|
|
81
|
+
r,
|
|
82
|
+
e,
|
|
83
|
+
t
|
|
84
|
+
]), null), n = (r) => {
|
|
85
|
+
if (r.trim() === "transparent") return "#00000000";
|
|
86
|
+
const e = r.match(/color\(display-p3\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)(?:\s+\/\s+([\d.]+))?\)/);
|
|
87
|
+
if (d(e)) {
|
|
88
|
+
const [, o, t, i, a] = e;
|
|
89
|
+
if (!d(o) || !d(t) || !d(i)) return r;
|
|
90
|
+
const l = Math.round(parseFloat(o) * 255).toString(16).padStart(2, "0"), u = Math.round(parseFloat(t) * 255).toString(16).padStart(2, "0"), f = Math.round(parseFloat(i) * 255).toString(16).padStart(2, "0");
|
|
91
|
+
return d(a) ? `#${l}${u}${f}${Math.round(parseFloat(a) * 255).toString(16).padStart(2, "0")}` : `#${l}${u}${f}`;
|
|
92
|
+
}
|
|
93
|
+
return r;
|
|
94
|
+
}, kr = ({ theme: r, colorScheme: e }) => ({
|
|
95
|
+
base: e === "dark" ? "vs-dark" : "vs",
|
|
22
96
|
inherit: !0,
|
|
23
97
|
rules: [
|
|
24
98
|
{
|
|
25
99
|
token: "",
|
|
26
|
-
foreground: r
|
|
100
|
+
foreground: n(r.font.color.secondary)
|
|
27
101
|
},
|
|
28
102
|
{
|
|
29
103
|
token: "keyword",
|
|
30
|
-
foreground: r
|
|
104
|
+
foreground: n(r.color.pink11)
|
|
31
105
|
},
|
|
32
106
|
{
|
|
33
107
|
token: "keyword.control",
|
|
34
|
-
foreground: r
|
|
108
|
+
foreground: n(r.color.pink11)
|
|
35
109
|
},
|
|
36
110
|
{
|
|
37
111
|
token: "keyword.json",
|
|
38
|
-
foreground: r
|
|
112
|
+
foreground: n(r.color.orange11)
|
|
39
113
|
},
|
|
40
114
|
{
|
|
41
115
|
token: "number",
|
|
42
|
-
foreground: r
|
|
116
|
+
foreground: n(r.color.orange11)
|
|
43
117
|
},
|
|
44
118
|
{
|
|
45
119
|
token: "number.json",
|
|
46
|
-
foreground: r
|
|
120
|
+
foreground: n(r.color.orange11)
|
|
47
121
|
},
|
|
48
122
|
{
|
|
49
123
|
token: "regexp",
|
|
50
|
-
foreground: r
|
|
124
|
+
foreground: n(r.color.orange11)
|
|
51
125
|
},
|
|
52
126
|
{
|
|
53
127
|
token: "type",
|
|
54
|
-
foreground: r
|
|
128
|
+
foreground: n(r.color.green11)
|
|
55
129
|
},
|
|
56
130
|
{
|
|
57
131
|
token: "attribute.name",
|
|
58
|
-
foreground: r
|
|
132
|
+
foreground: n(r.color.blue11)
|
|
59
133
|
},
|
|
60
134
|
{
|
|
61
135
|
token: "tag",
|
|
62
|
-
foreground: r
|
|
136
|
+
foreground: n(r.color.pink11)
|
|
63
137
|
},
|
|
64
138
|
{
|
|
65
139
|
token: "string",
|
|
66
|
-
foreground: r
|
|
140
|
+
foreground: n(r.color.green11)
|
|
67
141
|
},
|
|
68
142
|
{
|
|
69
143
|
token: "string.key.json",
|
|
70
|
-
foreground: r
|
|
144
|
+
foreground: n(r.color.blue11)
|
|
71
145
|
},
|
|
72
146
|
{
|
|
73
147
|
token: "delimiter",
|
|
74
|
-
foreground: r
|
|
148
|
+
foreground: n(r.font.color.light)
|
|
75
149
|
},
|
|
76
150
|
{
|
|
77
151
|
token: "delimiter.bracket.json",
|
|
78
|
-
foreground: r
|
|
152
|
+
foreground: n(r.font.color.light)
|
|
79
153
|
},
|
|
80
154
|
{
|
|
81
155
|
token: "string.value.json",
|
|
82
|
-
foreground: r
|
|
156
|
+
foreground: n(r.color.green11)
|
|
83
157
|
},
|
|
84
158
|
{
|
|
85
159
|
token: "comment",
|
|
86
|
-
foreground: r
|
|
160
|
+
foreground: n(r.font.color.light),
|
|
87
161
|
fontStyle: "italic"
|
|
88
162
|
}
|
|
89
163
|
],
|
|
90
164
|
colors: {
|
|
91
|
-
"editor.background":
|
|
92
|
-
"editor.foreground": r
|
|
93
|
-
"editorCursor.foreground": r
|
|
94
|
-
"editorLineNumber.foreground": r
|
|
95
|
-
"editorLineNumber.activeForeground": r
|
|
96
|
-
"editor.lineHighlightBackground": r
|
|
97
|
-
"editor.selectionBackground": r
|
|
98
|
-
"editor.inactiveSelectionBackground": r
|
|
99
|
-
"editorIndentGuide.background1": r
|
|
100
|
-
"editorIndentGuide.activeBackground1": r
|
|
101
|
-
"editorBracketMatch.background": r
|
|
102
|
-
"editorBracketMatch.border": r
|
|
165
|
+
"editor.background": n("transparent"),
|
|
166
|
+
"editor.foreground": n(r.font.color.secondary),
|
|
167
|
+
"editorCursor.foreground": n(r.font.color.primary),
|
|
168
|
+
"editorLineNumber.foreground": n(r.font.color.extraLight),
|
|
169
|
+
"editorLineNumber.activeForeground": n(r.font.color.light),
|
|
170
|
+
"editor.lineHighlightBackground": n(r.background.tertiary),
|
|
171
|
+
"editor.selectionBackground": n(r.background.transparent.blue),
|
|
172
|
+
"editor.inactiveSelectionBackground": n(r.background.transparent.light),
|
|
173
|
+
"editorIndentGuide.background1": n(r.border.color.light),
|
|
174
|
+
"editorIndentGuide.activeBackground1": n(r.border.color.medium),
|
|
175
|
+
"editorBracketMatch.background": n(r.background.transparent.light),
|
|
176
|
+
"editorBracketMatch.border": n(r.border.color.medium)
|
|
103
177
|
}
|
|
104
|
-
}),
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
125
|
-
|
|
178
|
+
}), W = ({ monaco: r, theme: e, colorScheme: o }) => {
|
|
179
|
+
r.editor.defineTheme(cr, kr({
|
|
180
|
+
theme: e,
|
|
181
|
+
colorScheme: o
|
|
182
|
+
}));
|
|
183
|
+
}, br = ({ monaco: r, theme: e, colorScheme: o, editorTheme: t }) => (p(() => {
|
|
184
|
+
d(r) && (W({
|
|
185
|
+
monaco: r,
|
|
186
|
+
theme: e,
|
|
187
|
+
colorScheme: o
|
|
188
|
+
}), r.editor.setTheme(t));
|
|
189
|
+
}, [
|
|
190
|
+
o,
|
|
191
|
+
t,
|
|
192
|
+
r,
|
|
193
|
+
e
|
|
194
|
+
]), null), Cr = ({ height: r, resizableHeight: e, contentHeight: o, shouldUseResizableHeight: t, shouldAutoHeight: i }) => t ? e : i ? o ?? r : r, hr = ({ height: r, resizedHeight: e }) => e?.sourceHeight === r ? e.value : H(r) ? j(r) : 450, Hr = ({ height: r, resizable: e, autoHeight: o }) => {
|
|
195
|
+
const [t, i] = g(), [a, l] = g(), u = o && !e, f = t?.sourceHeight === r, C = e && (f || H(r)), m = hr({
|
|
196
|
+
height: r,
|
|
197
|
+
resizedHeight: t
|
|
198
|
+
});
|
|
199
|
+
return {
|
|
200
|
+
currentHeight: Cr({
|
|
201
|
+
height: r,
|
|
202
|
+
resizableHeight: m,
|
|
203
|
+
contentHeight: a,
|
|
204
|
+
shouldUseResizableHeight: C,
|
|
205
|
+
shouldAutoHeight: u
|
|
206
|
+
}),
|
|
207
|
+
resizableHeight: m,
|
|
208
|
+
setResizableHeight: (v) => {
|
|
209
|
+
i({
|
|
210
|
+
sourceHeight: r,
|
|
211
|
+
value: v
|
|
212
|
+
});
|
|
213
|
+
},
|
|
214
|
+
setResizedHeight: i,
|
|
215
|
+
setContentHeight: l,
|
|
216
|
+
shouldAutoHeight: u
|
|
126
217
|
};
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
!Number.isFinite(s) || s <= 0 || T((v) => v === s ? v : s);
|
|
148
|
-
};
|
|
149
|
-
e();
|
|
150
|
-
const d = m.onDidContentSizeChange(e);
|
|
151
|
-
return () => {
|
|
152
|
-
d.dispose();
|
|
153
|
-
};
|
|
154
|
-
}, [m, M]), j || !q ? /* @__PURE__ */ l("div", {
|
|
155
|
-
className: S.editorLoader,
|
|
156
|
-
"data-variant": k,
|
|
157
|
-
style: { "--code-editor-height": typeof C == "number" ? `${C}px` : C },
|
|
158
|
-
children: /* @__PURE__ */ l(oo, {})
|
|
159
|
-
}) : /* @__PURE__ */ x("div", {
|
|
160
|
-
className: S.container,
|
|
161
|
-
onKeyDown: X,
|
|
218
|
+
}, Er = "_editorWrapper_zilk9_24", _r = "_editorLoader_zilk9_1", yr = "_container_zilk9_20", M = {
|
|
219
|
+
editorWrapper: Er,
|
|
220
|
+
editorLoader: _r,
|
|
221
|
+
container: yr
|
|
222
|
+
}, F, Mr = () => (F ??= import("monaco-editor").then((r) => {
|
|
223
|
+
ur.config({ monaco: r });
|
|
224
|
+
}), F), Ar = ({ onMount: r, beforeMount: e, setMarkers: o, height: t = 450, width: i = "100%", theme: a, loading: l = /* @__PURE__ */ s(tr, {}), variant: u = "default", transparentBackground: f, isLoading: C = !1, options: m, resizable: v = !1, resizeLabel: w = rr("Resize editor"), contentPadding: A = "default", autoHeight: I = !1, containerProps: E, ref: O, ...K }) => {
|
|
225
|
+
const k = or(), L = er(), [T, N] = g(), [b, R] = g(), [P, q] = g(!1), [G, U] = g(!1), x = ar(), _ = a ?? m?.theme ?? "baseCodeEditorTheme", { currentHeight: h, resizableHeight: V, setResizableHeight: Z, setResizedHeight: J, setContentHeight: Q, shouldAutoHeight: X } = Hr({
|
|
226
|
+
height: t,
|
|
227
|
+
resizable: v,
|
|
228
|
+
autoHeight: I
|
|
229
|
+
}), y = H(k.spacingMultiplicator) ? k.spacingMultiplicator * 4 : void 0, Y = (c) => {
|
|
230
|
+
E?.onKeyDown?.(c), G && c.stopPropagation();
|
|
231
|
+
};
|
|
232
|
+
return /* @__PURE__ */ S("div", {
|
|
233
|
+
role: "group",
|
|
234
|
+
...E,
|
|
235
|
+
ref: O,
|
|
236
|
+
className: $(M.container, E?.className),
|
|
237
|
+
onKeyDown: Y,
|
|
162
238
|
children: [
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
value: o ?? "",
|
|
167
|
-
readOnly: !0
|
|
239
|
+
/* @__PURE__ */ s(pr, {
|
|
240
|
+
configureMonacoLoader: Mr,
|
|
241
|
+
setIsMonacoLoaderConfigured: q
|
|
168
242
|
}),
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
243
|
+
/* @__PURE__ */ s(vr, {
|
|
244
|
+
height: t,
|
|
245
|
+
resizable: v,
|
|
246
|
+
editor: b,
|
|
247
|
+
setResizedHeight: J
|
|
248
|
+
}),
|
|
249
|
+
/* @__PURE__ */ s(fr, {
|
|
250
|
+
shouldAutoHeight: X,
|
|
251
|
+
editor: b,
|
|
252
|
+
setContentHeight: Q
|
|
253
|
+
}),
|
|
254
|
+
/* @__PURE__ */ s(gr, {
|
|
255
|
+
editor: b,
|
|
256
|
+
setEditor: R,
|
|
257
|
+
setMonaco: N,
|
|
258
|
+
setIsEditorFocused: U
|
|
259
|
+
}),
|
|
260
|
+
/* @__PURE__ */ s(mr, {
|
|
261
|
+
editor: b,
|
|
262
|
+
monaco: T,
|
|
263
|
+
setMarkers: o
|
|
264
|
+
}),
|
|
265
|
+
/* @__PURE__ */ s(br, {
|
|
266
|
+
monaco: T,
|
|
267
|
+
theme: k,
|
|
268
|
+
colorScheme: L,
|
|
269
|
+
editorTheme: _
|
|
270
|
+
}),
|
|
271
|
+
C || !P ? /* @__PURE__ */ s("div", {
|
|
272
|
+
className: M.editorLoader,
|
|
273
|
+
"data-variant": u,
|
|
274
|
+
style: {
|
|
275
|
+
width: i,
|
|
276
|
+
"--code-editor-height": H(h) ? `${h}px` : h
|
|
277
|
+
},
|
|
278
|
+
children: l
|
|
279
|
+
}) : /* @__PURE__ */ s("div", {
|
|
280
|
+
id: x,
|
|
281
|
+
className: M.editorWrapper,
|
|
282
|
+
"data-variant": u,
|
|
283
|
+
"data-transparent-background": f || void 0,
|
|
284
|
+
children: /* @__PURE__ */ s(lr, {
|
|
285
|
+
...K,
|
|
286
|
+
height: h,
|
|
287
|
+
width: i,
|
|
288
|
+
theme: _,
|
|
289
|
+
loading: l,
|
|
290
|
+
beforeMount: (c) => {
|
|
291
|
+
W({
|
|
292
|
+
monaco: c,
|
|
293
|
+
theme: k,
|
|
294
|
+
colorScheme: L
|
|
295
|
+
}), e?.(c);
|
|
188
296
|
},
|
|
189
|
-
|
|
190
|
-
|
|
297
|
+
onMount: (c, z) => {
|
|
298
|
+
N(z), R(c), r?.(c, z);
|
|
191
299
|
},
|
|
192
300
|
options: {
|
|
193
301
|
formatOnPaste: !0,
|
|
194
302
|
formatOnType: !0,
|
|
195
|
-
fontFamily:
|
|
303
|
+
fontFamily: k.code.font.family,
|
|
196
304
|
bracketPairColorization: { enabled: !1 },
|
|
197
305
|
overviewRulerLanes: 0,
|
|
198
306
|
scrollBeyondLastLine: !1,
|
|
@@ -201,38 +309,43 @@ var $ = "baseCodeEditorTheme", r = (o) => {
|
|
|
201
309
|
horizontal: "hidden"
|
|
202
310
|
},
|
|
203
311
|
minimap: { enabled: !1 },
|
|
204
|
-
...
|
|
205
|
-
|
|
312
|
+
...A === "comfortable" ? { lineDecorationsWidth: y } : {},
|
|
313
|
+
padding: {
|
|
314
|
+
bottom: y,
|
|
315
|
+
top: y
|
|
316
|
+
},
|
|
317
|
+
...m,
|
|
318
|
+
theme: _
|
|
206
319
|
}
|
|
207
320
|
})
|
|
208
321
|
}),
|
|
209
|
-
|
|
210
|
-
"aria-label":
|
|
211
|
-
"aria-controls":
|
|
212
|
-
value:
|
|
213
|
-
onValueChange:
|
|
322
|
+
v && !C && d(b) && /* @__PURE__ */ s(nr, {
|
|
323
|
+
"aria-label": w,
|
|
324
|
+
"aria-controls": x,
|
|
325
|
+
value: V,
|
|
326
|
+
onValueChange: Z
|
|
214
327
|
})
|
|
215
328
|
]
|
|
216
329
|
});
|
|
217
|
-
},
|
|
218
|
-
editorHeader:
|
|
219
|
-
elementContainer:
|
|
220
|
-
},
|
|
221
|
-
render:
|
|
222
|
-
ref:
|
|
330
|
+
}, Dr = "_editorHeader_19qlo_1", Sr = "_elementContainer_19qlo_15", D = {
|
|
331
|
+
editorHeader: Dr,
|
|
332
|
+
elementContainer: Sr
|
|
333
|
+
}, Ir = ({ title: r, startElement: e, endElement: o, className: t, render: i, ref: a, ...l }) => ir({
|
|
334
|
+
render: i,
|
|
335
|
+
ref: a,
|
|
223
336
|
props: {
|
|
224
|
-
...
|
|
225
|
-
className:
|
|
226
|
-
children: /* @__PURE__ */
|
|
227
|
-
className:
|
|
228
|
-
children: [
|
|
229
|
-
}), /* @__PURE__ */
|
|
230
|
-
className:
|
|
231
|
-
children:
|
|
337
|
+
...l,
|
|
338
|
+
className: $(D.editorHeader, t),
|
|
339
|
+
children: /* @__PURE__ */ S(dr, { children: [/* @__PURE__ */ S("div", {
|
|
340
|
+
className: D.elementContainer,
|
|
341
|
+
children: [e, r]
|
|
342
|
+
}), /* @__PURE__ */ s("div", {
|
|
343
|
+
className: D.elementContainer,
|
|
344
|
+
children: o
|
|
232
345
|
})] })
|
|
233
346
|
}
|
|
234
347
|
});
|
|
235
348
|
export {
|
|
236
|
-
|
|
237
|
-
|
|
349
|
+
Ar as CodeEditor,
|
|
350
|
+
Ir as CodeEditorHeader
|
|
238
351
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../data-display-
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../data-display-XV3ht1rC.cjs"),o=require("../TintedIconTile-DO1XJXCQ.cjs");exports.AvatarGroup=e.AvatarGroup;exports.CommandBlock=e.CommandBlock;exports.JsonTree=e.JsonTree;exports.MetricRow=e.MetricRow;exports.StackIcon=e.StackIcon;exports.TintedIconTile=o.TintedIconTile;exports.getIconTileColorShades=o.getIconTileColorShades;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, i as r, n as t, r as e, t as s } from "../data-display-
|
|
2
|
-
import { n as i, t as c } from "../TintedIconTile-
|
|
1
|
+
import { a, i as r, n as t, r as e, t as s } from "../data-display-BtXCGOGw.js";
|
|
2
|
+
import { n as i, t as c } from "../TintedIconTile-B1XDtGrF.js";
|
|
3
3
|
export {
|
|
4
4
|
a as AvatarGroup,
|
|
5
5
|
r as CommandBlock,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ToastProps } from '../../types/ToastProps';
|
|
2
|
-
import {
|
|
2
|
+
import { createToastCountdownStore } from '../utils/createToastCountdownStore';
|
|
3
3
|
type ToastCountdownEffectProps = Pick<ToastProps, 'progress' | 'onClose'> & {
|
|
4
|
-
clock: ReturnType<typeof
|
|
4
|
+
clock: ReturnType<typeof createToastCountdownStore>;
|
|
5
|
+
onClockChange: (clock: ReturnType<typeof createToastCountdownStore>) => void;
|
|
5
6
|
duration: number;
|
|
6
7
|
isPaused: boolean;
|
|
7
8
|
};
|
|
8
|
-
export declare const ToastCountdownEffect: ({ clock, duration, progress, isPaused, onClose, }: ToastCountdownEffectProps) => null;
|
|
9
|
+
export declare const ToastCountdownEffect: ({ clock, onClockChange, duration, progress, isPaused, onClose, }: ToastCountdownEffectProps) => null;
|
|
9
10
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_TOAST_DURATION = 6000;
|
|
@@ -1 +1,60 @@
|
|
|
1
|
-
export declare const ToastContext: import('react').Context<import('@base-ui/utils/store').Store<import('../types/ToastStoreState').ToastStoreState>
|
|
1
|
+
export declare const ToastContext: import('react').Context<(import('@base-ui/utils/store').Store<import('../types/ToastStoreState').ToastStoreState> & {
|
|
2
|
+
lifecycle: {
|
|
3
|
+
mount: () => () => void;
|
|
4
|
+
isActive: () => boolean;
|
|
5
|
+
getCountdown: (id: string) => {
|
|
6
|
+
getSnapshot: () => {
|
|
7
|
+
duration: number;
|
|
8
|
+
remainingDuration: number;
|
|
9
|
+
revision: number;
|
|
10
|
+
isPaused: boolean;
|
|
11
|
+
};
|
|
12
|
+
subscribe: (listener: () => void) => () => void;
|
|
13
|
+
update: (nextConfiguration: {
|
|
14
|
+
duration: number;
|
|
15
|
+
durationRevision: number;
|
|
16
|
+
isPaused: boolean;
|
|
17
|
+
isProgress: boolean;
|
|
18
|
+
isActive: boolean;
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
}) => void;
|
|
21
|
+
close: () => void;
|
|
22
|
+
stop: () => void;
|
|
23
|
+
} | undefined;
|
|
24
|
+
updateRenderer: ({ id, key, configuration, }: {
|
|
25
|
+
id: string;
|
|
26
|
+
key: symbol;
|
|
27
|
+
configuration: {
|
|
28
|
+
duration?: number;
|
|
29
|
+
isProgress?: boolean;
|
|
30
|
+
isPaused: boolean;
|
|
31
|
+
};
|
|
32
|
+
}) => {
|
|
33
|
+
getSnapshot: () => {
|
|
34
|
+
duration: number;
|
|
35
|
+
remainingDuration: number;
|
|
36
|
+
revision: number;
|
|
37
|
+
isPaused: boolean;
|
|
38
|
+
};
|
|
39
|
+
subscribe: (listener: () => void) => () => void;
|
|
40
|
+
update: (nextConfiguration: {
|
|
41
|
+
duration: number;
|
|
42
|
+
durationRevision: number;
|
|
43
|
+
isPaused: boolean;
|
|
44
|
+
isProgress: boolean;
|
|
45
|
+
isActive: boolean;
|
|
46
|
+
onClose?: () => void;
|
|
47
|
+
}) => void;
|
|
48
|
+
close: () => void;
|
|
49
|
+
stop: () => void;
|
|
50
|
+
};
|
|
51
|
+
removeRenderer: ({ id, key }: {
|
|
52
|
+
id: string;
|
|
53
|
+
key: symbol;
|
|
54
|
+
}) => void;
|
|
55
|
+
finishExit: ({ id, key }: {
|
|
56
|
+
id: string;
|
|
57
|
+
key: symbol;
|
|
58
|
+
}) => void;
|
|
59
|
+
};
|
|
60
|
+
}) | undefined>;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { createToastLifecycle } from '../utils/createToastLifecycle';
|
|
2
|
+
type ToastTiming = {
|
|
2
3
|
durationRevision: number;
|
|
3
4
|
isActive: boolean;
|
|
4
|
-
|
|
5
|
+
lifecycle?: ReturnType<typeof createToastLifecycle>;
|
|
6
|
+
id?: string;
|
|
7
|
+
rendererKey?: symbol;
|
|
8
|
+
timingOverrides?: {
|
|
9
|
+
duration?: number;
|
|
10
|
+
progress?: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const ToastTimingContext: import('react').Context<ToastTiming>;
|
|
14
|
+
export {};
|