@epam/ai-dial-ui-kit 0.2.0-rc.30 → 0.2.0-rc.32

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,16 +1,17 @@
1
- import { jsx as r, jsxs as m, Fragment as le } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as p, Fragment as _ } from "react/jsx-runtime";
2
2
  import i from "classnames";
3
- import { IconCircleCheck as ie, IconAlertTriangle as ce, IconAlertCircle as de, IconInfoCircle as ue, IconX as _, IconMinus as pe, IconCheck as K, IconExclamationCircle as me, IconClipboardX as fe, IconChevronsLeft as he, IconChevronsRight as xe, IconEyeOff as ge, IconEye as ye, IconSearch as be } from "@tabler/icons-react";
4
- import * as w from "react";
5
- import { createContext as Ce, useState as S, useRef as ve, useMemo as we, useContext as Ne, forwardRef as U, isValidElement as ke, cloneElement as De, useCallback as D, useEffect as Ie } from "react";
6
- import { useFloating as G, offset as Le, flip as Re, shift as Ee, arrow as Se, autoUpdate as Te, useHover as Fe, useFocus as je, useDismiss as Z, useRole as X, useInteractions as q, useMergeRefs as Q, FloatingPortal as Y, FloatingArrow as Pe, FloatingOverlay as Ae, FloatingFocusManager as Me } from "@floating-ui/react";
7
- const H = ({ errorText: e }) => e && /* @__PURE__ */ r("span", { className: "text-error dial-tiny mt-1", children: e }), V = ({
3
+ import { IconCircleCheck as de, IconAlertTriangle as ue, IconAlertCircle as pe, IconInfoCircle as me, IconX as $, IconMinus as fe, IconCheck as G, IconExclamationCircle as he, IconClipboardX as xe, IconChevronsLeft as ge, IconChevronsRight as Ce, IconEyeOff as ye, IconEye as be, IconSearch as ve } from "@tabler/icons-react";
4
+ import * as v from "react";
5
+ import { createContext as we, useState as T, useRef as Ne, useMemo as ke, useContext as De, forwardRef as X, isValidElement as Ie, cloneElement as Le, useCallback as I, useEffect as Se } from "react";
6
+ import { useFloating as q, offset as Ee, flip as Re, shift as Fe, arrow as Te, autoUpdate as Me, useHover as je, useFocus as Ve, useDismiss as Q, useRole as Y, useInteractions as J, useMergeRefs as ee, FloatingPortal as re, FloatingArrow as Pe, FloatingOverlay as Ae, FloatingFocusManager as Oe } from "@floating-ui/react";
7
+ import { createPortal as We } from "react-dom";
8
+ const z = ({ errorText: e }) => e && /* @__PURE__ */ r("span", { className: "text-error dial-tiny mt-1", children: e }), H = ({
8
9
  fieldTitle: e,
9
10
  htmlFor: t,
10
11
  optional: n,
11
12
  optionalText: a,
12
13
  cssClass: s
13
- }) => e ? /* @__PURE__ */ m(
14
+ }) => e ? /* @__PURE__ */ p(
14
15
  "label",
15
16
  {
16
17
  className: i(
@@ -24,14 +25,14 @@ const H = ({ errorText: e }) => e && /* @__PURE__ */ r("span", { className: "tex
24
25
  n && /* @__PURE__ */ r("span", { className: "ml-1", children: a ?? "(Optional)" })
25
26
  ]
26
27
  }
27
- ) : null, I = ({ icon: e, className: t }) => e ? /* @__PURE__ */ r("span", { className: i("flex-shrink-0", t), children: e }) : null;
28
- var v = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Secondary = "secondary", e.Tertiary = "tertiary", e.Danger = "danger", e))(v || {});
29
- const We = {
30
- [v.Primary]: "dial-primary-button",
31
- [v.Secondary]: "dial-secondary-button",
32
- [v.Tertiary]: "dial-tertiary-button",
33
- [v.Danger]: "dial-danger-button"
34
- }, P = ({
28
+ ) : null, N = ({ icon: e, className: t }) => e ? /* @__PURE__ */ r("span", { className: i("flex-shrink-0", t), children: e }) : null;
29
+ var w = /* @__PURE__ */ ((e) => (e.Primary = "primary", e.Secondary = "secondary", e.Tertiary = "tertiary", e.Danger = "danger", e))(w || {});
30
+ const Be = {
31
+ [w.Primary]: "dial-primary-button",
32
+ [w.Secondary]: "dial-secondary-button",
33
+ [w.Tertiary]: "dial-tertiary-button",
34
+ [w.Danger]: "dial-danger-button"
35
+ }, V = ({
35
36
  title: e,
36
37
  variant: t,
37
38
  cssClass: n,
@@ -42,7 +43,7 @@ const We = {
42
43
  iconAfter: u,
43
44
  iconBefore: d,
44
45
  hideTitleOnMobile: c,
45
- ariaLabel: p
46
+ ariaLabel: m
46
47
  }) => {
47
48
  const f = i(
48
49
  "dial-small-semi",
@@ -51,11 +52,11 @@ const We = {
51
52
  c ? "hidden sm:inline" : "inline",
52
53
  a
53
54
  ), x = i(
54
- t && We[t],
55
+ t && Be[t],
55
56
  n,
56
57
  "focus-visible:outline outline-offset-0"
57
58
  );
58
- return /* @__PURE__ */ m(
59
+ return /* @__PURE__ */ p(
59
60
  "button",
60
61
  {
61
62
  ref: s,
@@ -63,58 +64,58 @@ const We = {
63
64
  className: x,
64
65
  onClick: (h) => o?.(h),
65
66
  disabled: l,
66
- "aria-label": e || p,
67
+ "aria-label": e || m,
67
68
  children: [
68
- /* @__PURE__ */ r(I, { icon: d }),
69
+ /* @__PURE__ */ r(N, { icon: d }),
69
70
  e && /* @__PURE__ */ r("span", { className: f, children: e }),
70
- /* @__PURE__ */ r(I, { icon: u })
71
+ /* @__PURE__ */ r(N, { icon: u })
71
72
  ]
72
73
  }
73
74
  );
74
75
  };
75
- var R = /* @__PURE__ */ ((e) => (e.Info = "info", e.Success = "success", e.Warning = "warning", e.Error = "error", e))(R || {});
76
- const Be = {
77
- info: /* @__PURE__ */ r(ue, { size: 24, stroke: 2 }),
78
- error: /* @__PURE__ */ r(de, { size: 24, stroke: 2 }),
79
- warning: /* @__PURE__ */ r(ce, { size: 24, stroke: 2 }),
80
- success: /* @__PURE__ */ r(ie, { size: 24, stroke: 2 })
81
- }, Oe = {
82
- [R.Info]: "bg-info border-info text-info",
83
- [R.Success]: "bg-success border-success text-success",
84
- [R.Warning]: "bg-warning border-warning text-warning",
85
- [R.Error]: "bg-error border-error text-error"
86
- }, Ve = "items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex", Tr = ({
87
- variant: e = R.Info,
76
+ var E = /* @__PURE__ */ ((e) => (e.Info = "info", e.Success = "success", e.Warning = "warning", e.Error = "error", e))(E || {});
77
+ const ze = {
78
+ info: /* @__PURE__ */ r(me, { size: 24, stroke: 2 }),
79
+ error: /* @__PURE__ */ r(pe, { size: 24, stroke: 2 }),
80
+ warning: /* @__PURE__ */ r(ue, { size: 24, stroke: 2 }),
81
+ success: /* @__PURE__ */ r(de, { size: 24, stroke: 2 })
82
+ }, He = {
83
+ [E.Info]: "bg-info border-info text-info",
84
+ [E.Success]: "bg-success border-success text-success",
85
+ [E.Warning]: "bg-warning border-warning text-warning",
86
+ [E.Error]: "bg-error border-error text-error"
87
+ }, _e = "items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex", Mr = ({
88
+ variant: e = E.Info,
88
89
  message: t,
89
90
  cssClass: n,
90
91
  closable: a = !1,
91
92
  onClose: s
92
- }) => /* @__PURE__ */ m(
93
+ }) => /* @__PURE__ */ p(
93
94
  "div",
94
95
  {
95
96
  role: "alert",
96
97
  className: i(
97
- Ve,
98
- Oe[e],
98
+ _e,
99
+ He[e],
99
100
  n
100
101
  ),
101
102
  children: [
102
- /* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
103
- /* @__PURE__ */ r(I, { icon: Be[e] }),
103
+ /* @__PURE__ */ p("div", { className: "flex items-center gap-2", children: [
104
+ /* @__PURE__ */ r(N, { icon: ze[e] }),
104
105
  /* @__PURE__ */ r("div", { className: "text-primary", children: t })
105
106
  ] }),
106
107
  a && /* @__PURE__ */ r(
107
- P,
108
+ V,
108
109
  {
109
110
  cssClass: "ml-2 text-secondary hover:text-primary",
110
111
  ariaLabel: "Close alert",
111
- iconBefore: /* @__PURE__ */ r(_, { size: 16 }),
112
+ iconBefore: /* @__PURE__ */ r($, { size: 16 }),
112
113
  onClick: (o) => s?.(o)
113
114
  }
114
115
  )
115
116
  ]
116
117
  }
117
- ), ze = "flex items-center justify-center text-secondary", _e = "shrink-0 grow-0 basis-auto animate-spin-steps", He = (e) => /* @__PURE__ */ w.createElement("svg", { viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ w.createElement("path", { d: "M24 39V46.5", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ w.createElement("path", { opacity: 0.4, d: "M9 24H1.5", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ w.createElement("path", { opacity: 0.5, d: "M8.0918 8.0918L13.3994 13.3994", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ w.createElement("path", { opacity: 0.6, d: "M24 1.5V9", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ w.createElement("path", { opacity: 0.7, d: "M39.9121 8.08594L37.2607 10.7373L34.6094 13.3887", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ w.createElement("path", { opacity: 0.8, d: "M46.5 24H39", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ w.createElement("path", { opacity: 0.9, d: "M34.6055 34.6055L39.9082 39.9082", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ w.createElement("path", { opacity: 0.3, d: "M13.3936 34.6055L8.08594 39.9131", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" })), $e = ({
118
+ ), Ze = "flex items-center justify-center text-secondary", $e = "shrink-0 grow-0 basis-auto animate-spin-steps", Ke = (e) => /* @__PURE__ */ v.createElement("svg", { viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ v.createElement("path", { d: "M24 39V46.5", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ v.createElement("path", { opacity: 0.4, d: "M9 24H1.5", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ v.createElement("path", { opacity: 0.5, d: "M8.0918 8.0918L13.3994 13.3994", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ v.createElement("path", { opacity: 0.6, d: "M24 1.5V9", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ v.createElement("path", { opacity: 0.7, d: "M39.9121 8.08594L37.2607 10.7373L34.6094 13.3887", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ v.createElement("path", { opacity: 0.8, d: "M46.5 24H39", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ v.createElement("path", { opacity: 0.9, d: "M34.6055 34.6055L39.9082 39.9082", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ v.createElement("path", { opacity: 0.3, d: "M13.3936 34.6055L8.08594 39.9131", stroke: "currentColor", strokeWidth: 3, strokeLinecap: "round", strokeLinejoin: "round" })), Ue = ({
118
119
  size: e = 18,
119
120
  cssClass: t,
120
121
  iconClass: n,
@@ -127,81 +128,81 @@ const Be = {
127
128
  "aria-label": s,
128
129
  name: "loader",
129
130
  className: i({
130
- [ze]: !0,
131
+ [Ze]: !0,
131
132
  "w-full h-full": a,
132
133
  [t || ""]: !!t
133
134
  }),
134
135
  children: /* @__PURE__ */ r(
135
- I,
136
+ N,
136
137
  {
137
138
  icon: /* @__PURE__ */ r(
138
- He,
139
+ Ke,
139
140
  {
140
141
  width: e,
141
142
  height: e,
142
- className: i(_e, n),
143
+ className: i($e, n),
143
144
  role: "img"
144
145
  }
145
146
  )
146
147
  }
147
148
  )
148
149
  }
149
- ), Ke = 7, Ue = 2, J = Ce(null), ee = () => {
150
- const e = Ne(J);
150
+ ), Ge = 7, Xe = 2, te = we(null), ne = () => {
151
+ const e = De(te);
151
152
  if (e == null)
152
153
  throw new Error("Tooltip components must be wrapped in <Tooltip />");
153
154
  return e;
154
- }, Ge = ({
155
+ }, qe = ({
155
156
  initialOpen: e = !1,
156
157
  placement: t = "bottom",
157
158
  isTriggerClickable: n = !1,
158
159
  open: a,
159
160
  onOpenChange: s
160
161
  } = {}) => {
161
- const [o, l] = S(e), u = ve(null), d = a ?? o, c = s ?? l, p = G({
162
+ const [o, l] = T(e), u = Ne(null), d = a ?? o, c = s ?? l, m = q({
162
163
  placement: t,
163
164
  open: d,
164
165
  onOpenChange: c,
165
- whileElementsMounted: Te,
166
+ whileElementsMounted: Me,
166
167
  middleware: [
167
- Le(Ke + Ue),
168
+ Ee(Ge + Xe),
168
169
  Re({
169
170
  crossAxis: t.includes("-"),
170
171
  fallbackAxisSideDirection: "start",
171
172
  padding: 5
172
173
  }),
173
- Ee({ padding: 5 }),
174
- Se({
174
+ Fe({ padding: 5 }),
175
+ Te({
175
176
  element: u
176
177
  })
177
178
  ]
178
- }), f = Fe(p.context, {
179
+ }), f = je(m.context, {
179
180
  move: !1,
180
181
  enabled: a == null,
181
182
  mouseOnly: n,
182
183
  delay: { open: 500, close: 0 }
183
- }), x = je(p.context, {
184
+ }), x = Ve(m.context, {
184
185
  enabled: a == null
185
- }), h = Z(p.context), b = X(p.context, { role: "tooltip" }), g = q([f, x, h, b]);
186
- return we(
186
+ }), h = Q(m.context), C = Y(m.context, { role: "tooltip" }), g = J([f, x, h, C]);
187
+ return ke(
187
188
  () => ({
188
189
  open: d,
189
190
  setOpen: c,
190
191
  arrowRef: u,
191
192
  ...g,
192
- ...p
193
+ ...m
193
194
  }),
194
- [d, c, g, p]
195
+ [d, c, g, m]
195
196
  );
196
- }, Ze = ({
197
+ }, Qe = ({
197
198
  children: e,
198
199
  ...t
199
200
  }) => {
200
- const n = Ge(t);
201
- return /* @__PURE__ */ r(J.Provider, { value: n, children: e });
202
- }, Xe = U(function({ style: t, ...n }, a) {
203
- const s = ee(), o = Q([s.refs.setFloating, a]);
204
- return s.open ? /* @__PURE__ */ r(Y, { id: "tooltip-portal", children: /* @__PURE__ */ m(
201
+ const n = qe(t);
202
+ return /* @__PURE__ */ r(te.Provider, { value: n, children: e });
203
+ }, Ye = X(function({ style: t, ...n }, a) {
204
+ const s = ne(), o = ee([s.refs.setFloating, a]);
205
+ return s.open ? /* @__PURE__ */ r(re, { id: "tooltip-portal", children: /* @__PURE__ */ p(
205
206
  "div",
206
207
  {
207
208
  ref: o,
@@ -229,9 +230,9 @@ const Be = {
229
230
  ]
230
231
  }
231
232
  ) }) : null;
232
- }), qe = U(function({ children: t, asChild: n = !1, ...a }, s) {
233
- const o = ee(), u = t && typeof t == "object" && "ref" in t && t.ref !== void 0 ? t.ref : void 0, d = Q([o.refs.setReference, s, u]);
234
- return n && ke(t) ? De(
233
+ }), Je = X(function({ children: t, asChild: n = !1, ...a }, s) {
234
+ const o = ne(), u = t && typeof t == "object" && "ref" in t && t.ref !== void 0 ? t.ref : void 0, d = ee([o.refs.setReference, s, u]);
235
+ return n && Ie(t) ? Le(
235
236
  t,
236
237
  o.getReferenceProps({
237
238
  ref: d,
@@ -247,17 +248,17 @@ const Be = {
247
248
  children: t
248
249
  }
249
250
  );
250
- }), F = ({
251
+ }), S = ({
251
252
  hideTooltip: e,
252
253
  tooltip: t,
253
254
  children: n,
254
255
  triggerClassName: a,
255
256
  contentClassName: s,
256
257
  ...o
257
- }) => /* @__PURE__ */ m(Ze, { ...o, children: [
258
- /* @__PURE__ */ r(qe, { className: i(a, "truncate"), children: n }),
258
+ }) => /* @__PURE__ */ p(Qe, { ...o, children: [
259
+ /* @__PURE__ */ r(Je, { className: i(a, "truncate"), children: n }),
259
260
  /* @__PURE__ */ r(
260
- Xe,
261
+ Ye,
261
262
  {
262
263
  className: i(
263
264
  "text-primary",
@@ -268,10 +269,10 @@ const Be = {
268
269
  children: t
269
270
  }
270
271
  )
271
- ] }), re = 18, T = {
272
- size: re,
272
+ ] }), R = 18, M = {
273
+ size: R,
273
274
  stroke: 2
274
- }, Fr = ({
275
+ }, jr = ({
275
276
  label: e,
276
277
  id: t,
277
278
  checked: n,
@@ -280,9 +281,9 @@ const Be = {
280
281
  ariaLabel: o,
281
282
  onChange: l
282
283
  }) => {
283
- const u = D(
284
- (p) => {
285
- p.stopPropagation(), l?.(p.target.checked, t);
284
+ const u = I(
285
+ (m) => {
286
+ m.stopPropagation(), l?.(m.target.checked, t);
286
287
  },
287
288
  [l, t]
288
289
  ), d = i(
@@ -293,9 +294,9 @@ const Be = {
293
294
  "mr-2 border rounded",
294
295
  s ? "bg-layer-4 border-icon-secondary" : ""
295
296
  );
296
- return /* @__PURE__ */ m("label", { className: d, htmlFor: t, children: [
297
- n && (a ? /* @__PURE__ */ r(pe, { className: c, ...T }) : /* @__PURE__ */ r(K, { className: c, ...T })),
298
- e && /* @__PURE__ */ r(F, { tooltip: e, triggerClassName: "flex-1 min-w-0", children: /* @__PURE__ */ r("p", { className: "text-primary w-full truncate", children: e }) }),
297
+ return /* @__PURE__ */ p("label", { className: d, htmlFor: t, children: [
298
+ n && (a ? /* @__PURE__ */ r(fe, { className: c, ...M }) : /* @__PURE__ */ r(G, { className: c, ...M })),
299
+ e && /* @__PURE__ */ r(S, { tooltip: e, triggerClassName: "flex-1 min-w-0", children: /* @__PURE__ */ r("p", { className: "text-primary w-full truncate", children: e }) }),
299
300
  /* @__PURE__ */ r(
300
301
  "input",
301
302
  {
@@ -311,60 +312,60 @@ const Be = {
311
312
  )
312
313
  ] });
313
314
  };
314
- var C = /* @__PURE__ */ ((e) => (e.VALID = "valid", e.ERROR = "error", e))(C || {});
315
- const Qe = (e, t) => {
315
+ var b = /* @__PURE__ */ ((e) => (e.VALID = "valid", e.ERROR = "error", e))(b || {});
316
+ const er = (e, t) => {
316
317
  if (t === e.id)
317
318
  switch (e.status) {
318
- case C.VALID:
319
+ case b.VALID:
319
320
  return "border-accent-secondary text-primary";
320
- case C.ERROR:
321
+ case b.ERROR:
321
322
  return "border-red-900 text-primary";
322
323
  default:
323
324
  return "border-accent-primary text-primary";
324
325
  }
325
326
  switch (e.status) {
326
- case C.VALID:
327
+ case b.VALID:
327
328
  return "border-primary text-white";
328
- case C.ERROR:
329
+ case b.ERROR:
329
330
  return "border-red-900 text-error";
330
331
  default:
331
332
  return "border-primary text-secondary";
332
333
  }
333
- }, Ye = (e, t) => {
334
+ }, rr = (e, t) => {
334
335
  if (t === e.id)
335
336
  switch (e.status) {
336
- case C.VALID:
337
+ case b.VALID:
337
338
  return "bg-accent-secondary";
338
- case C.ERROR:
339
+ case b.ERROR:
339
340
  return "bg-red-400";
340
341
  default:
341
342
  return "bg-accent-primary";
342
343
  }
343
344
  switch (e.status) {
344
- case C.VALID:
345
+ case b.VALID:
345
346
  return "bg-accent-secondary";
346
- case C.ERROR:
347
+ case b.ERROR:
347
348
  return "bg-red-400";
348
349
  default:
349
350
  return "bg-layer-4";
350
351
  }
351
- }, Je = ({
352
+ }, tr = ({
352
353
  step: e,
353
354
  index: t,
354
355
  currentStep: n,
355
356
  onChangeStep: a
356
357
  }) => {
357
- 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 = () => n === e.id && e.status === C.ERROR ? /* @__PURE__ */ r(me, { stroke: 2, size: 16 }) : n !== e.id && e.status === C.VALID ? /* @__PURE__ */ r(K, { stroke: 2, size: 16 }) : t + 1;
358
- return /* @__PURE__ */ m(
358
+ 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 = () => n === e.id && e.status === b.ERROR ? /* @__PURE__ */ r(he, { stroke: 2, size: 16 }) : n !== e.id && e.status === b.VALID ? /* @__PURE__ */ r(G, { stroke: 2, size: 16 }) : t + 1;
359
+ return /* @__PURE__ */ p(
359
360
  "button",
360
361
  {
361
- className: i(s, Qe(e, n)),
362
+ className: i(s, er(e, n)),
362
363
  onClick: () => a(e.id),
363
364
  children: [
364
365
  /* @__PURE__ */ r(
365
366
  "span",
366
367
  {
367
- className: i(o, Ye(e, n)),
368
+ className: i(o, rr(e, n)),
368
369
  children: l()
369
370
  }
370
371
  ),
@@ -372,17 +373,17 @@ const Qe = (e, t) => {
372
373
  ]
373
374
  }
374
375
  );
375
- }, jr = ({
376
+ }, Vr = ({
376
377
  steps: e,
377
378
  currentStep: t,
378
379
  onChangeStep: n
379
380
  }) => {
380
381
  const a = (s) => {
381
382
  const o = e.findIndex((u) => u.id === t), l = e.findIndex((u) => u.id === s);
382
- (s !== t && e[o].status === C.VALID || l < o) && n(s);
383
+ (s !== t && e[o].status === b.VALID || l < o) && n(s);
383
384
  };
384
385
  return /* @__PURE__ */ r("div", { id: "steps", className: "flex gap-x-3", children: e.map((s, o) => /* @__PURE__ */ r(
385
- Je,
386
+ tr,
386
387
  {
387
388
  currentStep: t,
388
389
  onChangeStep: a,
@@ -391,7 +392,7 @@ const Qe = (e, t) => {
391
392
  },
392
393
  s.id
393
394
  )) });
394
- }, er = ({
395
+ }, nr = ({
395
396
  name: e,
396
397
  value: t,
397
398
  title: n,
@@ -402,7 +403,7 @@ const Qe = (e, t) => {
402
403
  labelCssClass: u,
403
404
  disabled: d,
404
405
  onChange: c,
405
- descriptionCssClass: p
406
+ descriptionCssClass: m
406
407
  }) => {
407
408
  const f = `${o}-desc`, x = i(
408
409
  "dial-small cursor-pointer",
@@ -412,12 +413,12 @@ const Qe = (e, t) => {
412
413
  "cursor-pointer dial-input-radio",
413
414
  n && "mr-2",
414
415
  l
415
- ), b = i("flex flex-col", !!a && "mb-2"), g = i(
416
+ ), C = i("flex flex-col", !!a && "mb-2"), g = i(
416
417
  "dial-tiny mt-2 ml-[26px] text-secondary",
417
- p
418
+ m
418
419
  );
419
- return /* @__PURE__ */ m("div", { className: b, children: [
420
- /* @__PURE__ */ m("div", { className: "flex flex-row items-center", children: [
420
+ return /* @__PURE__ */ p("div", { className: C, children: [
421
+ /* @__PURE__ */ p("div", { className: "flex flex-row items-center", children: [
421
422
  /* @__PURE__ */ r(
422
423
  "input",
423
424
  {
@@ -429,8 +430,8 @@ const Qe = (e, t) => {
429
430
  disabled: d,
430
431
  "aria-describedby": s && a ? f : void 0,
431
432
  className: h,
432
- onChange: (k) => {
433
- d || k.target.checked && c?.(t);
433
+ onChange: (D) => {
434
+ d || D.target.checked && c?.(t);
434
435
  }
435
436
  }
436
437
  ),
@@ -439,10 +440,10 @@ const Qe = (e, t) => {
439
440
  s && a && /* @__PURE__ */ r("div", { id: f, className: g, children: a })
440
441
  ] });
441
442
  };
442
- var z = /* @__PURE__ */ ((e) => (e.Row = "Row", e.Column = "Column", e))(z || {});
443
- const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
444
- [z.Column]: "flex-col gap-y-3",
445
- [z.Row]: "flex-row gap-x-6"
443
+ var Z = /* @__PURE__ */ ((e) => (e.Row = "Row", e.Column = "Column", e))(Z || {});
444
+ const ar = "flex flex-col gap-2", sr = "flex", or = "pb-1 mt-2", lr = {
445
+ [Z.Column]: "flex-col gap-y-3",
446
+ [Z.Row]: "flex-row gap-x-6"
446
447
  }, Pr = ({
447
448
  fieldTitle: e,
448
449
  radioCssClass: t,
@@ -453,8 +454,8 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
453
454
  activeRadioButton: l,
454
455
  orientation: u,
455
456
  onChange: d
456
- }) => /* @__PURE__ */ m("div", { className: rr, children: [
457
- e && /* @__PURE__ */ r(V, { fieldTitle: e, htmlFor: s }),
457
+ }) => /* @__PURE__ */ p("div", { className: ar, children: [
458
+ e && /* @__PURE__ */ r(H, { fieldTitle: e, htmlFor: s }),
458
459
  /* @__PURE__ */ r(
459
460
  "div",
460
461
  {
@@ -462,12 +463,12 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
462
463
  "aria-label": e,
463
464
  "aria-disabled": a || void 0,
464
465
  className: i(
465
- tr,
466
- ar[u]
466
+ sr,
467
+ lr[u]
467
468
  ),
468
- children: o.map((c) => /* @__PURE__ */ m("div", { className: "flex flex-col", children: [
469
+ children: o.map((c) => /* @__PURE__ */ p("div", { className: "flex flex-col", children: [
469
470
  /* @__PURE__ */ r(
470
- er,
471
+ nr,
471
472
  {
472
473
  name: s,
473
474
  value: c.id,
@@ -480,7 +481,7 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
480
481
  onChange: () => d(c.id)
481
482
  }
482
483
  ),
483
- c.id === l && c.content ? /* @__PURE__ */ r("div", { className: nr, children: c.content }) : null
484
+ c.id === l && c.content ? /* @__PURE__ */ r("div", { className: or, children: c.content }) : null
484
485
  ] }, c.id))
485
486
  }
486
487
  )
@@ -488,20 +489,20 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
488
489
  icon: e,
489
490
  title: t,
490
491
  description: n
491
- }) => /* @__PURE__ */ m("div", { className: "h-full w-full flex flex-col items-center justify-center text-secondary", children: [
492
- e || /* @__PURE__ */ r(fe, { width: 60, height: 60 }),
492
+ }) => /* @__PURE__ */ p("div", { className: "h-full w-full flex flex-col items-center justify-center text-secondary", children: [
493
+ e || /* @__PURE__ */ r(xe, { width: 60, height: 60 }),
493
494
  /* @__PURE__ */ r("span", { className: "small mt-2 text-primary", children: t }),
494
495
  n && /* @__PURE__ */ r("span", { className: "mt-1 text-primary", children: n })
495
- ] }), sr = 60, Mr = ({
496
+ ] }), ir = 60, Or = ({
496
497
  containerCssClass: e,
497
498
  children: t,
498
499
  width: n,
499
500
  title: a,
500
- iconSize: s = re,
501
+ iconSize: s = R,
501
502
  titleCssClass: o,
502
503
  additionalButtons: l
503
504
  }) => {
504
- const [u, d] = S(n), [c, p] = S(!0), f = i([
505
+ const [u, d] = T(n), [c, m] = T(!0), f = i([
505
506
  "transform rotate-180 [writing-mode:tb-rl]",
506
507
  c && "hidden",
507
508
  o
@@ -509,9 +510,9 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
509
510
  "flex flex-row gap-2 cursor-pointer text-secondary",
510
511
  c ? "justify-end" : "justify-center"
511
512
  ]), h = () => {
512
- d(c ? sr : n), p(!c);
513
+ d(c ? ir : n), m(!c);
513
514
  };
514
- return /* @__PURE__ */ m(
515
+ return /* @__PURE__ */ p(
515
516
  "div",
516
517
  {
517
518
  className: i([
@@ -531,24 +532,24 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
531
532
  }
532
533
  ),
533
534
  /* @__PURE__ */ r("div", { className: f, children: a }),
534
- /* @__PURE__ */ m("div", { className: x, children: [
535
+ /* @__PURE__ */ p("div", { className: x, children: [
535
536
  c && l,
536
537
  /* @__PURE__ */ r(
537
- P,
538
+ V,
538
539
  {
539
540
  cssClass: "hover:text-icon-accent-primary",
540
541
  onClick: h,
541
542
  iconBefore: c ? /* @__PURE__ */ r(
542
- he,
543
+ ge,
543
544
  {
544
545
  size: s,
545
- stroke: T.stroke
546
+ stroke: M.stroke
546
547
  }
547
548
  ) : /* @__PURE__ */ r(
548
- xe,
549
+ Ce,
549
550
  {
550
551
  size: s,
551
- stroke: T.stroke
552
+ stroke: M.stroke
552
553
  }
553
554
  )
554
555
  }
@@ -562,7 +563,7 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
562
563
  text: t,
563
564
  children: n,
564
565
  postfix: a
565
- }) => /* @__PURE__ */ m(
566
+ }) => /* @__PURE__ */ p(
566
567
  "div",
567
568
  {
568
569
  className: i(
@@ -571,26 +572,26 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
571
572
  ),
572
573
  children: [
573
574
  /* @__PURE__ */ r("label", { className: "dial-tiny mb-2", children: e }),
574
- n || /* @__PURE__ */ m("div", { className: "flex flex-row items-center", children: [
575
- /* @__PURE__ */ r(F, { triggerClassName: "text-primary", tooltip: t, children: t }),
575
+ n || /* @__PURE__ */ p("div", { className: "flex flex-row items-center", children: [
576
+ /* @__PURE__ */ r(S, { triggerClassName: "text-primary", tooltip: t, children: t }),
576
577
  a || null
577
578
  ] })
578
579
  ]
579
580
  }
580
- ), or = ({
581
+ ), cr = ({
581
582
  ariaLabel: e,
582
583
  cssClass: t,
583
584
  size: n = 24,
584
585
  onClose: a
585
586
  }) => /* @__PURE__ */ r(
586
- P,
587
+ V,
587
588
  {
588
589
  ariaLabel: e,
589
590
  cssClass: i("text-secondary hover:text-accent-primary", t),
590
591
  onClick: a,
591
- iconBefore: /* @__PURE__ */ r(_, { size: n })
592
+ iconBefore: /* @__PURE__ */ r($, { size: n })
592
593
  }
593
- ), lr = ({
594
+ ), dr = ({
594
595
  value: e,
595
596
  textareaId: t,
596
597
  placeholder: n,
@@ -599,7 +600,7 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
599
600
  invalid: o,
600
601
  readonly: l,
601
602
  onChange: u
602
- }) => /* @__PURE__ */ r(F, { tooltip: e, triggerClassName: "flex", children: /* @__PURE__ */ r(
603
+ }) => /* @__PURE__ */ r(S, { tooltip: e, triggerClassName: "flex", children: /* @__PURE__ */ r(
603
604
  "textarea",
604
605
  {
605
606
  id: t,
@@ -615,7 +616,7 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
615
616
  ),
616
617
  onChange: (d) => !l && u?.(d.currentTarget.value)
617
618
  }
618
- ) }), ir = [
619
+ ) }), ur = [
619
620
  "ArrowLeft",
620
621
  "ArrowRight",
621
622
  "ArrowUp",
@@ -627,8 +628,8 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
627
628
  "Escape",
628
629
  "Home",
629
630
  "End"
630
- ], cr = (e, t, n, a) => {
631
- if ((t === "number" || n !== void 0 || a !== void 0) && !ir.includes(e.key) && !(e.key === "-" && e.currentTarget.selectionStart === 0 && (n === void 0 || n < 0)) && !(e.key === "." && t === "number" && !e.currentTarget.value.includes("."))) {
631
+ ], pr = (e, t, n, a) => {
632
+ if ((t === "number" || n !== void 0 || a !== void 0) && !ur.includes(e.key) && !(e.key === "-" && e.currentTarget.selectionStart === 0 && (n === void 0 || n < 0)) && !(e.key === "." && t === "number" && !e.currentTarget.value.includes("."))) {
632
633
  if (!/^[0-9]$/.test(e.key)) {
633
634
  e.preventDefault();
634
635
  return;
@@ -647,7 +648,7 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
647
648
  }
648
649
  }
649
650
  }
650
- }, W = ({
651
+ }, O = ({
651
652
  iconBefore: e,
652
653
  iconAfter: t,
653
654
  hideBorder: n,
@@ -658,44 +659,44 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
658
659
  containerCssClass: u,
659
660
  tooltipTriggerClassName: d,
660
661
  type: c = "text",
661
- disabled: p,
662
+ disabled: m,
662
663
  readonly: f,
663
664
  invalid: x,
664
665
  onChange: h,
665
- min: b,
666
+ min: C,
666
667
  max: g,
667
- prefix: N,
668
- suffix: k,
668
+ prefix: k,
669
+ suffix: D,
669
670
  textBeforeInput: y,
670
- textAfterInput: A
671
+ textAfterInput: P
671
672
  }) => {
672
- const ne = (L) => L.target.blur(), ae = c === "number" || b !== void 0 || g !== void 0, se = (L) => {
673
- cr(L, c, b, g);
674
- }, oe = (L) => {
673
+ const oe = (L) => L.target.blur(), le = c === "number" || C !== void 0 || g !== void 0, ie = (L) => {
674
+ pr(L, c, C, g);
675
+ }, ce = (L) => {
675
676
  const j = L.currentTarget.value;
676
- if (ae && j !== "") {
677
- const M = parseFloat(j);
678
- if (isNaN(M) && j !== "-" && j !== "." || !isNaN(M) && (b !== void 0 && M < b || g !== void 0 && M > g))
677
+ if (le && j !== "") {
678
+ const A = parseFloat(j);
679
+ if (isNaN(A) && j !== "-" && j !== "." || !isNaN(A) && (C !== void 0 && A < C || g !== void 0 && A > g))
679
680
  return;
680
681
  }
681
682
  h?.(j);
682
683
  };
683
- return /* @__PURE__ */ m(
684
+ return /* @__PURE__ */ p(
684
685
  "div",
685
686
  {
686
687
  className: i(
687
688
  "dial-input-field flex flex-row items-center justify-between py-2",
688
689
  n ? "dial-input-no-border" : "dial-input",
689
690
  x && "dial-input-error",
690
- p && "dial-input-disable",
691
+ m && "dial-input-disable",
691
692
  f && "dial-input-readonly",
692
693
  !y && "pl-3",
693
- !A && "pr-3",
694
+ !P && "pr-3",
694
695
  u
695
696
  ),
696
697
  children: [
697
698
  y && /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
698
- W,
699
+ O,
699
700
  {
700
701
  hideBorder: !0,
701
702
  containerCssClass: "rounded-r-none border-r-0",
@@ -705,13 +706,13 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
705
706
  elementId: y + "textBefore"
706
707
  }
707
708
  ) }),
708
- N && /* @__PURE__ */ m("p", { className: "text-secondary dial-small", children: [
709
+ k && /* @__PURE__ */ p("p", { className: "text-secondary dial-small", children: [
709
710
  " ",
710
- N
711
+ k
711
712
  ] }),
712
- /* @__PURE__ */ r(I, { icon: e }),
713
+ /* @__PURE__ */ r(N, { icon: e }),
713
714
  /* @__PURE__ */ r(
714
- F,
715
+ S,
715
716
  {
716
717
  tooltip: a,
717
718
  triggerClassName: i(d, "flex-1"),
@@ -723,36 +724,36 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
723
724
  id: s,
724
725
  placeholder: o,
725
726
  value: a ?? "",
726
- disabled: p,
727
+ disabled: m,
727
728
  className: i("border-0 bg-transparent", l),
728
- onChange: (L) => !f && oe?.(L),
729
- onKeyDown: se,
730
- onWheel: ne,
731
- min: b,
729
+ onChange: (L) => !f && ce?.(L),
730
+ onKeyDown: ie,
731
+ onWheel: oe,
732
+ min: C,
732
733
  max: g
733
734
  }
734
735
  )
735
736
  }
736
737
  ),
737
- /* @__PURE__ */ r(I, { icon: t }),
738
- k && /* @__PURE__ */ m("p", { className: "text-secondary dial-small", children: [
738
+ /* @__PURE__ */ r(N, { icon: t }),
739
+ D && /* @__PURE__ */ p("p", { className: "text-secondary dial-small", children: [
739
740
  " ",
740
- k
741
+ D
741
742
  ] }),
742
- A && /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
743
- W,
743
+ P && /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
744
+ O,
744
745
  {
745
746
  hideBorder: !0,
746
747
  containerCssClass: "rounded-l-none border-l-0",
747
- value: A,
748
+ value: P,
748
749
  disabled: !0,
749
- elementId: A + "textAfter"
750
+ elementId: P + "textAfter"
750
751
  }
751
752
  ) })
752
753
  ]
753
754
  }
754
755
  );
755
- }, dr = /^0+\.(\d+)?$/, ur = /^0+/, te = ({
756
+ }, mr = /^0+\.(\d+)?$/, fr = /^0+/, ae = ({
756
757
  fieldTitle: e,
757
758
  errorText: t,
758
759
  optional: n,
@@ -763,31 +764,31 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
763
764
  readonly: u,
764
765
  defaultEmptyText: d,
765
766
  min: c,
766
- max: p,
767
+ max: m,
767
768
  ...f
768
- }) => /* @__PURE__ */ m("div", { className: i("flex flex-col", l), children: [
769
+ }) => /* @__PURE__ */ p("div", { className: i("flex flex-col", l), children: [
769
770
  /* @__PURE__ */ r(
770
- V,
771
+ H,
771
772
  {
772
773
  fieldTitle: e,
773
774
  optional: n,
774
775
  htmlFor: o
775
776
  }
776
777
  ),
777
- u ? /* @__PURE__ */ r("span", { children: f.value || (d ?? "None") }) : /* @__PURE__ */ m(le, { children: [
778
+ u ? /* @__PURE__ */ r("span", { children: f.value || (d ?? "None") }) : /* @__PURE__ */ p(_, { children: [
778
779
  /* @__PURE__ */ r(
779
- W,
780
+ O,
780
781
  {
781
782
  elementId: o,
782
783
  cssClass: a,
783
784
  containerCssClass: s,
784
785
  invalid: t != null,
785
786
  min: c,
786
- max: p,
787
+ max: m,
787
788
  ...f
788
789
  }
789
790
  ),
790
- /* @__PURE__ */ r(H, { errorText: t })
791
+ /* @__PURE__ */ r(z, { errorText: t })
791
792
  ] })
792
793
  ] }), Br = ({
793
794
  onChange: e,
@@ -796,9 +797,9 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
796
797
  max: a,
797
798
  ...s
798
799
  }) => {
799
- const o = (l) => String(l)?.match(dr) ? String(l)?.replace(ur, "0") : Number(l);
800
+ const o = (l) => String(l)?.match(mr) ? String(l)?.replace(fr, "0") : Number(l);
800
801
  return /* @__PURE__ */ r(
801
- te,
802
+ ae,
802
803
  {
803
804
  type: "number",
804
805
  onChange: (l) => e?.(o(l)),
@@ -808,26 +809,26 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
808
809
  ...s
809
810
  }
810
811
  );
811
- }, Or = ({
812
+ }, zr = ({
812
813
  onChange: e,
813
814
  ...t
814
815
  }) => /* @__PURE__ */ r(
815
- te,
816
+ ae,
816
817
  {
817
818
  type: "text",
818
819
  onChange: (n) => e?.(n),
819
820
  ...t
820
821
  }
821
- ), Vr = ({
822
+ ), Hr = ({
822
823
  fieldTitle: e,
823
824
  optional: t,
824
825
  elementId: n,
825
826
  elementCssClass: a,
826
827
  errorText: s,
827
828
  ...o
828
- }) => /* @__PURE__ */ m("div", { className: "flex flex-col", children: [
829
+ }) => /* @__PURE__ */ p("div", { className: "flex flex-col", children: [
829
830
  /* @__PURE__ */ r(
830
- V,
831
+ H,
831
832
  {
832
833
  fieldTitle: e,
833
834
  optional: t,
@@ -835,15 +836,15 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
835
836
  }
836
837
  ),
837
838
  /* @__PURE__ */ r(
838
- lr,
839
+ dr,
839
840
  {
840
841
  textareaId: n,
841
842
  cssClass: a,
842
843
  ...o
843
844
  }
844
845
  ),
845
- /* @__PURE__ */ r(H, { errorText: s })
846
- ] }), zr = ({
846
+ /* @__PURE__ */ r(z, { errorText: s })
847
+ ] }), _r = ({
847
848
  title: e,
848
849
  switchId: t,
849
850
  isOn: n = !1,
@@ -855,13 +856,13 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
855
856
  n ? "flex-row-reverse" : "flex-row",
856
857
  a ? "pointer-events-none" : "",
857
858
  a ? n ? "bg-controls-disable" : "bg-layer-4" : n ? "bg-accent-primary" : "bg-layer-4"
858
- ), l = D(
859
+ ), l = I(
859
860
  (u) => {
860
861
  u.stopPropagation(), s?.(!n);
861
862
  },
862
863
  [s, n]
863
864
  );
864
- return /* @__PURE__ */ m("div", { className: "flex flex-row items-center", children: [
865
+ return /* @__PURE__ */ p("div", { className: "flex flex-row items-center", children: [
865
866
  /* @__PURE__ */ r(
866
867
  "input",
867
868
  {
@@ -885,12 +886,12 @@ const rr = "flex flex-col gap-2", tr = "flex", nr = "pb-1 mt-2", ar = {
885
886
  e && /* @__PURE__ */ r("span", { className: "pl-2 dial-small text-primary", children: e })
886
887
  ] });
887
888
  };
888
- var E = /* @__PURE__ */ ((e) => (e.Sm = "sm", e.Md = "md", e.Lg = "lg", e))(E || {});
889
- const pr = "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", hr = "flex flex-row justify-between py-4 px-6 items-center", xr = {
890
- [E.Sm]: "max-w-full md:max-w-[400px]",
891
- [E.Md]: "max-w-full md:max-w-[800px]",
892
- [E.Lg]: "max-w-full md:max-w-[1200px]"
893
- }, gr = ({
889
+ var F = /* @__PURE__ */ ((e) => (e.Sm = "sm", e.Md = "md", e.Lg = "lg", e))(F || {});
890
+ const hr = "z-[52] flex items-center justify-center bg-blackout md:p-4", xr = "divide-tertiary divide-y", gr = "flex flex-row justify-between py-4 px-6 items-center", Cr = {
891
+ [F.Sm]: "dial-sm-popup",
892
+ [F.Md]: "dial-md-popup",
893
+ [F.Lg]: "dial-lg-popup"
894
+ }, yr = ({
894
895
  open: e = !1,
895
896
  title: t,
896
897
  portalId: n,
@@ -901,45 +902,45 @@ const pr = "z-[52] flex items-center justify-center bg-blackout md:p-4", mr = "r
901
902
  children: u,
902
903
  footer: d,
903
904
  onClose: c,
904
- size: p = E.Md
905
+ size: m = F.Md
905
906
  }) => {
906
- const { refs: f, context: x } = G({
907
+ const { refs: f, context: x } = q({
907
908
  open: e,
908
909
  onOpenChange: (y) => {
909
910
  y || c?.(null);
910
911
  }
911
- }), h = X(x, { role: "dialog" }), b = Z(x, { outsidePress: !0 }), { getFloatingProps: g } = q([h, b]);
912
+ }), h = Y(x, { role: "dialog" }), C = Q(x, { outsidePress: !0 }), { getFloatingProps: g } = J([h, C]);
912
913
  if (!e) return null;
913
- const N = typeof t == "string" ? "dial-popup-heading" : void 0, k = (y) => y ? typeof y == "string" ? /* @__PURE__ */ r(
914
+ const k = typeof t == "string" ? "dial-popup-heading" : void 0, D = (y) => y ? typeof y == "string" ? /* @__PURE__ */ r(
914
915
  "h3",
915
916
  {
916
- id: N,
917
+ id: k,
917
918
  className: i(
918
919
  "flex-1 min-w-0 mr-3 truncate dial-h3 text-primary",
919
920
  o
920
921
  ),
921
- children: /* @__PURE__ */ r(F, { tooltip: y, children: y })
922
+ children: /* @__PURE__ */ r(S, { tooltip: y, children: y })
922
923
  }
923
924
  ) : y : /* @__PURE__ */ r("span", {});
924
- return /* @__PURE__ */ r(Y, { id: n, children: /* @__PURE__ */ r(Ae, { className: i(pr, s), children: /* @__PURE__ */ r(Me, { context: x, children: /* @__PURE__ */ m(
925
+ return /* @__PURE__ */ r(re, { id: n, children: /* @__PURE__ */ r(Ae, { className: i(hr, s), children: /* @__PURE__ */ r(Oe, { context: x, children: /* @__PURE__ */ p(
925
926
  "div",
926
927
  {
927
928
  ref: f.setFloating,
928
929
  ...g(),
929
930
  role: "dialog",
930
931
  "aria-modal": "true",
931
- "aria-labelledby": N,
932
+ "aria-labelledby": k,
932
933
  className: i(
933
- mr,
934
- xr[p],
935
- l && fr,
934
+ "dial-popup",
935
+ Cr[m],
936
+ l && xr,
936
937
  a
937
938
  ),
938
939
  children: [
939
- /* @__PURE__ */ m("div", { className: hr, children: [
940
- k(t),
940
+ /* @__PURE__ */ p("div", { className: gr, children: [
941
+ D(t),
941
942
  /* @__PURE__ */ r(
942
- or,
943
+ cr,
943
944
  {
944
945
  ariaLabel: "Close dialog",
945
946
  onClose: (y) => c?.(y)
@@ -952,104 +953,104 @@ const pr = "z-[52] flex items-center justify-center bg-blackout md:p-4", mr = "r
952
953
  }
953
954
  ) }) }) });
954
955
  };
955
- var B = /* @__PURE__ */ ((e) => (e.Info = "info", e.Danger = "danger", e))(B || {});
956
- const yr = "flex justify-end gap-2 px-6 py-4", br = "text-secondary dial-small-150 px-6 py-4", Cr = "Cancel", $ = {
957
- [B.Info]: {
958
- confirmVariant: v.Primary,
959
- cancelVariant: v.Secondary
956
+ var W = /* @__PURE__ */ ((e) => (e.Info = "info", e.Danger = "danger", e))(W || {});
957
+ const br = "flex justify-end gap-2 px-6 py-4", vr = "text-secondary dial-small-150 px-6 py-4", wr = "Cancel", K = {
958
+ [W.Info]: {
959
+ confirmVariant: w.Primary,
960
+ cancelVariant: w.Secondary
960
961
  },
961
- [B.Danger]: {
962
+ [W.Danger]: {
962
963
  container: "border-t-4 border-error",
963
- confirmVariant: v.Danger,
964
- cancelVariant: v.Secondary
964
+ confirmVariant: w.Danger,
965
+ cancelVariant: w.Secondary
965
966
  }
966
- }, _r = ({
967
+ }, Zr = ({
967
968
  title: e,
968
969
  description: t,
969
970
  descriptionCssClass: n,
970
971
  open: a = !1,
971
972
  confirmLabel: s,
972
- cancelLabel: o = Cr,
973
+ cancelLabel: o = wr,
973
974
  isLoading: l = !1,
974
975
  disableConfirmButton: u = !1,
975
976
  cssClass: d,
976
977
  confirmClassName: c,
977
- onClose: p,
978
+ onClose: m,
978
979
  onConfirm: f,
979
980
  onCancel: x,
980
981
  children: h,
981
- dividers: b = !1,
982
- variant: g = B.Info,
983
- size: N = E.Sm
982
+ dividers: C = !1,
983
+ variant: g = W.Info,
984
+ size: k = F.Sm
984
985
  }) => {
985
- const k = l ? null : /* @__PURE__ */ m("div", { className: yr, children: [
986
+ const D = l ? null : /* @__PURE__ */ p("div", { className: br, children: [
986
987
  /* @__PURE__ */ r(
987
- P,
988
+ V,
988
989
  {
989
- variant: v.Secondary,
990
+ variant: w.Secondary,
990
991
  title: o,
991
- onClick: () => x ? x() : p?.()
992
+ onClick: () => x ? x() : m?.()
992
993
  }
993
994
  ),
994
995
  /* @__PURE__ */ r(
995
- P,
996
+ V,
996
997
  {
997
- variant: $[g].confirmVariant,
998
+ variant: K[g].confirmVariant,
998
999
  cssClass: c,
999
1000
  title: s,
1000
1001
  disable: u,
1001
1002
  onClick: () => f()
1002
1003
  }
1003
1004
  )
1004
- ] }), y = D(() => l ? /* @__PURE__ */ r("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ r($e, { size: 50 }) }) : h ?? (t ? /* @__PURE__ */ r(
1005
+ ] }), y = I(() => l ? /* @__PURE__ */ r("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ r(Ue, { size: 50 }) }) : h ?? (t ? /* @__PURE__ */ r(
1005
1006
  "div",
1006
1007
  {
1007
- className: i(br, n),
1008
+ className: i(vr, n),
1008
1009
  children: t
1009
1010
  }
1010
1011
  ) : null), [h, t, l, n]);
1011
1012
  return /* @__PURE__ */ r(
1012
- gr,
1013
+ yr,
1013
1014
  {
1014
1015
  open: a,
1015
1016
  title: e,
1016
- cssClass: i($[g].container, d),
1017
- dividers: b,
1018
- onClose: () => p?.(),
1019
- footer: k,
1020
- size: N,
1017
+ cssClass: i(K[g].container, d),
1018
+ dividers: C,
1019
+ onClose: () => m?.(),
1020
+ footer: D,
1021
+ size: k,
1021
1022
  children: y()
1022
1023
  }
1023
1024
  );
1024
- }, vr = ({ onClick: e }) => /* @__PURE__ */ r(
1025
- ge,
1025
+ }, Nr = ({ onClick: e }) => /* @__PURE__ */ r(
1026
+ ye,
1026
1027
  {
1027
- ...T,
1028
+ ...M,
1028
1029
  className: "text-primary",
1029
1030
  onClick: e
1030
1031
  }
1031
- ), wr = ({ onClick: e }) => /* @__PURE__ */ r(ye, { ...T, className: "text-primary", onClick: e }), Nr = ({ ...e }) => {
1032
- const [t, n] = S(!1), a = D((s) => {
1032
+ ), kr = ({ onClick: e }) => /* @__PURE__ */ r(be, { ...M, className: "text-primary", onClick: e }), Dr = ({ ...e }) => {
1033
+ const [t, n] = T(!1), a = I((s) => {
1033
1034
  n(s);
1034
1035
  }, []);
1035
1036
  return /* @__PURE__ */ r(
1036
- W,
1037
+ O,
1037
1038
  {
1038
1039
  type: t ? "text" : "password",
1039
1040
  ...e,
1040
- iconAfter: t ? /* @__PURE__ */ r(vr, { onClick: () => a(!1) }) : /* @__PURE__ */ r(wr, { onClick: () => a(!0) })
1041
+ iconAfter: t ? /* @__PURE__ */ r(Nr, { onClick: () => a(!1) }) : /* @__PURE__ */ r(kr, { onClick: () => a(!0) })
1041
1042
  }
1042
1043
  );
1043
- }, Hr = ({
1044
+ }, $r = ({
1044
1045
  fieldTitle: e,
1045
1046
  optional: t,
1046
1047
  elementCssClass: n,
1047
1048
  elementId: a,
1048
1049
  errorText: s,
1049
1050
  ...o
1050
- }) => /* @__PURE__ */ m("div", { className: "flex flex-col", children: [
1051
+ }) => /* @__PURE__ */ p("div", { className: "flex flex-col", children: [
1051
1052
  /* @__PURE__ */ r(
1052
- V,
1053
+ H,
1053
1054
  {
1054
1055
  fieldTitle: e,
1055
1056
  optional: t,
@@ -1057,7 +1058,7 @@ const yr = "flex justify-end gap-2 px-6 py-4", br = "text-secondary dial-small-1
1057
1058
  }
1058
1059
  ),
1059
1060
  /* @__PURE__ */ r(
1060
- Nr,
1061
+ Dr,
1061
1062
  {
1062
1063
  cssClass: n,
1063
1064
  elementId: a,
@@ -1065,23 +1066,23 @@ const yr = "flex justify-end gap-2 px-6 py-4", br = "text-secondary dial-small-1
1065
1066
  ...o
1066
1067
  }
1067
1068
  ),
1068
- /* @__PURE__ */ r(H, { errorText: s })
1069
+ /* @__PURE__ */ r(z, { errorText: s })
1069
1070
  ] });
1070
- var O = /* @__PURE__ */ ((e) => (e.Small = "small", e.Base = "base", e))(O || {});
1071
- const kr = {
1072
- [O.Small]: {
1071
+ var B = /* @__PURE__ */ ((e) => (e.Small = "small", e.Base = "base", e))(B || {});
1072
+ const Ir = {
1073
+ [B.Small]: {
1073
1074
  textClass: "text-xs px-1",
1074
1075
  containerClass: "px-[6px] py-1 h-[22px]",
1075
1076
  iconSize: 10,
1076
1077
  iconStroke: 1
1077
1078
  },
1078
- [O.Base]: {
1079
+ [B.Base]: {
1079
1080
  textClass: "text-sm px-2",
1080
1081
  containerClass: "px-3 py-2 h-[38px]",
1081
1082
  iconSize: 18,
1082
1083
  iconStroke: 1.5
1083
1084
  }
1084
- }, $r = ({
1085
+ }, Kr = ({
1085
1086
  elementId: e,
1086
1087
  value: t,
1087
1088
  placeholder: n,
@@ -1091,21 +1092,21 @@ const kr = {
1091
1092
  cssClass: l,
1092
1093
  containerCssClass: u,
1093
1094
  onChange: d,
1094
- size: c = O.Base
1095
+ size: c = B.Base
1095
1096
  }) => {
1096
- const [p, f] = S(t || "");
1097
- Ie(() => {
1097
+ const [m, f] = T(t || "");
1098
+ Se(() => {
1098
1099
  f(t || "");
1099
1100
  }, [t]);
1100
- const x = D(
1101
+ const x = I(
1101
1102
  (g) => {
1102
1103
  f(g), d?.(g);
1103
1104
  },
1104
1105
  [d]
1105
- ), h = kr[c], b = D(() => {
1106
+ ), h = Ir[c], C = I(() => {
1106
1107
  x("");
1107
1108
  }, [x]);
1108
- return /* @__PURE__ */ m(
1109
+ return /* @__PURE__ */ p(
1109
1110
  "div",
1110
1111
  {
1111
1112
  className: i(
@@ -1118,11 +1119,11 @@ const kr = {
1118
1119
  ),
1119
1120
  children: [
1120
1121
  /* @__PURE__ */ r(
1121
- I,
1122
+ N,
1122
1123
  {
1123
1124
  className: i(a ? "text-secondary" : "text-primary"),
1124
1125
  icon: /* @__PURE__ */ r(
1125
- be,
1126
+ ve,
1126
1127
  {
1127
1128
  size: h.iconSize,
1128
1129
  stroke: h.iconStroke
@@ -1137,7 +1138,7 @@ const kr = {
1137
1138
  type: "text",
1138
1139
  autoComplete: "off",
1139
1140
  placeholder: n,
1140
- value: p ?? "",
1141
+ value: m ?? "",
1141
1142
  disabled: a,
1142
1143
  readOnly: s,
1143
1144
  className: i(
@@ -1148,16 +1149,16 @@ const kr = {
1148
1149
  onChange: (g) => !s && x(g.currentTarget.value)
1149
1150
  }
1150
1151
  ),
1151
- p && !s && !a && /* @__PURE__ */ r(
1152
- I,
1152
+ m && !s && !a && /* @__PURE__ */ r(
1153
+ N,
1153
1154
  {
1154
1155
  className: "text-primary cursor-pointer",
1155
1156
  icon: /* @__PURE__ */ r(
1156
- _,
1157
+ $,
1157
1158
  {
1158
1159
  size: h.iconSize,
1159
1160
  stroke: h.iconStroke,
1160
- onClick: b,
1161
+ onClick: C,
1161
1162
  "aria-label": "Clear search",
1162
1163
  role: "button"
1163
1164
  }
@@ -1167,7 +1168,7 @@ const kr = {
1167
1168
  ]
1168
1169
  }
1169
1170
  );
1170
- }, Dr = ({ selectedItems: e, listCssClass: t, listElementCssClass: n }) => !!e?.length && /* @__PURE__ */ r(
1171
+ }, se = ({ selectedItems: e, listCssClass: t, listElementCssClass: n }) => !!e?.length && /* @__PURE__ */ r(
1171
1172
  "ul",
1172
1173
  {
1173
1174
  className: i(
@@ -1182,7 +1183,7 @@ const kr = {
1182
1183
  "tiny bg-layer-3 rounded p-1 border border-primary max-w-[200px] truncate",
1183
1184
  n
1184
1185
  ]),
1185
- children: /* @__PURE__ */ r(F, { tooltip: a, children: /* @__PURE__ */ r(
1186
+ children: /* @__PURE__ */ r(S, { tooltip: a, children: /* @__PURE__ */ r(
1186
1187
  "button",
1187
1188
  {
1188
1189
  "aria-label": "autocomplete-action",
@@ -1195,7 +1196,87 @@ const kr = {
1195
1196
  a
1196
1197
  ))
1197
1198
  }
1198
- ), Kr = ({
1199
+ ), U = (e) => /* @__PURE__ */ v.createElement("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ v.createElement("path", { d: "M2.25 13.5V12C2.25 11.5858 2.58579 11.25 3 11.25C3.41421 11.25 3.75 11.5858 3.75 12V13.5C3.75 13.6989 3.82907 13.8896 3.96973 14.0303C4.11038 14.1709 4.30109 14.25 4.5 14.25H6C6.41421 14.25 6.75 14.5858 6.75 15C6.75 15.4142 6.41421 15.75 6 15.75H4.5C3.90326 15.75 3.33114 15.5128 2.90918 15.0908C2.48722 14.6689 2.25 14.0967 2.25 13.5ZM14.25 6V4.5C14.25 4.30109 14.1709 4.11038 14.0303 3.96973C13.8896 3.82907 13.6989 3.75 13.5 3.75H12C11.5858 3.75 11.25 3.41421 11.25 3C11.25 2.58579 11.5858 2.25 12 2.25H13.5C14.0967 2.25 14.6689 2.48722 15.0908 2.90918C15.5128 3.33114 15.75 3.90326 15.75 4.5V6C15.75 6.41421 15.4142 6.75 15 6.75C14.5858 6.75 14.25 6.41421 14.25 6Z", fill: "currentColor" })), Ur = ({
1200
+ children: e,
1201
+ open: t,
1202
+ readonly: n,
1203
+ selectedValue: a,
1204
+ valueCssClasses: s,
1205
+ inputCssClasses: o,
1206
+ onOpen: l,
1207
+ elementId: u,
1208
+ errorText: d,
1209
+ emptyValueText: c
1210
+ }) => {
1211
+ const m = Array.isArray(a) && a.length > 0, f = typeof a == "string" && !!a.trim(), x = m || f ? a : c, h = n ? void 0 : l;
1212
+ return /* @__PURE__ */ p(_, { children: [
1213
+ m ? /* @__PURE__ */ r("div", { className: "w-full", onClick: h, children: /* @__PURE__ */ p(
1214
+ "div",
1215
+ {
1216
+ className: i(
1217
+ "dial-input px-3 py-2 flex flex-row items-center w-full justify-between",
1218
+ n && "dial-input-disable"
1219
+ ),
1220
+ children: [
1221
+ /* @__PURE__ */ r(se, { selectedItems: x }),
1222
+ !n && /* @__PURE__ */ r("div", { className: "ml-1", children: /* @__PURE__ */ r(
1223
+ N,
1224
+ {
1225
+ icon: /* @__PURE__ */ r(
1226
+ U,
1227
+ {
1228
+ role: "img",
1229
+ width: R,
1230
+ height: R
1231
+ }
1232
+ )
1233
+ }
1234
+ ) })
1235
+ ]
1236
+ }
1237
+ ) }) : /* @__PURE__ */ p(_, { children: [
1238
+ /* @__PURE__ */ r(
1239
+ "button",
1240
+ {
1241
+ type: "button",
1242
+ className: "w-full",
1243
+ onClick: h,
1244
+ "aria-label": "open-popup",
1245
+ id: u,
1246
+ children: /* @__PURE__ */ p(
1247
+ "div",
1248
+ {
1249
+ className: i(
1250
+ "dial-input px-3 py-2 dial-input-field flex flex-row items-center w-full justify-between",
1251
+ o,
1252
+ n && "dial-input-disable",
1253
+ d && "dial-input-error"
1254
+ ),
1255
+ children: [
1256
+ /* @__PURE__ */ r(S, { tooltip: String(x), children: /* @__PURE__ */ r("span", { className: s, children: x }) }),
1257
+ !n && /* @__PURE__ */ r("div", { className: "flex-shrink-0", children: /* @__PURE__ */ r(
1258
+ N,
1259
+ {
1260
+ icon: /* @__PURE__ */ r(
1261
+ U,
1262
+ {
1263
+ role: "img",
1264
+ width: R,
1265
+ height: R
1266
+ }
1267
+ )
1268
+ }
1269
+ ) })
1270
+ ]
1271
+ }
1272
+ )
1273
+ }
1274
+ ),
1275
+ d && /* @__PURE__ */ r(z, { errorText: d })
1276
+ ] }),
1277
+ t && We(e, document.body)
1278
+ ] });
1279
+ }, Gr = ({
1199
1280
  placeholder: e = "",
1200
1281
  selectedItems: t = [],
1201
1282
  updateSelected: n,
@@ -1204,18 +1285,18 @@ const kr = {
1204
1285
  containerCssClass: o,
1205
1286
  inputCssClass: l
1206
1287
  }) => {
1207
- const [u, d] = S(""), c = D(
1288
+ const [u, d] = T(""), c = I(
1208
1289
  (f) => {
1209
1290
  f.key === "Enter" && (n([...t, f.currentTarget.value]), d("")), (f.key === "Backspace" || f.key === "Delete") && t.length && !u && n(t.slice(0, -1));
1210
1291
  },
1211
1292
  [t, n, u]
1212
- ), p = D(
1293
+ ), m = I(
1213
1294
  (f) => {
1214
1295
  d(f.target.value);
1215
1296
  },
1216
1297
  [d]
1217
1298
  );
1218
- return /* @__PURE__ */ m(
1299
+ return /* @__PURE__ */ p(
1219
1300
  "div",
1220
1301
  {
1221
1302
  className: i([
@@ -1224,7 +1305,7 @@ const kr = {
1224
1305
  ]),
1225
1306
  children: [
1226
1307
  /* @__PURE__ */ r(
1227
- Dr,
1308
+ se,
1228
1309
  {
1229
1310
  selectedItems: t,
1230
1311
  listCssClass: a,
@@ -1239,7 +1320,7 @@ const kr = {
1239
1320
  className: i(["border-0 bg-transparent p-0", l]),
1240
1321
  placeholder: t?.length ? "" : e,
1241
1322
  onKeyDown: c,
1242
- onChange: p
1323
+ onChange: m
1243
1324
  }
1244
1325
  )
1245
1326
  ]
@@ -1247,39 +1328,40 @@ const kr = {
1247
1328
  );
1248
1329
  };
1249
1330
  export {
1250
- R as AlertVariant,
1251
- v as ButtonVariant,
1252
- B as ConfirmationPopupVariant,
1253
- Tr as DialAlert,
1254
- Kr as DialAutocompleteInput,
1255
- Dr as DialAutocompleteInputValue,
1256
- P as DialButton,
1257
- Fr as DialCheckbox,
1258
- or as DialCloseButton,
1259
- Mr as DialCollapsibleSidebar,
1260
- _r as DialConfirmationPopup,
1261
- H as DialErrorText,
1262
- V as DialFieldLabel,
1263
- I as DialIcon,
1264
- W as DialInput,
1331
+ E as AlertVariant,
1332
+ w as ButtonVariant,
1333
+ W as ConfirmationPopupVariant,
1334
+ Mr as DialAlert,
1335
+ Gr as DialAutocompleteInput,
1336
+ se as DialAutocompleteInputValue,
1337
+ V as DialButton,
1338
+ jr as DialCheckbox,
1339
+ cr as DialCloseButton,
1340
+ Or as DialCollapsibleSidebar,
1341
+ Zr as DialConfirmationPopup,
1342
+ z as DialErrorText,
1343
+ H as DialFieldLabel,
1344
+ N as DialIcon,
1345
+ O as DialInput,
1346
+ Ur as DialInputModal,
1265
1347
  Wr as DialLabelledText,
1266
- $e as DialLoader,
1348
+ Ue as DialLoader,
1267
1349
  Ar as DialNoDataContent,
1268
1350
  Br as DialNumberInputField,
1269
- Nr as DialPasswordInput,
1270
- Hr as DialPasswordInputField,
1271
- gr as DialPopup,
1272
- er as DialRadioButton,
1351
+ Dr as DialPasswordInput,
1352
+ $r as DialPasswordInputField,
1353
+ yr as DialPopup,
1354
+ nr as DialRadioButton,
1273
1355
  Pr as DialRadioGroup,
1274
- $r as DialSearch,
1275
- jr as DialSteps,
1276
- zr as DialSwitch,
1277
- Vr as DialTextAreaField,
1278
- Or as DialTextInputField,
1279
- lr as DialTextarea,
1280
- F as DialTooltip,
1281
- E as PopupSize,
1282
- z as RadioGroupOrientation,
1283
- O as SearchSize,
1284
- C as StepStatus
1356
+ Kr as DialSearch,
1357
+ Vr as DialSteps,
1358
+ _r as DialSwitch,
1359
+ Hr as DialTextAreaField,
1360
+ zr as DialTextInputField,
1361
+ dr as DialTextarea,
1362
+ S as DialTooltip,
1363
+ F as PopupSize,
1364
+ Z as RadioGroupOrientation,
1365
+ B as SearchSize,
1366
+ b as StepStatus
1285
1367
  };