twenty-ui 2.52.0 → 2.54.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.
Files changed (94) hide show
  1. package/dist/{AllIcons-fCCVOqoJ.js → AllIcons-B9FfQJ70.js} +1 -1
  2. package/dist/{Button-Dd8cNsn1.js → Button-By-nG5vV.js} +1 -1
  3. package/dist/{Button-Du8T-dOv.cjs → Button-C3IE0Kup.cjs} +1 -1
  4. package/dist/Dropdown-CyEoMEjR.cjs +1 -0
  5. package/dist/{Dropdown-D3LPyrQI.js → Dropdown-Zdc0J7Bg.js} +53 -52
  6. package/dist/{ListItem-DR7Xh2WV.js → ListItem-BgRDvHQG.js} +4 -4
  7. package/dist/{ListItem-g1B--M70.cjs → ListItem-D0WDJG-e.cjs} +1 -1
  8. package/dist/ListItem.module-BV1vQ5hr.js +34 -0
  9. package/dist/ListItem.module-Cw0dbXxo.cjs +1 -0
  10. package/dist/{OverflowingTextWithTooltip-Cky5WlIk.js → OverflowingTextWithTooltip-CAQ-5aUp.js} +34 -33
  11. package/dist/OverflowingTextWithTooltip-CuWHF8_e.cjs +1 -0
  12. package/dist/{ProgressBar-BO0MkswY.js → ProgressBar-B_QvBWbI.js} +12 -12
  13. package/dist/{ProgressBar-BG38LPgC.cjs → ProgressBar-km29TA-7.cjs} +1 -1
  14. package/dist/Radio-DUQ6MLGc.cjs +1 -0
  15. package/dist/Radio-rURvQ923.js +176 -0
  16. package/dist/Shortcut-CLngfg7s.cjs +1 -0
  17. package/dist/Shortcut-CThgcmn_.js +77 -0
  18. package/dist/TablerIcons-B6BhOlW_.js +463 -0
  19. package/dist/components/data-display.cjs +1 -1
  20. package/dist/components/data-display.mjs +1 -1
  21. package/dist/components/feedback.cjs +1 -1
  22. package/dist/components/feedback.mjs +1 -1
  23. package/dist/components/input/FormFieldRow/FormFieldRow.d.ts +1 -1
  24. package/dist/components/input/FormFieldRow/types/FormFieldRowProps.d.ts +1 -0
  25. package/dist/components/input.cjs +1 -1
  26. package/dist/components/input.mjs +2 -2
  27. package/dist/components/layout.cjs +1 -1
  28. package/dist/components/layout.mjs +1 -1
  29. package/dist/components/navigation.cjs +1 -1
  30. package/dist/components/navigation.mjs +2 -2
  31. package/dist/components/settings.cjs +1 -1
  32. package/dist/components/settings.mjs +1 -1
  33. package/dist/components.cjs +1 -1
  34. package/dist/components.mjs +7 -7
  35. package/dist/{data-display-VghHkQY5.cjs → data-display-Cg9gF6Cb.cjs} +1 -1
  36. package/dist/{data-display-CHKKTmH_.js → data-display-CuvXSBLo.js} +90 -90
  37. package/dist/{data-display-B7beM2yK.js → data-display-DKSUI3GC.js} +43 -43
  38. package/dist/data-display-DlmWaxYb.cjs +1 -0
  39. package/dist/{feedback-3S9S-Xi9.cjs → feedback-Cvmm1EZX.cjs} +1 -1
  40. package/dist/{feedback-DHATp8in.js → feedback-DFTvn5aL.js} +66 -66
  41. package/dist/icon/components/TablerIcons.d.ts +1 -1
  42. package/dist/icon/index.d.ts +1 -1
  43. package/dist/{icon-C3fz8p3W.js → icon-BlUO7C4w.js} +2 -2
  44. package/dist/icon.cjs +1 -1
  45. package/dist/icon.mjs +491 -490
  46. package/dist/index.cjs +1 -1
  47. package/dist/index.mjs +643 -641
  48. package/dist/{input-jkwxjdtI.js → input-BIUZSrhq.js} +123 -122
  49. package/dist/input-CX8QPMDn.cjs +1 -0
  50. package/dist/{input-BLU0vrJM.js → input-Clzu-UFH.js} +538 -536
  51. package/dist/input-E1x0D2jA.cjs +1 -0
  52. package/dist/{layout-4nLOjbJA.js → layout-4p7UQD7l.js} +29 -28
  53. package/dist/{layout-DEoY3Qd0.cjs → layout-DHW99Ejj.cjs} +1 -1
  54. package/dist/{navigation-iP54gZTV.js → navigation-4RI9GlzA.js} +5 -5
  55. package/dist/{navigation-CSSOuhFm.cjs → navigation-B9jOHv99.cjs} +1 -1
  56. package/dist/primitives/data-display.cjs +1 -1
  57. package/dist/primitives/data-display.mjs +1 -1
  58. package/dist/primitives/feedback.cjs +1 -1
  59. package/dist/primitives/feedback.mjs +1 -1
  60. package/dist/primitives/input.cjs +1 -1
  61. package/dist/primitives/input.mjs +5 -5
  62. package/dist/primitives/navigation.cjs +1 -1
  63. package/dist/primitives/navigation.mjs +1 -1
  64. package/dist/primitives/typography.cjs +1 -1
  65. package/dist/primitives/typography.mjs +3 -3
  66. package/dist/primitives.cjs +1 -1
  67. package/dist/primitives.mjs +9 -9
  68. package/dist/{settings-BmsLbd-g.js → settings-2ZhNkDgW.js} +1 -1
  69. package/dist/{settings-DGwyi63i.cjs → settings-DR3dpWzy.cjs} +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/{typography-DeFnsH3k.cjs → typography-B4hug-TZ.cjs} +1 -1
  72. package/dist/{typography-sorTYmvG.js → typography-jl1UzvVu.js} +2 -2
  73. package/dist/utilities/index.d.ts +1 -0
  74. package/dist/utilities/internal/formatCssLength.d.ts +1 -0
  75. package/dist/utilities/utils/getAvatarInitial.d.ts +1 -0
  76. package/dist/{utilities-D0KcLLtO.js → utilities-E91ftFp_.js} +16 -15
  77. package/dist/utilities-YhvQ2XFb.cjs +1 -0
  78. package/dist/utilities.cjs +1 -1
  79. package/dist/utilities.mjs +18 -17
  80. package/package.json +2 -2
  81. package/dist/Dropdown-h5-yIsU7.cjs +0 -1
  82. package/dist/ListItem.module-B31VK9XZ.js +0 -34
  83. package/dist/ListItem.module-DiUK6-0Z.cjs +0 -1
  84. package/dist/OverflowingTextWithTooltip-Dmsmy-9g.cjs +0 -1
  85. package/dist/Radio-BK47Ig6J.cjs +0 -1
  86. package/dist/Radio-WuoC3hJ5.js +0 -175
  87. package/dist/Shortcut-CbbRd1uM.cjs +0 -1
  88. package/dist/Shortcut-YMhkp7f6.js +0 -73
  89. package/dist/TablerIcons-CqzhliLC.js +0 -462
  90. package/dist/data-display-C3Q_8G-N.cjs +0 -1
  91. package/dist/input-BLUZOGq8.cjs +0 -1
  92. package/dist/input-DRIIJ4Zd.cjs +0 -1
  93. package/dist/primitives/data-display/Avatar/internal/getAvatarInitial.d.ts +0 -1
  94. package/dist/utilities-Bfnz_GAC.cjs +0 -1
@@ -1,58 +1,58 @@
1
1
  import { t as m } from "./isDefined-fMi6eQ4r.js";
2
2
  import { t as z } from "./isRenderableSlot-DT_depzM.js";
3
- import { Dt as re, Et as oe, It as ne, U as K, Va as ae, rc as te, sn as se } from "./TablerIcons-CqzhliLC.js";
4
- import { t as le } from "./doNotTranslate-BSVT8Xyd.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
5
  import { a as T, h as ie, r as X } from "./theme-CuGIQBsJ.js";
6
6
  import { t as ce } from "./VisuallyHidden-CFZP7ybO.js";
7
7
  import { t as de } from "./ProgressRing-8mYV9cxE.js";
8
- import { s as _e } from "./utilities-D0KcLLtO.js";
8
+ import { c as _e } from "./utilities-E91ftFp_.js";
9
9
  import { useRender as N } from "@base-ui/react/use-render";
10
- import { isArray as ue, isBoolean as me, isNonEmptyArray as P, isNonEmptyString as D, isNumber as Q, isString as ve } from "@sniptt/guards";
10
+ import { isArray as ue, isBoolean as me, isNonEmptyArray as H, isNonEmptyString as V, isNumber as Q, isString as ve } from "@sniptt/guards";
11
11
  import { clsx as d } from "clsx";
12
- import { Children as L, createContext as he, isValidElement as pe, useContext as be, useId as Ce, useState as Ne } from "react";
12
+ import { Children as E, createContext as he, isValidElement as pe, useContext as be, useId as Ce, useState as Ne } from "react";
13
13
  import { Fragment as y, jsx as o, jsxs as c } from "react/jsx-runtime";
14
- import { Collapsible as H } from "@base-ui/react/collapsible";
15
- var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCountContainer_5cu4g_22", xe = "_overflowCount_5cu4g_22", x = {
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
16
  container: fe,
17
17
  itemContainer: ge,
18
- overflowCountContainer: Ie,
19
- overflowCount: xe
20
- }, we = 4, Lr = ({ avatars: e, className: r, maxVisible: n = we, total: a, renderOverflow: s, overflowShape: l = "square", overlap: t = "right", overlapOffset: i = "3px", render: h, ref: p, ..._ }) => {
21
- const u = L.toArray(e), A = Number.isNaN(n) ? 0 : Math.max(0, Math.floor(n)), g = u.slice(0, A), C = a ?? u.length, I = (Number.isFinite(C) ? Math.max(u.length, Math.floor(C)) : u.length) - g.length, S = m(s), k = I > 0 && (S ? s(I) : /* @__PURE__ */ c("span", {
22
- className: x.overflowCount,
23
- "data-shape": l,
24
- children: ["+", I]
25
- })), F = P(L.toArray(k)), M = { "--avatar-group-overlap-offset": i }, ee = N({
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
26
  render: h,
27
27
  ref: p,
28
28
  props: {
29
29
  ..._,
30
- className: d(x.container, r),
31
- children: /* @__PURE__ */ c(y, { children: [L.map(g, (E) => /* @__PURE__ */ o("span", {
32
- className: x.itemContainer,
30
+ className: d(I.container, r),
31
+ children: /* @__PURE__ */ c(y, { children: [E.map(g, (L) => /* @__PURE__ */ o("span", {
32
+ className: I.itemContainer,
33
33
  "data-overlap": t,
34
34
  style: M,
35
- children: E
36
- }, pe(E) ? E.key : void 0)), F && /* @__PURE__ */ o("span", {
37
- className: d(x.itemContainer, !S && x.overflowCountContainer),
35
+ children: L
36
+ }, pe(L) ? L.key : void 0)), F && /* @__PURE__ */ o("span", {
37
+ className: d(I.itemContainer, !S && I.overflowCountContainer),
38
38
  "data-overlap": t,
39
39
  style: M,
40
40
  children: k
41
41
  })] })
42
42
  }
43
43
  });
44
- return P(g) || F ? ee : null;
44
+ return H(g) || F ? ee : null;
45
45
  }, Te = "_container_1j72k_1", ye = "_commands_1j72k_13", Ae = "_actions_1j72k_25", Se = "_prompt_1j72k_32", $ = {
46
46
  container: Te,
47
47
  commands: ye,
48
48
  actions: Ae,
49
49
  prompt: Se
50
- }, jr = ({ commands: e, actions: r, render: n, ref: a, className: s, ...l }) => N({
50
+ }, jr = ({ commands: e, actions: r, render: n, ref: a, className: l, ...s }) => N({
51
51
  render: n,
52
52
  ref: a,
53
53
  props: {
54
- ...l,
55
- className: d($.container, s),
54
+ ...s,
55
+ className: d($.container, l),
56
56
  children: /* @__PURE__ */ c(y, { children: [/* @__PURE__ */ o("pre", {
57
57
  className: $.commands,
58
58
  children: /* @__PURE__ */ o("code", { children: e.map((t, i) => /* @__PURE__ */ c("span", { children: [
@@ -70,21 +70,21 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
70
70
  children: r
71
71
  })] })
72
72
  }
73
- }), ke = "_row_1usvs_1", $e = "_label_1usvs_11", Je = "_labelText_1usvs_22", Ee = "_icon_1usvs_27", Le = "_description_1usvs_34", je = "_value_1usvs_43", Re = "_action_1usvs_54", b = {
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
74
  row: ke,
75
75
  label: $e,
76
76
  labelText: Je,
77
- icon: Ee,
78
- description: Le,
77
+ icon: Le,
78
+ description: Ee,
79
79
  value: je,
80
80
  action: Re
81
- }, Rr = ({ label: e, children: r, startIcon: n, action: a, labelWidth: s = "7rem", render: l, ref: t, className: i, style: h, ...p }) => {
81
+ }, Rr = ({ label: e, children: r, startIcon: n, action: a, labelWidth: l = "7rem", render: s, ref: t, className: i, style: h, ...p }) => {
82
82
  const _ = {
83
- "--details-row-label-width": Q(s) ? `${s}px` : s,
83
+ "--details-row-label-width": Q(l) ? `${l}px` : l,
84
84
  ...h
85
85
  };
86
86
  return N({
87
- render: l,
87
+ render: s,
88
88
  ref: t,
89
89
  props: {
90
90
  ...p,
@@ -115,23 +115,23 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
115
115
  }, Oe = "_list_1i4lv_1", qe = "_nested_1i4lv_8", U = {
116
116
  list: Oe,
117
117
  nested: qe
118
- }, Ve = ({ depth: e, className: r, children: n }) => /* @__PURE__ */ o("ul", {
118
+ }, De = ({ depth: e, className: r, children: n }) => /* @__PURE__ */ o("ul", {
119
119
  className: d(U.list, e > 0 && U.nested, r),
120
120
  children: n
121
121
  }), Y = he(void 0), f = () => {
122
122
  const e = be(Y);
123
- if (!m(e)) throw new Error(le("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider"));
123
+ if (!m(e)) throw new Error(se("useJsonTreeContextOrThrow must be used within a JsonTreeContextProvider"));
124
124
  return e;
125
- }, De = "_button_1e3ij_1", Be = "_red_1e3ij_17", Fe = "_chevron_1e3ij_22", j = {
126
- button: De,
125
+ }, Ve = "_button_1e3ij_1", Be = "_red_1e3ij_17", Fe = "_chevron_1e3ij_22", j = {
126
+ button: Ve,
127
127
  red: Be,
128
128
  chevron: Fe
129
129
  }, Me = ({ isOpen: e, onClick: r, variant: n }) => {
130
- const a = X(), { arrowButtonCollapsedLabel: s, arrowButtonExpandedLabel: l } = f(), t = n === "blue" ? T.color.blue : n === "red" ? T.font.color.danger : T.font.color.secondary;
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
131
  return /* @__PURE__ */ c("button", {
132
132
  className: d(j.button, n === "red" && j.red),
133
133
  onClick: r,
134
- children: [/* @__PURE__ */ o(ce, { children: e ? l : s }), /* @__PURE__ */ o("div", {
134
+ children: [/* @__PURE__ */ o(ce, { children: e ? s : l }), /* @__PURE__ */ o("div", {
135
135
  className: j.chevron,
136
136
  "data-open": e || void 0,
137
137
  children: /* @__PURE__ */ o(re, {
@@ -140,8 +140,8 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
140
140
  })
141
141
  })]
142
142
  });
143
- }, ze = ({ label: e, value: r, depth: n, keyPath: a, highlighting: s }) => {
144
- const { emptyArrayLabel: l } = f();
143
+ }, ze = ({ label: e, value: r, depth: n, keyPath: a, highlighting: l }) => {
144
+ const { emptyArrayLabel: s } = f();
145
145
  return /* @__PURE__ */ o(B, {
146
146
  elements: [...r.entries()].map(([t, i]) => ({
147
147
  id: t,
@@ -152,12 +152,12 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
152
152
  label: e,
153
153
  Icon: K,
154
154
  depth: n,
155
- emptyElementsText: l,
155
+ emptyElementsText: s,
156
156
  keyPath: a,
157
- highlighting: s
157
+ highlighting: l
158
158
  });
159
- }, Pe = ({ label: e, value: r, depth: n, keyPath: a, highlighting: s }) => {
160
- const { emptyObjectLabel: l } = f();
159
+ }, He = ({ label: e, value: r, depth: n, keyPath: a, highlighting: l }) => {
160
+ const { emptyObjectLabel: s } = f();
161
161
  return /* @__PURE__ */ o(B, {
162
162
  elements: Object.entries(r).map(([t, i]) => ({
163
163
  id: t,
@@ -166,14 +166,14 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
166
166
  })),
167
167
  renderElementsCount: (t) => `{${t}}`,
168
168
  label: e,
169
- Icon: se,
169
+ Icon: te,
170
170
  depth: n,
171
- emptyElementsText: l,
171
+ emptyElementsText: s,
172
172
  keyPath: a,
173
- highlighting: s
173
+ highlighting: l
174
174
  });
175
- }, He = "_labelContainer_1pq94_1", Ue = "_blue_1pq94_23", Ge = "_red_1pq94_29", R = {
176
- labelContainer: He,
175
+ }, Pe = "_labelContainer_1pq94_1", Ue = "_blue_1pq94_23", Ge = "_red_1pq94_29", R = {
176
+ labelContainer: Pe,
177
177
  blue: Ue,
178
178
  red: Ge
179
179
  }, Z = ({ label: e, Icon: r, highlighting: n }) => {
@@ -191,16 +191,16 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
191
191
  red: Qe,
192
192
  button: Ye
193
193
  }, Ze = ({ valueAsString: e, highlighting: r }) => {
194
- const { onNodeValueClick: n } = f(), a = m(n), s = () => {
194
+ const { onNodeValueClick: n } = f(), a = m(n), l = () => {
195
195
  n?.(e);
196
- }, l = d(J.text, r === "blue" && J.blue, r === "red" && J.red);
196
+ }, s = d(J.text, r === "blue" && J.blue, r === "red" && J.red);
197
197
  return a ? /* @__PURE__ */ o("button", {
198
- className: d(l, J.button),
198
+ className: d(s, J.button),
199
199
  type: "button",
200
- onClick: s,
200
+ onClick: l,
201
201
  children: e
202
202
  }) : /* @__PURE__ */ o("span", {
203
- className: l,
203
+ className: s,
204
204
  children: e
205
205
  });
206
206
  }, We = "_listItem_1i7if_1", er = { listItem: We }, w = (e) => /* @__PURE__ */ c("li", {
@@ -214,16 +214,16 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
214
214
  highlighting: e.highlighting
215
215
  })]
216
216
  }), rr = (e) => ue(e), W = ({ label: e, value: r, depth: n, keyPath: a }) => {
217
- const { getNodeHighlighting: s, emptyStringLabel: l } = f(), t = s?.(a);
217
+ const { getNodeHighlighting: l, emptyStringLabel: s } = f(), t = l?.(a);
218
218
  return m(r) ? ve(r) ? /* @__PURE__ */ o(w, {
219
219
  label: e,
220
- valueAsString: D(r) ? r : l,
221
- Icon: te,
220
+ valueAsString: V(r) ? r : s,
221
+ Icon: le,
222
222
  highlighting: t
223
223
  }) : Q(r) ? /* @__PURE__ */ o(w, {
224
224
  label: e,
225
225
  valueAsString: String(r),
226
- Icon: ae,
226
+ Icon: ne,
227
227
  highlighting: t
228
228
  }) : me(r) ? /* @__PURE__ */ o(w, {
229
229
  label: e,
@@ -236,7 +236,7 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
236
236
  depth: n,
237
237
  keyPath: a,
238
238
  highlighting: t
239
- }) : /* @__PURE__ */ o(Pe, {
239
+ }) : /* @__PURE__ */ o(He, {
240
240
  label: e,
241
241
  value: r,
242
242
  depth: n,
@@ -245,32 +245,32 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
245
245
  }) : /* @__PURE__ */ o(w, {
246
246
  label: e,
247
247
  valueAsString: "null",
248
- Icon: ne,
248
+ Icon: ae,
249
249
  highlighting: t
250
250
  });
251
- }, or = "_container_d0cqx_1", nr = "_labelContainer_d0cqx_6", ar = "_elementsCount_d0cqx_12", tr = "_elementsCountRed_d0cqx_16", sr = "_panel_d0cqx_20", lr = "_list_d0cqx_30", ir = "_nested_d0cqx_37", v = {
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
252
  container: or,
253
253
  labelContainer: nr,
254
254
  elementsCount: ar,
255
255
  elementsCountRed: tr,
256
- panel: sr,
257
- list: lr,
256
+ panel: lr,
257
+ list: sr,
258
258
  nested: ir
259
- }, B = ({ label: e, Icon: r, elements: n, renderElementsCount: a, emptyElementsText: s, depth: l, keyPath: t, highlighting: i }) => {
259
+ }, B = ({ label: e, Icon: r, elements: n, renderElementsCount: a, emptyElementsText: l, depth: s, keyPath: t, highlighting: i }) => {
260
260
  const { shouldExpandNodeInitially: h } = f(), p = !m(e), [_, u] = Ne(h({
261
261
  keyPath: t,
262
- depth: l
262
+ depth: s
263
263
  })), A = /* @__PURE__ */ o("ul", {
264
- className: d(v.list, l > 0 && v.nested),
264
+ className: d(v.list, s > 0 && v.nested),
265
265
  children: n.length === 0 ? /* @__PURE__ */ o(w, {
266
- valueAsString: s,
266
+ valueAsString: l,
267
267
  highlighting: void 0
268
- }) : n.map(({ id: C, label: I, value: S }) => {
269
- const k = D(t) ? `${t}.${C}` : String(C);
268
+ }) : n.map(({ id: C, label: x, value: S }) => {
269
+ const k = V(t) ? `${t}.${C}` : String(C);
270
270
  return /* @__PURE__ */ o(W, {
271
- label: I,
271
+ label: x,
272
272
  value: S,
273
- depth: l + 1,
273
+ depth: s + 1,
274
274
  keyPath: k
275
275
  }, C);
276
276
  })
@@ -280,7 +280,7 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
280
280
  return p ? /* @__PURE__ */ o("li", {
281
281
  className: v.container,
282
282
  children: A
283
- }) : /* @__PURE__ */ c(H.Root, {
283
+ }) : /* @__PURE__ */ c(P.Root, {
284
284
  className: v.container,
285
285
  open: _,
286
286
  render: /* @__PURE__ */ o("li", {}),
@@ -302,7 +302,7 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
302
302
  children: a(n.length)
303
303
  })
304
304
  ]
305
- }), /* @__PURE__ */ o(H.Panel, {
305
+ }), /* @__PURE__ */ o(P.Panel, {
306
306
  className: v.panel,
307
307
  children: A
308
308
  })]
@@ -315,7 +315,7 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
315
315
  ...a,
316
316
  shouldExpandNodeInitially: n
317
317
  },
318
- children: /* @__PURE__ */ o(Ve, {
318
+ children: /* @__PURE__ */ o(De, {
319
319
  depth: 0,
320
320
  children: m(r) ? /* @__PURE__ */ o(B, {
321
321
  elements: r,
@@ -333,8 +333,8 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
333
333
  row: _r,
334
334
  label: ur,
335
335
  icon: mr
336
- }, qr = ({ children: e, startIcon: r, value: n, progress: a, progressColor: s, progressValueText: l, render: t, ref: i, className: h, ...p }) => {
337
- const _ = Ce(), u = l ?? n;
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
338
  return N({
339
339
  render: t,
340
340
  ref: i,
@@ -354,9 +354,9 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
354
354
  }), m(a) ? /* @__PURE__ */ o(de, {
355
355
  value: a,
356
356
  size: "sm",
357
- barColor: s,
357
+ barColor: l,
358
358
  "aria-labelledby": _,
359
- ...D(u) ? { "aria-valuetext": u } : {},
359
+ ...V(u) ? { "aria-valuetext": u } : {},
360
360
  children: n
361
361
  }) : /* @__PURE__ */ o("span", { children: n })] })
362
362
  }
@@ -364,11 +364,11 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
364
364
  }, vr = "_root_7l8sk_1", hr = "_stackedIcon_7l8sk_14", G = {
365
365
  root: vr,
366
366
  stackedIcon: hr
367
- }, Vr = ({ icon: e, stackedIcon: r, className: n, render: a, ref: s, ...l }) => N({
367
+ }, Dr = ({ icon: e, stackedIcon: r, className: n, render: a, ref: l, ...s }) => N({
368
368
  render: a,
369
- ref: s,
369
+ ref: l,
370
370
  props: {
371
- ...l,
371
+ ...s,
372
372
  className: d(G.root, n),
373
373
  children: /* @__PURE__ */ c(y, { children: [/* @__PURE__ */ o("span", {
374
374
  "aria-hidden": "true",
@@ -383,18 +383,18 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
383
383
  background: 4,
384
384
  border: 6,
385
385
  icon: 10
386
- }, V = (e, r) => T.color[`${e}${r}`] ?? T.tag.text[e], pr = (e) => {
386
+ }, D = (e, r) => T.color[`${e}${r}`] ?? T.tag.text[e], pr = (e) => {
387
387
  const r = _e(e);
388
388
  return {
389
- backgroundColor: V(r, q.background),
390
- iconColor: V(r, q.icon),
391
- borderColor: V(r, q.border)
389
+ backgroundColor: D(r, q.background),
390
+ iconColor: D(r, q.icon),
391
+ borderColor: D(r, q.border)
392
392
  };
393
- }, br = "_root_9ntdy_1", Cr = { root: br }, Dr = ({ icon: e, color: r = ie, className: n, style: a, render: s, ref: l, ...t }) => {
393
+ }, br = "_root_9ntdy_1", Cr = { root: br }, Vr = ({ icon: e, color: r = ie, className: n, style: a, render: l, ref: s, ...t }) => {
394
394
  const i = pr(r);
395
395
  return N({
396
- render: s,
397
- ref: l,
396
+ render: l,
397
+ ref: s,
398
398
  props: {
399
399
  ...t,
400
400
  className: d(Cr.root, n),
@@ -412,11 +412,11 @@ var fe = "_container_5cu4g_1", ge = "_itemContainer_5cu4g_6", Ie = "_overflowCou
412
412
  };
413
413
  export {
414
414
  Or as a,
415
- Lr as c,
415
+ Er as c,
416
416
  qr as i,
417
417
  pr as n,
418
418
  Rr as o,
419
- Vr as r,
419
+ Dr as r,
420
420
  jr as s,
421
- Dr as t
421
+ Vr as t
422
422
  };
@@ -2,33 +2,33 @@ import { t as v } from "./isDefined-fMi6eQ4r.js";
2
2
  import { t as D } from "./doNotTranslate-BSVT8Xyd.js";
3
3
  import { a as b, r as H } from "./theme-CuGIQBsJ.js";
4
4
  import { t as E } from "./mergeClassNames-ClFMR1v0.js";
5
- import { o as A, s as J } from "./utilities-D0KcLLtO.js";
5
+ import { c as J, n as I, s as A } from "./utilities-E91ftFp_.js";
6
6
  import { t as K } from "./Loader-U1LuZtJf.js";
7
- import { t as I } from "./OverflowingTextWithTooltip-Cky5WlIk.js";
7
+ import { t as j } from "./OverflowingTextWithTooltip-CAQ-5aUp.js";
8
8
  import { useRender as x } from "@base-ui/react/use-render";
9
- import { isBoolean as L, isFunction as Q, isNonEmptyString as W, isString as j } from "@sniptt/guards";
9
+ import { isBoolean as L, isFunction as Q, isNonEmptyString as W, isString as P } from "@sniptt/guards";
10
10
  import { clsx as w } from "clsx";
11
11
  import { Fragment as N, jsx as l, jsxs as h } from "react/jsx-runtime";
12
12
  import { Avatar as z } from "@base-ui/react/avatar";
13
- var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95", ra = "_fallback_1bbob_107", B = {
13
+ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95", ea = "_fallback_1bbob_107", B = {
14
14
  root: X,
15
15
  avatarPulsing: aa,
16
16
  image: ta,
17
- fallback: ra
18
- }, P = ({ className: a, ...t }) => /* @__PURE__ */ l(z.Fallback, {
17
+ fallback: ea
18
+ }, $ = ({ className: a, ...t }) => /* @__PURE__ */ l(z.Fallback, {
19
19
  ...t,
20
20
  className: E(B.fallback, a)
21
- }), $ = ({ className: a, ...t }) => /* @__PURE__ */ l(z.Image, {
21
+ }), O = ({ className: a, ...t }) => /* @__PURE__ */ l(z.Image, {
22
22
  ...t,
23
23
  className: E(B.image, a)
24
- }), O = (a) => a?.trim().charAt(0).toUpperCase(), q = ({ name: a, colorSeed: t = a, size: r = "md", shape: i = "square", variant: e = "soft", color: o, backgroundColor: s, borderColor: c, pulsing: d = !1, ring: n = !1, className: _, style: m, ...g }) => {
25
- const p = H(), f = O(a), T = f ? o ?? A({
24
+ }), q = ({ name: a, colorSeed: t = a, size: e = "md", shape: i = "square", variant: r = "soft", color: o, backgroundColor: s, borderColor: c, pulsing: d = !1, ring: n = !1, className: _, style: m, ...g }) => {
25
+ const p = H(), f = I(a), T = f ? o ?? A({
26
26
  string: t ?? "",
27
27
  variant: 12,
28
28
  theme: p
29
29
  }) : o ?? p.font.color.tertiary, S = f ? s ?? A({
30
30
  string: t ?? "",
31
- variant: e === "outline" ? 5 : 4,
31
+ variant: r === "outline" ? 5 : 4,
32
32
  theme: p
33
33
  }) : s ?? p.background.transparent.light, y = c ?? (f ? A({
34
34
  string: t ?? "",
@@ -37,7 +37,7 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
37
37
  }) : void 0);
38
38
  return /* @__PURE__ */ l(z.Root, {
39
39
  ...g,
40
- "data-size": r,
40
+ "data-size": e,
41
41
  "data-shape": i,
42
42
  "data-pulsing": d || void 0,
43
43
  "data-ring": n || void 0,
@@ -45,21 +45,21 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
45
45
  style: (u) => ({
46
46
  "--tw-avatar-color": T,
47
47
  "--tw-avatar-background": u.imageLoadingStatus === "loaded" ? "none" : S,
48
- "--tw-avatar-border": e === "outline" && u.imageLoadingStatus !== "loaded" && y ? D(`1px solid ${y}`) : "none",
48
+ "--tw-avatar-border": r === "outline" && u.imageLoadingStatus !== "loaded" && y ? D(`1px solid ${y}`) : "none",
49
49
  ...Q(m) ? m(u) : m
50
50
  })
51
51
  });
52
- }, ea = ({ src: a, name: t, icon: r, imageProps: i, fallbackProps: e, backgroundColor: o, ...s }) => {
53
- const c = O(t), d = v(r) && !L(r) && r !== "", n = i?.alt ?? "", _ = !d && W(n), { children: m = d ? r : c || "-", ...g } = e ?? {}, p = v(g.role) || v(g["aria-label"]) || v(g["aria-labelledby"]), f = !_ && !p && !v(g.render);
52
+ }, ra = ({ src: a, name: t, icon: e, imageProps: i, fallbackProps: r, backgroundColor: o, ...s }) => {
53
+ const c = I(t), d = v(e) && !L(e) && e !== "", n = i?.alt ?? "", _ = !d && W(n), { children: m = d ? e : c || "-", ...g } = r ?? {}, p = v(g.role) || v(g["aria-label"]) || v(g["aria-labelledby"]), f = !_ && !p && !v(g.render);
54
54
  return /* @__PURE__ */ h(q, {
55
55
  ...s,
56
56
  name: t,
57
57
  backgroundColor: d ? "inherit" : o,
58
- children: [!d && /* @__PURE__ */ l($, {
58
+ children: [!d && /* @__PURE__ */ l(O, {
59
59
  src: a ?? void 0,
60
60
  ...i,
61
61
  alt: n
62
- }), /* @__PURE__ */ l(P, {
62
+ }), /* @__PURE__ */ l($, {
63
63
  role: _ ? "img" : void 0,
64
64
  "aria-label": _ ? n : void 0,
65
65
  "aria-hidden": f || void 0,
@@ -67,10 +67,10 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
67
67
  children: m
68
68
  })]
69
69
  });
70
- }, La = Object.assign(ea, {
70
+ }, La = Object.assign(ra, {
71
71
  Root: q,
72
- Image: $,
73
- Fallback: P
72
+ Image: O,
73
+ Fallback: $
74
74
  }), za = {
75
75
  xxl: {
76
76
  fontSize: "16px",
@@ -96,23 +96,23 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
96
96
  fontSize: "8px",
97
97
  width: "12px"
98
98
  }
99
- }, oa = "_badge_1bd5g_1", sa = { badge: oa }, Ba = ({ size: a = "sm", color: t = "tertiary", shape: r = "pill", className: i, render: e, ref: o, ...s }) => x({
99
+ }, oa = "_badge_1bd5g_1", sa = { badge: oa }, Ba = ({ size: a = "sm", color: t = "tertiary", shape: e = "pill", className: i, render: r, ref: o, ...s }) => x({
100
100
  defaultTagName: "span",
101
- render: e,
101
+ render: r,
102
102
  ref: o,
103
103
  props: {
104
104
  ...s,
105
105
  className: w(sa.badge, i),
106
106
  "data-badge-size": a,
107
107
  "data-badge-color": t,
108
- "data-badge-shape": r
108
+ "data-badge-shape": e
109
109
  }
110
110
  }), la = "_chip_3fwe7_1", ia = "_label_3fwe7_29", na = "_endElementDivider_3fwe7_90", C = {
111
111
  chip: la,
112
112
  label: ia,
113
113
  endElementDivider: na
114
- }, da = { height: "var(--t-spacing-4)" }, Fa = ({ children: a, size: t = "sm", variant: r = "ghost", color: i = "primary", shape: e = "square", weight: o = "regular", onClick: s, clickable: c = v(s), startElement: d, endElement: n, endElementDivider: _ = !1, maxWidth: m, truncate: g = !0, tooltipContent: p, tooltipDelay: f, isTooltipMultiline: T, tooltipPlace: S, alwaysShowTooltip: y = !1, className: u, style: M, render: U, ref: V, ...Y }) => {
115
- const Z = v(a) && !L(a) && a !== "", G = j(a) ? {
114
+ }, da = { height: "var(--t-spacing-4)" }, Fa = ({ children: a, size: t = "sm", variant: e = "ghost", color: i = "primary", shape: r = "square", weight: o = "regular", onClick: s, clickable: c = v(s), startElement: d, endElement: n, endElementDivider: _ = !1, maxWidth: m, truncate: g = !0, tooltipContent: p, tooltipDelay: f, isTooltipMultiline: T, tooltipPlace: S, alwaysShowTooltip: y = !1, className: u, style: M, render: V, ref: Y, ...U }) => {
115
+ const Z = v(a) && !L(a) && a !== "", G = P(a) ? {
116
116
  text: a,
117
117
  tooltipContent: p
118
118
  } : {
@@ -120,19 +120,19 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
120
120
  tooltipContent: p ?? ""
121
121
  };
122
122
  return x({
123
- render: U,
124
- ref: V,
123
+ render: V,
124
+ ref: Y,
125
125
  state: {
126
126
  size: t,
127
- variant: r,
127
+ variant: e,
128
128
  color: i,
129
- shape: e,
129
+ shape: r,
130
130
  weight: o,
131
131
  clickable: c,
132
132
  truncate: g
133
133
  },
134
134
  props: {
135
- ...Y,
135
+ ...U,
136
136
  onClick: s,
137
137
  className: w(C.chip, u),
138
138
  style: {
@@ -141,7 +141,7 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
141
141
  },
142
142
  children: /* @__PURE__ */ h(N, { children: [
143
143
  d,
144
- Z && /* @__PURE__ */ l(I, {
144
+ Z && /* @__PURE__ */ l(j, {
145
145
  ...G,
146
146
  render: /* @__PURE__ */ l("span", {}),
147
147
  className: C.label,
@@ -159,36 +159,36 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
159
159
  }, ca = "_root_6bfj6_1", ma = "_circle_6bfj6_13", F = {
160
160
  root: ca,
161
161
  circle: ma
162
- }, Ra = ({ colorName: a, color: t, variant: r, className: i, style: e, render: o, ref: s, ...c }) => x({
162
+ }, Ra = ({ colorName: a, color: t, variant: e, className: i, style: r, render: o, ref: s, ...c }) => x({
163
163
  defaultTagName: "div",
164
164
  render: o,
165
165
  ref: s,
166
166
  props: {
167
167
  ...c,
168
- className: w(F.root, r === "circle" && F.circle, i),
168
+ className: w(F.root, e === "circle" && F.circle, i),
169
169
  style: {
170
170
  "--color-sample-color": t ?? b.tag.background[a],
171
171
  "--color-sample-border-color": b.tag.text[a],
172
- ...e
172
+ ...r
173
173
  }
174
174
  }
175
175
  }), ga = "_status_y5v42_1", pa = "_content_y5v42_49", R = {
176
176
  status: ga,
177
177
  content: pa
178
- }, Da = ({ children: a, color: t, loading: r = !1, weight: i = "regular", className: e, style: o, render: s, ref: c, ...d }) => {
178
+ }, Da = ({ children: a, color: t, loading: e = !1, weight: i = "regular", className: r, style: o, render: s, ref: c, ...d }) => {
179
179
  const n = J(t);
180
180
  return x({
181
181
  defaultTagName: "span",
182
182
  render: s,
183
183
  ref: c,
184
184
  state: {
185
- loading: r,
185
+ loading: e,
186
186
  weight: i
187
187
  },
188
188
  props: {
189
- "aria-busy": r || void 0,
189
+ "aria-busy": e || void 0,
190
190
  ...d,
191
- className: w(R.status, e),
191
+ className: w(R.status, r),
192
192
  style: {
193
193
  "--tw-status-background": b.tag.background[n],
194
194
  "--tw-status-text-color": b.tag.text[n],
@@ -197,7 +197,7 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
197
197
  children: /* @__PURE__ */ h(N, { children: [/* @__PURE__ */ l("span", {
198
198
  className: R.content,
199
199
  children: a
200
- }), r && /* @__PURE__ */ l(K, {
200
+ }), e && /* @__PURE__ */ l(K, {
201
201
  color: t,
202
202
  "aria-hidden": "true",
203
203
  render: /* @__PURE__ */ l("span", {})
@@ -209,13 +209,13 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
209
209
  content: _a,
210
210
  overflowingText: ba,
211
211
  iconContainer: fa
212
- }, Ia = ({ children: a, color: t, weight: r = "regular", variant: i = "soft", startIcon: e, truncate: o = !0, borderStyle: s = "solid", className: c, style: d, render: n, ref: _, ...m }) => x({
212
+ }, Ia = ({ children: a, color: t, weight: e = "regular", variant: i = "soft", startIcon: r, truncate: o = !0, borderStyle: s = "solid", className: c, style: d, render: n, ref: _, ...m }) => x({
213
213
  defaultTagName: "span",
214
214
  render: n,
215
215
  ref: _,
216
216
  state: {
217
217
  variant: i,
218
- weight: r,
218
+ weight: e,
219
219
  truncate: o
220
220
  },
221
221
  props: {
@@ -227,13 +227,13 @@ var X = "_root_1bbob_1", aa = "_avatarPulsing_1bbob_1", ta = "_image_1bbob_95",
227
227
  "--tw-tag-border-style": s,
228
228
  ...d
229
229
  },
230
- children: /* @__PURE__ */ h(N, { children: [v(e) && !L(e) && e !== "" && /* @__PURE__ */ l("span", {
230
+ children: /* @__PURE__ */ h(N, { children: [v(r) && !L(r) && r !== "" && /* @__PURE__ */ l("span", {
231
231
  className: k.iconContainer,
232
232
  "aria-hidden": !0,
233
- children: e
233
+ children: r
234
234
  }), /* @__PURE__ */ l("span", {
235
235
  className: k.content,
236
- children: j(a) && o ? /* @__PURE__ */ l(I, {
236
+ children: P(a) && o ? /* @__PURE__ */ l(j, {
237
237
  text: a,
238
238
  render: /* @__PURE__ */ l("span", {}),
239
239
  className: k.overflowingText
@@ -0,0 +1 @@
1
+ const m=require("./theme-BJRNJNPO.cjs"),b=require("./isDefined-DS2Q42p5.cjs"),R=require("./doNotTranslate-CHE7WmRS.cjs"),q=require("./mergeClassNames-D4lshrT6.cjs"),x=require("./utilities-YhvQ2XFb.cjs"),M=require("./Loader-Dau0YQpY.cjs"),O=require("./OverflowingTextWithTooltip-CuWHF8_e.cjs");let T=require("@base-ui/react/use-render"),p=require("@sniptt/guards"),j=require("clsx"),t=require("react/jsx-runtime"),A=require("@base-ui/react/avatar");var W="_root_1bbob_1",Z="_avatarPulsing_1bbob_1",U="_image_1bbob_95",G="_fallback_1bbob_107",k={root:W,avatarPulsing:Z,image:U,fallback:G},B=({className:e,...a})=>(0,t.jsx)(A.Avatar.Fallback,{...a,className:q.mergeClassNames(k.fallback,e)}),E=({className:e,...a})=>(0,t.jsx)(A.Avatar.Image,{...a,className:q.mergeClassNames(k.image,e)}),V=({name:e,colorSeed:a=e,size:r="md",shape:o="square",variant:s="soft",color:i,backgroundColor:n,borderColor:u,pulsing:d=!1,ring:l=!1,className:v,style:c,...g})=>{const _=m.useTheme(),f=x.getAvatarInitial(e),w=f?i??x.stringToThemeColorP3String({string:a??"",variant:12,theme:_}):i??_.font.color.tertiary,N=f?n??x.stringToThemeColorP3String({string:a??"",variant:s==="outline"?5:4,theme:_}):n??_.background.transparent.light,y=u??(f?x.stringToThemeColorP3String({string:a??"",variant:6,theme:_}):void 0);return(0,t.jsx)(A.Avatar.Root,{...g,"data-size":r,"data-shape":o,"data-pulsing":d||void 0,"data-ring":l||void 0,className:q.mergeClassNames(k.root,v),style:h=>({"--tw-avatar-color":w,"--tw-avatar-background":h.imageLoadingStatus==="loaded"?"none":N,"--tw-avatar-border":s==="outline"&&h.imageLoadingStatus!=="loaded"&&y?R.doNotTranslate(`1px solid ${y}`):"none",...(0,p.isFunction)(c)?c(h):c})})},H=({src:e,name:a,icon:r,imageProps:o,fallbackProps:s,backgroundColor:i,...n})=>{const u=x.getAvatarInitial(a),d=b.isDefined(r)&&!(0,p.isBoolean)(r)&&r!=="",l=o?.alt??"",v=!d&&(0,p.isNonEmptyString)(l),{children:c=d?r:u||"-",...g}=s??{},_=b.isDefined(g.role)||b.isDefined(g["aria-label"])||b.isDefined(g["aria-labelledby"]),f=!v&&!_&&!b.isDefined(g.render);return(0,t.jsxs)(V,{...n,name:a,backgroundColor:d?"inherit":i,children:[!d&&(0,t.jsx)(E,{src:e??void 0,...o,alt:l}),(0,t.jsx)(B,{role:v?"img":void 0,"aria-label":v?l:void 0,"aria-hidden":f||void 0,...g,children:c})]})},J=Object.assign(H,{Root:V,Image:E,Fallback:B}),K={xxl:{fontSize:"16px",width:"40px"},xl:{fontSize:"16px",width:"32px"},lg:{fontSize:"13px",width:"24px"},md:{fontSize:"12px",width:"16px"},sm:{fontSize:"10px",width:"14px"},xs:{fontSize:"8px",width:"12px"}},Q="_badge_1bd5g_1",X={badge:Q},ee=({size:e="sm",color:a="tertiary",shape:r="pill",className:o,render:s,ref:i,...n})=>(0,T.useRender)({defaultTagName:"span",render:s,ref:i,props:{...n,className:(0,j.clsx)(X.badge,o),"data-badge-size":e,"data-badge-color":a,"data-badge-shape":r}}),ae="_chip_3fwe7_1",te="_label_3fwe7_29",re="_endElementDivider_3fwe7_90",S={chip:ae,label:te,endElementDivider:re},se={height:"var(--t-spacing-4)"},ie=({children:e,size:a="sm",variant:r="ghost",color:o="primary",shape:s="square",weight:i="regular",onClick:n,clickable:u=b.isDefined(n),startElement:d,endElement:l,endElementDivider:v=!1,maxWidth:c,truncate:g=!0,tooltipContent:_,tooltipDelay:f,isTooltipMultiline:w,tooltipPlace:N,alwaysShowTooltip:y=!1,className:h,style:F,render:I,ref:L,...z})=>{const $=b.isDefined(e)&&!(0,p.isBoolean)(e)&&e!=="",Y=(0,p.isString)(e)?{text:e,tooltipContent:_}:{text:e??!1,tooltipContent:_??""};return(0,T.useRender)({render:I,ref:L,state:{size:a,variant:r,color:o,shape:s,weight:i,clickable:u,truncate:g},props:{...z,onClick:n,className:(0,j.clsx)(S.chip,h),style:{...b.isDefined(c)?{"--tw-chip-max-width":R.doNotTranslate(`${c}px`)}:{},...F},children:(0,t.jsxs)(t.Fragment,{children:[d,$&&(0,t.jsx)(O.OverflowingTextWithTooltip,{...Y,render:(0,t.jsx)("span",{}),className:S.label,style:a==="md"?se:void 0,truncate:g,tooltipDelay:f,isTooltipMultiline:w,tooltipPlace:N,alwaysShowTooltip:y}),b.isDefined(l)&&l!==!1&&(0,t.jsxs)(t.Fragment,{children:[v&&(0,t.jsx)("span",{className:S.endElementDivider}),l]})]})}})},ne="_root_6bfj6_1",oe="_circle_6bfj6_13",D={root:ne,circle:oe},le=({colorName:e,color:a,variant:r,className:o,style:s,render:i,ref:n,...u})=>(0,T.useRender)({defaultTagName:"div",render:i,ref:n,props:{...u,className:(0,j.clsx)(D.root,r==="circle"&&D.circle,o),style:{"--color-sample-color":a??m.themeCssVariables.tag.background[e],"--color-sample-border-color":m.themeCssVariables.tag.text[e],...s}}}),de="_status_y5v42_1",ue="_content_y5v42_49",P={status:de,content:ue},ce=({children:e,color:a,loading:r=!1,weight:o="regular",className:s,style:i,render:n,ref:u,...d})=>{const l=x.parseThemeColor(a);return(0,T.useRender)({defaultTagName:"span",render:n,ref:u,state:{loading:r,weight:o},props:{"aria-busy":r||void 0,...d,className:(0,j.clsx)(P.status,s),style:{"--tw-status-background":m.themeCssVariables.tag.background[l],"--tw-status-text-color":m.themeCssVariables.tag.text[l],...i},children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:P.content,children:e}),r&&(0,t.jsx)(M.Loader,{color:a,"aria-hidden":"true",render:(0,t.jsx)("span",{})})]})}})},ge="_tag_1ot0y_1",_e="_content_1ot0y_49",me="_overflowingText_1ot0y_58",be="_iconContainer_1ot0y_62",C={tag:ge,content:_e,overflowingText:me,iconContainer:be},ve=({children:e,color:a,weight:r="regular",variant:o="soft",startIcon:s,truncate:i=!0,borderStyle:n="solid",className:u,style:d,render:l,ref:v,...c})=>(0,T.useRender)({defaultTagName:"span",render:l,ref:v,state:{variant:o,weight:r,truncate:i},props:{...c,className:(0,j.clsx)(C.tag,u),style:{"--tw-tag-background":a==="transparent"?"transparent":m.themeCssVariables.tag.background[a]??m.themeCssVariables.tag.background.gray,"--tw-tag-text":a==="transparent"?m.themeCssVariables.font.color.secondary:m.themeCssVariables.tag.text[a]??m.themeCssVariables.font.color.secondary,"--tw-tag-border-style":n,...d},children:(0,t.jsxs)(t.Fragment,{children:[b.isDefined(s)&&!(0,p.isBoolean)(s)&&s!==""&&(0,t.jsx)("span",{className:C.iconContainer,"aria-hidden":!0,children:s}),(0,t.jsx)("span",{className:C.content,children:(0,p.isString)(e)&&i?(0,t.jsx)(O.OverflowingTextWithTooltip,{text:e,render:(0,t.jsx)("span",{}),className:C.overflowingText}):e})]})}});Object.defineProperty(exports,"AVATAR_PROPERTIES_BY_SIZE",{enumerable:!0,get:function(){return K}});Object.defineProperty(exports,"Avatar",{enumerable:!0,get:function(){return J}});Object.defineProperty(exports,"Badge",{enumerable:!0,get:function(){return ee}});Object.defineProperty(exports,"Chip",{enumerable:!0,get:function(){return ie}});Object.defineProperty(exports,"ColorSample",{enumerable:!0,get:function(){return le}});Object.defineProperty(exports,"Status",{enumerable:!0,get:function(){return ce}});Object.defineProperty(exports,"Tag",{enumerable:!0,get:function(){return ve}});