@epam/ai-dial-ui-kit 0.2.0-rc.22 → 0.2.0-rc.24

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.
@@ -1,31 +1,31 @@
1
- import { jsx as r, jsxs as f, Fragment as ae } from "react/jsx-runtime";
2
- import i from "classnames";
3
- import { IconCircleCheck as le, IconAlertTriangle as oe, IconAlertCircle as ie, IconInfoCircle as ce, IconX as M, IconLoader as de, IconMinus as ue, IconCheck as U, IconExclamationCircle as me, IconClipboardX as fe, IconEyeOff as pe, IconEye as xe, IconSearch as he } from "@tabler/icons-react";
4
- import { createContext as ge, useState as _, useRef as be, useMemo as ye, useContext as Ce, forwardRef as $, isValidElement as ve, cloneElement as Ne, useCallback as S, useEffect as we } from "react";
5
- import { useFloating as G, offset as De, flip as Ie, shift as ke, arrow as Re, autoUpdate as Se, useHover as Fe, useFocus as Ee, useDismiss as K, useRole as Z, useInteractions as X, useMergeRefs as q, FloatingPortal as Q, FloatingArrow as Te, FloatingOverlay as Pe, FloatingFocusManager as Ae } from "@floating-ui/react";
6
- const W = ({ errorText: e }) => e && /* @__PURE__ */ r("span", { className: "text-error dial-tiny mt-1", children: e }), O = ({
1
+ import { jsx as r, jsxs as f, Fragment as oe } from "react/jsx-runtime";
2
+ import c from "classnames";
3
+ import { IconCircleCheck as le, IconAlertTriangle as ie, IconAlertCircle as ce, IconInfoCircle as de, IconX as W, IconLoader as ue, IconMinus as me, IconCheck as $, IconExclamationCircle as fe, IconClipboardX as pe, IconChevronsLeft as xe, IconChevronsRight as he, IconEyeOff as ge, IconEye as be, IconSearch as ye } from "@tabler/icons-react";
4
+ import { createContext as Ce, useState as T, useRef as ve, useMemo as Ne, useContext as we, forwardRef as U, isValidElement as De, cloneElement as Ie, useCallback as S, useEffect as ke } from "react";
5
+ import { useFloating as G, offset as Re, flip as Se, shift as Fe, arrow as Ee, autoUpdate as Te, useHover as Pe, useFocus as Le, useDismiss as K, useRole as Z, useInteractions as X, useMergeRefs as q, FloatingPortal as Q, FloatingArrow as Ae, FloatingOverlay as Oe, FloatingFocusManager as ze } from "@floating-ui/react";
6
+ const _ = ({ errorText: e }) => e && /* @__PURE__ */ r("span", { className: "text-error dial-tiny mt-1", children: e }), j = ({
7
7
  fieldTitle: e,
8
8
  htmlFor: n,
9
9
  optional: t,
10
- optionalText: s,
11
- cssClass: a
10
+ optionalText: a,
11
+ cssClass: s
12
12
  }) => e ? /* @__PURE__ */ f(
13
13
  "label",
14
14
  {
15
- className: i(
15
+ className: c(
16
16
  "dial-tiny text-secondary",
17
- a,
18
- !a?.includes("mb") && "mb-2"
17
+ s,
18
+ !s?.includes("mb") && "mb-2"
19
19
  ),
20
20
  htmlFor: n,
21
21
  children: [
22
22
  /* @__PURE__ */ r("span", { className: "min-h-4", children: e }),
23
- t && /* @__PURE__ */ r("span", { className: "ml-1", children: s ?? "(Optional)" })
23
+ t && /* @__PURE__ */ r("span", { className: "ml-1", children: a ?? "(Optional)" })
24
24
  ]
25
25
  }
26
- ) : null, D = ({ icon: e, className: n }) => e ? /* @__PURE__ */ r("span", { className: i("flex-shrink-0", n), children: e }) : null;
26
+ ) : null, D = ({ icon: e, className: n }) => e ? /* @__PURE__ */ r("span", { className: c("flex-shrink-0", n), children: e }) : null;
27
27
  var v = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Secondary = "secondary", e.Tertiary = "tertiary", e.Danger = "danger", e))(v || {});
28
- const Le = {
28
+ const Be = {
29
29
  [v.Primary]: "dial-primary-button",
30
30
  [v.Secondary]: "dial-secondary-button",
31
31
  [v.Tertiary]: "dial-tertiary-button",
@@ -34,21 +34,23 @@ const Le = {
34
34
  title: e,
35
35
  variant: n,
36
36
  cssClass: t,
37
+ textCssClass: a,
37
38
  ref: s,
38
- onClick: a,
39
+ onClick: o,
39
40
  disable: l,
40
- iconAfter: o,
41
- iconBefore: c,
42
- hideTitleOnMobile: d,
43
- ariaLabel: u
41
+ iconAfter: u,
42
+ iconBefore: d,
43
+ hideTitleOnMobile: i,
44
+ ariaLabel: m
44
45
  }) => {
45
- const m = i(
46
+ const x = c(
46
47
  "dial-small-semi",
47
- o ? "mr-2" : "",
48
- c ? "ml-2" : "",
49
- d ? "hidden sm:inline" : "inline"
50
- ), x = i(
51
- n && Le[n],
48
+ u ? "mr-2" : "",
49
+ d ? "ml-2" : "",
50
+ i ? "hidden sm:inline" : "inline",
51
+ a
52
+ ), h = c(
53
+ n && Be[n],
52
54
  t,
53
55
  "focus-visible:outline outline-offset-0"
54
56
  );
@@ -57,165 +59,165 @@ const Le = {
57
59
  {
58
60
  ref: s,
59
61
  type: "button",
60
- className: x,
61
- onClick: (h) => a?.(h),
62
+ className: h,
63
+ onClick: (p) => o?.(p),
62
64
  disabled: l,
63
- "aria-label": e || u,
65
+ "aria-label": e || m,
64
66
  children: [
65
- /* @__PURE__ */ r(D, { icon: c }),
66
- e && /* @__PURE__ */ r("span", { className: m, children: e }),
67
- /* @__PURE__ */ r(D, { icon: o })
67
+ /* @__PURE__ */ r(D, { icon: d }),
68
+ e && /* @__PURE__ */ r("span", { className: x, children: e }),
69
+ /* @__PURE__ */ r(D, { icon: u })
68
70
  ]
69
71
  }
70
72
  );
71
73
  };
72
74
  var k = /* @__PURE__ */ ((e) => (e.Info = "info", e.Success = "success", e.Warning = "warning", e.Error = "error", e))(k || {});
73
- const ze = {
74
- info: /* @__PURE__ */ r(ce, { size: 24, stroke: 2 }),
75
- error: /* @__PURE__ */ r(ie, { size: 24, stroke: 2 }),
76
- warning: /* @__PURE__ */ r(oe, { size: 24, stroke: 2 }),
75
+ const je = {
76
+ info: /* @__PURE__ */ r(de, { size: 24, stroke: 2 }),
77
+ error: /* @__PURE__ */ r(ce, { size: 24, stroke: 2 }),
78
+ warning: /* @__PURE__ */ r(ie, { size: 24, stroke: 2 }),
77
79
  success: /* @__PURE__ */ r(le, { size: 24, stroke: 2 })
78
- }, Be = {
80
+ }, Ve = {
79
81
  [k.Info]: "bg-info border-info text-info",
80
82
  [k.Success]: "bg-success border-success text-success",
81
83
  [k.Warning]: "bg-warning border-warning text-warning",
82
84
  [k.Error]: "bg-error border-error text-error"
83
- }, Oe = "items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex", kr = ({
85
+ }, Me = "items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex", Fr = ({
84
86
  variant: e = k.Info,
85
87
  message: n,
86
88
  cssClass: t,
87
- closable: s = !1,
88
- onClose: a
89
+ closable: a = !1,
90
+ onClose: s
89
91
  }) => /* @__PURE__ */ f(
90
92
  "div",
91
93
  {
92
94
  role: "alert",
93
- className: i(
94
- Oe,
95
- Be[e],
95
+ className: c(
96
+ Me,
97
+ Ve[e],
96
98
  t
97
99
  ),
98
100
  children: [
99
101
  /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
100
- /* @__PURE__ */ r(D, { icon: ze[e] }),
102
+ /* @__PURE__ */ r(D, { icon: je[e] }),
101
103
  /* @__PURE__ */ r("div", { className: "text-primary", children: n })
102
104
  ] }),
103
- s && /* @__PURE__ */ r(
105
+ a && /* @__PURE__ */ r(
104
106
  P,
105
107
  {
106
108
  cssClass: "ml-2 text-secondary hover:text-primary",
107
109
  ariaLabel: "Close alert",
108
- iconBefore: /* @__PURE__ */ r(M, { size: 16 }),
109
- onClick: (l) => a?.(l)
110
+ iconBefore: /* @__PURE__ */ r(W, { size: 16 }),
111
+ onClick: (o) => s?.(o)
110
112
  }
111
113
  )
112
114
  ]
113
115
  }
114
- ), Ve = "flex items-center justify-center text-secondary", je = "shrink-0 grow-0 basis-auto animate-spin-steps", Me = ({
116
+ ), We = "flex items-center justify-center text-secondary", _e = "shrink-0 grow-0 basis-auto animate-spin-steps", He = ({
115
117
  size: e = 18,
116
118
  cssClass: n,
117
119
  iconClass: t,
118
- fullWidth: s = !0,
119
- ariaLabel: a = "Loading"
120
+ fullWidth: a = !0,
121
+ ariaLabel: s = "Loading"
120
122
  }) => /* @__PURE__ */ r(
121
123
  "div",
122
124
  {
123
125
  role: "status",
124
- "aria-label": a,
125
- className: i({
126
- [Ve]: !0,
127
- "w-full h-full": s,
126
+ "aria-label": s,
127
+ className: c({
128
+ [We]: !0,
129
+ "w-full h-full": a,
128
130
  [n || ""]: !!n
129
131
  }),
130
132
  children: /* @__PURE__ */ r(
131
133
  D,
132
134
  {
133
135
  icon: /* @__PURE__ */ r(
134
- de,
136
+ ue,
135
137
  {
136
138
  width: e,
137
139
  height: e,
138
- className: i(je, t)
140
+ className: c(_e, t)
139
141
  }
140
142
  )
141
143
  }
142
144
  )
143
145
  }
144
- ), _e = 7, We = 2, Y = ge(null), J = () => {
145
- const e = Ce(Y);
146
+ ), $e = 7, Ue = 2, Y = Ce(null), J = () => {
147
+ const e = we(Y);
146
148
  if (e == null)
147
149
  throw new Error("Tooltip components must be wrapped in <Tooltip />");
148
150
  return e;
149
- }, He = ({
151
+ }, Ge = ({
150
152
  initialOpen: e = !1,
151
153
  placement: n = "bottom",
152
154
  isTriggerClickable: t = !1,
153
- open: s,
154
- onOpenChange: a
155
+ open: a,
156
+ onOpenChange: s
155
157
  } = {}) => {
156
- const [l, o] = _(e), c = be(null), d = s ?? l, u = a ?? o, m = G({
158
+ const [o, l] = T(e), u = ve(null), d = a ?? o, i = s ?? l, m = G({
157
159
  placement: n,
158
160
  open: d,
159
- onOpenChange: u,
160
- whileElementsMounted: Se,
161
+ onOpenChange: i,
162
+ whileElementsMounted: Te,
161
163
  middleware: [
162
- De(_e + We),
163
- Ie({
164
+ Re($e + Ue),
165
+ Se({
164
166
  crossAxis: n.includes("-"),
165
167
  fallbackAxisSideDirection: "start",
166
168
  padding: 5
167
169
  }),
168
- ke({ padding: 5 }),
169
- Re({
170
- element: c
170
+ Fe({ padding: 5 }),
171
+ Ee({
172
+ element: u
171
173
  })
172
174
  ]
173
- }), x = Fe(m.context, {
175
+ }), x = Pe(m.context, {
174
176
  move: !1,
175
- enabled: s == null,
177
+ enabled: a == null,
176
178
  mouseOnly: t,
177
179
  delay: { open: 500, close: 0 }
178
- }), h = Ee(m.context, {
179
- enabled: s == null
180
- }), g = K(m.context), y = Z(m.context, { role: "tooltip" }), p = X([x, h, g, y]);
181
- return ye(
180
+ }), h = Le(m.context, {
181
+ enabled: a == null
182
+ }), p = K(m.context), y = Z(m.context, { role: "tooltip" }), g = X([x, h, p, y]);
183
+ return Ne(
182
184
  () => ({
183
185
  open: d,
184
- setOpen: u,
185
- arrowRef: c,
186
- ...p,
186
+ setOpen: i,
187
+ arrowRef: u,
188
+ ...g,
187
189
  ...m
188
190
  }),
189
- [d, u, p, m]
191
+ [d, i, g, m]
190
192
  );
191
- }, Ue = ({
193
+ }, Ke = ({
192
194
  children: e,
193
195
  ...n
194
196
  }) => {
195
- const t = He(n);
197
+ const t = Ge(n);
196
198
  return /* @__PURE__ */ r(Y.Provider, { value: t, children: e });
197
- }, $e = $(function({ style: n, ...t }, s) {
198
- const a = J(), l = q([a.refs.setFloating, s]);
199
- return a.open ? /* @__PURE__ */ r(Q, { id: "tooltip-portal", children: /* @__PURE__ */ f(
199
+ }, Ze = U(function({ style: n, ...t }, a) {
200
+ const s = J(), o = q([s.refs.setFloating, a]);
201
+ return s.open ? /* @__PURE__ */ r(Q, { id: "tooltip-portal", children: /* @__PURE__ */ f(
200
202
  "div",
201
203
  {
202
- ref: l,
204
+ ref: o,
203
205
  style: {
204
- ...a.floatingStyles,
206
+ ...s.floatingStyles,
205
207
  ...n
206
208
  },
207
- ...a.getFloatingProps(t),
208
- className: i(
209
+ ...s.getFloatingProps(t),
210
+ className: c(
209
211
  "z-[55] whitespace-pre-wrap rounded border border-primary bg-blackout px-2 py-1 dial-tiny shadow max-w-[300px]",
210
- a.getFloatingProps(t).className
212
+ s.getFloatingProps(t).className
211
213
  ),
212
214
  children: [
213
215
  t.children,
214
216
  /* @__PURE__ */ r(
215
- Te,
217
+ Ae,
216
218
  {
217
- ref: a.arrowRef,
218
- context: a.context,
219
+ ref: s.arrowRef,
220
+ context: s.context,
219
221
  fill: "currentColor",
220
222
  strokeWidth: 1,
221
223
  className: "stroke-primary w-2 text-[var(--bg-layer-0,_#000000)]"
@@ -224,21 +226,21 @@ const ze = {
224
226
  ]
225
227
  }
226
228
  ) }) : null;
227
- }), Ge = $(function({ children: n, asChild: t = !1, ...s }, a) {
228
- const l = J(), c = n && typeof n == "object" && "ref" in n && n.ref !== void 0 ? n.ref : void 0, d = q([l.refs.setReference, a, c]);
229
- return t && ve(n) ? Ne(
229
+ }), Xe = U(function({ children: n, asChild: t = !1, ...a }, s) {
230
+ const o = J(), u = n && typeof n == "object" && "ref" in n && n.ref !== void 0 ? n.ref : void 0, d = q([o.refs.setReference, s, u]);
231
+ return t && De(n) ? Ie(
230
232
  n,
231
- l.getReferenceProps({
233
+ o.getReferenceProps({
232
234
  ref: d,
233
- ...s,
235
+ ...a,
234
236
  ...n.props
235
237
  })
236
238
  ) : /* @__PURE__ */ r(
237
239
  "span",
238
240
  {
239
241
  ref: d,
240
- ...l.getReferenceProps(s),
241
- className: s.className ?? "dial-tooltip-trigger text-left",
242
+ ...o.getReferenceProps(a),
243
+ className: a.className ?? "dial-tooltip-trigger text-left",
242
244
  children: n
243
245
  }
244
246
  );
@@ -246,68 +248,68 @@ const ze = {
246
248
  hideTooltip: e,
247
249
  tooltip: n,
248
250
  children: t,
249
- triggerClassName: s,
250
- contentClassName: a,
251
- ...l
252
- }) => /* @__PURE__ */ f(Ue, { ...l, children: [
253
- /* @__PURE__ */ r(Ge, { className: i(s, "truncate"), children: t }),
251
+ triggerClassName: a,
252
+ contentClassName: s,
253
+ ...o
254
+ }) => /* @__PURE__ */ f(Ke, { ...o, children: [
255
+ /* @__PURE__ */ r(Xe, { className: c(a, "truncate"), children: t }),
254
256
  /* @__PURE__ */ r(
255
- $e,
257
+ Ze,
256
258
  {
257
- className: i(
259
+ className: c(
258
260
  "text-primary",
259
- a,
261
+ s,
260
262
  "max-w-[300px]",
261
263
  (e || !n) && "hidden"
262
264
  ),
263
265
  children: n
264
266
  }
265
267
  )
266
- ] }), Ke = 18, A = {
267
- size: Ke,
268
+ ] }), ee = 18, F = {
269
+ size: ee,
268
270
  stroke: 2
269
- }, Rr = ({
271
+ }, Er = ({
270
272
  label: e,
271
273
  id: n,
272
274
  checked: t,
273
- indeterminate: s,
274
- disabled: a,
275
- ariaLabel: l,
276
- onChange: o
275
+ indeterminate: a,
276
+ disabled: s,
277
+ ariaLabel: o,
278
+ onChange: l
277
279
  }) => {
278
- const c = S(
280
+ const u = S(
279
281
  (m) => {
280
- m.stopPropagation(), o?.(m.target.checked, n);
282
+ m.stopPropagation(), l?.(m.target.checked, n);
281
283
  },
282
- [o, n]
283
- ), d = i(
284
+ [l, n]
285
+ ), d = c(
284
286
  "flex flex-row items-center cursor-pointer text-accent-primary small-medium flex-1 min-w-0",
285
287
  `${t ? "" : 'before:content-[""] before:inline-block before:w-[18px] before:h-[18px] before:border before:border-hover before:rounded before:mr-2'}`,
286
- a ? "pointer-events-none text-secondary before:border-icon-secondary before:bg-layer-4" : ""
287
- ), u = i(
288
+ s ? "pointer-events-none text-secondary before:border-icon-secondary before:bg-layer-4" : ""
289
+ ), i = c(
288
290
  "mr-2 border rounded",
289
- a ? "bg-layer-4 border-icon-secondary" : ""
291
+ s ? "bg-layer-4 border-icon-secondary" : ""
290
292
  );
291
293
  return /* @__PURE__ */ f("label", { className: d, htmlFor: n, children: [
292
- t && (s ? /* @__PURE__ */ r(ue, { className: u, ...A }) : /* @__PURE__ */ r(U, { className: u, ...A })),
294
+ t && (a ? /* @__PURE__ */ r(me, { className: i, ...F }) : /* @__PURE__ */ r($, { className: i, ...F })),
293
295
  e && /* @__PURE__ */ r(V, { tooltip: e, triggerClassName: "flex-1 min-w-0", children: /* @__PURE__ */ r("p", { className: "text-primary w-full truncate", children: e }) }),
294
296
  /* @__PURE__ */ r(
295
297
  "input",
296
298
  {
297
299
  type: "checkbox",
298
- onChange: c,
300
+ onChange: u,
299
301
  id: n,
300
302
  checked: t,
301
- "aria-checked": s ? "mixed" : t,
302
- "aria-disabled": a || void 0,
303
- "aria-label": e ? void 0 : l,
303
+ "aria-checked": a ? "mixed" : t,
304
+ "aria-disabled": s || void 0,
305
+ "aria-label": e ? void 0 : o,
304
306
  className: "invisible w-0 h-0"
305
307
  }
306
308
  )
307
309
  ] });
308
310
  };
309
311
  var C = /* @__PURE__ */ ((e) => (e.VALID = "valid", e.ERROR = "error", e))(C || {});
310
- const Ze = (e, n) => {
312
+ const qe = (e, n) => {
311
313
  if (n === e.id)
312
314
  switch (e.status) {
313
315
  case C.VALID:
@@ -325,7 +327,7 @@ const Ze = (e, n) => {
325
327
  default:
326
328
  return "border-primary text-secondary";
327
329
  }
328
- }, Xe = (e, n) => {
330
+ }, Qe = (e, n) => {
329
331
  if (n === e.id)
330
332
  switch (e.status) {
331
333
  case C.VALID:
@@ -343,71 +345,71 @@ const Ze = (e, n) => {
343
345
  default:
344
346
  return "bg-layer-4";
345
347
  }
346
- }, qe = ({
348
+ }, Ye = ({
347
349
  step: e,
348
350
  index: n,
349
351
  currentStep: t,
350
- onChangeStep: s
352
+ onChangeStep: a
351
353
  }) => {
352
- const a = "h-[32px] flex flex-1 min-w-[180px] items-center dial-tiny border-t-2 cursor-pointer", l = "w-[22px] h-[22px] flex justify-center items-center mr-2 rounded-full text-white", o = () => t === e.id && e.status === C.ERROR ? /* @__PURE__ */ r(me, { stroke: 2, size: 16 }) : t !== e.id && e.status === C.VALID ? /* @__PURE__ */ r(U, { stroke: 2, size: 16 }) : n + 1;
354
+ const s = "h-[32px] flex flex-1 min-w-[180px] items-center dial-tiny border-t-2 cursor-pointer", o = "w-[22px] h-[22px] flex justify-center items-center mr-2 rounded-full text-white", l = () => t === e.id && e.status === C.ERROR ? /* @__PURE__ */ r(fe, { stroke: 2, size: 16 }) : t !== e.id && e.status === C.VALID ? /* @__PURE__ */ r($, { stroke: 2, size: 16 }) : n + 1;
353
355
  return /* @__PURE__ */ f(
354
356
  "button",
355
357
  {
356
- className: i(a, Ze(e, t)),
357
- onClick: () => s(e.id),
358
+ className: c(s, qe(e, t)),
359
+ onClick: () => a(e.id),
358
360
  children: [
359
361
  /* @__PURE__ */ r(
360
362
  "span",
361
363
  {
362
- className: i(l, Xe(e, t)),
363
- children: o()
364
+ className: c(o, Qe(e, t)),
365
+ children: l()
364
366
  }
365
367
  ),
366
368
  /* @__PURE__ */ r("span", { children: e.name })
367
369
  ]
368
370
  }
369
371
  );
370
- }, Sr = ({
372
+ }, Tr = ({
371
373
  steps: e,
372
374
  currentStep: n,
373
375
  onChangeStep: t
374
376
  }) => {
375
- const s = (a) => {
376
- const l = e.findIndex((c) => c.id === n), o = e.findIndex((c) => c.id === a);
377
- (a !== n && e[l].status === C.VALID || o < l) && t(a);
377
+ const a = (s) => {
378
+ const o = e.findIndex((u) => u.id === n), l = e.findIndex((u) => u.id === s);
379
+ (s !== n && e[o].status === C.VALID || l < o) && t(s);
378
380
  };
379
- return /* @__PURE__ */ r("div", { id: "steps", className: "flex gap-x-3", children: e.map((a, l) => /* @__PURE__ */ r(
380
- qe,
381
+ return /* @__PURE__ */ r("div", { id: "steps", className: "flex gap-x-3", children: e.map((s, o) => /* @__PURE__ */ r(
382
+ Ye,
381
383
  {
382
384
  currentStep: n,
383
- onChangeStep: s,
384
- step: a,
385
- index: l
385
+ onChangeStep: a,
386
+ step: s,
387
+ index: o
386
388
  },
387
- a.id
389
+ s.id
388
390
  )) });
389
- }, Qe = ({
391
+ }, Je = ({
390
392
  name: e,
391
393
  value: n,
392
394
  title: t,
393
- description: s,
394
- checked: a = !1,
395
- inputId: l,
396
- cssClass: o,
397
- labelCssClass: c,
395
+ description: a,
396
+ checked: s = !1,
397
+ inputId: o,
398
+ cssClass: l,
399
+ labelCssClass: u,
398
400
  disabled: d,
399
- onChange: u,
401
+ onChange: i,
400
402
  descriptionCssClass: m
401
403
  }) => {
402
- const x = `${l}-desc`, h = i(
404
+ const x = `${o}-desc`, h = c(
403
405
  "dial-small cursor-pointer",
404
406
  d ? "text-secondary" : "text-primary",
405
- c
406
- ), g = i(
407
+ u
408
+ ), p = c(
407
409
  "cursor-pointer dial-input-radio",
408
410
  t && "mr-2",
409
- o
410
- ), y = i("flex flex-col", !!s && "mb-2"), p = i(
411
+ l
412
+ ), y = c("flex flex-col", !!a && "mb-2"), g = c(
411
413
  "dial-tiny mt-2 ml-[26px] text-secondary",
412
414
  m
413
415
  );
@@ -417,115 +419,180 @@ const Ze = (e, n) => {
417
419
  "input",
418
420
  {
419
421
  type: "radio",
420
- id: l,
422
+ id: o,
421
423
  name: e,
422
424
  value: n,
423
- checked: a,
425
+ checked: s,
424
426
  disabled: d,
425
- "aria-describedby": a && s ? x : void 0,
426
- className: g,
427
+ "aria-describedby": s && a ? x : void 0,
428
+ className: p,
427
429
  onChange: (w) => {
428
- d || w.target.checked && u?.(n);
430
+ d || w.target.checked && i?.(n);
429
431
  }
430
432
  }
431
433
  ),
432
- t ? /* @__PURE__ */ r("label", { className: h, htmlFor: l, children: t }) : null
434
+ t ? /* @__PURE__ */ r("label", { className: h, htmlFor: o, children: t }) : null
433
435
  ] }),
434
- a && s && /* @__PURE__ */ r("div", { id: x, className: p, children: s })
436
+ s && a && /* @__PURE__ */ r("div", { id: x, className: g, children: a })
435
437
  ] });
436
438
  };
437
- var j = /* @__PURE__ */ ((e) => (e.Row = "Row", e.Column = "Column", e))(j || {});
438
- const Ye = "flex flex-col gap-2", Je = "flex", er = "pb-1 mt-2", rr = {
439
- [j.Column]: "flex-col gap-y-3",
440
- [j.Row]: "flex-row gap-x-6"
441
- }, Fr = ({
439
+ var M = /* @__PURE__ */ ((e) => (e.Row = "Row", e.Column = "Column", e))(M || {});
440
+ const er = "flex flex-col gap-2", rr = "flex", nr = "pb-1 mt-2", tr = {
441
+ [M.Column]: "flex-col gap-y-3",
442
+ [M.Row]: "flex-row gap-x-6"
443
+ }, Pr = ({
442
444
  fieldTitle: e,
443
445
  radioCssClass: n,
444
446
  labelCssClass: t,
445
- disabled: s,
446
- elementId: a,
447
- radioButtons: l,
448
- activeRadioButton: o,
449
- orientation: c,
447
+ disabled: a,
448
+ elementId: s,
449
+ radioButtons: o,
450
+ activeRadioButton: l,
451
+ orientation: u,
450
452
  onChange: d
451
- }) => /* @__PURE__ */ f("div", { className: Ye, children: [
452
- e && /* @__PURE__ */ r(O, { fieldTitle: e, htmlFor: a }),
453
+ }) => /* @__PURE__ */ f("div", { className: er, children: [
454
+ e && /* @__PURE__ */ r(j, { fieldTitle: e, htmlFor: s }),
453
455
  /* @__PURE__ */ r(
454
456
  "div",
455
457
  {
456
458
  role: "radiogroup",
457
459
  "aria-label": e,
458
- "aria-disabled": s || void 0,
459
- className: i(
460
- Je,
461
- rr[c]
460
+ "aria-disabled": a || void 0,
461
+ className: c(
462
+ rr,
463
+ tr[u]
462
464
  ),
463
- children: l.map((u) => /* @__PURE__ */ f("div", { className: "flex flex-col", children: [
465
+ children: o.map((i) => /* @__PURE__ */ f("div", { className: "flex flex-col", children: [
464
466
  /* @__PURE__ */ r(
465
- Qe,
467
+ Je,
466
468
  {
467
- name: a,
468
- value: u.id,
469
- inputId: u.id,
470
- disabled: s,
469
+ name: s,
470
+ value: i.id,
471
+ inputId: i.id,
472
+ disabled: a,
471
473
  cssClass: n,
472
474
  labelCssClass: t,
473
- title: u.name,
474
- checked: u.id === o,
475
- onChange: () => d(u.id)
475
+ title: i.name,
476
+ checked: i.id === l,
477
+ onChange: () => d(i.id)
476
478
  }
477
479
  ),
478
- u.id === o && u.content ? /* @__PURE__ */ r("div", { className: er, children: u.content }) : null
479
- ] }, u.id))
480
+ i.id === l && i.content ? /* @__PURE__ */ r("div", { className: nr, children: i.content }) : null
481
+ ] }, i.id))
480
482
  }
481
483
  )
482
- ] }), Er = ({
484
+ ] }), Lr = ({
483
485
  icon: e,
484
486
  title: n,
485
487
  description: t
486
488
  }) => /* @__PURE__ */ f("div", { className: "h-full w-full flex flex-col items-center justify-center text-secondary", children: [
487
- e || /* @__PURE__ */ r(fe, { width: 60, height: 60 }),
489
+ e || /* @__PURE__ */ r(pe, { width: 60, height: 60 }),
488
490
  /* @__PURE__ */ r("span", { className: "small mt-2 text-primary", children: n }),
489
491
  t && /* @__PURE__ */ r("span", { className: "mt-1 text-primary", children: t })
490
- ] }), nr = ({
492
+ ] }), sr = 60, Ar = ({
493
+ containerCssClass: e,
494
+ children: n,
495
+ width: t,
496
+ title: a,
497
+ iconSize: s = ee,
498
+ titleCssClass: o,
499
+ additionalButtons: l
500
+ }) => {
501
+ const [u, d] = T(t), [i, m] = T(!0), x = c([
502
+ "transform rotate-180 [writing-mode:tb-rl]",
503
+ i && "hidden",
504
+ o
505
+ ]), h = c([
506
+ "flex flex-row gap-2 cursor-pointer text-secondary",
507
+ i ? "justify-end" : "justify-center"
508
+ ]), p = () => {
509
+ d(i ? sr : t), m(!i);
510
+ };
511
+ return /* @__PURE__ */ f(
512
+ "div",
513
+ {
514
+ className: c([
515
+ "rounded p-4 flex flex-col justify-between overflow-y-auto flex-shrink-0",
516
+ e
517
+ ]),
518
+ style: { width: `${u}px` },
519
+ children: [
520
+ /* @__PURE__ */ r(
521
+ "div",
522
+ {
523
+ className: c([
524
+ "flex-1 min-h-0 overflow-auto",
525
+ !i && "hidden"
526
+ ]),
527
+ children: n
528
+ }
529
+ ),
530
+ /* @__PURE__ */ r("div", { className: x, children: a }),
531
+ /* @__PURE__ */ f("div", { className: h, children: [
532
+ i && l,
533
+ /* @__PURE__ */ r(
534
+ P,
535
+ {
536
+ cssClass: "hover:text-icon-accent-primary",
537
+ onClick: p,
538
+ iconBefore: i ? /* @__PURE__ */ r(
539
+ xe,
540
+ {
541
+ size: s,
542
+ stroke: F.stroke
543
+ }
544
+ ) : /* @__PURE__ */ r(
545
+ he,
546
+ {
547
+ size: s,
548
+ stroke: F.stroke
549
+ }
550
+ )
551
+ }
552
+ )
553
+ ] })
554
+ ]
555
+ }
556
+ );
557
+ }, ar = ({
491
558
  ariaLabel: e,
492
559
  cssClass: n,
493
560
  size: t = 24,
494
- onClose: s
561
+ onClose: a
495
562
  }) => /* @__PURE__ */ r(
496
563
  P,
497
564
  {
498
565
  ariaLabel: e,
499
- cssClass: i("text-secondary hover:text-accent-primary", n),
500
- onClick: s,
501
- iconBefore: /* @__PURE__ */ r(M, { size: t })
566
+ cssClass: c("text-secondary hover:text-accent-primary", n),
567
+ onClick: a,
568
+ iconBefore: /* @__PURE__ */ r(W, { size: t })
502
569
  }
503
- ), tr = ({
570
+ ), or = ({
504
571
  value: e,
505
572
  textareaId: n,
506
573
  placeholder: t,
507
- cssClass: s = "",
508
- disabled: a,
509
- invalid: l,
510
- readonly: o,
511
- onChange: c
574
+ cssClass: a = "",
575
+ disabled: s,
576
+ invalid: o,
577
+ readonly: l,
578
+ onChange: u
512
579
  }) => /* @__PURE__ */ r(V, { tooltip: e, triggerClassName: "flex", children: /* @__PURE__ */ r(
513
580
  "textarea",
514
581
  {
515
582
  id: n,
516
583
  placeholder: t,
517
584
  value: e || "",
518
- disabled: a,
519
- className: i(
585
+ disabled: s,
586
+ className: c(
520
587
  "dial-textarea dial-input px-3 py-2",
521
- l ? "dial-input-error" : "",
522
- a && "dial-input-disable",
523
- o && "dial-input-readonly",
524
- s
588
+ o ? "dial-input-error" : "",
589
+ s && "dial-input-disable",
590
+ l && "dial-input-readonly",
591
+ a
525
592
  ),
526
- onChange: (d) => !o && c?.(d.currentTarget.value)
593
+ onChange: (d) => !l && u?.(d.currentTarget.value)
527
594
  }
528
- ) }), sr = [
595
+ ) }), lr = [
529
596
  "ArrowLeft",
530
597
  "ArrowRight",
531
598
  "ArrowUp",
@@ -537,75 +604,75 @@ const Ye = "flex flex-col gap-2", Je = "flex", er = "pb-1 mt-2", rr = {
537
604
  "Escape",
538
605
  "Home",
539
606
  "End"
540
- ], ar = (e, n, t, s) => {
541
- if ((n === "number" || t !== void 0 || s !== void 0) && !sr.includes(e.key) && !(e.key === "-" && e.currentTarget.selectionStart === 0 && (t === void 0 || t < 0)) && !(e.key === "." && n === "number" && !e.currentTarget.value.includes("."))) {
607
+ ], ir = (e, n, t, a) => {
608
+ if ((n === "number" || t !== void 0 || a !== void 0) && !lr.includes(e.key) && !(e.key === "-" && e.currentTarget.selectionStart === 0 && (t === void 0 || t < 0)) && !(e.key === "." && n === "number" && !e.currentTarget.value.includes("."))) {
542
609
  if (!/^[0-9]$/.test(e.key)) {
543
610
  e.preventDefault();
544
611
  return;
545
612
  }
546
- if (t !== void 0 || s !== void 0) {
547
- const l = e.currentTarget.value, o = e.currentTarget.selectionStart || 0, c = l.slice(0, o) + e.key + l.slice(o), d = parseFloat(c);
613
+ if (t !== void 0 || a !== void 0) {
614
+ const o = e.currentTarget.value, l = e.currentTarget.selectionStart || 0, u = o.slice(0, l) + e.key + o.slice(l), d = parseFloat(u);
548
615
  if (!isNaN(d)) {
549
616
  if (t !== void 0 && d < t) {
550
617
  e.preventDefault();
551
618
  return;
552
619
  }
553
- if (s !== void 0 && d > s) {
620
+ if (a !== void 0 && d > a) {
554
621
  e.preventDefault();
555
622
  return;
556
623
  }
557
624
  }
558
625
  }
559
626
  }
560
- }, L = ({
627
+ }, O = ({
561
628
  iconBefore: e,
562
629
  iconAfter: n,
563
630
  hideBorder: t,
564
- value: s,
565
- elementId: a,
566
- placeholder: l = "",
567
- cssClass: o = "",
568
- containerCssClass: c,
631
+ value: a,
632
+ elementId: s,
633
+ placeholder: o = "",
634
+ cssClass: l = "",
635
+ containerCssClass: u,
569
636
  tooltipTriggerClassName: d,
570
- type: u = "text",
637
+ type: i = "text",
571
638
  disabled: m,
572
639
  readonly: x,
573
640
  invalid: h,
574
- onChange: g,
641
+ onChange: p,
575
642
  min: y,
576
- max: p,
643
+ max: g,
577
644
  prefix: N,
578
645
  suffix: w,
579
646
  textBeforeInput: b,
580
- textAfterInput: E
647
+ textAfterInput: L
581
648
  }) => {
582
- const re = (I) => I.target.blur(), ne = u === "number" || y !== void 0 || p !== void 0, te = (I) => {
583
- ar(I, u, y, p);
584
- }, se = (I) => {
585
- const F = I.currentTarget.value;
586
- if (ne && F !== "") {
587
- const T = parseFloat(F);
588
- if (isNaN(T) && F !== "-" && F !== "." || !isNaN(T) && (y !== void 0 && T < y || p !== void 0 && T > p))
649
+ const ne = (I) => I.target.blur(), te = i === "number" || y !== void 0 || g !== void 0, se = (I) => {
650
+ ir(I, i, y, g);
651
+ }, ae = (I) => {
652
+ const E = I.currentTarget.value;
653
+ if (te && E !== "") {
654
+ const A = parseFloat(E);
655
+ if (isNaN(A) && E !== "-" && E !== "." || !isNaN(A) && (y !== void 0 && A < y || g !== void 0 && A > g))
589
656
  return;
590
657
  }
591
- g?.(F);
658
+ p?.(E);
592
659
  };
593
660
  return /* @__PURE__ */ f(
594
661
  "div",
595
662
  {
596
- className: i(
663
+ className: c(
597
664
  "dial-input-field flex flex-row items-center justify-between py-2",
598
665
  t ? "dial-input-no-border" : "dial-input",
599
666
  h && "dial-input-error",
600
667
  m && "dial-input-disable",
601
668
  x && "dial-input-readonly",
602
669
  !b && "pl-3",
603
- !E && "pr-3",
604
- c
670
+ !L && "pr-3",
671
+ u
605
672
  ),
606
673
  children: [
607
674
  b && /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
608
- L,
675
+ O,
609
676
  {
610
677
  hideBorder: !0,
611
678
  containerCssClass: "rounded-r-none border-r-0",
@@ -623,23 +690,23 @@ const Ye = "flex flex-col gap-2", Je = "flex", er = "pb-1 mt-2", rr = {
623
690
  /* @__PURE__ */ r(
624
691
  V,
625
692
  {
626
- tooltip: s,
627
- triggerClassName: i(d, "flex-1"),
693
+ tooltip: a,
694
+ triggerClassName: c(d, "flex-1"),
628
695
  children: /* @__PURE__ */ r(
629
696
  "input",
630
697
  {
631
- type: u,
698
+ type: i,
632
699
  autoComplete: "off",
633
- id: a,
634
- placeholder: l,
635
- value: s ?? "",
700
+ id: s,
701
+ placeholder: o,
702
+ value: a ?? "",
636
703
  disabled: m,
637
- className: i("border-0 bg-transparent px-2", o),
638
- onChange: (I) => !x && se?.(I),
639
- onKeyDown: te,
640
- onWheel: re,
704
+ className: c("border-0 bg-transparent px-2", l),
705
+ onChange: (I) => !x && ae?.(I),
706
+ onKeyDown: se,
707
+ onWheel: ne,
641
708
  min: y,
642
- max: p
709
+ max: g
643
710
  }
644
711
  )
645
712
  }
@@ -649,96 +716,96 @@ const Ye = "flex flex-col gap-2", Je = "flex", er = "pb-1 mt-2", rr = {
649
716
  " ",
650
717
  w
651
718
  ] }),
652
- E && /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
653
- L,
719
+ L && /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
720
+ O,
654
721
  {
655
722
  hideBorder: !0,
656
723
  containerCssClass: "rounded-l-none border-l-0",
657
724
  cssClass: "px-2",
658
- value: E,
725
+ value: L,
659
726
  disabled: !0,
660
- elementId: E + "textAfter"
727
+ elementId: L + "textAfter"
661
728
  }
662
729
  ) })
663
730
  ]
664
731
  }
665
732
  );
666
- }, lr = /^0+\.(\d+)?$/, or = /^0+/, ee = ({
733
+ }, cr = /^0+\.(\d+)?$/, dr = /^0+/, re = ({
667
734
  fieldTitle: e,
668
735
  errorText: n,
669
736
  optional: t,
670
- elementCssClass: s,
671
- elementContainerCssClass: a,
672
- elementId: l,
673
- containerCssClass: o,
674
- readonly: c,
737
+ elementCssClass: a,
738
+ elementContainerCssClass: s,
739
+ elementId: o,
740
+ containerCssClass: l,
741
+ readonly: u,
675
742
  defaultEmptyText: d,
676
- min: u,
743
+ min: i,
677
744
  max: m,
678
745
  ...x
679
- }) => /* @__PURE__ */ f("div", { className: i("flex flex-col", o), children: [
746
+ }) => /* @__PURE__ */ f("div", { className: c("flex flex-col", l), children: [
680
747
  /* @__PURE__ */ r(
681
- O,
748
+ j,
682
749
  {
683
750
  fieldTitle: e,
684
751
  optional: t,
685
- htmlFor: l
752
+ htmlFor: o
686
753
  }
687
754
  ),
688
- c ? /* @__PURE__ */ r("span", { children: x.value || (d ?? "None") }) : /* @__PURE__ */ f(ae, { children: [
755
+ u ? /* @__PURE__ */ r("span", { children: x.value || (d ?? "None") }) : /* @__PURE__ */ f(oe, { children: [
689
756
  /* @__PURE__ */ r(
690
- L,
757
+ O,
691
758
  {
692
- elementId: l,
693
- cssClass: s,
694
- containerCssClass: a,
759
+ elementId: o,
760
+ cssClass: a,
761
+ containerCssClass: s,
695
762
  invalid: n != null,
696
- min: u,
763
+ min: i,
697
764
  max: m,
698
765
  ...x
699
766
  }
700
767
  ),
701
- /* @__PURE__ */ r(W, { errorText: n })
768
+ /* @__PURE__ */ r(_, { errorText: n })
702
769
  ] })
703
- ] }), Tr = ({
770
+ ] }), Or = ({
704
771
  onChange: e,
705
772
  value: n,
706
773
  min: t,
707
- max: s,
708
- ...a
774
+ max: a,
775
+ ...s
709
776
  }) => {
710
- const l = (o) => String(o)?.match(lr) ? String(o)?.replace(or, "0") : Number(o);
777
+ const o = (l) => String(l)?.match(cr) ? String(l)?.replace(dr, "0") : Number(l);
711
778
  return /* @__PURE__ */ r(
712
- ee,
779
+ re,
713
780
  {
714
781
  type: "number",
715
- onChange: (o) => e?.(l(o)),
782
+ onChange: (l) => e?.(o(l)),
716
783
  value: n,
717
784
  min: t,
718
- max: s,
719
- ...a
785
+ max: a,
786
+ ...s
720
787
  }
721
788
  );
722
- }, Pr = ({
789
+ }, zr = ({
723
790
  onChange: e,
724
791
  ...n
725
792
  }) => /* @__PURE__ */ r(
726
- ee,
793
+ re,
727
794
  {
728
795
  type: "text",
729
796
  onChange: (t) => e?.(t),
730
797
  ...n
731
798
  }
732
- ), Ar = ({
799
+ ), Br = ({
733
800
  fieldTitle: e,
734
801
  optional: n,
735
802
  elementId: t,
736
- elementCssClass: s,
737
- errorText: a,
738
- ...l
803
+ elementCssClass: a,
804
+ errorText: s,
805
+ ...o
739
806
  }) => /* @__PURE__ */ f("div", { className: "flex flex-col", children: [
740
807
  /* @__PURE__ */ r(
741
- O,
808
+ j,
742
809
  {
743
810
  fieldTitle: e,
744
811
  optional: n,
@@ -746,50 +813,50 @@ const Ye = "flex flex-col gap-2", Je = "flex", er = "pb-1 mt-2", rr = {
746
813
  }
747
814
  ),
748
815
  /* @__PURE__ */ r(
749
- tr,
816
+ or,
750
817
  {
751
818
  textareaId: t,
752
- cssClass: s,
753
- ...l
819
+ cssClass: a,
820
+ ...o
754
821
  }
755
822
  ),
756
- /* @__PURE__ */ r(W, { errorText: a })
757
- ] }), Lr = ({
823
+ /* @__PURE__ */ r(_, { errorText: s })
824
+ ] }), jr = ({
758
825
  title: e,
759
826
  switchId: n,
760
827
  isOn: t = !1,
761
- disabled: s,
762
- onChange: a
828
+ disabled: a,
829
+ onChange: s
763
830
  }) => {
764
- const l = i(
831
+ const o = c(
765
832
  "flex w-[36px] h-[18px] cursor-pointer items-center gap-1 rounded-full p-0.5 transition-all duration-200",
766
833
  t ? "flex-row-reverse" : "flex-row",
767
- s ? "pointer-events-none" : "",
768
- s ? t ? "bg-controls-disable" : "bg-layer-4" : t ? "bg-accent-primary" : "bg-layer-4"
769
- ), o = S(
770
- (c) => {
771
- c.stopPropagation(), a?.(!t);
834
+ a ? "pointer-events-none" : "",
835
+ a ? t ? "bg-controls-disable" : "bg-layer-4" : t ? "bg-accent-primary" : "bg-layer-4"
836
+ ), l = S(
837
+ (u) => {
838
+ u.stopPropagation(), s?.(!t);
772
839
  },
773
- [a, t]
840
+ [s, t]
774
841
  );
775
842
  return /* @__PURE__ */ f("div", { className: "flex flex-row items-center", children: [
776
843
  /* @__PURE__ */ r(
777
844
  "input",
778
845
  {
779
846
  type: "checkbox",
780
- onChange: o,
847
+ onChange: l,
781
848
  id: n,
782
- disabled: s,
849
+ disabled: a,
783
850
  className: "invisible w-0 h-0",
784
851
  checked: t
785
852
  }
786
853
  ),
787
- /* @__PURE__ */ r("label", { htmlFor: n, className: l, children: /* @__PURE__ */ r(
854
+ /* @__PURE__ */ r("label", { htmlFor: n, className: o, children: /* @__PURE__ */ r(
788
855
  "span",
789
856
  {
790
- className: i(
857
+ className: c(
791
858
  "size-3 rounded-full",
792
- s ? t ? "bg-layer-4" : "bg-controls-disable" : "bg-controls-enable-primary"
859
+ a ? t ? "bg-layer-4" : "bg-controls-disable" : "bg-controls-enable-primary"
793
860
  )
794
861
  }
795
862
  ) }),
@@ -797,74 +864,74 @@ const Ye = "flex flex-col gap-2", Je = "flex", er = "pb-1 mt-2", rr = {
797
864
  ] });
798
865
  };
799
866
  var R = /* @__PURE__ */ ((e) => (e.Sm = "sm", e.Md = "md", e.Lg = "lg", e))(R || {});
800
- const ir = "z-[52] flex items-center justify-center bg-blackout md:p-4", cr = "relative max-h-full rounded bg-layer-3 flex flex-col shadow w-full h-full md:h-auto", dr = "divide-tertiary divide-y", ur = "flex flex-row justify-between py-4 px-6 items-center", mr = {
867
+ const ur = "z-[52] flex items-center justify-center bg-blackout md:p-4", mr = "relative max-h-full rounded bg-layer-3 flex flex-col shadow w-full h-full md:h-auto", fr = "divide-tertiary divide-y", pr = "flex flex-row justify-between py-4 px-6 items-center", xr = {
801
868
  [R.Sm]: "max-w-full md:max-w-[400px]",
802
869
  [R.Md]: "max-w-full md:max-w-[800px]",
803
870
  [R.Lg]: "max-w-full md:max-w-[1200px]"
804
- }, fr = ({
871
+ }, hr = ({
805
872
  open: e = !1,
806
873
  title: n,
807
874
  portalId: t,
808
- cssClass: s,
809
- overlayClass: a,
810
- headingClass: l,
811
- dividers: o = !0,
812
- children: c,
875
+ cssClass: a,
876
+ overlayClass: s,
877
+ headingClass: o,
878
+ dividers: l = !0,
879
+ children: u,
813
880
  footer: d,
814
- onClose: u,
881
+ onClose: i,
815
882
  size: m = R.Md
816
883
  }) => {
817
884
  const { refs: x, context: h } = G({
818
885
  open: e,
819
886
  onOpenChange: (b) => {
820
- b || u?.(null);
887
+ b || i?.(null);
821
888
  }
822
- }), g = Z(h, { role: "dialog" }), y = K(h, { outsidePress: !0 }), { getFloatingProps: p } = X([g, y]);
889
+ }), p = Z(h, { role: "dialog" }), y = K(h, { outsidePress: !0 }), { getFloatingProps: g } = X([p, y]);
823
890
  if (!e) return null;
824
891
  const N = typeof n == "string" ? "dial-popup-heading" : void 0, w = (b) => b ? typeof b == "string" ? /* @__PURE__ */ r(
825
892
  "h3",
826
893
  {
827
894
  id: N,
828
- className: i(
895
+ className: c(
829
896
  "flex-1 min-w-0 mr-3 truncate dial-h3 text-primary",
830
- l
897
+ o
831
898
  ),
832
899
  children: /* @__PURE__ */ r(V, { tooltip: b, children: b })
833
900
  }
834
901
  ) : b : /* @__PURE__ */ r("span", {});
835
- return /* @__PURE__ */ r(Q, { id: t, children: /* @__PURE__ */ r(Pe, { className: i(ir, a), children: /* @__PURE__ */ r(Ae, { context: h, children: /* @__PURE__ */ f(
902
+ return /* @__PURE__ */ r(Q, { id: t, children: /* @__PURE__ */ r(Oe, { className: c(ur, s), children: /* @__PURE__ */ r(ze, { context: h, children: /* @__PURE__ */ f(
836
903
  "div",
837
904
  {
838
905
  ref: x.setFloating,
839
- ...p(),
906
+ ...g(),
840
907
  role: "dialog",
841
908
  "aria-modal": "true",
842
909
  "aria-labelledby": N,
843
- className: i(
844
- cr,
845
- mr[m],
846
- o && dr,
847
- s
910
+ className: c(
911
+ mr,
912
+ xr[m],
913
+ l && fr,
914
+ a
848
915
  ),
849
916
  children: [
850
- /* @__PURE__ */ f("div", { className: ur, children: [
917
+ /* @__PURE__ */ f("div", { className: pr, children: [
851
918
  w(n),
852
919
  /* @__PURE__ */ r(
853
- nr,
920
+ ar,
854
921
  {
855
922
  ariaLabel: "Close dialog",
856
- onClose: (b) => u?.(b)
923
+ onClose: (b) => i?.(b)
857
924
  }
858
925
  )
859
926
  ] }),
860
- /* @__PURE__ */ r("div", { className: "flex-grow overflow-auto", children: c }),
927
+ /* @__PURE__ */ r("div", { className: "flex-grow overflow-auto", children: u }),
861
928
  d
862
929
  ]
863
930
  }
864
931
  ) }) }) });
865
932
  };
866
933
  var z = /* @__PURE__ */ ((e) => (e.Info = "info", e.Danger = "danger", e))(z || {});
867
- const pr = "flex justify-end gap-2 px-6 py-4", xr = "text-secondary dial-small-150 px-6 py-4", hr = "Cancel", H = {
934
+ const gr = "flex justify-end gap-2 px-6 py-4", br = "text-secondary dial-small-150 px-6 py-4", yr = "Cancel", H = {
868
935
  [z.Info]: {
869
936
  confirmVariant: v.Primary,
870
937
  cancelVariant: v.Secondary
@@ -874,57 +941,57 @@ const pr = "flex justify-end gap-2 px-6 py-4", xr = "text-secondary dial-small-1
874
941
  confirmVariant: v.Danger,
875
942
  cancelVariant: v.Secondary
876
943
  }
877
- }, zr = ({
944
+ }, Vr = ({
878
945
  title: e,
879
946
  description: n,
880
947
  descriptionCssClass: t,
881
- open: s = !1,
882
- confirmLabel: a,
883
- cancelLabel: l = hr,
884
- isLoading: o = !1,
885
- disableConfirmButton: c = !1,
948
+ open: a = !1,
949
+ confirmLabel: s,
950
+ cancelLabel: o = yr,
951
+ isLoading: l = !1,
952
+ disableConfirmButton: u = !1,
886
953
  cssClass: d,
887
- confirmClassName: u,
954
+ confirmClassName: i,
888
955
  onClose: m,
889
956
  onConfirm: x,
890
957
  onCancel: h,
891
- children: g,
958
+ children: p,
892
959
  dividers: y = !1,
893
- variant: p = z.Info,
960
+ variant: g = z.Info,
894
961
  size: N = R.Sm
895
962
  }) => {
896
- const w = o ? null : /* @__PURE__ */ f("div", { className: pr, children: [
963
+ const w = l ? null : /* @__PURE__ */ f("div", { className: gr, children: [
897
964
  /* @__PURE__ */ r(
898
965
  P,
899
966
  {
900
967
  variant: v.Secondary,
901
- title: l,
968
+ title: o,
902
969
  onClick: () => h ? h() : m?.()
903
970
  }
904
971
  ),
905
972
  /* @__PURE__ */ r(
906
973
  P,
907
974
  {
908
- variant: H[p].confirmVariant,
909
- cssClass: u,
910
- title: a,
911
- disable: c,
975
+ variant: H[g].confirmVariant,
976
+ cssClass: i,
977
+ title: s,
978
+ disable: u,
912
979
  onClick: () => x()
913
980
  }
914
981
  )
915
- ] }), b = S(() => o ? /* @__PURE__ */ r("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ r(Me, { size: 50 }) }) : g ?? (n ? /* @__PURE__ */ r(
982
+ ] }), b = S(() => l ? /* @__PURE__ */ r("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ r(He, { size: 50 }) }) : p ?? (n ? /* @__PURE__ */ r(
916
983
  "div",
917
984
  {
918
- className: i(xr, t),
985
+ className: c(br, t),
919
986
  children: n
920
987
  }
921
- ) : null), [g, n, o, t]);
988
+ ) : null), [p, n, l, t]);
922
989
  return /* @__PURE__ */ r(
923
- fr,
990
+ hr,
924
991
  {
925
- open: s,
992
+ open: a,
926
993
  title: e,
927
- cssClass: i(H[p].container, d),
994
+ cssClass: c(H[g].container, d),
928
995
  dividers: y,
929
996
  onClose: () => m?.(),
930
997
  footer: w,
@@ -932,54 +999,54 @@ const pr = "flex justify-end gap-2 px-6 py-4", xr = "text-secondary dial-small-1
932
999
  children: b()
933
1000
  }
934
1001
  );
935
- }, gr = ({ onClick: e }) => /* @__PURE__ */ r(
936
- pe,
1002
+ }, Cr = ({ onClick: e }) => /* @__PURE__ */ r(
1003
+ ge,
937
1004
  {
938
- ...A,
1005
+ ...F,
939
1006
  className: "text-primary",
940
1007
  onClick: e
941
1008
  }
942
- ), br = ({ onClick: e }) => /* @__PURE__ */ r(xe, { ...A, className: "text-primary", onClick: e }), yr = ({ ...e }) => {
943
- const [n, t] = _(!1), s = S((a) => {
944
- t(a);
1009
+ ), vr = ({ onClick: e }) => /* @__PURE__ */ r(be, { ...F, className: "text-primary", onClick: e }), Nr = ({ ...e }) => {
1010
+ const [n, t] = T(!1), a = S((s) => {
1011
+ t(s);
945
1012
  }, []);
946
1013
  return /* @__PURE__ */ r(
947
- L,
1014
+ O,
948
1015
  {
949
1016
  type: n ? "text" : "password",
950
1017
  ...e,
951
- iconAfter: n ? /* @__PURE__ */ r(gr, { onClick: () => s(!1) }) : /* @__PURE__ */ r(br, { onClick: () => s(!0) })
1018
+ iconAfter: n ? /* @__PURE__ */ r(Cr, { onClick: () => a(!1) }) : /* @__PURE__ */ r(vr, { onClick: () => a(!0) })
952
1019
  }
953
1020
  );
954
- }, Br = ({
1021
+ }, Mr = ({
955
1022
  fieldTitle: e,
956
1023
  optional: n,
957
1024
  elementCssClass: t,
958
- elementId: s,
959
- errorText: a,
960
- ...l
1025
+ elementId: a,
1026
+ errorText: s,
1027
+ ...o
961
1028
  }) => /* @__PURE__ */ f("div", { className: "flex flex-col", children: [
962
1029
  /* @__PURE__ */ r(
963
- O,
1030
+ j,
964
1031
  {
965
1032
  fieldTitle: e,
966
1033
  optional: n,
967
- htmlFor: s
1034
+ htmlFor: a
968
1035
  }
969
1036
  ),
970
1037
  /* @__PURE__ */ r(
971
- yr,
1038
+ Nr,
972
1039
  {
973
1040
  cssClass: t,
974
- elementId: s,
975
- invalid: !!a,
976
- ...l
1041
+ elementId: a,
1042
+ invalid: !!s,
1043
+ ...o
977
1044
  }
978
1045
  ),
979
- /* @__PURE__ */ r(W, { errorText: a })
1046
+ /* @__PURE__ */ r(_, { errorText: s })
980
1047
  ] });
981
1048
  var B = /* @__PURE__ */ ((e) => (e.Small = "small", e.Base = "base", e))(B || {});
982
- const Cr = {
1049
+ const wr = {
983
1050
  [B.Small]: {
984
1051
  textClass: "text-xs px-1",
985
1052
  containerClass: "px-[6px] py-1 h-[22px]",
@@ -992,51 +1059,51 @@ const Cr = {
992
1059
  iconSize: 18,
993
1060
  iconStroke: 1.5
994
1061
  }
995
- }, Or = ({
1062
+ }, Wr = ({
996
1063
  elementId: e,
997
1064
  value: n,
998
1065
  placeholder: t,
999
- disabled: s,
1000
- readonly: a,
1001
- invalid: l,
1002
- cssClass: o,
1003
- containerCssClass: c,
1066
+ disabled: a,
1067
+ readonly: s,
1068
+ invalid: o,
1069
+ cssClass: l,
1070
+ containerCssClass: u,
1004
1071
  onChange: d,
1005
- size: u = B.Base
1072
+ size: i = B.Base
1006
1073
  }) => {
1007
- const [m, x] = _(n || "");
1008
- we(() => {
1074
+ const [m, x] = T(n || "");
1075
+ ke(() => {
1009
1076
  x(n || "");
1010
1077
  }, [n]);
1011
1078
  const h = S(
1012
- (p) => {
1013
- x(p), d?.(p);
1079
+ (g) => {
1080
+ x(g), d?.(g);
1014
1081
  },
1015
1082
  [d]
1016
- ), g = Cr[u], y = S(() => {
1083
+ ), p = wr[i], y = S(() => {
1017
1084
  h("");
1018
1085
  }, [h]);
1019
1086
  return /* @__PURE__ */ f(
1020
1087
  "div",
1021
1088
  {
1022
- className: i(
1089
+ className: c(
1023
1090
  "dial-input flex flex-row items-center justify-between",
1024
- l && "dial-input-error",
1025
- s && "dial-input-disable",
1026
- a && "dial-input-readonly",
1027
- g.containerClass,
1028
- c
1091
+ o && "dial-input-error",
1092
+ a && "dial-input-disable",
1093
+ s && "dial-input-readonly",
1094
+ p.containerClass,
1095
+ u
1029
1096
  ),
1030
1097
  children: [
1031
1098
  /* @__PURE__ */ r(
1032
1099
  D,
1033
1100
  {
1034
- className: i(s ? "text-secondary" : "text-primary"),
1101
+ className: c(a ? "text-secondary" : "text-primary"),
1035
1102
  icon: /* @__PURE__ */ r(
1036
- he,
1103
+ ye,
1037
1104
  {
1038
- size: g.iconSize,
1039
- stroke: g.iconStroke
1105
+ size: p.iconSize,
1106
+ stroke: p.iconStroke
1040
1107
  }
1041
1108
  )
1042
1109
  }
@@ -1049,25 +1116,25 @@ const Cr = {
1049
1116
  autoComplete: "off",
1050
1117
  placeholder: t,
1051
1118
  value: m ?? "",
1052
- disabled: s,
1053
- readOnly: a,
1054
- className: i(
1119
+ disabled: a,
1120
+ readOnly: s,
1121
+ className: c(
1055
1122
  "border-0 bg-transparent w-full",
1056
- o,
1057
- g.textClass
1123
+ l,
1124
+ p.textClass
1058
1125
  ),
1059
- onChange: (p) => !a && h(p.currentTarget.value)
1126
+ onChange: (g) => !s && h(g.currentTarget.value)
1060
1127
  }
1061
1128
  ),
1062
- m && !a && !s && /* @__PURE__ */ r(
1129
+ m && !s && !a && /* @__PURE__ */ r(
1063
1130
  D,
1064
1131
  {
1065
1132
  className: "text-primary cursor-pointer",
1066
1133
  icon: /* @__PURE__ */ r(
1067
- M,
1134
+ W,
1068
1135
  {
1069
- size: g.iconSize,
1070
- stroke: g.iconStroke,
1136
+ size: p.iconSize,
1137
+ stroke: p.iconStroke,
1071
1138
  onClick: y,
1072
1139
  "aria-label": "Clear search",
1073
1140
  role: "button"
@@ -1083,31 +1150,33 @@ export {
1083
1150
  k as AlertVariant,
1084
1151
  v as ButtonVariant,
1085
1152
  z as ConfirmationPopupVariant,
1086
- kr as DialAlert,
1153
+ Fr as DialAlert,
1087
1154
  P as DialButton,
1088
- Rr as DialCheckbox,
1089
- nr as DialCloseButton,
1090
- zr as DialConfirmationPopup,
1091
- W as DialErrorText,
1092
- O as DialFieldLabel,
1155
+ Er as DialCheckbox,
1156
+ ar as DialCloseButton,
1157
+ Ar as DialCollapsibleSidebar,
1158
+ Vr as DialConfirmationPopup,
1159
+ _ as DialErrorText,
1160
+ j as DialFieldLabel,
1093
1161
  D as DialIcon,
1094
- L as DialInput,
1095
- Me as DialLoader,
1096
- Er as DialNoDataContent,
1097
- Tr as DialNumberInputField,
1098
- yr as DialPasswordInput,
1099
- Br as DialPasswordInputField,
1100
- fr as DialPopup,
1101
- Qe as DialRadioButton,
1102
- Fr as DialRadioGroup,
1103
- Or as DialSearch,
1104
- Sr as DialSteps,
1105
- Lr as DialSwitch,
1106
- Ar as DialTextAreaField,
1107
- Pr as DialTextInputField,
1108
- tr as DialTextarea,
1162
+ O as DialInput,
1163
+ He as DialLoader,
1164
+ Lr as DialNoDataContent,
1165
+ Or as DialNumberInputField,
1166
+ Nr as DialPasswordInput,
1167
+ Mr as DialPasswordInputField,
1168
+ hr as DialPopup,
1169
+ Je as DialRadioButton,
1170
+ Pr as DialRadioGroup,
1171
+ Wr as DialSearch,
1172
+ Tr as DialSteps,
1173
+ jr as DialSwitch,
1174
+ Br as DialTextAreaField,
1175
+ zr as DialTextInputField,
1176
+ or as DialTextarea,
1109
1177
  V as DialTooltip,
1110
1178
  R as PopupSize,
1111
- j as RadioGroupOrientation,
1179
+ M as RadioGroupOrientation,
1180
+ B as SearchSize,
1112
1181
  C as StepStatus
1113
1182
  };