twenty-ui 2.50.0 → 2.51.3
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/CHANGELOG.md +5 -0
- package/README.md +36 -32
- package/dist/{AllIcons-Cyd7721G.cjs → AllIcons-1tBWXXrE.cjs} +1 -1
- package/dist/{AllIcons-D132B8_i.js → AllIcons-ayl8BCtV.js} +1 -1
- package/dist/Dropdown-D_hFndP5.cjs +1 -0
- package/dist/Dropdown-xXsGBv57.js +1056 -0
- package/dist/Input-D1sIHUZ5.js +25 -0
- package/dist/Input-D69M4UwD.cjs +1 -0
- package/dist/ListItem-B-SFWJZb.cjs +1 -0
- package/dist/ListItem-WLONJMo5.js +91 -0
- package/dist/ListItem.module-B31VK9XZ.js +34 -0
- package/dist/ListItem.module-DiUK6-0Z.cjs +1 -0
- package/dist/OverflowingTextWithTooltip-ClpPsdpP.cjs +1 -0
- package/dist/OverflowingTextWithTooltip-D4eZc-7P.js +96 -0
- package/dist/ProgressBar-8pjpGrmZ.js +99 -0
- package/dist/ProgressBar-goqxS9NE.cjs +1 -0
- package/dist/Radio-CpQPRHXa.cjs +1 -0
- package/dist/Radio-VTjpEz8M.js +175 -0
- package/dist/Skeleton-BbIF780H.js +31 -0
- package/dist/Skeleton-tXeIy4qq.cjs +1 -0
- package/dist/TablerIcons-B-5Ua_Ne.js +460 -0
- package/dist/{Tooltip-DL3sfbuw.cjs → Tooltip-08dDawT_.cjs} +1 -1
- package/dist/components/data-display/DetailsRow/DetailsRow.d.ts +2 -0
- package/dist/components/data-display/DetailsRow/types/DetailsRowProps.d.ts +9 -0
- package/dist/components/data-display/index.d.ts +2 -0
- package/dist/components/data-display.cjs +1 -1
- package/dist/components/data-display.mjs +9 -8
- package/dist/components/feedback/InlineBanner/types/InlineBannerProps.d.ts +1 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input/DatePicker/DatePicker.d.ts +2 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerCssVariableThemeExample.d.ts +1 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerExample.d.ts +5 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerExternalMonthExample.d.ts +4 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerNavigationUnmountExample.d.ts +2 -0
- package/dist/components/input/DatePicker/__stories__/datePickerWeekdayLabels.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/DatePickerException.d.ts +5 -0
- package/dist/components/input/DatePicker/internal/DatePickerHeader.d.ts +3 -0
- package/dist/components/input/DatePicker/internal/DatePickerSelect.d.ts +15 -0
- package/dist/components/input/DatePicker/internal/DatePickerSelectLifecycleEffect.d.ts +7 -0
- package/dist/components/input/DatePicker/internal/DatePickerViewedMonthEffect.d.ts +9 -0
- package/dist/components/input/DatePicker/internal/ReactDatePickerLibrary.d.ts +2 -0
- package/dist/components/input/DatePicker/internal/datePickerConstants.d.ts +6 -0
- package/dist/components/input/DatePicker/internal/formatDatePickerLocalDate.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/parseDatePickerDateOrThrow.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/parseDatePickerLocalDateOrThrow.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/validateDatePickerHighlightedRangeOrThrow.d.ts +4 -0
- package/dist/components/input/DatePicker/types/DatePickerHeaderProps.d.ts +9 -0
- package/dist/components/input/DatePicker/types/DatePickerProps.d.ts +42 -0
- package/dist/components/input/EmojiPicker/EmojiPicker.d.ts +2 -0
- package/dist/components/input/EmojiPicker/__stories__/EmojiPickerExample.d.ts +4 -0
- package/dist/components/input/EmojiPicker/__stories__/emojiPickerStoryData.d.ts +30 -0
- package/dist/components/input/EmojiPicker/__stories__/emojiPickerStoryEmojibaseUrl.d.ts +1 -0
- package/dist/components/input/EmojiPicker/__stories__/mockEmojiPickerStoryData.d.ts +5 -0
- package/dist/components/input/EmojiPicker/internal/EmojiPickerEmoji.d.ts +2 -0
- package/dist/components/input/EmojiPicker/internal/EmojiPickerRow.d.ts +2 -0
- package/dist/components/input/EmojiPicker/internal/EmojiPickerScrollEffect.d.ts +6 -0
- package/dist/components/input/EmojiPicker/internal/scrollActiveEmojiIntoView.d.ts +1 -0
- package/dist/components/input/EmojiPicker/types/EmojiPickerProps.d.ts +11 -0
- package/dist/components/input/FormFieldRow/FormFieldRow.d.ts +2 -0
- package/dist/components/input/FormFieldRow/types/FormFieldRowProps.d.ts +12 -0
- package/dist/components/input/ReactionButton/ReactionButton.d.ts +2 -0
- package/dist/components/input/ReactionButton/__stories__/ReactionButtonExample.d.ts +2 -0
- package/dist/components/input/ReactionButton/types/ReactionButtonProps.d.ts +14 -0
- package/dist/components/input/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/input/SearchInput/types/SearchInputProps.d.ts +1 -1
- 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/SegmentedControlVariant.d.ts +1 -0
- package/dist/components/input/index.d.ts +10 -0
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +17 -13
- package/dist/components/layout/LabeledSeparator/LabeledSeparator.d.ts +2 -0
- package/dist/components/layout/LabeledSeparator/types/LabeledSeparatorProps.d.ts +7 -0
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.mjs +5 -4
- package/dist/components/navigation/CountPager/CountPager.d.ts +2 -0
- package/dist/components/navigation/CountPager/__stories__/CountPagerCollectionExample.d.ts +3 -0
- package/dist/components/navigation/CountPager/__stories__/CountPagerExample.d.ts +2 -0
- package/dist/components/navigation/CountPager/types/CountPagerProps.d.ts +11 -0
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +4 -4
- package/dist/components/navigation/Dropdown/__stories__/DropdownControlledPageSessionExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownNestedPageSessionExample.d.ts +6 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPageActivityExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPageSessionExample.d.ts +5 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPickerPageSessionExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/hooks/useDropdownPage.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +3 -0
- package/dist/components/navigation/Dropdown/internal/DropdownEmpty.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownLoading.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownPageEffect.d.ts +8 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSearch.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/isActiveDropdownElement.d.ts +1 -0
- package/dist/components/navigation/Dropdown/types/DropdownSearchProps.d.ts +1 -1
- package/dist/components/navigation/ListItemButton/ListItemButton.d.ts +1 -1
- package/dist/components/navigation/ListItemButton/types/ListItemButtonProps.d.ts +1 -1
- package/dist/components/navigation/index.d.ts +2 -0
- package/dist/components/navigation.cjs +1 -1
- package/dist/components/navigation.mjs +7 -6
- package/dist/components/settings.cjs +1 -1
- package/dist/components/settings.mjs +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +44 -37
- package/dist/{data-display-CXw-mxeS.js → data-display-DUMj_z1t.js} +25 -25
- package/dist/data-display-D_kbXJJd.cjs +2 -0
- package/dist/{data-display-DdES9XqZ.cjs → data-display-DzHM5j7j.cjs} +1 -1
- package/dist/data-display-b-9s0RTe.js +422 -0
- package/dist/feedback-B50I0C35.cjs +1 -0
- package/dist/feedback-BQFSnMjh.js +10 -0
- package/dist/{feedback-DspXawf9.cjs → feedback-BzR4ggrP.cjs} +1 -1
- package/dist/{feedback-4HKPcMRs.js → feedback-EaZszoXf.js} +29 -29
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/constants/TwentyIconDictionary.d.ts +9 -0
- package/dist/icon/index.d.ts +1 -1
- package/dist/{icon-CUE-QGQK.js → icon-ICz2_dVB.js} +550 -944
- package/dist/icon-TSBamkxk.cjs +1 -0
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +510 -504
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +666 -652
- package/dist/input-BQABEELu.cjs +1 -0
- package/dist/input-CuySKbhm.js +2356 -0
- package/dist/input-DxoXgI5-.js +373 -0
- package/dist/input-ExCbk62Y.cjs +1 -0
- package/dist/layout-B1Iwc9ku.cjs +1 -0
- package/dist/layout-B2KvJ900.js +479 -0
- package/dist/navigation-DP5Edsq_.cjs +1 -0
- package/dist/navigation-DXMjQMPm.js +134 -0
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +1 -1
- package/dist/primitives/feedback/Banner/Banner.d.ts +1 -1
- package/dist/primitives/feedback/Banner/internal/BannerComponent.d.ts +1 -1
- package/dist/primitives/feedback/Banner/types/BannerProps.d.ts +2 -0
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +9 -8
- package/dist/primitives/input/Autocomplete/types/AutocompleteItemProps.d.ts +3 -1
- package/dist/primitives/input/Input/Input.d.ts +1 -1
- package/dist/primitives/input/Input/types/InputProps.d.ts +3 -0
- package/dist/primitives/input/InputGroup/InputGroup.d.ts +1 -1
- package/dist/primitives/input/InputGroup/types/InputGroupProps.d.ts +1 -0
- package/dist/primitives/input/Textarea/Textarea.d.ts +1 -1
- package/dist/primitives/input/Textarea/internal/TextareaAutoResizeEffect.d.ts +8 -0
- package/dist/primitives/input/Textarea/types/TextareaProps.d.ts +2 -0
- package/dist/primitives/input/index.d.ts +1 -0
- package/dist/primitives/input/types/InputVariant.d.ts +1 -0
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +14 -14
- package/dist/primitives/navigation/ListItem/ListItem.d.ts +1 -1
- package/dist/primitives/navigation/ListItem/__stories__/ListItemMultilineExample.d.ts +7 -0
- package/dist/primitives/navigation/ListItem/types/ListItemDescriptionPlacement.d.ts +1 -1
- package/dist/primitives/navigation/ListItem/types/ListItemProps.d.ts +3 -0
- package/dist/primitives/navigation/ListItem/types/ListItemState.d.ts +1 -0
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +1 -1
- package/dist/primitives/surfaces/Card/Card.d.ts +2 -0
- package/dist/primitives/surfaces/Card/internal/CardAction.d.ts +2 -0
- package/dist/primitives/surfaces/Card/internal/CardControl.d.ts +2 -0
- package/dist/primitives/surfaces/Card/types/CardActionProps.d.ts +2 -0
- package/dist/primitives/surfaces/Card/types/CardControlProps.d.ts +2 -0
- package/dist/primitives/surfaces/index.d.ts +2 -0
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +2 -2
- package/dist/primitives/typography/Heading/types/HeadingProps.d.ts +4 -2
- package/dist/primitives/typography/OverflowingTextWithTooltip/types/OverflowingTextWithTooltipProps.d.ts +2 -1
- package/dist/primitives/typography/Text/Text.d.ts +1 -1
- package/dist/primitives/typography/Text/internal/TextTypographyProps.d.ts +7 -0
- package/dist/primitives/typography/Text/types/TextProps.d.ts +2 -1
- package/dist/primitives/typography/internal/TypographyColor.d.ts +2 -0
- package/dist/primitives/typography/internal/TypographyFontSize.d.ts +2 -0
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +2 -2
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +52 -51
- package/dist/{settings-XGSJtobU.js → settings-BTFAqYrD.js} +1 -1
- package/dist/{settings-DT5bEO6A.cjs → settings-D_iT1ngl.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/surfaces-DtZwsfms.cjs +1 -0
- package/dist/surfaces-v0kQLZYO.js +224 -0
- package/dist/{typography-CWtuNruY.cjs → typography-B05olPwL.cjs} +1 -1
- package/dist/{typography-BPdXzW2T.js → typography-BwyZEDDi.js} +1 -1
- package/dist/utilities/color/utils/themeColorSchema.d.ts +15 -15
- package/package.json +3 -1
- package/dist/Dropdown-ChTVyesF.js +0 -1018
- package/dist/Dropdown-DlItz8Gh.cjs +0 -1
- package/dist/Input-DZWl81G_.js +0 -23
- package/dist/Input-DvL77rvu.cjs +0 -1
- package/dist/ListItem-C6Xl00m1.cjs +0 -1
- package/dist/ListItem-C84ANa76.js +0 -86
- package/dist/ListItem.module-BJ9Ttjrc.js +0 -34
- package/dist/ListItem.module-CO4u2oeF.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-BQmpPObX.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-BtB9cGdJ.js +0 -89
- package/dist/ProgressBar-CzGs7cuE.cjs +0 -1
- package/dist/ProgressBar-D4tKQ7OA.js +0 -84
- package/dist/Radio-BwBZ4e8g.js +0 -103
- package/dist/Radio-sIYxZnR_.cjs +0 -1
- package/dist/data-display-C-eoJ5En.js +0 -378
- package/dist/data-display-CM1yXpnE.cjs +0 -2
- package/dist/feedback-BSOWDBI0.js +0 -38
- package/dist/feedback-DBRXDPSP.cjs +0 -1
- package/dist/icon-BNcdwwdl.cjs +0 -1
- package/dist/input-CWWp7cqL.cjs +0 -1
- package/dist/input-CvZ_uB_9.cjs +0 -1
- package/dist/input-Qn5_aFYU.js +0 -785
- package/dist/input-k5cMhFI_.js +0 -428
- package/dist/layout-DDqeMgFv.js +0 -439
- package/dist/layout-iSfGrMrH.cjs +0 -1
- package/dist/navigation-7Y6gHFlj.cjs +0 -1
- package/dist/navigation-BcXCiLE1.js +0 -86
- package/dist/primitives/typography/internal/Label/Label.d.ts +0 -8
- package/dist/surfaces-q8voTXEJ.cjs +0 -1
- package/dist/surfaces-vhSZBmbz.js +0 -201
- package/dist/{Tooltip-6uS8_wdA.js → Tooltip-C7zc16gI.js} +1 -1
|
@@ -1,378 +0,0 @@
|
|
|
1
|
-
import { t as _ } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { Jc as Y, No as Z, Pn as ee, Tn as re, Vt as G, rr as oe, wn as ne } from "./icon-CUE-QGQK.js";
|
|
3
|
-
import { t as te } from "./doNotTranslate-BSVT8Xyd.js";
|
|
4
|
-
import { a as T, h as ae, r as K } from "./theme-B2EaXhye.js";
|
|
5
|
-
import { t as le } from "./VisuallyHidden-CFZP7ybO.js";
|
|
6
|
-
import { t as se } from "./ProgressRing-8mYV9cxE.js";
|
|
7
|
-
import { s as ie } from "./utilities-BKCMZyqZ.js";
|
|
8
|
-
import { useRender as x } from "@base-ui/react/use-render";
|
|
9
|
-
import { isArray as ce, isBoolean as de, isNonEmptyArray as D, isNonEmptyString as V, isNumber as ue, isString as _e } from "@sniptt/guards";
|
|
10
|
-
import { clsx as c } from "clsx";
|
|
11
|
-
import { Children as E, createContext as me, isValidElement as ve, useContext as he, useId as pe, useState as be } from "react";
|
|
12
|
-
import { Fragment as S, jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
13
|
-
import { Collapsible as P } from "@base-ui/react/collapsible";
|
|
14
|
-
var Ce = "_container_5cu4g_1", Ne = "_itemContainer_5cu4g_6", fe = "_overflowCountContainer_5cu4g_22", ge = "_overflowCount_5cu4g_22", g = {
|
|
15
|
-
container: Ce,
|
|
16
|
-
itemContainer: Ne,
|
|
17
|
-
overflowCountContainer: fe,
|
|
18
|
-
overflowCount: ge
|
|
19
|
-
}, Ie = 4, Tr = ({ avatars: e, className: r, maxVisible: n = Ie, total: t, renderOverflow: s, overflowShape: l = "square", overlap: a = "right", overlapOffset: i = "3px", render: b, ref: C, ...m }) => {
|
|
20
|
-
const u = E.toArray(e), y = Number.isNaN(n) ? 0 : Math.max(0, Math.floor(n)), N = u.slice(0, y), h = t ?? u.length, f = (Number.isFinite(h) ? Math.max(u.length, Math.floor(h)) : u.length) - N.length, A = _(s), w = f > 0 && (A ? s(f) : /* @__PURE__ */ d("span", {
|
|
21
|
-
className: g.overflowCount,
|
|
22
|
-
"data-shape": l,
|
|
23
|
-
children: ["+", f]
|
|
24
|
-
})), F = D(E.toArray(w)), M = { "--avatar-group-overlap-offset": i }, W = x({
|
|
25
|
-
render: b,
|
|
26
|
-
ref: C,
|
|
27
|
-
props: {
|
|
28
|
-
...m,
|
|
29
|
-
className: c(g.container, r),
|
|
30
|
-
children: /* @__PURE__ */ d(S, { children: [E.map(N, (L) => /* @__PURE__ */ o("span", {
|
|
31
|
-
className: g.itemContainer,
|
|
32
|
-
"data-overlap": a,
|
|
33
|
-
style: M,
|
|
34
|
-
children: L
|
|
35
|
-
}, ve(L) ? L.key : void 0)), F && /* @__PURE__ */ o("span", {
|
|
36
|
-
className: c(g.itemContainer, !A && g.overflowCountContainer),
|
|
37
|
-
"data-overlap": a,
|
|
38
|
-
style: M,
|
|
39
|
-
children: w
|
|
40
|
-
})] })
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
return D(N) || F ? W : null;
|
|
44
|
-
}, Te = "_container_1j72k_1", xe = "_commands_1j72k_13", ye = "_actions_1j72k_25", Ae = "_prompt_1j72k_32", k = {
|
|
45
|
-
container: Te,
|
|
46
|
-
commands: xe,
|
|
47
|
-
actions: ye,
|
|
48
|
-
prompt: Ae
|
|
49
|
-
}, xr = ({ commands: e, actions: r, render: n, ref: t, className: s, ...l }) => x({
|
|
50
|
-
render: n,
|
|
51
|
-
ref: t,
|
|
52
|
-
props: {
|
|
53
|
-
...l,
|
|
54
|
-
className: c(k.container, s),
|
|
55
|
-
children: /* @__PURE__ */ d(S, { children: [/* @__PURE__ */ o("pre", {
|
|
56
|
-
className: k.commands,
|
|
57
|
-
children: /* @__PURE__ */ o("code", { children: e.map((a, i) => /* @__PURE__ */ d("span", { children: [
|
|
58
|
-
i > 0 && `
|
|
59
|
-
`,
|
|
60
|
-
/* @__PURE__ */ o("span", {
|
|
61
|
-
className: k.prompt,
|
|
62
|
-
"aria-hidden": "true",
|
|
63
|
-
children: "> "
|
|
64
|
-
}),
|
|
65
|
-
a
|
|
66
|
-
] }, i)) })
|
|
67
|
-
}), _(r) && /* @__PURE__ */ o("div", {
|
|
68
|
-
className: k.actions,
|
|
69
|
-
children: r
|
|
70
|
-
})] })
|
|
71
|
-
}
|
|
72
|
-
}), we = "_list_1i4lv_1", ke = "_nested_1i4lv_8", z = {
|
|
73
|
-
list: we,
|
|
74
|
-
nested: ke
|
|
75
|
-
}, Je = ({ depth: e, className: r, children: n }) => /* @__PURE__ */ o("ul", {
|
|
76
|
-
className: c(z.list, e > 0 && z.nested, r),
|
|
77
|
-
children: n
|
|
78
|
-
}), U = me(void 0), p = () => {
|
|
79
|
-
const e = he(U);
|
|
80
|
-
if (!_(e)) throw new Error(te("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider"));
|
|
81
|
-
return e;
|
|
82
|
-
}, Se = "_button_1e3ij_1", Le = "_red_1e3ij_17", Ee = "_chevron_1e3ij_22", $ = {
|
|
83
|
-
button: Se,
|
|
84
|
-
red: Le,
|
|
85
|
-
chevron: Ee
|
|
86
|
-
}, $e = ({ isOpen: e, onClick: r, variant: n }) => {
|
|
87
|
-
const t = K(), { arrowButtonCollapsedLabel: s, arrowButtonExpandedLabel: l } = p(), a = n === "blue" ? T.color.blue : n === "red" ? T.font.color.danger : T.font.color.secondary;
|
|
88
|
-
return /* @__PURE__ */ d("button", {
|
|
89
|
-
className: c($.button, n === "red" && $.red),
|
|
90
|
-
onClick: r,
|
|
91
|
-
children: [/* @__PURE__ */ o(le, { children: e ? l : s }), /* @__PURE__ */ o("div", {
|
|
92
|
-
className: $.chevron,
|
|
93
|
-
"data-open": e || void 0,
|
|
94
|
-
children: /* @__PURE__ */ o(re, {
|
|
95
|
-
size: t.icon.size.md,
|
|
96
|
-
color: a
|
|
97
|
-
})
|
|
98
|
-
})]
|
|
99
|
-
});
|
|
100
|
-
}, je = ({ label: e, value: r, depth: n, keyPath: t, highlighting: s }) => {
|
|
101
|
-
const { emptyArrayLabel: l } = p();
|
|
102
|
-
return /* @__PURE__ */ o(B, {
|
|
103
|
-
elements: [...r.entries()].map(([a, i]) => ({
|
|
104
|
-
id: a,
|
|
105
|
-
label: String(a),
|
|
106
|
-
value: i
|
|
107
|
-
})),
|
|
108
|
-
renderElementsCount: (a) => `[${a}]`,
|
|
109
|
-
label: e,
|
|
110
|
-
Icon: G,
|
|
111
|
-
depth: n,
|
|
112
|
-
emptyElementsText: l,
|
|
113
|
-
keyPath: t,
|
|
114
|
-
highlighting: s
|
|
115
|
-
});
|
|
116
|
-
}, Oe = ({ label: e, value: r, depth: n, keyPath: t, highlighting: s }) => {
|
|
117
|
-
const { emptyObjectLabel: l } = p();
|
|
118
|
-
return /* @__PURE__ */ o(B, {
|
|
119
|
-
elements: Object.entries(r).map(([a, i]) => ({
|
|
120
|
-
id: a,
|
|
121
|
-
label: a,
|
|
122
|
-
value: i
|
|
123
|
-
})),
|
|
124
|
-
renderElementsCount: (a) => `{${a}}`,
|
|
125
|
-
label: e,
|
|
126
|
-
Icon: oe,
|
|
127
|
-
depth: n,
|
|
128
|
-
emptyElementsText: l,
|
|
129
|
-
keyPath: t,
|
|
130
|
-
highlighting: s
|
|
131
|
-
});
|
|
132
|
-
}, Re = "_labelContainer_1pq94_1", qe = "_blue_1pq94_23", Ve = "_red_1pq94_29", j = {
|
|
133
|
-
labelContainer: Re,
|
|
134
|
-
blue: qe,
|
|
135
|
-
red: Ve
|
|
136
|
-
}, X = ({ label: e, Icon: r, highlighting: n }) => {
|
|
137
|
-
const t = K();
|
|
138
|
-
return /* @__PURE__ */ d("span", {
|
|
139
|
-
className: c(j.labelContainer, n === "blue" && j.blue, n === "red" && j.red),
|
|
140
|
-
children: [/* @__PURE__ */ o(r, {
|
|
141
|
-
size: t.icon.size.md,
|
|
142
|
-
color: n === "blue" ? t.color.blue : n === "red" ? t.font.color.danger : t.font.color.tertiary
|
|
143
|
-
}), /* @__PURE__ */ o("span", { children: e })]
|
|
144
|
-
});
|
|
145
|
-
}, Be = "_text_1ot24_1", Fe = "_blue_1ot24_10", Me = "_red_1ot24_14", De = "_button_1ot24_18", J = {
|
|
146
|
-
text: Be,
|
|
147
|
-
blue: Fe,
|
|
148
|
-
red: Me,
|
|
149
|
-
button: De
|
|
150
|
-
}, Pe = ({ valueAsString: e, highlighting: r }) => {
|
|
151
|
-
const { onNodeValueClick: n } = p(), t = _(n), s = () => {
|
|
152
|
-
n?.(e);
|
|
153
|
-
}, l = c(J.text, r === "blue" && J.blue, r === "red" && J.red);
|
|
154
|
-
return t ? /* @__PURE__ */ o("button", {
|
|
155
|
-
className: c(l, J.button),
|
|
156
|
-
type: "button",
|
|
157
|
-
onClick: s,
|
|
158
|
-
children: e
|
|
159
|
-
}) : /* @__PURE__ */ o("span", {
|
|
160
|
-
className: l,
|
|
161
|
-
children: e
|
|
162
|
-
});
|
|
163
|
-
}, ze = "_listItem_1i7if_1", He = { listItem: ze }, I = (e) => /* @__PURE__ */ d("li", {
|
|
164
|
-
className: He.listItem,
|
|
165
|
-
children: [e.label && /* @__PURE__ */ o(X, {
|
|
166
|
-
label: e.label,
|
|
167
|
-
Icon: e.Icon,
|
|
168
|
-
highlighting: e.highlighting
|
|
169
|
-
}), /* @__PURE__ */ o(Pe, {
|
|
170
|
-
valueAsString: e.valueAsString,
|
|
171
|
-
highlighting: e.highlighting
|
|
172
|
-
})]
|
|
173
|
-
}), Ge = (e) => ce(e), Q = ({ label: e, value: r, depth: n, keyPath: t }) => {
|
|
174
|
-
const { getNodeHighlighting: s, emptyStringLabel: l } = p(), a = s?.(t);
|
|
175
|
-
return _(r) ? _e(r) ? /* @__PURE__ */ o(I, {
|
|
176
|
-
label: e,
|
|
177
|
-
valueAsString: V(r) ? r : l,
|
|
178
|
-
Icon: Y,
|
|
179
|
-
highlighting: a
|
|
180
|
-
}) : ue(r) ? /* @__PURE__ */ o(I, {
|
|
181
|
-
label: e,
|
|
182
|
-
valueAsString: String(r),
|
|
183
|
-
Icon: Z,
|
|
184
|
-
highlighting: a
|
|
185
|
-
}) : de(r) ? /* @__PURE__ */ o(I, {
|
|
186
|
-
label: e,
|
|
187
|
-
valueAsString: String(r),
|
|
188
|
-
Icon: ne,
|
|
189
|
-
highlighting: a
|
|
190
|
-
}) : Ge(r) ? /* @__PURE__ */ o(je, {
|
|
191
|
-
label: e,
|
|
192
|
-
value: r,
|
|
193
|
-
depth: n,
|
|
194
|
-
keyPath: t,
|
|
195
|
-
highlighting: a
|
|
196
|
-
}) : /* @__PURE__ */ o(Oe, {
|
|
197
|
-
label: e,
|
|
198
|
-
value: r,
|
|
199
|
-
depth: n,
|
|
200
|
-
keyPath: t,
|
|
201
|
-
highlighting: a
|
|
202
|
-
}) : /* @__PURE__ */ o(I, {
|
|
203
|
-
label: e,
|
|
204
|
-
valueAsString: "null",
|
|
205
|
-
Icon: ee,
|
|
206
|
-
highlighting: a
|
|
207
|
-
});
|
|
208
|
-
}, Ke = "_container_d0cqx_1", Ue = "_labelContainer_d0cqx_6", Xe = "_elementsCount_d0cqx_12", Qe = "_elementsCountRed_d0cqx_16", We = "_panel_d0cqx_20", Ye = "_list_d0cqx_30", Ze = "_nested_d0cqx_37", v = {
|
|
209
|
-
container: Ke,
|
|
210
|
-
labelContainer: Ue,
|
|
211
|
-
elementsCount: Xe,
|
|
212
|
-
elementsCountRed: Qe,
|
|
213
|
-
panel: We,
|
|
214
|
-
list: Ye,
|
|
215
|
-
nested: Ze
|
|
216
|
-
}, B = ({ label: e, Icon: r, elements: n, renderElementsCount: t, emptyElementsText: s, depth: l, keyPath: a, highlighting: i }) => {
|
|
217
|
-
const { shouldExpandNodeInitially: b } = p(), C = !_(e), [m, u] = be(b({
|
|
218
|
-
keyPath: a,
|
|
219
|
-
depth: l
|
|
220
|
-
})), y = /* @__PURE__ */ o("ul", {
|
|
221
|
-
className: c(v.list, l > 0 && v.nested),
|
|
222
|
-
children: n.length === 0 ? /* @__PURE__ */ o(I, {
|
|
223
|
-
valueAsString: s,
|
|
224
|
-
highlighting: void 0
|
|
225
|
-
}) : n.map(({ id: h, label: f, value: A }) => {
|
|
226
|
-
const w = V(a) ? `${a}.${h}` : String(h);
|
|
227
|
-
return /* @__PURE__ */ o(Q, {
|
|
228
|
-
label: f,
|
|
229
|
-
value: A,
|
|
230
|
-
depth: l + 1,
|
|
231
|
-
keyPath: w
|
|
232
|
-
}, h);
|
|
233
|
-
})
|
|
234
|
-
}), N = () => {
|
|
235
|
-
u(!m);
|
|
236
|
-
};
|
|
237
|
-
return C ? /* @__PURE__ */ o("li", {
|
|
238
|
-
className: v.container,
|
|
239
|
-
children: y
|
|
240
|
-
}) : /* @__PURE__ */ d(P.Root, {
|
|
241
|
-
className: v.container,
|
|
242
|
-
open: m,
|
|
243
|
-
render: /* @__PURE__ */ o("li", {}),
|
|
244
|
-
children: [/* @__PURE__ */ d("div", {
|
|
245
|
-
className: v.labelContainer,
|
|
246
|
-
children: [
|
|
247
|
-
/* @__PURE__ */ o($e, {
|
|
248
|
-
isOpen: m,
|
|
249
|
-
onClick: N,
|
|
250
|
-
variant: i === "partial-blue" ? "blue" : i === "red" ? i : void 0
|
|
251
|
-
}),
|
|
252
|
-
/* @__PURE__ */ o(X, {
|
|
253
|
-
label: e,
|
|
254
|
-
Icon: r,
|
|
255
|
-
highlighting: i === "red" ? i : void 0
|
|
256
|
-
}),
|
|
257
|
-
t && /* @__PURE__ */ o("span", {
|
|
258
|
-
className: c(v.elementsCount, i === "red" && v.elementsCountRed),
|
|
259
|
-
children: t(n.length)
|
|
260
|
-
})
|
|
261
|
-
]
|
|
262
|
-
}), /* @__PURE__ */ o(P.Panel, {
|
|
263
|
-
className: v.panel,
|
|
264
|
-
children: y
|
|
265
|
-
})]
|
|
266
|
-
});
|
|
267
|
-
}, er = ({ value: e, children: r }) => /* @__PURE__ */ o(U.Provider, {
|
|
268
|
-
value: e,
|
|
269
|
-
children: r
|
|
270
|
-
}), rr = ({ depth: e }) => e <= 1, yr = ({ value: e, entries: r, shouldExpandNodeInitially: n = rr, ...t }) => /* @__PURE__ */ o(er, {
|
|
271
|
-
value: {
|
|
272
|
-
...t,
|
|
273
|
-
shouldExpandNodeInitially: n
|
|
274
|
-
},
|
|
275
|
-
children: /* @__PURE__ */ o(Je, {
|
|
276
|
-
depth: 0,
|
|
277
|
-
children: _(r) ? /* @__PURE__ */ o(B, {
|
|
278
|
-
elements: r,
|
|
279
|
-
Icon: G,
|
|
280
|
-
depth: 0,
|
|
281
|
-
keyPath: "",
|
|
282
|
-
emptyElementsText: t.emptyObjectLabel
|
|
283
|
-
}) : /* @__PURE__ */ o(Q, {
|
|
284
|
-
value: e ?? null,
|
|
285
|
-
depth: 0,
|
|
286
|
-
keyPath: ""
|
|
287
|
-
})
|
|
288
|
-
})
|
|
289
|
-
}), or = "_row_1hj4l_1", nr = "_label_1hj4l_11", tr = "_icon_1hj4l_20", O = {
|
|
290
|
-
row: or,
|
|
291
|
-
label: nr,
|
|
292
|
-
icon: tr
|
|
293
|
-
}, Ar = ({ children: e, startIcon: r, value: n, progress: t, progressColor: s, progressValueText: l, render: a, ref: i, className: b, ...C }) => {
|
|
294
|
-
const m = pe(), u = l ?? n;
|
|
295
|
-
return x({
|
|
296
|
-
render: a,
|
|
297
|
-
ref: i,
|
|
298
|
-
props: {
|
|
299
|
-
...C,
|
|
300
|
-
className: c(O.row, b),
|
|
301
|
-
children: /* @__PURE__ */ d(S, { children: [/* @__PURE__ */ d("div", {
|
|
302
|
-
className: O.label,
|
|
303
|
-
children: [_(r) && /* @__PURE__ */ o("span", {
|
|
304
|
-
className: O.icon,
|
|
305
|
-
"aria-hidden": "true",
|
|
306
|
-
children: r
|
|
307
|
-
}), /* @__PURE__ */ o("span", {
|
|
308
|
-
id: m,
|
|
309
|
-
children: e
|
|
310
|
-
})]
|
|
311
|
-
}), _(t) ? /* @__PURE__ */ o(se, {
|
|
312
|
-
value: t,
|
|
313
|
-
size: "sm",
|
|
314
|
-
barColor: s,
|
|
315
|
-
"aria-labelledby": m,
|
|
316
|
-
...V(u) ? { "aria-valuetext": u } : {},
|
|
317
|
-
children: n
|
|
318
|
-
}) : /* @__PURE__ */ o("span", { children: n })] })
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
}, ar = "_root_7l8sk_1", lr = "_stackedIcon_7l8sk_14", H = {
|
|
322
|
-
root: ar,
|
|
323
|
-
stackedIcon: lr
|
|
324
|
-
}, wr = ({ icon: e, stackedIcon: r, className: n, render: t, ref: s, ...l }) => x({
|
|
325
|
-
render: t,
|
|
326
|
-
ref: s,
|
|
327
|
-
props: {
|
|
328
|
-
...l,
|
|
329
|
-
className: c(H.root, n),
|
|
330
|
-
children: /* @__PURE__ */ d(S, { children: [/* @__PURE__ */ o("span", {
|
|
331
|
-
"aria-hidden": "true",
|
|
332
|
-
children: e
|
|
333
|
-
}), /* @__PURE__ */ o("span", {
|
|
334
|
-
"aria-hidden": "true",
|
|
335
|
-
className: H.stackedIcon,
|
|
336
|
-
children: r
|
|
337
|
-
})] })
|
|
338
|
-
}
|
|
339
|
-
}), R = {
|
|
340
|
-
background: 4,
|
|
341
|
-
border: 6,
|
|
342
|
-
icon: 10
|
|
343
|
-
}, q = (e, r) => T.color[`${e}${r}`] ?? T.tag.text[e], sr = (e) => {
|
|
344
|
-
const r = ie(e);
|
|
345
|
-
return {
|
|
346
|
-
backgroundColor: q(r, R.background),
|
|
347
|
-
iconColor: q(r, R.icon),
|
|
348
|
-
borderColor: q(r, R.border)
|
|
349
|
-
};
|
|
350
|
-
}, ir = "_root_9ntdy_1", cr = { root: ir }, kr = ({ icon: e, color: r = ae, className: n, style: t, render: s, ref: l, ...a }) => {
|
|
351
|
-
const i = sr(r);
|
|
352
|
-
return x({
|
|
353
|
-
render: s,
|
|
354
|
-
ref: l,
|
|
355
|
-
props: {
|
|
356
|
-
...a,
|
|
357
|
-
className: c(cr.root, n),
|
|
358
|
-
style: {
|
|
359
|
-
backgroundColor: i.backgroundColor,
|
|
360
|
-
color: i.iconColor,
|
|
361
|
-
...t
|
|
362
|
-
},
|
|
363
|
-
children: /* @__PURE__ */ o("span", {
|
|
364
|
-
"aria-hidden": "true",
|
|
365
|
-
children: e
|
|
366
|
-
})
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
|
-
};
|
|
370
|
-
export {
|
|
371
|
-
yr as a,
|
|
372
|
-
Ar as i,
|
|
373
|
-
sr as n,
|
|
374
|
-
xr as o,
|
|
375
|
-
wr as r,
|
|
376
|
-
Tr as s,
|
|
377
|
-
kr as t
|
|
378
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const x=require("./theme-1XkFz8Qu.cjs"),_=require("./isDefined-DS2Q42p5.cjs"),X=require("./doNotTranslate-CHE7WmRS.cjs"),Q=require("./VisuallyHidden-B-n4x1KY.cjs"),W=require("./ProgressRing-g1nHGyUp.cjs"),Y=require("./utilities-xZh8D2gd.cjs");let T=require("@base-ui/react/use-render"),u=require("@sniptt/guards"),c=require("clsx"),h=require("react"),e=require("react/jsx-runtime"),B=require("@base-ui/react/collapsible"),b=require("@tabler/icons-react");var Z="_container_5cu4g_1",ee="_itemContainer_5cu4g_6",re="_overflowCountContainer_5cu4g_22",ne="_overflowCount_5cu4g_22",y={container:Z,itemContainer:ee,overflowCountContainer:re,overflowCount:ne},te=4,oe=({avatars:r,className:n,maxVisible:t=te,total:o,renderOverflow:l,overflowShape:a="square",overlap:s="right",overlapOffset:i="3px",render:C,ref:f,...m})=>{const d=h.Children.toArray(r),q=Number.isNaN(t)?0:Math.max(0,Math.floor(t)),N=d.slice(0,q),p=o??d.length,g=(Number.isFinite(p)?Math.max(d.length,Math.floor(p)):d.length)-N.length,A=_.isDefined(l),k=g>0&&(A?l(g):(0,e.jsxs)("span",{className:y.overflowCount,"data-shape":a,children:["+",g]})),V=(0,u.isNonEmptyArray)(h.Children.toArray(k)),P={"--avatar-group-overlap-offset":i},U=(0,T.useRender)({render:C,ref:f,props:{...m,className:(0,c.clsx)(y.container,n),children:(0,e.jsxs)(e.Fragment,{children:[h.Children.map(N,J=>(0,e.jsx)("span",{className:y.itemContainer,"data-overlap":s,style:P,children:J},(0,h.isValidElement)(J)?J.key:void 0)),V&&(0,e.jsx)("span",{className:(0,c.clsx)(y.itemContainer,!A&&y.overflowCountContainer),"data-overlap":s,style:P,children:k})]})}});return(0,u.isNonEmptyArray)(N)||V?U:null},se="_container_1j72k_1",ae="_commands_1j72k_13",le="_actions_1j72k_25",ie="_prompt_1j72k_32",w={container:se,commands:ae,actions:le,prompt:ie},ce=({commands:r,actions:n,render:t,ref:o,className:l,...a})=>(0,T.useRender)({render:t,ref:o,props:{...a,className:(0,c.clsx)(w.container,l),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("pre",{className:w.commands,children:(0,e.jsx)("code",{children:r.map((s,i)=>(0,e.jsxs)("span",{children:[i>0&&`
|
|
2
|
-
`,(0,e.jsx)("span",{className:w.prompt,"aria-hidden":"true",children:"> "}),s]},i))})}),_.isDefined(n)&&(0,e.jsx)("div",{className:w.actions,children:n})]})}}),de="_list_1i4lv_1",ue="_nested_1i4lv_8",F={list:de,nested:ue},_e=({depth:r,className:n,children:t})=>(0,e.jsx)("ul",{className:(0,c.clsx)(F.list,r>0&&F.nested,n),children:t}),z=(0,h.createContext)(void 0),j=()=>{const r=(0,h.useContext)(z);if(!_.isDefined(r))throw new Error(X.doNotTranslate("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider"));return r},me="_button_1e3ij_1",ve="_red_1e3ij_17",xe="_chevron_1e3ij_22",E={button:me,red:ve,chevron:xe},he=({isOpen:r,onClick:n,variant:t})=>{const o=x.useTheme(),{arrowButtonCollapsedLabel:l,arrowButtonExpandedLabel:a}=j(),s=t==="blue"?x.themeCssVariables.color.blue:t==="red"?x.themeCssVariables.font.color.danger:x.themeCssVariables.font.color.secondary;return(0,e.jsxs)("button",{className:(0,c.clsx)(E.button,t==="red"&&E.red),onClick:n,children:[(0,e.jsx)(Q.VisuallyHidden,{children:r?a:l}),(0,e.jsx)("div",{className:E.chevron,"data-open":r||void 0,children:(0,e.jsx)(b.IconChevronDown,{size:o.icon.size.md,color:s})})]})},be=({label:r,value:n,depth:t,keyPath:o,highlighting:l})=>{const{emptyArrayLabel:a}=j();return(0,e.jsx)($,{elements:[...n.entries()].map(([s,i])=>({id:s,label:String(s),value:i})),renderElementsCount:s=>`[${s}]`,label:r,Icon:b.IconBrackets,depth:t,emptyElementsText:a,keyPath:o,highlighting:l})},pe=({label:r,value:n,depth:t,keyPath:o,highlighting:l})=>{const{emptyObjectLabel:a}=j();return(0,e.jsx)($,{elements:Object.entries(n).map(([s,i])=>({id:s,label:s,value:i})),renderElementsCount:s=>`{${s}}`,label:r,Icon:b.IconCube,depth:t,emptyElementsText:a,keyPath:o,highlighting:l})},je="_labelContainer_1pq94_1",Ce="_blue_1pq94_23",fe="_red_1pq94_29",O={labelContainer:je,blue:Ce,red:fe},H=({label:r,Icon:n,highlighting:t})=>{const o=x.useTheme();return(0,e.jsxs)("span",{className:(0,c.clsx)(O.labelContainer,t==="blue"&&O.blue,t==="red"&&O.red),children:[(0,e.jsx)(n,{size:o.icon.size.md,color:t==="blue"?o.color.blue:t==="red"?o.font.color.danger:o.font.color.tertiary}),(0,e.jsx)("span",{children:r})]})},Ne="_text_1ot24_1",ge="_blue_1ot24_10",ye="_red_1ot24_14",Ie="_button_1ot24_18",S={text:Ne,blue:ge,red:ye,button:Ie},Te=({valueAsString:r,highlighting:n})=>{const{onNodeValueClick:t}=j(),o=_.isDefined(t),l=()=>{t?.(r)},a=(0,c.clsx)(S.text,n==="blue"&&S.blue,n==="red"&&S.red);return o?(0,e.jsx)("button",{className:(0,c.clsx)(a,S.button),type:"button",onClick:l,children:r}):(0,e.jsx)("span",{className:a,children:r})},qe="_listItem_1i7if_1",Ae={listItem:qe},I=r=>(0,e.jsxs)("li",{className:Ae.listItem,children:[r.label&&(0,e.jsx)(H,{label:r.label,Icon:r.Icon,highlighting:r.highlighting}),(0,e.jsx)(Te,{valueAsString:r.valueAsString,highlighting:r.highlighting})]}),ke=r=>(0,u.isArray)(r),G=({label:r,value:n,depth:t,keyPath:o})=>{const{getNodeHighlighting:l,emptyStringLabel:a}=j(),s=l?.(o);return _.isDefined(n)?(0,u.isString)(n)?(0,e.jsx)(I,{label:r,valueAsString:(0,u.isNonEmptyString)(n)?n:a,Icon:b.IconTypography,highlighting:s}):(0,u.isNumber)(n)?(0,e.jsx)(I,{label:r,valueAsString:String(n),Icon:b.IconNumber9,highlighting:s}):(0,u.isBoolean)(n)?(0,e.jsx)(I,{label:r,valueAsString:String(n),Icon:b.IconCheckbox,highlighting:s}):ke(n)?(0,e.jsx)(be,{label:r,value:n,depth:t,keyPath:o,highlighting:s}):(0,e.jsx)(pe,{label:r,value:n,depth:t,keyPath:o,highlighting:s}):(0,e.jsx)(I,{label:r,valueAsString:"null",Icon:b.IconCircleOff,highlighting:s})},we="_container_d0cqx_1",Se="_labelContainer_d0cqx_6",Je="_elementsCount_d0cqx_12",Ee="_elementsCountRed_d0cqx_16",Oe="_panel_d0cqx_20",Le="_list_d0cqx_30",Re="_nested_d0cqx_37",v={container:we,labelContainer:Se,elementsCount:Je,elementsCountRed:Ee,panel:Oe,list:Le,nested:Re},$=({label:r,Icon:n,elements:t,renderElementsCount:o,emptyElementsText:l,depth:a,keyPath:s,highlighting:i})=>{const{shouldExpandNodeInitially:C}=j(),f=!_.isDefined(r),[m,d]=(0,h.useState)(C({keyPath:s,depth:a})),q=(0,e.jsx)("ul",{className:(0,c.clsx)(v.list,a>0&&v.nested),children:t.length===0?(0,e.jsx)(I,{valueAsString:l,highlighting:void 0}):t.map(({id:p,label:g,value:A})=>{const k=(0,u.isNonEmptyString)(s)?`${s}.${p}`:String(p);return(0,e.jsx)(G,{label:g,value:A,depth:a+1,keyPath:k},p)})}),N=()=>{d(!m)};return f?(0,e.jsx)("li",{className:v.container,children:q}):(0,e.jsxs)(B.Collapsible.Root,{className:v.container,open:m,render:(0,e.jsx)("li",{}),children:[(0,e.jsxs)("div",{className:v.labelContainer,children:[(0,e.jsx)(he,{isOpen:m,onClick:N,variant:i==="partial-blue"?"blue":i==="red"?i:void 0}),(0,e.jsx)(H,{label:r,Icon:n,highlighting:i==="red"?i:void 0}),o&&(0,e.jsx)("span",{className:(0,c.clsx)(v.elementsCount,i==="red"&&v.elementsCountRed),children:o(t.length)})]}),(0,e.jsx)(B.Collapsible.Panel,{className:v.panel,children:q})]})},De=({value:r,children:n})=>(0,e.jsx)(z.Provider,{value:r,children:n}),$e=({depth:r})=>r<=1,Ve=({value:r,entries:n,shouldExpandNodeInitially:t=$e,...o})=>(0,e.jsx)(De,{value:{...o,shouldExpandNodeInitially:t},children:(0,e.jsx)(_e,{depth:0,children:_.isDefined(n)?(0,e.jsx)($,{elements:n,Icon:b.IconBrackets,depth:0,keyPath:"",emptyElementsText:o.emptyObjectLabel}):(0,e.jsx)(G,{value:r??null,depth:0,keyPath:""})})}),Pe="_row_1hj4l_1",Be="_label_1hj4l_11",Fe="_icon_1hj4l_20",L={row:Pe,label:Be,icon:Fe},Me=({children:r,startIcon:n,value:t,progress:o,progressColor:l,progressValueText:a,render:s,ref:i,className:C,...f})=>{const m=(0,h.useId)(),d=a??t;return(0,T.useRender)({render:s,ref:i,props:{...f,className:(0,c.clsx)(L.row,C),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:L.label,children:[_.isDefined(n)&&(0,e.jsx)("span",{className:L.icon,"aria-hidden":"true",children:n}),(0,e.jsx)("span",{id:m,children:r})]}),_.isDefined(o)?(0,e.jsx)(W.ProgressRing,{value:o,size:"sm",barColor:l,"aria-labelledby":m,...(0,u.isNonEmptyString)(d)?{"aria-valuetext":d}:{},children:t}):(0,e.jsx)("span",{children:t})]})}})},ze="_root_7l8sk_1",He="_stackedIcon_7l8sk_14",M={root:ze,stackedIcon:He},Ge=({icon:r,stackedIcon:n,className:t,render:o,ref:l,...a})=>(0,T.useRender)({render:o,ref:l,props:{...a,className:(0,c.clsx)(M.root,t),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{"aria-hidden":"true",children:r}),(0,e.jsx)("span",{"aria-hidden":"true",className:M.stackedIcon,children:n})]})}}),R={background:4,border:6,icon:10},D=(r,n)=>x.themeCssVariables.color[`${r}${n}`]??x.themeCssVariables.tag.text[r],K=r=>{const n=Y.parseThemeColor(r);return{backgroundColor:D(n,R.background),iconColor:D(n,R.icon),borderColor:D(n,R.border)}},Ke="_root_9ntdy_1",Ue={root:Ke},Xe=({icon:r,color:n=x.DEFAULT_THEME_COLOR_FALLBACK,className:t,style:o,render:l,ref:a,...s})=>{const i=K(n);return(0,T.useRender)({render:l,ref:a,props:{...s,className:(0,c.clsx)(Ue.root,t),style:{backgroundColor:i.backgroundColor,color:i.iconColor,...o},children:(0,e.jsx)("span",{"aria-hidden":"true",children:r})}})};Object.defineProperty(exports,"AvatarGroup",{enumerable:!0,get:function(){return oe}});Object.defineProperty(exports,"CommandBlock",{enumerable:!0,get:function(){return ce}});Object.defineProperty(exports,"JsonTree",{enumerable:!0,get:function(){return Ve}});Object.defineProperty(exports,"MetricRow",{enumerable:!0,get:function(){return Me}});Object.defineProperty(exports,"StackIcon",{enumerable:!0,get:function(){return Ge}});Object.defineProperty(exports,"TintedIconTile",{enumerable:!0,get:function(){return Xe}});Object.defineProperty(exports,"getIconTileColorShades",{enumerable:!0,get:function(){return K}});
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { useRender as k } from "@base-ui/react/use-render";
|
|
2
|
-
import { clsx as v } from "clsx";
|
|
3
|
-
var f = {
|
|
4
|
-
xs: 13,
|
|
5
|
-
s: 16,
|
|
6
|
-
m: 24,
|
|
7
|
-
l: 32,
|
|
8
|
-
xl: 40
|
|
9
|
-
}, u = "_root_17v1i_1", c = "_skeletonShimmer_17v1i_1", h = {
|
|
10
|
-
root: u,
|
|
11
|
-
skeletonShimmer: c
|
|
12
|
-
}, g = ({ width: r, height: a, borderRadius: t, baseColor: e, highlightColor: l, animated: n = !0, layout: o = "block", className: i, style: s, render: d, ref: m, ..._ }) => k({
|
|
13
|
-
defaultTagName: "span",
|
|
14
|
-
render: d,
|
|
15
|
-
ref: m,
|
|
16
|
-
props: {
|
|
17
|
-
"aria-hidden": !0,
|
|
18
|
-
..._,
|
|
19
|
-
"data-skeleton": "",
|
|
20
|
-
"data-animated": n || void 0,
|
|
21
|
-
"data-layout": o,
|
|
22
|
-
className: v(h.root, i),
|
|
23
|
-
style: {
|
|
24
|
-
width: r,
|
|
25
|
-
height: a,
|
|
26
|
-
borderRadius: t,
|
|
27
|
-
backgroundColor: e,
|
|
28
|
-
"--skeleton-base-color": e,
|
|
29
|
-
"--skeleton-highlight-color": l,
|
|
30
|
-
...s
|
|
31
|
-
},
|
|
32
|
-
children: o === "inline" ? "" : void 0
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
export {
|
|
36
|
-
f as n,
|
|
37
|
-
g as t
|
|
38
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let c=require("@base-ui/react/use-render"),m=require("clsx");var S={xs:13,s:16,m:24,l:32,xl:40},k="_root_17v1i_1",v="_skeletonShimmer_17v1i_1",E={root:k,skeletonShimmer:v},b=({width:t,height:n,borderRadius:o,baseColor:e,highlightColor:a,animated:l=!0,layout:r="block",className:i,style:u,render:d,ref:s,..._})=>(0,c.useRender)({defaultTagName:"span",render:d,ref:s,props:{"aria-hidden":!0,..._,"data-skeleton":"","data-animated":l||void 0,"data-layout":r,className:(0,m.clsx)(E.root,i),style:{width:t,height:n,borderRadius:o,backgroundColor:e,"--skeleton-base-color":e,"--skeleton-highlight-color":a,...u},children:r==="inline"?"":void 0}});Object.defineProperty(exports,"SKELETON_HEIGHT_SIZES",{enumerable:!0,get:function(){return S}});Object.defineProperty(exports,"Skeleton",{enumerable:!0,get:function(){return b}});
|