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

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 (94) hide show
  1. package/README.md +146 -0
  2. package/dist/CHANGELOG.md +15 -0
  3. package/dist/{DateCellRenderer-BVM-Q8yx.cjs → DateCellRenderer-CHi2CB33.cjs} +26 -26
  4. package/dist/DateCellRenderer-xGfSaQHO.cjs +1 -0
  5. package/dist/JsonEditor-D2jSlRFi.cjs +1 -0
  6. package/dist/{MarkdownEditor-jQ8nDJfx.cjs → MarkdownEditor-BzEbdj7R.cjs} +1 -1
  7. package/dist/{MarkdownEditor-DHn2pYOJ.cjs → MarkdownEditor-C9-ZMRVi.cjs} +1 -1
  8. package/dist/MarkdownEditorContainer-BvwJjkiZ.cjs +1 -0
  9. package/dist/components/Dropdown/Dropdown.js +70 -65
  10. package/dist/components/Dropdown/DropdownSubMenuItem.js +63 -55
  11. package/dist/components/Dropdown/constants.js +15 -13
  12. package/dist/components/DropdownIcon/DropdownIcon.js +43 -32
  13. package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +18 -16
  14. package/dist/components/New/Accordion/Accordion.js +40 -38
  15. package/dist/components/New/Breadcrumbs/Breadcrumbs.js +146 -0
  16. package/dist/components/New/Breadcrumbs/constants.js +32 -0
  17. package/dist/components/New/ButtonDropdown/ButtonDropdown.js +7 -6
  18. package/dist/components/New/Calendar/Calendar.js +337 -289
  19. package/dist/components/New/CaptionText/CaptionText.js +18 -15
  20. package/dist/components/New/CardShell/CardShell.js +5 -3
  21. package/dist/components/New/Checkbox/Checkbox.js +67 -56
  22. package/dist/components/New/Checkbox/CheckboxBox.js +5 -3
  23. package/dist/components/New/CloseButton/CloseButton.js +18 -16
  24. package/dist/components/New/CollapsibleSidebar/CollapsibleSidebar.js +39 -34
  25. package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +44 -39
  26. package/dist/components/New/Dropdown/Dropdown.js +101 -95
  27. package/dist/components/New/EllipsisTooltip/EllipsisTooltip.js +20 -18
  28. package/dist/components/New/FileDropzone/FileDropzone.js +27 -25
  29. package/dist/components/New/FilterChips/FilterChips.js +43 -0
  30. package/dist/components/New/FilterChips/constants.js +5 -0
  31. package/dist/components/New/FolderPath/FolderPath.js +29 -28
  32. package/dist/components/New/Highlight/Highlight.js +23 -30
  33. package/dist/components/New/InfoButton/InfoButton.js +13 -11
  34. package/dist/components/New/InlineSelect/InlineSelect.js +43 -41
  35. package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +41 -39
  36. package/dist/components/New/Label/Label.js +13 -8
  37. package/dist/components/New/MenuItem/MenuItem.js +29 -27
  38. package/dist/components/New/MenuItem/constants.js +9 -8
  39. package/dist/components/New/NoDataContent/NoDataContent.js +21 -19
  40. package/dist/components/New/Notification/Notification.js +29 -27
  41. package/dist/components/New/NumberInput/NumberInput.js +42 -33
  42. package/dist/components/New/PasswordInput/PasswordInput.js +41 -34
  43. package/dist/components/New/Popup/Popup.js +46 -44
  44. package/dist/components/New/Radio/Radio.js +75 -64
  45. package/dist/components/New/RadioGroup/RadioGroup.js +76 -65
  46. package/dist/components/New/RadioGroupPopupField/RadioGroupPopupField.js +117 -106
  47. package/dist/components/New/ResizableContainer/ResizableContainer.js +42 -40
  48. package/dist/components/New/Search/Search.js +29 -27
  49. package/dist/components/New/SegmentedControl/SegmentedControl.js +29 -23
  50. package/dist/components/New/Select/Select.js +120 -109
  51. package/dist/components/New/Switch/Switch.js +69 -58
  52. package/dist/components/New/Tabs/Tabs.js +122 -61
  53. package/dist/components/New/Tag/Tag.js +42 -40
  54. package/dist/components/New/TagInput/TagInput.js +45 -43
  55. package/dist/components/New/ToggleIconButton/ToggleIconButton.js +26 -24
  56. package/dist/components/New/Tooltip/TooltipContent.js +11 -9
  57. package/dist/components/ProgressBar/ProgressBar.js +45 -33
  58. package/dist/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.js +46 -31
  59. package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +223 -135
  60. package/dist/components/SchemaRenderer/types.js +19 -8
  61. package/dist/components/SchemaRenderer/utils.js +121 -96
  62. package/dist/components/Skeleton/Skeleton.js +25 -19
  63. package/dist/components/Spinner/Spinner.js +7 -5
  64. package/dist/components-manifest.json +218 -6
  65. package/dist/constants/public-class-names.js +175 -0
  66. package/dist/dial-ui-kit.cjs +2 -2
  67. package/dist/dial-ui-kit.js +231 -223
  68. package/dist/editor-_174x-qy.cjs +1 -0
  69. package/dist/editors.cjs +1 -1
  70. package/dist/file-manager.cjs +1 -1
  71. package/dist/grid.cjs +1 -1
  72. package/dist/index.css +1 -1
  73. package/dist/lazy-DM-7dL0Y.cjs +1 -0
  74. package/dist/src/components/New/Breadcrumbs/Breadcrumbs.d.ts +83 -0
  75. package/dist/src/components/New/Breadcrumbs/constants.d.ts +48 -0
  76. package/dist/src/components/New/Calendar/Calendar.d.ts +14 -1
  77. package/dist/src/components/New/FilterChips/FilterChips.d.ts +69 -0
  78. package/dist/src/components/New/FilterChips/constants.d.ts +13 -0
  79. package/dist/src/components/New/PasswordInput/PasswordInput.d.ts +4 -1
  80. package/dist/src/components/New/Tabs/Tabs.d.ts +47 -6
  81. package/dist/src/components/SchemaRenderer/types.d.ts +11 -0
  82. package/dist/src/components/SchemaRenderer/utils.d.ts +5 -1
  83. package/dist/src/constants/public-class-names.d.ts +166 -0
  84. package/dist/src/index.d.ts +7 -0
  85. package/dist/src/utils/__tests__/timezone.spec.d.ts +1 -0
  86. package/dist/src/utils/timezone.d.ts +24 -0
  87. package/dist/use-file-manager-tabs-C_UUfS-F.cjs +3 -0
  88. package/dist/utils/timezone.js +19 -0
  89. package/package.json +2 -2
  90. package/dist/DateCellRenderer-ssp7eaZY.cjs +0 -1
  91. package/dist/JsonEditor-qv1Z0dLX.cjs +0 -1
  92. package/dist/MarkdownEditorContainer-Bzcnoemw.cjs +0 -1
  93. package/dist/lazy-tfN4sKhq.cjs +0 -1
  94. package/dist/use-file-manager-tabs-DjdR_mYM.cjs +0 -3
@@ -0,0 +1,166 @@
1
+ export declare const DIAL_KIT_CLASS: {
2
+ /** The `role="status"` root of a `Spinner`. */
3
+ readonly spinner: "dial-kit-spinner";
4
+ /**
5
+ * The outermost element of a `ProgressBar`: the box wrapping its label,
6
+ * track and readout — or the track itself, which is the root when the bar
7
+ * has neither.
8
+ */
9
+ readonly progressBar: "dial-kit-progress-bar";
10
+ /** The root of a `Skeleton`, wrapping its avatar and text rows. */
11
+ readonly skeleton: "dial-kit-skeleton";
12
+ /**
13
+ * The `Notification` surface. Present on every wrapper too — the toast and
14
+ * section-message variants of error, info, success, warning, loading and
15
+ * general all render this component.
16
+ */
17
+ readonly notification: "dial-kit-notification";
18
+ /** The empty-state root of `NoDataContent`. */
19
+ readonly noDataContent: "dial-kit-no-data-content";
20
+ /** The text element of a `Highlight`, which renders the matched query. */
21
+ readonly highlight: "dial-kit-highlight";
22
+ /** The caption line under a field, rendered by `CaptionText`. */
23
+ readonly captionText: "dial-kit-caption-text";
24
+ /**
25
+ * A caption in its error variant — what `ErrorText` renders. Additive to
26
+ * `captionText`, since one component draws both.
27
+ */
28
+ readonly errorText: "dial-kit-error-text";
29
+ /** The `Label` root, which wraps the `label` element and its info button. */
30
+ readonly label: "dial-kit-label";
31
+ /** The `article` element of a `CardShell`. */
32
+ readonly cardShell: "dial-kit-card-shell";
33
+ /** The `aside` element of a `CollapsibleSidebar`. */
34
+ readonly collapsibleSidebar: "dial-kit-collapsible-sidebar";
35
+ /** The content box inside a `ResizableContainer`'s resize frame. */
36
+ readonly resizableContainer: "dial-kit-resizable-container";
37
+ /**
38
+ * The `role="dialog"` panel of a `Popup`. Its backdrop is reached through
39
+ * `overlayClassName`.
40
+ */
41
+ readonly popup: "dial-kit-popup";
42
+ /** The `Popup` panel of a `ConfirmationPopup`, additive to `popup`. */
43
+ readonly confirmationPopup: "dial-kit-confirmation-popup";
44
+ /** The root of an `Accordion`. */
45
+ readonly accordion: "dial-kit-accordion";
46
+ /** The breadcrumb root of a `FolderPath`. */
47
+ readonly folderPath: "dial-kit-folder-path";
48
+ /** The `nav` element of a `Breadcrumbs` trail. */
49
+ readonly breadcrumbs: "dial-kit-breadcrumbs";
50
+ /**
51
+ * One segment of a `Breadcrumbs` trail: the link, button or plain span that
52
+ * draws the label — not the `li`, which also holds the separator after it.
53
+ */
54
+ readonly breadcrumbsItem: "dial-kit-breadcrumbs-item";
55
+ /**
56
+ * The trigger wrapper of a `Dropdown`. Its floating panel is reached through
57
+ * `listClassName`.
58
+ */
59
+ readonly dropdown: "dial-kit-dropdown";
60
+ /**
61
+ * The `role="none"` item list inside a dropdown overlay — the box that holds
62
+ * the rows and owns their vertical padding. Present in both generations, and
63
+ * on a submenu's own list. It is *not* the floating panel.
64
+ */
65
+ readonly dropdownList: "dial-kit-dropdown-list";
66
+ /**
67
+ * One row of a floating overlay: a dropdown item, a `Select` option, a
68
+ * submenu trigger, or a submenu child. It sits on the element that draws the
69
+ * row box — so on the wrapper, not the inner button, for a row that has a
70
+ * `rightControl` beside it.
71
+ */
72
+ readonly menuItem: "dial-kit-menuitem";
73
+ /**
74
+ * The trailing check of a chosen `MenuItemMark.Check` row. Decorative, like
75
+ * the glyph itself — the row's `aria-checked` / `aria-selected` carries the
76
+ * state.
77
+ */
78
+ readonly menuItemCheck: "dial-kit-menuitem-check";
79
+ /** The primary icon of a `DialDropdownIcon` trigger. */
80
+ readonly dropdownIcon: "dial-kit-dropdown-icon";
81
+ /**
82
+ * The caret badge of a `DialDropdownIcon` trigger — the round plate the
83
+ * chevron sits on. Absent when `showCaret` is `false`.
84
+ */
85
+ readonly dropdownIconCaret: "dial-kit-dropdown-icon-caret";
86
+ /** The bubble of a `Tooltip`, rendered by `TooltipContent` into a portal. */
87
+ readonly tooltip: "dial-kit-tooltip";
88
+ /** The panel of an `InteractiveTooltip` — the one whose content takes focus. */
89
+ readonly interactiveTooltip: "dial-kit-interactive-tooltip";
90
+ /** The text element of an `EllipsisTooltip`, which is also its trigger. */
91
+ readonly ellipsisTooltip: "dial-kit-ellipsis-tooltip";
92
+ /** The `Search` field, additive to the `dial-kit-input` its `Input` carries. */
93
+ readonly search: "dial-kit-search";
94
+ /** The `PasswordInput` field, additive to `dial-kit-input`. */
95
+ readonly passwordInput: "dial-kit-password-input";
96
+ /** The `NumberInput` field, additive to `dial-kit-input`. */
97
+ readonly numberInput: "dial-kit-number-input";
98
+ /** The `TagInput` field, additive to `dial-kit-input`. */
99
+ readonly tagInput: "dial-kit-tag-input";
100
+ /** The root of a `Select`, wrapping its label, field and caption. */
101
+ readonly select: "dial-kit-select";
102
+ /** The trigger button of an `InlineSelect`. */
103
+ readonly inlineSelect: "dial-kit-inline-select";
104
+ /** The root of a `Calendar`, wrapping its label and date field. */
105
+ readonly calendar: "dial-kit-calendar";
106
+ /** The drop area of a `FileDropzone`. */
107
+ readonly fileDropzone: "dial-kit-file-dropzone";
108
+ /** The row of a `Switch`: the control and its label. */
109
+ readonly switch: "dial-kit-switch";
110
+ /** The row of a `Checkbox`: the box and its label. */
111
+ readonly checkbox: "dial-kit-checkbox";
112
+ /** The decorative box a `CheckboxBox` draws, in a checkbox or a menu row. */
113
+ readonly checkboxBox: "dial-kit-checkbox-box";
114
+ /** The row of a `Radio`: the circle and its label. */
115
+ readonly radio: "dial-kit-radio";
116
+ /** The root of a `RadioGroup`, wrapping its label and its radios. */
117
+ readonly radioGroup: "dial-kit-radio-group";
118
+ /**
119
+ * The root of a `RadioGroupPopupField`, wrapping its label and the collapsed
120
+ * field that opens the group.
121
+ */
122
+ readonly radioGroupPopupField: "dial-kit-radio-group-popup-field";
123
+ /** The `role="radiogroup"` track of a `SegmentedControl`. */
124
+ readonly segmentedControl: "dial-kit-segmented-control";
125
+ /** One segment of a `SegmentedControl`. */
126
+ readonly segmentedControlItem: "dial-kit-segmented-control-item";
127
+ /**
128
+ * The outermost element of a `Tabs`: the box wrapping its heading and tab
129
+ * list — or the `role="tablist"` itself, which is the root when the tabs
130
+ * carry no `sectionLabel`.
131
+ */
132
+ readonly tabs: "dial-kit-tabs";
133
+ /**
134
+ * The `role="tablist"` holding the tabs, in either orientation. Additive to
135
+ * `tabs` when there is no heading above it, since one element is then both.
136
+ */
137
+ readonly tabList: "dial-kit-tab-list";
138
+ /**
139
+ * One tab inside `Tabs`, in either orientation. The selected tab of a
140
+ * horizontal row keeps its own `dial-kit-tab-selected-underline`.
141
+ */
142
+ readonly tab: "dial-kit-tab";
143
+ /** The `sectionLabel` heading above a `Tabs`. Absent when there is none. */
144
+ readonly tabsSectionLabel: "dial-kit-tabs-section-label";
145
+ /**
146
+ * The `role="group"` row of a `FilterChips`. Its chips are `Tag` pills, so
147
+ * they carry `dial-kit-tag` and have no entry of their own.
148
+ */
149
+ readonly filterChips: "dial-kit-filter-chips";
150
+ /** A `Tag` pill, wherever it is rendered — including a `TagInput`'s rows. */
151
+ readonly tag: "dial-kit-tag";
152
+ /**
153
+ * A `ToggleIconButton`, additive to the `dial-kit-base-icon-button` it
154
+ * already carries.
155
+ */
156
+ readonly toggleIconButton: "dial-kit-toggle-icon-button";
157
+ /** A `CloseButton`, additive to `dial-kit-base-icon-button`. */
158
+ readonly closeButton: "dial-kit-close-button";
159
+ /** An `InfoButton`, additive to `dial-kit-base-icon-button`. */
160
+ readonly infoButton: "dial-kit-info-button";
161
+ /**
162
+ * The wrapper of a `ButtonDropdown` — its trigger carries
163
+ * `dial-kit-base-button`.
164
+ */
165
+ readonly buttonDropdown: "dial-kit-button-dropdown";
166
+ };
@@ -138,9 +138,12 @@ export { type DialCopiedItem, type DialDeletedItem, type DialUploadFileItem, typ
138
138
  export { GridSelectionMode } from './models/selection-mode';
139
139
  export { mergeClasses } from './utils/merge-classes';
140
140
  export { wrapInRootFolder } from './utils/flat-to-hierarchy-convertor.ts';
141
+ export { getTimezoneLabel } from './utils/timezone';
142
+ export type { TimezoneLabelOptions } from './utils/timezone';
141
143
  export { NAME_COLUMN, SIZE_COLUMN, UPDATED_AT_COLUMN, } from './constants/file-grid-columns';
142
144
  export { DIAL_ICON_SIZE, BASE_ICON_PROPS, BASE_ICON_SIZE, } from './constants/icon.ts';
143
145
  export { NOT_ALLOWED_SYMBOLS, NOT_ALLOWED_SPACES, NOT_ALLOWED_SYMBOLS_REGEXP, NOT_ALLOWED_SPACES_REGEXP, } from './constants/validation.ts';
146
+ export { DIAL_KIT_CLASS } from './constants/public-class-names';
144
147
  export { DialSchemaRenderer } from './components/SchemaRenderer/SchemaRenderer';
145
148
  export { SchemaRendererVariant, SchemaDisplayMode, SchemaOrientation, JsonSchemaType, } from './components/SchemaRenderer/types';
146
149
  export type { DialSchemaRendererProps, JsonSchema, JsonSchemaDef, ValidationError, } from './components/SchemaRenderer/types';
@@ -157,6 +160,8 @@ export { Calendar } from './components/New/Calendar/Calendar';
157
160
  export type { CalendarProps, CalendarValue, } from './components/New/Calendar/Calendar';
158
161
  export { FolderPath } from './components/New/FolderPath/FolderPath';
159
162
  export type { FolderPathProps } from './components/New/FolderPath/FolderPath';
163
+ export { Breadcrumbs } from './components/New/Breadcrumbs/Breadcrumbs';
164
+ export type { BreadcrumbsProps, BreadcrumbsItem, } from './components/New/Breadcrumbs/Breadcrumbs';
160
165
  export { DangerButton, GhostButton, LinkButton, NeutralButton, OutlinedButton, PrimaryButton, } from './components/New/Button/ButtonWrappers';
161
166
  export { DangerIconButton, GhostIconButton, NeutralIconButton, PrimaryIconButton, StaticIconButton, } from './components/New/IconButton/IconButtonWrappers';
162
167
  export { Button } from './components/New/Button/Button';
@@ -221,6 +226,8 @@ export { SegmentedControl } from './components/New/SegmentedControl/SegmentedCon
221
226
  export type { SegmentedControlProps, SegmentedControlItem, } from './components/New/SegmentedControl/SegmentedControl';
222
227
  export { Tabs } from './components/New/Tabs/Tabs';
223
228
  export type { TabsProps, TabItem } from './components/New/Tabs/Tabs';
229
+ export { FilterChips } from './components/New/FilterChips/FilterChips';
230
+ export type { FilterChipsProps, FilterChipItem, } from './components/New/FilterChips/FilterChips';
224
231
  export { FileDropzone } from './components/New/FileDropzone/FileDropzone';
225
232
  export type { FileDropzoneProps } from './components/New/FileDropzone/FileDropzone';
226
233
  export { Tag } from './components/New/Tag/Tag';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Options for {@link getTimezoneLabel}.
3
+ */
4
+ export interface TimezoneLabelOptions {
5
+ /** BCP 47 locale tag; only affects how the platform renders the offset
6
+ * (e.g. `fr` renders `UTC+01:00` where `en` renders `GMT+01:00`). Omitting
7
+ * it passes `undefined` to `Intl`, which resolves to the runtime's default
8
+ * locale. */
9
+ locale?: string;
10
+ /** IANA timezone name; defaults to the viewer's zone from
11
+ * `Intl.DateTimeFormat().resolvedOptions().timeZone`. */
12
+ timeZone?: string;
13
+ /** The date whose offset is rendered — the one in effect on `date`, so a
14
+ * value across a DST boundary from today shows its own offset. Defaults to
15
+ * today. */
16
+ date?: Date;
17
+ }
18
+ /**
19
+ * Returns a timezone as a hint label for time-of-day fields, e.g.
20
+ * `(GMT+01:00) Europe/Berlin`: the UTC offset in effect at `options.date`
21
+ * rendered by `Intl` (`timeZoneName: 'longOffset'`), followed by the IANA
22
+ * timezone name.
23
+ */
24
+ export declare const getTimezoneLabel: ({ locale, timeZone, date, }?: TimezoneLabelOptions) => string;