@epam/ai-dial-ui-kit 0.13.0-dev.52 → 0.13.0-dev.59

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 (134) hide show
  1. package/README.md +5 -0
  2. package/dist/CHANGELOG.md +10 -0
  3. package/dist/{JsonEditor-Ce0Hs40A.js → JsonEditor-CV2FUqAs.js} +1 -1
  4. package/dist/{JsonEditor-DTtTF4El.cjs → JsonEditor-DPQ_6Rk7.cjs} +1 -1
  5. package/dist/{MarkdownEditor-C105uDu_.cjs → MarkdownEditor-BEjYBI-4.cjs} +1 -1
  6. package/dist/{MarkdownEditor-hOjcKVaa.cjs → MarkdownEditor-BpG28sAL.cjs} +1 -1
  7. package/dist/{MarkdownEditor-C14oRqaF.js → MarkdownEditor-CfnRGBST.js} +1 -1
  8. package/dist/{MarkdownEditor-Df72yDza.js → MarkdownEditor-DT_WX1cP.js} +1 -1
  9. package/dist/components-manifest.json +530 -110
  10. package/dist/dial-ui-kit.cjs.js +1 -1
  11. package/dist/dial-ui-kit.es.js +98 -92
  12. package/dist/{index-C7_BAjRC.cjs → index-EGRzQwVW.cjs} +35 -35
  13. package/dist/{index-Cr2qLKjP.js → index-qU5tP4t0.js} +15484 -14880
  14. package/dist/index.css +6 -2
  15. package/dist/migration-guides/0.13.0/caption-semi-text-lead-rename.md +82 -0
  16. package/dist/migration-guides/0.13.0/typography-heading-scale-shift.md +93 -0
  17. package/dist/migration-guides/README.md +2 -0
  18. package/dist/src/components/Accordion/Accordion.d.ts +1 -0
  19. package/dist/src/components/Analytics/Bar/Bar.d.ts +1 -0
  20. package/dist/src/components/Analytics/BarGroup/BarGroup.d.ts +1 -0
  21. package/dist/src/components/Analytics/Card/Card.d.ts +1 -0
  22. package/dist/src/components/Analytics/ErrorTag/ErrorTag.d.ts +1 -0
  23. package/dist/src/components/Analytics/Histogram/Histogram.d.ts +1 -0
  24. package/dist/src/components/AutocompleteInput/AutocompleteInputValue.d.ts +1 -0
  25. package/dist/src/components/Breadcrumb/Breadcrumb.d.ts +1 -0
  26. package/dist/src/components/Breadcrumb/BreadcrumbItem.d.ts +3 -0
  27. package/dist/src/components/Button/Button.d.ts +1 -0
  28. package/dist/src/components/Button/ButtonWrappers.d.ts +1 -0
  29. package/dist/src/components/ButtonDropdown/ButtonDropdown.d.ts +1 -0
  30. package/dist/src/components/CaptionText/CaptionText.d.ts +1 -0
  31. package/dist/src/components/Checkbox/Checkbox.d.ts +1 -0
  32. package/dist/src/components/CloseButton/CloseButton.d.ts +1 -0
  33. package/dist/src/components/CollapsibleSidebar/CollapsibleSidebar.d.ts +1 -0
  34. package/dist/src/components/ConfirmationPopup/ConfirmationPopup.d.ts +1 -0
  35. package/dist/src/components/DraggableItem/DraggableItem.d.ts +1 -0
  36. package/dist/src/components/DropdownIcon/DropdownIcon.d.ts +1 -0
  37. package/dist/src/components/EllipsisTooltip/EllipsisTooltip.d.ts +1 -0
  38. package/dist/src/components/FabButton/FabButton.d.ts +1 -0
  39. package/dist/src/components/FileIcon/FileIcon.d.ts +1 -0
  40. package/dist/src/components/FileManager/FileManager.d.ts +1 -0
  41. package/dist/src/components/FileManager/components/DestinationFolderPopup/DestinationFolderPopup.d.ts +1 -0
  42. package/dist/src/components/FileManager/components/FoldersTree/FoldersTree.d.ts +1 -0
  43. package/dist/src/components/FileName/FileName.d.ts +1 -0
  44. package/dist/src/components/FolderName/FolderName.d.ts +1 -0
  45. package/dist/src/components/FormItem/FormItem.d.ts +1 -0
  46. package/dist/src/components/FormPopup/FormPopup.d.ts +1 -0
  47. package/dist/src/components/Grid/Grid.d.ts +1 -0
  48. package/dist/src/components/Grid/renderers/DateCellRenderer.d.ts +1 -0
  49. package/dist/src/components/Icon/Icon.d.ts +1 -0
  50. package/dist/src/components/IconButton/IconButton.d.ts +1 -0
  51. package/dist/src/components/IconButton/IconButtonWrappers.d.ts +1 -0
  52. package/dist/src/components/Input/Input.d.ts +1 -0
  53. package/dist/src/components/InputPopup/InputPopup.d.ts +1 -0
  54. package/dist/src/components/JsonEditor/JsonEditor.d.ts +1 -0
  55. package/dist/src/components/Label/Label.d.ts +1 -0
  56. package/dist/src/components/LabelledText/LabelledText.d.ts +1 -0
  57. package/dist/src/components/LoadFileArea/LoadFileArea.d.ts +1 -0
  58. package/dist/src/components/LoadFileArea/LoadFileAreaField.d.ts +1 -0
  59. package/dist/src/components/Loader/Loader.d.ts +1 -0
  60. package/dist/src/components/MarkdownEditor/MarkdownEditor.d.ts +1 -0
  61. package/dist/src/components/New/Accordion/Accordion.d.ts +1 -0
  62. package/dist/src/components/New/Button/Button.d.ts +12 -1
  63. package/dist/src/components/New/Button/ButtonWrappers.d.ts +11 -0
  64. package/dist/src/components/New/ButtonDropdown/ButtonDropdown.d.ts +5 -4
  65. package/dist/src/components/New/Calendar/Calendar.d.ts +1 -0
  66. package/dist/src/components/New/Calendar/constants.d.ts +2 -2
  67. package/dist/src/components/New/CaptionText/CaptionText.d.ts +1 -0
  68. package/dist/src/components/New/CardShell/CardShell.d.ts +1 -0
  69. package/dist/src/components/New/CloseButton/CloseButton.d.ts +1 -0
  70. package/dist/src/components/New/ConfirmationPopup/ConfirmationPopup.d.ts +1 -0
  71. package/dist/src/components/New/Dropdown/Dropdown.d.ts +1 -0
  72. package/dist/src/components/New/FileDropzone/FileDropzone.d.ts +72 -0
  73. package/dist/src/components/New/FolderPath/FolderPath.d.ts +1 -0
  74. package/dist/src/components/New/Highlight/Highlight.d.ts +4 -1
  75. package/dist/src/components/New/IconButton/IconButton.d.ts +1 -0
  76. package/dist/src/components/New/IconButton/IconButtonWrappers.d.ts +1 -0
  77. package/dist/src/components/New/InfoButton/InfoButton.d.ts +1 -0
  78. package/dist/src/components/New/InlineSelect/InlineSelect.d.ts +2 -1
  79. package/dist/src/components/New/Input/Button/constants.d.ts +1 -1
  80. package/dist/src/components/New/Input/Input.d.ts +9 -2
  81. package/dist/src/components/New/Label/Label.d.ts +1 -0
  82. package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +1 -0
  83. package/dist/src/components/New/Notification/Notification.d.ts +1 -0
  84. package/dist/src/components/New/NumberInput/NumberInput.d.ts +1 -0
  85. package/dist/src/components/New/PasswordInput/PasswordInput.d.ts +1 -0
  86. package/dist/src/components/New/Popup/Popup.d.ts +1 -0
  87. package/dist/src/components/New/Popup/constants.d.ts +1 -1
  88. package/dist/src/components/New/Select/MultiSelectTags.d.ts +1 -0
  89. package/dist/src/components/New/Select/Select.d.ts +1 -0
  90. package/dist/src/components/New/Select/constants.d.ts +1 -1
  91. package/dist/src/components/New/Switch/Switch.d.ts +32 -0
  92. package/dist/src/components/New/Tabs/Tabs.d.ts +59 -0
  93. package/dist/src/components/New/Tag/Tag.d.ts +45 -0
  94. package/dist/src/components/New/TagInput/TagInput.d.ts +72 -0
  95. package/dist/src/components/New/TagInput/utils.d.ts +21 -0
  96. package/dist/src/components/New/TagInput/utils.spec.d.ts +1 -0
  97. package/dist/src/components/New/Textarea/Textarea.d.ts +3 -2
  98. package/dist/src/components/New/constants/overlay.d.ts +1 -1
  99. package/dist/src/components/NoDataContent/NoDataContent.d.ts +1 -0
  100. package/dist/src/components/Notification/Notification.d.ts +1 -0
  101. package/dist/src/components/NumberInput/NumberInput.d.ts +1 -0
  102. package/dist/src/components/Pagination/Pagination.d.ts +3 -0
  103. package/dist/src/components/PasswordInput/PasswordInput.d.ts +1 -0
  104. package/dist/src/components/Popup/Popup.d.ts +1 -0
  105. package/dist/src/components/ProgressBar/ProgressBar.d.ts +3 -0
  106. package/dist/src/components/RadioButton/RadioButton.d.ts +1 -0
  107. package/dist/src/components/RadioGroup/RadioGroup.d.ts +1 -0
  108. package/dist/src/components/RadioGroupPopupField/RadioGroupPopupField.d.ts +1 -0
  109. package/dist/src/components/RemoveButton/RemoveButton.d.ts +1 -0
  110. package/dist/src/components/ResizableContainer/ConditionalResizableContainer.d.ts +1 -0
  111. package/dist/src/components/ResizableContainer/ResizableContainer.d.ts +1 -0
  112. package/dist/src/components/SchemaRenderer/SchemaRenderer.d.ts +1 -0
  113. package/dist/src/components/Search/Search.d.ts +1 -0
  114. package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +1 -0
  115. package/dist/src/components/Select/Select.d.ts +1 -0
  116. package/dist/src/components/SelectField/SelectField.d.ts +1 -0
  117. package/dist/src/components/SharedEntityIndicator/SharedEntityIndicator.d.ts +1 -0
  118. package/dist/src/components/Skeleton/Skeleton.d.ts +1 -0
  119. package/dist/src/components/Slider/Slider.d.ts +1 -0
  120. package/dist/src/components/Spinner/Spinner.d.ts +3 -0
  121. package/dist/src/components/Steps/Steps.d.ts +1 -0
  122. package/dist/src/components/Switch/Switch.d.ts +1 -0
  123. package/dist/src/components/Tabs/Tabs.d.ts +1 -0
  124. package/dist/src/components/Tag/Tag.d.ts +1 -0
  125. package/dist/src/components/TagInput/TagInput.d.ts +1 -0
  126. package/dist/src/components/Textarea/Textarea.d.ts +1 -0
  127. package/dist/src/components/Tooltip/Tooltip.d.ts +1 -0
  128. package/dist/src/components/Tooltip/TooltipContainer.d.ts +1 -0
  129. package/dist/src/components/Tooltip/TooltipContent.d.ts +1 -0
  130. package/dist/src/components/Tooltip/TooltipTrigger.d.ts +1 -0
  131. package/dist/src/index.d.ts +11 -0
  132. package/dist/src/utils/__tests__/file-accept.spec.d.ts +1 -0
  133. package/dist/src/utils/file-accept.d.ts +16 -0
  134. package/package.json +1 -1
package/README.md CHANGED
@@ -194,6 +194,10 @@ pseudo-element. The visible control is unchanged, so layouts keep their existing
194
194
  metrics. WCAG 2.5.5 measures the region that accepts a pointer action, not the
195
195
  visible decoration.
196
196
 
197
+ A control too small for a 44px target to clear its neighbours uses
198
+ `dial-kit-minimum-target` instead, which applies the same pseudo-element at the
199
+ Level AA minimum of 24×24 (WCAG 2.5.8).
200
+
197
201
  These controls are **documented exceptions** and meet Level AA (2.5.8, 24×24) but
198
202
  not AAA:
199
203
 
@@ -204,6 +208,7 @@ not AAA:
204
208
  | `DialCloseButton` | icon-sized | Renders `h-auto w-auto`, so its target follows the caller's icon size |
205
209
  | `DialInfoButton`, `InfoButton` | 24×24 | Fixed small affordance, same overlap constraint as small variants |
206
210
  | Standard 2.0 fields (`Input`, `Select`) | 40px tall | The pointer target spans the full field width but stays 4px short of 44 vertically; the height is a shared form design token, not a per-control choice |
211
+ | `Tag` remove button | 16×16 rendered | Reaches 24×24 through `dial-kit-minimum-target`; a 44px target would overhang 14px per side and swallow the neighbouring tags of a `TagInput` row |
207
212
 
208
213
  Give small-variant controls at least 20px of surrounding space if you need to reach
209
214
  AAA in a specific layout, or use the standard size instead.
package/dist/CHANGELOG.md CHANGED
@@ -15,6 +15,10 @@ Versions match the git tags on the `development` branch.
15
15
  See [migration guide](migration-guides/0.13.0/spinner-dial-prefix-removal.md).
16
16
  - **Border token `focus` → `focus-black`** — the token behind `border-focus` / `outline-focus` was named for its state rather than its value, which left no room for the sibling `focus-blue` token. It is now `focus-black`, backed by `--stroke-focus-black` instead of `--stroke-focus`. The colour is unchanged (`#161B2D`).
17
17
  See [migration guide](migration-guides/0.13.0/focus-border-token-rename.md).
18
+ - **Typography — heading classes shifted one step down the scale** — the design scale has three display sizes, but the kit had only two, so its 22px step was shipping as `dial-h1-text` and every heading class sat one step above the size design assigned it. `dial-display3-text` now carries 22px/32px, and `dial-h1-text` → 20px/28px, `dial-h2-text` → 18px/26px, `dial-h3-text` → 16px/24px. Bare `h1`/`h2`/`h3` elements shrink with them, as does the 1.0 `DialPopup` title (18px → 16px). To keep a rendered size, move the class name up one step (`dial-h1-text` → `dial-display3-text`, and so on).
19
+ See [migration guide](migration-guides/0.13.0/typography-heading-scale-shift.md).
20
+ - **`dial-caption-semi-text` → `dial-caption-lead-semi-text`** — the design scale's only 10px semibold style is Caption Lead (Semi Bold): uppercase with `+0.06em` tracking. The class already had the tracking but neither the uppercase nor "lead" in its name. It now applies `text-transform: uppercase`, and the rename keeps that from changing existing text silently.
21
+ See [migration guide](migration-guides/0.13.0/caption-semi-text-lead-rename.md).
18
22
  - **`Notification` (2.0) — live-region role now follows the variant** — the container was hardcoded to `role="alert"` for every variant. `role="alert"` is implicitly `aria-live="assertive"` and interrupts the screen reader, which is wrong for routine feedback and for section messages that are static page content. `error` and `warning` keep `role="alert"`; `info`, `success`, and `loading` now use the polite `role="status"`. Pass an explicit `role` to override.
19
23
  Consumers asserting `getByRole('alert')` on a non-error notification must query `status` instead.
20
24
 
@@ -34,6 +38,12 @@ Versions match the git tags on the `development` branch.
34
38
 
35
39
  ### Added
36
40
 
41
+ - **`Tag` (2.0)** — the generation 2.0 counterpart of `DialTag`: a compact label for selections, filters, and categories, with `standard` (24px) and `small` (20px) sizes, an optional icon, a `selected` state, and a removable variant. A tag given `onClick` is a keyboard-operable `role="button"`; its remove control is named `Remove <label>` and stops the click from also activating the tag. Built on 2.0 tokens and `IconButton`, so it pulls none of the 1.0 styling `DialTag` still carries.
42
+ - **`TagInput` (2.0)** — the generation 2.0 counterpart of `DialTagInput`, built on the 2.0 `Input`, so it shares its sizes, label, caption, error and disabled states. Works controlled (`value`) or uncontrolled (`defaultValue`), commits on Enter or comma, removes the last tag on Backspace in an empty input, and renders the tags as a named list of `Tag`s rather than as unlabelled markup. `collapseTagOverflow` keeps the row on one line behind a `+N` chip that names the tags it hides.
43
+ - **`Input` (2.0) — `wrapperRef`** — exposes the bordered field wrapper, so a caller rendering into the `children` slot can measure the space its content has to fit into. The input itself only ever reports its own share of the row.
44
+ - **`dial-kit-minimum-target`** — the `dial-kit-enhanced-target` mechanism at WCAG 2.5.8's Level AA minimum of 24×24, for controls where the 44px AAA target would overhang far enough to swallow their neighbours. Used by the `Tag` remove button; the rendered size is untouched.
45
+ - **Typography — `dial-display3-text` and `dial-tiny-lead-semi-text`** — the two steps the design scale defined but the kit never shipped: Display 3 (22px/32px semibold) and Tiny Text Lead (Semi Bold) (12px/16px semibold, `+0.03em`, uppercase). The `dial-*-text` scale now covers every row of the design table.
46
+ - **Typography — `dial-code-text` names a monospace face** — it previously inherited the body font despite being the Code style. It resolves through `var(--theme-font-mono, var(--font-fira-code, 'Fira Code'))` before the system monospace stack, mirroring the existing `--theme-font` / `--font-inter` hook. The kit ships no font file; hosts that want Fira Code load it themselves.
37
47
  - **Enhanced pointer targets** — standard-size buttons expose a 44×44 pointer target (WCAG 2.5.5, Level AAA) via the `dial-kit-enhanced-target` utility, with no change to their rendered size. See the [Accessibility section of the README](README.md#-accessibility) for the documented exceptions.
38
48
  - **MCP server — generation-aware component discovery** — component entries carry `generation` (`1.0` | `2.0`), and a 1.0 component carries `supersededBy` naming its 2.0 replacement (e.g. `DialButton` → `Button`). `searchEntity` ranks 2.0 above 1.0 and reports a **Use instead** column; `getEntityDetails` flags a superseded component and, on a name miss, suggests the other generation's spelling. Both are derived automatically from component location and Storybook category — there is no list to maintain. See the [MCP Server Guide](src/mcp/README.md).
39
49
 
@@ -1,4 +1,4 @@
1
- import { E as o, j as l } from "./index-Cr2qLKjP.js";
1
+ import { E as o, j as l } from "./index-qU5tP4t0.js";
2
2
  import { Editor as u } from "@monaco-editor/react";
3
3
  const c = {
4
4
  [o.dark]: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-C7_BAjRC.cjs"),l=require("@monaco-editor/react"),u={[r.EditorThemes.dark]:{base:"vs-dark",inherit:!1,rules:[{token:"string.key.json",foreground:"#37BABC"},{token:"string.value.json",foreground:"#5C8DEA"},{token:"number",foreground:"#D97C27"},{token:"keyword.json",foreground:"#F4CE46"},{token:"delimiter",foreground:"#EEF1F7"},{token:"delimiter.bracket.json",foreground:"#A972FF"},{token:"delimiter.parenthesis",foreground:"#A972FF"}],colors:{"editor.foreground":"#F76464","editor.background":"#161B2D","editorCursor.foreground":"#EEF1F7","editor.selectionBackground":"#5C8DEA2B","editorLineNumber.foreground":"#242C42","scrollbarSlider.background":"#242C42","scrollbarSlider.hoverBackground":"#242C42","scrollbarSlider.activeBackground":"#242C42"}},[r.EditorThemes.light]:{base:"vs",inherit:!1,rules:[{token:"string.key.json",foreground:"#009D9F"},{token:"string.value.json",foreground:"#2764D9"},{token:"number",foreground:"#B25500"},{token:"keyword.json",foreground:"#3F3D25"},{token:"delimiter",foreground:"#161B2D"},{token:"delimiter.bracket.json",foreground:"#7E39EC"},{token:"delimiter.parenthesis",foreground:"#7E39EC"}],colors:{"editor.foreground":"#AE2F2F","editor.background":"#EEF1F7","editorCursor.foreground":"#161B2D","editor.selectionBackground":"#5C8DEA2B","editorLineNumber.foreground":"#242C42","scrollbarSlider.background":"#242C42","scrollbarSlider.hoverBackground":"#242C42","scrollbarSlider.activeBackground":"#242C42"}}},c=({value:n,onChange:t,onValidateJSON:i,options:s,currentTheme:e,themesConfig:d=u})=>{function a(o){o?.editor?.defineTheme(e,d[e]),o.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,enableSchemaRequest:!1,schemas:[{uri:"http://custom-schema/object-required.json",fileMatch:["*"],schema:{type:"object",description:"Top-level value must be an object",additionalProperties:!0}}]})}return r.jsxRuntimeExports.jsx(l.Editor,{beforeMount:a,height:"100%",defaultLanguage:"json",value:n,onChange:t,theme:e,onValidate:i,options:{minimap:{enabled:!1},formatOnType:!0,formatOnPaste:!0,selectOnLineNumbers:!1,automaticLayout:!0,scrollBeyondLastLine:!1,wordWrap:"on",smoothScrolling:!0,overviewRulerLanes:0,scrollbar:{horizontal:"hidden",verticalScrollbarSize:4,verticalSliderSize:4},...s??{}}})};exports.DialJsonEditor=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-EGRzQwVW.cjs"),l=require("@monaco-editor/react"),u={[r.EditorThemes.dark]:{base:"vs-dark",inherit:!1,rules:[{token:"string.key.json",foreground:"#37BABC"},{token:"string.value.json",foreground:"#5C8DEA"},{token:"number",foreground:"#D97C27"},{token:"keyword.json",foreground:"#F4CE46"},{token:"delimiter",foreground:"#EEF1F7"},{token:"delimiter.bracket.json",foreground:"#A972FF"},{token:"delimiter.parenthesis",foreground:"#A972FF"}],colors:{"editor.foreground":"#F76464","editor.background":"#161B2D","editorCursor.foreground":"#EEF1F7","editor.selectionBackground":"#5C8DEA2B","editorLineNumber.foreground":"#242C42","scrollbarSlider.background":"#242C42","scrollbarSlider.hoverBackground":"#242C42","scrollbarSlider.activeBackground":"#242C42"}},[r.EditorThemes.light]:{base:"vs",inherit:!1,rules:[{token:"string.key.json",foreground:"#009D9F"},{token:"string.value.json",foreground:"#2764D9"},{token:"number",foreground:"#B25500"},{token:"keyword.json",foreground:"#3F3D25"},{token:"delimiter",foreground:"#161B2D"},{token:"delimiter.bracket.json",foreground:"#7E39EC"},{token:"delimiter.parenthesis",foreground:"#7E39EC"}],colors:{"editor.foreground":"#AE2F2F","editor.background":"#EEF1F7","editorCursor.foreground":"#161B2D","editor.selectionBackground":"#5C8DEA2B","editorLineNumber.foreground":"#242C42","scrollbarSlider.background":"#242C42","scrollbarSlider.hoverBackground":"#242C42","scrollbarSlider.activeBackground":"#242C42"}}},c=({value:n,onChange:t,onValidateJSON:i,options:s,currentTheme:e,themesConfig:d=u})=>{function a(o){o?.editor?.defineTheme(e,d[e]),o.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,enableSchemaRequest:!1,schemas:[{uri:"http://custom-schema/object-required.json",fileMatch:["*"],schema:{type:"object",description:"Top-level value must be an object",additionalProperties:!0}}]})}return r.jsxRuntimeExports.jsx(l.Editor,{beforeMount:a,height:"100%",defaultLanguage:"json",value:n,onChange:t,theme:e,onValidate:i,options:{minimap:{enabled:!1},formatOnType:!0,formatOnPaste:!0,selectOnLineNumbers:!1,automaticLayout:!0,scrollBeyondLastLine:!1,wordWrap:"on",smoothScrolling:!0,overviewRulerLanes:0,scrollbar:{horizontal:"hidden",verticalScrollbarSize:4,verticalSliderSize:4},...s??{}}})};exports.DialJsonEditor=c;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-C7_BAjRC.cjs"),c=require("@uiw/react-md-editor"),x=({value:t,onChange:s,height:r=300,preview:i="edit",theme:n=e.EditorThemes.dark,className:a,placeholder:o})=>{const d=o!==void 0&&!t;return e.jsxRuntimeExports.jsxs("div",{"data-color-mode":n,className:e.mergeClasses("relative",a),children:[e.jsxRuntimeExports.jsx(c,{value:t,onChange:l=>s?.(l||""),height:r,preview:i}),d&&e.jsxRuntimeExports.jsx("div",{className:"pointer-events-none absolute left-0 top-8 px-2 dial-small-text text-secondary opacity-40",children:o})]})};exports.DialMarkdownEditor=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-EGRzQwVW.cjs"),c=require("@uiw/react-md-editor"),x=({value:t,onChange:s,height:r=300,preview:i="edit",theme:n=e.EditorThemes.dark,className:a,placeholder:o})=>{const d=o!==void 0&&!t;return e.jsxRuntimeExports.jsxs("div",{"data-color-mode":n,className:e.mergeClasses("relative",a),children:[e.jsxRuntimeExports.jsx(c,{value:t,onChange:l=>s?.(l||""),height:r,preview:i}),d&&e.jsxRuntimeExports.jsx("div",{className:"pointer-events-none absolute left-0 top-8 px-2 dial-small-text text-secondary opacity-40",children:o})]})};exports.DialMarkdownEditor=x;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-C7_BAjRC.cjs"),x=require("react"),e=require("@uiw/react-md-editor"),t=require("@tabler/icons-react"),o=s.DIAL_ICON_SIZE.MD,i=(n,r)=>({...n,icon:r}),p=()=>[i(e.bold,s.jsxRuntimeExports.jsx(t.IconBold,{size:o})),i(e.italic,s.jsxRuntimeExports.jsx(t.IconItalic,{size:o})),i(e.strikethrough,s.jsxRuntimeExports.jsx(t.IconStrikethrough,{size:o})),e.divider,e.group([e.heading1,e.heading2,e.heading3],{name:"heading",groupName:"heading",icon:s.jsxRuntimeExports.jsx(t.IconTextSize,{size:o}),buttonProps:{"aria-label":"Text style",title:"Text style"}}),e.divider,i(e.unorderedListCommand,s.jsxRuntimeExports.jsx(t.IconList,{size:o})),i(e.orderedListCommand,s.jsxRuntimeExports.jsx(t.IconListNumbers,{size:o})),e.divider,i(e.quote,s.jsxRuntimeExports.jsx(t.IconQuote,{size:o})),i(e.link,s.jsxRuntimeExports.jsx(t.IconLink,{size:o})),i(e.code,s.jsxRuntimeExports.jsx(t.IconCode,{size:o})),e.divider,i(e.table,s.jsxRuntimeExports.jsx(t.IconColumns2,{size:o}))],I=()=>[i(e.codeEdit,s.jsxRuntimeExports.jsx(t.IconPencil,{size:o})),i(e.codeLive,s.jsxRuntimeExports.jsx(t.IconLayoutColumns,{size:o})),i(e.codePreview,s.jsxRuntimeExports.jsx(t.IconEye,{size:o})),e.divider,i(e.fullscreen,s.jsxRuntimeExports.jsx(t.IconMaximize,{size:o}))],R=({value:n,onChange:r,height:d=300,theme:c=s.EditorThemes.light,className:m,placeholder:a,defaultPreview:u="edit"})=>{const j=x.useMemo(()=>p(),[]),l=x.useMemo(()=>I(),[]);return s.jsxRuntimeExports.jsx("div",{"data-color-mode":c,className:s.mergeClasses("dial-kit-markdown-editor",m),children:s.jsxRuntimeExports.jsx(e,{value:n,onChange:E=>r?.(E||""),height:d,preview:u,commands:j,extraCommands:l,textareaProps:{placeholder:a}})})};exports.MarkdownEditor=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-EGRzQwVW.cjs"),x=require("react"),e=require("@uiw/react-md-editor"),t=require("@tabler/icons-react"),o=s.DIAL_ICON_SIZE.MD,i=(n,r)=>({...n,icon:r}),p=()=>[i(e.bold,s.jsxRuntimeExports.jsx(t.IconBold,{size:o})),i(e.italic,s.jsxRuntimeExports.jsx(t.IconItalic,{size:o})),i(e.strikethrough,s.jsxRuntimeExports.jsx(t.IconStrikethrough,{size:o})),e.divider,e.group([e.heading1,e.heading2,e.heading3],{name:"heading",groupName:"heading",icon:s.jsxRuntimeExports.jsx(t.IconTextSize,{size:o}),buttonProps:{"aria-label":"Text style",title:"Text style"}}),e.divider,i(e.unorderedListCommand,s.jsxRuntimeExports.jsx(t.IconList,{size:o})),i(e.orderedListCommand,s.jsxRuntimeExports.jsx(t.IconListNumbers,{size:o})),e.divider,i(e.quote,s.jsxRuntimeExports.jsx(t.IconQuote,{size:o})),i(e.link,s.jsxRuntimeExports.jsx(t.IconLink,{size:o})),i(e.code,s.jsxRuntimeExports.jsx(t.IconCode,{size:o})),e.divider,i(e.table,s.jsxRuntimeExports.jsx(t.IconColumns2,{size:o}))],I=()=>[i(e.codeEdit,s.jsxRuntimeExports.jsx(t.IconPencil,{size:o})),i(e.codeLive,s.jsxRuntimeExports.jsx(t.IconLayoutColumns,{size:o})),i(e.codePreview,s.jsxRuntimeExports.jsx(t.IconEye,{size:o})),e.divider,i(e.fullscreen,s.jsxRuntimeExports.jsx(t.IconMaximize,{size:o}))],R=({value:n,onChange:r,height:d=300,theme:c=s.EditorThemes.light,className:m,placeholder:a,defaultPreview:u="edit"})=>{const j=x.useMemo(()=>p(),[]),l=x.useMemo(()=>I(),[]);return s.jsxRuntimeExports.jsx("div",{"data-color-mode":c,className:s.mergeClasses("dial-kit-markdown-editor",m),children:s.jsxRuntimeExports.jsx(e,{value:n,onChange:E=>r?.(E||""),height:d,preview:u,commands:j,extraCommands:l,textareaProps:{placeholder:a}})})};exports.MarkdownEditor=R;
@@ -1,4 +1,4 @@
1
- import { j as e, D as u, E as z, m as g } from "./index-Cr2qLKjP.js";
1
+ import { j as e, D as u, E as z, m as g } from "./index-qU5tP4t0.js";
2
2
  import { useMemo as r } from "react";
3
3
  import h, { divider as i, group as C, heading1 as p, heading2 as E, heading3 as k, bold as L, italic as M, strikethrough as w, unorderedListCommand as N, orderedListCommand as b, quote as f, link as v, code as D, table as O, codeEdit as T, codeLive as _, codePreview as y, fullscreen as P } from "@uiw/react-md-editor";
4
4
  import { IconTextSize as S, IconBold as A, IconItalic as R, IconStrikethrough as B, IconList as Z, IconListNumbers as q, IconQuote as F, IconLink as K, IconCode as Q, IconColumns2 as W, IconPencil as G, IconLayoutColumns as H, IconEye as J, IconMaximize as U } from "@tabler/icons-react";
@@ -1,4 +1,4 @@
1
- import { j as e, E as m, m as c } from "./index-Cr2qLKjP.js";
1
+ import { j as e, E as m, m as c } from "./index-qU5tP4t0.js";
2
2
  import x from "@uiw/react-md-editor";
3
3
  const j = ({
4
4
  value: o,