@epam/ai-dial-ui-kit 0.15.0-dev.3 → 0.15.0-dev.30

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 (168) hide show
  1. package/README.md +185 -0
  2. package/dist/CHANGELOG.md +48 -0
  3. package/dist/{DateCellRenderer-BVM-Q8yx.cjs → DateCellRenderer-BFEh4rXZ.cjs} +26 -26
  4. package/dist/DateCellRenderer-J1V3xwF7.cjs +1 -0
  5. package/dist/IconButton-DHOFapLo.cjs +1 -0
  6. package/dist/{JsonEditor-qv1Z0dLX.cjs → JsonEditor-BDe6elKO.cjs} +1 -1
  7. package/dist/{MarkdownEditor-DHn2pYOJ.cjs → MarkdownEditor-C7BONfsl.cjs} +1 -1
  8. package/dist/{MarkdownEditor-jQ8nDJfx.cjs → MarkdownEditor-FVzYMdkC.cjs} +1 -1
  9. package/dist/{MarkdownEditorContainer-Bzcnoemw.cjs → MarkdownEditorContainer-GvlxX6kx.cjs} +1 -1
  10. package/dist/{Switch-CUKClcEz.cjs → Switch-DE6MrcqJ.cjs} +1 -1
  11. package/dist/components/Button/constants.js +9 -8
  12. package/dist/components/Dropdown/Dropdown.js +70 -65
  13. package/dist/components/Dropdown/DropdownSubMenuItem.js +63 -55
  14. package/dist/components/Dropdown/constants.js +16 -14
  15. package/dist/components/DropdownIcon/DropdownIcon.js +43 -32
  16. package/dist/components/FileManager/FileManager.js +373 -372
  17. package/dist/components/FileManager/FileManagerProvider.js +266 -264
  18. package/dist/components/FileManager/hooks/use-grid-context-menu.js +59 -59
  19. package/dist/components/New/Accordion/Accordion.js +87 -71
  20. package/dist/components/New/Breadcrumbs/Breadcrumbs.js +159 -0
  21. package/dist/components/New/Breadcrumbs/constants.js +41 -0
  22. package/dist/components/New/Button/Button.js +32 -32
  23. package/dist/components/New/Button/ButtonWrappers.js +93 -37
  24. package/dist/components/New/Button/constants.js +3 -0
  25. package/dist/components/New/Button/utils.js +18 -8
  26. package/dist/components/New/ButtonDropdown/ButtonDropdown.js +26 -16
  27. package/dist/components/New/Calendar/Calendar.js +337 -289
  28. package/dist/components/New/Calendar/constants.js +5 -5
  29. package/dist/components/New/CaptionText/CaptionText.js +18 -15
  30. package/dist/components/New/CardShell/CardShell.js +5 -3
  31. package/dist/components/New/Checkbox/Checkbox.js +67 -56
  32. package/dist/components/New/Checkbox/CheckboxBox.js +5 -3
  33. package/dist/components/New/CloseButton/CloseButton.js +18 -16
  34. package/dist/components/New/CollapsibleSidebar/CollapsibleSidebar.js +39 -34
  35. package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +44 -39
  36. package/dist/components/New/Dropdown/Dropdown.js +112 -105
  37. package/dist/components/New/Dropdown/DropdownSubMenuItem.js +17 -17
  38. package/dist/components/New/Dropdown/constants.js +22 -17
  39. package/dist/components/New/EllipsisTooltip/EllipsisTooltip.js +20 -18
  40. package/dist/components/New/FileDropzone/FileDropzone.js +27 -25
  41. package/dist/components/New/FileIcon/FileIcon.js +55 -0
  42. package/dist/components/New/FileIcon/constants.js +134 -0
  43. package/dist/components/New/FileIcon/icons/FileGlyph.js +150 -0
  44. package/dist/components/New/FileIcon/icons/FolderGlyph.js +50 -0
  45. package/dist/components/New/FileName/FileName.js +78 -0
  46. package/dist/components/New/FilterChips/FilterChips.js +43 -0
  47. package/dist/components/New/FilterChips/constants.js +5 -0
  48. package/dist/components/New/FolderName/FolderName.js +16 -0
  49. package/dist/components/New/FolderPath/FolderPath.js +29 -28
  50. package/dist/components/New/Highlight/Highlight.js +23 -30
  51. package/dist/components/New/IconButton/IconButton.js +30 -28
  52. package/dist/components/New/InfoButton/InfoButton.js +13 -11
  53. package/dist/components/New/InlineSelect/InlineSelect.js +74 -56
  54. package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +41 -39
  55. package/dist/components/New/InteractiveTooltip/constants.js +2 -2
  56. package/dist/components/New/Label/Label.js +13 -8
  57. package/dist/components/New/MenuItem/MenuItem.js +29 -27
  58. package/dist/components/New/MenuItem/constants.js +9 -8
  59. package/dist/components/New/NoDataContent/NoDataContent.js +21 -19
  60. package/dist/components/New/Notification/Notification.js +33 -29
  61. package/dist/components/New/NumberInput/NumberInput.js +42 -33
  62. package/dist/components/New/PasswordInput/PasswordInput.js +41 -35
  63. package/dist/components/New/Popup/Popup.js +46 -44
  64. package/dist/components/New/Popup/constants.js +3 -3
  65. package/dist/components/New/Radio/Radio.js +75 -64
  66. package/dist/components/New/RadioGroup/RadioGroup.js +76 -65
  67. package/dist/components/New/RadioGroupPopupField/RadioGroupPopupField.js +117 -106
  68. package/dist/components/New/ResizableContainer/ResizableContainer.js +42 -40
  69. package/dist/components/New/Search/Search.js +29 -27
  70. package/dist/components/New/SegmentedControl/SegmentedControl.js +29 -23
  71. package/dist/components/New/Select/Select.js +120 -109
  72. package/dist/components/New/Select/constants.js +23 -20
  73. package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +34 -0
  74. package/dist/components/New/Switch/Switch.js +69 -58
  75. package/dist/components/New/Tabs/Tabs.js +125 -61
  76. package/dist/components/New/Tag/Tag.js +42 -40
  77. package/dist/components/New/TagInput/TagInput.js +45 -43
  78. package/dist/components/New/ToggleIconButton/ToggleIconButton.js +26 -24
  79. package/dist/components/New/Tooltip/TooltipContent.js +11 -9
  80. package/dist/components/New/Tooltip/constants.js +1 -1
  81. package/dist/components/New/TransferQueue/TransferQueue.js +124 -0
  82. package/dist/components/New/TransferQueue/TransferQueueHeader.js +71 -0
  83. package/dist/components/New/TransferQueue/TransferQueueRow.js +119 -0
  84. package/dist/components/New/TransferQueue/constants.js +24 -0
  85. package/dist/components/New/constants/overlay.js +15 -9
  86. package/dist/components/Popup/constants.js +8 -8
  87. package/dist/components/ProgressBar/ProgressBar.js +45 -33
  88. package/dist/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.js +46 -31
  89. package/dist/components/SchemaRenderer/components/SchemaField.js +19 -19
  90. package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +18 -18
  91. package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +223 -135
  92. package/dist/components/SchemaRenderer/types.js +19 -8
  93. package/dist/components/SchemaRenderer/utils.js +122 -95
  94. package/dist/components/Skeleton/Skeleton.js +25 -19
  95. package/dist/components/Spinner/Spinner.js +7 -5
  96. package/dist/components/Tooltip/TooltipContent.js +11 -11
  97. package/dist/components-manifest.json +830 -31
  98. package/dist/constants/public-class-names.js +198 -0
  99. package/dist/dial-ui-kit.cjs +2 -2
  100. package/dist/dial-ui-kit.js +330 -302
  101. package/dist/editors.cjs +1 -1
  102. package/dist/file-manager.cjs +1 -1
  103. package/dist/grid.cjs +1 -1
  104. package/dist/index.css +2 -2
  105. package/dist/lazy-BEsZqouS.cjs +1 -0
  106. package/dist/merge-classes-BEJXjzkx.cjs +1 -0
  107. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +419 -399
  108. package/dist/src/components/FileManager/FileManager.d.ts +2 -0
  109. package/dist/src/components/FileManager/FileManagerContext.d.ts +1 -0
  110. package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +2 -1
  111. package/dist/src/components/New/Accordion/Accordion.d.ts +6 -1
  112. package/dist/src/components/New/Breadcrumbs/Breadcrumbs.d.ts +94 -0
  113. package/dist/src/components/New/Breadcrumbs/constants.d.ts +60 -0
  114. package/dist/src/components/New/Button/Button.d.ts +4 -1
  115. package/dist/src/components/New/Button/ButtonWrappers.d.ts +20 -0
  116. package/dist/src/components/New/Button/utils.d.ts +15 -0
  117. package/dist/src/components/New/ButtonDropdown/ButtonDropdown.d.ts +4 -0
  118. package/dist/src/components/New/Calendar/Calendar.d.ts +14 -1
  119. package/dist/src/components/New/Calendar/constants.d.ts +1 -1
  120. package/dist/src/components/New/Dropdown/Dropdown.d.ts +9 -1
  121. package/dist/src/components/New/Dropdown/constants.d.ts +3 -0
  122. package/dist/src/components/New/FileIcon/FileIcon.d.ts +61 -0
  123. package/dist/src/components/New/FileIcon/constants.d.ts +16 -0
  124. package/dist/src/components/New/FileIcon/icons/FileGlyph.d.ts +18 -0
  125. package/dist/src/components/New/FileIcon/icons/FolderGlyph.d.ts +17 -0
  126. package/dist/src/components/New/FileName/FileName.d.ts +79 -0
  127. package/dist/src/components/New/FilterChips/FilterChips.d.ts +69 -0
  128. package/dist/src/components/New/FilterChips/constants.d.ts +13 -0
  129. package/dist/src/components/New/FolderName/FolderName.d.ts +37 -0
  130. package/dist/src/components/New/InlineSelect/InlineSelect.d.ts +16 -1
  131. package/dist/src/components/New/InteractiveTooltip/constants.d.ts +5 -4
  132. package/dist/src/components/New/Notification/Notification.d.ts +18 -0
  133. package/dist/src/components/New/Popup/constants.d.ts +1 -1
  134. package/dist/src/components/New/Select/constants.d.ts +3 -2
  135. package/dist/src/components/New/SharedEntityIndicator/SharedEntityIndicator.d.ts +35 -0
  136. package/dist/src/components/New/Tabs/Tabs.d.ts +54 -6
  137. package/dist/src/components/New/Tooltip/constants.d.ts +5 -3
  138. package/dist/src/components/New/TransferQueue/TransferQueue.d.ts +139 -0
  139. package/dist/src/components/New/TransferQueue/TransferQueueHeader.d.ts +16 -0
  140. package/dist/src/components/New/TransferQueue/TransferQueueRow.d.ts +10 -0
  141. package/dist/src/components/New/TransferQueue/constants.d.ts +6 -0
  142. package/dist/src/components/New/constants/overlay.d.ts +13 -0
  143. package/dist/src/components/Popup/constants.d.ts +1 -1
  144. package/dist/src/components/SchemaRenderer/types.d.ts +11 -0
  145. package/dist/src/components/SchemaRenderer/utils.d.ts +10 -1
  146. package/dist/src/constants/public-class-names.d.ts +189 -0
  147. package/dist/src/index.d.ts +22 -1
  148. package/dist/src/types/accordion.d.ts +7 -0
  149. package/dist/src/types/breadcrumbs.d.ts +9 -0
  150. package/dist/src/types/button.d.ts +1 -0
  151. package/dist/src/types/transfer-queue.d.ts +10 -0
  152. package/dist/src/utils/__tests__/timezone.spec.d.ts +1 -0
  153. package/dist/src/utils/sub-menu-floating.d.ts +7 -4
  154. package/dist/src/utils/timezone.d.ts +24 -0
  155. package/dist/types/accordion.js +4 -0
  156. package/dist/types/breadcrumbs.js +4 -0
  157. package/dist/types/button.js +3 -3
  158. package/dist/types/transfer-queue.js +4 -0
  159. package/dist/use-file-manager-tabs-C0h1Sq5T.cjs +3 -0
  160. package/dist/utils/merge-classes.js +12 -5
  161. package/dist/utils/sub-menu-floating.js +98 -54
  162. package/dist/utils/timezone.js +19 -0
  163. package/package.json +3 -3
  164. package/dist/DateCellRenderer-ssp7eaZY.cjs +0 -1
  165. package/dist/IconButton-DWqoaBWf.cjs +0 -1
  166. package/dist/lazy-tfN4sKhq.cjs +0 -1
  167. package/dist/merge-classes-Dipy1Ih1.cjs +0 -1
  168. package/dist/use-file-manager-tabs-DjdR_mYM.cjs +0 -3
@@ -1,56 +1,57 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
- import { Resizable as A } from "../../../node_modules/re-resizable/lib/index.js";
3
- import { useState as M, useRef as B, useCallback as d, useMemo as D } from "react";
4
- import { ResizableContainerSide as w } from "../../../types/resizable-container.js";
5
- import { mergeClasses as L } from "../../../utils/merge-classes.js";
6
- import { ResizeHandle as T } from "./components/ResizeHandle.js";
7
- const j = 16, q = ({
8
- children: x,
9
- minWidth: n,
2
+ import { Resizable as E } from "../../../node_modules/re-resizable/lib/index.js";
3
+ import { useState as I, useRef as H, useCallback as d, useMemo as T } from "react";
4
+ import { ResizableContainerSide as _ } from "../../../types/resizable-container.js";
5
+ import { mergeClasses as y } from "../../../utils/merge-classes.js";
6
+ import { ResizeHandle as B } from "./components/ResizeHandle.js";
7
+ import { DIAL_KIT_CLASS as K } from "../../../constants/public-class-names.js";
8
+ const j = 16, J = ({
9
+ children: M,
10
+ minWidth: r,
10
11
  maxWidth: s,
11
12
  width: h,
12
- defaultWidth: I,
13
+ defaultWidth: w,
13
14
  onResizeStop: i,
14
15
  onResize: l,
15
- side: a = w.Right,
16
+ side: a = _.Right,
16
17
  keyboardStep: u = j,
17
18
  ariaLabel: g = "Resize panel",
18
- className: _,
19
+ className: x,
19
20
  resizeHandlerClassName: p,
20
21
  resizeHandler: z
21
22
  }) => {
22
- const [m, C] = M(!1), [E, R] = M(I ?? n), r = h !== void 0, o = r ? h : E, f = B(null), b = d(() => {
23
+ const [m, C] = I(!1), [A, R] = I(w ?? r), n = h !== void 0, o = n ? h : A, f = H(null), S = d(() => {
23
24
  C(!0);
24
- }, []), v = d(() => {
25
+ }, []), b = d(() => {
25
26
  C(!1);
26
- const t = f.current?.resizable?.getBoundingClientRect(), e = t ? Math.round(t.width) : n;
27
- r || R(e), i?.(e);
28
- }, [i, r, n]), S = d(
27
+ const t = f.current?.resizable?.getBoundingClientRect(), e = t ? Math.round(t.width) : r;
28
+ n || R(e), i?.(e);
29
+ }, [i, n, r]), v = d(
29
30
  (t) => {
30
- const e = Math.min(s, Math.max(n, t));
31
- e !== o && (r || (R(e), f.current?.updateSize({ width: e, height: "100%" })), l?.(e), i?.(e));
31
+ const e = Math.min(s, Math.max(r, t));
32
+ e !== o && (n || (R(e), f.current?.updateSize({ width: e, height: "100%" })), l?.(e), i?.(e));
32
33
  },
33
- [s, n, o, r, l, i]
34
- ), H = D(() => {
35
- const t = a === w.Left, e = /* @__PURE__ */ c(
36
- T,
34
+ [s, r, o, n, l, i]
35
+ ), L = T(() => {
36
+ const t = a === _.Left, e = /* @__PURE__ */ c(
37
+ B,
37
38
  {
38
39
  side: a,
39
40
  isResizing: m,
40
41
  width: o,
41
- minWidth: n,
42
+ minWidth: r,
42
43
  maxWidth: s,
43
44
  step: u,
44
45
  ariaLabel: g,
45
- onWidthChange: S,
46
+ onWidthChange: v,
46
47
  customHandler: z,
47
48
  handlerClassName: p
48
49
  }
49
50
  );
50
51
  return {
51
- size: r ? { width: o, height: "100%" } : void 0,
52
- defaultSize: r ? void 0 : { width: o, height: "100%" },
53
- minWidth: n,
52
+ size: n ? { width: o, height: "100%" } : void 0,
53
+ defaultSize: n ? void 0 : { width: o, height: "100%" },
54
+ minWidth: r,
54
55
  maxWidth: s,
55
56
  enable: {
56
57
  left: t,
@@ -68,39 +69,40 @@ const j = 16, q = ({
68
69
  left: t ? e : void 0,
69
70
  right: t ? void 0 : e
70
71
  },
71
- onResizeStart: b,
72
- onResize: (k, F, y) => {
73
- l?.(Math.round(y.offsetWidth));
72
+ onResizeStart: S,
73
+ onResize: (k, F, D) => {
74
+ l?.(Math.round(D.offsetWidth));
74
75
  },
75
- onResizeStop: v
76
+ onResizeStop: b
76
77
  };
77
78
  }, [
78
79
  a,
79
- r,
80
- o,
81
80
  n,
81
+ o,
82
+ r,
82
83
  s,
83
84
  u,
84
85
  g,
85
- S,
86
+ v,
86
87
  z,
87
88
  p,
88
89
  m,
90
+ S,
89
91
  b,
90
- v,
91
92
  l
92
93
  ]);
93
- return /* @__PURE__ */ c(A, { ref: f, ...H, children: /* @__PURE__ */ c(
94
+ return /* @__PURE__ */ c(E, { ref: f, ...L, children: /* @__PURE__ */ c(
94
95
  "div",
95
96
  {
96
- className: L(
97
+ className: y(
97
98
  "group flex size-full flex-col bg-layer-raised transition-all motion-reduce:transition-none",
98
- _
99
+ x,
100
+ K.resizableContainer
99
101
  ),
100
- children: x
102
+ children: M
101
103
  }
102
104
  ) });
103
105
  };
104
106
  export {
105
- q as ResizableContainer
107
+ J as ResizableContainer
106
108
  };
@@ -1,18 +1,19 @@
1
- import { jsx as e } from "react/jsx-runtime";
1
+ import { jsx as o } from "react/jsx-runtime";
2
2
  import { IconX as _, IconSearch as h } from "@tabler/icons-react";
3
- import { useRef as R, useCallback as k } from "react";
4
- import { useMergeRefs as E } from "@floating-ui/react";
5
- import { GhostIconButton as M } from "../IconButton/IconButtonWrappers.js";
6
- import { Input as N } from "../Input/Input.js";
3
+ import { useRef as A, useCallback as R } from "react";
4
+ import { useMergeRefs as k } from "@floating-ui/react";
5
+ import { GhostIconButton as D } from "../IconButton/IconButtonWrappers.js";
6
+ import { Input as E } from "../Input/Input.js";
7
7
  import { DIAL_KIT_ICON_STROKE as n } from "../constants/icon.js";
8
- import { DIAL_ICON_SIZE as o } from "../../../constants/icon.js";
8
+ import { DIAL_ICON_SIZE as e } from "../../../constants/icon.js";
9
9
  import { ElementSize as r } from "../../../types/size.js";
10
- import { mergeClasses as A } from "../../../utils/merge-classes.js";
11
- const D = {
12
- [r.Small]: o.SM,
13
- [r.Standard]: o.MD,
14
- [r.Large]: o.MD
15
- }, g = ({
10
+ import { mergeClasses as L } from "../../../utils/merge-classes.js";
11
+ import { DIAL_KIT_CLASS as M } from "../../../constants/public-class-names.js";
12
+ const N = {
13
+ [r.Small]: e.SM,
14
+ [r.Standard]: e.MD,
15
+ [r.Large]: e.MD
16
+ }, v = ({
16
17
  size: s = r.Standard,
17
18
  placeholder: c = "Search...",
18
19
  withoutBorder: f = !1,
@@ -22,43 +23,44 @@ const D = {
22
23
  onChange: t,
23
24
  wrapperClassName: p,
24
25
  inputRef: S,
25
- ...u
26
+ ...I
26
27
  }) => {
27
- const m = R(null), I = E([S, m]), d = !!i && !a, C = k(() => {
28
+ const m = A(null), u = k([S, m]), d = !!i && !a, C = R(() => {
28
29
  t?.(void 0), m.current?.focus();
29
30
  }, [t]);
30
- return /* @__PURE__ */ e(
31
- N,
31
+ return /* @__PURE__ */ o(
32
+ E,
32
33
  {
33
- ...u,
34
+ ...I,
34
35
  size: s,
35
36
  value: i,
36
37
  disabled: a,
37
38
  onChange: t,
38
39
  placeholder: c,
39
- inputRef: I,
40
- wrapperClassName: A(
40
+ inputRef: u,
41
+ wrapperClassName: L(
41
42
  f && "dial-kit-input-borderless",
42
- p
43
+ p,
44
+ M.search
43
45
  ),
44
- iconBefore: /* @__PURE__ */ e(
46
+ iconBefore: /* @__PURE__ */ o(
45
47
  h,
46
48
  {
47
- size: D[s],
49
+ size: N[s],
48
50
  stroke: n,
49
51
  className: "text-secondary",
50
52
  "aria-hidden": "true"
51
53
  }
52
54
  ),
53
- iconAfter: d ? /* @__PURE__ */ e(
54
- M,
55
+ iconAfter: d ? /* @__PURE__ */ o(
56
+ D,
55
57
  {
56
58
  size: r.Small,
57
59
  "aria-label": l,
58
- icon: /* @__PURE__ */ e(
60
+ icon: /* @__PURE__ */ o(
59
61
  _,
60
62
  {
61
- size: o.SM,
63
+ size: e.SM,
62
64
  stroke: n,
63
65
  "aria-hidden": "true"
64
66
  }
@@ -70,5 +72,5 @@ const D = {
70
72
  );
71
73
  };
72
74
  export {
73
- g as Search
75
+ v as Search
74
76
  };
@@ -1,24 +1,25 @@
1
- import { jsx as x, jsxs as C } from "react/jsx-runtime";
2
- import { useRef as I, useCallback as k } from "react";
1
+ import { jsx as v, jsxs as x } from "react/jsx-runtime";
2
+ import { useRef as k, useCallback as A } from "react";
3
3
  import { mergeClasses as u } from "../../../utils/merge-classes.js";
4
- import { resolveAccessibleName as w } from "../../../utils/accessible-name.js";
5
- import { NAVIGATION_KEYS as h, segmentDisabledSelectedClassName as A, segmentDisabledUnselectedClassName as D, segmentSelectedInteractiveClassName as S, segmentUnselectedInteractiveClassName as y, segmentSelectedClassName as U, segmentUnselectedClassName as K, segmentClassName as R, containerClassName as j } from "./constants.js";
4
+ import { resolveAccessibleName as S } from "../../../utils/accessible-name.js";
5
+ import { NAVIGATION_KEYS as w, segmentDisabledSelectedClassName as D, segmentDisabledUnselectedClassName as h, segmentSelectedInteractiveClassName as y, segmentUnselectedInteractiveClassName as K, segmentSelectedClassName as U, segmentUnselectedClassName as L, segmentClassName as R, containerClassName as _ } from "./constants.js";
6
+ import { DIAL_KIT_CLASS as f } from "../../../constants/public-class-names.js";
6
7
  const M = ({
7
8
  items: l,
8
9
  value: r,
9
10
  onChange: c,
10
11
  disabled: o,
11
- className: f,
12
- segmentClassName: g,
13
- "aria-label": N
12
+ className: g,
13
+ segmentClassName: p,
14
+ "aria-label": C
14
15
  }) => {
15
- const m = I({}), d = l.find((e) => e.value === r), p = d && !d.disabled ? d.value : l.find((e) => !e.disabled)?.value, v = k(
16
+ const b = k({}), d = l.find((e) => e.value === r), I = d && !d.disabled ? d.value : l.find((e) => !e.disabled)?.value, N = A(
16
17
  (e) => {
17
- if (o || !h.includes(e.key)) return;
18
- const a = l.filter((b) => !b.disabled);
18
+ if (o || !w.includes(e.key)) return;
19
+ const a = l.filter((m) => !m.disabled);
19
20
  if (a.length === 0) return;
20
21
  const s = Math.max(
21
- a.findIndex((b) => b.value === r),
22
+ a.findIndex((m) => m.value === r),
22
23
  0
23
24
  ), t = a.length - 1;
24
25
  let n = s;
@@ -40,41 +41,46 @@ const M = ({
40
41
  }
41
42
  e.preventDefault();
42
43
  const i = a[n];
43
- m.current[i.value]?.focus(), i.value !== r && c(i.value);
44
+ b.current[i.value]?.focus(), i.value !== r && c(i.value);
44
45
  },
45
46
  [o, l, r, c]
46
47
  );
47
- return /* @__PURE__ */ x(
48
+ return /* @__PURE__ */ v(
48
49
  "div",
49
50
  {
50
51
  role: "radiogroup",
51
- "aria-label": N,
52
+ "aria-label": C,
52
53
  "aria-disabled": o || void 0,
53
- onKeyDown: v,
54
- className: u(j, f),
54
+ onKeyDown: N,
55
+ className: u(
56
+ _,
57
+ g,
58
+ f.segmentedControl
59
+ ),
55
60
  children: l.map((e) => {
56
61
  const a = e.value === r, s = o || e.disabled;
57
- return /* @__PURE__ */ C(
62
+ return /* @__PURE__ */ x(
58
63
  "button",
59
64
  {
60
65
  ref: (t) => {
61
- m.current[e.value] = t;
66
+ b.current[e.value] = t;
62
67
  },
63
68
  type: "button",
64
69
  role: "radio",
65
70
  "aria-checked": a,
66
- "aria-label": w(
71
+ "aria-label": S(
67
72
  e["aria-label"],
68
73
  typeof e.label == "string" ? e.label : void 0
69
74
  ),
70
- tabIndex: e.value === p ? 0 : -1,
75
+ tabIndex: e.value === I ? 0 : -1,
71
76
  disabled: s,
72
77
  onClick: () => c(e.value),
73
78
  className: u(
74
79
  R,
75
- a ? U : K,
76
- s ? a ? A : D : a ? S : y,
77
- g
80
+ a ? U : L,
81
+ s ? a ? D : h : a ? y : K,
82
+ p,
83
+ f.segmentedControlItem
78
84
  ),
79
85
  children: [
80
86
  e.icon,