@epam/ai-dial-ui-kit 0.15.0-dev.5 → 0.15.0-dev.50
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 +86 -0
- package/dist/{DateCellRenderer-BVM-Q8yx.cjs → DateCellRenderer-CZNa4jVJ.cjs} +31 -31
- package/dist/DateCellRenderer-X6vXPDIG.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 +41 -39
- 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 +1837 -84
- 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 +356 -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/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 +39 -2
- 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/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/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,57 +1,58 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { useFloatingNodeId as H, useFloating as U, autoUpdate as G, offset as
|
|
1
|
+
import { jsx as n, jsxs as j, Fragment as w } from "react/jsx-runtime";
|
|
2
|
+
import { useFloatingNodeId as H, useFloating as U, autoUpdate as G, offset as K, flip as Y, shift as k, useHover as q, safePolygon as z, useFocus as B, useDismiss as J, useInteractions as Q, useMergeRefs as u, FloatingPortal as W, FloatingFocusManager as X } from "@floating-ui/react";
|
|
3
3
|
import { useState as Z, useRef as $, useMemo as d, isValidElement as ee, cloneElement as oe } from "react";
|
|
4
|
-
import { useThemeScope as
|
|
5
|
-
import { useIsMobileScreen as
|
|
4
|
+
import { useThemeScope as te } from "../ThemeScope/ThemeScope.js";
|
|
5
|
+
import { useIsMobileScreen as se } from "../../../hooks/use-is-mobile-screen.js";
|
|
6
6
|
import { TooltipPlacement as ne } from "../../../types/tooltip.js";
|
|
7
7
|
import { mergeClasses as g } from "../../../utils/merge-classes.js";
|
|
8
8
|
import { INTERACTIVE_TOOLTIP_GAP as le, INTERACTIVE_TOOLTIP_HOVER_OPEN_DELAY as ae, interactiveTooltipClassName as re } from "./constants.js";
|
|
9
|
+
import { DIAL_KIT_CLASS as ie } from "../../../constants/public-class-names.js";
|
|
9
10
|
const Re = ({
|
|
10
11
|
content: a,
|
|
11
|
-
placement:
|
|
12
|
+
placement: T = ne.Right,
|
|
12
13
|
children: e,
|
|
13
|
-
asChild:
|
|
14
|
-
hideTooltip:
|
|
15
|
-
initialOpen:
|
|
16
|
-
open:
|
|
17
|
-
onOpenChange:
|
|
14
|
+
asChild: I = !1,
|
|
15
|
+
hideTooltip: R = !1,
|
|
16
|
+
initialOpen: F = !1,
|
|
17
|
+
open: t,
|
|
18
|
+
onOpenChange: h,
|
|
18
19
|
triggerClassName: r,
|
|
19
20
|
contentClassName: E
|
|
20
21
|
}) => {
|
|
21
|
-
const P =
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
nodeId:
|
|
25
|
-
placement:
|
|
22
|
+
const P = se(), C = te(), [v, N] = Z(F), i = t ?? v, O = (m) => {
|
|
23
|
+
h?.(m), t == null && N(m);
|
|
24
|
+
}, _ = H(), { refs: s, floatingStyles: S, context: o } = U({
|
|
25
|
+
nodeId: _,
|
|
26
|
+
placement: T,
|
|
26
27
|
open: i,
|
|
27
|
-
onOpenChange:
|
|
28
|
+
onOpenChange: O,
|
|
28
29
|
whileElementsMounted: G,
|
|
29
30
|
middleware: [
|
|
30
|
-
|
|
31
|
+
K(le),
|
|
31
32
|
/* No `fallbackAxisSideDirection`: a panel placed to the right should
|
|
32
33
|
flip to the left when it does not fit, not drop to the perpendicular
|
|
33
34
|
top/bottom axis, which reads as the panel landing in the wrong place.*/
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
Y({ padding: 5 }),
|
|
36
|
+
k({ padding: 5 })
|
|
36
37
|
]
|
|
37
|
-
}),
|
|
38
|
-
enabled:
|
|
38
|
+
}), A = q(o, {
|
|
39
|
+
enabled: t == null,
|
|
39
40
|
/* Lets the pointer cross the gap between the trigger and the panel
|
|
40
41
|
without closing it, so it can actually be reached and used. */
|
|
41
|
-
handleClose:
|
|
42
|
+
handleClose: z(),
|
|
42
43
|
delay: { open: ae, close: 0 }
|
|
43
|
-
}),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
]),
|
|
48
|
-
d(() => [
|
|
49
|
-
), f =
|
|
44
|
+
}), M = B(o, { enabled: t == null }), L = J(o), { getReferenceProps: c, getFloatingProps: V } = Q([
|
|
45
|
+
A,
|
|
46
|
+
M,
|
|
47
|
+
L
|
|
48
|
+
]), b = $(null), x = u(
|
|
49
|
+
d(() => [s.setFloating, b], [s.setFloating])
|
|
50
|
+
), f = I && ee(e), l = f ? e.props?.ref : null, p = u(
|
|
50
51
|
d(
|
|
51
|
-
() => [
|
|
52
|
-
[
|
|
52
|
+
() => [s.setReference, ...l ? [l] : []],
|
|
53
|
+
[s.setReference, l]
|
|
53
54
|
)
|
|
54
|
-
),
|
|
55
|
+
), y = !R && !P && !!a, D = f ? oe(
|
|
55
56
|
e,
|
|
56
57
|
c({
|
|
57
58
|
...e.props,
|
|
@@ -70,9 +71,9 @@ const Re = ({
|
|
|
70
71
|
children: e
|
|
71
72
|
}
|
|
72
73
|
);
|
|
73
|
-
return /* @__PURE__ */ w
|
|
74
|
-
|
|
75
|
-
i &&
|
|
74
|
+
return /* @__PURE__ */ j(w, { children: [
|
|
75
|
+
D,
|
|
76
|
+
i && y && /* @__PURE__ */ n(W, { id: "interactive-tooltip-portal", children: /* @__PURE__ */ n(
|
|
76
77
|
X,
|
|
77
78
|
{
|
|
78
79
|
context: o,
|
|
@@ -83,14 +84,15 @@ const Re = ({
|
|
|
83
84
|
children: /* @__PURE__ */ n(
|
|
84
85
|
"div",
|
|
85
86
|
{
|
|
86
|
-
ref:
|
|
87
|
+
ref: x,
|
|
87
88
|
"data-placement": o.placement,
|
|
88
|
-
style:
|
|
89
|
-
...
|
|
89
|
+
style: S,
|
|
90
|
+
...V(),
|
|
90
91
|
className: g(
|
|
91
92
|
re,
|
|
92
93
|
C,
|
|
93
|
-
E
|
|
94
|
+
E,
|
|
95
|
+
ie.interactiveTooltip
|
|
94
96
|
),
|
|
95
97
|
children: a
|
|
96
98
|
}
|
|
@@ -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
|
);
|
|
@@ -1,41 +1,50 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Input as
|
|
3
|
-
import { handleKeyDown as
|
|
4
|
-
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { Input as y } from "../Input/Input.js";
|
|
3
|
+
import { handleKeyDown as N } from "../Input/utils.js";
|
|
4
|
+
import { DIAL_KIT_CLASS as w } from "../../../constants/public-class-names.js";
|
|
5
|
+
import { mergeClasses as h } from "../../../utils/merge-classes.js";
|
|
6
|
+
const I = /^0+\.(\d+)?$/, K = /^0+/, S = [".", "-", "+", "e", "E"], l = (t) => !t || t === "-" ? t : String(t).match(I) ? String(t).replace(K, "0") : Number(t), k = ({
|
|
5
7
|
integer: t,
|
|
6
8
|
onChange: o,
|
|
7
9
|
min: s,
|
|
8
10
|
max: a,
|
|
9
|
-
onKeyDown:
|
|
10
|
-
onPaste:
|
|
11
|
-
...
|
|
12
|
-
}) =>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
y(e, "number", s, a), d?.(e);
|
|
26
|
-
},
|
|
27
|
-
onPaste: (e) => {
|
|
28
|
-
if (t) {
|
|
29
|
-
const c = e.clipboardData.getData("text"), r = c.replace(/\D/g, "");
|
|
30
|
-
if (r !== c && (e.preventDefault(), r)) {
|
|
31
|
-
const n = e.currentTarget, u = n.selectionStart ?? 0, b = n.selectionEnd ?? 0, f = n.value.slice(0, u) + r + n.value.slice(b);
|
|
32
|
-
o?.(l(f));
|
|
33
|
-
}
|
|
11
|
+
onKeyDown: i,
|
|
12
|
+
onPaste: p,
|
|
13
|
+
...c
|
|
14
|
+
}) => {
|
|
15
|
+
const u = (e) => {
|
|
16
|
+
if (t && S.includes(e.key)) {
|
|
17
|
+
e.preventDefault();
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
N(e, "number", s, a), i?.(e);
|
|
21
|
+
}, d = (e) => {
|
|
22
|
+
if (t) {
|
|
23
|
+
const m = e.clipboardData.getData("text"), n = m.replace(/\D/g, "");
|
|
24
|
+
if (n !== m && (e.preventDefault(), n)) {
|
|
25
|
+
const r = e.currentTarget, f = r.selectionStart ?? 0, b = r.selectionEnd ?? 0, D = r.value.slice(0, f) + n + r.value.slice(b);
|
|
26
|
+
o?.(l(D));
|
|
34
27
|
}
|
|
35
|
-
i?.(e);
|
|
36
28
|
}
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
p?.(e);
|
|
30
|
+
};
|
|
31
|
+
return /* @__PURE__ */ g(
|
|
32
|
+
y,
|
|
33
|
+
{
|
|
34
|
+
...c,
|
|
35
|
+
wrapperClassName: h(
|
|
36
|
+
c.wrapperClassName,
|
|
37
|
+
w.numberInput
|
|
38
|
+
),
|
|
39
|
+
type: "number",
|
|
40
|
+
min: s,
|
|
41
|
+
max: a,
|
|
42
|
+
onChange: (e) => o?.(l(e)),
|
|
43
|
+
onKeyDown: u,
|
|
44
|
+
onPaste: d
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
};
|
|
39
48
|
export {
|
|
40
|
-
|
|
49
|
+
k as NumberInput
|
|
41
50
|
};
|