twenty-ui 2.47.0 → 2.48.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/dist/{AllIcons-DrlkKKQf.cjs → AllIcons-Cyd7721G.cjs} +1 -1
- package/dist/{AllIcons-G3nKeM41.js → AllIcons-D132B8_i.js} +1 -1
- package/dist/{Button-Cs07psdD.js → Button-D5enZ0Qz.js} +1 -1
- package/dist/{Button-COxEKIHL.cjs → Button-Dbi5P05r.cjs} +1 -1
- package/dist/Dropdown-BKjAaZS0.cjs +1 -0
- package/dist/Dropdown-C2hXrjvD.js +820 -0
- package/dist/{ListItem-q6DHGlev.cjs → ListItem-CHTR-GLd.cjs} +1 -1
- package/dist/{ListItem-CXu35dzp.js → ListItem-CjnrSbka.js} +4 -4
- 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-BvT1dyFo.js} +1 -1
- package/dist/{ProgressBar-oF1qVHFx.cjs → ProgressBar-DfFz0fFB.cjs} +1 -1
- package/dist/{Radio-BMoQHDe7.js → Radio-DMI1B7o5.js} +1 -1
- package/dist/{Radio-D_YUizSv.cjs → Radio-xmHgGHQO.cjs} +1 -1
- package/dist/{ResizeHandle-Bjg4R0c-.js → ResizeHandle-C1kQ3MYR.js} +1 -0
- package/dist/ResizeHandle-DI4LHIQm.cjs +1 -0
- package/dist/Shortcut-BvWUZ3pb.js +72 -0
- package/dist/Shortcut-CgrdLv_L.cjs +1 -0
- package/dist/TabsTabContent-Co27Y2TU.cjs +1 -0
- package/dist/TabsTabContent-DVcObDp6.js +39 -0
- package/dist/Tooltip-Bg9Uk01p.cjs +1 -0
- package/dist/Tooltip-cLCgtFBF.js +124 -0
- 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 +267 -155
- package/dist/components/data-display.mjs +1 -1
- 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/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 +1 -0
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +2 -2
- 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/measureOverflowingListLayout.d.ts +10 -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 +4 -4
- 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 +6 -5
- package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +1 -1
- 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/DropdownSubmenuTrigger.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/getDropdownItemExplicitId.d.ts +5 -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/getDropdownTabStopRowId.d.ts +4 -0
- package/dist/components/navigation/Dropdown/internal/isDropdownDismissPrevented.d.ts +2 -1
- 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.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 +7 -7
- package/dist/data-display-0QO_WDSs.js +183 -0
- package/dist/data-display-CPmTJAWJ.cjs +1 -0
- package/dist/{data-display-DU3G8ZyI.js → data-display-KyZbLLy-.js} +1 -1
- package/dist/feedback-CM6fatE8.js +664 -0
- package/dist/feedback-ybO4n69s.cjs +1 -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-3D2lXywH.cjs +1 -0
- package/dist/{input-Bnu5kNjg.cjs → input-CJDYNwoO.cjs} +1 -1
- package/dist/{input-vl6yK36n.js → input-DRpDiMRi.js} +4 -4
- package/dist/input-TM3nUdu6.js +554 -0
- package/dist/layout-BszCDxAO.js +441 -0
- package/dist/layout-VaIq7Sjr.cjs +1 -0
- package/dist/{navigation-itBinyPi.js → navigation-B1SRvzKK.js} +8 -8
- package/dist/{navigation-Dg46Wr5m.js → navigation-CYAs2LnR.js} +1 -1
- package/dist/{navigation-WsiYsmaq.cjs → navigation-CthkGHJ8.cjs} +1 -1
- package/dist/{navigation-B1hPNYv2.cjs → navigation-DrOV5E67.cjs} +1 -1
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +1 -1
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +1 -1
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +3 -3
- 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-BiSAY2oN.cjs → settings-BAYsnlZJ.cjs} +1 -1
- package/dist/{settings-CC-2gcAx.js → settings-BjEZiHXE.js} +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/typography-B5QEuPaL.cjs +1 -0
- package/dist/typography-fOTFr0jS.js +11 -0
- package/package.json +1 -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/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/surfaces-vyAhk2Gw.cjs +0 -1
- package/dist/typography-8DF9mq2w.cjs +0 -1
- package/dist/typography-DmY7-GzQ.js +0 -5
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var _ = "_root_xrjjl_1", r = "_solid_xrjjl_23", o = "_outline_xrjjl_27", e = "_soft_xrjjl_31", a = "_sm_xrjjl_36", s = "_md_xrjjl_41", v = "_square_xrjjl_47", n = "_round_xrjjl_52", t = "_accent_xrjjl_58", c = "_success_xrjjl_64", i = "_warning_xrjjl_70", l = "_hoverable_xrjjl_76", j = "_indicator_xrjjl_128", d = "_check_xrjjl_149", x = "_minus_xrjjl_150", y = {
|
|
2
|
-
root: _,
|
|
3
|
-
solid: r,
|
|
4
|
-
outline: o,
|
|
5
|
-
soft: e,
|
|
6
|
-
sm: a,
|
|
7
|
-
md: s,
|
|
8
|
-
square: v,
|
|
9
|
-
round: n,
|
|
10
|
-
accent: t,
|
|
11
|
-
success: c,
|
|
12
|
-
warning: i,
|
|
13
|
-
hoverable: l,
|
|
14
|
-
indicator: j,
|
|
15
|
-
check: d,
|
|
16
|
-
minus: x
|
|
17
|
-
}, u = "_root_1vsoe_2", m = "_submenuIcon_1vsoe_53", h = "_startIcon_1vsoe_57", I = "_endIcon_1vsoe_58", b = "_label_1vsoe_74", k = "_text_1vsoe_84", p = "_description_1vsoe_92", f = "_inlineDescription_1vsoe_100", D = "_endDescription_1vsoe_105", g = "_hotkeys_1vsoe_110", q = "_actions_1vsoe_116", w = "_checkIndicator_1vsoe_133", C = {
|
|
18
|
-
root: u,
|
|
19
|
-
submenuIcon: m,
|
|
20
|
-
startIcon: h,
|
|
21
|
-
endIcon: I,
|
|
22
|
-
label: b,
|
|
23
|
-
text: k,
|
|
24
|
-
description: p,
|
|
25
|
-
inlineDescription: f,
|
|
26
|
-
endDescription: D,
|
|
27
|
-
hotkeys: g,
|
|
28
|
-
actions: q,
|
|
29
|
-
checkIndicator: w
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
y as n,
|
|
33
|
-
C as t
|
|
34
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _="_root_xrjjl_1",r="_solid_xrjjl_23",e="_outline_xrjjl_27",o="_soft_xrjjl_31",a="_sm_xrjjl_36",t="_md_xrjjl_41",n="_square_xrjjl_47",s="_round_xrjjl_52",v="_accent_xrjjl_58",c="_success_xrjjl_64",i="_warning_xrjjl_70",l="_hoverable_xrjjl_76",j="_indicator_xrjjl_128",u="_check_xrjjl_149",d="_minus_xrjjl_150",x={root:_,solid:r,outline:e,soft:o,sm:a,md:t,square:n,round:s,accent:v,success:c,warning:i,hoverable:l,indicator:j,check:u,minus:d},m="_root_1vsoe_2",b="_submenuIcon_1vsoe_53",f="_startIcon_1vsoe_57",h="_endIcon_1vsoe_58",I="_label_1vsoe_74",k="_text_1vsoe_84",p="_description_1vsoe_92",g="_inlineDescription_1vsoe_100",y="_endDescription_1vsoe_105",D="_hotkeys_1vsoe_110",q="_actions_1vsoe_116",w="_checkIndicator_1vsoe_133",C={root:m,submenuIcon:b,startIcon:f,endIcon:h,label:I,text:k,description:p,inlineDescription:g,endDescription:y,hotkeys:D,actions:q,checkIndicator:w};Object.defineProperty(exports,"Checkbox_module_default",{enumerable:!0,get:function(){return x}});Object.defineProperty(exports,"ListItem_module_default",{enumerable:!0,get:function(){return C}});
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { t as s } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { n as H, t as l } from "./Tooltip-BMkznyoi.js";
|
|
3
|
-
import { useRender as S } from "@base-ui/react/use-render";
|
|
4
|
-
import { isNonEmptyString as M } from "@sniptt/guards";
|
|
5
|
-
import { clsx as W } from "clsx";
|
|
6
|
-
import { memo as B, useRef as F, useState as P } from "react";
|
|
7
|
-
import { jsx as o, jsxs as q } from "react/jsx-runtime";
|
|
8
|
-
import { mergeProps as z } from "@base-ui/react/merge-props";
|
|
9
|
-
import { useMergedRefs as A } from "@base-ui/utils/useMergedRefs";
|
|
10
|
-
var G = "_truncate_1x6ii_1", J = "_lineClamp_1x6ii_7", R = {
|
|
11
|
-
truncate: G,
|
|
12
|
-
lineClamp: J
|
|
13
|
-
}, K = ({ render: v, truncate: i, lineClamp: t, className: f, style: r, ref: a, ...u }) => {
|
|
14
|
-
const c = s(t) && Number.isInteger(t) && t > 0;
|
|
15
|
-
return S({
|
|
16
|
-
render: v,
|
|
17
|
-
ref: a,
|
|
18
|
-
props: {
|
|
19
|
-
...u,
|
|
20
|
-
className: W(i && R.truncate, c && R.lineClamp, f),
|
|
21
|
-
style: c ? {
|
|
22
|
-
...r,
|
|
23
|
-
"--text-line-clamp": t
|
|
24
|
-
} : r
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}, L = "_overflowingMultilineText_14o0a_1", Q = "_overflowingText_14o0a_20", U = "_multilineTooltip_14o0a_37", d = {
|
|
28
|
-
overflowingMultilineText: L,
|
|
29
|
-
overflowingText: Q,
|
|
30
|
-
multilineTooltip: U
|
|
31
|
-
}, re = B(function({ text: i, isTooltipMultiline: t, truncate: f, lineClamp: r, tooltipContent: a, tooltipDelay: u = 500, tooltipPlace: c = "bottom", alwaysShowTooltip: g = !1, isFocusable: b = !1, render: N, ref: C, className: E, ...I }) {
|
|
32
|
-
const p = F(null), k = A(p, C), [T, y] = P(!1), [D, x] = P(!1), h = () => {
|
|
33
|
-
const e = p.current, n = s(e) && (e.scrollHeight > e.clientHeight || e.scrollWidth > e.clientWidth);
|
|
34
|
-
return y(n), n;
|
|
35
|
-
}, _ = (e) => {
|
|
36
|
-
if (!e) {
|
|
37
|
-
x(!1);
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
x(h() || g);
|
|
41
|
-
}, j = (e) => {
|
|
42
|
-
e.stopPropagation(), e.preventDefault();
|
|
43
|
-
}, m = M(a) ? a : M(i) ? i : null, O = s(r);
|
|
44
|
-
return /* @__PURE__ */ q(l.Root, {
|
|
45
|
-
open: D && s(m),
|
|
46
|
-
onOpenChange: (...e) => {
|
|
47
|
-
const [n, w] = e;
|
|
48
|
-
if (!n && w.reason === "trigger-hover" && p.current?.contains(document.activeElement)) {
|
|
49
|
-
w.cancel();
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
_(n);
|
|
53
|
-
},
|
|
54
|
-
disabled: !s(m) || !T && !g,
|
|
55
|
-
children: [/* @__PURE__ */ o(l.Trigger, {
|
|
56
|
-
delay: u,
|
|
57
|
-
closeOnClick: !1,
|
|
58
|
-
render: /* @__PURE__ */ o(K, {
|
|
59
|
-
...O ? { lineClamp: r } : { truncate: f ?? !0 },
|
|
60
|
-
dir: "auto",
|
|
61
|
-
"data-content-overflowing": T ? "" : void 0,
|
|
62
|
-
className: W(O ? d.overflowingMultilineText : d.overflowingText, E),
|
|
63
|
-
render: N,
|
|
64
|
-
ref: k,
|
|
65
|
-
...z({
|
|
66
|
-
tabIndex: b ? 0 : void 0,
|
|
67
|
-
onPointerEnter: h,
|
|
68
|
-
onFocus: () => _(!0)
|
|
69
|
-
}, I),
|
|
70
|
-
children: i
|
|
71
|
-
})
|
|
72
|
-
}), /* @__PURE__ */ o(l.Portal, { children: /* @__PURE__ */ o(l.Positioner, {
|
|
73
|
-
sideOffset: 5,
|
|
74
|
-
side: c,
|
|
75
|
-
positionMethod: "absolute",
|
|
76
|
-
style: { maxWidth: "300px" },
|
|
77
|
-
children: /* @__PURE__ */ o(l.Popup, {
|
|
78
|
-
className: t ? d.multilineTooltip : void 0,
|
|
79
|
-
onClick: j,
|
|
80
|
-
children: /* @__PURE__ */ o(H, { children: m })
|
|
81
|
-
})
|
|
82
|
-
}) })]
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
export {
|
|
86
|
-
K as n,
|
|
87
|
-
re as t
|
|
88
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const s=require("./isDefined-DS2Q42p5.cjs"),r=require("./Tooltip-JOYVeSsf.cjs");let k=require("@base-ui/react/use-render"),q=require("@sniptt/guards"),D=require("clsx"),c=require("react"),t=require("react/jsx-runtime"),H=require("@base-ui/react/merge-props"),B=require("@base-ui/utils/useMergedRefs");var F="_truncate_1x6ii_1",z="_lineClamp_1x6ii_7",j={truncate:F,lineClamp:z},P=({render:T,truncate:o,lineClamp:i,className:d,style:n,ref:u,...f})=>{const a=s.isDefined(i)&&Number.isInteger(i)&&i>0;return(0,k.useRender)({render:T,ref:u,props:{...f,className:(0,D.clsx)(o&&j.truncate,a&&j.lineClamp,d),style:a?{...n,"--text-line-clamp":i}:n}})},A="_overflowingMultilineText_14o0a_1",G="_overflowingText_14o0a_20",J="_multilineTooltip_14o0a_37",g={overflowingMultilineText:A,overflowingText:G,multilineTooltip:J},K=(0,c.memo)(function({text:o,isTooltipMultiline:i,truncate:d,lineClamp:n,tooltipContent:u,tooltipDelay:f=500,tooltipPlace:a="bottom",alwaysShowTooltip:x=!1,isFocusable:M=!1,render:R,ref:W,className:y,...N}){const p=(0,c.useRef)(null),E=(0,B.useMergedRefs)(p,W),[v,C]=(0,c.useState)(!1),[I,m]=(0,c.useState)(!1),h=()=>{const e=p.current,l=s.isDefined(e)&&(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth);return C(l),l},O=e=>{if(!e){m(!1);return}m(h()||x)},S=e=>{e.stopPropagation(),e.preventDefault()},_=(0,q.isNonEmptyString)(u)?u:(0,q.isNonEmptyString)(o)?o:null,w=s.isDefined(n);return(0,t.jsxs)(r.Tooltip.Root,{open:I&&s.isDefined(_),onOpenChange:(...e)=>{const[l,b]=e;if(!l&&b.reason==="trigger-hover"&&p.current?.contains(document.activeElement)){b.cancel();return}O(l)},disabled:!s.isDefined(_)||!v&&!x,children:[(0,t.jsx)(r.Tooltip.Trigger,{delay:f,closeOnClick:!1,render:(0,t.jsx)(P,{...w?{lineClamp:n}:{truncate:d??!0},dir:"auto","data-content-overflowing":v?"":void 0,className:(0,D.clsx)(w?g.overflowingMultilineText:g.overflowingText,y),render:R,ref:E,...(0,H.mergeProps)({tabIndex:M?0:void 0,onPointerEnter:h,onFocus:()=>O(!0)},N),children:o})}),(0,t.jsx)(r.Tooltip.Portal,{children:(0,t.jsx)(r.Tooltip.Positioner,{sideOffset:5,side:a,positionMethod:"absolute",style:{maxWidth:"300px"},children:(0,t.jsx)(r.Tooltip.Popup,{className:i?g.multilineTooltip:void 0,onClick:S,children:(0,t.jsx)(r.TooltipBody,{children:_})})})})]})});Object.defineProperty(exports,"OverflowingTextWithTooltip",{enumerable:!0,get:function(){return K}});Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return P}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const u=require("./isDefined-DS2Q42p5.cjs");let T=require("@base-ui/react/use-render"),A=require("@sniptt/guards"),M=require("clsx"),k=require("react"),N=require("react/jsx-runtime"),U=require("@base-ui/react/merge-props"),j=require("@base-ui/react/direction-provider"),F=require("@base-ui/utils/useStableCallback"),X=require("@base-ui/utils/useControlled"),q=require("@base-ui/utils/clamp");var m={value:150,min:50,max:500,step:10,dragThreshold:0,edgeDragThreshold:5},Y={left:{axis:"x",direction:"reverse"},right:{axis:"x",direction:"normal"},top:{axis:"y",direction:"reverse"},bottom:{axis:"y",direction:"normal"}},Z=({axis:d,isReversed:R,value:i,onValueChange:h,onValueCommitted:w,onResizeStart:z,onResizeEnd:I,onActivate:g,scale:P,dragThreshold:b,min:_,max:D,disabled:l})=>{const n=(0,k.useRef)(null),c=(0,k.useRef)(!1),s=(0,F.useStableCallback)(e=>{const r=n.current;if(!u.isDefined(r)||(n.current=null,r.removeEscapeKeyListener(),c.current=e||r.hasStarted,r.target.hasPointerCapture?.(r.pointerId)&&r.target.releasePointerCapture?.(r.pointerId),!r.hasStarted))return;const o=e?(0,q.clamp)(r.startValue,_,D):r.currentValue;e&&h(o),e||w?.(o),I?.({cancelled:e,value:o})});(0,k.useEffect)(()=>()=>{s(!0)},[s]);const f=e=>{e.preventDefault()},C=e=>{if(l||e.defaultPrevented||e.button!==0||u.isDefined(n.current))return;const r=(0,A.isFunction)(P)?P():P,o=Number.isFinite(r)&&r>0?r:1,p=e.currentTarget.ownerDocument?.defaultView,a=K=>{K.key==="Escape"&&(K.preventDefault(),K.stopPropagation(),s(!0))};e.currentTarget.setPointerCapture?.(e.pointerId),p?.addEventListener("keydown",a,!0),c.current=!1,n.current={pointerId:e.pointerId,target:e.currentTarget,axis:d,startPosition:d==="y"?e.clientY:e.clientX,startValue:i,currentValue:i,multiplier:(R?-1:1)/o,threshold:Math.max(0,b),hasStarted:!1,removeEscapeKeyListener:()=>p?.removeEventListener("keydown",a,!0)}},x=e=>{const r=n.current;if(e.defaultPrevented||!u.isDefined(r)||r.pointerId!==e.pointerId)return;if(l){s(!0);return}const o=(r.axis==="y"?e.clientY:e.clientX)-r.startPosition,p=Math.abs(o)>r.threshold;if(!r.hasStarted&&!p)return;const a=(0,q.clamp)(r.startValue+o*r.multiplier,_,D);r.hasStarted&&a===r.currentValue||(r.currentValue=a,r.hasStarted||(r.hasStarted=!0,z?.(a)),h(a))},t=e=>{n.current?.pointerId===e.pointerId&&(x(e),s(l||e.defaultPrevented))},E=e=>{n.current?.pointerId===e.pointerId&&s(!0)};return{onMouseDown:f,onPointerDown:C,onPointerMove:x,onPointerUp:t,onPointerCancel:E,onLostPointerCapture:E,onClick:e=>{const r=c.current&&e.detail>0;c.current=!1,!(l||e.defaultPrevented||r)&&g?.()},isPointerActive:()=>u.isDefined(n.current)}},G=({axis:d,direction:R,value:i,onValueChange:h,onValueCommitted:w,onResizeStart:z,onResizeEnd:I,onActivate:g,scale:P,dragThreshold:b,min:_,max:D,step:l,disabled:n})=>{const c=(0,j.useDirection)(),s=u.isDefined(R)?R==="reverse":d==="x"&&c==="rtl",{isPointerActive:f,...C}=Z({axis:d,isReversed:s,value:i,onValueChange:h,onValueCommitted:w,onResizeStart:z,onResizeEnd:I,onActivate:g,scale:P,dragThreshold:b,min:_,max:D,disabled:n});return{...C,onKeyDown:t=>{const E=t.altKey||t.ctrlKey||t.metaKey;if(t.defaultPrevented||n||E||f())return;if((t.key==="Enter"||t.key===" ")&&u.isDefined(g)){t.preventDefault(),t.stopPropagation(),t.repeat||g();return}const y=d==="y"?"ArrowDown":"ArrowRight",e=d==="y"?"ArrowUp":"ArrowLeft",r=s?e:y,o=s?y:e,p=new Map([[r,i+l],[o,i-l],["Home",_],["End",D]]).get(t.key);if(!u.isDefined(p))return;t.preventDefault(),t.stopPropagation();const a=(0,q.clamp)(p,_,D);a!==i&&(h(a),w?.(a))}}},O="_area_y24an_1",W="_bar_y24an_74",V={area:O,bar:W},B=({axis:d="y",direction:R,edge:i,placement:h=u.isDefined(i)?"edge":"inline",scale:w=1,dragThreshold:z=u.isDefined(i)?m.edgeDragThreshold:m.dragThreshold,value:I,defaultValue:g=m.value,onValueChange:P,onValueCommitted:b,onResizeStart:_,onResizeEnd:D,onActivate:l,min:n=m.min,max:c=m.max,step:s=m.step,disabled:f=!1,className:C,children:x=h==="gap"?null:(0,N.jsx)("div",{className:V.bar}),render:t,ref:E,...y})=>{const e=u.isDefined(i)?Y[i]:void 0,r=e?.axis??d,o=e?.direction??R,[p,a]=(0,k.useState)(!1),[K,H]=(0,X.useControlled)({controlled:I,default:g,name:"ResizeHandle"}),v=(0,q.clamp)(K,n,c),L=G({axis:r,direction:o,scale:w,dragThreshold:z,onValueCommitted:b,onResizeStart:S=>{a(!0),_?.(S)},onResizeEnd:S=>{a(!1),D?.(S)},onActivate:l,value:v,onValueChange:S=>{H(S),P?.(S)},min:n,max:c,step:s,disabled:f});return(0,T.useRender)({render:t,ref:E,state:{axis:r,edge:i,placement:h,disabled:f,resizing:p},props:(0,U.mergeProps)(L,y,{role:"separator",tabIndex:f?-1:y.tabIndex??0,"aria-label":y["aria-label"]??"Resize","aria-orientation":r==="y"?"horizontal":"vertical","aria-valuemin":n,"aria-valuemax":c,"aria-valuenow":v,"aria-disabled":f||void 0,"aria-keyshortcuts":y["aria-keyshortcuts"]??(u.isDefined(l)&&!f?"Enter Space":void 0),className:(0,M.clsx)(V.area,C),children:x})})};Object.defineProperty(exports,"ResizeHandle",{enumerable:!0,get:function(){return B}});
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { t as g } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { i as S, t as A } from "./useIsMobile-nrufFzMb.js";
|
|
3
|
-
import { isNonEmptyArray as v, isString as E } from "@sniptt/guards";
|
|
4
|
-
import { clsx as w } from "clsx";
|
|
5
|
-
import { Fragment as C } from "react";
|
|
6
|
-
import { jsx as s, jsxs as h } from "react/jsx-runtime";
|
|
7
|
-
var x = /* @__PURE__ */ new Map([
|
|
8
|
-
["⌘", "Command"],
|
|
9
|
-
["⌥", "Option"],
|
|
10
|
-
["⇧", "Shift"],
|
|
11
|
-
["⌃", "Control"],
|
|
12
|
-
["Ctrl", "Control"],
|
|
13
|
-
["⏎", "Enter"],
|
|
14
|
-
["↵", "Enter"],
|
|
15
|
-
["⌫", "Backspace"],
|
|
16
|
-
["↑", "Arrow up"],
|
|
17
|
-
["↓", "Arrow down"],
|
|
18
|
-
["←", "Arrow left"],
|
|
19
|
-
["→", "Arrow right"],
|
|
20
|
-
["esc", "Escape"]
|
|
21
|
-
]), y = (o) => o.every(E), j = ({ shortcut: o, platform: i, sequenceJoinLabel: l = "then", combinationSeparator: d }) => {
|
|
22
|
-
const e = S(), a = i === "mac" || !g(i) && (e === "mac" || e === "ios"), u = /* @__PURE__ */ new Map([
|
|
23
|
-
["Mod", a ? "⌘" : "Ctrl"],
|
|
24
|
-
["CommandOrControl", a ? "⌘" : "Ctrl"],
|
|
25
|
-
["Command", "⌘"],
|
|
26
|
-
["Control", "Ctrl"],
|
|
27
|
-
["Alt", a ? "⌥" : "Alt"],
|
|
28
|
-
["Enter", "⏎"]
|
|
29
|
-
]), n = (y(o) ? [o] : o).filter(v).map((r) => r.map((t) => u.get(t) ?? t)), c = d ?? (a ? "" : " "), m = ` ${l} `;
|
|
30
|
-
return {
|
|
31
|
-
groups: n,
|
|
32
|
-
separator: c,
|
|
33
|
-
sequenceJoinLabel: l,
|
|
34
|
-
text: n.map((r) => r.join(c)).join(m),
|
|
35
|
-
accessibleLabel: n.map((r) => r.map((t) => x.get(t) ?? t).join(" + ")).join(m)
|
|
36
|
-
};
|
|
37
|
-
}, k = "_root_1llux_1", M = "_content_1llux_28", L = "_combination_1llux_29", N = "_key_1llux_35", p = {
|
|
38
|
-
root: k,
|
|
39
|
-
content: M,
|
|
40
|
-
combination: L,
|
|
41
|
-
key: N
|
|
42
|
-
}, K = ({ shortcut: o, platform: i, sequenceJoinLabel: l, combinationSeparator: d, variant: e = "keys", visibility: a = "always", className: u, "aria-label": n, ...c }) => {
|
|
43
|
-
const m = A(), r = j({
|
|
44
|
-
shortcut: o,
|
|
45
|
-
platform: i,
|
|
46
|
-
sequenceJoinLabel: l,
|
|
47
|
-
combinationSeparator: d
|
|
48
|
-
});
|
|
49
|
-
return !v(r.groups) || a === "desktop" && m ? null : /* @__PURE__ */ s("span", {
|
|
50
|
-
...c,
|
|
51
|
-
className: w(p.root, u),
|
|
52
|
-
"data-variant": e,
|
|
53
|
-
role: "img",
|
|
54
|
-
"aria-label": n ?? r.accessibleLabel,
|
|
55
|
-
children: /* @__PURE__ */ s("span", {
|
|
56
|
-
className: p.content,
|
|
57
|
-
"aria-hidden": !0,
|
|
58
|
-
children: e !== "keys" ? r.text : r.groups.map((t, _) => /* @__PURE__ */ h(C, { children: [_ > 0 && /* @__PURE__ */ s("span", { children: ` ${r.sequenceJoinLabel} ` }), /* @__PURE__ */ s("span", {
|
|
59
|
-
className: p.combination,
|
|
60
|
-
children: t.map((f, b) => /* @__PURE__ */ h(C, { children: [b > 0 && r.separator, /* @__PURE__ */ s("kbd", {
|
|
61
|
-
className: p.key,
|
|
62
|
-
children: f
|
|
63
|
-
})] }, b))
|
|
64
|
-
})] }, _))
|
|
65
|
-
})
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
export {
|
|
69
|
-
j as n,
|
|
70
|
-
K as t
|
|
71
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const S=require("./isDefined-DS2Q42p5.cjs"),j=require("./useIsMobile-DxOPI2_E.cjs");let _=require("@sniptt/guards"),v=require("clsx"),h=require("react"),n=require("react/jsx-runtime");var y=new Map([["⌘","Command"],["⌥","Option"],["⇧","Shift"],["⌃","Control"],["Ctrl","Control"],["⏎","Enter"],["↵","Enter"],["⌫","Backspace"],["↑","Arrow up"],["↓","Arrow down"],["←","Arrow left"],["→","Arrow right"],["esc","Escape"]]),f=r=>r.every(_.isString),x=({shortcut:r,platform:i,sequenceJoinLabel:l="then",combinationSeparator:p})=>{const o=j.getUserDevice(),a=i==="mac"||!S.isDefined(i)&&(o==="mac"||o==="ios"),d=new Map([["Mod",a?"⌘":"Ctrl"],["CommandOrControl",a?"⌘":"Ctrl"],["Command","⌘"],["Control","Ctrl"],["Alt",a?"⌥":"Alt"],["Enter","⏎"]]),s=(f(r)?[r]:r).filter(_.isNonEmptyArray).map(e=>e.map(t=>d.get(t)??t)),c=p??(a?"":" "),u=` ${l} `;return{groups:s,separator:c,sequenceJoinLabel:l,text:s.map(e=>e.join(c)).join(u),accessibleLabel:s.map(e=>e.map(t=>y.get(t)??t).join(" + ")).join(u)}},A="_root_1llux_1",E="_content_1llux_28",q="_combination_1llux_29",w="_key_1llux_35",m={root:A,content:E,combination:q,key:w},M=({shortcut:r,platform:i,sequenceJoinLabel:l,combinationSeparator:p,variant:o="keys",visibility:a="always",className:d,"aria-label":s,...c})=>{const u=j.useIsMobile(),e=x({shortcut:r,platform:i,sequenceJoinLabel:l,combinationSeparator:p});return!(0,_.isNonEmptyArray)(e.groups)||a==="desktop"&&u?null:(0,n.jsx)("span",{...c,className:(0,v.clsx)(m.root,d),"data-variant":o,role:"img","aria-label":s??e.accessibleLabel,children:(0,n.jsx)("span",{className:m.content,"aria-hidden":!0,children:o!=="keys"?e.text:e.groups.map((t,b)=>(0,n.jsxs)(h.Fragment,{children:[b>0&&(0,n.jsx)("span",{children:` ${e.sequenceJoinLabel} `}),(0,n.jsx)("span",{className:m.combination,children:t.map((C,g)=>(0,n.jsxs)(h.Fragment,{children:[g>0&&e.separator,(0,n.jsx)("kbd",{className:m.key,children:C})]},g))})]},b))})})};Object.defineProperty(exports,"Shortcut",{enumerable:!0,get:function(){return M}});Object.defineProperty(exports,"getShortcutPresentation",{enumerable:!0,get:function(){return x}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const r=require("./isRenderableSlot-Guryb6Nf.cjs");let a=require("react/jsx-runtime");var _="_root_ub2oy_1",o="_list_ub2oy_10",b="_tab_ub2oy_37",u="_content_ub2oy_89",i="_label_ub2oy_108",c="_startIcon_ub2oy_114",d="_badge_ub2oy_115",v="_panel_ub2oy_130",y="_indicator_ub2oy_139",e={root:_,list:o,tab:b,content:u,label:i,startIcon:c,badge:d,panel:v,indicator:y},m=({children:s,startIcon:t,endIcon:n,badge:l})=>(0,a.jsxs)("span",{className:e.content,children:[r.isRenderableSlot(t)&&(0,a.jsx)("span",{className:e.startIcon,"aria-hidden":!0,children:t}),(0,a.jsx)("span",{className:e.label,children:s}),r.isRenderableSlot(n)&&(0,a.jsx)("span",{className:e.startIcon,"aria-hidden":!0,children:n}),r.isRenderableSlot(l)&&(0,a.jsx)("span",{className:e.badge,children:l})]});Object.defineProperty(exports,"Tab_module_default",{enumerable:!0,get:function(){return e}});Object.defineProperty(exports,"TabsTabContent",{enumerable:!0,get:function(){return m}});
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { t } from "./isRenderableSlot-DT_depzM.js";
|
|
2
|
-
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
var l = "_root_ub2oy_1", b = "_list_ub2oy_10", i = "_tab_ub2oy_37", c = "_content_ub2oy_89", d = "_label_ub2oy_108", u = "_startIcon_ub2oy_114", v = "_badge_ub2oy_115", m = "_panel_ub2oy_130", p = "_indicator_ub2oy_139", a = {
|
|
4
|
-
root: l,
|
|
5
|
-
list: b,
|
|
6
|
-
tab: i,
|
|
7
|
-
content: c,
|
|
8
|
-
label: d,
|
|
9
|
-
startIcon: u,
|
|
10
|
-
badge: v,
|
|
11
|
-
panel: m,
|
|
12
|
-
indicator: p
|
|
13
|
-
}, N = ({ children: s, startIcon: e, endIcon: _, badge: o }) => /* @__PURE__ */ n("span", {
|
|
14
|
-
className: a.content,
|
|
15
|
-
children: [
|
|
16
|
-
t(e) && /* @__PURE__ */ r("span", {
|
|
17
|
-
className: a.startIcon,
|
|
18
|
-
"aria-hidden": !0,
|
|
19
|
-
children: e
|
|
20
|
-
}),
|
|
21
|
-
/* @__PURE__ */ r("span", {
|
|
22
|
-
className: a.label,
|
|
23
|
-
children: s
|
|
24
|
-
}),
|
|
25
|
-
t(_) && /* @__PURE__ */ r("span", {
|
|
26
|
-
className: a.startIcon,
|
|
27
|
-
"aria-hidden": !0,
|
|
28
|
-
children: _
|
|
29
|
-
}),
|
|
30
|
-
t(o) && /* @__PURE__ */ r("span", {
|
|
31
|
-
className: a.badge,
|
|
32
|
-
children: o
|
|
33
|
-
})
|
|
34
|
-
]
|
|
35
|
-
});
|
|
36
|
-
export {
|
|
37
|
-
a as n,
|
|
38
|
-
N as t
|
|
39
|
-
};
|
package/dist/Tooltip-BMkznyoi.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { t as ir } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { t as er } from "./theme-B2EaXhye.js";
|
|
3
|
-
import { t as c } from "./mergeClassNames-ClFMR1v0.js";
|
|
4
|
-
import { t as s } from "./isRenderableSlot-DT_depzM.js";
|
|
5
|
-
import { t as ar } from "./useProvidedTextDirection-Dk8LBQeF.js";
|
|
6
|
-
import { isFunction as T, isNumber as tr, isString as sr } from "@sniptt/guards";
|
|
7
|
-
import { Fragment as h, jsx as o, jsxs as p } from "react/jsx-runtime";
|
|
8
|
-
import { Tooltip as e } from "@base-ui/react/tooltip";
|
|
9
|
-
var nr = "_positioner_w2bea_1", pr = "_popup_w2bea_5", lr = "_content_w2bea_47", dr = "_title_w2bea_53", cr = "_icon_w2bea_65", mr = "_description_w2bea_75", _r = "_arrow_w2bea_81", n = {
|
|
10
|
-
positioner: nr,
|
|
11
|
-
popup: pr,
|
|
12
|
-
content: lr,
|
|
13
|
-
title: dr,
|
|
14
|
-
icon: cr,
|
|
15
|
-
description: mr,
|
|
16
|
-
arrow: _r
|
|
17
|
-
}, w = ({ className: r, ...i }) => /* @__PURE__ */ o(e.Arrow, {
|
|
18
|
-
...i,
|
|
19
|
-
className: c(n.arrow, r)
|
|
20
|
-
}), vr = ({ children: r, description: i, startIcon: a }) => /* @__PURE__ */ p("div", {
|
|
21
|
-
className: n.content,
|
|
22
|
-
children: [s(r) && /* @__PURE__ */ p("div", {
|
|
23
|
-
className: n.title,
|
|
24
|
-
children: [s(a) && /* @__PURE__ */ o("span", {
|
|
25
|
-
className: n.icon,
|
|
26
|
-
"aria-hidden": !0,
|
|
27
|
-
children: a
|
|
28
|
-
}), /* @__PURE__ */ o("span", { children: r })]
|
|
29
|
-
}), s(i) && /* @__PURE__ */ o("div", {
|
|
30
|
-
className: n.description,
|
|
31
|
-
children: i
|
|
32
|
-
})]
|
|
33
|
-
}), f = ({ className: r, withExitAnimation: i = !1, ...a }) => /* @__PURE__ */ o(e.Popup, {
|
|
34
|
-
role: "tooltip",
|
|
35
|
-
"data-with-exit-animation": i || void 0,
|
|
36
|
-
...a,
|
|
37
|
-
className: c(n.popup, r)
|
|
38
|
-
}), b = ({ container: r, ...i }) => {
|
|
39
|
-
const a = er();
|
|
40
|
-
return /* @__PURE__ */ o(e.Portal, {
|
|
41
|
-
...i,
|
|
42
|
-
container: r ?? a ?? void 0
|
|
43
|
-
});
|
|
44
|
-
}, g = ({ className: r, ...i }) => {
|
|
45
|
-
const a = ar();
|
|
46
|
-
return /* @__PURE__ */ o(e.Positioner, {
|
|
47
|
-
dir: a,
|
|
48
|
-
...i,
|
|
49
|
-
className: c(n.positioner, r)
|
|
50
|
-
});
|
|
51
|
-
}, ur = 10, Tr = "300px", hr = ({ content: r, children: i, description: a, startIcon: m, open: _, defaultOpen: P, onOpenChange: N, onOpenChangeComplete: D, disabled: x = !1, disableHoverablePopup: A, trackCursorAxis: F, actionsRef: H, handle: E, triggerId: R, defaultTriggerId: S, delay: j, closeDelay: y, closeOnClick: L, side: O = "top", align: U = "center", sideOffset: V = ur, alignOffset: B, anchor: C, positionMethod: M, collisionBoundary: W, collisionPadding: X, collisionAvoidance: $, sticky: k, arrowPadding: q, disableAnchorTracking: z, arrow: G = !1, maxWidth: I = Tr, container: J, keepMounted: K, triggerProps: Q, positionerProps: Y, portalProps: Z, ...rr }) => {
|
|
52
|
-
const l = s(a), d = x || !T(r) && !s(r) && !l, v = /* @__PURE__ */ o(e.Trigger, {
|
|
53
|
-
render: i,
|
|
54
|
-
delay: j,
|
|
55
|
-
closeDelay: y,
|
|
56
|
-
closeOnClick: L,
|
|
57
|
-
...Q
|
|
58
|
-
}), u = (t) => {
|
|
59
|
-
if (!(s(t) || l)) return /* @__PURE__ */ o(h, { children: v });
|
|
60
|
-
const or = sr(t) || tr(t) || l || s(m);
|
|
61
|
-
return /* @__PURE__ */ p(h, { children: [v, /* @__PURE__ */ o(b, {
|
|
62
|
-
container: J,
|
|
63
|
-
keepMounted: K,
|
|
64
|
-
...Z,
|
|
65
|
-
children: /* @__PURE__ */ o(g, {
|
|
66
|
-
side: O,
|
|
67
|
-
align: U,
|
|
68
|
-
sideOffset: V,
|
|
69
|
-
alignOffset: B,
|
|
70
|
-
anchor: C,
|
|
71
|
-
positionMethod: M,
|
|
72
|
-
collisionBoundary: W,
|
|
73
|
-
collisionPadding: X,
|
|
74
|
-
collisionAvoidance: $,
|
|
75
|
-
sticky: k,
|
|
76
|
-
arrowPadding: q,
|
|
77
|
-
disableAnchorTracking: z,
|
|
78
|
-
style: { maxWidth: I },
|
|
79
|
-
...Y,
|
|
80
|
-
children: /* @__PURE__ */ p(f, {
|
|
81
|
-
...rr,
|
|
82
|
-
children: [or ? /* @__PURE__ */ o(vr, {
|
|
83
|
-
description: a,
|
|
84
|
-
startIcon: m,
|
|
85
|
-
children: t
|
|
86
|
-
}) : t, G && /* @__PURE__ */ o(w, {})]
|
|
87
|
-
})
|
|
88
|
-
})
|
|
89
|
-
})] });
|
|
90
|
-
};
|
|
91
|
-
return /* @__PURE__ */ o(e.Root, {
|
|
92
|
-
open: ir(_) ? _ && !d : void 0,
|
|
93
|
-
defaultOpen: P && !d,
|
|
94
|
-
onOpenChange: N,
|
|
95
|
-
onOpenChangeComplete: D,
|
|
96
|
-
disabled: d,
|
|
97
|
-
disableHoverablePopup: A,
|
|
98
|
-
trackCursorAxis: F,
|
|
99
|
-
actionsRef: H,
|
|
100
|
-
handle: E,
|
|
101
|
-
triggerId: R,
|
|
102
|
-
defaultTriggerId: S,
|
|
103
|
-
children: T(r) ? (t) => u(r(t)) : u(r)
|
|
104
|
-
});
|
|
105
|
-
}, Ar = Object.assign(hr, {
|
|
106
|
-
Root: e.Root,
|
|
107
|
-
Trigger: e.Trigger,
|
|
108
|
-
Portal: b,
|
|
109
|
-
Positioner: g,
|
|
110
|
-
Popup: f,
|
|
111
|
-
Arrow: w,
|
|
112
|
-
Viewport: e.Viewport,
|
|
113
|
-
Provider: e.Provider,
|
|
114
|
-
Handle: e.Handle,
|
|
115
|
-
createHandle: e.createHandle
|
|
116
|
-
});
|
|
117
|
-
export {
|
|
118
|
-
vr as n,
|
|
119
|
-
Ar as t
|
|
120
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const re=require("./theme-1XkFz8Qu.cjs"),ie=require("./isDefined-DS2Q42p5.cjs"),c=require("./mergeClassNames-D4lshrT6.cjs"),a=require("./isRenderableSlot-Guryb6Nf.cjs"),oe=require("./useProvidedTextDirection-PVaoQCLH.cjs");let n=require("@sniptt/guards"),e=require("react/jsx-runtime"),o=require("@base-ui/react/tooltip");var te="_positioner_w2bea_1",se="_popup_w2bea_5",ae="_content_w2bea_47",le="_title_w2bea_53",ne="_icon_w2bea_65",pe="_description_w2bea_75",de="_arrow_w2bea_81",l={positioner:te,popup:se,content:ae,title:le,icon:ne,description:pe,arrow:de},b=({className:r,...i})=>(0,e.jsx)(o.Tooltip.Arrow,{...i,className:c.mergeClassNames(l.arrow,r)}),x=({children:r,description:i,startIcon:t})=>(0,e.jsxs)("div",{className:l.content,children:[a.isRenderableSlot(r)&&(0,e.jsxs)("div",{className:l.title,children:[a.isRenderableSlot(t)&&(0,e.jsx)("span",{className:l.icon,"aria-hidden":!0,children:t}),(0,e.jsx)("span",{children:r})]}),a.isRenderableSlot(i)&&(0,e.jsx)("div",{className:l.description,children:i})]}),v=({className:r,withExitAnimation:i=!1,...t})=>(0,e.jsx)(o.Tooltip.Popup,{role:"tooltip","data-with-exit-animation":i||void 0,...t,className:c.mergeClassNames(l.popup,r)}),j=({container:r,...i})=>{const t=re.useThemeContainer();return(0,e.jsx)(o.Tooltip.Portal,{...i,container:r??t??void 0})},g=({className:r,...i})=>{const t=oe.useProvidedTextDirection();return(0,e.jsx)(o.Tooltip.Positioner,{dir:t,...i,className:c.mergeClassNames(l.positioner,r)})},ce=10,ue="300px",_e=({content:r,children:i,description:t,startIcon:u,open:_,defaultOpen:h,onOpenChange:w,onOpenChangeComplete:P,disabled:q=!1,disableHoverablePopup:f,trackCursorAxis:N,actionsRef:R,handle:S,triggerId:D,defaultTriggerId:F,delay:y,closeDelay:A,closeOnClick:H,side:O="top",align:C="center",sideOffset:E=ce,alignOffset:L,anchor:B,positionMethod:U,collisionBoundary:V,collisionPadding:M,collisionAvoidance:W,sticky:X,arrowPadding:k,disableAnchorTracking:z,arrow:G=!1,maxWidth:I=ue,container:J,keepMounted:K,triggerProps:Q,positionerProps:Y,portalProps:Z,...$})=>{const p=a.isRenderableSlot(t),d=q||!(0,n.isFunction)(r)&&!a.isRenderableSlot(r)&&!p,T=(0,e.jsx)(o.Tooltip.Trigger,{render:i,delay:y,closeDelay:A,closeOnClick:H,...Q}),m=s=>{if(!(a.isRenderableSlot(s)||p))return(0,e.jsx)(e.Fragment,{children:T});const ee=(0,n.isString)(s)||(0,n.isNumber)(s)||p||a.isRenderableSlot(u);return(0,e.jsxs)(e.Fragment,{children:[T,(0,e.jsx)(j,{container:J,keepMounted:K,...Z,children:(0,e.jsx)(g,{side:O,align:C,sideOffset:E,alignOffset:L,anchor:B,positionMethod:U,collisionBoundary:V,collisionPadding:M,collisionAvoidance:W,sticky:X,arrowPadding:k,disableAnchorTracking:z,style:{maxWidth:I},...Y,children:(0,e.jsxs)(v,{...$,children:[ee?(0,e.jsx)(x,{description:t,startIcon:u,children:s}):s,G&&(0,e.jsx)(b,{})]})})})]})};return(0,e.jsx)(o.Tooltip.Root,{open:ie.isDefined(_)?_&&!d:void 0,defaultOpen:h&&!d,onOpenChange:w,onOpenChangeComplete:P,disabled:d,disableHoverablePopup:f,trackCursorAxis:N,actionsRef:R,handle:S,triggerId:D,defaultTriggerId:F,children:(0,n.isFunction)(r)?s=>m(r(s)):m(r)})},Te=Object.assign(_e,{Root:o.Tooltip.Root,Trigger:o.Tooltip.Trigger,Portal:j,Positioner:g,Popup:v,Arrow:b,Viewport:o.Tooltip.Viewport,Provider:o.Tooltip.Provider,Handle:o.Tooltip.Handle,createHandle:o.Tooltip.createHandle});Object.defineProperty(exports,"Tooltip",{enumerable:!0,get:function(){return Te}});Object.defineProperty(exports,"TooltipBody",{enumerable:!0,get:function(){return x}});
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { t as c } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { a as i } from "./theme-B2EaXhye.js";
|
|
3
|
-
import { s as O } from "./utilities-CEi9I09B.js";
|
|
4
|
-
import { t as V } from "./Loader-DtHWQH8w.js";
|
|
5
|
-
import { t as S } from "./OverflowingTextWithTooltip-Be2-wCcZ.js";
|
|
6
|
-
import { useRender as _ } from "@base-ui/react/use-render";
|
|
7
|
-
import { isBoolean as C, isString as E } from "@sniptt/guards";
|
|
8
|
-
import { clsx as g } from "clsx";
|
|
9
|
-
import { Fragment as v, jsx as n, jsxs as x } from "react/jsx-runtime";
|
|
10
|
-
var pa = {
|
|
11
|
-
xl: {
|
|
12
|
-
fontSize: "16px",
|
|
13
|
-
width: "40px"
|
|
14
|
-
},
|
|
15
|
-
lg: {
|
|
16
|
-
fontSize: "13px",
|
|
17
|
-
width: "24px"
|
|
18
|
-
},
|
|
19
|
-
md: {
|
|
20
|
-
fontSize: "12px",
|
|
21
|
-
width: "16px"
|
|
22
|
-
},
|
|
23
|
-
sm: {
|
|
24
|
-
fontSize: "10px",
|
|
25
|
-
width: "14px"
|
|
26
|
-
},
|
|
27
|
-
xs: {
|
|
28
|
-
fontSize: "8px",
|
|
29
|
-
width: "12px"
|
|
30
|
-
}
|
|
31
|
-
}, Y = "_badge_1q6rc_1", $ = { badge: Y }, da = ({ size: a = "sm", color: t = "tertiary", shape: r = "pill", className: l, render: e, ref: s, ...o }) => _({
|
|
32
|
-
defaultTagName: "span",
|
|
33
|
-
render: e,
|
|
34
|
-
ref: s,
|
|
35
|
-
props: {
|
|
36
|
-
...o,
|
|
37
|
-
className: g($.badge, l),
|
|
38
|
-
"data-badge-size": a,
|
|
39
|
-
"data-badge-color": t,
|
|
40
|
-
"data-badge-shape": r
|
|
41
|
-
}
|
|
42
|
-
}), F = "_chip_a644p_1", U = "_endElementDivider_a644p_75", T = {
|
|
43
|
-
chip: F,
|
|
44
|
-
endElementDivider: U
|
|
45
|
-
}, Z = { height: "var(--t-spacing-4)" }, ma = ({ children: a, size: t = "sm", variant: r = "ghost", color: l = "primary", shape: e = "square", weight: s = "regular", onClick: o, clickable: d = c(o), startElement: m, endElement: p, endElementDivider: h = !1, maxWidth: f, truncate: b = !0, tooltipContent: w, tooltipDelay: q, isTooltipMultiline: k, tooltipPlace: z, alwaysShowTooltip: B = !1, className: D, style: j, render: A, ref: L, ...R }) => {
|
|
46
|
-
const P = c(a) && !C(a) && a !== "", M = E(a) ? {
|
|
47
|
-
text: a,
|
|
48
|
-
tooltipContent: w
|
|
49
|
-
} : {
|
|
50
|
-
text: a ?? !1,
|
|
51
|
-
tooltipContent: w ?? ""
|
|
52
|
-
};
|
|
53
|
-
return _({
|
|
54
|
-
render: A,
|
|
55
|
-
ref: L,
|
|
56
|
-
state: {
|
|
57
|
-
size: t,
|
|
58
|
-
variant: r,
|
|
59
|
-
color: l,
|
|
60
|
-
shape: e,
|
|
61
|
-
weight: s,
|
|
62
|
-
clickable: d,
|
|
63
|
-
truncate: b
|
|
64
|
-
},
|
|
65
|
-
props: {
|
|
66
|
-
...R,
|
|
67
|
-
onClick: o,
|
|
68
|
-
className: g(T.chip, D),
|
|
69
|
-
style: {
|
|
70
|
-
...c(f) ? { "--tw-chip-max-width": `calc(${f}px - 2 * var(--tw-chip-padding))` } : {},
|
|
71
|
-
...j
|
|
72
|
-
},
|
|
73
|
-
children: /* @__PURE__ */ x(v, { children: [
|
|
74
|
-
m,
|
|
75
|
-
P && /* @__PURE__ */ n(S, {
|
|
76
|
-
...M,
|
|
77
|
-
render: /* @__PURE__ */ n("span", {}),
|
|
78
|
-
style: t === "md" ? Z : void 0,
|
|
79
|
-
truncate: b,
|
|
80
|
-
tooltipDelay: q,
|
|
81
|
-
isTooltipMultiline: k,
|
|
82
|
-
tooltipPlace: z,
|
|
83
|
-
alwaysShowTooltip: B
|
|
84
|
-
}),
|
|
85
|
-
c(p) && p !== !1 && /* @__PURE__ */ x(v, { children: [h && /* @__PURE__ */ n("span", { className: T.endElementDivider }), p] })
|
|
86
|
-
] })
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
}, G = "_root_6bfj6_1", H = "_circle_6bfj6_13", y = {
|
|
90
|
-
root: G,
|
|
91
|
-
circle: H
|
|
92
|
-
}, ca = ({ colorName: a, color: t, variant: r, className: l, style: e, render: s, ref: o, ...d }) => _({
|
|
93
|
-
defaultTagName: "div",
|
|
94
|
-
render: s,
|
|
95
|
-
ref: o,
|
|
96
|
-
props: {
|
|
97
|
-
...d,
|
|
98
|
-
className: g(y.root, r === "circle" && y.circle, l),
|
|
99
|
-
style: {
|
|
100
|
-
"--color-sample-color": t ?? i.tag.background[a],
|
|
101
|
-
"--color-sample-border-color": i.tag.text[a],
|
|
102
|
-
...e
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}), I = "_status_y5v42_1", J = "_content_y5v42_49", N = {
|
|
106
|
-
status: I,
|
|
107
|
-
content: J
|
|
108
|
-
}, _a = ({ children: a, color: t, loading: r = !1, weight: l = "regular", className: e, style: s, render: o, ref: d, ...m }) => {
|
|
109
|
-
const p = O(t);
|
|
110
|
-
return _({
|
|
111
|
-
defaultTagName: "span",
|
|
112
|
-
render: o,
|
|
113
|
-
ref: d,
|
|
114
|
-
state: {
|
|
115
|
-
loading: r,
|
|
116
|
-
weight: l
|
|
117
|
-
},
|
|
118
|
-
props: {
|
|
119
|
-
"aria-busy": r || void 0,
|
|
120
|
-
...m,
|
|
121
|
-
className: g(N.status, e),
|
|
122
|
-
style: {
|
|
123
|
-
"--tw-status-background": i.tag.background[p],
|
|
124
|
-
"--tw-status-text-color": i.tag.text[p],
|
|
125
|
-
...s
|
|
126
|
-
},
|
|
127
|
-
children: /* @__PURE__ */ x(v, { children: [/* @__PURE__ */ n("span", {
|
|
128
|
-
className: N.content,
|
|
129
|
-
children: a
|
|
130
|
-
}), r && /* @__PURE__ */ n(V, {
|
|
131
|
-
color: t,
|
|
132
|
-
"aria-hidden": "true",
|
|
133
|
-
render: /* @__PURE__ */ n("span", {})
|
|
134
|
-
})] })
|
|
135
|
-
}
|
|
136
|
-
});
|
|
137
|
-
}, K = "_tag_1rqsl_1", Q = "_content_1rqsl_46", W = "_overflowingText_1rqsl_55", X = "_iconContainer_1rqsl_59", u = {
|
|
138
|
-
tag: K,
|
|
139
|
-
content: Q,
|
|
140
|
-
overflowingText: W,
|
|
141
|
-
iconContainer: X
|
|
142
|
-
}, ga = ({ children: a, color: t, weight: r = "regular", variant: l = "soft", startIcon: e, truncate: s = !0, borderStyle: o = "solid", className: d, style: m, render: p, ref: h, ...f }) => _({
|
|
143
|
-
defaultTagName: "span",
|
|
144
|
-
render: p,
|
|
145
|
-
ref: h,
|
|
146
|
-
state: {
|
|
147
|
-
variant: l,
|
|
148
|
-
weight: r,
|
|
149
|
-
truncate: s
|
|
150
|
-
},
|
|
151
|
-
props: {
|
|
152
|
-
...f,
|
|
153
|
-
className: g(u.tag, d),
|
|
154
|
-
style: {
|
|
155
|
-
"--tw-tag-background": t === "transparent" ? "transparent" : i.tag.background[t] ?? i.tag.background.gray,
|
|
156
|
-
"--tw-tag-text": t === "transparent" ? i.font.color.secondary : i.tag.text[t] ?? i.font.color.secondary,
|
|
157
|
-
"--tw-tag-border-style": o,
|
|
158
|
-
...m
|
|
159
|
-
},
|
|
160
|
-
children: /* @__PURE__ */ x(v, { children: [c(e) && !C(e) && e !== "" && /* @__PURE__ */ n("span", {
|
|
161
|
-
className: u.iconContainer,
|
|
162
|
-
"aria-hidden": !0,
|
|
163
|
-
children: e
|
|
164
|
-
}), /* @__PURE__ */ n("span", {
|
|
165
|
-
className: u.content,
|
|
166
|
-
children: E(a) && s ? /* @__PURE__ */ n(S, {
|
|
167
|
-
text: a,
|
|
168
|
-
render: /* @__PURE__ */ n("span", {}),
|
|
169
|
-
className: u.overflowingText
|
|
170
|
-
}) : a
|
|
171
|
-
})] })
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
export {
|
|
175
|
-
da as a,
|
|
176
|
-
ma as i,
|
|
177
|
-
_a as n,
|
|
178
|
-
pa as o,
|
|
179
|
-
ca as r,
|
|
180
|
-
ga as t
|
|
181
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const l=require("./theme-1XkFz8Qu.cjs"),p=require("./isDefined-DS2Q42p5.cjs"),A=require("./utilities-BeLfNQ0Q.cjs"),k=require("./Loader-Bb72CUQ9.cjs"),y=require("./OverflowingTextWithTooltip-BlufG-6n.cjs");let _=require("@base-ui/react/use-render"),f=require("@sniptt/guards"),g=require("clsx"),e=require("react/jsx-runtime");var z={xl:{fontSize:"16px",width:"40px"},lg:{fontSize:"13px",width:"24px"},md:{fontSize:"12px",width:"16px"},sm:{fontSize:"10px",width:"14px"},xs:{fontSize:"8px",width:"12px"}},L="_badge_1q6rc_1",F={badge:L},Y=({size:t="sm",color:r="tertiary",shape:s="pill",className:o,render:a,ref:n,...i})=>(0,_.useRender)({defaultTagName:"span",render:a,ref:n,props:{...i,className:(0,g.clsx)(F.badge,o),"data-badge-size":t,"data-badge-color":r,"data-badge-shape":s}}),I="_chip_a644p_1",M="_endElementDivider_a644p_75",j={chip:I,endElementDivider:M},W={height:"var(--t-spacing-4)"},Z=({children:t,size:r="sm",variant:s="ghost",color:o="primary",shape:a="square",weight:n="regular",onClick:i,clickable:d=p.isDefined(i),startElement:c,endElement:u,endElementDivider:b=!1,maxWidth:m,truncate:v=!0,tooltipContent:h,tooltipDelay:C,isTooltipMultiline:w,tooltipPlace:S,alwaysShowTooltip:N=!1,className:O,style:P,render:R,ref:V,...D})=>{const E=p.isDefined(t)&&!(0,f.isBoolean)(t)&&t!=="",B=(0,f.isString)(t)?{text:t,tooltipContent:h}:{text:t??!1,tooltipContent:h??""};return(0,_.useRender)({render:R,ref:V,state:{size:r,variant:s,color:o,shape:a,weight:n,clickable:d,truncate:v},props:{...D,onClick:i,className:(0,g.clsx)(j.chip,O),style:{...p.isDefined(m)?{"--tw-chip-max-width":`calc(${m}px - 2 * var(--tw-chip-padding))`}:{},...P},children:(0,e.jsxs)(e.Fragment,{children:[c,E&&(0,e.jsx)(y.OverflowingTextWithTooltip,{...B,render:(0,e.jsx)("span",{}),style:r==="md"?W:void 0,truncate:v,tooltipDelay:C,isTooltipMultiline:w,tooltipPlace:S,alwaysShowTooltip:N}),p.isDefined(u)&&u!==!1&&(0,e.jsxs)(e.Fragment,{children:[b&&(0,e.jsx)("span",{className:j.endElementDivider}),u]})]})}})},$="_root_6bfj6_1",U="_circle_6bfj6_13",T={root:$,circle:U},G=({colorName:t,color:r,variant:s,className:o,style:a,render:n,ref:i,...d})=>(0,_.useRender)({defaultTagName:"div",render:n,ref:i,props:{...d,className:(0,g.clsx)(T.root,s==="circle"&&T.circle,o),style:{"--color-sample-color":r??l.themeCssVariables.tag.background[t],"--color-sample-border-color":l.themeCssVariables.tag.text[t],...a}}}),H="_status_y5v42_1",J="_content_y5v42_49",q={status:H,content:J},K=({children:t,color:r,loading:s=!1,weight:o="regular",className:a,style:n,render:i,ref:d,...c})=>{const u=A.parseThemeColor(r);return(0,_.useRender)({defaultTagName:"span",render:i,ref:d,state:{loading:s,weight:o},props:{"aria-busy":s||void 0,...c,className:(0,g.clsx)(q.status,a),style:{"--tw-status-background":l.themeCssVariables.tag.background[u],"--tw-status-text-color":l.themeCssVariables.tag.text[u],...n},children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:q.content,children:t}),s&&(0,e.jsx)(k.Loader,{color:r,"aria-hidden":"true",render:(0,e.jsx)("span",{})})]})}})},Q="_tag_1rqsl_1",X="_content_1rqsl_46",ee="_overflowingText_1rqsl_55",te="_iconContainer_1rqsl_59",x={tag:Q,content:X,overflowingText:ee,iconContainer:te},re=({children:t,color:r,weight:s="regular",variant:o="soft",startIcon:a,truncate:n=!0,borderStyle:i="solid",className:d,style:c,render:u,ref:b,...m})=>(0,_.useRender)({defaultTagName:"span",render:u,ref:b,state:{variant:o,weight:s,truncate:n},props:{...m,className:(0,g.clsx)(x.tag,d),style:{"--tw-tag-background":r==="transparent"?"transparent":l.themeCssVariables.tag.background[r]??l.themeCssVariables.tag.background.gray,"--tw-tag-text":r==="transparent"?l.themeCssVariables.font.color.secondary:l.themeCssVariables.tag.text[r]??l.themeCssVariables.font.color.secondary,"--tw-tag-border-style":i,...c},children:(0,e.jsxs)(e.Fragment,{children:[p.isDefined(a)&&!(0,f.isBoolean)(a)&&a!==""&&(0,e.jsx)("span",{className:x.iconContainer,"aria-hidden":!0,children:a}),(0,e.jsx)("span",{className:x.content,children:(0,f.isString)(t)&&n?(0,e.jsx)(y.OverflowingTextWithTooltip,{text:t,render:(0,e.jsx)("span",{}),className:x.overflowingText}):t})]})}});Object.defineProperty(exports,"AVATAR_PROPERTIES_BY_SIZE",{enumerable:!0,get:function(){return z}});Object.defineProperty(exports,"Badge",{enumerable:!0,get:function(){return Y}});Object.defineProperty(exports,"Chip",{enumerable:!0,get:function(){return Z}});Object.defineProperty(exports,"ColorSample",{enumerable:!0,get:function(){return G}});Object.defineProperty(exports,"Status",{enumerable:!0,get:function(){return K}});Object.defineProperty(exports,"Tag",{enumerable:!0,get:function(){return re}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const y=require("./theme-1XkFz8Qu.cjs"),u=require("./isDefined-DS2Q42p5.cjs"),ae=require("./mergeClassNames-D4lshrT6.cjs"),D=require("./Button-COxEKIHL.cjs"),S=require("./ProgressBar-oF1qVHFx.cjs"),g=require("./isRenderableSlot-Guryb6Nf.cjs"),ce=require("./useProvidedTextDirection-PVaoQCLH.cjs"),ue=require("./OverflowingTextWithTooltip-BlufG-6n.cjs"),le=require("./Separator-UJVlrTzw.cjs");let W=require("@base-ui/react/use-render"),q=require("@sniptt/guards"),P=require("clsx"),d=require("react"),s=require("react/jsx-runtime"),K=require("@base-ui/utils/store"),de=require("react-dom"),h=require("@tabler/icons-react");var ve="_action_3r2bm_1",_e={action:ve},me=({className:e,...t})=>(0,s.jsx)(D.Button,{...t,size:"sm",variant:"ghost",className:ae.mergeClassNames(_e.action,e)}),fe="_container_1ix4w_1",pe="_containerFullWidth_1ix4w_40",Te="_header_1ix4w_44",xe="_iconContainer_1ix4w_53",he="_title_1ix4w_63",ge="_descriptionWrapper_1ix4w_75",be="_descriptionWrapperWithIcon_1ix4w_82",Ce="_descriptionWrapperWithAction_1ix4w_86",je="_description_1ix4w_75",we="_footer_1ix4w_99",Ne="_closeButton_1ix4w_106",m={container:fe,containerFullWidth:pe,header:Te,iconContainer:xe,title:he,descriptionWrapper:ge,descriptionWrapperWithIcon:be,descriptionWrapperWithAction:Ce,description:je,footer:we,closeButton:Ne},Pe=({status:e="info",variant:t="soft",color:r=S.FEEDBACK_STATUS_COLORS[e],title:o,description:n,fullWidth:i=!1,icon:a=(0,s.jsx)(h.IconHelp,{size:y.themeCssVariables.icon.size.md,"aria-hidden":"true"}),action:c,closeLabel:l="Close",onDismiss:v,className:T,render:f,ref:N,..._})=>{const b=g.isRenderableSlot(a),C=g.isRenderableSlot(c);return(0,W.useRender)({render:f,ref:N,state:{status:e,variant:t,color:r},props:{..._,className:(0,P.clsx)(m.container,i&&m.containerFullWidth,T),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:m.header,children:[b&&(0,s.jsx)("div",{className:m.iconContainer,children:a}),(0,s.jsx)("div",{className:m.title,children:o}),u.isDefined(v)&&(0,s.jsx)(D.Button,{type:"button",startIcon:(0,s.jsx)(h.IconX,{"aria-hidden":"true"}),className:m.closeButton,variant:"ghost",size:"sm","aria-label":l,onClick:()=>v()})]}),g.isRenderableSlot(n)&&(0,s.jsx)("div",{className:(0,P.clsx)(m.descriptionWrapper,b&&m.descriptionWrapperWithIcon,C&&m.descriptionWrapperWithAction),children:(0,s.jsx)("div",{className:m.description,children:n})}),C&&(0,s.jsx)("div",{className:m.footer,children:c})]})}})},qe=Object.assign(Pe,{Action:me}),Ie="_banner_17vm4_1",Ae="_embedded_17vm4_6",De="_bannerContent_17vm4_10",Se="_icon_17vm4_18",Re="_bannerText_17vm4_28",Be="_compact_17vm4_33",j={banner:Ie,embedded:Ae,bannerContent:De,icon:Se,bannerText:Re,compact:Be},Ee=({children:e,layout:t="standard",variant:r="soft",embedded:o=!1,icon:n=(0,s.jsx)(h.IconInfoCircle,{"aria-hidden":"true"}),className:i,...a})=>{const c=t==="compact",l=!c&&(0,q.isString)(e);return(0,s.jsx)(S.Banner,{...a,className:(0,P.clsx)(j.banner,c&&j.compact,o&&j.embedded,i),variant:r,"data-layout":t,children:(0,s.jsxs)("div",{className:j.bannerContent,children:[g.isRenderableSlot(n)&&(0,s.jsx)("span",{className:j.icon,children:n}),(0,s.jsx)("div",{className:j.bannerText,children:l?(0,s.jsx)(ue.OverflowingTextWithTooltip,{isFocusable:!0,text:(0,s.jsx)(s.Fragment,{children:e}),tooltipContent:e}):e})]})})},ye=Object.assign(Ee,{Action:S.Banner.Action}),I=e=>e.status==="visible",X=({store:e,toastsToClose:t,nextToasts:r=e.state.toasts})=>{const o=r.map(i=>t.includes(i)?{...i,status:"closing"}:i),n=e.state.mountedToasterCount>0;e.set("toasts",n?o:o.filter(I));for(const i of t)i.notification.onClose?.()},V=(0,d.createContext)(void 0),w=()=>{const e=(0,d.useContext)(V);if(!u.isDefined(e))throw new Error("Toast components must be used within a ToastProvider.");return e},G=()=>{const e=w();return{closeToast:r=>{const o=e.state.toasts.filter(n=>I(n)&&(!u.isDefined(r)||n.notification.id===r));(0,q.isNonEmptyArray)(o)&&X({store:e,toastsToClose:o})}}},U=0,We=()=>{const e=w();return{enqueueToast:(0,d.useMemo)(()=>{function t(r){if(!u.isDefined(r))return;const{dedupeKey:o,...n}=r,{toasts:i,limit:a}=e.state,c=i.filter(I),l=u.isDefined(o)?c.find(f=>f.dedupeKey===o):void 0;if(u.isDefined(l))return l.notification.id;U+=1;const v=`toast-${U}`,T=Math.max(0,c.length-a+1);return X({store:e,toastsToClose:c.slice(0,T),nextToasts:[...i,{notification:{...n,id:v},dedupeKey:o,status:"visible"}]}),v}return t},[e])}},Fe=({store:e,id:t,...r})=>{const o=e.state.toasts.find(a=>a.notification.id===t&&I(a)),n=Object.keys(r);if(!u.isDefined(o)||!(0,q.isNonEmptyArray)(n))return;const i=n.includes("duration")||u.isDefined(o.notification.progress)&&n.includes("progress")&&!u.isDefined(r.progress);e.set("toasts",e.state.toasts.map(a=>a===o?{...a,notification:{...a.notification,...r,id:t},...i?{durationRevision:(a.durationRevision??0)+1}:{}}:a))},Oe=()=>{const e=w();return{updateToast:(0,d.useCallback)(t=>Fe({store:e,...t}),[e])}},ke=()=>{const{closeToast:e}=G(),{enqueueToast:t}=We(),{updateToast:r}=Oe();return{enqueueToast:t,closeToast:e,updateToast:r}},Me="_root_181ka_1",$e="_progress_181ka_19",ze="_header_181ka_30",Le="_message_181ka_40",Ue="_icon_181ka_45",He="_actions_181ka_50",Ke="_description_181ka_56",Xe="_footer_181ka_65",Ve="_footerAction_181ka_69",Ge="_closeButton_181ka_76",p={root:Me,progress:$e,header:ze,message:Le,icon:Ue,actions:He,description:Ke,footer:Xe,footerAction:Ve,closeButton:Ge},J=(0,d.createContext)({durationRevision:0,isActive:!0}),Je=({clock:e,duration:t,progress:r,isPaused:o,onClose:n})=>{const{durationRevision:i,isActive:a}=(0,d.useContext)(J),c=u.isDefined(r);return(0,d.useLayoutEffect)(()=>{e.update({duration:t,durationRevision:i,isPaused:o,isProgress:c,isActive:a,onClose:n})},[e,t,i,o,c,a,n]),(0,d.useLayoutEffect)(()=>()=>e.stop(),[e]),null},Qe=({element:e,isFocused:t,onFocusChange:r})=>((0,d.useLayoutEffect)(()=>{if(!t||!u.isDefined(e))return;const o=()=>{e.contains(e.ownerDocument.activeElement)||r(!1)};o();const n=new MutationObserver(o);return n.observe(e,{childList:!0,subtree:!0}),()=>n.disconnect()},[e,t,r]),null),Q=e=>Number.isFinite(e)&&e>0,Ye="_countdown_1vuo8_1",Ze="_toastCountdown_1vuo8_1",et={countdown:Ye,toastCountdown:Ze},tt=({progress:e,duration:t,remainingDuration:r,revision:o,isPaused:n,barColor:i})=>u.isDefined(e)?(0,s.jsx)(S.ProgressBar,{value:e,barColor:i}):Q(t)?(0,s.jsx)("div",{className:et.countdown,"data-paused":n||void 0,style:{"--toast-countdown-color":i,"--toast-countdown-width":`${r/t*100}%`,"--toast-countdown-duration":`${r}ms`}},o):null,st=2**31-1,rt=({onChange:e})=>{let t,r=0,o,n,i=0,a=!1;const c=()=>{u.isDefined(o)&&(r=Math.max(0,r-(performance.now()-o)),o=void 0),clearTimeout(n),n=void 0},l=()=>{u.isDefined(t)&&(i+=1,e({duration:t.duration,remainingDuration:r,revision:i,isPaused:t.isPaused||!t.isActive}))},v=()=>{a||(c(),a=!0,r=0,l(),t?.onClose?.())},T=()=>u.isDefined(t)&&t.isActive&&!t.isPaused&&!t.isProgress&&Q(t.duration)&&!a,f=()=>{T()&&(o=performance.now(),n=setTimeout(()=>{if(c(),r>0){f();return}v()},Math.min(r,st)))};return{update:_=>{const b=!u.isDefined(t)||_.duration!==t.duration||_.durationRevision!==t.durationRevision||t.isProgress&&!_.isProgress,C=b||_.isProgress!==t?.isProgress||_.isPaused!==t?.isPaused||_.isActive!==t?.isActive,R=!u.isDefined(o)&&T();if(!C&&!R){t=_;return}c(),t=_,!a&&(b&&(r=Math.max(0,_.duration)),l(),f())},close:v,stop:c}},ot=({duration:e,isPaused:t})=>{const[r,o]=(0,d.useState)({duration:e,remainingDuration:e,revision:0,isPaused:t}),[n]=(0,d.useState)(()=>rt({onChange:o}));return{countdown:r,clock:n}},nt={neutral:h.IconAlertTriangle,error:h.IconAlertTriangle,success:h.IconSquareRoundedCheck,info:h.IconInfoCircle,warning:h.IconAlertTriangle},Y=({children:e,description:t,icon:r,iconLabel:o,action:n,progress:i,duration:a=6e3,onCancel:c,onClose:l,cancelLabel:v="Cancel",closeLabel:T="Close",status:f="neutral",role:N="status",className:_,onMouseEnter:b,onMouseLeave:C,onFocus:R,onBlur:Z,render:ee,ref:te,...se})=>{const F=y.useTheme(),[re,O]=(0,d.useState)(!1),[k,B]=(0,d.useState)(!1),[oe,ne]=(0,d.useState)(null),M=re||k,{countdown:A,clock:$}=ot({duration:a,isPaused:M}),ie=nt[f],z=F.snackBar[f==="neutral"?"default":f],L=(0,q.isUndefined)(r)?(0,s.jsx)(ie,{"aria-label":o,"aria-hidden":!u.isDefined(o),color:z.color,size:F.icon.size.md}):r;return(0,s.jsxs)(s.Fragment,{children:[(0,W.useRender)({render:ee,ref:[te??null,ne],props:{role:N,"aria-live":N==="alert"?"assertive":"polite",...se,className:(0,P.clsx)(p.root,_),onMouseEnter:x=>{O(!0),b?.(x)},onMouseLeave:x=>{O(!1),C?.(x)},onFocus:x=>{B(!0),R?.(x)},onBlur:x=>{x.currentTarget.contains(x.relatedTarget)||B(!1),Z?.(x)},children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:p.progress,"aria-hidden":!0,children:(0,s.jsx)(tt,{barColor:z.backgroundColor,progress:i,duration:A.duration,remainingDuration:A.remainingDuration,revision:A.revision,isPaused:A.isPaused})}),(0,s.jsxs)("div",{className:p.header,children:[g.isRenderableSlot(L)&&(0,s.jsx)("div",{className:p.icon,children:L}),(0,s.jsx)("div",{className:p.message,children:e}),(0,s.jsxs)("div",{className:p.actions,children:[u.isDefined(c)&&g.isRenderableSlot(v)&&(0,s.jsx)(D.Button,{onClick:c,size:"sm",variant:"ghost",style:{fontWeight:"var(--t-font-weight-regular)"},children:v}),u.isDefined(l)&&(0,s.jsx)(D.Button,{title:T,"aria-label":T,startIcon:(0,s.jsx)(h.IconX,{}),className:p.closeButton,variant:"ghost",size:"sm",onClick:$.close})]})]}),g.isRenderableSlot(t)&&(0,s.jsx)("div",{className:p.description,children:t}),g.isRenderableSlot(n)&&(0,s.jsxs)("div",{className:p.footer,children:[(0,s.jsx)(le.Separator,{}),(0,s.jsx)("div",{className:p.footerAction,children:n})]})]})}}),(0,s.jsx)(Qe,{element:oe,isFocused:k,onFocusChange:B}),(0,s.jsx)(Je,{clock:$,duration:a,progress:i,isPaused:M,onClose:l})]})},it=(e=3)=>{if(!(0,q.isPositiveInteger)(e))throw new Error("Toast limit must be a positive integer.");return new K.Store({toasts:[],limit:e,mountedToasterCount:0})},at=({children:e,limit:t=3})=>{const[r]=(0,d.useState)(()=>it(t));return(0,s.jsx)(V.Provider,{value:r,children:e})},ct="_root_1q2cc_1",ut="_item_1q2cc_20",lt="_itemContent_1q2cc_47",E={root:ct,item:ut,itemContent:lt},dt=()=>(0,K.useStore)(w(),e=>e.toasts),H=({store:e,toast:t})=>{const{toasts:r}=e.state;t.status==="closing"&&r.includes(t)&&e.set("toasts",r.filter(o=>o!==t))},vt=({elementRef:e,toastEntry:t})=>{const r=w();return(0,d.useLayoutEffect)(()=>{if(t.status==="visible")return;const o=e.current?.getAnimations?.()??[];if(o.length===0){H({store:r,toast:t});return}let n=!1;return Promise.allSettled(o.map(i=>i.finished)).then(()=>{n||H({store:r,toast:t})}),()=>{n=!0}},[e,t,r]),(0,s.jsx)(s.Fragment,{})},_t=({toastEntry:e,getToastProps:t,onClose:r})=>{const{notification:o,status:n,durationRevision:i=0}=e,{id:a,...c}=o,l=(0,d.useRef)(null);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:l,className:E.item,"data-exiting":n==="closing"||void 0,inert:n==="closing",children:(0,s.jsx)("div",{className:E.itemContent,children:(0,s.jsx)(J.Provider,{value:{durationRevision:i,isActive:n==="visible"},children:(0,s.jsx)(Y,{...c,...t?.(o),id:a,onClose:()=>r(a)})})})}),(0,s.jsx)(vt,{elementRef:l,toastEntry:e})]})},mt=({getToastProps:e})=>{const t=dt(),{closeToast:r}=G();return t.map(o=>(0,s.jsx)(_t,{toastEntry:o,getToastProps:e,onClose:r},o.notification.id))},ft=()=>{const e=w();return(0,d.useLayoutEffect)(()=>(e.set("mountedToasterCount",e.state.mountedToasterCount+1),()=>{e.set("mountedToasterCount",e.state.mountedToasterCount-1),!(e.state.mountedToasterCount>0)&&e.set("toasts",e.state.toasts.filter(I))}),[e]),null},pt=({container:e,getToastProps:t,className:r,render:o,ref:n,...i})=>{const a=y.useThemeContainer(),c=ce.useProvidedTextDirection(),l=e===void 0?a??(typeof document>"u"?null:document.body):e,v=(0,W.useRender)({render:o,ref:n,props:{role:"region",dir:c,"aria-label":"Notifications",...i,className:(0,P.clsx)(E.root,r),children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ft,{}),(0,s.jsx)(mt,{getToastProps:t})]})}});return u.isDefined(l)?(0,de.createPortal)(v,l):null};Object.defineProperty(exports,"Callout",{enumerable:!0,get:function(){return qe}});Object.defineProperty(exports,"InlineBanner",{enumerable:!0,get:function(){return ye}});Object.defineProperty(exports,"Toast",{enumerable:!0,get:function(){return Y}});Object.defineProperty(exports,"ToastProvider",{enumerable:!0,get:function(){return at}});Object.defineProperty(exports,"Toaster",{enumerable:!0,get:function(){return pt}});Object.defineProperty(exports,"useToast",{enumerable:!0,get:function(){return ke}});
|