@epam/ai-dial-ui-kit 0.15.0-dev.6 → 0.15.0-dev.7
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.
- package/README.md +139 -0
- package/dist/CHANGELOG.md +10 -0
- package/dist/{DateCellRenderer-BVM-Q8yx.cjs → DateCellRenderer-4iMidqal.cjs} +26 -26
- package/dist/DateCellRenderer-CTTAnQjB.cjs +1 -0
- package/dist/JsonEditor-D2jSlRFi.cjs +1 -0
- package/dist/{MarkdownEditor-jQ8nDJfx.cjs → MarkdownEditor-BzEbdj7R.cjs} +1 -1
- package/dist/{MarkdownEditor-DHn2pYOJ.cjs → MarkdownEditor-C9-ZMRVi.cjs} +1 -1
- package/dist/MarkdownEditorContainer-BvwJjkiZ.cjs +1 -0
- package/dist/components/Dropdown/Dropdown.js +70 -65
- package/dist/components/Dropdown/DropdownSubMenuItem.js +63 -55
- package/dist/components/Dropdown/constants.js +14 -12
- package/dist/components/DropdownIcon/DropdownIcon.js +43 -32
- package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +18 -16
- package/dist/components/New/Accordion/Accordion.js +39 -37
- package/dist/components/New/ButtonDropdown/ButtonDropdown.js +7 -6
- package/dist/components/New/Calendar/Calendar.js +253 -222
- package/dist/components/New/CaptionText/CaptionText.js +18 -15
- package/dist/components/New/CardShell/CardShell.js +4 -2
- package/dist/components/New/Checkbox/Checkbox.js +67 -56
- package/dist/components/New/Checkbox/CheckboxBox.js +4 -2
- package/dist/components/New/CloseButton/CloseButton.js +18 -16
- package/dist/components/New/CollapsibleSidebar/CollapsibleSidebar.js +39 -34
- package/dist/components/New/ConfirmationPopup/ConfirmationPopup.js +44 -39
- package/dist/components/New/Dropdown/Dropdown.js +101 -95
- package/dist/components/New/EllipsisTooltip/EllipsisTooltip.js +19 -17
- package/dist/components/New/FileDropzone/FileDropzone.js +27 -25
- package/dist/components/New/FolderPath/FolderPath.js +29 -28
- package/dist/components/New/Highlight/Highlight.js +23 -30
- package/dist/components/New/InfoButton/InfoButton.js +12 -10
- package/dist/components/New/InlineSelect/InlineSelect.js +43 -41
- package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +40 -38
- package/dist/components/New/Label/Label.js +13 -8
- package/dist/components/New/MenuItem/MenuItem.js +29 -27
- package/dist/components/New/MenuItem/constants.js +9 -8
- package/dist/components/New/NoDataContent/NoDataContent.js +20 -18
- package/dist/components/New/Notification/Notification.js +18 -16
- package/dist/components/New/NumberInput/NumberInput.js +42 -33
- package/dist/components/New/PasswordInput/PasswordInput.js +41 -35
- package/dist/components/New/Popup/Popup.js +45 -43
- package/dist/components/New/Radio/Radio.js +75 -64
- package/dist/components/New/RadioGroup/RadioGroup.js +76 -65
- package/dist/components/New/RadioGroupPopupField/RadioGroupPopupField.js +117 -106
- package/dist/components/New/ResizableContainer/ResizableContainer.js +42 -40
- package/dist/components/New/Search/Search.js +28 -26
- package/dist/components/New/SegmentedControl/SegmentedControl.js +29 -23
- package/dist/components/New/Select/Select.js +120 -109
- package/dist/components/New/Switch/Switch.js +69 -58
- package/dist/components/New/Tabs/Tabs.js +28 -22
- package/dist/components/New/Tag/Tag.js +42 -40
- package/dist/components/New/TagInput/TagInput.js +44 -42
- package/dist/components/New/ToggleIconButton/ToggleIconButton.js +25 -23
- package/dist/components/New/Tooltip/TooltipContent.js +10 -8
- package/dist/components/ProgressBar/ProgressBar.js +45 -31
- package/dist/components/Skeleton/Skeleton.js +25 -19
- package/dist/components/Spinner/Spinner.js +6 -4
- package/dist/components-manifest.json +7 -2
- package/dist/constants/public-class-names.js +152 -0
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/dial-ui-kit.js +203 -201
- package/dist/editor-_174x-qy.cjs +1 -0
- package/dist/editors.cjs +1 -1
- package/dist/file-manager.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/lazy-DM-7dL0Y.cjs +1 -0
- package/dist/src/constants/public-class-names.d.ts +143 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/use-file-manager-tabs-DKmWaOlC.cjs +3 -0
- package/package.json +1 -1
- package/dist/DateCellRenderer-ssp7eaZY.cjs +0 -1
- package/dist/JsonEditor-qv1Z0dLX.cjs +0 -1
- package/dist/MarkdownEditorContainer-Bzcnoemw.cjs +0 -1
- package/dist/lazy-tfN4sKhq.cjs +0 -1
- package/dist/use-file-manager-tabs-DjdR_mYM.cjs +0 -3
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
1
|
+
import { jsx as t, Fragment as L, jsxs as k } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { mergeClasses as n } from "../../utils/merge-classes.js";
|
|
4
|
-
import { SkeletonVariant as i, SkeletonAvatarShape as
|
|
5
|
-
import { getAvatarSize as
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { SkeletonVariant as i, SkeletonAvatarShape as S } from "../../types/skeleton.js";
|
|
5
|
+
import { getAvatarSize as P } from "./utils.js";
|
|
6
|
+
import { DIAL_KIT_CLASS as R } from "../../constants/public-class-names.js";
|
|
7
|
+
const B = ({
|
|
8
|
+
active: A = !0,
|
|
8
9
|
paragraph: u = !0,
|
|
9
10
|
avatar: m = !1,
|
|
10
11
|
showTitle: p = !0,
|
|
11
|
-
loading:
|
|
12
|
+
loading: N = !0,
|
|
12
13
|
children: g,
|
|
13
14
|
variant: o = i.Default,
|
|
14
15
|
width: l,
|
|
@@ -16,13 +17,13 @@ const G = ({
|
|
|
16
17
|
overlay: s,
|
|
17
18
|
color: e,
|
|
18
19
|
className: h,
|
|
19
|
-
...
|
|
20
|
+
...C
|
|
20
21
|
}) => {
|
|
21
|
-
if (!
|
|
22
|
-
return /* @__PURE__ */ t(
|
|
22
|
+
if (!N && g)
|
|
23
|
+
return /* @__PURE__ */ t(L, { children: g });
|
|
23
24
|
const d = n(
|
|
24
25
|
"bg-layer-raised",
|
|
25
|
-
|
|
26
|
+
A && "animate-pulse",
|
|
26
27
|
h
|
|
27
28
|
);
|
|
28
29
|
if (o !== i.Default) {
|
|
@@ -33,21 +34,26 @@ const G = ({
|
|
|
33
34
|
o === i.Text && "rounded",
|
|
34
35
|
!!s && "relative"
|
|
35
36
|
), r = {};
|
|
36
|
-
return l && (r.width = typeof l == "number" ? `${l}px` : l), c && (r.height = typeof c == "number" ? `${c}px` : c), e && (r.backgroundColor = e), /* @__PURE__ */ t("div", { className: a, style: r, ...
|
|
37
|
+
return l && (r.width = typeof l == "number" ? `${l}px` : l), c && (r.height = typeof c == "number" ? `${c}px` : c), e && (r.backgroundColor = e), /* @__PURE__ */ t("div", { className: a, style: r, ...C, children: s && /* @__PURE__ */ t("div", { className: "absolute inset-0 flex items-center justify-center pointer-events-none", children: s }) });
|
|
37
38
|
}
|
|
38
|
-
const
|
|
39
|
+
const j = !!m, w = !!p, z = !!u, b = typeof m == "object" ? m : {}, D = typeof p == "object" ? p : {}, x = typeof u == "object" ? u : {}, y = P(b.size), W = b.shape ?? S.Circle, _ = D.width ?? "38%", v = x.rows ?? 3, f = x.width, I = (a) => f ? Array.isArray(f) ? f[a] ?? "100%" : f : a === v - 1 ? "61%" : "100%";
|
|
39
40
|
return /* @__PURE__ */ k(
|
|
40
41
|
"div",
|
|
41
42
|
{
|
|
42
|
-
...
|
|
43
|
-
className: n(
|
|
43
|
+
...C,
|
|
44
|
+
className: n(
|
|
45
|
+
R.skeleton,
|
|
46
|
+
"flex gap-4",
|
|
47
|
+
!!s && "relative",
|
|
48
|
+
h
|
|
49
|
+
),
|
|
44
50
|
children: [
|
|
45
|
-
|
|
51
|
+
j && /* @__PURE__ */ t(
|
|
46
52
|
"div",
|
|
47
53
|
{
|
|
48
54
|
className: n(
|
|
49
55
|
d,
|
|
50
|
-
|
|
56
|
+
W === S.Circle ? "rounded-full" : "rounded",
|
|
51
57
|
"flex-shrink-0"
|
|
52
58
|
),
|
|
53
59
|
style: {
|
|
@@ -63,7 +69,7 @@ const G = ({
|
|
|
63
69
|
{
|
|
64
70
|
className: n(d, "h-4 rounded"),
|
|
65
71
|
style: {
|
|
66
|
-
width:
|
|
72
|
+
width: _,
|
|
67
73
|
...e && { backgroundColor: e }
|
|
68
74
|
}
|
|
69
75
|
}
|
|
@@ -73,7 +79,7 @@ const G = ({
|
|
|
73
79
|
{
|
|
74
80
|
className: n(d, "h-4 rounded"),
|
|
75
81
|
style: {
|
|
76
|
-
width:
|
|
82
|
+
width: I(r),
|
|
77
83
|
...e && { backgroundColor: e }
|
|
78
84
|
}
|
|
79
85
|
},
|
|
@@ -86,5 +92,5 @@ const G = ({
|
|
|
86
92
|
);
|
|
87
93
|
};
|
|
88
94
|
export {
|
|
89
|
-
|
|
95
|
+
B as Skeleton
|
|
90
96
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { mergeClasses as
|
|
3
|
-
|
|
2
|
+
import { mergeClasses as n } from "../../utils/merge-classes.js";
|
|
3
|
+
import { DIAL_KIT_CLASS as o } from "../../constants/public-class-names.js";
|
|
4
|
+
const d = ({
|
|
4
5
|
size: e = 40,
|
|
5
6
|
className: s,
|
|
6
7
|
fullWidth: t = !1,
|
|
@@ -9,7 +10,8 @@ const o = ({
|
|
|
9
10
|
"div",
|
|
10
11
|
{
|
|
11
12
|
role: "status",
|
|
12
|
-
className:
|
|
13
|
+
className: n(
|
|
14
|
+
o.spinner,
|
|
13
15
|
"flex items-center justify-center",
|
|
14
16
|
{ "size-full": t },
|
|
15
17
|
s
|
|
@@ -26,5 +28,5 @@ const o = ({
|
|
|
26
28
|
}
|
|
27
29
|
);
|
|
28
30
|
export {
|
|
29
|
-
|
|
31
|
+
d as Spinner
|
|
30
32
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.15.0-dev.
|
|
3
|
-
"generatedAt": "2026-09-
|
|
2
|
+
"version": "0.15.0-dev.7",
|
|
3
|
+
"generatedAt": "2026-09-18T08:37:26.796Z",
|
|
4
4
|
"kit": {
|
|
5
5
|
"name": "@epam/ai-dial-ui-kit",
|
|
6
6
|
"description": "A modern UI kit for building AI DIAL interfaces with React",
|
|
@@ -10761,6 +10761,11 @@
|
|
|
10761
10761
|
"name": "NOT_ALLOWED_SPACES_REGEXP",
|
|
10762
10762
|
"sourceFile": "constants/validation.ts",
|
|
10763
10763
|
"signature": "NOT_ALLOWED_SPACES_REGEXP = new RegExp(NOT_ALLOWED_SPACES)"
|
|
10764
|
+
},
|
|
10765
|
+
{
|
|
10766
|
+
"name": "DIAL_KIT_CLASS",
|
|
10767
|
+
"sourceFile": "constants/public-class-names.ts",
|
|
10768
|
+
"signature": "DIAL_KIT_CLASS = {\n /* ── Feedback and status ───────────────────────────────────────────────── */\n /** The `role=\"status\"` root of a `Spinner`. */\n spinner: 'dial-kit-spinner',\n /**\n * The outermost element of a `ProgressBar`: the box wrapping its label,\n * track and readout — or the track itself, which is the root when the bar\n * has neither.\n */\n progressBar: 'dial-kit-progress-bar',\n /** The root of a `Skeleton`, wrapping its avatar and text rows. */\n skeleton: 'dial-kit-skeleton',\n /**\n * The `Notification` surface. Present on every wrapper too — the toast and\n * section-message variants of error, info, success, warning, loading and\n * general all render this component.\n */\n notification: 'dial-kit-notification',\n /** The empty-state root of `NoDataContent`. */\n noDataContent: 'dial-kit-no-data-content',\n\n /* ── Text ──────────────────────────────────────────────────────────────── */\n /** The text element of a `Highlight`, which renders the matched query. */\n highlight: 'dial-kit-highlight',\n /** The caption line under a field, rendered by `CaptionText`. */\n captionText: 'dial-kit-caption-text',\n /**\n * A caption in its error variant — what `ErrorText` renders. Additive to\n * `captionText`, since one component draws both.\n */\n errorText: 'dial-kit-error-text',\n /** The `Label` root, which wraps the `label` element and its info button. */\n label: 'dial-kit-label',\n\n /* ── Containers ────────────────────────────────────────────────────────── */\n /** The `article` element of a `CardShell`. */\n cardShell: 'dial-kit-card-shell',\n /** The `aside` element of a `CollapsibleSidebar`. */\n collapsibleSidebar: 'dial-kit-collapsible-sidebar',\n /** The content box inside a `ResizableContainer`'s resize frame. */\n resizableContainer: 'dial-kit-resizable-container',\n /**\n * The `role=\"dialog\"` panel of a `Popup`. Its backdrop is reached through\n * `overlayClassName`.\n */\n popup: 'dial-kit-popup',\n /** The `Popup` panel of a `ConfirmationPopup`, additive to `popup`. */\n confirmationPopup: 'dial-kit-confirmation-popup',\n /** The root of an `Accordion`. */\n accordion: 'dial-kit-accordion',\n /** The breadcrumb root of a `FolderPath`. */\n folderPath: 'dial-kit-folder-path',\n\n /* ── Menus and overlays ────────────────────────────────────────────────── */\n /**\n * The trigger wrapper of a `Dropdown`. Its floating panel is reached through\n * `listClassName`.\n */\n dropdown: 'dial-kit-dropdown',\n /**\n * The `role=\"none\"` item list inside a dropdown overlay — the box that holds\n * the rows and owns their vertical padding. Present in both generations, and\n * on a submenu's own list. It is *not* the floating panel.\n */\n dropdownList: 'dial-kit-dropdown-list',\n /**\n * One row of a floating overlay: a dropdown item, a `Select` option, a\n * submenu trigger, or a submenu child. It sits on the element that draws the\n * row box — so on the wrapper, not the inner button, for a row that has a\n * `rightControl` beside it.\n */\n menuItem: 'dial-kit-menuitem',\n /**\n * The trailing check of a chosen `MenuItemMark.Check` row. Decorative, like\n * the glyph itself — the row's `aria-checked` / `aria-selected` carries the\n * state.\n */\n menuItemCheck: 'dial-kit-menuitem-check',\n /** The primary icon of a `DialDropdownIcon` trigger. */\n dropdownIcon: 'dial-kit-dropdown-icon',\n /**\n * The caret badge of a `DialDropdownIcon` trigger — the round plate the\n * chevron sits on. Absent when `showCaret` is `false`.\n */\n dropdownIconCaret: 'dial-kit-dropdown-icon-caret',\n /** The bubble of a `Tooltip`, rendered by `TooltipContent` into a portal. */\n tooltip: 'dial-kit-tooltip',\n /** The panel of an `InteractiveTooltip` — the one whose content takes focus. */\n interactiveTooltip: 'dial-kit-interactive-tooltip',\n /** The text element of an `EllipsisTooltip`, which is also its trigger. */\n ellipsisTooltip: 'dial-kit-ellipsis-tooltip',\n\n /* ── Fields ────────────────────────────────────────────────────────────── */\n /** The `Search` field, additive to the `dial-kit-input` its `Input` carries. */\n search: 'dial-kit-search',\n /** The `PasswordInput` field, additive to `dial-kit-input`. */\n passwordInput: 'dial-kit-password-input',\n /** The `NumberInput` field, additive to `dial-kit-input`. */\n numberInput: 'dial-kit-number-input',\n /** The `TagInput` field, additive to `dial-kit-input`. */\n tagInput: 'dial-kit-tag-input',\n /** The root of a `Select`, wrapping its label, field and caption. */\n select: 'dial-kit-select',\n /** The trigger button of an `InlineSelect`. */\n inlineSelect: 'dial-kit-inline-select',\n /** The root of a `Calendar`, wrapping its label and date field. */\n calendar: 'dial-kit-calendar',\n /** The drop area of a `FileDropzone`. */\n fileDropzone: 'dial-kit-file-dropzone',\n\n /* ── Controls ──────────────────────────────────────────────────────────── */\n /** The row of a `Switch`: the control and its label. */\n switch: 'dial-kit-switch',\n /** The row of a `Checkbox`: the box and its label. */\n checkbox: 'dial-kit-checkbox',\n /** The decorative box a `CheckboxBox` draws, in a checkbox or a menu row. */\n checkboxBox: 'dial-kit-checkbox-box',\n /** The row of a `Radio`: the circle and its label. */\n radio: 'dial-kit-radio',\n /** The root of a `RadioGroup`, wrapping its label and its radios. */\n radioGroup: 'dial-kit-radio-group',\n /**\n * The root of a `RadioGroupPopupField`, wrapping its label and the collapsed\n * field that opens the group.\n */\n radioGroupPopupField: 'dial-kit-radio-group-popup-field',\n /** The `role=\"radiogroup\"` track of a `SegmentedControl`. */\n segmentedControl: 'dial-kit-segmented-control',\n /** One segment of a `SegmentedControl`. */\n segmentedControlItem: 'dial-kit-segmented-control-item',\n /** The `role=\"tablist\"` root of `Tabs`. */\n tabs: 'dial-kit-tabs',\n /**\n * One tab inside `Tabs`. The selected tab's underline keeps its own\n * `dial-kit-tab-selected-underline`.\n */\n tab: 'dial-kit-tab',\n /** A `Tag` pill, wherever it is rendered — including a `TagInput`'s rows. */\n tag: 'dial-kit-tag',\n /**\n * A `ToggleIconButton`, additive to the `dial-kit-base-icon-button` it\n * already carries.\n */\n toggleIconButton: 'dial-kit-toggle-icon-button',\n /** A `CloseButton`, additive to `dial-kit-base-icon-button`. */\n closeButton: 'dial-kit-close-button',\n /** An `InfoButton`, additive to `dial-kit-base-icon-button`. */\n infoButton: 'dial-kit-info-button',\n /**\n * The wrapper of a `ButtonDropdown` — its trigger carries\n * `dial-kit-base-button`.\n */\n buttonDropdown: 'dial-kit-button-dropdown',\n} as const"
|
|
10764
10769
|
}
|
|
10765
10770
|
]
|
|
10766
10771
|
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
const i = {
|
|
2
|
+
/* ── Feedback and status ───────────────────────────────────────────────── */
|
|
3
|
+
/** The `role="status"` root of a `Spinner`. */
|
|
4
|
+
spinner: "dial-kit-spinner",
|
|
5
|
+
/**
|
|
6
|
+
* The outermost element of a `ProgressBar`: the box wrapping its label,
|
|
7
|
+
* track and readout — or the track itself, which is the root when the bar
|
|
8
|
+
* has neither.
|
|
9
|
+
*/
|
|
10
|
+
progressBar: "dial-kit-progress-bar",
|
|
11
|
+
/** The root of a `Skeleton`, wrapping its avatar and text rows. */
|
|
12
|
+
skeleton: "dial-kit-skeleton",
|
|
13
|
+
/**
|
|
14
|
+
* The `Notification` surface. Present on every wrapper too — the toast and
|
|
15
|
+
* section-message variants of error, info, success, warning, loading and
|
|
16
|
+
* general all render this component.
|
|
17
|
+
*/
|
|
18
|
+
notification: "dial-kit-notification",
|
|
19
|
+
/** The empty-state root of `NoDataContent`. */
|
|
20
|
+
noDataContent: "dial-kit-no-data-content",
|
|
21
|
+
/* ── Text ──────────────────────────────────────────────────────────────── */
|
|
22
|
+
/** The text element of a `Highlight`, which renders the matched query. */
|
|
23
|
+
highlight: "dial-kit-highlight",
|
|
24
|
+
/** The caption line under a field, rendered by `CaptionText`. */
|
|
25
|
+
captionText: "dial-kit-caption-text",
|
|
26
|
+
/**
|
|
27
|
+
* A caption in its error variant — what `ErrorText` renders. Additive to
|
|
28
|
+
* `captionText`, since one component draws both.
|
|
29
|
+
*/
|
|
30
|
+
errorText: "dial-kit-error-text",
|
|
31
|
+
/** The `Label` root, which wraps the `label` element and its info button. */
|
|
32
|
+
label: "dial-kit-label",
|
|
33
|
+
/* ── Containers ────────────────────────────────────────────────────────── */
|
|
34
|
+
/** The `article` element of a `CardShell`. */
|
|
35
|
+
cardShell: "dial-kit-card-shell",
|
|
36
|
+
/** The `aside` element of a `CollapsibleSidebar`. */
|
|
37
|
+
collapsibleSidebar: "dial-kit-collapsible-sidebar",
|
|
38
|
+
/** The content box inside a `ResizableContainer`'s resize frame. */
|
|
39
|
+
resizableContainer: "dial-kit-resizable-container",
|
|
40
|
+
/**
|
|
41
|
+
* The `role="dialog"` panel of a `Popup`. Its backdrop is reached through
|
|
42
|
+
* `overlayClassName`.
|
|
43
|
+
*/
|
|
44
|
+
popup: "dial-kit-popup",
|
|
45
|
+
/** The `Popup` panel of a `ConfirmationPopup`, additive to `popup`. */
|
|
46
|
+
confirmationPopup: "dial-kit-confirmation-popup",
|
|
47
|
+
/** The root of an `Accordion`. */
|
|
48
|
+
accordion: "dial-kit-accordion",
|
|
49
|
+
/** The breadcrumb root of a `FolderPath`. */
|
|
50
|
+
folderPath: "dial-kit-folder-path",
|
|
51
|
+
/* ── Menus and overlays ────────────────────────────────────────────────── */
|
|
52
|
+
/**
|
|
53
|
+
* The trigger wrapper of a `Dropdown`. Its floating panel is reached through
|
|
54
|
+
* `listClassName`.
|
|
55
|
+
*/
|
|
56
|
+
dropdown: "dial-kit-dropdown",
|
|
57
|
+
/**
|
|
58
|
+
* The `role="none"` item list inside a dropdown overlay — the box that holds
|
|
59
|
+
* the rows and owns their vertical padding. Present in both generations, and
|
|
60
|
+
* on a submenu's own list. It is *not* the floating panel.
|
|
61
|
+
*/
|
|
62
|
+
dropdownList: "dial-kit-dropdown-list",
|
|
63
|
+
/**
|
|
64
|
+
* One row of a floating overlay: a dropdown item, a `Select` option, a
|
|
65
|
+
* submenu trigger, or a submenu child. It sits on the element that draws the
|
|
66
|
+
* row box — so on the wrapper, not the inner button, for a row that has a
|
|
67
|
+
* `rightControl` beside it.
|
|
68
|
+
*/
|
|
69
|
+
menuItem: "dial-kit-menuitem",
|
|
70
|
+
/**
|
|
71
|
+
* The trailing check of a chosen `MenuItemMark.Check` row. Decorative, like
|
|
72
|
+
* the glyph itself — the row's `aria-checked` / `aria-selected` carries the
|
|
73
|
+
* state.
|
|
74
|
+
*/
|
|
75
|
+
menuItemCheck: "dial-kit-menuitem-check",
|
|
76
|
+
/** The primary icon of a `DialDropdownIcon` trigger. */
|
|
77
|
+
dropdownIcon: "dial-kit-dropdown-icon",
|
|
78
|
+
/**
|
|
79
|
+
* The caret badge of a `DialDropdownIcon` trigger — the round plate the
|
|
80
|
+
* chevron sits on. Absent when `showCaret` is `false`.
|
|
81
|
+
*/
|
|
82
|
+
dropdownIconCaret: "dial-kit-dropdown-icon-caret",
|
|
83
|
+
/** The bubble of a `Tooltip`, rendered by `TooltipContent` into a portal. */
|
|
84
|
+
tooltip: "dial-kit-tooltip",
|
|
85
|
+
/** The panel of an `InteractiveTooltip` — the one whose content takes focus. */
|
|
86
|
+
interactiveTooltip: "dial-kit-interactive-tooltip",
|
|
87
|
+
/** The text element of an `EllipsisTooltip`, which is also its trigger. */
|
|
88
|
+
ellipsisTooltip: "dial-kit-ellipsis-tooltip",
|
|
89
|
+
/* ── Fields ────────────────────────────────────────────────────────────── */
|
|
90
|
+
/** The `Search` field, additive to the `dial-kit-input` its `Input` carries. */
|
|
91
|
+
search: "dial-kit-search",
|
|
92
|
+
/** The `PasswordInput` field, additive to `dial-kit-input`. */
|
|
93
|
+
passwordInput: "dial-kit-password-input",
|
|
94
|
+
/** The `NumberInput` field, additive to `dial-kit-input`. */
|
|
95
|
+
numberInput: "dial-kit-number-input",
|
|
96
|
+
/** The `TagInput` field, additive to `dial-kit-input`. */
|
|
97
|
+
tagInput: "dial-kit-tag-input",
|
|
98
|
+
/** The root of a `Select`, wrapping its label, field and caption. */
|
|
99
|
+
select: "dial-kit-select",
|
|
100
|
+
/** The trigger button of an `InlineSelect`. */
|
|
101
|
+
inlineSelect: "dial-kit-inline-select",
|
|
102
|
+
/** The root of a `Calendar`, wrapping its label and date field. */
|
|
103
|
+
calendar: "dial-kit-calendar",
|
|
104
|
+
/** The drop area of a `FileDropzone`. */
|
|
105
|
+
fileDropzone: "dial-kit-file-dropzone",
|
|
106
|
+
/* ── Controls ──────────────────────────────────────────────────────────── */
|
|
107
|
+
/** The row of a `Switch`: the control and its label. */
|
|
108
|
+
switch: "dial-kit-switch",
|
|
109
|
+
/** The row of a `Checkbox`: the box and its label. */
|
|
110
|
+
checkbox: "dial-kit-checkbox",
|
|
111
|
+
/** The decorative box a `CheckboxBox` draws, in a checkbox or a menu row. */
|
|
112
|
+
checkboxBox: "dial-kit-checkbox-box",
|
|
113
|
+
/** The row of a `Radio`: the circle and its label. */
|
|
114
|
+
radio: "dial-kit-radio",
|
|
115
|
+
/** The root of a `RadioGroup`, wrapping its label and its radios. */
|
|
116
|
+
radioGroup: "dial-kit-radio-group",
|
|
117
|
+
/**
|
|
118
|
+
* The root of a `RadioGroupPopupField`, wrapping its label and the collapsed
|
|
119
|
+
* field that opens the group.
|
|
120
|
+
*/
|
|
121
|
+
radioGroupPopupField: "dial-kit-radio-group-popup-field",
|
|
122
|
+
/** The `role="radiogroup"` track of a `SegmentedControl`. */
|
|
123
|
+
segmentedControl: "dial-kit-segmented-control",
|
|
124
|
+
/** One segment of a `SegmentedControl`. */
|
|
125
|
+
segmentedControlItem: "dial-kit-segmented-control-item",
|
|
126
|
+
/** The `role="tablist"` root of `Tabs`. */
|
|
127
|
+
tabs: "dial-kit-tabs",
|
|
128
|
+
/**
|
|
129
|
+
* One tab inside `Tabs`. The selected tab's underline keeps its own
|
|
130
|
+
* `dial-kit-tab-selected-underline`.
|
|
131
|
+
*/
|
|
132
|
+
tab: "dial-kit-tab",
|
|
133
|
+
/** A `Tag` pill, wherever it is rendered — including a `TagInput`'s rows. */
|
|
134
|
+
tag: "dial-kit-tag",
|
|
135
|
+
/**
|
|
136
|
+
* A `ToggleIconButton`, additive to the `dial-kit-base-icon-button` it
|
|
137
|
+
* already carries.
|
|
138
|
+
*/
|
|
139
|
+
toggleIconButton: "dial-kit-toggle-icon-button",
|
|
140
|
+
/** A `CloseButton`, additive to `dial-kit-base-icon-button`. */
|
|
141
|
+
closeButton: "dial-kit-close-button",
|
|
142
|
+
/** An `InfoButton`, additive to `dial-kit-base-icon-button`. */
|
|
143
|
+
infoButton: "dial-kit-info-button",
|
|
144
|
+
/**
|
|
145
|
+
* The wrapper of a `ButtonDropdown` — its trigger carries
|
|
146
|
+
* `dial-kit-base-button`.
|
|
147
|
+
*/
|
|
148
|
+
buttonDropdown: "dial-kit-button-dropdown"
|
|
149
|
+
};
|
|
150
|
+
export {
|
|
151
|
+
i as DIAL_KIT_CLASS
|
|
152
|
+
};
|