@epam/ai-dial-ui-kit 0.15.0-dev.4 → 0.15.0-dev.41

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 (193) hide show
  1. package/README.md +190 -0
  2. package/dist/CHANGELOG.md +73 -0
  3. package/dist/DateCellRenderer-DFknFcs1.cjs +1 -0
  4. package/dist/{DateCellRenderer-BVM-Q8yx.cjs → DateCellRenderer-J9A5gyDz.cjs} +31 -31
  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/Avatar/Avatar.js +70 -0
  21. package/dist/components/New/Badge/Badge.js +45 -0
  22. package/dist/components/New/BottomSheet/BottomSheet.js +128 -0
  23. package/dist/components/New/Breadcrumbs/Breadcrumbs.js +159 -0
  24. package/dist/components/New/Breadcrumbs/constants.js +41 -0
  25. package/dist/components/New/Button/Button.js +32 -32
  26. package/dist/components/New/Button/ButtonWrappers.js +93 -37
  27. package/dist/components/New/Button/constants.js +3 -0
  28. package/dist/components/New/Button/utils.js +18 -8
  29. package/dist/components/New/ButtonDropdown/ButtonDropdown.js +26 -16
  30. package/dist/components/New/Calendar/Calendar.js +301 -265
  31. package/dist/components/New/Calendar/constants.js +5 -5
  32. package/dist/components/New/CaptionText/CaptionText.js +18 -15
  33. package/dist/components/New/CardShell/CardShell.js +5 -3
  34. package/dist/components/New/Checkbox/Checkbox.js +67 -56
  35. package/dist/components/New/Checkbox/CheckboxBox.js +5 -3
  36. package/dist/components/New/CloseButton/CloseButton.js +18 -16
  37. package/dist/components/New/CollapsibleSidebar/CollapsibleSidebar.js +39 -34
  38. package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +38 -37
  39. package/dist/components/New/ConfirmationPopup/constants.js +8 -11
  40. package/dist/components/New/Dropdown/Dropdown.js +112 -105
  41. package/dist/components/New/Dropdown/DropdownSubMenuItem.js +17 -17
  42. package/dist/components/New/Dropdown/constants.js +22 -17
  43. package/dist/components/New/EllipsisTooltip/EllipsisTooltip.js +20 -18
  44. package/dist/components/New/EntityIdentity/EntityIdentity.js +135 -0
  45. package/dist/components/New/FileDropzone/FileDropzone.js +27 -25
  46. package/dist/components/New/FileIcon/FileIcon.js +55 -0
  47. package/dist/components/New/FileIcon/constants.js +134 -0
  48. package/dist/components/New/FileIcon/icons/FileGlyph.js +150 -0
  49. package/dist/components/New/FileIcon/icons/FolderGlyph.js +50 -0
  50. package/dist/components/New/FileName/FileName.js +78 -0
  51. package/dist/components/New/FilterChips/FilterChips.js +43 -0
  52. package/dist/components/New/FilterChips/constants.js +5 -0
  53. package/dist/components/New/FolderName/FolderName.js +16 -0
  54. package/dist/components/New/FolderPath/FolderPath.js +29 -28
  55. package/dist/components/New/Highlight/Highlight.js +23 -30
  56. package/dist/components/New/IconButton/IconButton.js +30 -28
  57. package/dist/components/New/InfoButton/InfoButton.js +13 -11
  58. package/dist/components/New/InlineSelect/InlineSelect.js +74 -56
  59. package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +41 -39
  60. package/dist/components/New/InteractiveTooltip/constants.js +2 -2
  61. package/dist/components/New/Label/Label.js +13 -8
  62. package/dist/components/New/MenuItem/MenuItem.js +29 -27
  63. package/dist/components/New/MenuItem/constants.js +9 -8
  64. package/dist/components/New/NoDataContent/NoDataContent.js +21 -19
  65. package/dist/components/New/Notification/Notification.js +33 -29
  66. package/dist/components/New/NumberInput/NumberInput.js +42 -33
  67. package/dist/components/New/PasswordInput/PasswordInput.js +41 -35
  68. package/dist/components/New/Popup/Popup.js +46 -44
  69. package/dist/components/New/Popup/constants.js +3 -3
  70. package/dist/components/New/Radio/Radio.js +75 -64
  71. package/dist/components/New/RadioGroup/RadioGroup.js +76 -65
  72. package/dist/components/New/RadioGroupPopupField/RadioGroupPopupField.js +117 -106
  73. package/dist/components/New/ResizableContainer/ResizableContainer.js +42 -40
  74. package/dist/components/New/Search/Search.js +29 -27
  75. package/dist/components/New/SegmentedControl/SegmentedControl.js +29 -23
  76. package/dist/components/New/Select/CollapsedSelectTags.js +127 -0
  77. package/dist/components/New/Select/MultiSelectTags.js +18 -15
  78. package/dist/components/New/Select/Select.js +219 -197
  79. package/dist/components/New/Select/constants.js +23 -20
  80. package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +34 -0
  81. package/dist/components/New/SideDrawer/SideDrawer.js +148 -0
  82. package/dist/components/New/Switch/Switch.js +69 -58
  83. package/dist/components/New/Tabs/Tabs.js +125 -61
  84. package/dist/components/New/Tag/Tag.js +42 -40
  85. package/dist/components/New/TagInput/TagInput.js +48 -44
  86. package/dist/components/New/ToggleIconButton/ToggleIconButton.js +26 -24
  87. package/dist/components/New/Tooltip/TooltipContent.js +11 -9
  88. package/dist/components/New/Tooltip/constants.js +1 -1
  89. package/dist/components/New/TransferQueue/TransferQueue.js +124 -0
  90. package/dist/components/New/TransferQueue/TransferQueueHeader.js +71 -0
  91. package/dist/components/New/TransferQueue/TransferQueueRow.js +119 -0
  92. package/dist/components/New/TransferQueue/constants.js +24 -0
  93. package/dist/components/New/constants/overlay.js +17 -9
  94. package/dist/components/Popup/constants.js +8 -8
  95. package/dist/components/ProgressBar/ProgressBar.js +45 -33
  96. package/dist/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.js +46 -31
  97. package/dist/components/SchemaRenderer/components/SchemaField.js +19 -19
  98. package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +18 -18
  99. package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +223 -135
  100. package/dist/components/SchemaRenderer/types.js +19 -8
  101. package/dist/components/SchemaRenderer/utils.js +122 -95
  102. package/dist/components/Skeleton/Skeleton.js +25 -19
  103. package/dist/components/Spinner/Spinner.js +7 -5
  104. package/dist/components/Tooltip/TooltipContent.js +11 -11
  105. package/dist/components-manifest.json +1478 -59
  106. package/dist/constants/public-class-names.js +208 -0
  107. package/dist/dial-ui-kit.cjs +2 -2
  108. package/dist/dial-ui-kit.js +337 -292
  109. package/dist/editors.cjs +1 -1
  110. package/dist/file-manager.cjs +1 -1
  111. package/dist/grid.cjs +1 -1
  112. package/dist/index.css +2 -2
  113. package/dist/lazy-BEsZqouS.cjs +1 -0
  114. package/dist/merge-classes-BEJXjzkx.cjs +1 -0
  115. package/dist/migration-guides/0.15.0/legacy-theme-variable-fallbacks-removal.md +69 -0
  116. package/dist/migration-guides/README.md +1 -0
  117. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +419 -399
  118. package/dist/src/components/FileManager/FileManager.d.ts +2 -0
  119. package/dist/src/components/FileManager/FileManagerContext.d.ts +1 -0
  120. package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +2 -1
  121. package/dist/src/components/New/Accordion/Accordion.d.ts +6 -1
  122. package/dist/src/components/New/Avatar/Avatar.d.ts +55 -0
  123. package/dist/src/components/New/Badge/Badge.d.ts +47 -0
  124. package/dist/src/components/New/BottomSheet/BottomSheet.d.ts +84 -0
  125. package/dist/src/components/New/Breadcrumbs/Breadcrumbs.d.ts +94 -0
  126. package/dist/src/components/New/Breadcrumbs/constants.d.ts +60 -0
  127. package/dist/src/components/New/Button/Button.d.ts +4 -1
  128. package/dist/src/components/New/Button/ButtonWrappers.d.ts +20 -0
  129. package/dist/src/components/New/Button/utils.d.ts +15 -0
  130. package/dist/src/components/New/ButtonDropdown/ButtonDropdown.d.ts +4 -0
  131. package/dist/src/components/New/Calendar/Calendar.d.ts +7 -1
  132. package/dist/src/components/New/Calendar/constants.d.ts +1 -1
  133. package/dist/src/components/New/ConfirmationPopup/constants.d.ts +0 -1
  134. package/dist/src/components/New/Dropdown/Dropdown.d.ts +9 -1
  135. package/dist/src/components/New/Dropdown/constants.d.ts +3 -0
  136. package/dist/src/components/New/EntityIdentity/EntityIdentity.d.ts +85 -0
  137. package/dist/src/components/New/FileIcon/FileIcon.d.ts +61 -0
  138. package/dist/src/components/New/FileIcon/constants.d.ts +16 -0
  139. package/dist/src/components/New/FileIcon/icons/FileGlyph.d.ts +18 -0
  140. package/dist/src/components/New/FileIcon/icons/FolderGlyph.d.ts +17 -0
  141. package/dist/src/components/New/FileName/FileName.d.ts +79 -0
  142. package/dist/src/components/New/FilterChips/FilterChips.d.ts +69 -0
  143. package/dist/src/components/New/FilterChips/constants.d.ts +13 -0
  144. package/dist/src/components/New/FolderName/FolderName.d.ts +37 -0
  145. package/dist/src/components/New/InlineSelect/InlineSelect.d.ts +16 -1
  146. package/dist/src/components/New/InteractiveTooltip/constants.d.ts +5 -4
  147. package/dist/src/components/New/Notification/Notification.d.ts +18 -0
  148. package/dist/src/components/New/Popup/constants.d.ts +1 -1
  149. package/dist/src/components/New/Select/CollapsedSelectTags.d.ts +22 -0
  150. package/dist/src/components/New/Select/MultiSelectTags.d.ts +5 -0
  151. package/dist/src/components/New/Select/Select.d.ts +9 -0
  152. package/dist/src/components/New/Select/constants.d.ts +3 -2
  153. package/dist/src/components/New/SharedEntityIndicator/SharedEntityIndicator.d.ts +35 -0
  154. package/dist/src/components/New/SideDrawer/SideDrawer.d.ts +100 -0
  155. package/dist/src/components/New/Tabs/Tabs.d.ts +54 -6
  156. package/dist/src/components/New/Tooltip/constants.d.ts +5 -3
  157. package/dist/src/components/New/TransferQueue/TransferQueue.d.ts +139 -0
  158. package/dist/src/components/New/TransferQueue/TransferQueueHeader.d.ts +16 -0
  159. package/dist/src/components/New/TransferQueue/TransferQueueRow.d.ts +10 -0
  160. package/dist/src/components/New/TransferQueue/constants.d.ts +6 -0
  161. package/dist/src/components/New/constants/overlay.d.ts +13 -0
  162. package/dist/src/components/Popup/constants.d.ts +1 -1
  163. package/dist/src/components/SchemaRenderer/types.d.ts +11 -0
  164. package/dist/src/components/SchemaRenderer/utils.d.ts +10 -1
  165. package/dist/src/constants/public-class-names.d.ts +199 -0
  166. package/dist/src/index.d.ts +34 -1
  167. package/dist/src/types/accordion.d.ts +7 -0
  168. package/dist/src/types/avatar.d.ts +7 -0
  169. package/dist/src/types/badge.d.ts +16 -0
  170. package/dist/src/types/breadcrumbs.d.ts +9 -0
  171. package/dist/src/types/button.d.ts +1 -0
  172. package/dist/src/types/entity-type.d.ts +9 -0
  173. package/dist/src/types/transfer-queue.d.ts +10 -0
  174. package/dist/src/utils/__tests__/avatar.spec.d.ts +1 -0
  175. package/dist/src/utils/avatar.d.ts +12 -0
  176. package/dist/src/utils/sub-menu-floating.d.ts +7 -4
  177. package/dist/types/accordion.js +4 -0
  178. package/dist/types/avatar.js +4 -0
  179. package/dist/types/badge.js +5 -0
  180. package/dist/types/breadcrumbs.js +4 -0
  181. package/dist/types/button.js +3 -3
  182. package/dist/types/entity-type.js +4 -0
  183. package/dist/types/transfer-queue.js +4 -0
  184. package/dist/use-file-manager-tabs-Bj_ENNKt.cjs +3 -0
  185. package/dist/utils/avatar.js +22 -0
  186. package/dist/utils/merge-classes.js +12 -5
  187. package/dist/utils/sub-menu-floating.js +99 -54
  188. package/package.json +4 -7
  189. package/dist/DateCellRenderer-ssp7eaZY.cjs +0 -1
  190. package/dist/IconButton-DWqoaBWf.cjs +0 -1
  191. package/dist/lazy-tfN4sKhq.cjs +0 -1
  192. package/dist/merge-classes-Dipy1Ih1.cjs +0 -1
  193. package/dist/use-file-manager-tabs-DjdR_mYM.cjs +0 -3
@@ -3,18 +3,18 @@ import { IconChevronRight as o, IconChevronLeft as n, IconCalendar as l } from "
3
3
  import { DIAL_KIT_ICON_STROKE as r } from "../constants/icon.js";
4
4
  import { DIAL_ICON_SIZE as t } from "../../../constants/icon.js";
5
5
  import { CalendarMode as e } from "../../../types/calendar.js";
6
- const u = "en-GB", x = {
6
+ const u = "en-GB", f = {
7
7
  [e.Date]: "Select date",
8
8
  [e.DateTime]: "Select date and time",
9
9
  [e.Time]: "--:--",
10
10
  [e.Weekday]: "Select day"
11
- }, f = (
11
+ }, x = (
12
12
  // TODO: check after design review for input
13
13
  "flex w-full items-center justify-between gap-2 rounded-xl border border-secondary bg-layer-raised px-4 py-3 dial-small-text text-primary outline-none transition-colors hover:border-accent-alpha focus-within:border-accent-focus"
14
14
  ), y = (
15
15
  // TODO: check after design review for input
16
16
  "!cursor-not-allowed !border-transparent bg-layer-sunken text-control-disable-primary hover:!border-transparent"
17
- ), b = "!border-error", C = "z-[53] flex w-[248px] flex-col gap-4 rounded-lg bg-layer-raised px-2 py-4 shadow-md", h = "flex size-10 items-center justify-center rounded-full dial-small-text text-primary hover:bg-control-accent-alpha-hover hover:text-primary focus:outline-none focus-visible:outline focus-visible:outline-focus", N = "bg-control-accent text-control-permanent", v = "text-accent dial-small-semi-text", D = "text-control-disable-primary", s = "text-secondary", I = /* @__PURE__ */ a(
17
+ ), b = "!border-error", C = "z-floating flex w-[248px] flex-col gap-4 rounded-lg bg-layer-raised px-2 py-4 shadow-md", h = "flex size-10 items-center justify-center rounded-full dial-small-text text-primary hover:bg-control-accent-alpha-hover hover:text-primary focus:outline-none focus-visible:outline focus-visible:outline-focus", N = "bg-control-accent text-control-permanent", v = "text-accent dial-small-semi-text", D = "text-control-disable-primary", s = "text-secondary", I = /* @__PURE__ */ a(
18
18
  l,
19
19
  {
20
20
  size: t.MD,
@@ -46,12 +46,12 @@ export {
46
46
  D as calendarDayOutsideClassName,
47
47
  N as calendarDaySelectedClassName,
48
48
  v as calendarDayTodayClassName,
49
- f as calendarFieldBaseClassName,
49
+ x as calendarFieldBaseClassName,
50
50
  y as calendarFieldDisabledClassName,
51
51
  s as calendarFieldIconClassName,
52
52
  b as calendarFieldInvalidClassName,
53
53
  I as calendarIcon,
54
- x as calendarModeDefaultPlaceholder,
54
+ f as calendarModeDefaultPlaceholder,
55
55
  g as calendarNavIcons,
56
56
  C as calendarPopoverClassName
57
57
  };
@@ -1,27 +1,30 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { mergeClasses as a } from "../../../utils/merge-classes.js";
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { mergeClasses as s } from "../../../utils/merge-classes.js";
3
3
  import { CaptionType as t } from "../../../types/caption.js";
4
- const s = ({
4
+ import { DIAL_KIT_CLASS as e } from "../../../constants/public-class-names.js";
5
+ const a = ({
5
6
  text: r,
6
- className: o,
7
- variant: n = t.Description,
8
- ...i
9
- }) => r ? /* @__PURE__ */ e(
7
+ className: i,
8
+ variant: o = t.Description,
9
+ ...p
10
+ }) => r ? /* @__PURE__ */ n(
10
11
  "span",
11
12
  {
12
- ...i,
13
+ ...p,
13
14
  role: "alert",
14
- className: a(
15
+ className: s(
15
16
  "dial-tiny-text",
16
- n === t.Error ? "text-error" : "text-secondary",
17
- o
17
+ o === t.Error ? "text-error" : "text-secondary",
18
+ i,
19
+ e.captionText,
20
+ o === t.Error && e.errorText
18
21
  ),
19
22
  children: r
20
23
  }
21
- ) : null, c = ({
24
+ ) : null, T = ({
22
25
  ...r
23
- }) => /* @__PURE__ */ e(s, { ...r, variant: t.Error });
26
+ }) => /* @__PURE__ */ n(a, { ...r, variant: t.Error });
24
27
  export {
25
- s as CaptionText,
26
- c as ErrorText
28
+ a as CaptionText,
29
+ T as ErrorText
27
30
  };
@@ -1,7 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { mergeClasses as t } from "../../../utils/merge-classes.js";
4
- const i = ({
4
+ import { DIAL_KIT_CLASS as s } from "../../../constants/public-class-names.js";
5
+ const m = ({
5
6
  className: r,
6
7
  children: e,
7
8
  ...o
@@ -12,11 +13,12 @@ const i = ({
12
13
  className: t(
13
14
  "relative flex flex-col gap-3 rounded-[20px] border-2 border-transparent p-5",
14
15
  "bg-layer-raised shadow-md transition-[transform,box-shadow] duration-200 ease-out hover:-translate-y-[3px] hover:shadow-lg motion-reduce:transition-none motion-reduce:hover:translate-y-0",
15
- r
16
+ r,
17
+ s.cardShell
16
18
  ),
17
19
  children: e
18
20
  }
19
21
  );
20
22
  export {
21
- i as CardShell
23
+ m as CardShell
22
24
  };
@@ -3,26 +3,27 @@ import { useId as u, useCallback as x } from "react";
3
3
  import { ElementSize as v } from "../../../types/size.js";
4
4
  import { mergeClasses as f } from "../../../utils/merge-classes.js";
5
5
  import { resolveAccessibleName as C } from "../../../utils/accessible-name.js";
6
- import { Label as j } from "../Label/Label.js";
7
- import { CheckboxBox as z } from "./CheckboxBox.js";
8
- const T = ({
6
+ import { Label as I } from "../Label/Label.js";
7
+ import { CheckboxBox as A } from "./CheckboxBox.js";
8
+ import { DIAL_KIT_CLASS as L } from "../../../constants/public-class-names.js";
9
+ const D = ({
9
10
  id: h,
10
11
  labelProps: e,
11
12
  isSelected: t = !1,
12
13
  isIndeterminate: r = !1,
13
14
  invalid: i = !1,
14
15
  disabled: s,
15
- onChange: m,
16
- caption: l,
16
+ onChange: l,
17
+ caption: m,
17
18
  className: y,
18
19
  boxClassName: b,
19
20
  ...n
20
21
  }) => {
21
- const g = u(), a = h ?? g, d = l ? `${a}-caption` : void 0, k = x(
22
+ const k = u(), a = h ?? k, d = m ? `${a}-caption` : void 0, g = x(
22
23
  (o) => {
23
- m?.(o.target.checked);
24
+ l?.(o.target.checked);
24
25
  },
25
- [m]
26
+ [l]
26
27
  ), N = x(
27
28
  (o) => {
28
29
  o && (o.indeterminate = r);
@@ -30,63 +31,73 @@ const T = ({
30
31
  [r]
31
32
  );
32
33
  return /* @__PURE__ */ p("div", { className: "flex flex-col gap-1", children: [
33
- /* @__PURE__ */ p("div", { className: f("flex items-center gap-2", y), children: [
34
- /* @__PURE__ */ c(
35
- "input",
36
- {
37
- ...n,
38
- ref: N,
39
- type: "checkbox",
40
- id: a,
41
- checked: t,
42
- disabled: s,
43
- onChange: k,
44
- "aria-checked": r ? "mixed" : t,
45
- "aria-invalid": i || void 0,
46
- "aria-label": C(
47
- typeof e?.label != "string" ? n["aria-label"] : void 0
34
+ /* @__PURE__ */ p(
35
+ "div",
36
+ {
37
+ className: f(
38
+ "flex items-center gap-2",
39
+ y,
40
+ L.checkbox
41
+ ),
42
+ children: [
43
+ /* @__PURE__ */ c(
44
+ "input",
45
+ {
46
+ ...n,
47
+ ref: N,
48
+ type: "checkbox",
49
+ id: a,
50
+ checked: t,
51
+ disabled: s,
52
+ onChange: g,
53
+ "aria-checked": r ? "mixed" : t,
54
+ "aria-invalid": i || void 0,
55
+ "aria-label": C(
56
+ typeof e?.label != "string" ? n["aria-label"] : void 0
57
+ ),
58
+ "aria-describedby": d,
59
+ className: "peer sr-only"
60
+ }
61
+ ),
62
+ /* @__PURE__ */ c(
63
+ A,
64
+ {
65
+ htmlFor: a,
66
+ isSelected: t,
67
+ isIndeterminate: r,
68
+ invalid: i,
69
+ disabled: s,
70
+ className: b
71
+ }
48
72
  ),
49
- "aria-describedby": d,
50
- className: "peer sr-only"
51
- }
52
- ),
53
- /* @__PURE__ */ c(
54
- z,
55
- {
56
- htmlFor: a,
57
- isSelected: t,
58
- isIndeterminate: r,
59
- invalid: i,
60
- disabled: s,
61
- className: b
62
- }
63
- ),
64
- e && /* @__PURE__ */ c(
65
- j,
66
- {
67
- size: v.Standard,
68
- ...e,
69
- htmlFor: a,
70
- className: f(
71
- // `Label` defaults to the secondary colour; a checkbox's own label
72
- // is primary while the control is usable.
73
- "py-[1px]",
74
- s ? "cursor-not-allowed text-control-disable-primary" : "cursor-pointer text-primary",
75
- e.className
73
+ e && /* @__PURE__ */ c(
74
+ I,
75
+ {
76
+ size: v.Standard,
77
+ ...e,
78
+ htmlFor: a,
79
+ className: f(
80
+ // `Label` defaults to the secondary colour; a checkbox's own label
81
+ // is primary while the control is usable.
82
+ "py-[1px]",
83
+ s ? "cursor-not-allowed text-control-disable-primary" : "cursor-pointer text-primary",
84
+ e.className
85
+ )
86
+ }
76
87
  )
77
- }
78
- )
79
- ] }),
80
- l && /* @__PURE__ */ c(
88
+ ]
89
+ }
90
+ ),
91
+ m && /* @__PURE__ */ c(
81
92
  "span",
82
93
  {
83
94
  id: d,
84
95
  className: "dial-tiny-text text-secondary ml-[28px]",
85
- children: l
96
+ children: m
86
97
  }
87
98
  )
88
99
  ] });
89
100
  };
90
101
  export {
91
- T as Checkbox
102
+ D as Checkbox
92
103
  };
@@ -2,7 +2,8 @@ import { jsx as t } from "react/jsx-runtime";
2
2
  import { IconMinus as u, IconCheck as d } from "@tabler/icons-react";
3
3
  import { mergeClasses as b } from "../../../utils/merge-classes.js";
4
4
  import { CHECKBOX_ICON_PROPS as p } from "./constants.js";
5
- const C = ({
5
+ import { DIAL_KIT_CLASS as f } from "../../../constants/public-class-names.js";
6
+ const v = ({
6
7
  isSelected: n = !1,
7
8
  isIndeterminate: c = !1,
8
9
  invalid: r = !1,
@@ -25,10 +26,11 @@ const C = ({
25
26
  !r && !o && "border-default bg-control-neutral hover:border-accent hover:bg-control-accent-alpha-hover"
26
27
  ),
27
28
  a ? "cursor-not-allowed" : e && "cursor-pointer",
28
- m
29
+ m,
30
+ f.checkboxBox
29
31
  ), i = c ? /* @__PURE__ */ t(u, { ...p }) : n && /* @__PURE__ */ t(d, { ...p });
30
32
  return e ? /* @__PURE__ */ t("label", { htmlFor: s, className: l, children: i }) : /* @__PURE__ */ t("span", { "aria-hidden": "true", className: l, children: i });
31
33
  };
32
34
  export {
33
- C as CheckboxBox
35
+ v as CheckboxBox
34
36
  };
@@ -1,27 +1,29 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { IconX as I } from "@tabler/icons-react";
2
+ import { IconX as n } from "@tabler/icons-react";
3
3
  import { DIAL_KIT_ICON_STROKE as a } from "../constants/icon.js";
4
- import { DIAL_ICON_SIZE as t } from "../../../constants/icon.js";
5
- import { ElementSize as m } from "../../../types/size.js";
6
- import { GhostIconButton as p } from "../IconButton/IconButtonWrappers.js";
7
- const u = ({
8
- ariaLabel: i = "Close",
9
- className: e,
10
- size: o = m.Small,
4
+ import { DIAL_ICON_SIZE as m } from "../../../constants/icon.js";
5
+ import { ElementSize as t } from "../../../types/size.js";
6
+ import { GhostIconButton as I } from "../IconButton/IconButtonWrappers.js";
7
+ import { DIAL_KIT_CLASS as p } from "../../../constants/public-class-names.js";
8
+ import { mergeClasses as f } from "../../../utils/merge-classes.js";
9
+ const B = ({
10
+ ariaLabel: e = "Close",
11
+ className: i,
12
+ size: o = t.Small,
11
13
  onClose: l,
12
- ...n
14
+ ...s
13
15
  }) => /* @__PURE__ */ r(
14
- p,
16
+ I,
15
17
  {
16
- ...n,
18
+ ...s,
17
19
  size: o,
18
- "aria-label": i,
19
- className: e,
20
+ "aria-label": e,
21
+ className: f(i, p.closeButton),
20
22
  onClick: l,
21
23
  icon: /* @__PURE__ */ r(
22
- I,
24
+ n,
23
25
  {
24
- size: o === m.Small ? t.SM : t.MD,
26
+ size: o === t.Small ? m.SM : m.MD,
25
27
  stroke: a,
26
28
  "aria-hidden": "true"
27
29
  }
@@ -29,5 +31,5 @@ const u = ({
29
31
  }
30
32
  );
31
33
  export {
32
- u as CloseButton
34
+ B as CloseButton
33
35
  };
@@ -1,39 +1,44 @@
1
1
  import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
- import { useState as w, useId as E } from "react";
3
- import { IconChevronsLeft as O, IconChevronsRight as k } from "@tabler/icons-react";
2
+ import { useState as j, useId as w } from "react";
3
+ import { IconChevronsLeft as E, IconChevronsRight as O } from "@tabler/icons-react";
4
4
  import { DIAL_KIT_ICON_STROKE as d } from "../constants/icon.js";
5
5
  import { DIAL_ICON_SIZE as p } from "../../../constants/icon.js";
6
- import { ButtonAppearance as z, ButtonVariant as A } from "../../../types/button.js";
7
- import { ElementSize as B } from "../../../types/size.js";
6
+ import { ButtonAppearance as k, ButtonVariant as z } from "../../../types/button.js";
7
+ import { ElementSize as T } from "../../../types/size.js";
8
8
  import { mergeClasses as r } from "../../../utils/merge-classes.js";
9
- import { IconButton as P } from "../IconButton/IconButton.js";
10
- const T = 48, q = ({
9
+ import { IconButton as B } from "../IconButton/IconButton.js";
10
+ import { DIAL_KIT_CLASS as K } from "../../../constants/public-class-names.js";
11
+ const P = 48, J = ({
11
12
  children: c,
12
13
  title: m,
13
14
  width: f = 280,
14
- collapsedWidth: h = T,
15
+ collapsedWidth: b = P,
15
16
  isOpened: o,
16
- defaultOpened: x = !0,
17
- onToggle: b,
18
- additionalButtons: u,
19
- ariaLabel: I = "Sidebar",
20
- collapseLabel: y = "Collapse sidebar",
21
- expandLabel: C = "Expand sidebar",
22
- className: v,
23
- titleClassName: S,
24
- contentClassName: g,
25
- footerClassName: D
17
+ defaultOpened: h = !0,
18
+ onToggle: x,
19
+ additionalButtons: I,
20
+ ariaLabel: u = "Sidebar",
21
+ collapseLabel: C = "Collapse sidebar",
22
+ expandLabel: S = "Expand sidebar",
23
+ className: y,
24
+ titleClassName: v,
25
+ contentClassName: L,
26
+ footerClassName: _
26
27
  }) => {
27
- const i = o !== void 0, [L, N] = w(x), e = i ? o : L, a = `collapsible-sidebar-content-${E()}`, n = e ? y : C, _ = (j) => {
28
+ const i = o !== void 0, [g, D] = j(h), e = i ? o : g, a = `collapsible-sidebar-content-${w()}`, n = e ? C : S, A = (N) => {
28
29
  const s = !e;
29
- i || N(s), b?.(s, j);
30
+ i || D(s), x?.(s, N);
30
31
  };
31
32
  return /* @__PURE__ */ l(
32
33
  "aside",
33
34
  {
34
- "aria-label": I,
35
- style: { width: `${e ? f : h}px` },
36
- className: r("flex flex-col justify-between", v),
35
+ "aria-label": u,
36
+ style: { width: `${e ? f : b}px` },
37
+ className: r(
38
+ "flex flex-col justify-between",
39
+ y,
40
+ K.collapsibleSidebar
41
+ ),
37
42
  children: [
38
43
  /* @__PURE__ */ t(
39
44
  "div",
@@ -42,7 +47,7 @@ const T = 48, q = ({
42
47
  hidden: !e,
43
48
  className: r(
44
49
  "min-h-0 flex-1 overflow-auto p-4",
45
- g
50
+ L
46
51
  ),
47
52
  children: c
48
53
  }
@@ -53,7 +58,7 @@ const T = 48, q = ({
53
58
  hidden: e,
54
59
  className: r(
55
60
  "rotate-180 px-3 py-4 [writing-mode:tb-rl] dial-small-text text-primary",
56
- S
61
+ v
57
62
  ),
58
63
  children: m
59
64
  }
@@ -64,30 +69,30 @@ const T = 48, q = ({
64
69
  className: r(
65
70
  "flex h-12 shrink-0 flex-row items-center gap-2 border-t border-tertiary py-1",
66
71
  e ? "justify-end px-2" : "justify-center",
67
- D
72
+ _
68
73
  ),
69
74
  children: [
70
- e && u,
75
+ e && I,
71
76
  /* @__PURE__ */ t(
72
- P,
77
+ B,
73
78
  {
74
- variant: A.Primary,
75
- appearance: z.Ghost,
76
- size: B.Standard,
77
- onClick: _,
79
+ variant: z.Primary,
80
+ appearance: k.Ghost,
81
+ size: T.Standard,
82
+ onClick: A,
78
83
  "aria-label": n,
79
84
  "aria-expanded": e,
80
85
  "aria-controls": a,
81
86
  tooltipProps: { tooltip: n },
82
87
  icon: e ? /* @__PURE__ */ t(
83
- O,
88
+ E,
84
89
  {
85
90
  size: p.MD,
86
91
  stroke: d,
87
92
  "aria-hidden": "true"
88
93
  }
89
94
  ) : /* @__PURE__ */ t(
90
- k,
95
+ O,
91
96
  {
92
97
  size: p.MD,
93
98
  stroke: d,
@@ -104,5 +109,5 @@ const T = 48, q = ({
104
109
  );
105
110
  };
106
111
  export {
107
- q as CollapsibleSidebar
112
+ J as CollapsibleSidebar
108
113
  };
@@ -1,75 +1,76 @@
1
- import { jsxs as S, jsx as r } from "react/jsx-runtime";
2
- import { useCallback as j } from "react";
3
- import { Button as z } from "../Button/Button.js";
4
- import { NeutralButton as F } from "../Button/ButtonWrappers.js";
5
- import { Popup as I } from "../Popup/Popup.js";
6
- import { Spinner as V } from "../../Spinner/Spinner.js";
7
- import { ConfirmationPopupVariant as q } from "../../../types/confirmation-popup.js";
8
- import { PopupSize as w } from "../../../types/popup.js";
1
+ import { jsxs as x, jsx as r } from "react/jsx-runtime";
2
+ import { useCallback as I } from "react";
3
+ import { Button as j } from "../Button/Button.js";
4
+ import { NeutralButton as z } from "../Button/ButtonWrappers.js";
5
+ import { Popup as A } from "../Popup/Popup.js";
6
+ import { Spinner as _ } from "../../Spinner/Spinner.js";
7
+ import { ConfirmationPopupVariant as D } from "../../../types/confirmation-popup.js";
8
+ import { PopupSize as F } from "../../../types/popup.js";
9
9
  import { mergeClasses as f } from "../../../utils/merge-classes.js";
10
- import { actionsBaseClassName as y, defaultCancelLabel as A, defaultConfirmLabel as D, variantConfig as t, loaderContainerClassName as E, descriptionBaseClassName as G } from "./constants.js";
10
+ import { actionsBaseClassName as K, defaultCancelLabel as L, defaultConfirmLabel as T, variantConfig as s, loaderContainerClassName as V, descriptionBaseClassName as q } from "./constants.js";
11
+ import { DIAL_KIT_CLASS as w } from "../../../constants/public-class-names.js";
11
12
  const X = ({
12
13
  header: p,
13
14
  description: a,
14
15
  descriptionClassName: m,
15
16
  open: u = !1,
16
- confirmLabel: c = D,
17
- cancelLabel: C = A,
18
- isLoading: e = !1,
17
+ confirmLabel: c = T,
18
+ cancelLabel: C = L,
19
+ isLoading: o = !1,
19
20
  disableConfirmButton: d = !1,
20
21
  className: N,
21
22
  confirmClassName: b,
22
- onClose: n,
23
+ onClose: t,
23
24
  onConfirm: v,
24
- onCancel: i,
25
- children: o,
26
- variant: l = q.Info,
27
- size: B = w.Sm,
28
- footer: s,
29
- hideClose: P,
30
- ...h
25
+ onCancel: l,
26
+ children: e,
27
+ variant: n = D.Info,
28
+ size: P = F.Sm,
29
+ footer: i,
30
+ hideClose: S,
31
+ ...B
31
32
  }) => {
32
- const k = e ? null : /* @__PURE__ */ S("div", { className: y, children: [
33
+ const h = o ? null : /* @__PURE__ */ x("div", { className: K, children: [
33
34
  /* @__PURE__ */ r(
34
- F,
35
+ z,
35
36
  {
36
37
  label: C,
37
- onClick: () => i ? i() : n?.()
38
+ onClick: () => l ? l() : t?.()
38
39
  }
39
40
  ),
40
41
  /* @__PURE__ */ r(
41
- z,
42
+ j,
42
43
  {
43
- variant: t[l].confirm.variant,
44
- appearance: t[l].confirm.appearance,
44
+ variant: s[n].confirm.variant,
45
+ appearance: s[n].confirm.appearance,
45
46
  className: b,
46
47
  label: c,
47
48
  disabled: d,
48
49
  onClick: v
49
50
  }
50
51
  )
51
- ] }), x = j(() => e ? /* @__PURE__ */ r("div", { className: E, children: /* @__PURE__ */ r(V, { size: 40 }) }) : o ?? (a ? /* @__PURE__ */ r(
52
+ ] }), k = I(() => o ? /* @__PURE__ */ r("div", { className: V, children: /* @__PURE__ */ r(_, { size: 40 }) }) : e ?? (a ? /* @__PURE__ */ r(
52
53
  "div",
53
54
  {
54
55
  className: f(
55
- G,
56
+ q,
56
57
  m
57
58
  ),
58
59
  children: a
59
60
  }
60
- ) : null), [o, a, e, m]);
61
+ ) : null), [e, a, o, m]);
61
62
  return /* @__PURE__ */ r(
62
- I,
63
+ A,
63
64
  {
64
- ...h,
65
+ ...B,
65
66
  open: u,
66
67
  header: p,
67
- className: f(t[l].container, N),
68
- onClose: () => n?.(),
69
- footer: s ?? k,
70
- size: B,
71
- hideClose: P ?? (!e && s === void 0),
72
- children: x()
68
+ className: f(N, w.confirmationPopup),
69
+ onClose: () => t?.(),
70
+ footer: i ?? h,
71
+ size: P,
72
+ hideClose: S ?? (!o && i === void 0),
73
+ children: k()
73
74
  }
74
75
  );
75
76
  };
@@ -1,24 +1,21 @@
1
- import { ButtonAppearance as a, ButtonVariant as r } from "../../../types/button.js";
2
- import { ConfirmationPopupVariant as e } from "../../../types/confirmation-popup.js";
3
- const t = "flex justify-end gap-2 px-6 py-4 border-t border-tertiary", i = "text-secondary dial-small-paragraph-text px-6 pb-4", p = "px-6 py-4 h-[120px]", s = "Cancel", c = "Ok", l = {
4
- [e.Info]: {
1
+ import { ButtonAppearance as a, ButtonVariant as n } from "../../../types/button.js";
2
+ import { ConfirmationPopupVariant as r } from "../../../types/confirmation-popup.js";
3
+ const o = "flex justify-end gap-2 px-6 py-4 border-t border-tertiary", i = "text-secondary dial-small-paragraph-text px-6 pb-4", p = "px-6 py-4 h-[120px]", s = "Cancel", c = "Ok", l = {
4
+ [r.Info]: {
5
5
  confirm: {
6
- variant: r.Primary,
6
+ variant: n.Primary,
7
7
  appearance: a.Solid
8
8
  }
9
9
  },
10
- [e.Danger]: {
11
- // Utilities rather than the legacy `.dial-danger-popup` SCSS rule, which is
12
- // scoped as `div .dial-danger-popup` and only lands by accident of nesting.
13
- container: "border-t-4 border-error",
10
+ [r.Danger]: {
14
11
  confirm: {
15
- variant: r.Danger,
12
+ variant: n.Danger,
16
13
  appearance: a.Solid
17
14
  }
18
15
  }
19
16
  };
20
17
  export {
21
- t as actionsBaseClassName,
18
+ o as actionsBaseClassName,
22
19
  s as defaultCancelLabel,
23
20
  c as defaultConfirmLabel,
24
21
  i as descriptionBaseClassName,