@epam/ai-dial-ui-kit 0.15.0-dev.6 → 0.15.0-dev.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/README.md +140 -0
  2. package/dist/CHANGELOG.md +12 -0
  3. package/dist/{DateCellRenderer-BVM-Q8yx.cjs → DateCellRenderer-Bu40QyHE.cjs} +26 -26
  4. package/dist/DateCellRenderer-C3e61i75.cjs +1 -0
  5. package/dist/components/Dropdown/Dropdown.js +70 -65
  6. package/dist/components/Dropdown/DropdownSubMenuItem.js +63 -55
  7. package/dist/components/Dropdown/constants.js +14 -12
  8. package/dist/components/DropdownIcon/DropdownIcon.js +43 -32
  9. package/dist/components/New/Accordion/Accordion.js +39 -37
  10. package/dist/components/New/ButtonDropdown/ButtonDropdown.js +7 -6
  11. package/dist/components/New/Calendar/Calendar.js +253 -222
  12. package/dist/components/New/CaptionText/CaptionText.js +18 -15
  13. package/dist/components/New/CardShell/CardShell.js +4 -2
  14. package/dist/components/New/Checkbox/Checkbox.js +67 -56
  15. package/dist/components/New/Checkbox/CheckboxBox.js +4 -2
  16. package/dist/components/New/CloseButton/CloseButton.js +18 -16
  17. package/dist/components/New/CollapsibleSidebar/CollapsibleSidebar.js +39 -34
  18. package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +44 -39
  19. package/dist/components/New/Dropdown/Dropdown.js +101 -95
  20. package/dist/components/New/EllipsisTooltip/EllipsisTooltip.js +19 -17
  21. package/dist/components/New/FileDropzone/FileDropzone.js +27 -25
  22. package/dist/components/New/FilterChips/FilterChips.js +43 -0
  23. package/dist/components/New/FilterChips/constants.js +5 -0
  24. package/dist/components/New/FolderPath/FolderPath.js +29 -28
  25. package/dist/components/New/Highlight/Highlight.js +23 -30
  26. package/dist/components/New/InfoButton/InfoButton.js +12 -10
  27. package/dist/components/New/InlineSelect/InlineSelect.js +43 -41
  28. package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +40 -38
  29. package/dist/components/New/Label/Label.js +13 -8
  30. package/dist/components/New/MenuItem/MenuItem.js +29 -27
  31. package/dist/components/New/MenuItem/constants.js +9 -8
  32. package/dist/components/New/NoDataContent/NoDataContent.js +20 -18
  33. package/dist/components/New/Notification/Notification.js +18 -16
  34. package/dist/components/New/NumberInput/NumberInput.js +42 -33
  35. package/dist/components/New/PasswordInput/PasswordInput.js +41 -35
  36. package/dist/components/New/Popup/Popup.js +45 -43
  37. package/dist/components/New/Radio/Radio.js +75 -64
  38. package/dist/components/New/RadioGroup/RadioGroup.js +76 -65
  39. package/dist/components/New/RadioGroupPopupField/RadioGroupPopupField.js +117 -106
  40. package/dist/components/New/ResizableContainer/ResizableContainer.js +42 -40
  41. package/dist/components/New/Search/Search.js +28 -26
  42. package/dist/components/New/SegmentedControl/SegmentedControl.js +29 -23
  43. package/dist/components/New/Select/Select.js +120 -109
  44. package/dist/components/New/Switch/Switch.js +69 -58
  45. package/dist/components/New/Tabs/Tabs.js +28 -22
  46. package/dist/components/New/Tag/Tag.js +42 -40
  47. package/dist/components/New/TagInput/TagInput.js +44 -42
  48. package/dist/components/New/ToggleIconButton/ToggleIconButton.js +25 -23
  49. package/dist/components/New/Tooltip/TooltipContent.js +10 -8
  50. package/dist/components/ProgressBar/ProgressBar.js +45 -31
  51. package/dist/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.js +46 -31
  52. package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +223 -135
  53. package/dist/components/SchemaRenderer/types.js +19 -8
  54. package/dist/components/SchemaRenderer/utils.js +121 -96
  55. package/dist/components/Skeleton/Skeleton.js +25 -19
  56. package/dist/components/Spinner/Spinner.js +6 -4
  57. package/dist/components-manifest.json +85 -2
  58. package/dist/constants/public-class-names.js +157 -0
  59. package/dist/dial-ui-kit.cjs +2 -2
  60. package/dist/dial-ui-kit.js +214 -210
  61. package/dist/file-manager.cjs +1 -1
  62. package/dist/grid.cjs +1 -1
  63. package/dist/index.css +1 -1
  64. package/dist/src/components/New/FilterChips/FilterChips.d.ts +69 -0
  65. package/dist/src/components/New/FilterChips/constants.d.ts +13 -0
  66. package/dist/src/components/SchemaRenderer/types.d.ts +11 -0
  67. package/dist/src/components/SchemaRenderer/utils.d.ts +5 -1
  68. package/dist/src/constants/public-class-names.d.ts +148 -0
  69. package/dist/src/index.d.ts +3 -0
  70. package/dist/use-file-manager-tabs-9DWkp9IJ.cjs +3 -0
  71. package/package.json +1 -1
  72. package/dist/DateCellRenderer-ssp7eaZY.cjs +0 -1
  73. package/dist/use-file-manager-tabs-DjdR_mYM.cjs +0 -3
@@ -3,88 +3,99 @@ import { useId as h, useCallback as y } from "react";
3
3
  import { ElementSize as N } from "../../../types/size.js";
4
4
  import { mergeClasses as r } from "../../../utils/merge-classes.js";
5
5
  import { resolveAccessibleName as v } from "../../../utils/accessible-name.js";
6
- import { Label as k } from "../Label/Label.js";
7
- const A = ({
6
+ import { Label as I } from "../Label/Label.js";
7
+ import { DIAL_KIT_CLASS as k } from "../../../constants/public-class-names.js";
8
+ const F = ({
8
9
  id: p,
9
10
  name: u,
10
- value: l,
11
+ value: i,
11
12
  labelProps: o,
12
- isSelected: i = !1,
13
+ isSelected: l = !1,
13
14
  disabled: t,
14
15
  onChange: s,
15
16
  caption: c,
16
- className: b,
17
+ className: f,
17
18
  ...n
18
19
  }) => {
19
- const f = h(), a = p ?? f, d = c ? `${a}-caption` : void 0, g = y(
20
+ const b = h(), a = p ?? b, d = c ? `${a}-caption` : void 0, g = y(
20
21
  (x) => {
21
- x.target.checked && s?.(l);
22
+ x.target.checked && s?.(i);
22
23
  },
23
- [s, l]
24
+ [s, i]
24
25
  );
25
26
  return /* @__PURE__ */ m("div", { className: "flex flex-col gap-1", children: [
26
- /* @__PURE__ */ m("div", { className: r("flex items-center gap-2 ", b), children: [
27
- /* @__PURE__ */ e(
28
- "input",
29
- {
30
- ...n,
31
- type: "radio",
32
- id: a,
33
- name: u,
34
- value: l,
35
- checked: i,
36
- disabled: t,
37
- onChange: g,
38
- "aria-label": v(
39
- typeof o?.label != "string" ? n["aria-label"] : void 0
27
+ /* @__PURE__ */ m(
28
+ "div",
29
+ {
30
+ className: r(
31
+ k.radio,
32
+ "flex items-center gap-2 ",
33
+ f
34
+ ),
35
+ children: [
36
+ /* @__PURE__ */ e(
37
+ "input",
38
+ {
39
+ ...n,
40
+ type: "radio",
41
+ id: a,
42
+ name: u,
43
+ value: i,
44
+ checked: l,
45
+ disabled: t,
46
+ onChange: g,
47
+ "aria-label": v(
48
+ typeof o?.label != "string" ? n["aria-label"] : void 0
49
+ ),
50
+ "aria-describedby": d,
51
+ className: "peer sr-only"
52
+ }
40
53
  ),
41
- "aria-describedby": d,
42
- className: "peer sr-only"
43
- }
44
- ),
45
- /* @__PURE__ */ e(
46
- "label",
47
- {
48
- htmlFor: a,
49
- className: r(
50
- "group grid size-[20px] shrink-0 place-items-center rounded-full border transition-colors duration-200 hover:bg-control-accent-alpha-hover",
51
- // 20px is below the 24x24 minimum target, so grow the pointer target
52
- // without touching the rendered size. The 44px enhanced target would
53
- // overhang by 12px per side and swallow the adjacent label.
54
- "dial-kit-minimum-target",
55
- "peer-focus-visible:outline peer-focus-visible:outline-focus",
56
- t ? "cursor-not-allowed border-default bg-control-disable-primary" : r(
57
- "cursor-pointer",
58
- i ? "border border-accent bg-control-neutral" : "border-default bg-control-neutral"
59
- )
54
+ /* @__PURE__ */ e(
55
+ "label",
56
+ {
57
+ htmlFor: a,
58
+ className: r(
59
+ "group grid size-[20px] shrink-0 place-items-center rounded-full border transition-colors duration-200 hover:bg-control-accent-alpha-hover",
60
+ // 20px is below the 24x24 minimum target, so grow the pointer target
61
+ // without touching the rendered size. The 44px enhanced target would
62
+ // overhang by 12px per side and swallow the adjacent label.
63
+ "dial-kit-minimum-target",
64
+ "peer-focus-visible:outline peer-focus-visible:outline-focus",
65
+ t ? "cursor-not-allowed border-default bg-control-disable-primary" : r(
66
+ "cursor-pointer",
67
+ l ? "border border-accent bg-control-neutral" : "border-default bg-control-neutral"
68
+ )
69
+ ),
70
+ children: l && /* @__PURE__ */ e(
71
+ "span",
72
+ {
73
+ className: r(
74
+ "size-3 rounded-full",
75
+ t ? "bg-control-disable-secondary" : "bg-control-accent"
76
+ )
77
+ }
78
+ )
79
+ }
60
80
  ),
61
- children: i && /* @__PURE__ */ e(
62
- "span",
81
+ o && /* @__PURE__ */ e(
82
+ I,
63
83
  {
84
+ size: N.Standard,
85
+ ...o,
86
+ htmlFor: a,
64
87
  className: r(
65
- "size-3 rounded-full",
66
- t ? "bg-control-disable-secondary" : "bg-control-accent"
88
+ // `Label` defaults to the secondary colour; a radio's own label is
89
+ // primary while the control is usable.
90
+ "py-[1px]",
91
+ t ? "cursor-not-allowed text-control-disable-primary" : "cursor-pointer text-primary",
92
+ o.className
67
93
  )
68
94
  }
69
95
  )
70
- }
71
- ),
72
- o && /* @__PURE__ */ e(
73
- k,
74
- {
75
- size: N.Standard,
76
- ...o,
77
- htmlFor: a,
78
- className: r(
79
- // `Label` defaults to the secondary colour; a radio's own label is
80
- // primary while the control is usable.
81
- "py-[1px]",
82
- t ? "cursor-not-allowed text-control-disable-primary" : "cursor-pointer text-primary",
83
- o.className
84
- )
85
- }
86
- )
87
- ] }),
96
+ ]
97
+ }
98
+ ),
88
99
  c && /* @__PURE__ */ e(
89
100
  "span",
90
101
  {
@@ -96,5 +107,5 @@ const A = ({
96
107
  ] });
97
108
  };
98
109
  export {
99
- A as Radio
110
+ F as Radio
100
111
  };
@@ -1,19 +1,20 @@
1
- import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
- import { useId as T } from "react";
3
- import { ErrorText as y, CaptionText as G } from "../CaptionText/CaptionText.js";
4
- import { Label as w } from "../Label/Label.js";
5
- import { Radio as A } from "../Radio/Radio.js";
6
- import { RadioGroupOrientation as E } from "../../../types/radio-group.js";
1
+ import { jsxs as b, jsx as o } from "react/jsx-runtime";
2
+ import { useId as B } from "react";
3
+ import { ErrorText as G, CaptionText as L } from "../CaptionText/CaptionText.js";
4
+ import { Label as R } from "../Label/Label.js";
5
+ import { Radio as S } from "../Radio/Radio.js";
6
+ import { RadioGroupOrientation as y } from "../../../types/radio-group.js";
7
7
  import { mergeClasses as i } from "../../../utils/merge-classes.js";
8
- import { resolveAccessibleName as v } from "../../../utils/accessible-name.js";
9
- import { selectedContentClassName as L, orientationClassMap as M, optionsWrapperBaseClassName as O, groupBaseClassName as S } from "./constants.js";
10
- const Q = ({
11
- items: u,
8
+ import { resolveAccessibleName as u } from "../../../utils/accessible-name.js";
9
+ import { selectedContentClassName as _, orientationClassMap as w, optionsWrapperBaseClassName as D, groupBaseClassName as E } from "./constants.js";
10
+ import { DIAL_KIT_CLASS as K } from "../../../constants/public-class-names.js";
11
+ const U = ({
12
+ items: v,
12
13
  value: f,
13
14
  onChange: x,
14
- name: N,
15
- id: C,
16
- orientation: I = E.Column,
15
+ name: C,
16
+ id: N,
17
+ orientation: I = y.Column,
17
18
  labelProps: r,
18
19
  disabled: s,
19
20
  error: l,
@@ -21,61 +22,71 @@ const Q = ({
21
22
  ariaLabel: g,
22
23
  className: $,
23
24
  optionsClassName: h,
24
- radioClassName: j,
25
- contentClassName: B
25
+ radioClassName: T,
26
+ contentClassName: j
26
27
  }) => {
27
- const R = T(), o = C ?? R, n = `${o}-label`, t = l ? `${o}-error` : void 0, c = !l && d ? `${o}-caption` : void 0, p = v(r?.label);
28
- return /* @__PURE__ */ b("div", { className: i(S, $), children: [
29
- r && /* @__PURE__ */ e(w, { ...r, id: n }),
30
- /* @__PURE__ */ e(
31
- "div",
32
- {
33
- role: "radiogroup",
34
- "aria-labelledby": p ? n : void 0,
35
- "aria-label": p ? void 0 : v(g),
36
- "aria-describedby": [t, c].filter(Boolean).join(" ") || void 0,
37
- "aria-disabled": s || void 0,
38
- className: i(
39
- O,
40
- M[I],
41
- h
42
- ),
43
- children: u.map((a) => {
44
- const m = a.value === f;
45
- return /* @__PURE__ */ b("div", { className: "flex min-w-0 flex-col", children: [
46
- /* @__PURE__ */ e(
47
- A,
48
- {
49
- id: `${o}-${a.value}`,
50
- name: N ?? o,
51
- value: a.value,
52
- labelProps: a.label == null ? void 0 : { label: a.label },
53
- "aria-label": a["aria-label"],
54
- caption: a.caption,
55
- isSelected: m,
56
- disabled: s || a.disabled,
57
- onChange: x,
58
- className: j
59
- }
28
+ const A = B(), e = N ?? A, n = `${e}-label`, t = l ? `${e}-error` : void 0, c = !l && d ? `${e}-caption` : void 0, p = u(r?.label);
29
+ return /* @__PURE__ */ b(
30
+ "div",
31
+ {
32
+ className: i(
33
+ K.radioGroup,
34
+ E,
35
+ $
36
+ ),
37
+ children: [
38
+ r && /* @__PURE__ */ o(R, { ...r, id: n }),
39
+ /* @__PURE__ */ o(
40
+ "div",
41
+ {
42
+ role: "radiogroup",
43
+ "aria-labelledby": p ? n : void 0,
44
+ "aria-label": p ? void 0 : u(g),
45
+ "aria-describedby": [t, c].filter(Boolean).join(" ") || void 0,
46
+ "aria-disabled": s || void 0,
47
+ className: i(
48
+ D,
49
+ w[I],
50
+ h
60
51
  ),
61
- m && a.content ? /* @__PURE__ */ e(
62
- "div",
63
- {
64
- className: i(
65
- L,
66
- B
52
+ children: v.map((a) => {
53
+ const m = a.value === f;
54
+ return /* @__PURE__ */ b("div", { className: "flex min-w-0 flex-col", children: [
55
+ /* @__PURE__ */ o(
56
+ S,
57
+ {
58
+ id: `${e}-${a.value}`,
59
+ name: C ?? e,
60
+ value: a.value,
61
+ labelProps: a.label == null ? void 0 : { label: a.label },
62
+ "aria-label": a["aria-label"],
63
+ caption: a.caption,
64
+ isSelected: m,
65
+ disabled: s || a.disabled,
66
+ onChange: x,
67
+ className: T
68
+ }
67
69
  ),
68
- children: a.content
69
- }
70
- ) : null
71
- ] }, a.value);
72
- })
73
- }
74
- ),
75
- /* @__PURE__ */ e(y, { id: t, text: l }),
76
- !l && /* @__PURE__ */ e(G, { id: c, text: d })
77
- ] });
70
+ m && a.content ? /* @__PURE__ */ o(
71
+ "div",
72
+ {
73
+ className: i(
74
+ _,
75
+ j
76
+ ),
77
+ children: a.content
78
+ }
79
+ ) : null
80
+ ] }, a.value);
81
+ })
82
+ }
83
+ ),
84
+ /* @__PURE__ */ o(G, { id: t, text: l }),
85
+ !l && /* @__PURE__ */ o(L, { id: c, text: d })
86
+ ]
87
+ }
88
+ );
78
89
  };
79
90
  export {
80
- Q as RadioGroup
91
+ U as RadioGroup
81
92
  };
@@ -1,138 +1,149 @@
1
- import { jsxs as c, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as p, jsx as o } from "react/jsx-runtime";
2
2
  import { IconMaximize as oo } from "@tabler/icons-react";
3
- import { useId as eo, useState as j, useCallback as l } from "react";
4
- import { NeutralButton as ao, PrimaryButton as lo } from "../Button/ButtonWrappers.js";
5
- import { ErrorText as to, CaptionText as io } from "../CaptionText/CaptionText.js";
3
+ import { useId as eo, useState as S, useCallback as i } from "react";
4
+ import { NeutralButton as ao, PrimaryButton as io } from "../Button/ButtonWrappers.js";
5
+ import { ErrorText as lo, CaptionText as to } from "../CaptionText/CaptionText.js";
6
6
  import { Label as ro } from "../Label/Label.js";
7
7
  import { Popup as so } from "../Popup/Popup.js";
8
8
  import { RadioGroup as no } from "../RadioGroup/RadioGroup.js";
9
- import { DIAL_KIT_ICON_STROKE as co } from "../constants/icon.js";
10
- import { DIAL_ICON_SIZE as po } from "../../../constants/icon.js";
9
+ import { DIAL_KIT_ICON_STROKE as po } from "../constants/icon.js";
10
+ import { DIAL_ICON_SIZE as co } from "../../../constants/icon.js";
11
11
  import { PopupSize as mo } from "../../../types/popup.js";
12
12
  import { RadioGroupOrientation as fo } from "../../../types/radio-group.js";
13
- import { mergeClasses as z } from "../../../utils/merge-classes.js";
14
- import { resolveAccessibleName as N } from "../../../utils/accessible-name.js";
15
- import { fieldPlaceholderClassName as uo, fieldValueClassName as No, fieldIconClassName as bo, fieldBaseClassName as Io, popupBodyClassName as Co, popupFooterClassName as xo, defaultCancelLabel as ho, defaultApplyLabel as vo } from "./constants.js";
16
- const Eo = ({
17
- items: b,
18
- value: t,
19
- customValue: A,
20
- header: I,
13
+ import { mergeClasses as F } from "../../../utils/merge-classes.js";
14
+ import { resolveAccessibleName as I } from "../../../utils/accessible-name.js";
15
+ import { fieldPlaceholderClassName as uo, fieldValueClassName as Io, fieldIconClassName as No, fieldBaseClassName as bo, popupBodyClassName as Co, popupFooterClassName as xo, defaultCancelLabel as ho, defaultApplyLabel as vo } from "./constants.js";
16
+ import { DIAL_KIT_CLASS as Lo } from "../../../constants/public-class-names.js";
17
+ const zo = ({
18
+ items: N,
19
+ value: l,
20
+ customValue: G,
21
+ header: b,
21
22
  onApply: C,
22
- id: E,
23
- labelProps: p,
24
- placeholder: F,
23
+ id: R,
24
+ labelProps: c,
25
+ placeholder: j,
25
26
  selectedValue: x,
26
27
  onSelectionChange: h,
27
28
  onCancel: v,
28
29
  onClose: L,
29
- isValid: G = !0,
30
- applyButtonLabel: M = vo,
31
- cancelButtonLabel: S = ho,
32
- size: K = mo.Md,
30
+ isValid: z = !0,
31
+ applyButtonLabel: E = vo,
32
+ cancelButtonLabel: K = ho,
33
+ size: M = mo.Md,
33
34
  portalId: w,
34
- disabled: i,
35
+ disabled: t,
35
36
  invalid: U,
36
37
  error: r,
37
- caption: $,
38
+ caption: D,
38
39
  ariaLabel: V,
39
40
  className: Z,
40
41
  fieldClassName: q
41
42
  }) => {
42
- const H = eo(), e = E ?? H, k = `${e}-label`, y = `${e}-value`, D = r ? `${e}-error` : void 0, O = !r && $ ? `${e}-caption` : void 0, [T, g] = j(!1), a = x !== void 0, [J, B] = j(t), m = a ? x : J, Q = l(() => {
43
- i || (a || B(t), g(!0));
44
- }, [i, a, t]), s = l(() => {
45
- g(!1), L?.();
46
- }, [L]), P = l(() => {
43
+ const H = eo(), e = R ?? H, $ = `${e}-label`, k = `${e}-value`, y = r ? `${e}-error` : void 0, T = !r && D ? `${e}-caption` : void 0, [_, O] = S(!1), a = x !== void 0, [J, P] = S(l), m = a ? x : J, Q = i(() => {
44
+ t || (a || P(l), O(!0));
45
+ }, [t, a, l]), s = i(() => {
46
+ O(!1), L?.();
47
+ }, [L]), g = i(() => {
47
48
  v?.(), s();
48
- }, [v, s]), W = l(() => {
49
+ }, [v, s]), W = i(() => {
49
50
  C(m), s();
50
- }, [C, m, s]), X = l(
51
+ }, [C, m, s]), X = i(
51
52
  (d) => {
52
- a || B(d), h?.(d);
53
+ a || P(d), h?.(d);
53
54
  },
54
55
  [a, h]
55
- ), n = N(p?.label), f = n ? void 0 : N(V), u = n ? k : f && `${e}-name`, _ = N(I), Y = b.find((d) => d.value === t)?.label, R = A ?? Y;
56
- return /* @__PURE__ */ c("div", { className: z("flex w-full flex-col gap-2", Z), children: [
57
- p && /* @__PURE__ */ o(ro, { ...p, id: k, htmlFor: e }),
58
- /* @__PURE__ */ c("div", { className: "flex flex-col gap-1", children: [
59
- f && /* @__PURE__ */ o("span", { id: u, className: "sr-only", children: f }),
60
- /* @__PURE__ */ c(
61
- "button",
62
- {
63
- type: "button",
64
- id: e,
65
- disabled: i,
66
- "aria-haspopup": "dialog",
67
- "aria-expanded": T,
68
- "aria-labelledby": u ? `${u} ${y}` : void 0,
69
- "aria-describedby": [D, O].filter(Boolean).join(" ") || void 0,
70
- onClick: Q,
71
- className: z(
72
- Io,
73
- U && "dial-kit-input-error",
74
- i && "dial-kit-input-disable",
75
- q
76
- ),
77
- children: [
78
- /* @__PURE__ */ o(
79
- "span",
80
- {
81
- id: y,
82
- className: R == null ? uo : No,
83
- children: R ?? F
84
- }
85
- ),
86
- /* @__PURE__ */ o(
87
- oo,
88
- {
89
- size: po.MD,
90
- stroke: co,
91
- "aria-hidden": "true",
92
- className: bo
93
- }
94
- )
95
- ]
96
- }
56
+ ), n = I(c?.label), f = n ? void 0 : I(V), u = n ? $ : f && `${e}-name`, A = I(b), Y = N.find((d) => d.value === l)?.label, B = G ?? Y;
57
+ return /* @__PURE__ */ p(
58
+ "div",
59
+ {
60
+ className: F(
61
+ Lo.radioGroupPopupField,
62
+ "flex w-full flex-col gap-2",
63
+ Z
97
64
  ),
98
- /* @__PURE__ */ o(to, { id: D, text: r }),
99
- !r && /* @__PURE__ */ o(io, { id: O, text: $ })
100
- ] }),
101
- /* @__PURE__ */ o(
102
- so,
103
- {
104
- open: T,
105
- header: I,
106
- ariaLabel: _ ? void 0 : n,
107
- portalId: w,
108
- size: K,
109
- onClose: P,
110
- footer: /* @__PURE__ */ c("div", { className: xo, children: [
111
- /* @__PURE__ */ o(ao, { label: S, onClick: P }),
112
- /* @__PURE__ */ o(
113
- lo,
65
+ children: [
66
+ c && /* @__PURE__ */ o(ro, { ...c, id: $, htmlFor: e }),
67
+ /* @__PURE__ */ p("div", { className: "flex flex-col gap-1", children: [
68
+ f && /* @__PURE__ */ o("span", { id: u, className: "sr-only", children: f }),
69
+ /* @__PURE__ */ p(
70
+ "button",
114
71
  {
115
- label: M,
116
- disabled: !G,
117
- onClick: W
72
+ type: "button",
73
+ id: e,
74
+ disabled: t,
75
+ "aria-haspopup": "dialog",
76
+ "aria-expanded": _,
77
+ "aria-labelledby": u ? `${u} ${k}` : void 0,
78
+ "aria-describedby": [y, T].filter(Boolean).join(" ") || void 0,
79
+ onClick: Q,
80
+ className: F(
81
+ bo,
82
+ U && "dial-kit-input-error",
83
+ t && "dial-kit-input-disable",
84
+ q
85
+ ),
86
+ children: [
87
+ /* @__PURE__ */ o(
88
+ "span",
89
+ {
90
+ id: k,
91
+ className: B == null ? uo : Io,
92
+ children: B ?? j
93
+ }
94
+ ),
95
+ /* @__PURE__ */ o(
96
+ oo,
97
+ {
98
+ size: co.MD,
99
+ stroke: po,
100
+ "aria-hidden": "true",
101
+ className: No
102
+ }
103
+ )
104
+ ]
118
105
  }
119
- )
106
+ ),
107
+ /* @__PURE__ */ o(lo, { id: y, text: r }),
108
+ !r && /* @__PURE__ */ o(to, { id: T, text: D })
120
109
  ] }),
121
- children: /* @__PURE__ */ o("div", { className: Co, children: /* @__PURE__ */ o(
122
- no,
110
+ /* @__PURE__ */ o(
111
+ so,
123
112
  {
124
- id: `${e}-options`,
125
- items: b,
126
- value: m,
127
- onChange: X,
128
- orientation: fo.Column,
129
- ariaLabel: n ?? _
113
+ open: _,
114
+ header: b,
115
+ ariaLabel: A ? void 0 : n,
116
+ portalId: w,
117
+ size: M,
118
+ onClose: g,
119
+ footer: /* @__PURE__ */ p("div", { className: xo, children: [
120
+ /* @__PURE__ */ o(ao, { label: K, onClick: g }),
121
+ /* @__PURE__ */ o(
122
+ io,
123
+ {
124
+ label: E,
125
+ disabled: !z,
126
+ onClick: W
127
+ }
128
+ )
129
+ ] }),
130
+ children: /* @__PURE__ */ o("div", { className: Co, children: /* @__PURE__ */ o(
131
+ no,
132
+ {
133
+ id: `${e}-options`,
134
+ items: N,
135
+ value: m,
136
+ onChange: X,
137
+ orientation: fo.Column,
138
+ ariaLabel: n ?? A
139
+ }
140
+ ) })
130
141
  }
131
- ) })
132
- }
133
- )
134
- ] });
142
+ )
143
+ ]
144
+ }
145
+ );
135
146
  };
136
147
  export {
137
- Eo as RadioGroupPopupField
148
+ zo as RadioGroupPopupField
138
149
  };