@epam/ai-dial-ui-kit 0.15.0-dev.5 → 0.15.0-dev.51
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 +194 -1
- package/dist/CHANGELOG.md +88 -0
- package/dist/{DateCellRenderer-BVM-Q8yx.cjs → DateCellRenderer-CZNa4jVJ.cjs} +31 -31
- package/dist/DateCellRenderer-CmgeZvYm.cjs +1 -0
- package/dist/IconButton-DHOFapLo.cjs +1 -0
- package/dist/JsonEditor-Bxui5wJH.cjs +1 -0
- package/dist/{MarkdownEditor-C9-ZMRVi.cjs → MarkdownEditor-BKtFs714.cjs} +1 -1
- package/dist/MarkdownEditor-Bapd1ycU.cjs +1 -0
- package/dist/MarkdownEditorContainer-B5aHwoYF.cjs +1 -0
- package/dist/{Switch-CUKClcEz.cjs → Switch-DE6MrcqJ.cjs} +1 -1
- package/dist/components/Button/constants.js +9 -8
- package/dist/components/Dropdown/Dropdown.js +70 -65
- package/dist/components/Dropdown/DropdownSubMenuItem.js +63 -55
- package/dist/components/Dropdown/constants.js +16 -14
- package/dist/components/DropdownIcon/DropdownIcon.js +43 -32
- package/dist/components/FileManager/FileManager.js +373 -372
- package/dist/components/FileManager/FileManagerProvider.js +266 -264
- package/dist/components/FileManager/hooks/use-grid-context-menu.js +59 -59
- package/dist/components/MarkdownEditor/MarkdownEditor.js +23 -21
- package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +27 -27
- package/dist/components/New/Accordion/Accordion.js +87 -71
- package/dist/components/New/AutocompleteTagInput/AutocompleteTagInput.js +207 -0
- package/dist/components/New/AutocompleteTagInput/utils.js +11 -0
- package/dist/components/New/Avatar/Avatar.js +70 -0
- package/dist/components/New/Badge/Badge.js +45 -0
- package/dist/components/New/BottomSheet/BottomSheet.js +128 -0
- package/dist/components/New/Breadcrumbs/Breadcrumbs.js +159 -0
- package/dist/components/New/Breadcrumbs/constants.js +41 -0
- package/dist/components/New/Button/Button.js +32 -32
- package/dist/components/New/Button/ButtonWrappers.js +103 -37
- package/dist/components/New/Button/constants.js +3 -0
- package/dist/components/New/Button/utils.js +18 -8
- package/dist/components/New/ButtonDropdown/ButtonDropdown.js +26 -16
- package/dist/components/New/Calendar/Calendar.js +253 -222
- package/dist/components/New/Calendar/constants.js +5 -5
- package/dist/components/New/CaptionText/CaptionText.js +18 -15
- package/dist/components/New/CardShell/CardShell.js +5 -3
- package/dist/components/New/Checkbox/Checkbox.js +67 -56
- package/dist/components/New/Checkbox/CheckboxBox.js +5 -3
- 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 +38 -37
- package/dist/components/New/ConfirmationPopup/constants.js +8 -11
- package/dist/components/New/Dropdown/Dropdown.js +112 -105
- package/dist/components/New/Dropdown/DropdownSubMenuItem.js +17 -17
- package/dist/components/New/Dropdown/constants.js +22 -17
- package/dist/components/New/EllipsisTooltip/EllipsisTooltip.js +20 -18
- package/dist/components/New/EntityIdentity/EntityIdentity.js +135 -0
- package/dist/components/New/FileDropzone/FileDropzone.js +27 -25
- package/dist/components/New/FileIcon/FileIcon.js +55 -0
- package/dist/components/New/FileIcon/constants.js +134 -0
- package/dist/components/New/FileIcon/icons/FileGlyph.js +150 -0
- package/dist/components/New/FileIcon/icons/FolderGlyph.js +50 -0
- package/dist/components/New/FileName/FileName.js +78 -0
- package/dist/components/New/FilterChips/FilterChips.js +43 -0
- package/dist/components/New/FilterChips/constants.js +5 -0
- package/dist/components/New/FolderName/FolderName.js +16 -0
- package/dist/components/New/FolderPath/FolderPath.js +29 -28
- package/dist/components/New/Highlight/Highlight.js +23 -30
- package/dist/components/New/IconButton/IconButton.js +30 -28
- package/dist/components/New/InfoButton/InfoButton.js +13 -11
- package/dist/components/New/InlineSelect/InlineSelect.js +74 -56
- package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +67 -61
- package/dist/components/New/InteractiveTooltip/constants.js +2 -2
- package/dist/components/New/Label/Label.js +13 -8
- package/dist/components/New/MarkdownEditor/MarkdownEditor.js +29 -27
- 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 +21 -19
- package/dist/components/New/Notification/Notification.js +33 -29
- 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 +46 -44
- package/dist/components/New/Popup/constants.js +3 -3
- 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/SchemaRenderer/SchemaRenderer.js +164 -0
- package/dist/components/New/SchemaRenderer/components/SchemaAnyOfEditor.js +65 -0
- package/dist/components/New/SchemaRenderer/components/SchemaArrayEditor.js +109 -0
- package/dist/components/New/SchemaRenderer/components/SchemaField.js +83 -0
- package/dist/components/New/SchemaRenderer/components/SchemaFieldContent.js +72 -0
- package/dist/components/New/SchemaRenderer/components/SchemaJsonEditor.js +41 -0
- package/dist/components/New/SchemaRenderer/components/SchemaKeyValueEditor.js +250 -0
- package/dist/components/New/SchemaRenderer/components/SchemaObjectEditor.js +36 -0
- package/dist/components/New/SchemaRenderer/components/SchemaOneOfEditor.js +163 -0
- package/dist/components/New/SchemaRenderer/components/SchemaPrimitiveField.js +150 -0
- package/dist/components/New/SchemaRenderer/components/SchemaSection.js +135 -0
- package/dist/components/New/SchemaRenderer/context.js +17 -0
- package/dist/components/New/Search/Search.js +29 -27
- package/dist/components/New/SegmentedControl/SegmentedControl.js +29 -23
- package/dist/components/New/Select/CollapsedSelectTags.js +127 -0
- package/dist/components/New/Select/MultiSelectTags.js +18 -15
- package/dist/components/New/Select/Select.js +219 -197
- package/dist/components/New/Select/constants.js +23 -20
- package/dist/components/New/SharedEntityIndicator/SharedEntityIndicator.js +34 -0
- package/dist/components/New/SideDrawer/SideDrawer.js +148 -0
- package/dist/components/New/Slider/Slider.js +151 -90
- package/dist/components/New/Slider/utils.js +12 -0
- package/dist/components/New/Switch/Switch.js +69 -58
- package/dist/components/New/Tabs/Tabs.js +125 -61
- package/dist/components/New/Tag/Tag.js +42 -40
- package/dist/components/New/TagInput/TagInput.js +48 -44
- package/dist/components/New/Textarea/Textarea.js +21 -20
- package/dist/components/New/ToggleIconButton/ToggleIconButton.js +26 -24
- package/dist/components/New/Tooltip/TooltipContent.js +11 -9
- package/dist/components/New/Tooltip/constants.js +1 -1
- package/dist/components/New/TransferQueue/TransferQueue.js +124 -0
- package/dist/components/New/TransferQueue/TransferQueueHeader.js +71 -0
- package/dist/components/New/TransferQueue/TransferQueueRow.js +119 -0
- package/dist/components/New/TransferQueue/constants.js +24 -0
- package/dist/components/New/constants/overlay.js +17 -9
- package/dist/components/Popup/constants.js +8 -8
- package/dist/components/ProgressBar/ProgressBar.js +45 -33
- package/dist/components/SchemaRenderer/SchemaRenderer.js +16 -15
- package/dist/components/SchemaRenderer/components/SchemaAdditionalPropertiesEditor.js +46 -31
- package/dist/components/SchemaRenderer/components/SchemaAnyOfEditor.js +2 -2
- package/dist/components/SchemaRenderer/components/SchemaArrayEditor.js +1 -1
- package/dist/components/SchemaRenderer/components/SchemaField.js +23 -23
- package/dist/components/SchemaRenderer/components/SchemaFieldContent.js +19 -19
- package/dist/components/SchemaRenderer/components/SchemaKeyValueEditor.js +223 -135
- package/dist/components/SchemaRenderer/components/SchemaObjectEditor.js +1 -1
- package/dist/components/SchemaRenderer/components/SchemaOneOfEditor.js +13 -13
- package/dist/components/SchemaRenderer/components/SchemaPrimitiveField.js +5 -5
- package/dist/components/Skeleton/Skeleton.js +25 -19
- package/dist/components/Spinner/Spinner.js +7 -5
- package/dist/components/Tooltip/TooltipContent.js +11 -11
- package/dist/components-manifest.json +1851 -77
- package/dist/constants/public-class-names.js +218 -0
- package/dist/constants/schema-renderer.js +33 -0
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/dial-ui-kit.js +357 -307
- package/dist/editors.cjs +1 -1
- package/dist/file-manager.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/index.css +2 -2
- package/dist/lazy-_W6FYhKg.cjs +1 -0
- package/dist/merge-classes-BEJXjzkx.cjs +1 -0
- package/dist/migration-guides/0.15.0/legacy-theme-variable-fallbacks-removal.md +69 -0
- package/dist/migration-guides/0.15.0/slider-redesign.md +110 -0
- package/dist/migration-guides/README.md +2 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +419 -399
- package/dist/src/components/FileManager/FileManager.d.ts +2 -0
- package/dist/src/components/FileManager/FileManagerContext.d.ts +1 -0
- package/dist/src/components/FileManager/hooks/use-grid-context-menu.d.ts +2 -1
- package/dist/src/components/MarkdownEditor/MarkdownEditor.d.ts +2 -0
- package/dist/src/components/MarkdownEditor/MarkdownEditorContainer.d.ts +2 -0
- package/dist/src/components/New/Accordion/Accordion.d.ts +6 -1
- package/dist/src/components/New/AutocompleteTagInput/AutocompleteTagInput.d.ts +97 -0
- package/dist/src/components/New/AutocompleteTagInput/utils.d.ts +17 -0
- package/dist/src/components/New/AutocompleteTagInput/utils.spec.d.ts +1 -0
- package/dist/src/components/New/Avatar/Avatar.d.ts +55 -0
- package/dist/src/components/New/Badge/Badge.d.ts +47 -0
- package/dist/src/components/New/BottomSheet/BottomSheet.d.ts +84 -0
- package/dist/src/components/New/Breadcrumbs/Breadcrumbs.d.ts +94 -0
- package/dist/src/components/New/Breadcrumbs/constants.d.ts +60 -0
- package/dist/src/components/New/Button/Button.d.ts +4 -1
- package/dist/src/components/New/Button/ButtonWrappers.d.ts +21 -0
- package/dist/src/components/New/Button/utils.d.ts +15 -0
- package/dist/src/components/New/ButtonDropdown/ButtonDropdown.d.ts +4 -0
- package/dist/src/components/New/Calendar/constants.d.ts +1 -1
- package/dist/src/components/New/ConfirmationPopup/constants.d.ts +0 -1
- package/dist/src/components/New/Dropdown/Dropdown.d.ts +9 -1
- package/dist/src/components/New/Dropdown/constants.d.ts +3 -0
- package/dist/src/components/New/EntityIdentity/EntityIdentity.d.ts +85 -0
- package/dist/src/components/New/FileIcon/FileIcon.d.ts +61 -0
- package/dist/src/components/New/FileIcon/constants.d.ts +16 -0
- package/dist/src/components/New/FileIcon/icons/FileGlyph.d.ts +18 -0
- package/dist/src/components/New/FileIcon/icons/FolderGlyph.d.ts +17 -0
- package/dist/src/components/New/FileName/FileName.d.ts +79 -0
- package/dist/src/components/New/FilterChips/FilterChips.d.ts +69 -0
- package/dist/src/components/New/FilterChips/constants.d.ts +13 -0
- package/dist/src/components/New/FolderName/FolderName.d.ts +37 -0
- package/dist/src/components/New/InlineSelect/InlineSelect.d.ts +16 -1
- package/dist/src/components/New/InteractiveTooltip/InteractiveTooltip.d.ts +13 -2
- package/dist/src/components/New/InteractiveTooltip/constants.d.ts +5 -4
- package/dist/src/components/New/MarkdownEditor/MarkdownEditor.d.ts +3 -0
- package/dist/src/components/New/Notification/Notification.d.ts +18 -0
- package/dist/src/components/New/Popup/constants.d.ts +1 -1
- package/dist/src/components/New/SchemaRenderer/SchemaRenderer.d.ts +38 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaAnyOfEditor.d.ts +37 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaArrayEditor.d.ts +35 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaField.d.ts +33 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaFieldContent.d.ts +30 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaJsonEditor.d.ts +29 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaKeyValueEditor.d.ts +37 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaObjectEditor.d.ts +32 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaOneOfEditor.d.ts +39 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaPrimitiveField.d.ts +38 -0
- package/dist/src/components/New/SchemaRenderer/components/SchemaSection.d.ts +39 -0
- package/dist/src/components/New/SchemaRenderer/context.d.ts +8 -0
- package/dist/src/components/New/SchemaRenderer/types.d.ts +76 -0
- package/dist/src/components/New/Select/CollapsedSelectTags.d.ts +22 -0
- package/dist/src/components/New/Select/MultiSelectTags.d.ts +5 -0
- package/dist/src/components/New/Select/Select.d.ts +9 -0
- package/dist/src/components/New/Select/constants.d.ts +3 -2
- package/dist/src/components/New/SharedEntityIndicator/SharedEntityIndicator.d.ts +35 -0
- package/dist/src/components/New/SideDrawer/SideDrawer.d.ts +100 -0
- package/dist/src/components/New/Slider/Slider.d.ts +20 -1
- package/dist/src/components/New/Slider/utils.d.ts +6 -0
- package/dist/src/components/New/Slider/utils.spec.d.ts +1 -0
- package/dist/src/components/New/Tabs/Tabs.d.ts +54 -6
- package/dist/src/components/New/Tooltip/constants.d.ts +5 -3
- package/dist/src/components/New/TransferQueue/TransferQueue.d.ts +139 -0
- package/dist/src/components/New/TransferQueue/TransferQueueHeader.d.ts +16 -0
- package/dist/src/components/New/TransferQueue/TransferQueueRow.d.ts +10 -0
- package/dist/src/components/New/TransferQueue/constants.d.ts +6 -0
- package/dist/src/components/New/constants/overlay.d.ts +13 -0
- package/dist/src/components/Popup/constants.d.ts +1 -1
- package/dist/src/components/SchemaRenderer/types.d.ts +5 -82
- package/dist/src/components/SchemaRenderer/utils.d.ts +1 -13
- package/dist/src/constants/public-class-names.d.ts +209 -0
- package/dist/src/constants/schema-renderer.d.ts +2 -0
- package/dist/src/index.d.ts +40 -3
- package/dist/src/models/json-schema.d.ts +71 -0
- package/dist/src/types/accordion.d.ts +7 -0
- package/dist/src/types/avatar.d.ts +7 -0
- package/dist/src/types/badge.d.ts +16 -0
- package/dist/src/types/breadcrumbs.d.ts +9 -0
- package/dist/src/types/button.d.ts +1 -0
- package/dist/src/types/entity-type.d.ts +9 -0
- package/dist/src/types/json-schema.d.ts +22 -0
- package/dist/src/types/tooltip.d.ts +4 -0
- package/dist/src/types/transfer-queue.d.ts +10 -0
- package/dist/src/utils/__tests__/avatar.spec.d.ts +1 -0
- package/dist/src/utils/avatar.d.ts +12 -0
- package/dist/src/utils/json-schema.d.ts +23 -0
- package/dist/src/utils/sub-menu-floating.d.ts +7 -4
- package/dist/types/accordion.js +4 -0
- package/dist/types/avatar.js +4 -0
- package/dist/types/badge.js +5 -0
- package/dist/types/breadcrumbs.js +4 -0
- package/dist/types/button.js +3 -3
- package/dist/types/entity-type.js +4 -0
- package/dist/types/json-schema.js +7 -0
- package/dist/types/tooltip.js +3 -2
- package/dist/types/transfer-queue.js +4 -0
- package/dist/use-file-manager-tabs-Bzzwwcgk.cjs +3 -0
- package/dist/utils/avatar.js +22 -0
- package/dist/{components/SchemaRenderer/utils.js → utils/json-schema.js} +122 -95
- package/dist/utils/merge-classes.js +12 -5
- package/dist/utils/sub-menu-floating.js +99 -54
- package/package.json +4 -9
- package/dist/DateCellRenderer-ssp7eaZY.cjs +0 -1
- package/dist/IconButton-DWqoaBWf.cjs +0 -1
- package/dist/JsonEditor-D2jSlRFi.cjs +0 -1
- package/dist/MarkdownEditor-BzEbdj7R.cjs +0 -1
- package/dist/MarkdownEditorContainer-BvwJjkiZ.cjs +0 -1
- package/dist/components/SchemaRenderer/types.js +0 -27
- package/dist/editor-_174x-qy.cjs +0 -1
- package/dist/lazy-DM-7dL0Y.cjs +0 -1
- package/dist/merge-classes-Dipy1Ih1.cjs +0 -1
- package/dist/use-file-manager-tabs-DjdR_mYM.cjs +0 -3
|
@@ -1,98 +1,104 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useFloatingNodeId as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useThemeScope as
|
|
5
|
-
import { useIsMobileScreen as
|
|
6
|
-
import { TooltipPlacement as
|
|
7
|
-
import { mergeClasses as
|
|
8
|
-
import { INTERACTIVE_TOOLTIP_GAP as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsx as i, jsxs as U, Fragment as G } from "react/jsx-runtime";
|
|
2
|
+
import { useFloatingNodeId as K, useFloating as Y, autoUpdate as q, offset as z, flip as B, shift as J, useHover as Q, safePolygon as W, useFocus as X, useClick as Z, useDismiss as $, useInteractions as ee, useMergeRefs as u, FloatingPortal as oe, FloatingFocusManager as te } from "@floating-ui/react";
|
|
3
|
+
import { useState as se, useRef as ne, useMemo as d, isValidElement as ie, cloneElement as le } from "react";
|
|
4
|
+
import { useThemeScope as re } from "../ThemeScope/ThemeScope.js";
|
|
5
|
+
import { useIsMobileScreen as ae } from "../../../hooks/use-is-mobile-screen.js";
|
|
6
|
+
import { InteractiveTooltipTrigger as T, TooltipPlacement as ce } from "../../../types/tooltip.js";
|
|
7
|
+
import { mergeClasses as I } from "../../../utils/merge-classes.js";
|
|
8
|
+
import { INTERACTIVE_TOOLTIP_GAP as fe, INTERACTIVE_TOOLTIP_HOVER_OPEN_DELAY as pe, interactiveTooltipClassName as me } from "./constants.js";
|
|
9
|
+
import { DIAL_KIT_CLASS as ge } from "../../../constants/public-class-names.js";
|
|
10
|
+
const Ee = ({
|
|
11
|
+
content: r,
|
|
12
|
+
placement: R = ce.Right,
|
|
12
13
|
children: e,
|
|
13
|
-
asChild:
|
|
14
|
-
hideTooltip:
|
|
14
|
+
asChild: C = !1,
|
|
15
|
+
hideTooltip: F = !1,
|
|
15
16
|
initialOpen: h = !1,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
trigger: v = T.Hover,
|
|
18
|
+
open: t,
|
|
19
|
+
onOpenChange: E,
|
|
20
|
+
triggerClassName: a,
|
|
21
|
+
contentClassName: P
|
|
20
22
|
}) => {
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
}, M =
|
|
23
|
+
const N = ae(), s = v === T.Click, O = re(), [_, S] = se(h), c = t ?? _, A = (g) => {
|
|
24
|
+
E?.(g), t == null && S(g);
|
|
25
|
+
}, M = K(), { refs: n, floatingStyles: b, context: o } = Y({
|
|
24
26
|
nodeId: M,
|
|
25
27
|
placement: R,
|
|
26
|
-
open:
|
|
27
|
-
onOpenChange:
|
|
28
|
-
whileElementsMounted:
|
|
28
|
+
open: c,
|
|
29
|
+
onOpenChange: A,
|
|
30
|
+
whileElementsMounted: q,
|
|
29
31
|
middleware: [
|
|
30
|
-
|
|
32
|
+
z(fe),
|
|
31
33
|
/* No `fallbackAxisSideDirection`: a panel placed to the right should
|
|
32
34
|
flip to the left when it does not fit, not drop to the perpendicular
|
|
33
35
|
top/bottom axis, which reads as the panel landing in the wrong place.*/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
B({ padding: 5 }),
|
|
37
|
+
J({ padding: 5 })
|
|
36
38
|
]
|
|
37
|
-
}),
|
|
38
|
-
enabled:
|
|
39
|
+
}), L = Q(o, {
|
|
40
|
+
enabled: t == null && !s,
|
|
39
41
|
/* Lets the pointer cross the gap between the trigger and the panel
|
|
40
42
|
without closing it, so it can actually be reached and used. */
|
|
41
|
-
handleClose:
|
|
42
|
-
delay: { open:
|
|
43
|
-
}), V =
|
|
44
|
-
|
|
43
|
+
handleClose: W(),
|
|
44
|
+
delay: { open: pe, close: 0 }
|
|
45
|
+
}), V = X(o, {
|
|
46
|
+
enabled: t == null && !s
|
|
47
|
+
}), k = Z(o, { enabled: s }), x = $(o), { getReferenceProps: f, getFloatingProps: y } = ee([
|
|
48
|
+
L,
|
|
45
49
|
V,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
k,
|
|
51
|
+
x
|
|
52
|
+
]), D = ne(null), H = u(
|
|
53
|
+
d(() => [n.setFloating, D], [n.setFloating])
|
|
54
|
+
), p = C && ie(e), l = p ? e.props?.ref : null, m = u(
|
|
50
55
|
d(
|
|
51
|
-
() => [
|
|
52
|
-
[
|
|
56
|
+
() => [n.setReference, ...l ? [l] : []],
|
|
57
|
+
[n.setReference, l]
|
|
53
58
|
)
|
|
54
|
-
),
|
|
59
|
+
), j = !F && (s || !N) && !!r, w = p ? le(
|
|
55
60
|
e,
|
|
56
|
-
|
|
61
|
+
f({
|
|
57
62
|
...e.props,
|
|
58
|
-
ref:
|
|
59
|
-
className:
|
|
63
|
+
ref: m,
|
|
64
|
+
className: I(
|
|
60
65
|
e.props.className,
|
|
61
|
-
|
|
66
|
+
a
|
|
62
67
|
) || void 0
|
|
63
68
|
})
|
|
64
|
-
) : /* @__PURE__ */
|
|
69
|
+
) : /* @__PURE__ */ i(
|
|
65
70
|
"span",
|
|
66
71
|
{
|
|
67
|
-
ref:
|
|
68
|
-
...
|
|
69
|
-
className:
|
|
72
|
+
ref: m,
|
|
73
|
+
...f(),
|
|
74
|
+
className: a ?? "text-start",
|
|
70
75
|
children: e
|
|
71
76
|
}
|
|
72
77
|
);
|
|
73
|
-
return /* @__PURE__ */
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
78
|
+
return /* @__PURE__ */ U(G, { children: [
|
|
79
|
+
w,
|
|
80
|
+
c && j && /* @__PURE__ */ i(oe, { id: "interactive-tooltip-portal", children: /* @__PURE__ */ i(
|
|
81
|
+
te,
|
|
77
82
|
{
|
|
78
83
|
context: o,
|
|
79
84
|
modal: !1,
|
|
80
85
|
initialFocus: -1,
|
|
81
86
|
returnFocus: !1,
|
|
82
87
|
order: ["reference", "content"],
|
|
83
|
-
children: /* @__PURE__ */
|
|
88
|
+
children: /* @__PURE__ */ i(
|
|
84
89
|
"div",
|
|
85
90
|
{
|
|
86
|
-
ref:
|
|
91
|
+
ref: H,
|
|
87
92
|
"data-placement": o.placement,
|
|
88
|
-
style:
|
|
89
|
-
...
|
|
90
|
-
className:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
style: b,
|
|
94
|
+
...y(),
|
|
95
|
+
className: I(
|
|
96
|
+
me,
|
|
97
|
+
O,
|
|
98
|
+
P,
|
|
99
|
+
ge.interactiveTooltip
|
|
94
100
|
),
|
|
95
|
-
children:
|
|
101
|
+
children: r
|
|
96
102
|
}
|
|
97
103
|
)
|
|
98
104
|
}
|
|
@@ -100,5 +106,5 @@ const Re = ({
|
|
|
100
106
|
] });
|
|
101
107
|
};
|
|
102
108
|
export {
|
|
103
|
-
|
|
109
|
+
Ee as InteractiveTooltip
|
|
104
110
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const t = 8, a = 400,
|
|
1
|
+
const t = 8, a = 400, e = "z-interactive-tooltip max-w-[320px] rounded-xl bg-layer-0 p-4 dial-small-text text-primary shadow-md";
|
|
2
2
|
export {
|
|
3
3
|
t as INTERACTIVE_TOOLTIP_GAP,
|
|
4
4
|
a as INTERACTIVE_TOOLTIP_HOVER_OPEN_DELAY,
|
|
5
|
-
|
|
5
|
+
e as interactiveTooltipClassName
|
|
6
6
|
};
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r, Fragment as d } from "react/jsx-runtime";
|
|
2
2
|
import { mergeClasses as s } from "../../../utils/merge-classes.js";
|
|
3
|
-
import { ElementSize as
|
|
3
|
+
import { ElementSize as a } from "../../../types/size.js";
|
|
4
4
|
import { InfoButton as p } from "../InfoButton/InfoButton.js";
|
|
5
|
-
|
|
5
|
+
import { DIAL_KIT_CLASS as f } from "../../../constants/public-class-names.js";
|
|
6
|
+
const N = ({
|
|
6
7
|
label: e,
|
|
7
|
-
required:
|
|
8
|
+
required: n,
|
|
8
9
|
className: i,
|
|
9
10
|
containerClassName: l,
|
|
10
11
|
caption: m,
|
|
11
|
-
size: o =
|
|
12
|
+
size: o = a.Small,
|
|
12
13
|
...c
|
|
13
14
|
}) => e ? /* @__PURE__ */ t(
|
|
14
15
|
"span",
|
|
15
16
|
{
|
|
16
|
-
className: s(
|
|
17
|
+
className: s(
|
|
18
|
+
"flex items-center gap-0.5",
|
|
19
|
+
l,
|
|
20
|
+
f.label
|
|
21
|
+
),
|
|
17
22
|
children: [
|
|
18
23
|
/* @__PURE__ */ t(
|
|
19
24
|
"label",
|
|
@@ -21,12 +26,12 @@ const g = ({
|
|
|
21
26
|
...c,
|
|
22
27
|
className: s(
|
|
23
28
|
"text-secondary flex items-center gap-0.5",
|
|
24
|
-
o ===
|
|
29
|
+
o === a.Small ? "dial-tiny-semi-text" : "dial-small-text",
|
|
25
30
|
i
|
|
26
31
|
),
|
|
27
32
|
children: [
|
|
28
33
|
typeof e == "string" ? /* @__PURE__ */ r("span", { className: "min-h-4", children: e }) : e,
|
|
29
|
-
|
|
34
|
+
n && /* @__PURE__ */ t(d, { children: [
|
|
30
35
|
/* @__PURE__ */ r("span", { "aria-hidden": "true", className: "text-error dial-tiny-text", children: "*" }),
|
|
31
36
|
/* @__PURE__ */ r("span", { className: "sr-only", children: "(required)" })
|
|
32
37
|
] })
|
|
@@ -38,5 +43,5 @@ const g = ({
|
|
|
38
43
|
}
|
|
39
44
|
) : null;
|
|
40
45
|
export {
|
|
41
|
-
|
|
46
|
+
N as Label
|
|
42
47
|
};
|
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import
|
|
4
|
-
import { EditorThemes as
|
|
5
|
-
import { mergeClasses as
|
|
6
|
-
import { getMarkdownFormattingCommands as
|
|
7
|
-
const
|
|
8
|
-
value:
|
|
9
|
-
onChange:
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as o } from "react";
|
|
3
|
+
import k from "@uiw/react-md-editor";
|
|
4
|
+
import { EditorThemes as w } from "../../../types/editor.js";
|
|
5
|
+
import { mergeClasses as x } from "../../../utils/merge-classes.js";
|
|
6
|
+
import { getMarkdownFormattingCommands as C, getMarkdownExtraCommands as h } from "./constants.js";
|
|
7
|
+
const j = ({
|
|
8
|
+
value: t,
|
|
9
|
+
onChange: m,
|
|
10
10
|
height: a = 300,
|
|
11
|
-
theme: e =
|
|
12
|
-
className:
|
|
13
|
-
placeholder:
|
|
14
|
-
defaultPreview:
|
|
15
|
-
id:
|
|
16
|
-
ariaLabel: l
|
|
11
|
+
theme: e = w.light,
|
|
12
|
+
className: i,
|
|
13
|
+
placeholder: d,
|
|
14
|
+
defaultPreview: s = "edit",
|
|
15
|
+
id: n,
|
|
16
|
+
ariaLabel: l,
|
|
17
|
+
showDragbar: p = !0
|
|
17
18
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
const c = o(() => C(), []), f = o(() => h(), []);
|
|
20
|
+
return /* @__PURE__ */ r(
|
|
20
21
|
"div",
|
|
21
22
|
{
|
|
22
23
|
"data-color-mode": e,
|
|
23
|
-
className:
|
|
24
|
-
children: /* @__PURE__ */
|
|
25
|
-
|
|
24
|
+
className: x("dial-kit-markdown-editor", i),
|
|
25
|
+
children: /* @__PURE__ */ r(
|
|
26
|
+
k,
|
|
26
27
|
{
|
|
27
|
-
value:
|
|
28
|
-
onChange: (
|
|
28
|
+
value: t,
|
|
29
|
+
onChange: (g) => m?.(g || ""),
|
|
29
30
|
height: a,
|
|
30
|
-
preview:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
preview: s,
|
|
32
|
+
visibleDragbar: p,
|
|
33
|
+
commands: c,
|
|
34
|
+
extraCommands: f,
|
|
35
|
+
textareaProps: { placeholder: d, id: n, "aria-label": l }
|
|
34
36
|
}
|
|
35
37
|
)
|
|
36
38
|
}
|
|
37
39
|
);
|
|
38
40
|
};
|
|
39
41
|
export {
|
|
40
|
-
|
|
42
|
+
j as MarkdownEditor
|
|
41
43
|
};
|
|
@@ -1,41 +1,43 @@
|
|
|
1
1
|
import { jsxs as i, Fragment as g, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { DialIcon as k } from "../../Icon/Icon.js";
|
|
3
|
-
import { CheckboxBox as
|
|
4
|
-
import { EllipsisTooltip as
|
|
5
|
-
import { overlayItemDisabledClassName as
|
|
6
|
-
import {
|
|
3
|
+
import { CheckboxBox as S } from "../Checkbox/CheckboxBox.js";
|
|
4
|
+
import { EllipsisTooltip as T } from "../EllipsisTooltip/EllipsisTooltip.js";
|
|
5
|
+
import { overlayItemDisabledClassName as D, overlayItemSelectedClassName as H, overlayItemHighlightClassName as M, overlayItemClassName as j } from "../constants/overlay.js";
|
|
6
|
+
import { DIAL_KIT_CLASS as A } from "../../../constants/public-class-names.js";
|
|
7
|
+
import { MenuItemMark as o } from "../../../types/menu-item.js";
|
|
7
8
|
import { mergeClasses as e } from "../../../utils/merge-classes.js";
|
|
8
|
-
import { menuItemCheckIcon as
|
|
9
|
-
const
|
|
9
|
+
import { menuItemCheckIcon as L } from "./constants.js";
|
|
10
|
+
const O = ({
|
|
10
11
|
label: l,
|
|
11
12
|
icon: c,
|
|
12
13
|
description: f,
|
|
13
|
-
mark:
|
|
14
|
+
mark: s = o.None,
|
|
14
15
|
selected: r = !1,
|
|
15
|
-
danger:
|
|
16
|
-
trailing:
|
|
16
|
+
danger: u = !1,
|
|
17
|
+
trailing: h,
|
|
17
18
|
rightControl: m,
|
|
18
|
-
ellipsisLabel:
|
|
19
|
+
ellipsisLabel: I = !1,
|
|
19
20
|
labelClassName: x,
|
|
20
|
-
children:
|
|
21
|
-
className:
|
|
21
|
+
children: v,
|
|
22
|
+
className: d,
|
|
22
23
|
disabled: a = !1,
|
|
23
24
|
type: C = "button",
|
|
24
25
|
...w
|
|
25
26
|
}) => {
|
|
26
|
-
const y = r &&
|
|
27
|
-
|
|
27
|
+
const y = r && s === o.Highlight, b = r && (s === o.Checkbox || s === o.Tint), n = e(
|
|
28
|
+
u && "text-error",
|
|
28
29
|
a && "text-control-disable-primary"
|
|
29
30
|
), p = e(
|
|
30
|
-
|
|
31
|
+
j,
|
|
31
32
|
// A row that opens a panel stays tinted while that panel is up, so the
|
|
32
33
|
// trail back to it is visible once the pointer has moved into it.
|
|
33
34
|
"aria-expanded:bg-control-accent-alpha-hover",
|
|
34
|
-
y &&
|
|
35
|
-
b &&
|
|
36
|
-
a &&
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
y && M,
|
|
36
|
+
b && H,
|
|
37
|
+
a && D,
|
|
38
|
+
u && "text-error",
|
|
39
|
+
d,
|
|
40
|
+
A.menuItem
|
|
39
41
|
), N = /* @__PURE__ */ i(
|
|
40
42
|
"button",
|
|
41
43
|
{
|
|
@@ -45,11 +47,11 @@ const L = ({
|
|
|
45
47
|
className: m ? "flex h-full min-w-0 flex-1 items-center gap-2 truncate text-start focus-visible:outline-none" : p,
|
|
46
48
|
...w,
|
|
47
49
|
children: [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
v ?? /* @__PURE__ */ i(g, { children: [
|
|
51
|
+
s === o.Checkbox && /* @__PURE__ */ t(S, { isSelected: r, disabled: a }),
|
|
50
52
|
c && /* @__PURE__ */ t(k, { icon: c, className: n }),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
I ? /* @__PURE__ */ t(
|
|
54
|
+
T,
|
|
53
55
|
{
|
|
54
56
|
text: l,
|
|
55
57
|
className: e(n, x)
|
|
@@ -75,9 +77,9 @@ const L = ({
|
|
|
75
77
|
children: f
|
|
76
78
|
}
|
|
77
79
|
),
|
|
78
|
-
r &&
|
|
80
|
+
r && s === o.Check && L
|
|
79
81
|
] }),
|
|
80
|
-
|
|
82
|
+
h && /* @__PURE__ */ t("span", { className: e("ml-auto shrink-0", n), children: h })
|
|
81
83
|
]
|
|
82
84
|
}
|
|
83
85
|
);
|
|
@@ -104,5 +106,5 @@ const L = ({
|
|
|
104
106
|
) : N;
|
|
105
107
|
};
|
|
106
108
|
export {
|
|
107
|
-
|
|
109
|
+
O as MenuItem
|
|
108
110
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { IconCheck as
|
|
3
|
-
import { DIAL_KIT_ICON_STROKE as
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { IconCheck as o } from "@tabler/icons-react";
|
|
3
|
+
import { DIAL_KIT_ICON_STROKE as r } from "../constants/icon.js";
|
|
4
4
|
import { DIAL_ICON_SIZE as e } from "../../../constants/icon.js";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
import { DIAL_KIT_CLASS as I } from "../../../constants/public-class-names.js";
|
|
6
|
+
const _ = /* @__PURE__ */ m(
|
|
7
|
+
o,
|
|
7
8
|
{
|
|
8
9
|
size: e.SM,
|
|
9
|
-
stroke:
|
|
10
|
-
className:
|
|
10
|
+
stroke: r,
|
|
11
|
+
className: `shrink-0 ${I.menuItemCheck}`,
|
|
11
12
|
"aria-hidden": !0
|
|
12
13
|
}
|
|
13
14
|
);
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
_ as menuItemCheckIcon
|
|
16
17
|
};
|
|
@@ -1,28 +1,30 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import d from "../../../assets/icons/no-data.svg.js";
|
|
3
3
|
import { mergeClasses as e } from "../../../utils/merge-classes.js";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { DIAL_KIT_CLASS as x } from "../../../constants/public-class-names.js";
|
|
5
|
+
const r = 32, N = ({
|
|
6
|
+
title: s,
|
|
6
7
|
description: a,
|
|
7
|
-
icon:
|
|
8
|
-
live:
|
|
8
|
+
icon: o,
|
|
9
|
+
live: i = !1,
|
|
9
10
|
className: n,
|
|
10
|
-
titleClassName:
|
|
11
|
-
descriptionClassName:
|
|
12
|
-
}) => /* @__PURE__ */
|
|
11
|
+
titleClassName: l,
|
|
12
|
+
descriptionClassName: m
|
|
13
|
+
}) => /* @__PURE__ */ c(
|
|
13
14
|
"div",
|
|
14
15
|
{
|
|
15
|
-
role:
|
|
16
|
+
role: i ? "status" : void 0,
|
|
16
17
|
className: e(
|
|
17
18
|
"flex size-full flex-col items-center justify-center gap-2 text-tertiary",
|
|
18
|
-
n
|
|
19
|
+
n,
|
|
20
|
+
x.noDataContent
|
|
19
21
|
),
|
|
20
22
|
children: [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
o ?? /* @__PURE__ */ t(
|
|
24
|
+
d,
|
|
23
25
|
{
|
|
24
|
-
width:
|
|
25
|
-
height:
|
|
26
|
+
width: r,
|
|
27
|
+
height: r,
|
|
26
28
|
"aria-hidden": "true"
|
|
27
29
|
}
|
|
28
30
|
),
|
|
@@ -31,9 +33,9 @@ const s = 32, p = ({
|
|
|
31
33
|
{
|
|
32
34
|
className: e(
|
|
33
35
|
"dial-tiny-text text-secondary",
|
|
34
|
-
|
|
36
|
+
l
|
|
35
37
|
),
|
|
36
|
-
children:
|
|
38
|
+
children: s
|
|
37
39
|
}
|
|
38
40
|
),
|
|
39
41
|
a && /* @__PURE__ */ t(
|
|
@@ -41,7 +43,7 @@ const s = 32, p = ({
|
|
|
41
43
|
{
|
|
42
44
|
className: e(
|
|
43
45
|
"dial-tiny-text text-secondary",
|
|
44
|
-
|
|
46
|
+
m
|
|
45
47
|
),
|
|
46
48
|
children: a
|
|
47
49
|
}
|
|
@@ -50,5 +52,5 @@ const s = 32, p = ({
|
|
|
50
52
|
}
|
|
51
53
|
);
|
|
52
54
|
export {
|
|
53
|
-
|
|
55
|
+
N as NoDataContent
|
|
54
56
|
};
|
|
@@ -1,46 +1,49 @@
|
|
|
1
1
|
import { jsxs as r, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { DialIcon as
|
|
4
|
-
import { NotificationVariant as
|
|
5
|
-
import { mergeClasses as
|
|
6
|
-
import { CloseButton as
|
|
7
|
-
import { variantIcons as
|
|
2
|
+
import { useMemo as k } from "react";
|
|
3
|
+
import { DialIcon as u } from "../../Icon/Icon.js";
|
|
4
|
+
import { NotificationVariant as c, NotificationType as s } from "../../../types/notification.js";
|
|
5
|
+
import { mergeClasses as d } from "../../../utils/merge-classes.js";
|
|
6
|
+
import { CloseButton as v } from "../CloseButton/CloseButton.js";
|
|
7
|
+
import { variantIcons as I, notificationVariantRoleMap as M, notificationVariantClassNameMap as T, alertBaseClassName as L } from "./constants.js";
|
|
8
|
+
import { DIAL_KIT_CLASS as V } from "../../../constants/public-class-names.js";
|
|
8
9
|
const R = ({
|
|
9
|
-
variant: e =
|
|
10
|
+
variant: e = c.Info,
|
|
10
11
|
type: i = s.Toast,
|
|
11
12
|
title: o,
|
|
12
13
|
message: l,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
action: t,
|
|
15
|
+
className: f,
|
|
16
|
+
iconSize: m = 24,
|
|
17
|
+
iconStroke: n = 2,
|
|
16
18
|
closable: p = !1,
|
|
17
|
-
onClose:
|
|
18
|
-
children:
|
|
19
|
-
textClassName:
|
|
20
|
-
...
|
|
19
|
+
onClose: x,
|
|
20
|
+
children: h,
|
|
21
|
+
textClassName: N,
|
|
22
|
+
...w
|
|
21
23
|
}) => {
|
|
22
|
-
const
|
|
24
|
+
const g = k(() => I({ size: m, stroke: n })[e], [e, m, n]), C = N ?? (i === s.SectionMessage ? "flex-row flex-wrap items-baseline gap-x-1" : "flex-col");
|
|
23
25
|
return /* @__PURE__ */ r(
|
|
24
26
|
"div",
|
|
25
27
|
{
|
|
26
28
|
role: M[e],
|
|
27
|
-
...
|
|
28
|
-
className:
|
|
29
|
-
|
|
29
|
+
...w,
|
|
30
|
+
className: d(
|
|
31
|
+
L,
|
|
30
32
|
T[e],
|
|
31
33
|
i === s.Toast && "min-w-[200px] max-w-[600px] shadow-lg",
|
|
32
|
-
i === s.SectionMessage && e ===
|
|
33
|
-
|
|
34
|
+
i === s.SectionMessage && e === c.Loading && "border-secondary",
|
|
35
|
+
f,
|
|
36
|
+
V.notification
|
|
34
37
|
),
|
|
35
38
|
children: [
|
|
36
39
|
/* @__PURE__ */ r("div", { className: "flex items-start gap-3 flex-1 min-w-0", children: [
|
|
37
|
-
/* @__PURE__ */ a("span", { "aria-hidden": "true", className: "flex shrink-0", children: /* @__PURE__ */ a(
|
|
40
|
+
/* @__PURE__ */ a("span", { "aria-hidden": "true", className: "flex shrink-0", children: /* @__PURE__ */ a(u, { icon: g }) }),
|
|
38
41
|
o ? /* @__PURE__ */ r(
|
|
39
42
|
"div",
|
|
40
43
|
{
|
|
41
|
-
className:
|
|
44
|
+
className: d(
|
|
42
45
|
"flex min-w-0 text-primary break-words",
|
|
43
|
-
|
|
46
|
+
C
|
|
44
47
|
),
|
|
45
48
|
children: [
|
|
46
49
|
/* @__PURE__ */ a("div", { className: "dial-small-paragraph-semi-text min-w-0 break-words", children: o }),
|
|
@@ -49,15 +52,16 @@ const R = ({
|
|
|
49
52
|
}
|
|
50
53
|
) : /* @__PURE__ */ a("div", { className: "dial-small-paragraph-text min-w-0 text-primary break-words", children: l })
|
|
51
54
|
] }),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
t != null && /* @__PURE__ */ a("div", { className: "flex shrink-0 items-center", children: t }),
|
|
56
|
+
h,
|
|
57
|
+
p && /* @__PURE__ */ a(
|
|
58
|
+
v,
|
|
55
59
|
{
|
|
56
|
-
className: "
|
|
60
|
+
className: "shrink-0 self-start",
|
|
57
61
|
ariaLabel: "Close notification",
|
|
58
|
-
onClose: (b) =>
|
|
62
|
+
onClose: (b) => x?.(b)
|
|
59
63
|
}
|
|
60
|
-
)
|
|
64
|
+
)
|
|
61
65
|
]
|
|
62
66
|
}
|
|
63
67
|
);
|