twenty-ui 2.55.0 → 2.56.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-Ca_Mat4L.js → AllIcons-DbdVWsOq.js} +1 -1
- package/dist/{AllIcons-BQasO-X_.cjs → AllIcons-RgvlIG_O.cjs} +1 -1
- package/dist/{Button-C3IE0Kup.cjs → Button-CbJ3qEQ9.cjs} +1 -1
- package/dist/{Button-By-nG5vV.js → Button-wpJzTy9O.js} +3 -3
- package/dist/{Dropdown-CyEoMEjR.cjs → Dropdown-CTTQTn7B.cjs} +1 -1
- package/dist/{Dropdown-Zdc0J7Bg.js → Dropdown-CWXJOVhy.js} +13 -13
- package/dist/{Heading-CHvEXL6n.cjs → Heading-DnDEfr6w.cjs} +1 -1
- package/dist/{Heading-Nj5BlPqB.js → Heading-prj1BR5x.js} +4 -4
- package/dist/IconAddressBook-B6S_w1Z7.cjs +1 -0
- package/dist/{IconAddressBook-DUu7W_Gw.js → IconAddressBook-yE-1oV2W.js} +2 -2
- package/dist/{Input-BKRR1xlO.js → Input-B9glruH9.js} +5 -5
- package/dist/{Input-DS19vWhl.cjs → Input-D0yWU3vB.cjs} +1 -1
- package/dist/{ListItem-D0WDJG-e.cjs → ListItem-D6FYdx6v.cjs} +1 -1
- package/dist/{ListItem-BgRDvHQG.js → ListItem-mIMpO2Ia.js} +8 -8
- package/dist/Loader-9tUcz6Y9.js +29 -0
- package/dist/Loader-r-OAVzF_.cjs +1 -0
- package/dist/{OverflowingTextWithTooltip-CuWHF8_e.cjs → OverflowingTextWithTooltip-B21zZWP6.cjs} +1 -1
- package/dist/{OverflowingTextWithTooltip-CAQ-5aUp.js → OverflowingTextWithTooltip-aPLt9O1-.js} +9 -9
- package/dist/{Popover-DhFCYRtv.js → Popover-5bTsqA1R.js} +1 -1
- package/dist/{Popover-B-VIhr5g.cjs → Popover-JaBFWSK-.cjs} +1 -1
- package/dist/{ProgressBar-km29TA-7.cjs → ProgressBar-BYw2pGjr.cjs} +1 -1
- package/dist/{ProgressBar-B_QvBWbI.js → ProgressBar-Bjj3a1R3.js} +10 -10
- package/dist/Radio-Bg-zmy-1.js +176 -0
- package/dist/{Radio-DUQ6MLGc.cjs → Radio-CjaEN7Bt.cjs} +1 -1
- package/dist/{ResizeHandle-B30OYZxS.js → ResizeHandle-BWoKp0dV.js} +11 -11
- package/dist/{ResizeHandle-B1MuHTNA.cjs → ResizeHandle-D4Q-ffcT.cjs} +1 -1
- package/dist/{Shortcut-CThgcmn_.js → Shortcut-04Wkuy0i.js} +10 -10
- package/dist/{Shortcut-CLngfg7s.cjs → Shortcut-Gp5Ix8K2.cjs} +1 -1
- package/dist/{Skeleton-tXeIy4qq.cjs → Skeleton-DSloDuSJ.cjs} +1 -1
- package/dist/{Skeleton-BbIF780H.js → Skeleton-gAiz2xVU.js} +4 -4
- package/dist/{Tooltip-BXeUFCdb.cjs → Tooltip-BTv1a0nT.cjs} +1 -1
- package/dist/{Tooltip-CT9YCDaV.js → Tooltip-C60MawQS.js} +10 -10
- package/dist/VisuallyHidden-BOlbK5vT.cjs +1 -0
- package/dist/{VisuallyHidden-CFZP7ybO.js → VisuallyHidden-EWkEBgpc.js} +4 -4
- package/dist/components/code-editor.cjs +1 -1
- package/dist/components/code-editor.mjs +11 -11
- package/dist/components/data-display/AssistantAvatar/AssistantAvatar.d.ts +2 -0
- package/dist/components/data-display/AssistantAvatar/internal/components/AnimatedAssistantAvatarFace.d.ts +6 -0
- package/dist/components/data-display/AssistantAvatar/internal/constants/assistantAvatarBodyAssetByShape.constant.d.ts +12 -0
- package/dist/components/data-display/AssistantAvatar/internal/constants/assistantAvatarColors.constant.d.ts +1 -0
- package/dist/components/data-display/AssistantAvatar/internal/constants/assistantAvatarFaceAssetByFace.constant.d.ts +8 -0
- package/dist/components/data-display/AssistantAvatar/internal/constants/assistantAvatarFaces.constant.d.ts +1 -0
- package/dist/components/data-display/AssistantAvatar/internal/constants/assistantAvatarShapes.constant.d.ts +1 -0
- package/dist/components/data-display/AssistantAvatar/internal/constants/assistantAvatarSizes.constant.d.ts +1 -0
- package/dist/components/data-display/AssistantAvatar/types/AssistantAvatarColor.d.ts +3 -0
- package/dist/components/data-display/AssistantAvatar/types/AssistantAvatarFace.d.ts +2 -0
- package/dist/components/data-display/AssistantAvatar/types/AssistantAvatarProps.d.ts +12 -0
- package/dist/components/data-display/AssistantAvatar/types/AssistantAvatarShape.d.ts +2 -0
- package/dist/components/data-display/AssistantAvatar/types/AssistantAvatarSize.d.ts +2 -0
- package/dist/components/data-display/index.d.ts +6 -0
- package/dist/components/data-display.cjs +1 -1
- package/dist/components/data-display.mjs +9 -8
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input/SegmentedControl/types/SegmentedControlProps.d.ts +2 -2
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +2 -2
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.mjs +1 -1
- 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 +43 -42
- package/dist/{data-display-DlmWaxYb.cjs → data-display-B0ANuV9c.cjs} +1 -1
- package/dist/data-display-Czu6NhqA.cjs +2 -0
- package/dist/data-display-_j--U7HG.js +520 -0
- package/dist/{data-display-DKSUI3GC.js → data-display-njtZTjjY.js} +24 -24
- package/dist/{feedback-DFTvn5aL.js → feedback-B-wGbbew.js} +31 -31
- package/dist/{feedback-Cvmm1EZX.cjs → feedback-DZF40uJe.cjs} +1 -1
- package/dist/icon/provider.cjs +1 -1
- package/dist/icon/provider.mjs +2 -2
- package/dist/{icon-zsQcq4-s.js → icon-6Nun996H.js} +2 -2
- package/dist/{icon-VuAPY3xQ.cjs → icon-BhAcFxaJ.cjs} +1 -1
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +672 -670
- package/dist/{input-Clzu-UFH.js → input-BaXuEzOr.js} +36 -36
- package/dist/input-BlZ0RHaV.js +379 -0
- package/dist/input-DQfXFl5C.cjs +1 -0
- package/dist/{input-E1x0D2jA.cjs → input-cZCDLL4-.cjs} +1 -1
- package/dist/{layout-DHW99Ejj.cjs → layout-CpDps22m.cjs} +1 -1
- package/dist/{layout-4p7UQD7l.js → layout-DGrag6ua.js} +99 -99
- package/dist/{navigation-BY8X2w04.js → navigation-B4F-yaFC.js} +6 -6
- package/dist/{navigation-4RI9GlzA.js → navigation-CmTgub0K.js} +14 -14
- package/dist/{navigation-B9jOHv99.cjs → navigation-CuI3MVOM.cjs} +1 -1
- package/dist/{navigation-ByYN6NgX.cjs → navigation-Dqiqv2rb.cjs} +1 -1
- package/dist/primitives/accessibility.cjs +1 -1
- package/dist/primitives/accessibility.mjs +1 -1
- package/dist/primitives/data-display/Badge/types/BadgeColor.d.ts +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 +3 -3
- package/dist/primitives/input/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/primitives/input/RadioGroup/types/RadioGroupProps.d.ts +2 -0
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +4 -4
- 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/Card/Card.d.ts +1 -1
- package/dist/primitives/surfaces/Card/internal/CardRoot.d.ts +1 -1
- package/dist/primitives/surfaces/Card/types/CardRootProps.d.ts +2 -0
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +3 -3
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +4 -4
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +19 -19
- package/dist/{settings-2ZhNkDgW.js → settings-BSIBOXgt.js} +2 -2
- package/dist/{settings-DR3dpWzy.cjs → settings-gd-ps3zs.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/surfaces-BpIdyqtX.js +227 -0
- package/dist/surfaces-GkxUWBN6.cjs +1 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.mjs +2 -2
- package/dist/theme/constants/ThemeLight.d.ts +1 -0
- package/dist/theme/internal/ThemeNumericValueByCssVariable.d.ts +1 -0
- package/dist/theme/internal/ThemeTokenTree.d.ts +3 -0
- package/dist/theme/internal/resolveThemeTokens.d.ts +2 -0
- package/dist/theme/themeCssVariables.d.ts +1 -0
- package/dist/theme/themeTypes.d.ts +1 -0
- package/dist/{theme-CuGIQBsJ.js → theme-B1jMC8En.js} +2577 -2544
- package/dist/theme-CeIzO6UU.cjs +1 -0
- package/dist/theme-dark.css +1 -0
- package/dist/theme-light.css +1 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.mjs +13 -13
- package/dist/{typography-B4hug-TZ.cjs → typography-BQbeIT60.cjs} +1 -1
- package/dist/{typography-jl1UzvVu.js → typography-DvK5mDnG.js} +2 -2
- package/dist/{useIsMobile-CZeJLJJN.js → useIsMobile-B0P21Ov9.js} +1 -1
- package/dist/{useIsMobile-VmnhfE8g.cjs → useIsMobile-BnW-j5Bq.cjs} +1 -1
- package/dist/utilities/color/utils/themeColorSchema.d.ts +15 -15
- package/dist/utilities/index.d.ts +1 -0
- package/dist/utilities/zoom/utils/isPageZoomGesture.d.ts +1 -0
- package/dist/utilities-9ARl_uku.cjs +1 -0
- package/dist/{utilities-E91ftFp_.js → utilities-IyA_ho0H.js} +19 -18
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +18 -17
- package/package.json +1 -1
- package/dist/IconAddressBook-uc6K45F8.cjs +0 -1
- package/dist/Loader-Dau0YQpY.cjs +0 -1
- package/dist/Loader-U1LuZtJf.js +0 -29
- package/dist/Radio-rURvQ923.js +0 -176
- package/dist/VisuallyHidden-B-n4x1KY.cjs +0 -1
- package/dist/data-display-Cg9gF6Cb.cjs +0 -2
- package/dist/data-display-CuvXSBLo.js +0 -422
- package/dist/input-BIUZSrhq.js +0 -374
- package/dist/input-CX8QPMDn.cjs +0 -1
- package/dist/surfaces-C70biBA8.js +0 -225
- package/dist/surfaces-DcGz8LO-.cjs +0 -1
- package/dist/theme-BJRNJNPO.cjs +0 -1
- package/dist/utilities-YhvQ2XFb.cjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const s=require("./theme-BJRNJNPO.cjs");let o=require("react");o=s.__toESM(o);let e=require("react/jsx-runtime");var i=t=>(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-address-book",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","data-twenty-icon":"",...t,children:[(0,e.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,e.jsx)("path",{d:"M20 6v12a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2z"}),(0,e.jsx)("path",{d:"M10 16h6"}),(0,e.jsx)("path",{d:"M13 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"}),(0,e.jsx)("path",{d:"M4 8h3"}),(0,e.jsx)("path",{d:"M4 12h3"}),(0,e.jsx)("path",{d:"M4 16h3"})]}),a=t=>{const n=s.useTheme(),r=t.size??24,h=t.stroke??n.icon.stroke.md;return(0,e.jsx)(i,{height:r,width:r,stroke:t.color??"currentColor",strokeWidth:h})};Object.defineProperty(exports,"IconAddressBook",{enumerable:!0,get:function(){return a}});
|
package/dist/Loader-Dau0YQpY.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const n=require("./theme-BJRNJNPO.cjs"),o=require("./isDefined-DS2Q42p5.cjs");let _=require("@base-ui/react/use-render"),u=require("clsx"),l=require("react/jsx-runtime");var c="_container_1i6sz_1",m="_dot_1i6sz_15",q="_loaderDot_1i6sz_1",r={container:c,dot:m,loaderDot:q},f=({color:e,className:a,style:t,render:i,ref:s,...d})=>(0,_.useRender)({defaultTagName:"div",render:i,ref:s,props:{...d,className:(0,u.clsx)(r.container,a),style:{...o.isDefined(e)&&{"--loader-color":n.themeCssVariables.tag.text[e]},...t},children:(0,l.jsx)("span",{className:r.dot,"aria-hidden":"true"})}});Object.defineProperty(exports,"Loader",{enumerable:!0,get:function(){return f}});
|
package/dist/Loader-U1LuZtJf.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { t as d } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { a as m } from "./theme-CuGIQBsJ.js";
|
|
3
|
-
import { useRender as l } from "@base-ui/react/use-render";
|
|
4
|
-
import { clsx as n } from "clsx";
|
|
5
|
-
import { jsx as _ } from "react/jsx-runtime";
|
|
6
|
-
var p = "_container_1i6sz_1", f = "_dot_1i6sz_15", c = "_loaderDot_1i6sz_1", r = {
|
|
7
|
-
container: p,
|
|
8
|
-
dot: f,
|
|
9
|
-
loaderDot: c
|
|
10
|
-
}, D = ({ color: a, className: e, style: o, render: t, ref: s, ...i }) => l({
|
|
11
|
-
defaultTagName: "div",
|
|
12
|
-
render: t,
|
|
13
|
-
ref: s,
|
|
14
|
-
props: {
|
|
15
|
-
...i,
|
|
16
|
-
className: n(r.container, e),
|
|
17
|
-
style: {
|
|
18
|
-
...d(a) && { "--loader-color": m.tag.text[a] },
|
|
19
|
-
...o
|
|
20
|
-
},
|
|
21
|
-
children: /* @__PURE__ */ _("span", {
|
|
22
|
-
className: r.dot,
|
|
23
|
-
"aria-hidden": "true"
|
|
24
|
-
})
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
export {
|
|
28
|
-
D as t
|
|
29
|
-
};
|
package/dist/Radio-rURvQ923.js
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { t as A } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { Dt as G, Tt as P } from "./TablerIcons-B6BhOlW_.js";
|
|
3
|
-
import { t as w } from "./theme-CuGIQBsJ.js";
|
|
4
|
-
import { t } from "./mergeClassNames-ClFMR1v0.js";
|
|
5
|
-
import { n as N } from "./Button-By-nG5vV.js";
|
|
6
|
-
import { t as b } from "./useProvidedTextDirection-Dk8LBQeF.js";
|
|
7
|
-
import { t as p } from "./ListItem.module-BV1vQ5hr.js";
|
|
8
|
-
import { n as v, r as D } from "./Input-BKRR1xlO.js";
|
|
9
|
-
import { useRender as T } from "@base-ui/react/use-render";
|
|
10
|
-
import { isBoolean as F, isNumber as $, isUndefined as k } from "@sniptt/guards";
|
|
11
|
-
import { clsx as c } from "clsx";
|
|
12
|
-
import { Fragment as B, jsx as a, jsxs as g } from "react/jsx-runtime";
|
|
13
|
-
import { Select as o } from "@base-ui/react/select";
|
|
14
|
-
import { NumberField as s } from "@base-ui/react/number-field";
|
|
15
|
-
import { Radio as f } from "@base-ui/react/radio";
|
|
16
|
-
var E = "_trigger_hijh9_1", U = "_value_hijh9_12", V = "_icon_hijh9_31", O = "_positioner_hijh9_42", q = "_popup_hijh9_46", y = "_item_hijh9_71", H = "_indicator_hijh9_75", J = "_groupLabel_hijh9_81", K = "_separator_hijh9_89", m = {
|
|
17
|
-
trigger: E,
|
|
18
|
-
value: U,
|
|
19
|
-
icon: V,
|
|
20
|
-
positioner: O,
|
|
21
|
-
popup: q,
|
|
22
|
-
item: y,
|
|
23
|
-
indicator: H,
|
|
24
|
-
groupLabel: J,
|
|
25
|
-
separator: K
|
|
26
|
-
}, M = ({ className: r, ...e }) => /* @__PURE__ */ a(o.GroupLabel, {
|
|
27
|
-
...e,
|
|
28
|
-
className: t(m.groupLabel, r)
|
|
29
|
-
}), Q = ({ className: r, children: e = /* @__PURE__ */ a(G, {}), ...i }) => /* @__PURE__ */ a(o.Icon, {
|
|
30
|
-
...i,
|
|
31
|
-
className: t(m.icon, r),
|
|
32
|
-
children: e
|
|
33
|
-
}), W = ({ className: r, ...e }) => /* @__PURE__ */ a(o.Item, {
|
|
34
|
-
"data-color": "neutral",
|
|
35
|
-
"data-indicator": "check",
|
|
36
|
-
...e,
|
|
37
|
-
className: t(c(p.root, m.item), r)
|
|
38
|
-
}), X = ({ className: r, children: e = /* @__PURE__ */ a(P, { className: p.checkIndicator }), ...i }) => /* @__PURE__ */ a(o.ItemIndicator, {
|
|
39
|
-
...i,
|
|
40
|
-
className: t(m.indicator, r),
|
|
41
|
-
children: e
|
|
42
|
-
}), Y = ({ className: r, ...e }) => /* @__PURE__ */ a(o.ItemText, {
|
|
43
|
-
...e,
|
|
44
|
-
className: t(c(p.label, p.text), r)
|
|
45
|
-
}), Z = ({ className: r, ...e }) => /* @__PURE__ */ a(o.Popup, {
|
|
46
|
-
...e,
|
|
47
|
-
className: t(m.popup, r)
|
|
48
|
-
}), z = ({ container: r, ...e }) => {
|
|
49
|
-
const i = w(), n = b();
|
|
50
|
-
return /* @__PURE__ */ a(o.Portal, {
|
|
51
|
-
dir: n,
|
|
52
|
-
...e,
|
|
53
|
-
container: k(r) ? i ?? void 0 : r
|
|
54
|
-
});
|
|
55
|
-
}, rr = ({ className: r, ...e }) => {
|
|
56
|
-
const i = b();
|
|
57
|
-
return /* @__PURE__ */ a(o.Positioner, {
|
|
58
|
-
dir: i,
|
|
59
|
-
...e,
|
|
60
|
-
className: t(m.positioner, r)
|
|
61
|
-
});
|
|
62
|
-
}, er = ({ className: r, ...e }) => /* @__PURE__ */ a(o.Separator, {
|
|
63
|
-
...e,
|
|
64
|
-
className: t(m.separator, r)
|
|
65
|
-
}), ar = ({ size: r = "md", className: e, ...i }) => /* @__PURE__ */ a(o.Trigger, {
|
|
66
|
-
...i,
|
|
67
|
-
className: t(c(v.input, v[r], m.trigger), e)
|
|
68
|
-
}), or = ({ className: r, ...e }) => /* @__PURE__ */ a(o.Value, {
|
|
69
|
-
...e,
|
|
70
|
-
className: t(m.value, r)
|
|
71
|
-
}), tr = () => ({
|
|
72
|
-
Root: o.Root,
|
|
73
|
-
Label: o.Label,
|
|
74
|
-
Trigger: ar,
|
|
75
|
-
Value: or,
|
|
76
|
-
Icon: Q,
|
|
77
|
-
Portal: z,
|
|
78
|
-
Backdrop: o.Backdrop,
|
|
79
|
-
Positioner: rr,
|
|
80
|
-
Popup: Z,
|
|
81
|
-
List: o.List,
|
|
82
|
-
Item: W,
|
|
83
|
-
ItemIndicator: X,
|
|
84
|
-
ItemText: Y,
|
|
85
|
-
Arrow: o.Arrow,
|
|
86
|
-
ScrollDownArrow: o.ScrollDownArrow,
|
|
87
|
-
ScrollUpArrow: o.ScrollUpArrow,
|
|
88
|
-
Group: o.Group,
|
|
89
|
-
GroupLabel: M,
|
|
90
|
-
Separator: er
|
|
91
|
-
}), Ur = /* @__PURE__ */ tr(), Vr = (r) => $(r) ? `${r}px` : r, ir = "_group_mv9ls_1", mr = "_button_mv9ls_7", h = {
|
|
92
|
-
group: ir,
|
|
93
|
-
button: mr
|
|
94
|
-
}, nr = ({ className: r, ...e }) => /* @__PURE__ */ a(s.Decrement, {
|
|
95
|
-
...e,
|
|
96
|
-
className: t(c(N.button, h.button), r)
|
|
97
|
-
}), sr = ({ className: r, ...e }) => /* @__PURE__ */ a(s.Group, {
|
|
98
|
-
...e,
|
|
99
|
-
className: t(h.group, r)
|
|
100
|
-
}), cr = ({ className: r, ...e }) => /* @__PURE__ */ a(s.Increment, {
|
|
101
|
-
...e,
|
|
102
|
-
className: t(c(N.button, h.button), r)
|
|
103
|
-
}), lr = ({ className: r, ...e }) => /* @__PURE__ */ a(s.Input, {
|
|
104
|
-
...e,
|
|
105
|
-
className: t(v.input, r)
|
|
106
|
-
}), Or = {
|
|
107
|
-
Root: s.Root,
|
|
108
|
-
Group: sr,
|
|
109
|
-
Input: lr,
|
|
110
|
-
Increment: cr,
|
|
111
|
-
Decrement: nr,
|
|
112
|
-
ScrubArea: s.ScrubArea,
|
|
113
|
-
ScrubAreaCursor: s.ScrubAreaCursor
|
|
114
|
-
}, dr = "_root_g72rh_1", pr = "_sm_g72rh_30", ur = "_md_g72rh_34", _r = "_startElement_g72rh_38", vr = "_endElement_g72rh_39", d = {
|
|
115
|
-
root: dr,
|
|
116
|
-
sm: pr,
|
|
117
|
-
md: ur,
|
|
118
|
-
startElement: _r,
|
|
119
|
-
endElement: vr
|
|
120
|
-
}, I = (r) => A(r) && !F(r) && r !== "", qr = ({ size: r = "md", hasFocusRing: e = !0, startElement: i, endElement: n, className: u, children: _, render: R, ref: C, ...L }) => {
|
|
121
|
-
const x = T({
|
|
122
|
-
render: R,
|
|
123
|
-
ref: C,
|
|
124
|
-
props: {
|
|
125
|
-
...L,
|
|
126
|
-
className: c(d.root, d[r], u),
|
|
127
|
-
"data-focus-ring": e,
|
|
128
|
-
children: /* @__PURE__ */ g(B, { children: [
|
|
129
|
-
I(i) && /* @__PURE__ */ a("span", {
|
|
130
|
-
className: d.startElement,
|
|
131
|
-
children: i
|
|
132
|
-
}),
|
|
133
|
-
_,
|
|
134
|
-
I(n) && /* @__PURE__ */ a("span", {
|
|
135
|
-
className: d.endElement,
|
|
136
|
-
children: n
|
|
137
|
-
})
|
|
138
|
-
] })
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
return /* @__PURE__ */ a(D.Provider, {
|
|
142
|
-
value: { size: r },
|
|
143
|
-
children: x
|
|
144
|
-
});
|
|
145
|
-
}, hr = "_root_1pdpj_1", Ir = "_control_1pdpj_18", Nr = "_sm_1pdpj_33", br = "_md_1pdpj_38", gr = "_indicator_1pdpj_49", fr = "_card_1pdpj_90", Sr = "_cardContent_1pdpj_111", l = {
|
|
146
|
-
root: hr,
|
|
147
|
-
control: Ir,
|
|
148
|
-
sm: Nr,
|
|
149
|
-
md: br,
|
|
150
|
-
indicator: gr,
|
|
151
|
-
card: fr,
|
|
152
|
-
cardContent: Sr
|
|
153
|
-
}, S = f.Indicator, j = f.Root, jr = ({ children: r, className: e, size: i = "sm", variant: n = "default", render: u = n === "card" ? /* @__PURE__ */ a("div", {}) : void 0, ..._ }) => /* @__PURE__ */ g(j, {
|
|
154
|
-
..._,
|
|
155
|
-
render: u,
|
|
156
|
-
className: t(c(l.root, l[i], n === "card" && l.card), e),
|
|
157
|
-
children: [/* @__PURE__ */ a("span", {
|
|
158
|
-
className: l.control,
|
|
159
|
-
"aria-hidden": !0,
|
|
160
|
-
children: /* @__PURE__ */ a(S, { className: l.indicator })
|
|
161
|
-
}), n === "card" ? /* @__PURE__ */ a("span", {
|
|
162
|
-
className: l.cardContent,
|
|
163
|
-
children: r
|
|
164
|
-
}) : r]
|
|
165
|
-
}), yr = Object.assign(jr, {
|
|
166
|
-
Root: j,
|
|
167
|
-
Indicator: S
|
|
168
|
-
});
|
|
169
|
-
export {
|
|
170
|
-
Ur as a,
|
|
171
|
-
Vr as i,
|
|
172
|
-
qr as n,
|
|
173
|
-
m as o,
|
|
174
|
-
Or as r,
|
|
175
|
-
yr as t
|
|
176
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let l=require("@base-ui/react/use-render"),t=require("clsx");var d="_root_cc24m_1",n={root:d},s=({render:e,ref:r,className:a,...u})=>(0,l.useRender)({defaultTagName:"span",render:e,ref:r,props:{...u,className:(0,t.clsx)(n.root,a)}});Object.defineProperty(exports,"VisuallyHidden",{enumerable:!0,get:function(){return s}});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const x=require("./theme-BJRNJNPO.cjs"),m=require("./isDefined-DS2Q42p5.cjs"),B=require("./isRenderableSlot-Guryb6Nf.cjs"),Y=require("./doNotTranslate-CHE7WmRS.cjs"),Z=require("./VisuallyHidden-B-n4x1KY.cjs"),W=require("./ProgressRing-g1nHGyUp.cjs"),ee=require("./utilities-YhvQ2XFb.cjs");let f=require("@base-ui/react/use-render"),u=require("@sniptt/guards"),c=require("clsx"),b=require("react"),e=require("react/jsx-runtime"),M=require("@base-ui/react/collapsible"),h=require("@tabler/icons-react");var re="_container_5cu4g_1",ne="_itemContainer_5cu4g_6",te="_overflowCountContainer_5cu4g_22",se="_overflowCount_5cu4g_22",I={container:re,itemContainer:ne,overflowCountContainer:te,overflowCount:se},oe=4,ae=({avatars:r,className:n,maxVisible:t=oe,total:s,renderOverflow:a,overflowShape:l="square",overlap:o="right",overlapOffset:i="3px",render:p,ref:j,...d})=>{const _=b.Children.toArray(r),q=Number.isNaN(t)?0:Math.max(0,Math.floor(t)),y=_.slice(0,q),N=s??_.length,T=(Number.isFinite(N)?Math.max(_.length,Math.floor(N)):_.length)-y.length,A=m.isDefined(a),S=T>0&&(A?a(T):(0,e.jsxs)("span",{className:I.overflowCount,"data-shape":l,children:["+",T]})),P=(0,u.isNonEmptyArray)(b.Children.toArray(S)),F={"--avatar-group-overlap-offset":i},Q=(0,f.useRender)({render:p,ref:j,props:{...d,className:(0,c.clsx)(I.container,n),children:(0,e.jsxs)(e.Fragment,{children:[b.Children.map(y,J=>(0,e.jsx)("span",{className:I.itemContainer,"data-overlap":o,style:F,children:J},(0,b.isValidElement)(J)?J.key:void 0)),P&&(0,e.jsx)("span",{className:(0,c.clsx)(I.itemContainer,!A&&I.overflowCountContainer),"data-overlap":o,style:F,children:S})]})}});return(0,u.isNonEmptyArray)(y)||P?Q:null},le="_container_1j72k_1",ie="_commands_1j72k_13",ce="_actions_1j72k_25",de="_prompt_1j72k_32",k={container:le,commands:ie,actions:ce,prompt:de},ue=({commands:r,actions:n,render:t,ref:s,className:a,...l})=>(0,f.useRender)({render:t,ref:s,props:{...l,className:(0,c.clsx)(k.container,a),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("pre",{className:k.commands,children:(0,e.jsx)("code",{children:r.map((o,i)=>(0,e.jsxs)("span",{children:[i>0&&`
|
|
2
|
-
`,(0,e.jsx)("span",{className:k.prompt,"aria-hidden":"true",children:"> "}),o]},i))})}),m.isDefined(n)&&(0,e.jsx)("div",{className:k.actions,children:n})]})}}),_e="_row_1usvs_1",me="_label_1usvs_11",ve="_labelText_1usvs_22",xe="_icon_1usvs_27",be="_description_1usvs_34",he="_value_1usvs_43",pe="_action_1usvs_54",C={row:_e,label:me,labelText:ve,icon:xe,description:be,value:he,action:pe},je=({label:r,children:n,startIcon:t,action:s,labelWidth:a="7rem",render:l,ref:o,className:i,style:p,...j})=>{const d={"--details-row-label-width":(0,u.isNumber)(a)?`${a}px`:a,...p};return(0,f.useRender)({render:l,ref:o,props:{...j,className:(0,c.clsx)(C.row,i),style:d,children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("dt",{className:C.label,children:[B.isRenderableSlot(t)&&(0,e.jsx)("span",{className:C.icon,"aria-hidden":"true",children:t}),(0,e.jsx)("span",{className:C.labelText,children:r})]}),(0,e.jsxs)("dd",{className:C.description,children:[(0,e.jsx)("div",{className:C.value,children:n}),B.isRenderableSlot(s)&&(0,e.jsx)("div",{className:C.action,children:s})]})]})}})},Ce="_list_1i4lv_1",Ne="_nested_1i4lv_8",z={list:Ce,nested:Ne},fe=({depth:r,className:n,children:t})=>(0,e.jsx)("ul",{className:(0,c.clsx)(z.list,r>0&&z.nested,n),children:t}),G=(0,b.createContext)(void 0),g=()=>{const r=(0,b.useContext)(G);if(!m.isDefined(r))throw new Error(Y.doNotTranslate("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider"));return r},ge="_button_1e3ij_1",ye="_red_1e3ij_17",Te="_chevron_1e3ij_22",O={button:ge,red:ye,chevron:Te},Ie=({isOpen:r,onClick:n,variant:t})=>{const s=x.useTheme(),{arrowButtonCollapsedLabel:a,arrowButtonExpandedLabel:l}=g(),o=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)(O.button,t==="red"&&O.red),onClick:n,children:[(0,e.jsx)(Z.VisuallyHidden,{children:r?l:a}),(0,e.jsx)("div",{className:O.chevron,"data-open":r||void 0,children:(0,e.jsx)(h.IconChevronDown,{size:s.icon.size.md,color:o})})]})},we=({label:r,value:n,depth:t,keyPath:s,highlighting:a})=>{const{emptyArrayLabel:l}=g();return(0,e.jsx)(V,{elements:[...n.entries()].map(([o,i])=>({id:o,label:String(o),value:i})),renderElementsCount:o=>`[${o}]`,label:r,Icon:h.IconBrackets,depth:t,emptyElementsText:l,keyPath:s,highlighting:a})},qe=({label:r,value:n,depth:t,keyPath:s,highlighting:a})=>{const{emptyObjectLabel:l}=g();return(0,e.jsx)(V,{elements:Object.entries(n).map(([o,i])=>({id:o,label:o,value:i})),renderElementsCount:o=>`{${o}}`,label:r,Icon:h.IconCube,depth:t,emptyElementsText:l,keyPath:s,highlighting:a})},Ae="_labelContainer_1pq94_1",Se="_blue_1pq94_23",ke="_red_1pq94_29",E={labelContainer:Ae,blue:Se,red:ke},K=({label:r,Icon:n,highlighting:t})=>{const s=x.useTheme();return(0,e.jsxs)("span",{className:(0,c.clsx)(E.labelContainer,t==="blue"&&E.blue,t==="red"&&E.red),children:[(0,e.jsx)(n,{size:s.icon.size.md,color:t==="blue"?s.color.blue:t==="red"?s.font.color.danger:s.font.color.tertiary}),(0,e.jsx)("span",{children:r})]})},Re="_text_1ot24_1",Je="_blue_1ot24_10",Oe="_red_1ot24_14",Ee="_button_1ot24_18",R={text:Re,blue:Je,red:Oe,button:Ee},$e=({valueAsString:r,highlighting:n})=>{const{onNodeValueClick:t}=g(),s=m.isDefined(t),a=()=>{t?.(r)},l=(0,c.clsx)(R.text,n==="blue"&&R.blue,n==="red"&&R.red);return s?(0,e.jsx)("button",{className:(0,c.clsx)(l,R.button),type:"button",onClick:a,children:r}):(0,e.jsx)("span",{className:l,children:r})},De="_listItem_1i7if_1",Le={listItem:De},w=r=>(0,e.jsxs)("li",{className:Le.listItem,children:[r.label&&(0,e.jsx)(K,{label:r.label,Icon:r.Icon,highlighting:r.highlighting}),(0,e.jsx)($e,{valueAsString:r.valueAsString,highlighting:r.highlighting})]}),Ve=r=>(0,u.isArray)(r),U=({label:r,value:n,depth:t,keyPath:s})=>{const{getNodeHighlighting:a,emptyStringLabel:l}=g(),o=a?.(s);return m.isDefined(n)?(0,u.isString)(n)?(0,e.jsx)(w,{label:r,valueAsString:(0,u.isNonEmptyString)(n)?n:l,Icon:h.IconTypography,highlighting:o}):(0,u.isNumber)(n)?(0,e.jsx)(w,{label:r,valueAsString:String(n),Icon:h.IconNumber9,highlighting:o}):(0,u.isBoolean)(n)?(0,e.jsx)(w,{label:r,valueAsString:String(n),Icon:h.IconCheckbox,highlighting:o}):Ve(n)?(0,e.jsx)(we,{label:r,value:n,depth:t,keyPath:s,highlighting:o}):(0,e.jsx)(qe,{label:r,value:n,depth:t,keyPath:s,highlighting:o}):(0,e.jsx)(w,{label:r,valueAsString:"null",Icon:h.IconCircleOff,highlighting:o})},Pe="_container_d0cqx_1",Fe="_labelContainer_d0cqx_6",Be="_elementsCount_d0cqx_12",Me="_elementsCountRed_d0cqx_16",ze="_panel_d0cqx_20",He="_list_d0cqx_30",Ge="_nested_d0cqx_37",v={container:Pe,labelContainer:Fe,elementsCount:Be,elementsCountRed:Me,panel:ze,list:He,nested:Ge},V=({label:r,Icon:n,elements:t,renderElementsCount:s,emptyElementsText:a,depth:l,keyPath:o,highlighting:i})=>{const{shouldExpandNodeInitially:p}=g(),j=!m.isDefined(r),[d,_]=(0,b.useState)(p({keyPath:o,depth:l})),q=(0,e.jsx)("ul",{className:(0,c.clsx)(v.list,l>0&&v.nested),children:t.length===0?(0,e.jsx)(w,{valueAsString:a,highlighting:void 0}):t.map(({id:N,label:T,value:A})=>{const S=(0,u.isNonEmptyString)(o)?`${o}.${N}`:String(N);return(0,e.jsx)(U,{label:T,value:A,depth:l+1,keyPath:S},N)})}),y=()=>{_(!d)};return j?(0,e.jsx)("li",{className:v.container,children:q}):(0,e.jsxs)(M.Collapsible.Root,{className:v.container,open:d,render:(0,e.jsx)("li",{}),children:[(0,e.jsxs)("div",{className:v.labelContainer,children:[(0,e.jsx)(Ie,{isOpen:d,onClick:y,variant:i==="partial-blue"?"blue":i==="red"?i:void 0}),(0,e.jsx)(K,{label:r,Icon:n,highlighting:i==="red"?i:void 0}),s&&(0,e.jsx)("span",{className:(0,c.clsx)(v.elementsCount,i==="red"&&v.elementsCountRed),children:s(t.length)})]}),(0,e.jsx)(M.Collapsible.Panel,{className:v.panel,children:q})]})},Ke=({value:r,children:n})=>(0,e.jsx)(G.Provider,{value:r,children:n}),Ue=({depth:r})=>r<=1,Xe=({value:r,entries:n,shouldExpandNodeInitially:t=Ue,...s})=>(0,e.jsx)(Ke,{value:{...s,shouldExpandNodeInitially:t},children:(0,e.jsx)(fe,{depth:0,children:m.isDefined(n)?(0,e.jsx)(V,{elements:n,Icon:h.IconBrackets,depth:0,keyPath:"",emptyElementsText:s.emptyObjectLabel}):(0,e.jsx)(U,{value:r??null,depth:0,keyPath:""})})}),Qe="_row_1hj4l_1",Ye="_label_1hj4l_11",Ze="_icon_1hj4l_20",$={row:Qe,label:Ye,icon:Ze},We=({children:r,startIcon:n,value:t,progress:s,progressColor:a,progressValueText:l,render:o,ref:i,className:p,...j})=>{const d=(0,b.useId)(),_=l??t;return(0,f.useRender)({render:o,ref:i,props:{...j,className:(0,c.clsx)($.row,p),children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:$.label,children:[m.isDefined(n)&&(0,e.jsx)("span",{className:$.icon,"aria-hidden":"true",children:n}),(0,e.jsx)("span",{id:d,children:r})]}),m.isDefined(s)?(0,e.jsx)(W.ProgressRing,{value:s,size:"sm",barColor:a,"aria-labelledby":d,...(0,u.isNonEmptyString)(_)?{"aria-valuetext":_}:{},children:t}):(0,e.jsx)("span",{children:t})]})}})},er="_root_7l8sk_1",rr="_stackedIcon_7l8sk_14",H={root:er,stackedIcon:rr},nr=({icon:r,stackedIcon:n,className:t,render:s,ref:a,...l})=>(0,f.useRender)({render:s,ref:a,props:{...l,className:(0,c.clsx)(H.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:H.stackedIcon,children:n})]})}}),D={background:4,border:6,icon:10},L=(r,n)=>x.themeCssVariables.color[`${r}${n}`]??x.themeCssVariables.tag.text[r],X=r=>{const n=ee.parseThemeColor(r);return{backgroundColor:L(n,D.background),iconColor:L(n,D.icon),borderColor:L(n,D.border)}},tr="_root_9ntdy_1",sr={root:tr},or=({icon:r,color:n=x.DEFAULT_THEME_COLOR_FALLBACK,className:t,style:s,render:a,ref:l,...o})=>{const i=X(n);return(0,f.useRender)({render:a,ref:l,props:{...o,className:(0,c.clsx)(sr.root,t),style:{backgroundColor:i.backgroundColor,color:i.iconColor,...s},children:(0,e.jsx)("span",{"aria-hidden":"true",children:r})}})};Object.defineProperty(exports,"AvatarGroup",{enumerable:!0,get:function(){return ae}});Object.defineProperty(exports,"CommandBlock",{enumerable:!0,get:function(){return ue}});Object.defineProperty(exports,"DetailsRow",{enumerable:!0,get:function(){return je}});Object.defineProperty(exports,"JsonTree",{enumerable:!0,get:function(){return Xe}});Object.defineProperty(exports,"MetricRow",{enumerable:!0,get:function(){return We}});Object.defineProperty(exports,"StackIcon",{enumerable:!0,get:function(){return nr}});Object.defineProperty(exports,"TintedIconTile",{enumerable:!0,get:function(){return or}});Object.defineProperty(exports,"getIconTileColorShades",{enumerable:!0,get:function(){return X}});
|
|
@@ -1,422 +0,0 @@
|
|
|
1
|
-
import { t as m } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
-
import { t as z } from "./isRenderableSlot-DT_depzM.js";
|
|
3
|
-
import { Dt as re, Et as oe, Ha as ne, Lt as ae, U as K, cn as te, ic as le } from "./TablerIcons-B6BhOlW_.js";
|
|
4
|
-
import { t as se } from "./doNotTranslate-BSVT8Xyd.js";
|
|
5
|
-
import { a as T, h as ie, r as X } from "./theme-CuGIQBsJ.js";
|
|
6
|
-
import { t as ce } from "./VisuallyHidden-CFZP7ybO.js";
|
|
7
|
-
import { t as de } from "./ProgressRing-8mYV9cxE.js";
|
|
8
|
-
import { c as _e } from "./utilities-E91ftFp_.js";
|
|
9
|
-
import { useRender as N } from "@base-ui/react/use-render";
|
|
10
|
-
import { isArray as ue, isBoolean as me, isNonEmptyArray as H, isNonEmptyString as V, isNumber as Q, isString as ve } from "@sniptt/guards";
|
|
11
|
-
import { clsx as d } from "clsx";
|
|
12
|
-
import { Children as E, createContext as he, isValidElement as pe, useContext as be, useId as Ce, useState as Ne } from "react";
|
|
13
|
-
import { Fragment as y, jsx as o, jsxs as c } from "react/jsx-runtime";
|
|
14
|
-
import { Collapsible as P } from "@base-ui/react/collapsible";
|
|
15
|
-
var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", xe = "_overflowCountContainer_5cu4g_22", Ie = "_overflowCount_5cu4g_22", I = {
|
|
16
|
-
container: fe,
|
|
17
|
-
itemContainer: ge,
|
|
18
|
-
overflowCountContainer: xe,
|
|
19
|
-
overflowCount: Ie
|
|
20
|
-
}, we = 4, Er = ({ avatars: e, className: r, maxVisible: n = we, total: a, renderOverflow: l, overflowShape: s = "square", overlap: t = "right", overlapOffset: i = "3px", render: h, ref: p, ..._ }) => {
|
|
21
|
-
const u = E.toArray(e), A = Number.isNaN(n) ? 0 : Math.max(0, Math.floor(n)), g = u.slice(0, A), C = a ?? u.length, x = (Number.isFinite(C) ? Math.max(u.length, Math.floor(C)) : u.length) - g.length, S = m(l), k = x > 0 && (S ? l(x) : /* @__PURE__ */ c("span", {
|
|
22
|
-
className: I.overflowCount,
|
|
23
|
-
"data-shape": s,
|
|
24
|
-
children: ["+", x]
|
|
25
|
-
})), F = H(E.toArray(k)), M = { "--avatar-group-overlap-offset": i }, ee = N({
|
|
26
|
-
render: h,
|
|
27
|
-
ref: p,
|
|
28
|
-
props: {
|
|
29
|
-
..._,
|
|
30
|
-
className: d(I.container, r),
|
|
31
|
-
children: /* @__PURE__ */ c(y, { children: [E.map(g, (L) => /* @__PURE__ */ o("span", {
|
|
32
|
-
className: I.itemContainer,
|
|
33
|
-
"data-overlap": t,
|
|
34
|
-
style: M,
|
|
35
|
-
children: L
|
|
36
|
-
}, pe(L) ? L.key : void 0)), F && /* @__PURE__ */ o("span", {
|
|
37
|
-
className: d(I.itemContainer, !S && I.overflowCountContainer),
|
|
38
|
-
"data-overlap": t,
|
|
39
|
-
style: M,
|
|
40
|
-
children: k
|
|
41
|
-
})] })
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
return H(g) || F ? ee : null;
|
|
45
|
-
}, Te = "_container_1j72k_1", ye = "_commands_1j72k_13", Ae = "_actions_1j72k_25", Se = "_prompt_1j72k_32", $ = {
|
|
46
|
-
container: Te,
|
|
47
|
-
commands: ye,
|
|
48
|
-
actions: Ae,
|
|
49
|
-
prompt: Se
|
|
50
|
-
}, jr = ({ commands: e, actions: r, render: n, ref: a, className: l, ...s }) => N({
|
|
51
|
-
render: n,
|
|
52
|
-
ref: a,
|
|
53
|
-
props: {
|
|
54
|
-
...s,
|
|
55
|
-
className: d($.container, l),
|
|
56
|
-
children: /* @__PURE__ */ c(y, { children: [/* @__PURE__ */ o("pre", {
|
|
57
|
-
className: $.commands,
|
|
58
|
-
children: /* @__PURE__ */ o("code", { children: e.map((t, i) => /* @__PURE__ */ c("span", { children: [
|
|
59
|
-
i > 0 && `
|
|
60
|
-
`,
|
|
61
|
-
/* @__PURE__ */ o("span", {
|
|
62
|
-
className: $.prompt,
|
|
63
|
-
"aria-hidden": "true",
|
|
64
|
-
children: "> "
|
|
65
|
-
}),
|
|
66
|
-
t
|
|
67
|
-
] }, i)) })
|
|
68
|
-
}), m(r) && /* @__PURE__ */ o("div", {
|
|
69
|
-
className: $.actions,
|
|
70
|
-
children: r
|
|
71
|
-
})] })
|
|
72
|
-
}
|
|
73
|
-
}), ke = "_row_1usvs_1", $e = "_label_1usvs_11", Je = "_labelText_1usvs_22", Le = "_icon_1usvs_27", Ee = "_description_1usvs_34", je = "_value_1usvs_43", Re = "_action_1usvs_54", b = {
|
|
74
|
-
row: ke,
|
|
75
|
-
label: $e,
|
|
76
|
-
labelText: Je,
|
|
77
|
-
icon: Le,
|
|
78
|
-
description: Ee,
|
|
79
|
-
value: je,
|
|
80
|
-
action: Re
|
|
81
|
-
}, Rr = ({ label: e, children: r, startIcon: n, action: a, labelWidth: l = "7rem", render: s, ref: t, className: i, style: h, ...p }) => {
|
|
82
|
-
const _ = {
|
|
83
|
-
"--details-row-label-width": Q(l) ? `${l}px` : l,
|
|
84
|
-
...h
|
|
85
|
-
};
|
|
86
|
-
return N({
|
|
87
|
-
render: s,
|
|
88
|
-
ref: t,
|
|
89
|
-
props: {
|
|
90
|
-
...p,
|
|
91
|
-
className: d(b.row, i),
|
|
92
|
-
style: _,
|
|
93
|
-
children: /* @__PURE__ */ c(y, { children: [/* @__PURE__ */ c("dt", {
|
|
94
|
-
className: b.label,
|
|
95
|
-
children: [z(n) && /* @__PURE__ */ o("span", {
|
|
96
|
-
className: b.icon,
|
|
97
|
-
"aria-hidden": "true",
|
|
98
|
-
children: n
|
|
99
|
-
}), /* @__PURE__ */ o("span", {
|
|
100
|
-
className: b.labelText,
|
|
101
|
-
children: e
|
|
102
|
-
})]
|
|
103
|
-
}), /* @__PURE__ */ c("dd", {
|
|
104
|
-
className: b.description,
|
|
105
|
-
children: [/* @__PURE__ */ o("div", {
|
|
106
|
-
className: b.value,
|
|
107
|
-
children: r
|
|
108
|
-
}), z(a) && /* @__PURE__ */ o("div", {
|
|
109
|
-
className: b.action,
|
|
110
|
-
children: a
|
|
111
|
-
})]
|
|
112
|
-
})] })
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
}, Oe = "_list_1i4lv_1", qe = "_nested_1i4lv_8", U = {
|
|
116
|
-
list: Oe,
|
|
117
|
-
nested: qe
|
|
118
|
-
}, De = ({ depth: e, className: r, children: n }) => /* @__PURE__ */ o("ul", {
|
|
119
|
-
className: d(U.list, e > 0 && U.nested, r),
|
|
120
|
-
children: n
|
|
121
|
-
}), Y = he(void 0), f = () => {
|
|
122
|
-
const e = be(Y);
|
|
123
|
-
if (!m(e)) throw new Error(se("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider"));
|
|
124
|
-
return e;
|
|
125
|
-
}, Ve = "_button_1e3ij_1", Be = "_red_1e3ij_17", Fe = "_chevron_1e3ij_22", j = {
|
|
126
|
-
button: Ve,
|
|
127
|
-
red: Be,
|
|
128
|
-
chevron: Fe
|
|
129
|
-
}, Me = ({ isOpen: e, onClick: r, variant: n }) => {
|
|
130
|
-
const a = X(), { arrowButtonCollapsedLabel: l, arrowButtonExpandedLabel: s } = f(), t = n === "blue" ? T.color.blue : n === "red" ? T.font.color.danger : T.font.color.secondary;
|
|
131
|
-
return /* @__PURE__ */ c("button", {
|
|
132
|
-
className: d(j.button, n === "red" && j.red),
|
|
133
|
-
onClick: r,
|
|
134
|
-
children: [/* @__PURE__ */ o(ce, { children: e ? s : l }), /* @__PURE__ */ o("div", {
|
|
135
|
-
className: j.chevron,
|
|
136
|
-
"data-open": e || void 0,
|
|
137
|
-
children: /* @__PURE__ */ o(re, {
|
|
138
|
-
size: a.icon.size.md,
|
|
139
|
-
color: t
|
|
140
|
-
})
|
|
141
|
-
})]
|
|
142
|
-
});
|
|
143
|
-
}, ze = ({ label: e, value: r, depth: n, keyPath: a, highlighting: l }) => {
|
|
144
|
-
const { emptyArrayLabel: s } = f();
|
|
145
|
-
return /* @__PURE__ */ o(B, {
|
|
146
|
-
elements: [...r.entries()].map(([t, i]) => ({
|
|
147
|
-
id: t,
|
|
148
|
-
label: String(t),
|
|
149
|
-
value: i
|
|
150
|
-
})),
|
|
151
|
-
renderElementsCount: (t) => `[${t}]`,
|
|
152
|
-
label: e,
|
|
153
|
-
Icon: K,
|
|
154
|
-
depth: n,
|
|
155
|
-
emptyElementsText: s,
|
|
156
|
-
keyPath: a,
|
|
157
|
-
highlighting: l
|
|
158
|
-
});
|
|
159
|
-
}, He = ({ label: e, value: r, depth: n, keyPath: a, highlighting: l }) => {
|
|
160
|
-
const { emptyObjectLabel: s } = f();
|
|
161
|
-
return /* @__PURE__ */ o(B, {
|
|
162
|
-
elements: Object.entries(r).map(([t, i]) => ({
|
|
163
|
-
id: t,
|
|
164
|
-
label: t,
|
|
165
|
-
value: i
|
|
166
|
-
})),
|
|
167
|
-
renderElementsCount: (t) => `{${t}}`,
|
|
168
|
-
label: e,
|
|
169
|
-
Icon: te,
|
|
170
|
-
depth: n,
|
|
171
|
-
emptyElementsText: s,
|
|
172
|
-
keyPath: a,
|
|
173
|
-
highlighting: l
|
|
174
|
-
});
|
|
175
|
-
}, Pe = "_labelContainer_1pq94_1", Ue = "_blue_1pq94_23", Ge = "_red_1pq94_29", R = {
|
|
176
|
-
labelContainer: Pe,
|
|
177
|
-
blue: Ue,
|
|
178
|
-
red: Ge
|
|
179
|
-
}, Z = ({ label: e, Icon: r, highlighting: n }) => {
|
|
180
|
-
const a = X();
|
|
181
|
-
return /* @__PURE__ */ c("span", {
|
|
182
|
-
className: d(R.labelContainer, n === "blue" && R.blue, n === "red" && R.red),
|
|
183
|
-
children: [/* @__PURE__ */ o(r, {
|
|
184
|
-
size: a.icon.size.md,
|
|
185
|
-
color: n === "blue" ? a.color.blue : n === "red" ? a.font.color.danger : a.font.color.tertiary
|
|
186
|
-
}), /* @__PURE__ */ o("span", { children: e })]
|
|
187
|
-
});
|
|
188
|
-
}, Ke = "_text_1ot24_1", Xe = "_blue_1ot24_10", Qe = "_red_1ot24_14", Ye = "_button_1ot24_18", J = {
|
|
189
|
-
text: Ke,
|
|
190
|
-
blue: Xe,
|
|
191
|
-
red: Qe,
|
|
192
|
-
button: Ye
|
|
193
|
-
}, Ze = ({ valueAsString: e, highlighting: r }) => {
|
|
194
|
-
const { onNodeValueClick: n } = f(), a = m(n), l = () => {
|
|
195
|
-
n?.(e);
|
|
196
|
-
}, s = d(J.text, r === "blue" && J.blue, r === "red" && J.red);
|
|
197
|
-
return a ? /* @__PURE__ */ o("button", {
|
|
198
|
-
className: d(s, J.button),
|
|
199
|
-
type: "button",
|
|
200
|
-
onClick: l,
|
|
201
|
-
children: e
|
|
202
|
-
}) : /* @__PURE__ */ o("span", {
|
|
203
|
-
className: s,
|
|
204
|
-
children: e
|
|
205
|
-
});
|
|
206
|
-
}, We = "_listItem_1i7if_1", er = { listItem: We }, w = (e) => /* @__PURE__ */ c("li", {
|
|
207
|
-
className: er.listItem,
|
|
208
|
-
children: [e.label && /* @__PURE__ */ o(Z, {
|
|
209
|
-
label: e.label,
|
|
210
|
-
Icon: e.Icon,
|
|
211
|
-
highlighting: e.highlighting
|
|
212
|
-
}), /* @__PURE__ */ o(Ze, {
|
|
213
|
-
valueAsString: e.valueAsString,
|
|
214
|
-
highlighting: e.highlighting
|
|
215
|
-
})]
|
|
216
|
-
}), rr = (e) => ue(e), W = ({ label: e, value: r, depth: n, keyPath: a }) => {
|
|
217
|
-
const { getNodeHighlighting: l, emptyStringLabel: s } = f(), t = l?.(a);
|
|
218
|
-
return m(r) ? ve(r) ? /* @__PURE__ */ o(w, {
|
|
219
|
-
label: e,
|
|
220
|
-
valueAsString: V(r) ? r : s,
|
|
221
|
-
Icon: le,
|
|
222
|
-
highlighting: t
|
|
223
|
-
}) : Q(r) ? /* @__PURE__ */ o(w, {
|
|
224
|
-
label: e,
|
|
225
|
-
valueAsString: String(r),
|
|
226
|
-
Icon: ne,
|
|
227
|
-
highlighting: t
|
|
228
|
-
}) : me(r) ? /* @__PURE__ */ o(w, {
|
|
229
|
-
label: e,
|
|
230
|
-
valueAsString: String(r),
|
|
231
|
-
Icon: oe,
|
|
232
|
-
highlighting: t
|
|
233
|
-
}) : rr(r) ? /* @__PURE__ */ o(ze, {
|
|
234
|
-
label: e,
|
|
235
|
-
value: r,
|
|
236
|
-
depth: n,
|
|
237
|
-
keyPath: a,
|
|
238
|
-
highlighting: t
|
|
239
|
-
}) : /* @__PURE__ */ o(He, {
|
|
240
|
-
label: e,
|
|
241
|
-
value: r,
|
|
242
|
-
depth: n,
|
|
243
|
-
keyPath: a,
|
|
244
|
-
highlighting: t
|
|
245
|
-
}) : /* @__PURE__ */ o(w, {
|
|
246
|
-
label: e,
|
|
247
|
-
valueAsString: "null",
|
|
248
|
-
Icon: ae,
|
|
249
|
-
highlighting: t
|
|
250
|
-
});
|
|
251
|
-
}, or = "_container_d0cqx_1", nr = "_labelContainer_d0cqx_6", ar = "_elementsCount_d0cqx_12", tr = "_elementsCountRed_d0cqx_16", lr = "_panel_d0cqx_20", sr = "_list_d0cqx_30", ir = "_nested_d0cqx_37", v = {
|
|
252
|
-
container: or,
|
|
253
|
-
labelContainer: nr,
|
|
254
|
-
elementsCount: ar,
|
|
255
|
-
elementsCountRed: tr,
|
|
256
|
-
panel: lr,
|
|
257
|
-
list: sr,
|
|
258
|
-
nested: ir
|
|
259
|
-
}, B = ({ label: e, Icon: r, elements: n, renderElementsCount: a, emptyElementsText: l, depth: s, keyPath: t, highlighting: i }) => {
|
|
260
|
-
const { shouldExpandNodeInitially: h } = f(), p = !m(e), [_, u] = Ne(h({
|
|
261
|
-
keyPath: t,
|
|
262
|
-
depth: s
|
|
263
|
-
})), A = /* @__PURE__ */ o("ul", {
|
|
264
|
-
className: d(v.list, s > 0 && v.nested),
|
|
265
|
-
children: n.length === 0 ? /* @__PURE__ */ o(w, {
|
|
266
|
-
valueAsString: l,
|
|
267
|
-
highlighting: void 0
|
|
268
|
-
}) : n.map(({ id: C, label: x, value: S }) => {
|
|
269
|
-
const k = V(t) ? `${t}.${C}` : String(C);
|
|
270
|
-
return /* @__PURE__ */ o(W, {
|
|
271
|
-
label: x,
|
|
272
|
-
value: S,
|
|
273
|
-
depth: s + 1,
|
|
274
|
-
keyPath: k
|
|
275
|
-
}, C);
|
|
276
|
-
})
|
|
277
|
-
}), g = () => {
|
|
278
|
-
u(!_);
|
|
279
|
-
};
|
|
280
|
-
return p ? /* @__PURE__ */ o("li", {
|
|
281
|
-
className: v.container,
|
|
282
|
-
children: A
|
|
283
|
-
}) : /* @__PURE__ */ c(P.Root, {
|
|
284
|
-
className: v.container,
|
|
285
|
-
open: _,
|
|
286
|
-
render: /* @__PURE__ */ o("li", {}),
|
|
287
|
-
children: [/* @__PURE__ */ c("div", {
|
|
288
|
-
className: v.labelContainer,
|
|
289
|
-
children: [
|
|
290
|
-
/* @__PURE__ */ o(Me, {
|
|
291
|
-
isOpen: _,
|
|
292
|
-
onClick: g,
|
|
293
|
-
variant: i === "partial-blue" ? "blue" : i === "red" ? i : void 0
|
|
294
|
-
}),
|
|
295
|
-
/* @__PURE__ */ o(Z, {
|
|
296
|
-
label: e,
|
|
297
|
-
Icon: r,
|
|
298
|
-
highlighting: i === "red" ? i : void 0
|
|
299
|
-
}),
|
|
300
|
-
a && /* @__PURE__ */ o("span", {
|
|
301
|
-
className: d(v.elementsCount, i === "red" && v.elementsCountRed),
|
|
302
|
-
children: a(n.length)
|
|
303
|
-
})
|
|
304
|
-
]
|
|
305
|
-
}), /* @__PURE__ */ o(P.Panel, {
|
|
306
|
-
className: v.panel,
|
|
307
|
-
children: A
|
|
308
|
-
})]
|
|
309
|
-
});
|
|
310
|
-
}, cr = ({ value: e, children: r }) => /* @__PURE__ */ o(Y.Provider, {
|
|
311
|
-
value: e,
|
|
312
|
-
children: r
|
|
313
|
-
}), dr = ({ depth: e }) => e <= 1, Or = ({ value: e, entries: r, shouldExpandNodeInitially: n = dr, ...a }) => /* @__PURE__ */ o(cr, {
|
|
314
|
-
value: {
|
|
315
|
-
...a,
|
|
316
|
-
shouldExpandNodeInitially: n
|
|
317
|
-
},
|
|
318
|
-
children: /* @__PURE__ */ o(De, {
|
|
319
|
-
depth: 0,
|
|
320
|
-
children: m(r) ? /* @__PURE__ */ o(B, {
|
|
321
|
-
elements: r,
|
|
322
|
-
Icon: K,
|
|
323
|
-
depth: 0,
|
|
324
|
-
keyPath: "",
|
|
325
|
-
emptyElementsText: a.emptyObjectLabel
|
|
326
|
-
}) : /* @__PURE__ */ o(W, {
|
|
327
|
-
value: e ?? null,
|
|
328
|
-
depth: 0,
|
|
329
|
-
keyPath: ""
|
|
330
|
-
})
|
|
331
|
-
})
|
|
332
|
-
}), _r = "_row_1hj4l_1", ur = "_label_1hj4l_11", mr = "_icon_1hj4l_20", O = {
|
|
333
|
-
row: _r,
|
|
334
|
-
label: ur,
|
|
335
|
-
icon: mr
|
|
336
|
-
}, qr = ({ children: e, startIcon: r, value: n, progress: a, progressColor: l, progressValueText: s, render: t, ref: i, className: h, ...p }) => {
|
|
337
|
-
const _ = Ce(), u = s ?? n;
|
|
338
|
-
return N({
|
|
339
|
-
render: t,
|
|
340
|
-
ref: i,
|
|
341
|
-
props: {
|
|
342
|
-
...p,
|
|
343
|
-
className: d(O.row, h),
|
|
344
|
-
children: /* @__PURE__ */ c(y, { children: [/* @__PURE__ */ c("div", {
|
|
345
|
-
className: O.label,
|
|
346
|
-
children: [m(r) && /* @__PURE__ */ o("span", {
|
|
347
|
-
className: O.icon,
|
|
348
|
-
"aria-hidden": "true",
|
|
349
|
-
children: r
|
|
350
|
-
}), /* @__PURE__ */ o("span", {
|
|
351
|
-
id: _,
|
|
352
|
-
children: e
|
|
353
|
-
})]
|
|
354
|
-
}), m(a) ? /* @__PURE__ */ o(de, {
|
|
355
|
-
value: a,
|
|
356
|
-
size: "sm",
|
|
357
|
-
barColor: l,
|
|
358
|
-
"aria-labelledby": _,
|
|
359
|
-
...V(u) ? { "aria-valuetext": u } : {},
|
|
360
|
-
children: n
|
|
361
|
-
}) : /* @__PURE__ */ o("span", { children: n })] })
|
|
362
|
-
}
|
|
363
|
-
});
|
|
364
|
-
}, vr = "_root_7l8sk_1", hr = "_stackedIcon_7l8sk_14", G = {
|
|
365
|
-
root: vr,
|
|
366
|
-
stackedIcon: hr
|
|
367
|
-
}, Dr = ({ icon: e, stackedIcon: r, className: n, render: a, ref: l, ...s }) => N({
|
|
368
|
-
render: a,
|
|
369
|
-
ref: l,
|
|
370
|
-
props: {
|
|
371
|
-
...s,
|
|
372
|
-
className: d(G.root, n),
|
|
373
|
-
children: /* @__PURE__ */ c(y, { children: [/* @__PURE__ */ o("span", {
|
|
374
|
-
"aria-hidden": "true",
|
|
375
|
-
children: e
|
|
376
|
-
}), /* @__PURE__ */ o("span", {
|
|
377
|
-
"aria-hidden": "true",
|
|
378
|
-
className: G.stackedIcon,
|
|
379
|
-
children: r
|
|
380
|
-
})] })
|
|
381
|
-
}
|
|
382
|
-
}), q = {
|
|
383
|
-
background: 4,
|
|
384
|
-
border: 6,
|
|
385
|
-
icon: 10
|
|
386
|
-
}, D = (e, r) => T.color[`${e}${r}`] ?? T.tag.text[e], pr = (e) => {
|
|
387
|
-
const r = _e(e);
|
|
388
|
-
return {
|
|
389
|
-
backgroundColor: D(r, q.background),
|
|
390
|
-
iconColor: D(r, q.icon),
|
|
391
|
-
borderColor: D(r, q.border)
|
|
392
|
-
};
|
|
393
|
-
}, br = "_root_9ntdy_1", Cr = { root: br }, Vr = ({ icon: e, color: r = ie, className: n, style: a, render: l, ref: s, ...t }) => {
|
|
394
|
-
const i = pr(r);
|
|
395
|
-
return N({
|
|
396
|
-
render: l,
|
|
397
|
-
ref: s,
|
|
398
|
-
props: {
|
|
399
|
-
...t,
|
|
400
|
-
className: d(Cr.root, n),
|
|
401
|
-
style: {
|
|
402
|
-
backgroundColor: i.backgroundColor,
|
|
403
|
-
color: i.iconColor,
|
|
404
|
-
...a
|
|
405
|
-
},
|
|
406
|
-
children: /* @__PURE__ */ o("span", {
|
|
407
|
-
"aria-hidden": "true",
|
|
408
|
-
children: e
|
|
409
|
-
})
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
};
|
|
413
|
-
export {
|
|
414
|
-
Or as a,
|
|
415
|
-
Er as c,
|
|
416
|
-
qr as i,
|
|
417
|
-
pr as n,
|
|
418
|
-
Rr as o,
|
|
419
|
-
Dr as r,
|
|
420
|
-
jr as s,
|
|
421
|
-
Vr as t
|
|
422
|
-
};
|