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

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 (250) hide show
  1. package/README.md +55 -2
  2. package/dist/CHANGELOG.md +84 -0
  3. package/dist/DateCellRenderer-BdUMSg-E.cjs +1 -0
  4. package/dist/{DateCellRenderer-Bu40QyHE.cjs → DateCellRenderer-CZNa4jVJ.cjs} +30 -30
  5. package/dist/IconButton-DHOFapLo.cjs +1 -0
  6. package/dist/{JsonEditor-qv1Z0dLX.cjs → JsonEditor-Bxui5wJH.cjs} +1 -1
  7. package/dist/{MarkdownEditor-DHn2pYOJ.cjs → MarkdownEditor-BKtFs714.cjs} +1 -1
  8. package/dist/MarkdownEditor-Bapd1ycU.cjs +1 -0
  9. package/dist/MarkdownEditorContainer-B5aHwoYF.cjs +1 -0
  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 +2 -2
  13. package/dist/components/Dropdown/DropdownSubMenuItem.js +1 -1
  14. package/dist/components/Dropdown/constants.js +7 -7
  15. package/dist/components/DropdownIcon/DropdownIcon.js +4 -4
  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/MarkdownEditor/MarkdownEditor.js +23 -21
  20. package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +27 -25
  21. package/dist/components/New/Accordion/Accordion.js +86 -72
  22. package/dist/components/New/AutocompleteTagInput/AutocompleteTagInput.js +214 -0
  23. package/dist/components/New/AutocompleteTagInput/utils.js +11 -0
  24. package/dist/components/New/Avatar/Avatar.js +70 -0
  25. package/dist/components/New/Badge/Badge.js +45 -0
  26. package/dist/components/New/BottomSheet/BottomSheet.js +128 -0
  27. package/dist/components/New/Breadcrumbs/Breadcrumbs.js +159 -0
  28. package/dist/components/New/Breadcrumbs/constants.js +41 -0
  29. package/dist/components/New/Button/Button.js +32 -32
  30. package/dist/components/New/Button/ButtonWrappers.js +103 -37
  31. package/dist/components/New/Button/constants.js +3 -0
  32. package/dist/components/New/Button/utils.js +18 -8
  33. package/dist/components/New/ButtonDropdown/ButtonDropdown.js +27 -18
  34. package/dist/components/New/Calendar/Calendar.js +6 -6
  35. package/dist/components/New/Calendar/constants.js +5 -5
  36. package/dist/components/New/CaptionText/CaptionText.js +3 -3
  37. package/dist/components/New/CardShell/CardShell.js +2 -2
  38. package/dist/components/New/Checkbox/Checkbox.js +2 -2
  39. package/dist/components/New/Checkbox/CheckboxBox.js +2 -2
  40. package/dist/components/New/CloseButton/CloseButton.js +1 -1
  41. package/dist/components/New/CollapsibleSidebar/CollapsibleSidebar.js +2 -2
  42. package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +21 -25
  43. package/dist/components/New/ConfirmationPopup/constants.js +8 -11
  44. package/dist/components/New/Dropdown/Dropdown.js +99 -98
  45. package/dist/components/New/Dropdown/DropdownSubMenuItem.js +17 -17
  46. package/dist/components/New/Dropdown/constants.js +22 -17
  47. package/dist/components/New/EllipsisTooltip/EllipsisTooltip.js +2 -2
  48. package/dist/components/New/EntityIdentity/EntityIdentity.js +135 -0
  49. package/dist/components/New/FileDropzone/FileDropzone.js +2 -2
  50. package/dist/components/New/FileIcon/FileIcon.js +55 -0
  51. package/dist/components/New/FileIcon/constants.js +134 -0
  52. package/dist/components/New/FileIcon/icons/FileGlyph.js +150 -0
  53. package/dist/components/New/FileIcon/icons/FolderGlyph.js +50 -0
  54. package/dist/components/New/FileName/FileName.js +78 -0
  55. package/dist/components/New/FilterChips/FilterChips.js +2 -2
  56. package/dist/components/New/FolderName/FolderName.js +16 -0
  57. package/dist/components/New/FolderPath/FolderPath.js +1 -1
  58. package/dist/components/New/Grid/constants.js +14 -5
  59. package/dist/components/New/Highlight/Highlight.js +2 -2
  60. package/dist/components/New/IconButton/IconButton.js +30 -28
  61. package/dist/components/New/InfoButton/InfoButton.js +2 -2
  62. package/dist/components/New/InlineSelect/InlineSelect.js +75 -59
  63. package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +70 -66
  64. package/dist/components/New/InteractiveTooltip/constants.js +2 -2
  65. package/dist/components/New/Label/Label.js +2 -2
  66. package/dist/components/New/MarkdownEditor/MarkdownEditor.js +29 -27
  67. package/dist/components/New/MenuItem/MenuItem.js +2 -2
  68. package/dist/components/New/MenuItem/constants.js +1 -1
  69. package/dist/components/New/NoDataContent/NoDataContent.js +2 -2
  70. package/dist/components/New/Notification/Notification.js +37 -35
  71. package/dist/components/New/NumberInput/NumberInput.js +2 -2
  72. package/dist/components/New/PasswordInput/PasswordInput.js +2 -2
  73. package/dist/components/New/Popup/Popup.js +59 -57
  74. package/dist/components/New/Popup/constants.js +3 -3
  75. package/dist/components/New/Radio/Radio.js +2 -2
  76. package/dist/components/New/RadioGroup/RadioGroup.js +2 -2
  77. package/dist/components/New/RadioGroupPopupField/RadioGroupPopupField.js +2 -2
  78. package/dist/components/New/ResizableContainer/ResizableContainer.js +2 -2
  79. package/dist/components/New/SchemaRenderer/SchemaRenderer.js +164 -0
  80. package/dist/components/New/SchemaRenderer/components/SchemaAnyOfEditor.js +65 -0
  81. package/dist/components/New/SchemaRenderer/components/SchemaArrayEditor.js +109 -0
  82. package/dist/components/New/SchemaRenderer/components/SchemaField.js +83 -0
  83. package/dist/components/New/SchemaRenderer/components/SchemaFieldContent.js +72 -0
  84. package/dist/components/New/SchemaRenderer/components/SchemaJsonEditor.js +41 -0
  85. package/dist/components/New/SchemaRenderer/components/SchemaKeyValueEditor.js +250 -0
  86. package/dist/components/New/SchemaRenderer/components/SchemaObjectEditor.js +36 -0
  87. package/dist/components/New/SchemaRenderer/components/SchemaOneOfEditor.js +163 -0
  88. package/dist/components/New/SchemaRenderer/components/SchemaPrimitiveField.js +150 -0
  89. package/dist/components/New/SchemaRenderer/components/SchemaSection.js +135 -0
  90. package/dist/components/New/SchemaRenderer/context.js +17 -0
  91. package/dist/components/New/Search/Search.js +2 -2
  92. package/dist/components/New/SegmentedControl/SegmentedControl.js +4 -4
  93. package/dist/components/New/Select/CollapsedSelectTags.js +127 -0
  94. package/dist/components/New/Select/MultiSelectTags.js +18 -15
  95. package/dist/components/New/Select/Select.js +184 -173
  96. package/dist/components/New/Select/constants.js +23 -20
  97. package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +34 -0
  98. package/dist/components/New/SideDrawer/SideDrawer.js +148 -0
  99. package/dist/components/New/Slider/Slider.js +184 -91
  100. package/dist/components/New/Slider/utils.js +20 -0
  101. package/dist/components/New/Switch/Switch.js +2 -2
  102. package/dist/components/New/Tabs/Tabs.js +124 -66
  103. package/dist/components/New/Tag/Tag.js +2 -2
  104. package/dist/components/New/TagInput/TagInput.js +5 -3
  105. package/dist/components/New/Textarea/Textarea.js +21 -20
  106. package/dist/components/New/ToggleIconButton/ToggleIconButton.js +2 -2
  107. package/dist/components/New/Tooltip/TooltipContent.js +2 -2
  108. package/dist/components/New/Tooltip/constants.js +1 -1
  109. package/dist/components/New/TransferQueue/TransferQueue.js +124 -0
  110. package/dist/components/New/TransferQueue/TransferQueueHeader.js +71 -0
  111. package/dist/components/New/TransferQueue/TransferQueueRow.js +119 -0
  112. package/dist/components/New/TransferQueue/constants.js +24 -0
  113. package/dist/components/New/constants/overlay.js +17 -9
  114. package/dist/components/Popup/constants.js +8 -8
  115. package/dist/components/ProgressBar/ProgressBar.js +6 -6
  116. package/dist/components/SchemaRenderer/SchemaRenderer.js +16 -15
  117. package/dist/components/SchemaRenderer/components/SchemaAnyOfEditor.js +2 -2
  118. package/dist/components/SchemaRenderer/components/SchemaArrayEditor.js +1 -1
  119. package/dist/components/SchemaRenderer/components/SchemaField.js +23 -23
  120. package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +19 -19
  121. package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +2 -2
  122. package/dist/components/SchemaRenderer/components/SchemaObjectEditor.js +1 -1
  123. package/dist/components/SchemaRenderer/components/SchemaOneOfEditor.js +13 -13
  124. package/dist/components/SchemaRenderer/components/SchemaPrimitiveField.js +5 -5
  125. package/dist/components/Skeleton/Skeleton.js +2 -2
  126. package/dist/components/Spinner/Spinner.js +2 -2
  127. package/dist/components/Tooltip/TooltipContent.js +11 -11
  128. package/dist/components-manifest.json +1826 -109
  129. package/dist/constants/public-class-names.js +64 -3
  130. package/dist/{components/SchemaRenderer/types.js → constants/schema-renderer.js} +2 -7
  131. package/dist/dial-ui-kit.cjs +2 -2
  132. package/dist/dial-ui-kit.js +357 -311
  133. package/dist/editors.cjs +1 -1
  134. package/dist/file-manager.cjs +1 -1
  135. package/dist/grid.cjs +1 -1
  136. package/dist/index.css +2 -2
  137. package/dist/lazy-_W6FYhKg.cjs +1 -0
  138. package/dist/merge-classes-BEJXjzkx.cjs +1 -0
  139. package/dist/migration-guides/0.15.0/legacy-theme-variable-fallbacks-removal.md +69 -0
  140. package/dist/migration-guides/0.15.0/slider-redesign.md +110 -0
  141. package/dist/migration-guides/README.md +2 -0
  142. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +419 -399
  143. package/dist/src/components/FileManager/FileManager.d.ts +2 -0
  144. package/dist/src/components/FileManager/FileManagerContext.d.ts +1 -0
  145. package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +2 -1
  146. package/dist/src/components/MarkdownEditor/MarkdownEditor.d.ts +2 -0
  147. package/dist/src/components/MarkdownEditor/MarkdownEditorContainer.d.ts +2 -0
  148. package/dist/src/components/New/Accordion/Accordion.d.ts +6 -1
  149. package/dist/src/components/New/AutocompleteTagInput/AutocompleteTagInput.d.ts +108 -0
  150. package/dist/src/components/New/AutocompleteTagInput/utils.d.ts +17 -0
  151. package/dist/src/components/New/AutocompleteTagInput/utils.spec.d.ts +1 -0
  152. package/dist/src/components/New/Avatar/Avatar.d.ts +55 -0
  153. package/dist/src/components/New/Badge/Badge.d.ts +47 -0
  154. package/dist/src/components/New/BottomSheet/BottomSheet.d.ts +84 -0
  155. package/dist/src/components/New/Breadcrumbs/Breadcrumbs.d.ts +94 -0
  156. package/dist/src/components/New/Breadcrumbs/constants.d.ts +60 -0
  157. package/dist/src/components/New/Button/Button.d.ts +4 -1
  158. package/dist/src/components/New/Button/ButtonWrappers.d.ts +21 -0
  159. package/dist/src/components/New/Button/utils.d.ts +15 -0
  160. package/dist/src/components/New/ButtonDropdown/ButtonDropdown.d.ts +4 -0
  161. package/dist/src/components/New/Calendar/constants.d.ts +1 -1
  162. package/dist/src/components/New/ConfirmationPopup/constants.d.ts +0 -1
  163. package/dist/src/components/New/Dropdown/Dropdown.d.ts +9 -1
  164. package/dist/src/components/New/Dropdown/constants.d.ts +3 -0
  165. package/dist/src/components/New/EntityIdentity/EntityIdentity.d.ts +85 -0
  166. package/dist/src/components/New/FileIcon/FileIcon.d.ts +61 -0
  167. package/dist/src/components/New/FileIcon/constants.d.ts +16 -0
  168. package/dist/src/components/New/FileIcon/icons/FileGlyph.d.ts +18 -0
  169. package/dist/src/components/New/FileIcon/icons/FolderGlyph.d.ts +17 -0
  170. package/dist/src/components/New/FileName/FileName.d.ts +79 -0
  171. package/dist/src/components/New/FolderName/FolderName.d.ts +37 -0
  172. package/dist/src/components/New/Grid/constants.d.ts +6 -4
  173. package/dist/src/components/New/InlineSelect/InlineSelect.d.ts +16 -1
  174. package/dist/src/components/New/InteractiveTooltip/InteractiveTooltip.d.ts +13 -2
  175. package/dist/src/components/New/InteractiveTooltip/constants.d.ts +5 -4
  176. package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +3 -0
  177. package/dist/src/components/New/Notification/Notification.d.ts +18 -0
  178. package/dist/src/components/New/Popup/Popup.d.ts +8 -1
  179. package/dist/src/components/New/Popup/constants.d.ts +1 -1
  180. package/dist/src/components/New/SchemaRenderer/SchemaRenderer.d.ts +38 -0
  181. package/dist/src/components/New/SchemaRenderer/components/SchemaAnyOfEditor.d.ts +37 -0
  182. package/dist/src/components/New/SchemaRenderer/components/SchemaArrayEditor.d.ts +35 -0
  183. package/dist/src/components/New/SchemaRenderer/components/SchemaField.d.ts +33 -0
  184. package/dist/src/components/New/SchemaRenderer/components/SchemaFieldContent.d.ts +30 -0
  185. package/dist/src/components/New/SchemaRenderer/components/SchemaJsonEditor.d.ts +29 -0
  186. package/dist/src/components/New/SchemaRenderer/components/SchemaKeyValueEditor.d.ts +37 -0
  187. package/dist/src/components/New/SchemaRenderer/components/SchemaObjectEditor.d.ts +32 -0
  188. package/dist/src/components/New/SchemaRenderer/components/SchemaOneOfEditor.d.ts +39 -0
  189. package/dist/src/components/New/SchemaRenderer/components/SchemaPrimitiveField.d.ts +38 -0
  190. package/dist/src/components/New/SchemaRenderer/components/SchemaSection.d.ts +39 -0
  191. package/dist/src/components/New/SchemaRenderer/context.d.ts +8 -0
  192. package/dist/src/components/New/SchemaRenderer/types.d.ts +76 -0
  193. package/dist/src/components/New/Select/CollapsedSelectTags.d.ts +22 -0
  194. package/dist/src/components/New/Select/MultiSelectTags.d.ts +5 -0
  195. package/dist/src/components/New/Select/Select.d.ts +9 -0
  196. package/dist/src/components/New/Select/constants.d.ts +3 -2
  197. package/dist/src/components/New/SharedEntityIndicator/SharedEntityIndicator.d.ts +35 -0
  198. package/dist/src/components/New/SideDrawer/SideDrawer.d.ts +100 -0
  199. package/dist/src/components/New/Slider/Slider.d.ts +29 -1
  200. package/dist/src/components/New/Slider/utils.d.ts +14 -0
  201. package/dist/src/components/New/Slider/utils.spec.d.ts +1 -0
  202. package/dist/src/components/New/Tabs/Tabs.d.ts +54 -6
  203. package/dist/src/components/New/Tooltip/constants.d.ts +5 -3
  204. package/dist/src/components/New/TransferQueue/TransferQueue.d.ts +139 -0
  205. package/dist/src/components/New/TransferQueue/TransferQueueHeader.d.ts +16 -0
  206. package/dist/src/components/New/TransferQueue/TransferQueueRow.d.ts +10 -0
  207. package/dist/src/components/New/TransferQueue/constants.d.ts +6 -0
  208. package/dist/src/components/New/constants/overlay.d.ts +13 -0
  209. package/dist/src/components/Popup/constants.d.ts +1 -1
  210. package/dist/src/components/SchemaRenderer/types.d.ts +5 -93
  211. package/dist/src/components/SchemaRenderer/utils.d.ts +1 -17
  212. package/dist/src/constants/public-class-names.d.ts +64 -3
  213. package/dist/src/constants/schema-renderer.d.ts +2 -0
  214. package/dist/src/index.d.ts +37 -3
  215. package/dist/src/models/json-schema.d.ts +71 -0
  216. package/dist/src/types/accordion.d.ts +7 -0
  217. package/dist/src/types/avatar.d.ts +7 -0
  218. package/dist/src/types/badge.d.ts +16 -0
  219. package/dist/src/types/breadcrumbs.d.ts +9 -0
  220. package/dist/src/types/button.d.ts +1 -0
  221. package/dist/src/types/entity-type.d.ts +9 -0
  222. package/dist/src/types/json-schema.d.ts +22 -0
  223. package/dist/src/types/tooltip.d.ts +4 -0
  224. package/dist/src/types/transfer-queue.d.ts +10 -0
  225. package/dist/src/utils/__tests__/avatar.spec.d.ts +1 -0
  226. package/dist/src/utils/avatar.d.ts +12 -0
  227. package/dist/src/utils/json-schema.d.ts +23 -0
  228. package/dist/src/utils/sub-menu-floating.d.ts +7 -4
  229. package/dist/types/accordion.js +4 -0
  230. package/dist/types/avatar.js +4 -0
  231. package/dist/types/badge.js +5 -0
  232. package/dist/types/breadcrumbs.js +4 -0
  233. package/dist/types/button.js +3 -3
  234. package/dist/types/entity-type.js +4 -0
  235. package/dist/types/json-schema.js +7 -0
  236. package/dist/types/tooltip.js +3 -2
  237. package/dist/types/transfer-queue.js +4 -0
  238. package/dist/use-file-manager-tabs-Bzzwwcgk.cjs +3 -0
  239. package/dist/utils/avatar.js +22 -0
  240. package/dist/{components/SchemaRenderer/utils.js → utils/json-schema.js} +22 -20
  241. package/dist/utils/merge-classes.js +12 -5
  242. package/dist/utils/sub-menu-floating.js +99 -54
  243. package/package.json +4 -9
  244. package/dist/DateCellRenderer-C3e61i75.cjs +0 -1
  245. package/dist/IconButton-DWqoaBWf.cjs +0 -1
  246. package/dist/MarkdownEditor-jQ8nDJfx.cjs +0 -1
  247. package/dist/MarkdownEditorContainer-Bzcnoemw.cjs +0 -1
  248. package/dist/lazy-tfN4sKhq.cjs +0 -1
  249. package/dist/merge-classes-Dipy1Ih1.cjs +0 -1
  250. package/dist/use-file-manager-tabs-9DWkp9IJ.cjs +0 -3
@@ -0,0 +1,119 @@
1
+ import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
+ import { IconX as d, IconCheck as u, IconAlertCircleFilled as f, IconAlertTriangleFilled as g } from "@tabler/icons-react";
3
+ import { EllipsisTooltip as I } from "../EllipsisTooltip/EllipsisTooltip.js";
4
+ import { FileIcon as h } from "../FileIcon/FileIcon.js";
5
+ import { GhostIconButton as S } from "../IconButton/IconButtonWrappers.js";
6
+ import { Tooltip as x } from "../Tooltip/Tooltip.js";
7
+ import { DIAL_KIT_ICON_STROKE as m } from "../constants/icon.js";
8
+ import { Spinner as y } from "../../Spinner/Spinner.js";
9
+ import { DIAL_ICON_SIZE as t } from "../../../constants/icon.js";
10
+ import { DialItemType as N } from "../../../types/item.js";
11
+ import { ElementSize as T } from "../../../types/size.js";
12
+ import { TransferQueueItemStatus as s } from "../../../types/transfer-queue.js";
13
+ import { mergeClasses as i } from "../../../utils/merge-classes.js";
14
+ import { STATUS_SLOT_CLASS as c } from "./constants.js";
15
+ const p = ({ message: e, isError: a }) => /* @__PURE__ */ r(x, { tooltip: e, asChild: !0, children: /* @__PURE__ */ r(
16
+ "span",
17
+ {
18
+ className: c,
19
+ role: "img",
20
+ "aria-label": e,
21
+ tabIndex: 0,
22
+ children: /* @__PURE__ */ r(
23
+ a ? f : g,
24
+ {
25
+ size: t.SM,
26
+ className: a ? "text-error" : "text-warning-icon",
27
+ "aria-hidden": !0
28
+ }
29
+ )
30
+ }
31
+ ) }), j = ({
32
+ item: e,
33
+ labels: a,
34
+ onCancel: o
35
+ }) => {
36
+ const n = e.status === s.Canceled;
37
+ return /* @__PURE__ */ l("div", { className: "group flex items-center gap-2 px-4 py-2", children: [
38
+ /* @__PURE__ */ r(
39
+ h,
40
+ {
41
+ type: N.File,
42
+ name: e.name,
43
+ size: t.MD,
44
+ className: i(n && "opacity-50"),
45
+ decorative: !0
46
+ }
47
+ ),
48
+ /* @__PURE__ */ r(
49
+ I,
50
+ {
51
+ text: e.name,
52
+ className: i(
53
+ "dial-small-text",
54
+ n ? "text-secondary" : "text-primary"
55
+ )
56
+ }
57
+ ),
58
+ e.status === s.InProgress && /* @__PURE__ */ l("div", { className: i(c, "grid"), children: [
59
+ /* @__PURE__ */ r(
60
+ y,
61
+ {
62
+ size: t.SM,
63
+ ariaLabel: a.itemProgressAriaLabel(e.name),
64
+ className: i(
65
+ "pointer-events-none col-start-1 row-start-1 transition-opacity",
66
+ o && "group-focus-within:opacity-0 group-hover:opacity-0"
67
+ )
68
+ }
69
+ ),
70
+ o && /* @__PURE__ */ r(
71
+ S,
72
+ {
73
+ "aria-label": a.cancelItemAriaLabel(e.name),
74
+ size: T.Small,
75
+ icon: /* @__PURE__ */ r(
76
+ d,
77
+ {
78
+ size: t.SM,
79
+ stroke: m,
80
+ className: "text-secondary",
81
+ "aria-hidden": !0
82
+ }
83
+ ),
84
+ onClick: () => o(e.id),
85
+ className: "col-start-1 row-start-1 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"
86
+ }
87
+ )
88
+ ] }),
89
+ e.status === s.Success && /* @__PURE__ */ r(
90
+ "span",
91
+ {
92
+ className: c,
93
+ role: "img",
94
+ "aria-label": a.successLabel,
95
+ children: /* @__PURE__ */ r(
96
+ u,
97
+ {
98
+ size: t.SM,
99
+ stroke: m,
100
+ className: "text-accent",
101
+ "aria-hidden": !0
102
+ }
103
+ )
104
+ }
105
+ ),
106
+ e.status === s.Warning && /* @__PURE__ */ r(
107
+ p,
108
+ {
109
+ message: e.message || a.warningMessage,
110
+ isError: !1
111
+ }
112
+ ),
113
+ e.status === s.Failed && /* @__PURE__ */ r(p, { message: e.message || a.failedMessage, isError: !0 }),
114
+ n && /* @__PURE__ */ r("span", { className: "dial-small-text shrink-0 text-secondary", children: a.canceledLabel })
115
+ ] });
116
+ };
117
+ export {
118
+ j as TransferQueueRow
119
+ };
@@ -0,0 +1,24 @@
1
+ const l = 8e3, a = "flex size-7 shrink-0 items-center justify-center", i = {
2
+ cancelItemAriaLabel: (e) => `Cancel "${e}"`,
3
+ itemProgressAriaLabel: (e) => `"${e}" in progress`,
4
+ successLabel: "Completed",
5
+ canceledLabel: "Canceled",
6
+ failedMessage: "Failed",
7
+ warningMessage: "Completed with warnings",
8
+ queueProgressAriaLabel: "Progress",
9
+ queueProgressValueText: (e, s) => `${e} of ${s}`,
10
+ collapseAriaLabel: "Collapse",
11
+ expandAriaLabel: "Expand",
12
+ closeAriaLabel: "Close",
13
+ closeConfirmHeader: "Close?",
14
+ closeConfirmDescriptionInProgress: "Some items are still in progress.",
15
+ closeConfirmDescriptionFailed: "Some items have failed.",
16
+ closeConfirmDescriptionMixed: "Some items are still in progress, and some have failed.",
17
+ closeConfirmLabel: "Close",
18
+ closeCancelLabel: "Cancel"
19
+ };
20
+ export {
21
+ i as DEFAULT_TRANSFER_QUEUE_LABELS,
22
+ a as STATUS_SLOT_CLASS,
23
+ l as TRANSFER_QUEUE_AUTO_CLOSE_DELAY_MS
24
+ };
@@ -1,27 +1,35 @@
1
1
  import { mergeClasses as e } from "../../../utils/merge-classes.js";
2
- const a = "rounded-xl bg-layer-raised p-1 shadow-md", l = e(
2
+ const a = "rounded-xl bg-layer-raised p-1 shadow-md", s = "flex flex-col gap-0.5", l = e(
3
3
  a,
4
4
  "w-max"
5
5
  ), r = e(
6
- "flex w-full cursor-pointer items-center gap-2 px-3 h-[40px] rounded-lg",
6
+ l,
7
+ s,
8
+ "py-2"
9
+ ), n = e(
10
+ // `shrink-0` keeps the 40px: a column squeezed by the panel's height cap
11
+ // would otherwise collapse the rows to their content.
12
+ "flex w-full shrink-0 cursor-pointer items-center gap-2 px-3 h-[40px] rounded-lg",
7
13
  "dial-small-text text-primary truncate",
8
14
  // Hover sits one step up the accent-alpha ramp from the selected tint, so a
9
15
  // hovered row reads as hovered whether or not it is also selected.
10
16
  "hover:bg-control-accent-alpha-hover",
11
17
  "focus-visible:outline focus-visible:outline-focus"
12
- ), t = "bg-control-accent-alpha", s = e(
18
+ ), t = "bg-control-accent-alpha", c = e(
13
19
  t,
14
20
  "text-accent"
15
- ), n = e(
21
+ ), m = e(
16
22
  "cursor-not-allowed text-control-disable-primary",
17
23
  "bg-transparent hover:bg-transparent"
18
- ), c = 4;
24
+ ), i = 4;
19
25
  export {
20
- c as overlayGap,
21
- r as overlayItemClassName,
22
- n as overlayItemDisabledClassName,
23
- s as overlayItemHighlightClassName,
26
+ i as overlayGap,
27
+ n as overlayItemClassName,
28
+ m as overlayItemDisabledClassName,
29
+ c as overlayItemHighlightClassName,
24
30
  t as overlayItemSelectedClassName,
31
+ s as overlayListClassName,
25
32
  l as overlaySubMenuClassName,
33
+ r as overlaySubMenuListClassName,
26
34
  a as overlaySurfaceClassName
27
35
  };
@@ -1,12 +1,12 @@
1
- import { PopupSize as e } from "../../types/popup.js";
2
- const s = "z-[52] flex items-center justify-center bg-blackout md:p-4", i = "divide-tertiary divide-y", o = "flex flex-row justify-between py-4 px-6 items-center", t = {
3
- [e.Sm]: "dial-sm-popup",
4
- [e.Md]: "dial-md-popup",
5
- [e.Lg]: "dial-lg-popup"
1
+ import { PopupSize as p } from "../../types/popup.js";
2
+ const o = "z-popup flex items-center justify-center bg-blackout md:p-4", s = "divide-tertiary divide-y", i = "flex flex-row justify-between py-4 px-6 items-center", t = {
3
+ [p.Sm]: "dial-sm-popup",
4
+ [p.Md]: "dial-md-popup",
5
+ [p.Lg]: "dial-lg-popup"
6
6
  };
7
7
  export {
8
- s as overlayBaseClassName,
9
- i as popupDividerClassName,
10
- o as popupHeaderClassName,
8
+ o as overlayBaseClassName,
9
+ s as popupDividerClassName,
10
+ i as popupHeaderClassName,
11
11
  t as popupSizeClassMap
12
12
  };
@@ -31,13 +31,13 @@ const z = ({
31
31
  a ? void 0 : "Progress"
32
32
  ),
33
33
  className: h(
34
+ "w-full overflow-hidden rounded-full bg-control-disable-primary",
35
+ u === f.Small ? "h-1" : "h-2",
36
+ g,
34
37
  /* The track is the component's root when there is no label and no
35
38
  readout to wrap it, and the public class belongs on whichever
36
39
  element that is. */
37
- !a && !r && p.progressBar,
38
- "w-full overflow-hidden rounded-full bg-control-disable-primary",
39
- u === f.Small ? "h-1" : "h-2",
40
- g
40
+ !a && !r && p.progressBar
41
41
  ),
42
42
  children: /* @__PURE__ */ i(
43
43
  "div",
@@ -52,8 +52,8 @@ const z = ({
52
52
  "div",
53
53
  {
54
54
  className: h(
55
- p.progressBar,
56
- "flex w-full flex-col gap-1"
55
+ "flex w-full flex-col gap-1",
56
+ p.progressBar
57
57
  ),
58
58
  children: [
59
59
  /* @__PURE__ */ c("div", { className: "flex items-baseline gap-2", children: [
@@ -1,14 +1,15 @@
1
1
  import { jsx as i, jsxs as f } from "react/jsx-runtime";
2
2
  import { useMemo as b, useState as q, useCallback as J, useEffect as Q } from "react";
3
3
  import { mergeClasses as U } from "../../utils/merge-classes.js";
4
- import { DEFAULT_SCHEMA_TEXTS as Y, SchemaRendererVariant as m } from "./types.js";
5
- import { SchemaRendererContext as Z } from "./context.js";
6
- import { extractDefaults as $, sortByPropertyOrder as y, resolveRef as R, toFieldLabel as F, validateRequired as k, isMissingRequiredValue as ee } from "./utils.js";
4
+ import { SchemaRendererContext as Y } from "./context.js";
5
+ import { extractDefaults as Z, sortByPropertyOrder as $, resolveRef as R, toFieldLabel as F, validateRequired as y, isMissingRequiredValue as k } from "../../utils/json-schema.js";
7
6
  import { SchemaSection as L } from "./components/SchemaSection.js";
8
7
  import { SchemaFieldContent as T } from "./components/SchemaFieldContent.js";
9
- import { SchemaField as te } from "./components/SchemaField.js";
10
- import { SchemaAdditionalPropertiesEditor as re } from "./components/SchemaAdditionalPropertiesEditor.js";
11
- const he = ({
8
+ import { SchemaField as ee } from "./components/SchemaField.js";
9
+ import { SchemaAdditionalPropertiesEditor as te } from "./components/SchemaAdditionalPropertiesEditor.js";
10
+ import { DEFAULT_SCHEMA_TEXTS as re } from "../../constants/schema-renderer.js";
11
+ import { SchemaRendererVariant as m } from "../../types/json-schema.js";
12
+ const pe = ({
12
13
  schema: r,
13
14
  defaultValue: v,
14
15
  texts: x,
@@ -26,9 +27,9 @@ const he = ({
26
27
  acceptableResourceTypes: w
27
28
  }) => {
28
29
  const E = b(
29
- () => ({ ...Y, ...x }),
30
+ () => ({ ...re, ...x }),
30
31
  [x]
31
- ), C = b(() => v || ($(r, r) ?? {}), []), [a, H] = q(C), [p, K] = q(
32
+ ), C = b(() => v || (Z(r, r) ?? {}), []), [a, H] = q(C), [p, K] = q(
32
33
  /* @__PURE__ */ new Set()
33
34
  ), _ = J((e) => {
34
35
  K((t) => t.has(e) ? t : /* @__PURE__ */ new Set([...t, e]));
@@ -41,13 +42,13 @@ const he = ({
41
42
  H(o), O?.(o), A?.(e, t);
42
43
  }, B = new Set(Object.keys(r.properties ?? {})), W = Object.keys(a).filter(
43
44
  (e) => !B.has(e)
44
- ), X = y(
45
+ ), X = $(
45
46
  Object.entries(r.properties ?? {}).filter(
46
47
  ([, e]) => !R(e, r).isHidden
47
48
  )
48
49
  ), z = r.required ?? [];
49
50
  return /* @__PURE__ */ i(
50
- Z.Provider,
51
+ Y.Provider,
51
52
  {
52
53
  value: {
53
54
  rootSchema: r,
@@ -67,7 +68,7 @@ const he = ({
67
68
  const o = R(t, r), s = o.title ?? t.title ?? F(e), d = z.includes(e), n = a[e];
68
69
  if (h === m.Flat)
69
70
  return /* @__PURE__ */ i(
70
- te,
71
+ ee,
71
72
  {
72
73
  schema: t,
73
74
  value: n,
@@ -94,7 +95,7 @@ const he = ({
94
95
  }
95
96
  )
96
97
  ] }, e);
97
- const P = k(n, o, r, e), G = e + ".", I = !S || p.has(e) || [...p].some((l) => l.startsWith(G));
98
+ const P = y(n, o, r, e), G = e + ".", I = !S || p.has(e) || [...p].some((l) => l.startsWith(G));
98
99
  return /* @__PURE__ */ i(
99
100
  L,
100
101
  {
@@ -102,7 +103,7 @@ const he = ({
102
103
  description: o.description,
103
104
  level: 0,
104
105
  defaultExpanded: u,
105
- errorCount: I ? d && ee(n) ? Math.max(P.length, 1) : P.length : 0,
106
+ errorCount: I ? d && k(n) ? Math.max(P.length, 1) : P.length : 0,
106
107
  children: /* @__PURE__ */ i(
107
108
  T,
108
109
  {
@@ -120,7 +121,7 @@ const he = ({
120
121
  }),
121
122
  W.map((e) => {
122
123
  const t = F(e), o = /* @__PURE__ */ i(
123
- re,
124
+ te,
124
125
  {
125
126
  value: a[e],
126
127
  onChange: (s) => c(e, s),
@@ -146,5 +147,5 @@ const he = ({
146
147
  );
147
148
  };
148
149
  export {
149
- he as DialSchemaRenderer
150
+ pe as DialSchemaRenderer
150
151
  };
@@ -1,9 +1,9 @@
1
1
  import { jsxs as v, jsx as c } from "react/jsx-runtime";
2
2
  import { DialSelect as x } from "../../Select/Select.js";
3
- import { JsonSchemaType as a } from "../types.js";
4
3
  import { useSchemaContext as N } from "../context.js";
5
- import { getOptionLabel as k, detectAnyOfVariant as O, resolveRef as d, extractDefaults as w } from "../utils.js";
4
+ import { getOptionLabel as k, detectAnyOfVariant as O, resolveRef as d, extractDefaults as w } from "../../../utils/json-schema.js";
6
5
  import { SchemaFieldContent as A } from "./SchemaFieldContent.js";
6
+ import { JsonSchemaType as a } from "../../../types/json-schema.js";
7
7
  const J = ({
8
8
  schema: f,
9
9
  value: n,
@@ -4,7 +4,7 @@ import { IconPlus as w } from "@tabler/icons-react";
4
4
  import { DialSelect as B } from "../../Select/Select.js";
5
5
  import { DialGhostButton as E } from "../../Button/ButtonWrappers.js";
6
6
  import { useSchemaContext as L } from "../context.js";
7
- import { resolveRef as g, getItemTitle as O, buildSummary as P, validateRequired as q, extractDefaults as A, getSchemaDefault as z } from "../utils.js";
7
+ import { resolveRef as g, getItemTitle as O, buildSummary as P, validateRequired as q, extractDefaults as A, getSchemaDefault as z } from "../../../utils/json-schema.js";
8
8
  import { SchemaSection as F } from "./SchemaSection.js";
9
9
  import { SchemaFieldContent as G } from "./SchemaFieldContent.js";
10
10
  const W = ({
@@ -1,71 +1,71 @@
1
- import { jsx as i } from "react/jsx-runtime";
1
+ import { jsx as s } from "react/jsx-runtime";
2
2
  import { DialFormItem as g } from "../../FormItem/FormItem.js";
3
- import { JsonSchemaType as A } from "../types.js";
4
- import { useSchemaContext as C } from "../context.js";
5
- import { resolveRef as E, isObjectType as I, buildSummary as O, validateRequired as b, isMissingRequiredValue as k } from "../utils.js";
6
- import { SchemaSection as w } from "./SchemaSection.js";
3
+ import { useSchemaContext as A } from "../context.js";
4
+ import { resolveRef as C, isObjectType as E, buildSummary as I, validateRequired as M, isMissingRequiredValue as O, toRequiredMessage as b } from "../../../utils/json-schema.js";
5
+ import { SchemaSection as k } from "./SchemaSection.js";
7
6
  import { SchemaFieldContent as u } from "./SchemaFieldContent.js";
8
- const q = ({
9
- schema: f,
7
+ import { JsonSchemaType as w } from "../../../types/json-schema.js";
8
+ const B = ({
9
+ schema: a,
10
10
  value: t,
11
11
  onChange: d,
12
12
  path: e,
13
- level: s = 0,
13
+ level: i = 0,
14
14
  required: r,
15
15
  label: n
16
16
  }) => {
17
17
  const {
18
18
  rootSchema: c,
19
- defaultExpanded: S = !0,
19
+ defaultExpanded: f = !0,
20
20
  touchedPaths: m = /* @__PURE__ */ new Set(),
21
21
  skipUntouched: h = !1
22
- } = C(), o = E(f, c), a = I(o), l = o.type === A.Array;
23
- if (a || l) {
24
- const j = O(t, o, c), x = b(
22
+ } = A(), o = C(a, c), S = E(o), l = o.type === w.Array;
23
+ if (S || l) {
24
+ const j = I(t, o, c), x = M(
25
25
  t,
26
26
  o,
27
27
  c,
28
28
  e.join(".")
29
29
  ), p = e.join("."), T = p + ".", F = !h || m.has(p) || [...m].some((R) => R.startsWith(T));
30
- return /* @__PURE__ */ i(
31
- w,
30
+ return /* @__PURE__ */ s(
31
+ k,
32
32
  {
33
33
  title: n ?? o.title ?? e[e.length - 1] ?? "Section",
34
34
  description: o.description,
35
- level: s,
35
+ level: i,
36
36
  summary: j,
37
37
  errorCount: F ? x.length : 0,
38
- defaultExpanded: S,
39
- children: /* @__PURE__ */ i(
38
+ defaultExpanded: f,
39
+ children: /* @__PURE__ */ s(
40
40
  u,
41
41
  {
42
42
  schema: o,
43
43
  value: t,
44
44
  onChange: d,
45
45
  path: e,
46
- level: s + 1,
46
+ level: i + 1,
47
47
  required: r
48
48
  }
49
49
  )
50
50
  }
51
51
  );
52
52
  }
53
- const y = (!h || m.has(e.join("."))) && r && k(t) ? `${n ?? "Field"} is required` : void 0;
54
- return /* @__PURE__ */ i(
53
+ const y = (!h || m.has(e.join("."))) && r && O(t) ? b(n ?? "Field") : void 0;
54
+ return /* @__PURE__ */ s(
55
55
  g,
56
56
  {
57
57
  label: n,
58
58
  required: r,
59
59
  description: o.description,
60
60
  error: y,
61
- children: /* @__PURE__ */ i(
61
+ children: /* @__PURE__ */ s(
62
62
  u,
63
63
  {
64
64
  schema: o,
65
65
  value: t,
66
66
  onChange: d,
67
67
  path: e,
68
- level: s,
68
+ level: i,
69
69
  required: r,
70
70
  suppressInlineError: !0
71
71
  }
@@ -74,5 +74,5 @@ const q = ({
74
74
  );
75
75
  };
76
76
  export {
77
- q as SchemaField
77
+ B as SchemaField
78
78
  };
@@ -1,16 +1,16 @@
1
1
  import { jsx as t, jsxs as O, Fragment as P } from "react/jsx-runtime";
2
2
  import { DialErrorText as x } from "../../CaptionText/CaptionText.js";
3
- import { JsonSchemaType as c } from "../types.js";
4
3
  import { useSchemaContext as F } from "../context.js";
5
- import { resolveRef as T, isObjectType as u, isMissingRequiredValue as A } from "../utils.js";
6
- import { SchemaObjectEditor as b } from "./SchemaObjectEditor.js";
7
- import { SchemaArrayEditor as k } from "./SchemaArrayEditor.js";
8
- import { SchemaOneOfEditor as q } from "./SchemaOneOfEditor.js";
9
- import { SchemaAnyOfEditor as M } from "./SchemaAnyOfEditor.js";
10
- import { SchemaKeyValueEditor as R } from "./SchemaKeyValueEditor.js";
11
- import { SchemaPrimitiveField as V } from "./SchemaPrimitiveField.js";
12
- import { SchemaAdditionalPropertiesEditor as w } from "./SchemaAdditionalPropertiesEditor.js";
13
- const Q = ({
4
+ import { resolveRef as T, isObjectType as u, toRequiredMessage as A, isMissingRequiredValue as b } from "../../../utils/json-schema.js";
5
+ import { SchemaObjectEditor as k } from "./SchemaObjectEditor.js";
6
+ import { SchemaArrayEditor as M } from "./SchemaArrayEditor.js";
7
+ import { SchemaOneOfEditor as R } from "./SchemaOneOfEditor.js";
8
+ import { SchemaAnyOfEditor as q } from "./SchemaAnyOfEditor.js";
9
+ import { SchemaKeyValueEditor as V } from "./SchemaKeyValueEditor.js";
10
+ import { SchemaPrimitiveField as w } from "./SchemaPrimitiveField.js";
11
+ import { SchemaAdditionalPropertiesEditor as D } from "./SchemaAdditionalPropertiesEditor.js";
12
+ import { JsonSchemaType as c } from "../../../types/json-schema.js";
13
+ const X = ({
14
14
  schema: h,
15
15
  value: i,
16
16
  onChange: f,
@@ -33,7 +33,7 @@ const Q = ({
33
33
  let o;
34
34
  if (e.oneOf)
35
35
  o = /* @__PURE__ */ t(
36
- q,
36
+ R,
37
37
  {
38
38
  schema: e,
39
39
  value: i,
@@ -44,7 +44,7 @@ const Q = ({
44
44
  );
45
45
  else if (e.anyOf && e.type !== c.Object)
46
46
  o = /* @__PURE__ */ t(
47
- M,
47
+ q,
48
48
  {
49
49
  schema: e,
50
50
  value: i,
@@ -56,7 +56,7 @@ const Q = ({
56
56
  else if (u(e)) {
57
57
  const n = e.additionalProperties != null && e.additionalProperties !== !1, a = !e.properties || Object.keys(e.properties).length === 0;
58
58
  n && a ? o = /* @__PURE__ */ t(
59
- R,
59
+ V,
60
60
  {
61
61
  schema: e,
62
62
  value: i,
@@ -65,14 +65,14 @@ const Q = ({
65
65
  level: m
66
66
  }
67
67
  ) : a && e.additionalProperties !== !1 ? o = /* @__PURE__ */ t(
68
- w,
68
+ D,
69
69
  {
70
70
  value: i,
71
71
  onChange: s,
72
72
  theme: E
73
73
  }
74
74
  ) : o = /* @__PURE__ */ t(
75
- b,
75
+ k,
76
76
  {
77
77
  schema: e,
78
78
  value: i,
@@ -83,7 +83,7 @@ const Q = ({
83
83
  );
84
84
  } else if (e.type === c.Array)
85
85
  o = /* @__PURE__ */ t(
86
- k,
86
+ M,
87
87
  {
88
88
  schema: e,
89
89
  value: i,
@@ -93,10 +93,10 @@ const Q = ({
93
93
  }
94
94
  );
95
95
  else {
96
- const n = j && p && A(i), a = !l && n ? `${e.title ?? "Field"} is required` : void 0;
96
+ const n = j && p && b(i), a = !l && n ? A(e.title ?? "Field") : void 0;
97
97
  o = /* @__PURE__ */ O(P, { children: [
98
98
  /* @__PURE__ */ t(
99
- V,
99
+ w,
100
100
  {
101
101
  schema: e,
102
102
  value: i,
@@ -110,5 +110,5 @@ const Q = ({
110
110
  return d ? d(r, e, o) : o;
111
111
  };
112
112
  export {
113
- Q as SchemaFieldContent
113
+ X as SchemaFieldContent
114
114
  };
@@ -8,13 +8,13 @@ import { DialRemoveButton as oe } from "../../RemoveButton/RemoveButton.js";
8
8
  import { DialSelect as Y } from "../../Select/Select.js";
9
9
  import { DialTooltip as ne } from "../../Tooltip/Tooltip.js";
10
10
  import { ElementSize as re } from "../../../types/size.js";
11
- import { JsonSchemaType as c } from "../types.js";
12
11
  import { useSchemaContext as q } from "../context.js";
13
- import { resolveRef as le, isObjectType as ae, inferEntryType as ie, getEntryTypeDefault as se, ENTRY_TYPE_OPTIONS as ce, buildSummary as de, validateRequired as me, extractDefaults as pe, getSchemaDefault as ye } from "../utils.js";
12
+ import { resolveRef as le, isObjectType as ae, inferEntryType as ie, getEntryTypeDefault as se, ENTRY_TYPE_OPTIONS as ce, buildSummary as de, validateRequired as me, extractDefaults as pe, getSchemaDefault as ye } from "../../../utils/json-schema.js";
14
13
  import { SchemaPrimitiveField as ue } from "./SchemaPrimitiveField.js";
15
14
  import { SchemaSection as fe } from "./SchemaSection.js";
16
15
  import { SchemaFieldContent as he } from "./SchemaFieldContent.js";
17
16
  import { SchemaAdditionalPropertiesEditor as be } from "./SchemaAdditionalPropertiesEditor.js";
17
+ import { JsonSchemaType as c } from "../../../types/json-schema.js";
18
18
  const _ = (l, d) => ({
19
19
  id: Math.random().toString(36).slice(2),
20
20
  key: l,
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { useSchemaContext as v } from "../context.js";
3
- import { resolveRef as i, sortByPropertyOrder as g, toFieldLabel as j } from "../utils.js";
3
+ import { resolveRef as i, sortByPropertyOrder as g, toFieldLabel as j } from "../../../utils/json-schema.js";
4
4
  import { SchemaField as q } from "./SchemaField.js";
5
5
  const N = ({
6
6
  schema: c,
@@ -2,11 +2,11 @@ import { jsxs as v, jsx as o } from "react/jsx-runtime";
2
2
  import { useId as q } from "react";
3
3
  import { DialSelect as y } from "../../Select/Select.js";
4
4
  import { DialRadioButton as j } from "../../RadioButton/RadioButton.js";
5
- import { SchemaDisplayMode as P, SchemaOrientation as B } from "../types.js";
6
- import { useSchemaContext as G } from "../context.js";
7
- import { resolveRef as a, getOptionLabel as L, extractDefaults as _ } from "../utils.js";
5
+ import { useSchemaContext as B } from "../context.js";
6
+ import { resolveRef as a, getOptionLabel as G, extractDefaults as P } from "../../../utils/json-schema.js";
8
7
  import { SchemaObjectEditor as w } from "./SchemaObjectEditor.js";
9
- import { SchemaFieldContent as C } from "./SchemaFieldContent.js";
8
+ import { SchemaFieldContent as _ } from "./SchemaFieldContent.js";
9
+ import { SchemaDisplayMode as C, SchemaOrientation as L } from "../../../types/json-schema.js";
10
10
  const Z = ({
11
11
  schema: x,
12
12
  value: c,
@@ -14,17 +14,17 @@ const Z = ({
14
14
  path: u,
15
15
  level: S
16
16
  }) => {
17
- const { rootSchema: i, texts: A, readonly: b = !1 } = G(), p = q(), O = x.discriminator;
17
+ const { rootSchema: i, texts: A, readonly: b = !1 } = B(), p = q(), O = x.discriminator;
18
18
  if (O) {
19
19
  const r = O.propertyName, e = O.mapping, n = Object.keys(e).map((s) => ({
20
20
  value: s,
21
21
  label: s
22
22
  })), l = typeof c == "object" && c !== null ? c[r] : void 0, g = l ? a({ $ref: e[l] }, i) : void 0, I = (s) => {
23
- const m = a({ $ref: e[s] }, i), t = _(m, i) ?? {};
23
+ const m = a({ $ref: e[s] }, i), t = P(m, i) ?? {};
24
24
  d({ ...t, [r]: s });
25
25
  };
26
- if (x.discriminatorDisplay === P.Radio) {
27
- const s = x.discriminatorOrientation === B.Row, m = l ? (() => {
26
+ if (x.discriminatorDisplay === C.Radio) {
27
+ const s = x.discriminatorOrientation === L.Row, m = l ? (() => {
28
28
  const t = a(
29
29
  { $ref: e[l] },
30
30
  i
@@ -127,12 +127,12 @@ const Z = ({
127
127
  }
128
128
  return 0;
129
129
  })(), D = (r) => {
130
- const e = a(f[r], i), n = _(e, i);
130
+ const e = a(f[r], i), n = P(e, i);
131
131
  d(n ?? null);
132
132
  }, R = f[$];
133
- if (x.discriminatorDisplay === P.Radio)
133
+ if (x.discriminatorDisplay === C.Radio)
134
134
  return /* @__PURE__ */ o("div", { role: "radiogroup", className: "flex flex-col gap-2", children: f.map((r, e) => {
135
- const n = a(r, i), l = L(r, i) ?? `Option ${e + 1}`, g = $ === e;
135
+ const n = a(r, i), l = G(r, i) ?? `Option ${e + 1}`, g = $ === e;
136
136
  return /* @__PURE__ */ v("div", { className: "flex flex-col", children: [
137
137
  /* @__PURE__ */ o(
138
138
  j,
@@ -147,7 +147,7 @@ const Z = ({
147
147
  }
148
148
  ),
149
149
  g && n && /* @__PURE__ */ o("div", { className: "ml-6 mt-2", children: /* @__PURE__ */ o(
150
- C,
150
+ _,
151
151
  {
152
152
  schema: n,
153
153
  value: c,
@@ -176,7 +176,7 @@ const Z = ({
176
176
  }
177
177
  ) }),
178
178
  R && /* @__PURE__ */ o("div", { className: "pl-3 border-l-2 border-secondary", children: /* @__PURE__ */ o(
179
- C,
179
+ _,
180
180
  {
181
181
  schema: R,
182
182
  value: c,