@epam/ai-dial-ui-kit 0.16.0-dev.45 → 0.16.0-dev.47

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 (221) hide show
  1. package/README.md +11 -10
  2. package/dist/CHANGELOG.md +4 -1
  3. package/dist/DateCellRenderer-uqWWm9rI.cjs +63 -0
  4. package/dist/MarkdownEditor-BtLY7OVq.cjs +1 -0
  5. package/dist/components/New/Analytics/Bar/Bar.js +104 -0
  6. package/dist/components/New/Analytics/BarGroup/BarGroup.js +143 -0
  7. package/dist/components/New/Analytics/Card/Card.js +99 -0
  8. package/dist/components/New/Analytics/Histogram/Histogram.js +212 -0
  9. package/dist/components-manifest.json +3153 -5303
  10. package/dist/constants/public-class-names.js +8 -7
  11. package/dist/dial-ui-kit.cjs +3 -3
  12. package/dist/dial-ui-kit.js +381 -456
  13. package/dist/editors.cjs +1 -1
  14. package/dist/editors.js +4 -10
  15. package/dist/grid.cjs +1 -1
  16. package/dist/grid.js +23 -31
  17. package/dist/{merge-classes-B0SnCG4i.cjs → icon-D93YIwGJ.cjs} +1 -1
  18. package/dist/index.css +1 -1
  19. package/dist/migration-guides/0.16.0/legacy-file-manager-removal.md +5 -3
  20. package/dist/migration-guides/0.16.0/unused-legacy-components-removal.md +128 -0
  21. package/dist/migration-guides/README.md +1 -0
  22. package/dist/node_modules/react-dnd/dist/internals/registration.js +5 -13
  23. package/dist/src/components/New/Analytics/Bar/Bar.d.ts +86 -0
  24. package/dist/src/components/New/Analytics/BarGroup/BarGroup.d.ts +103 -0
  25. package/dist/src/components/New/Analytics/Card/Card.d.ts +91 -0
  26. package/dist/src/components/New/Analytics/Histogram/Histogram.d.ts +59 -0
  27. package/dist/src/components/New/MarkdownEditor/lazy.d.ts +8 -2
  28. package/dist/src/components/New/SegmentedControl/SegmentedControl.d.ts +2 -2
  29. package/dist/src/constants/public-class-names.d.ts +8 -7
  30. package/dist/src/index.d.ts +10 -53
  31. package/dist/src/subpaths/editors.d.ts +9 -15
  32. package/dist/src/subpaths/grid.d.ts +2 -8
  33. package/dist/src/types/editor.d.ts +0 -6
  34. package/dist/src/utils/grid-registration.d.ts +6 -8
  35. package/package.json +1 -12
  36. package/dist/DateCellRenderer-DrDOIpWg.cjs +0 -63
  37. package/dist/IconButton-CsePS6PY.cjs +0 -1
  38. package/dist/JsonEditor-DQhHSm93.cjs +0 -1
  39. package/dist/MarkdownEditor-CvIPIbPq.cjs +0 -1
  40. package/dist/MarkdownEditor-TR6X_gdl.cjs +0 -1
  41. package/dist/MarkdownEditorContainer-JIn_VNUX.cjs +0 -1
  42. package/dist/Switch-HEL_aq23.cjs +0 -1
  43. package/dist/assets/icons/file/c.svg.js +0 -5
  44. package/dist/assets/icons/file/cpp.svg.js +0 -5
  45. package/dist/assets/icons/file/cs.svg.js +0 -5
  46. package/dist/assets/icons/file/ini.svg.js +0 -5
  47. package/dist/assets/icons/file/json.svg.js +0 -5
  48. package/dist/assets/icons/file/md.svg.js +0 -5
  49. package/dist/assets/icons/file/py.svg.js +0 -5
  50. package/dist/assets/icons/open-popup.svg.js +0 -5
  51. package/dist/components/AutocompleteInput/AutocompleteInputValue.js +0 -21
  52. package/dist/components/ButtonDropdown/ButtonDropdown.js +0 -33
  53. package/dist/components/ButtonDropdown/constants.js +0 -8
  54. package/dist/components/Checkbox/Checkbox.js +0 -64
  55. package/dist/components/Checkbox/constants.js +0 -4
  56. package/dist/components/CollapsibleSidebar/CollapsibleSidebar.js +0 -84
  57. package/dist/components/ConfirmationPopup/ConfirmationPopup.js +0 -75
  58. package/dist/components/ConfirmationPopup/constants.js +0 -32
  59. package/dist/components/DraggableItem/DraggableItem.js +0 -61
  60. package/dist/components/DraggableItem/constants.js +0 -6
  61. package/dist/components/DropdownIcon/DropdownIcon.js +0 -103
  62. package/dist/components/FileIcon/FileIcon.js +0 -37
  63. package/dist/components/FileIcon/constants.js +0 -60
  64. package/dist/components/FileName/FileName.js +0 -68
  65. package/dist/components/FolderName/FolderName.js +0 -57
  66. package/dist/components/FormItem/FormItem.js +0 -90
  67. package/dist/components/FormItem/constants.js +0 -9
  68. package/dist/components/FormPopup/FormPopup.js +0 -59
  69. package/dist/components/FormPopup/constants.js +0 -6
  70. package/dist/components/Grid/Grid.js +0 -333
  71. package/dist/components/Grid/constants.js +0 -33
  72. package/dist/components/Grid/renderers/DateCellRenderer.js +0 -27
  73. package/dist/components/Grid/renderers/constants.js +0 -25
  74. package/dist/components/InputPopup/InputPopup.js +0 -174
  75. package/dist/components/JsonEditor/JsonEditor.js +0 -65
  76. package/dist/components/JsonEditor/lazy.js +0 -4
  77. package/dist/components/MarkdownEditor/MarkdownEditor.js +0 -39
  78. package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +0 -82
  79. package/dist/components/MarkdownEditor/lazy.js +0 -4
  80. package/dist/components/Notification/Notification.js +0 -67
  81. package/dist/components/Notification/constants.js +0 -24
  82. package/dist/components/NumberInput/NumberInput.js +0 -41
  83. package/dist/components/Pagination/Pagination.js +0 -80
  84. package/dist/components/Pagination/utils.js +0 -10
  85. package/dist/components/PasswordInput/Icons/HideIcon.js +0 -16
  86. package/dist/components/PasswordInput/Icons/ShowIcon.js +0 -16
  87. package/dist/components/PasswordInput/PasswordInput.js +0 -21
  88. package/dist/components/Popup/Popup.js +0 -110
  89. package/dist/components/Popup/constants.js +0 -12
  90. package/dist/components/RadioButton/RadioButton.js +0 -103
  91. package/dist/components/RadioGroup/RadioGroup.js +0 -92
  92. package/dist/components/RadioGroup/constants.js +0 -10
  93. package/dist/components/RadioGroupPopupField/RadioGroupPopupField.js +0 -101
  94. package/dist/components/ResizableContainer/ConditionalResizableContainer.js +0 -6
  95. package/dist/components/ResizableContainer/ResizableContainer.js +0 -79
  96. package/dist/components/ResizableContainer/components/ResizeHandle.js +0 -20
  97. package/dist/components/ResizableContainer/components/ResizeIcon.js +0 -11
  98. package/dist/components/SchemaRenderer/SchemaRenderer.js +0 -151
  99. package/dist/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.js +0 -56
  100. package/dist/components/SchemaRenderer/components/SchemaAnyOfEditor.js +0 -74
  101. package/dist/components/SchemaRenderer/components/SchemaArrayEditor.js +0 -118
  102. package/dist/components/SchemaRenderer/components/SchemaField.js +0 -78
  103. package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +0 -114
  104. package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +0 -272
  105. package/dist/components/SchemaRenderer/components/SchemaObjectEditor.js +0 -36
  106. package/dist/components/SchemaRenderer/components/SchemaOneOfEditor.js +0 -192
  107. package/dist/components/SchemaRenderer/components/SchemaPrimitiveField.js +0 -161
  108. package/dist/components/SchemaRenderer/components/SchemaSection.js +0 -81
  109. package/dist/components/SchemaRenderer/context.js +0 -12
  110. package/dist/components/Search/Search.js +0 -63
  111. package/dist/components/Search/constants.js +0 -27
  112. package/dist/components/SegmentedControl/SegmentedControl.js +0 -87
  113. package/dist/components/SegmentedControl/constants.js +0 -8
  114. package/dist/components/Select/MultiSelectTags.js +0 -23
  115. package/dist/components/Select/Select.js +0 -435
  116. package/dist/components/Select/SelectSubMenuItem.js +0 -90
  117. package/dist/components/Select/constants.js +0 -15
  118. package/dist/components/SelectField/SelectField.js +0 -66
  119. package/dist/components/SharedEntityIndicator/SharedEntityIndicator.js +0 -34
  120. package/dist/components/Slider/Slider.js +0 -158
  121. package/dist/components/Switch/Switch.js +0 -70
  122. package/dist/components/TagInput/TagInput.js +0 -179
  123. package/dist/components/Textarea/Textarea.js +0 -43
  124. package/dist/constants/editor.js +0 -52
  125. package/dist/icon-CrGVkVpG.cjs +0 -1
  126. package/dist/icon-DhjrDQ8I.cjs +0 -1
  127. package/dist/lazy-kq-xfXXv.cjs +0 -1
  128. package/dist/node_modules/react-dnd/dist/hooks/useDrag/DragSourceImpl.js +0 -25
  129. package/dist/node_modules/react-dnd/dist/hooks/useDrag/connectors.js +0 -21
  130. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDrag.js +0 -20
  131. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSource.js +0 -19
  132. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceConnector.js +0 -22
  133. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragSourceMonitor.js +0 -15
  134. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useDragType.js +0 -13
  135. package/dist/node_modules/react-dnd/dist/hooks/useDrag/useRegisteredDragSource.js +0 -23
  136. package/dist/node_modules/react-dnd/dist/internals/DragSourceMonitorImpl.js +0 -88
  137. package/dist/node_modules/react-dnd/dist/internals/SourceConnector.js +0 -87
  138. package/dist/src/components/AutocompleteInput/AutocompleteInputValue.d.ts +0 -34
  139. package/dist/src/components/ButtonDropdown/ButtonDropdown.d.ts +0 -24
  140. package/dist/src/components/ButtonDropdown/constants.d.ts +0 -2
  141. package/dist/src/components/Checkbox/Checkbox.d.ts +0 -36
  142. package/dist/src/components/Checkbox/constants.d.ts +0 -1
  143. package/dist/src/components/CollapsibleSidebar/CollapsibleSidebar.d.ts +0 -46
  144. package/dist/src/components/ConfirmationPopup/ConfirmationPopup.d.ts +0 -55
  145. package/dist/src/components/ConfirmationPopup/constants.d.ts +0 -18
  146. package/dist/src/components/DraggableItem/DraggableItem.d.ts +0 -33
  147. package/dist/src/components/DraggableItem/constants.d.ts +0 -3
  148. package/dist/src/components/DropdownIcon/DropdownIcon.d.ts +0 -38
  149. package/dist/src/components/FileIcon/FileIcon.d.ts +0 -33
  150. package/dist/src/components/FileIcon/constants.d.ts +0 -9
  151. package/dist/src/components/FileName/FileName.d.ts +0 -49
  152. package/dist/src/components/FolderName/FolderName.d.ts +0 -37
  153. package/dist/src/components/FormItem/FormItem.d.ts +0 -66
  154. package/dist/src/components/FormItem/constants.d.ts +0 -3
  155. package/dist/src/components/FormPopup/FormPopup.d.ts +0 -46
  156. package/dist/src/components/FormPopup/constants.d.ts +0 -3
  157. package/dist/src/components/Grid/Grid.d.ts +0 -120
  158. package/dist/src/components/Grid/comparators/base-column-comparator.d.ts +0 -1
  159. package/dist/src/components/Grid/constants.d.ts +0 -28
  160. package/dist/src/components/Grid/renderers/DateCellRenderer.d.ts +0 -34
  161. package/dist/src/components/Grid/renderers/constants.d.ts +0 -7
  162. package/dist/src/components/Grid/renderers/utils.d.ts +0 -1
  163. package/dist/src/components/InputPopup/InputPopup.d.ts +0 -61
  164. package/dist/src/components/JsonEditor/JsonEditor.d.ts +0 -25
  165. package/dist/src/components/JsonEditor/lazy.d.ts +0 -14
  166. package/dist/src/components/MarkdownEditor/MarkdownEditor.d.ts +0 -38
  167. package/dist/src/components/MarkdownEditor/MarkdownEditorContainer.d.ts +0 -51
  168. package/dist/src/components/MarkdownEditor/lazy.d.ts +0 -7
  169. package/dist/src/components/Notification/Notification.d.ts +0 -58
  170. package/dist/src/components/Notification/constants.d.ts +0 -8
  171. package/dist/src/components/NumberInput/NumberInput.d.ts +0 -34
  172. package/dist/src/components/Pagination/Pagination.d.ts +0 -11
  173. package/dist/src/components/Pagination/utils.d.ts +0 -9
  174. package/dist/src/components/PasswordInput/Icons/HideIcon.d.ts +0 -16
  175. package/dist/src/components/PasswordInput/Icons/ShowIcon.d.ts +0 -16
  176. package/dist/src/components/PasswordInput/PasswordInput.d.ts +0 -26
  177. package/dist/src/components/Popup/Popup.d.ts +0 -64
  178. package/dist/src/components/Popup/constants.d.ts +0 -5
  179. package/dist/src/components/RadioButton/RadioButton.d.ts +0 -54
  180. package/dist/src/components/RadioGroup/RadioGroup.d.ts +0 -66
  181. package/dist/src/components/RadioGroup/constants.d.ts +0 -5
  182. package/dist/src/components/RadioGroupPopupField/RadioGroupPopupField.d.ts +0 -74
  183. package/dist/src/components/ResizableContainer/ConditionalResizableContainer.d.ts +0 -35
  184. package/dist/src/components/ResizableContainer/ResizableContainer.d.ts +0 -72
  185. package/dist/src/components/ResizableContainer/components/ResizeHandle.d.ts +0 -10
  186. package/dist/src/components/ResizableContainer/components/ResizeIcon.d.ts +0 -8
  187. package/dist/src/components/SchemaRenderer/SchemaRenderer.d.ts +0 -30
  188. package/dist/src/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.d.ts +0 -20
  189. package/dist/src/components/SchemaRenderer/components/SchemaAnyOfEditor.d.ts +0 -31
  190. package/dist/src/components/SchemaRenderer/components/SchemaArrayEditor.d.ts +0 -31
  191. package/dist/src/components/SchemaRenderer/components/SchemaField.d.ts +0 -29
  192. package/dist/src/components/SchemaRenderer/components/SchemaFieldContent.d.ts +0 -25
  193. package/dist/src/components/SchemaRenderer/components/SchemaKeyValueEditor.d.ts +0 -33
  194. package/dist/src/components/SchemaRenderer/components/SchemaObjectEditor.d.ts +0 -31
  195. package/dist/src/components/SchemaRenderer/components/SchemaOneOfEditor.d.ts +0 -31
  196. package/dist/src/components/SchemaRenderer/components/SchemaPrimitiveField.d.ts +0 -31
  197. package/dist/src/components/SchemaRenderer/components/SchemaSection.d.ts +0 -33
  198. package/dist/src/components/SchemaRenderer/context.d.ts +0 -19
  199. package/dist/src/components/SchemaRenderer/types.d.ts +0 -62
  200. package/dist/src/components/SchemaRenderer/utils.d.ts +0 -1
  201. package/dist/src/components/Search/Search.d.ts +0 -35
  202. package/dist/src/components/Search/constants.d.ts +0 -8
  203. package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +0 -40
  204. package/dist/src/components/SegmentedControl/constants.d.ts +0 -5
  205. package/dist/src/components/Select/MultiSelectTags.d.ts +0 -8
  206. package/dist/src/components/Select/Select.d.ts +0 -100
  207. package/dist/src/components/Select/SelectSubMenuItem.d.ts +0 -8
  208. package/dist/src/components/Select/constants.d.ts +0 -9
  209. package/dist/src/components/SelectField/SelectField.d.ts +0 -42
  210. package/dist/src/components/SharedEntityIndicator/SharedEntityIndicator.d.ts +0 -31
  211. package/dist/src/components/Slider/Slider.d.ts +0 -57
  212. package/dist/src/components/Switch/Switch.d.ts +0 -34
  213. package/dist/src/components/TagInput/TagInput.d.ts +0 -52
  214. package/dist/src/components/Textarea/Textarea.d.ts +0 -39
  215. package/dist/src/constants/editor.d.ts +0 -2
  216. package/dist/src/constants/storybook/form-item.d.ts +0 -3
  217. package/dist/src/models/segmented-control.d.ts +0 -7
  218. package/dist/src/types/form-item.d.ts +0 -31
  219. package/dist/src/types/select.d.ts +0 -8
  220. package/dist/types/form-item.js +0 -4
  221. package/dist/types/select.js +0 -5
@@ -1,16 +0,0 @@
1
- import { FC } from 'react';
2
- interface Props {
3
- onClick: () => void;
4
- }
5
- /**
6
- * An icon button component for hiding password input (eye-off icon).
7
- *
8
- * @example
9
- * ```tsx
10
- * <DialHideIcon onClick={() => setShowPassword(false)} />
11
- * ```
12
- *
13
- * @param onClick - Callback function called when the icon is clicked
14
- */
15
- export declare const DialHideIcon: FC<Props>;
16
- export {};
@@ -1,16 +0,0 @@
1
- import { FC } from 'react';
2
- interface Props {
3
- onClick: () => void;
4
- }
5
- /**
6
- * An icon button component for showing password input (eye icon).
7
- *
8
- * @example
9
- * ```tsx
10
- * <DialShowIcon onClick={() => setShowPassword(true)} />
11
- * ```
12
- *
13
- * @param onClick - Callback function called when the icon is clicked
14
- */
15
- export declare const DialShowIcon: FC<Props>;
16
- export {};
@@ -1,26 +0,0 @@
1
- import { FC } from 'react';
2
- import { DialInputProps } from '../Input/Input';
3
- /**
4
- * A password input component with show/hide functionality and customizable props.
5
- * aliases: SecureInput|ToggleablePassword
6
- * Design system 1.0
7
- *
8
- * @example
9
- * ```tsx
10
- * <DialPasswordInput
11
- * id="password"
12
- * label="Password"
13
- * value={password}
14
- * onChange={e => setPassword(e.target.value)}
15
- * disabled={false}
16
- * />
17
- * ```
18
- *
19
- * @param id - Unique identifier for the input element
20
- * @param [label] - The label text for the field
21
- * @param [value] - The current value of the input
22
- * @param [onChange] - Callback function called when the input value changes
23
- * @param [disabled=false] - Whether the input is disabled
24
- * @param [iconAfterInput] - Custom icon to display after the input (overridden by show/hide icons)
25
- */
26
- export declare const DialPasswordInput: FC<DialInputProps>;
@@ -1,64 +0,0 @@
1
- import { FC, MouseEvent, ReactNode } from 'react';
2
- import { PopupSize } from '../../types/popup';
3
- export interface DialPopupProps {
4
- open?: boolean;
5
- header?: ReactNode;
6
- portalId?: string;
7
- className?: string;
8
- overlayClassName?: string;
9
- titleClassName?: string;
10
- headerClassName?: string;
11
- dividers?: boolean;
12
- dividerFooter?: boolean;
13
- children?: ReactNode;
14
- footer?: ReactNode;
15
- onClose?: (e?: MouseEvent<HTMLButtonElement> | null) => void;
16
- size?: PopupSize;
17
- hideClose?: boolean;
18
- closeOnOutsideClick?: boolean;
19
- preventKeyboardOnOpen?: boolean;
20
- }
21
- /**
22
- * An accessible modal dialog component using Floating UI.
23
- * aliases: Modal|Dialog
24
- * Design system 1.0
25
- *
26
- * Renders in a portal with a scrim overlay, focus management, header with a title,
27
- * content area, optional footer and a close control.
28
- *
29
- * @example
30
- * ```tsx
31
- * <DialPopup
32
- * open
33
- * title="Title"
34
- * size={PopupSize.Md}
35
- * footer={
36
- * <div className="flex justify-end gap-2">
37
- * <button className="btn-secondary px-3 py-1 rounded">Cancel</button>
38
- * <button className="btn-primary px-3 py-1 rounded">Confirm</button>
39
- * </div>
40
- * }
41
- * onClose={() => console.log('closed')}
42
- * >
43
- * <div className="p-6">Dialog content goes here…</div>
44
- * </DialPopup>
45
- * ```
46
- *
47
- * @param [open=false] - Controls visibility of the popup
48
- * @param [header] - Optional title rendered in the header
49
- * @param [portalId] - Optional portal container id
50
- * @param [className] - Additional CSS classes applied to the popup container
51
- * @param [overlayClassName] - Additional CSS classes applied to the overlay
52
- * @param [titleClassName] - Additional CSS classes applied to the title element
53
- * @param [headerClassName] - Additional CSS classes applied to the popup header container
54
- * @param [dividers=true] - Whether to render separators between sections
55
- * @param [dividerFooter=true] - Whether to render a divider above the footer when `dividers` is true
56
- * @param [children] - Body content
57
- * @param [footer] - Footer area for actions
58
- * @param [onClose] - Callback fired when the popup requests to close
59
- * @param [size=PopupSize.Md] - Sets the max-width of the popup
60
- * @param [hideClose=false] Whether the close button is hidden in the header (default: false)
61
- * @param [closeOnOutsideClick=true] - Whether the popup closes when clicking outside (default: true)
62
- * @param [preventKeyboardOnOpen=false] - When true, initial focus goes to a non-input guard to avoid opening the virtual keyboard on mobile. Redundant since the default focuses the dialog container, which never raises the keyboard; kept for compatibility
63
- */
64
- export declare const DialPopup: FC<DialPopupProps>;
@@ -1,5 +0,0 @@
1
- import { PopupSize } from '../../types/popup';
2
- export declare const overlayBaseClassName = "z-popup flex items-center justify-center bg-blackout md:p-4";
3
- export declare const popupDividerClassName = "divide-tertiary divide-y";
4
- export declare const popupHeaderClassName = "flex flex-row justify-between py-4 px-6 items-center";
5
- export declare const popupSizeClassMap: Record<PopupSize, string>;
@@ -1,54 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- export interface DialRadioButtonProps {
3
- name: string;
4
- value: string;
5
- label?: ReactNode;
6
- caption?: ReactNode;
7
- description?: ReactNode;
8
- checked?: boolean;
9
- inputId: string;
10
- className?: string;
11
- labelClassName?: string;
12
- disabled?: boolean;
13
- onChange?: (value: string) => void;
14
- descriptionClassName?: string;
15
- containerClassName?: string;
16
- oneLineCaption?: boolean;
17
- }
18
- /**
19
- * A stylized, accessible radio input with optional description.
20
- * aliases: ChoiceOption|RadioInput
21
- * Design system 1.0
22
- *
23
- * Renders a native `<input type="radio" />` paired with a label. When `checked`
24
- * and `description` are provided, a supporting text block appears under the control.
25
- *
26
- * @example
27
- * ```tsx
28
- * <DialRadioButton
29
- * name="plan"
30
- * value="pro"
31
- * inputId="radio-pro"
32
- * title="Pro plan"
33
- * description="Includes all advanced features."
34
- * checked
35
- * onChange={(v) => console.log('changed', v)}
36
- * />
37
- * ```
38
- *
39
- * @param name - Radio group name
40
- * @param value - Radio value emitted on change
41
- * @param [label] - Visible label text
42
- * @param [caption] - Caption text describing label
43
- * @param [description] - Supporting text shown when checked
44
- * @param [checked=false] - Controlled checked state
45
- * @param inputId - ID associated with the label
46
- * @param [className] - Additional classes applied to the input element
47
- * @param [labelClassName] - Additional classes applied to the label element
48
- * @param [disabled] - Disabled state of the control
49
- * @param [onChange] - Callback fired with `value` when the radio is changed
50
- * @param [descriptionClassName] - Additional classes applied to the description block
51
- * @param [containerClassName] - Additional classes applied to the container div
52
- * @param [oneLineCaption=false] - When true, the caption is shown on the same line to the right of the label instead of underneath it
53
- */
54
- export declare const DialRadioButton: FC<DialRadioButtonProps>;
@@ -1,66 +0,0 @@
1
- import { FC } from 'react';
2
- import { RadioButtonWithContent } from '../../models/radio';
3
- import { RadioGroupOrientation } from '../../types/radio-group';
4
- export interface DialRadioGroupProps {
5
- fieldTitle?: string;
6
- elementId: string;
7
- disabled?: boolean;
8
- radioButtons: RadioButtonWithContent[];
9
- activeRadioButton: string;
10
- orientation: RadioGroupOrientation;
11
- labelDescription?: string;
12
- onChange: (radioId: string) => void;
13
- radioClassName?: string;
14
- groupLabelClassName?: string;
15
- labelClassName?: string;
16
- containerClassName?: string;
17
- formItemChildrenClassName?: string;
18
- selectedItemClassName?: string;
19
- selectedLabelClassName?: string;
20
- radioGroupClassName?: string;
21
- inputContainerClassName?: string;
22
- selectedInputContainerClassName?: string;
23
- }
24
- /**
25
- * Groups multiple `DialRadio` options and renders custom content for the active option.
26
- * aliases: SelectionGroup|OptionGroup
27
- * Design system 1.0
28
- *
29
- * Uses `DialField` as the field label and a container with `role="radiogroup"`.
30
- * Content provided in `radioButtons[].content` is shown under the currently active radio.
31
- *
32
- * @example
33
- * ```tsx
34
- * <DialRadioGroup
35
- * fieldTitle="Delivery"
36
- * elementId="delivery"
37
- * orientation={RadioGroupOrientation.Column}
38
- * activeRadioButton="courier"
39
- * radioButtons={[
40
- * { id: 'pickup', name: 'Pickup', content: <span>Free, ready today</span> },
41
- * { id: 'courier', name: 'Courier', content: <span>Arrives tomorrow</span> },
42
- * ]}
43
- * onChange={(id) => console.log('selected', id)}
44
- * />
45
- * ```
46
- *
47
- * @param [fieldTitle] - Optional label rendered by `DialField`
48
- * @param elementId - Name for the underlying radio group; also used for input `name`
49
- * @param [radioClassName] - Additional classes applied to each radio input
50
- * @param [inputContainerClassName] - Additional classes applied to each radio input's container
51
- * @param [selectedInputContainerClassName] - Additional classes applied to the selected radio input's container
52
- * @param [groupLabelClassName] - Optional classes applied to the group label. If not provided, `labelClassName` will be used.
53
- * @param [formItemChildrenClassName] - Additional classes applied to the DialFormItem's children container
54
- * @param [labelClassName] - Additional classes applied to each radio label
55
- * @param [containerClassName] - Additional classes applied to the outer container
56
- * @param [selectedItemClassName] - Additional classes applied to the selected option's content container
57
- * @param [selectedLabelClassName] - Additional classes applied to the selected option's label
58
- * @param [radioGroupClassName] - Additional classes applied to the radio group container
59
- * @param [disabled] - Disables all child radios when set
60
- * @param [labelDescription] - Optional description rendered by `DialFormItem`
61
- * @param radioButtons - Array of options with ids, labels, and optional content
62
- * @param activeRadioButton - The id of the currently selected radio
63
- * @param orientation - Layout direction of radios: row or column
64
- * @param onChange - Callback fired with the selected radio id
65
- */
66
- export declare const DialRadioGroup: FC<DialRadioGroupProps>;
@@ -1,5 +0,0 @@
1
- import { RadioGroupOrientation } from '../../types/radio-group';
2
- export declare const groupBaseClassName = "flex flex-col gap-2";
3
- export declare const optionsWrapperBaseClassName = "flex";
4
- export declare const selectedContentClassName = "pb-1 mt-2";
5
- export declare const orientationClassMap: Record<RadioGroupOrientation, string>;
@@ -1,74 +0,0 @@
1
- import { FC } from 'react';
2
- import { DialLabelProps } from '../Label/Label';
3
- import { DialInputPopupProps } from '../InputPopup/InputPopup';
4
- import { DialPopupProps } from '../Popup/Popup';
5
- import { DialRadioGroupProps } from '../RadioGroup/RadioGroup';
6
- export interface RadioGroupPopupFieldProps extends Pick<DialLabelProps, 'label' | 'htmlFor'>, Omit<DialInputPopupProps, 'onOpen' | 'children'>, Pick<DialRadioGroupProps, 'radioButtons'>, Pick<DialPopupProps, 'onClose' | 'portalId' | 'size'> {
7
- customInputValue?: string;
8
- header: string;
9
- cancelButtonTitle?: string;
10
- applyButtonTitle?: string;
11
- isValid: boolean;
12
- onApply: () => void;
13
- onCancel?: () => void;
14
- selectedRadioValue: string;
15
- onChangeRadioField: (id: string) => void;
16
- id: string;
17
- }
18
- /**
19
- * A composite field that opens a popup with a radio group selector.
20
- * aliases: PopupRadio|ChoicePopup
21
- * Design system 1.0
22
- *
23
- * Renders a labeled readout using `DialInputPopup`; when opened, a `DialPopup`
24
- * displays a `DialRadioGroup` allowing the user to pick from a list of options.
25
- * The footer provides Cancel/Apply actions, with Apply disabled when `isValid` is false.
26
- *
27
- * The value shown in the collapsed field is derived from either `customInputValue`
28
- * or the name of the currently selected radio option identified by `selectedValue`.
29
- *
30
- * @example
31
- * ```tsx
32
- * <DialRadioGroupPopupField
33
- * fieldTitle="Status"
34
- * htmlFor="status"
35
- * header="Select status"
36
- * emptyValueText="None"
37
- * radioButtons={[
38
- * { id: 'draft', name: 'Draft' },
39
- * { id: 'review', name: 'In Review' },
40
- * { id: 'published', name: 'Published' },
41
- * ]}
42
- * selectedValue="draft"
43
- * selectedRadioValue="draft"
44
- * onChangeRadioField={(id) => console.log('radio changed', id)}
45
- * id="status-group"
46
- * isValid={true}
47
- * onApply={() => console.log('applied')}
48
- * />
49
- * ```
50
- *
51
- * @param fieldTitle - Field label text displayed above the input
52
- * @param htmlFor - Associates the label with an input id for a11y
53
- * @param [readonly] - When true, the popup cannot be opened
54
- * @param [selectedValue] - Current value id used to resolve the displayed option name
55
- * @param radioButtons - Collection of radio options (id/name)
56
- * @param [customInputValue] - Custom value text to display instead of a radio option name
57
- * @param [placeholder] - Placeholder text shown in the field when no value is selected; unlike `emptyValueText`, it suppresses the tooltip
58
- * @param [valueClassName] - Extra classes applied to the value text in the collapsed field
59
- * @param [inputClassName] - Extra classes applied to the collapsed input container
60
- * @param emptyValueText - Placeholder text when no value is selected
61
- * @param [onClose] - Callback fired when the popup closes
62
- * @param header - Title text shown in the popup header
63
- * @param [portalId] - Target portal id for rendering the popup
64
- * @param onApply - Callback fired when the Apply button is clicked
65
- * @param [onCancel] - Callback fired when the Cancel button is clicked
66
- * @param [cancelButtonTitle="Cancel"] - Text for the Cancel button
67
- * @param [applyButtonTitle="Apply"] - Text for the Apply button
68
- * @param isValid - Determines whether the Apply action is enabled
69
- * @param selectedRadioValue - Currently selected radio id inside the popup
70
- * @param onChangeRadioField - Handler for radio selection changes
71
- * @param id - Element id used for the internal radio group
72
- * @param [size=PopupSize.Md] - Size of the popup
73
- */
74
- export declare const DialRadioGroupPopupField: FC<RadioGroupPopupFieldProps>;
@@ -1,35 +0,0 @@
1
- import { FC } from 'react';
2
- import { DialResizableContainerProps } from './ResizableContainer';
3
- export interface DialConditionalResizableContainerProps extends DialResizableContainerProps {
4
- enabled?: boolean;
5
- }
6
- /**
7
- * DialConditionalResizableContainer — A conditional wrapper around `DialResizableContainer`.
8
- * aliases: OptionalResize|ConditionalPanel
9
- * Design system 1.0
10
- *
11
- * This component renders its children inside a resizable container only when `enabled` is true.
12
- * When `enabled` is false, children are rendered directly without any resizable behavior.
13
- *
14
- * All other props are the same as `DialResizableContainer`. See the documentation for
15
- * `DialResizableContainer` for full details on usage, controlled/uncontrolled modes, sides, and callbacks.
16
- *
17
- * @example
18
- * ```tsx
19
- * <DialConditionalResizableContainer
20
- * enabled={!isCollapsed}
21
- * defaultWidth={260}
22
- * minWidth={180}
23
- * maxWidth={520}
24
- * onResize={(w) => console.log('Current width:', w)}
25
- * onResizeStop={(w) => setSidebarWidth(w)}
26
- * >
27
- * <Sidebar />
28
- * </DialConditionalResizableContainer>
29
- * ```
30
- *
31
- * @param enabled - Whether resizing is enabled. When false, children are rendered directly.
32
- * @param children - Content to render inside the container.
33
- * @see DialResizableContainer
34
- */
35
- export declare const DialConditionalResizableContainer: FC<DialConditionalResizableContainerProps>;
@@ -1,72 +0,0 @@
1
- import { ResizableContainerSide } from '../../types/resizable-container';
2
- import { FC, ReactNode } from 'react';
3
- export interface DialResizableContainerProps {
4
- children: ReactNode;
5
- minWidth: number;
6
- maxWidth: number;
7
- width?: number;
8
- defaultWidth: number;
9
- onResizeStop?: (width: number) => void;
10
- onResize?: (width: number) => void;
11
- side?: ResizableContainerSide;
12
- resizeHandlerClassName?: string;
13
- resizeHandler?: ReactNode;
14
- }
15
- /**
16
- * DialResizableContainer — A reusable resizable container
17
- * aliases: ResizePanel|SizableContainer
18
- * Design system 1.0
19
- *
20
- * supporting both **controlled** and **uncontrolled** width modes.
21
- *
22
- * Controlled Mode
23
- *
24
- * Provide `width` and optionally `onResizeStop`:
25
- * ```tsx
26
- * <DialResizableContainer
27
- * width={sidebarWidth}
28
- * onResizeStop={(w) => setSidebarWidth(w)}
29
- * minWidth={180}
30
- * maxWidth={520}
31
- * >
32
- * <Sidebar />
33
- * </DialResizableContainer>
34
- * ```
35
- *
36
- * Uncontrolled Mode
37
- *
38
- * Omit `width` entirely — the component manages its own width:
39
- * ```tsx
40
- * <DialResizableContainer
41
- * defaultWidth={260}
42
- * minWidth={180}
43
- * maxWidth={520}
44
- * >
45
- * <Sidebar />
46
- * </DialResizableContainer>
47
- * ```
48
- *
49
- * Features:
50
- * - Resize from left or right
51
- * - Fully supports controlled & uncontrolled sizing
52
- * - Custom resize handler (icon or any ReactNode)
53
- * - Callback when resize stops (optional)
54
- * - Smooth hover/drag visibility transitions
55
- *
56
- * @param [children] - Content placed inside the container.
57
- * @param [minWidth] - Minimum allowed width (px).
58
- * @param [maxWidth] - Maximum allowed width (px).
59
- * @param [width] - Controlled width. If omitted → uncontrolled mode.
60
- * @param [defaultWidth] - Initial width in uncontrolled mode.
61
- * @param [onResizeStop] - Optional callback fired when resize ends.
62
- * @param [onResize] - Optional callback fired continuously during resizing with current width.
63
- * @param [side=ResizableContainerSide.Right] - Resize handle side.
64
- * @param [resizeHandlerClassName] - Optional additional CSS classes.
65
- * @param [resizeHandler] - Optional custom handler element.
66
- *
67
- * @remarks
68
- * - In uncontrolled mode, width is stored internally.
69
- * - `onResizeStop` is optional in both modes.
70
- * - Controlled mode always uses the value from `width`.
71
- */
72
- export declare const DialResizableContainer: FC<DialResizableContainerProps>;
@@ -1,10 +0,0 @@
1
- import { ResizableContainerSide } from '../../../types/resizable-container';
2
- import { FC, ReactNode } from 'react';
3
- interface ResizeHandleProps {
4
- side: ResizableContainerSide;
5
- isResizing: boolean;
6
- customHandler?: ReactNode;
7
- handlerClassName?: string;
8
- }
9
- export declare const ResizeHandle: FC<ResizeHandleProps>;
10
- export {};
@@ -1,8 +0,0 @@
1
- import { ResizableContainerSide } from '../../../types/resizable-container';
2
- import { FC } from 'react';
3
- interface ResizeIconProps {
4
- side: ResizableContainerSide;
5
- className: string;
6
- }
7
- export declare const ResizeIcon: FC<ResizeIconProps>;
8
- export {};
@@ -1,30 +0,0 @@
1
- import { FC } from 'react';
2
- import { DialSchemaRendererProps } from './types';
3
- /**
4
- * Renders a JSON Schema as a form UI with collapsible sections, validation, and default values.
5
- * aliases: SchemaRenderer|JsonSchemaForm
6
- * Design system 1.0
7
- *
8
- * @example
9
- * ```tsx
10
- * <DialSchemaRenderer
11
- * schema={mySchema}
12
- * onChange={(v) => console.log(v)}
13
- * onDefaultValues={(defaults) => console.log(defaults)}
14
- * />
15
- * ```
16
- *
17
- * @param schema - The root JSON Schema to render
18
- * @param [defaultValue] - Initial form value; if omitted, defaults are extracted from schema
19
- * @param [texts] - Override any user-visible strings rendered by the component
20
- * @param [className] - Additional CSS classes for the root container
21
- * @param [readonly=false] - When true all inputs are disabled; sections remain collapsible
22
- * @param [defaultExpanded=true] - Initial expanded state for all collapsible sections
23
- * @param [variant=SchemaRendererVariant.Sections] - `Sections` wraps every top-level property in a collapsible card; `Flat` renders primitives as plain DialFormItem fields
24
- * @param [renderField] - Override the rendered element for any field by path; return `defaultElement` to fall back to built-in rendering
25
- * @param [onChange] - Called with the full form value on every change
26
- * @param [onPropertyChange] - Called with `(path, value)` for each individual property change
27
- * @param [onDefaultValues] - Called once on mount with the resolved default values
28
- * @param [jsonEditorTheme] - Theme for the JSON editor shown for value keys absent from the schema
29
- */
30
- export declare const DialSchemaRenderer: FC<DialSchemaRendererProps>;
@@ -1,20 +0,0 @@
1
- import { FC } from 'react';
2
- import { EditorThemes } from '../../../types/editor';
3
- export interface SchemaAdditionalPropertiesEditorProps {
4
- value: unknown;
5
- onChange: (value: unknown) => void;
6
- theme?: EditorThemes;
7
- height?: number;
8
- }
9
- /**
10
- * Renders a single value key that is not declared in the schema's `properties` as a raw JSON
11
- * editor, letting users inspect and manually edit it. The Monaco-based editor is dynamically
12
- * imported on the client only, keeping the parent SchemaRenderer SSR-safe.
13
- * aliases: SchemaExtraPropertyEditor|SchemaUnknownPropertyEditor
14
- *
15
- * @param value - The current value of the property (any JSON type)
16
- * @param onChange - Called with the parsed value whenever the edited JSON is valid
17
- * @param [theme=EditorThemes.dark] - Theme applied to the JSON editor
18
- * @param [height=240] - Editor height in pixels
19
- */
20
- export declare const SchemaAdditionalPropertiesEditor: FC<SchemaAdditionalPropertiesEditorProps>;
@@ -1,31 +0,0 @@
1
- import { FC } from 'react';
2
- import { JsonSchemaDef } from '../types';
3
- export interface SchemaAnyOfEditorProps {
4
- schema: JsonSchemaDef;
5
- value: unknown;
6
- onChange: (value: unknown) => void;
7
- path: string[];
8
- level: number;
9
- }
10
- /**
11
- * Renders an `anyOf` schema field as a type-selector dropdown with an inline sub-editor.
12
- * aliases: AnyOfSchemaEditor|SchemaUnionEditor
13
- *
14
- * @example
15
- * ```tsx
16
- * <SchemaAnyOfEditor
17
- * schema={{ anyOf: [{ type: 'null' }, { type: 'string' }] }}
18
- * value={null}
19
- * onChange={(v) => console.log(v)}
20
- * path={['field']}
21
- * level={1}
22
- * />
23
- * ```
24
- *
25
- * @param schema - The JSON Schema definition containing an `anyOf` array
26
- * @param value - Current field value
27
- * @param onChange - Called with the new value when the type or sub-value changes
28
- * @param path - Field path segments used for validation error tracking
29
- * @param level - Nesting depth passed to child field components
30
- */
31
- export declare const SchemaAnyOfEditor: FC<SchemaAnyOfEditorProps>;
@@ -1,31 +0,0 @@
1
- import { FC } from 'react';
2
- import { JsonSchemaDef } from '../types';
3
- export interface SchemaArrayEditorProps {
4
- schema: JsonSchemaDef;
5
- value: unknown;
6
- onChange: (value: unknown) => void;
7
- path: string[];
8
- level: number;
9
- }
10
- /**
11
- * Renders a JSON Schema array as a list of collapsible items with add and remove controls.
12
- * aliases: ArraySchemaEditor|SchemaListEditor
13
- *
14
- * @example
15
- * ```tsx
16
- * <SchemaArrayEditor
17
- * schema={{ type: 'array', items: { type: 'string' } }}
18
- * value={['foo', 'bar']}
19
- * onChange={(v) => console.log(v)}
20
- * path={['tags']}
21
- * level={1}
22
- * />
23
- * ```
24
- *
25
- * @param schema - The JSON Schema array definition (must include an `items` sub-schema)
26
- * @param value - Current array value
27
- * @param onChange - Called with the updated array when items are added, removed, or changed
28
- * @param path - Field path segments used for validation error tracking
29
- * @param level - Nesting depth passed to child section components
30
- */
31
- export declare const SchemaArrayEditor: FC<SchemaArrayEditorProps>;
@@ -1,29 +0,0 @@
1
- import { FC } from 'react';
2
- import { SchemaFieldProps } from '../types';
3
- /**
4
- * Renders a single schema property as a labeled field or a collapsible section.
5
- * aliases: SchemaPropertyField|SchemaFormField
6
- *
7
- * @example
8
- * ```tsx
9
- * <SchemaField
10
- * schema={{ type: 'string' }}
11
- * value="hello"
12
- * onChange={(v) => console.log(v)}
13
- * path={['name']}
14
- * level={1}
15
- * required
16
- * label="Name"
17
- * />
18
- * ```
19
- *
20
- * @param schema - The JSON Schema definition for this field
21
- * @param value - Current field value
22
- * @param onChange - Called with the updated value when the field changes
23
- * @param path - Field path segments used for validation error tracking
24
- * @param [level=0] - Nesting depth; object/array fields render as collapsible sections
25
- * @param [required] - Whether the field is required (shows error when empty)
26
- * @param [label] - Display label; falls back to schema title or path segment
27
- * @param [skipUntouched] - When `true`, required-field errors are only shown after the user has interacted with a field.
28
- */
29
- export declare const SchemaField: FC<SchemaFieldProps>;
@@ -1,25 +0,0 @@
1
- import { FC } from 'react';
2
- import { SchemaFieldContentProps } from '../types';
3
- /**
4
- * Routes a resolved schema to the appropriate editor component.
5
- * aliases: SchemaEditorRouter|SchemaContentDispatcher
6
- *
7
- * @example
8
- * ```tsx
9
- * <SchemaFieldContent
10
- * schema={{ type: 'string' }}
11
- * value="hello"
12
- * onChange={(v) => console.log(v)}
13
- * path={['name']}
14
- * level={1}
15
- * />
16
- * ```
17
- *
18
- * @param schema - The JSON Schema definition to render
19
- * @param value - Current field value
20
- * @param onChange - Called with the updated value when the field changes
21
- * @param path - Field path segments used for validation error tracking
22
- * @param level - Nesting depth passed to child editor components
23
- * @param [required] - Whether the field is required (passed to primitive fields for error styling)
24
- */
25
- export declare const SchemaFieldContent: FC<SchemaFieldContentProps>;