@devalok/shilp-sutra 0.30.0 → 0.32.0
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 +82 -239
- package/dist/_chunks/badge-group.js +123 -171
- package/dist/_chunks/document-preview.js +92 -0
- package/dist/_chunks/file-preview.js +511 -0
- package/dist/_chunks/image-preview.js +90 -0
- package/dist/_chunks/primitives.js +109 -109
- package/dist/_chunks/stat-row.js +144 -124
- package/dist/_chunks/use-calendar.js +558 -490
- package/dist/ai/block-renderer.d.ts +2 -1
- package/dist/ai/block-renderer.d.ts.map +1 -1
- package/dist/ai/block-renderer.js +30 -29
- package/dist/ai/blocks/block-table.d.ts.map +1 -1
- package/dist/ai/blocks/confirm.d.ts.map +1 -1
- package/dist/ai/blocks/divider.d.ts.map +1 -1
- package/dist/ai/blocks/error.d.ts.map +1 -1
- package/dist/ai/blocks/info.d.ts.map +1 -1
- package/dist/ai/blocks/loading.d.ts.map +1 -1
- package/dist/ai/blocks/stat-row.d.ts.map +1 -1
- package/dist/ai/blocks/success.d.ts.map +1 -1
- package/dist/ai/blocks/text.d.ts.map +1 -1
- package/dist/ai/command-bar.d.ts +18 -0
- package/dist/ai/command-bar.d.ts.map +1 -1
- package/dist/ai/command-bar.js +126 -125
- package/dist/ai/conversation.d.ts +13 -1
- package/dist/ai/conversation.d.ts.map +1 -1
- package/dist/ai/conversation.js +78 -78
- package/dist/ai/types.d.ts +0 -1
- package/dist/ai/types.d.ts.map +1 -1
- package/dist/ai/types.js +1 -0
- package/dist/composed/bulk-action-bar.d.ts +6 -4
- package/dist/composed/bulk-action-bar.d.ts.map +1 -1
- package/dist/composed/bulk-action-bar.js +102 -58
- package/dist/composed/command-palette.d.ts +9 -0
- package/dist/composed/command-palette.d.ts.map +1 -1
- package/dist/composed/command-palette.js +68 -68
- package/dist/composed/confirm-dialog.d.ts +1 -1
- package/dist/composed/confirm-dialog.d.ts.map +1 -1
- package/dist/composed/confirm-dialog.js +10 -10
- package/dist/composed/content-card.d.ts.map +1 -1
- package/dist/composed/date-picker/date-picker.d.ts +11 -1
- package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
- package/dist/composed/deadline-indicator.d.ts +1 -1
- package/dist/composed/deadline-indicator.d.ts.map +1 -1
- package/dist/composed/deadline-indicator.js +39 -36
- package/dist/composed/emoji-picker.d.ts +6 -0
- package/dist/composed/emoji-picker.d.ts.map +1 -1
- package/dist/composed/emoji-picker.js +22 -20
- package/dist/composed/error-boundary.d.ts +21 -1
- package/dist/composed/error-boundary.d.ts.map +1 -1
- package/dist/composed/error-boundary.js +47 -32
- package/dist/composed/file-preview/audio-preview.d.ts +7 -0
- package/dist/composed/file-preview/audio-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/document-preview.d.ts +7 -0
- package/dist/composed/file-preview/document-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/embed-preview.d.ts +7 -0
- package/dist/composed/file-preview/embed-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/image-preview.d.ts +7 -0
- package/dist/composed/file-preview/image-preview.d.ts.map +1 -0
- package/dist/composed/file-preview/shared.d.ts +20 -0
- package/dist/composed/file-preview/shared.d.ts.map +1 -0
- package/dist/composed/file-preview/video-preview.d.ts +6 -0
- package/dist/composed/file-preview/video-preview.d.ts.map +1 -0
- package/dist/composed/file-preview.d.ts.map +1 -1
- package/dist/composed/file-preview.js +10 -662
- package/dist/composed/filter-bar.d.ts +10 -2
- package/dist/composed/filter-bar.d.ts.map +1 -1
- package/dist/composed/filter-bar.js +42 -43
- package/dist/composed/form-section.d.ts +1 -1
- package/dist/composed/form-section.d.ts.map +1 -1
- package/dist/composed/form-section.js +22 -21
- package/dist/composed/index.d.ts +2 -2
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +58 -57
- package/dist/composed/inline-edit.d.ts +1 -1
- package/dist/composed/inline-edit.d.ts.map +1 -1
- package/dist/composed/inline-edit.js +33 -32
- package/dist/composed/lib/string-utils.d.ts.map +1 -1
- package/dist/composed/loading-skeleton.d.ts.map +1 -1
- package/dist/composed/markdown-viewer.d.ts +1 -1
- package/dist/composed/markdown-viewer.d.ts.map +1 -1
- package/dist/composed/markdown-viewer.js +60 -59
- package/dist/composed/master-detail.d.ts +11 -7
- package/dist/composed/master-detail.d.ts.map +1 -1
- package/dist/composed/master-detail.js +123 -84
- package/dist/composed/page-header.d.ts.map +1 -1
- package/dist/composed/page-skeletons.d.ts.map +1 -1
- package/dist/composed/priority-indicator.d.ts +1 -0
- package/dist/composed/priority-indicator.js +1 -0
- package/dist/composed/responsive-overlay.d.ts +8 -0
- package/dist/composed/responsive-overlay.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.d.ts +11 -3
- package/dist/composed/rich-text-editor.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.js +21 -20
- package/dist/composed/schedule-view.d.ts +9 -1
- package/dist/composed/schedule-view.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +8 -4
- package/dist/hooks/use-touch-device.d.ts +12 -0
- package/dist/hooks/use-touch-device.d.ts.map +1 -0
- package/dist/hooks/use-touch-device.js +13 -0
- package/dist/hooks/use-viewport-height.d.ts +11 -0
- package/dist/hooks/use-viewport-height.d.ts.map +1 -0
- package/dist/hooks/use-viewport-height.js +16 -0
- package/dist/shell/bottom-navbar.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +72 -63
- package/dist/shell/command-registry.d.ts.map +1 -1
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +77 -77
- package/dist/shell/top-bar.d.ts +2 -2
- package/dist/shell/top-bar.d.ts.map +1 -1
- package/dist/shell/top-bar.js +61 -60
- package/dist/tailwind/index.cjs +51 -7
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +51 -7
- package/dist/tokens/primitives.css +3 -1
- package/dist/tokens/semantic.css +16 -13
- package/dist/tokens/typography.css +33 -4
- package/dist/ui/alert.d.ts +1 -0
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +42 -37
- package/dist/ui/autocomplete.d.ts.map +1 -1
- package/dist/ui/autocomplete.js +38 -39
- package/dist/ui/badge.d.ts +110 -2
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +8 -7
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +54 -74
- package/dist/ui/card.d.ts +5 -1
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +111 -79
- package/dist/ui/charts/area-chart.d.ts +2 -0
- package/dist/ui/charts/area-chart.d.ts.map +1 -1
- package/dist/ui/charts/bar-chart.d.ts +2 -0
- package/dist/ui/charts/bar-chart.d.ts.map +1 -1
- package/dist/ui/charts/chart-container.d.ts +2 -0
- package/dist/ui/charts/chart-container.d.ts.map +1 -1
- package/dist/ui/charts/index.js +583 -577
- package/dist/ui/charts/line-chart.d.ts +2 -0
- package/dist/ui/charts/line-chart.d.ts.map +1 -1
- package/dist/ui/charts/pie-chart.d.ts +2 -0
- package/dist/ui/charts/pie-chart.d.ts.map +1 -1
- package/dist/ui/charts/radar-chart.d.ts +2 -0
- package/dist/ui/charts/radar-chart.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts +2 -0
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +36 -27
- package/dist/ui/code.d.ts.map +1 -1
- package/dist/ui/color-input.js +5 -5
- package/dist/ui/combobox.d.ts +6 -1
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +1 -1
- package/dist/ui/container.d.ts.map +1 -1
- package/dist/ui/context-menu.js +1 -1
- package/dist/ui/data-table-body.d.ts +12 -0
- package/dist/ui/data-table-body.d.ts.map +1 -0
- package/dist/ui/data-table-body.js +219 -0
- package/dist/ui/data-table-bulk-actions.d.ts +19 -0
- package/dist/ui/data-table-bulk-actions.d.ts.map +1 -0
- package/dist/ui/data-table-bulk-actions.js +61 -0
- package/dist/ui/data-table-card.d.ts +9 -0
- package/dist/ui/data-table-card.d.ts.map +1 -0
- package/dist/ui/data-table-card.js +73 -0
- package/dist/ui/data-table-context.d.ts +62 -0
- package/dist/ui/data-table-context.d.ts.map +1 -0
- package/dist/ui/data-table-context.js +48 -0
- package/dist/ui/data-table-header.d.ts +10 -0
- package/dist/ui/data-table-header.d.ts.map +1 -0
- package/dist/ui/data-table-header.js +141 -0
- package/dist/ui/data-table-pagination.d.ts +13 -0
- package/dist/ui/data-table-pagination.d.ts.map +1 -0
- package/dist/ui/data-table-pagination.js +84 -0
- package/dist/ui/data-table.d.ts +11 -9
- package/dist/ui/data-table.d.ts.map +1 -1
- package/dist/ui/data-table.js +258 -573
- package/dist/ui/dialog.d.ts +6 -2
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +84 -82
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/hover-card.d.ts +7 -0
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +3 -3
- package/dist/ui/icon-group.d.ts +2 -4
- package/dist/ui/icon-group.d.ts.map +1 -1
- package/dist/ui/icon-group.js +22 -23
- package/dist/ui/index.d.ts +1 -2
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +94 -99
- package/dist/ui/label.js +1 -1
- package/dist/ui/lib/bottom-sheet.d.ts +16 -0
- package/dist/ui/lib/bottom-sheet.d.ts.map +1 -0
- package/dist/ui/lib/date-utils.d.ts.map +1 -1
- package/dist/ui/lib/motion.d.ts.map +1 -1
- package/dist/ui/lib/utils.d.ts.map +1 -1
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +64 -73
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +40 -44
- package/dist/ui/number-input.d.ts.map +1 -1
- package/dist/ui/number-input.js +19 -17
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +107 -32
- package/dist/ui/progress-ring.d.ts.map +1 -1
- package/dist/ui/progress-ring.js +80 -80
- package/dist/ui/progress.js +4 -4
- package/dist/ui/radio.d.ts +5 -2
- package/dist/ui/radio.d.ts.map +1 -1
- package/dist/ui/radio.js +29 -20
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +13 -12
- package/dist/ui/segmented-control.d.ts +6 -108
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +86 -272
- package/dist/ui/select.d.ts +3 -1
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +83 -71
- package/dist/ui/separator.js +5 -5
- package/dist/ui/sheet.d.ts +2 -0
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +102 -84
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +200 -175
- package/dist/ui/skeleton.d.ts.map +1 -1
- package/dist/ui/slider.js +14 -14
- package/dist/ui/stack.d.ts.map +1 -1
- package/dist/ui/status-dot.js +8 -8
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +33 -31
- package/dist/ui/switch.js +3 -3
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/tabs.d.ts +7 -0
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +102 -76
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/toast-types.d.ts +0 -1
- package/dist/ui/toast-types.d.ts.map +1 -1
- package/dist/ui/toast-types.js +0 -1
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +156 -150
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle.js +1 -1
- package/dist/ui/tooltip.js +3 -3
- package/dist/ui/visually-hidden.d.ts.map +1 -1
- package/docs/components/ui/alert.md +3 -0
- package/docs/components/ui/badge.md +3 -0
- package/docs/components/ui/card.md +4 -0
- package/docs/components/ui/data-table-body.md +13 -0
- package/docs/components/ui/data-table-bulk-actions.md +13 -0
- package/docs/components/ui/data-table-card.md +13 -0
- package/docs/components/ui/data-table-context.md +13 -0
- package/docs/components/ui/data-table-header.md +13 -0
- package/docs/components/ui/data-table-pagination.md +13 -0
- package/docs/components/ui/select.md +4 -0
- package/docs/components/ui/tabs.md +4 -0
- package/llms-full.txt +97 -48
- package/llms.txt +46 -1
- package/package.json +37 -7
- package/dist/ui/chip.d.ts +0 -19
- package/dist/ui/chip.d.ts.map +0 -1
- package/dist/ui/chip.js +0 -14
- package/dist/ui/lib/use-ripple.d.ts +0 -14
- package/dist/ui/lib/use-ripple.d.ts.map +0 -1
package/dist/ui/menubar.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
3
3
|
import * as t from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { IconChevronRight as
|
|
4
|
+
import { aV as p, aW as f, aX as b, aY as g, aZ as y, a_ as h, a$ as N, b0 as x, b1 as v, b2 as M, b3 as w, b4 as R, b5 as k, b6 as _, b7 as j, b8 as z } from "../_chunks/primitives.js";
|
|
5
|
+
import { IconChevronRight as G, IconCheck as P, IconCircle as T } from "@tabler/icons-react";
|
|
6
6
|
import { cn as n } from "./lib/utils.js";
|
|
7
|
-
import { tweens as
|
|
8
|
-
import { Icon as
|
|
9
|
-
import { A as
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
const te =
|
|
7
|
+
import { tweens as O, springs as A } from "./lib/motion.js";
|
|
8
|
+
import { Icon as C } from "./icon.js";
|
|
9
|
+
import { A as L, m as U } from "../_chunks/framer.js";
|
|
10
|
+
const S = t.createContext(!1), V = (e) => /* @__PURE__ */ r(j, { ...e });
|
|
11
|
+
V.displayName = "MenubarMenu";
|
|
12
|
+
const te = k, ne = y, W = ({
|
|
13
13
|
open: e,
|
|
14
14
|
defaultOpen: s = !1,
|
|
15
15
|
onOpenChange: a,
|
|
16
16
|
...o
|
|
17
17
|
}) => {
|
|
18
|
-
const [d, c] = t.useState(s), i = e !== void 0, u = i ? e : d,
|
|
18
|
+
const [d, c] = t.useState(s), i = e !== void 0, u = i ? e : d, I = t.useCallback(
|
|
19
19
|
(m) => {
|
|
20
20
|
i || c(m), a?.(m);
|
|
21
21
|
},
|
|
22
22
|
[i, a]
|
|
23
23
|
);
|
|
24
|
-
return /* @__PURE__ */ r(
|
|
24
|
+
return /* @__PURE__ */ r(S.Provider, { value: u, children: /* @__PURE__ */ r(z, { open: u, onOpenChange: I, ...o }) });
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
const de =
|
|
26
|
+
W.displayName = "MenubarSub";
|
|
27
|
+
const de = _, X = t.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
|
|
28
28
|
p,
|
|
29
29
|
{
|
|
30
30
|
ref: a,
|
|
@@ -35,8 +35,8 @@ const de = G, Y = t.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
|
|
|
35
35
|
...s
|
|
36
36
|
}
|
|
37
37
|
));
|
|
38
|
-
|
|
39
|
-
const
|
|
38
|
+
X.displayName = p.displayName;
|
|
39
|
+
const Y = t.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
|
|
40
40
|
f,
|
|
41
41
|
{
|
|
42
42
|
ref: a,
|
|
@@ -47,8 +47,8 @@ const Z = t.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
|
|
|
47
47
|
...s
|
|
48
48
|
}
|
|
49
49
|
));
|
|
50
|
-
|
|
51
|
-
const
|
|
50
|
+
Y.displayName = f.displayName;
|
|
51
|
+
const Z = t.forwardRef(({ className: e, inset: s, children: a, ...o }, d) => /* @__PURE__ */ l(
|
|
52
52
|
b,
|
|
53
53
|
{
|
|
54
54
|
ref: d,
|
|
@@ -60,27 +60,27 @@ const $ = t.forwardRef(({ className: e, inset: s, children: a, ...o }, d) => /*
|
|
|
60
60
|
...o,
|
|
61
61
|
children: [
|
|
62
62
|
a,
|
|
63
|
-
/* @__PURE__ */ r(
|
|
63
|
+
/* @__PURE__ */ r(C, { icon: G, size: "sm", className: "ml-auto" })
|
|
64
64
|
]
|
|
65
65
|
}
|
|
66
66
|
));
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
const d = t.useContext(
|
|
70
|
-
return /* @__PURE__ */ r(
|
|
71
|
-
|
|
67
|
+
Z.displayName = b.displayName;
|
|
68
|
+
const $ = t.forwardRef(({ className: e, children: s, ...a }, o) => {
|
|
69
|
+
const d = t.useContext(S);
|
|
70
|
+
return /* @__PURE__ */ r(L, { children: d && /* @__PURE__ */ r(
|
|
71
|
+
g,
|
|
72
72
|
{
|
|
73
73
|
ref: o,
|
|
74
74
|
forceMount: !0,
|
|
75
75
|
asChild: !0,
|
|
76
76
|
...a,
|
|
77
77
|
children: /* @__PURE__ */ r(
|
|
78
|
-
|
|
78
|
+
U.div,
|
|
79
79
|
{
|
|
80
80
|
initial: { opacity: 0, scale: 0.95 },
|
|
81
81
|
animate: { opacity: 1, scale: 1 },
|
|
82
82
|
exit: { opacity: 0, scale: 0.95 },
|
|
83
|
-
transition: { ...
|
|
83
|
+
transition: { ...A.snappy, opacity: O.fade },
|
|
84
84
|
className: n(
|
|
85
85
|
"z-popover min-w-[8rem] overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-02 text-surface-fg shadow-floating",
|
|
86
86
|
e
|
|
@@ -91,37 +91,28 @@ const q = t.forwardRef(({ className: e, children: s, ...a }, o) => {
|
|
|
91
91
|
}
|
|
92
92
|
) });
|
|
93
93
|
});
|
|
94
|
-
|
|
95
|
-
const
|
|
96
|
-
({ className: e, align: s = "start", alignOffset: a = -4, sideOffset: o = 8, children: d, ...c }, i) => /* @__PURE__ */ r(
|
|
94
|
+
$.displayName = g.displayName;
|
|
95
|
+
const q = t.forwardRef(
|
|
96
|
+
({ className: e, align: s = "start", alignOffset: a = -4, sideOffset: o = 8, children: d, ...c }, i) => /* @__PURE__ */ r(y, { children: /* @__PURE__ */ r(
|
|
97
97
|
h,
|
|
98
98
|
{
|
|
99
99
|
ref: i,
|
|
100
100
|
align: s,
|
|
101
101
|
alignOffset: a,
|
|
102
102
|
sideOffset: o,
|
|
103
|
-
|
|
103
|
+
className: n(
|
|
104
|
+
"z-popover min-w-[12rem] rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-02 text-surface-fg shadow-floating",
|
|
105
|
+
"data-[state=open]:animate-popover-in data-[state=closed]:animate-popover-out",
|
|
106
|
+
e
|
|
107
|
+
),
|
|
104
108
|
...c,
|
|
105
|
-
children:
|
|
106
|
-
k.div,
|
|
107
|
-
{
|
|
108
|
-
initial: { opacity: 0, scale: 0.95 },
|
|
109
|
-
animate: { opacity: 1, scale: 1 },
|
|
110
|
-
exit: { opacity: 0, scale: 0.95 },
|
|
111
|
-
transition: { ...S.snappy, opacity: R.fade },
|
|
112
|
-
className: n(
|
|
113
|
-
"z-popover min-w-[12rem] rounded-ds-lg border border-surface-border-strong bg-surface-overlay p-ds-02 text-surface-fg shadow-floating",
|
|
114
|
-
e
|
|
115
|
-
),
|
|
116
|
-
children: d
|
|
117
|
-
}
|
|
118
|
-
)
|
|
109
|
+
children: d
|
|
119
110
|
}
|
|
120
111
|
) })
|
|
121
112
|
);
|
|
122
|
-
|
|
123
|
-
const
|
|
124
|
-
|
|
113
|
+
q.displayName = h.displayName;
|
|
114
|
+
const B = t.forwardRef(({ className: e, inset: s, ...a }, o) => /* @__PURE__ */ r(
|
|
115
|
+
N,
|
|
125
116
|
{
|
|
126
117
|
ref: o,
|
|
127
118
|
className: n(
|
|
@@ -132,9 +123,9 @@ const D = t.forwardRef(({ className: e, inset: s, ...a }, o) => /* @__PURE__ */
|
|
|
132
123
|
...a
|
|
133
124
|
}
|
|
134
125
|
));
|
|
135
|
-
|
|
136
|
-
const
|
|
137
|
-
|
|
126
|
+
B.displayName = N.displayName;
|
|
127
|
+
const D = t.forwardRef(({ className: e, children: s, checked: a, ...o }, d) => /* @__PURE__ */ l(
|
|
128
|
+
x,
|
|
138
129
|
{
|
|
139
130
|
ref: d,
|
|
140
131
|
className: n(
|
|
@@ -144,13 +135,13 @@ const E = t.forwardRef(({ className: e, children: s, checked: a, ...o }, d) => /
|
|
|
144
135
|
checked: a,
|
|
145
136
|
...o,
|
|
146
137
|
children: [
|
|
147
|
-
/* @__PURE__ */ r("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(
|
|
138
|
+
/* @__PURE__ */ r("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(C, { icon: P, size: "sm" }) }) }),
|
|
148
139
|
s
|
|
149
140
|
]
|
|
150
141
|
}
|
|
151
142
|
));
|
|
152
|
-
|
|
153
|
-
const
|
|
143
|
+
D.displayName = x.displayName;
|
|
144
|
+
const E = t.forwardRef(({ className: e, children: s, ...a }, o) => /* @__PURE__ */ l(
|
|
154
145
|
M,
|
|
155
146
|
{
|
|
156
147
|
ref: o,
|
|
@@ -160,13 +151,13 @@ const F = t.forwardRef(({ className: e, children: s, ...a }, o) => /* @__PURE__
|
|
|
160
151
|
),
|
|
161
152
|
...a,
|
|
162
153
|
children: [
|
|
163
|
-
/* @__PURE__ */ r("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(
|
|
154
|
+
/* @__PURE__ */ r("span", { className: "absolute left-ds-03 flex h-ico-sm w-ico-sm items-center justify-center", children: /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(T, { className: "h-2 w-2 fill-current" }) }) }),
|
|
164
155
|
s
|
|
165
156
|
]
|
|
166
157
|
}
|
|
167
158
|
));
|
|
168
|
-
|
|
169
|
-
const
|
|
159
|
+
E.displayName = M.displayName;
|
|
160
|
+
const F = t.forwardRef(({ className: e, inset: s, ...a }, o) => /* @__PURE__ */ r(
|
|
170
161
|
w,
|
|
171
162
|
{
|
|
172
163
|
ref: o,
|
|
@@ -178,17 +169,17 @@ const H = t.forwardRef(({ className: e, inset: s, ...a }, o) => /* @__PURE__ */
|
|
|
178
169
|
...a
|
|
179
170
|
}
|
|
180
171
|
));
|
|
181
|
-
|
|
182
|
-
const
|
|
183
|
-
|
|
172
|
+
F.displayName = w.displayName;
|
|
173
|
+
const H = t.forwardRef(({ className: e, ...s }, a) => /* @__PURE__ */ r(
|
|
174
|
+
R,
|
|
184
175
|
{
|
|
185
176
|
ref: a,
|
|
186
177
|
className: n("-mx-ds-01 my-ds-02 h-px bg-surface-border", e),
|
|
187
178
|
...s
|
|
188
179
|
}
|
|
189
180
|
));
|
|
190
|
-
|
|
191
|
-
const
|
|
181
|
+
H.displayName = R.displayName;
|
|
182
|
+
const J = ({
|
|
192
183
|
className: e,
|
|
193
184
|
...s
|
|
194
185
|
}) => /* @__PURE__ */ r(
|
|
@@ -201,22 +192,22 @@ const K = ({
|
|
|
201
192
|
...s
|
|
202
193
|
}
|
|
203
194
|
);
|
|
204
|
-
|
|
195
|
+
J.displayName = "MenubarShortcut";
|
|
205
196
|
export {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
197
|
+
X as Menubar,
|
|
198
|
+
D as MenubarCheckboxItem,
|
|
199
|
+
q as MenubarContent,
|
|
209
200
|
te as MenubarGroup,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
201
|
+
B as MenubarItem,
|
|
202
|
+
F as MenubarLabel,
|
|
203
|
+
V as MenubarMenu,
|
|
213
204
|
ne as MenubarPortal,
|
|
214
205
|
de as MenubarRadioGroup,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
206
|
+
E as MenubarRadioItem,
|
|
207
|
+
H as MenubarSeparator,
|
|
208
|
+
J as MenubarShortcut,
|
|
209
|
+
W as MenubarSub,
|
|
210
|
+
$ as MenubarSubContent,
|
|
211
|
+
Z as MenubarSubTrigger,
|
|
212
|
+
Y as MenubarTrigger
|
|
222
213
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../src/ui/navigation-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,uBAAuB,MAAM,mCAAmC,CAAA;AAQ5E,QAAA,MAAM,cAAc,iKAelB,CAAA;AAGF,QAAA,MAAM,kBAAkB,+KAYtB,CAAA;AAGF,QAAA,MAAM,kBAAkB,uHAA+B,CAAA;AAEvD,QAAA,MAAM,qBAAqB,oLAezB,CAAA;AAaF,QAAA,MAAM,qBAAqB,8KAqEzB,CAAA;AAGF,QAAA,MAAM,kBAAkB,2HAA+B,CAAA;AAIvD,QAAA,MAAM,sBAAsB,+
|
|
1
|
+
{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../src/ui/navigation-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,uBAAuB,MAAM,mCAAmC,CAAA;AAQ5E,QAAA,MAAM,cAAc,iKAelB,CAAA;AAGF,QAAA,MAAM,kBAAkB,+KAYtB,CAAA;AAGF,QAAA,MAAM,kBAAkB,uHAA+B,CAAA;AAEvD,QAAA,MAAM,qBAAqB,oLAezB,CAAA;AAaF,QAAA,MAAM,qBAAqB,8KAqEzB,CAAA;AAGF,QAAA,MAAM,kBAAkB,2HAA+B,CAAA;AAIvD,QAAA,MAAM,sBAAsB,+KAsD1B,CAAA;AAMF,QAAA,MAAM,uBAAuB,gLAoD3B,CAAA;AAIF,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,CAAA;AACrG,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,uBAAuB,CAAC,OAAO,CAAC,CAAA;AAE/G,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,GACvB,CAAA"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as v, jsx as c } from "react/jsx-runtime";
|
|
3
3
|
import * as a from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { IconChevronDown as
|
|
6
|
-
import { cn as
|
|
7
|
-
import { tweens as
|
|
8
|
-
import { Icon as
|
|
9
|
-
import { m as
|
|
10
|
-
const
|
|
4
|
+
import { b9 as N, ba as h, bb as w, bc as x, bd as R, be as M, bf as O, bg as V } from "../_chunks/primitives.js";
|
|
5
|
+
import { IconChevronDown as L } from "@tabler/icons-react";
|
|
6
|
+
import { cn as u } from "./lib/utils.js";
|
|
7
|
+
import { tweens as g, springs as I } from "./lib/motion.js";
|
|
8
|
+
import { Icon as S } from "./icon.js";
|
|
9
|
+
import { m as y } from "../_chunks/framer.js";
|
|
10
|
+
const W = a.forwardRef(({ className: n, children: o, ...t }, r) => /* @__PURE__ */ v(
|
|
11
11
|
N,
|
|
12
12
|
{
|
|
13
13
|
ref: r,
|
|
14
|
-
className:
|
|
14
|
+
className: u(
|
|
15
15
|
"relative z-raised flex max-w-max flex-1 items-center justify-center",
|
|
16
16
|
n
|
|
17
17
|
),
|
|
@@ -22,24 +22,24 @@ const S = a.forwardRef(({ className: n, children: o, ...t }, r) => /* @__PURE__
|
|
|
22
22
|
]
|
|
23
23
|
}
|
|
24
24
|
));
|
|
25
|
-
|
|
26
|
-
const
|
|
25
|
+
W.displayName = N.displayName;
|
|
26
|
+
const z = a.forwardRef(({ className: n, ...o }, t) => /* @__PURE__ */ c(
|
|
27
27
|
h,
|
|
28
28
|
{
|
|
29
29
|
ref: t,
|
|
30
|
-
className:
|
|
30
|
+
className: u(
|
|
31
31
|
"group flex flex-1 list-none items-center justify-center space-x-ds-02",
|
|
32
32
|
n
|
|
33
33
|
),
|
|
34
34
|
...o
|
|
35
35
|
}
|
|
36
36
|
));
|
|
37
|
-
|
|
38
|
-
const P = O,
|
|
37
|
+
z.displayName = h.displayName;
|
|
38
|
+
const P = O, D = a.forwardRef(({ className: n, children: o, ...t }, r) => /* @__PURE__ */ v(
|
|
39
39
|
w,
|
|
40
40
|
{
|
|
41
41
|
ref: r,
|
|
42
|
-
className:
|
|
42
|
+
className: u(
|
|
43
43
|
"group inline-flex h-ds-sm-plus w-max items-center justify-center rounded-ds-md bg-transparent px-ds-05 py-ds-03 text-ds-md font-medium transition-colors hover:bg-surface-raised-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 disabled:pointer-events-none disabled:opacity-action-disabled",
|
|
44
44
|
n
|
|
45
45
|
),
|
|
@@ -47,18 +47,18 @@ const P = O, z = a.forwardRef(({ className: n, children: o, ...t }, r) => /* @__
|
|
|
47
47
|
children: [
|
|
48
48
|
o,
|
|
49
49
|
" ",
|
|
50
|
-
/* @__PURE__ */ c(
|
|
50
|
+
/* @__PURE__ */ c(S, { icon: L, size: "sm", className: "relative top-[1px] ml-ds-02 transition-transform duration-moderate-02 group-data-[state=open]:rotate-180" })
|
|
51
51
|
]
|
|
52
52
|
}
|
|
53
53
|
));
|
|
54
|
-
|
|
54
|
+
D.displayName = w.displayName;
|
|
55
55
|
const b = {
|
|
56
56
|
"from-start": { x: "-13rem", opacity: 0 },
|
|
57
57
|
"from-end": { x: "13rem", opacity: 0 },
|
|
58
58
|
"to-start": { x: "-13rem", opacity: 0 },
|
|
59
59
|
"to-end": { x: "13rem", opacity: 0 },
|
|
60
60
|
center: { x: 0, opacity: 1 }
|
|
61
|
-
},
|
|
61
|
+
}, E = a.forwardRef(({ className: n, ...o }, t) => {
|
|
62
62
|
const r = a.useRef(null), m = a.useCallback(
|
|
63
63
|
(s) => {
|
|
64
64
|
r.current = s, typeof t == "function" ? t(s) : t && (t.current = s);
|
|
@@ -68,8 +68,8 @@ const b = {
|
|
|
68
68
|
a.useEffect(() => {
|
|
69
69
|
const s = r.current;
|
|
70
70
|
if (!s) return;
|
|
71
|
-
const
|
|
72
|
-
|
|
71
|
+
const d = s.getAttribute("data-motion");
|
|
72
|
+
d && l(d);
|
|
73
73
|
const f = new MutationObserver((A) => {
|
|
74
74
|
for (const C of A)
|
|
75
75
|
if (C.attributeName === "data-motion") {
|
|
@@ -84,18 +84,18 @@ const b = {
|
|
|
84
84
|
x,
|
|
85
85
|
{
|
|
86
86
|
ref: m,
|
|
87
|
-
className:
|
|
87
|
+
className: u(
|
|
88
88
|
"left-0 top-0 w-full md:absolute md:w-auto",
|
|
89
89
|
n
|
|
90
90
|
),
|
|
91
91
|
...o,
|
|
92
92
|
children: /* @__PURE__ */ c(
|
|
93
|
-
|
|
93
|
+
y.div,
|
|
94
94
|
{
|
|
95
95
|
initial: e,
|
|
96
96
|
animate: p,
|
|
97
|
-
transition: { ...I.smooth, opacity:
|
|
98
|
-
|
|
97
|
+
transition: { ...I.smooth, opacity: g.fade },
|
|
98
|
+
className: "w-full",
|
|
99
99
|
children: o.children
|
|
100
100
|
},
|
|
101
101
|
i
|
|
@@ -103,7 +103,7 @@ const b = {
|
|
|
103
103
|
}
|
|
104
104
|
);
|
|
105
105
|
});
|
|
106
|
-
|
|
106
|
+
E.displayName = x.displayName;
|
|
107
107
|
const Q = V, j = a.forwardRef(({ className: n, ...o }, t) => {
|
|
108
108
|
const r = a.useRef(null), m = a.useCallback(
|
|
109
109
|
(e) => {
|
|
@@ -116,16 +116,16 @@ const Q = V, j = a.forwardRef(({ className: n, ...o }, t) => {
|
|
|
116
116
|
if (!e) return;
|
|
117
117
|
const p = e.getAttribute("data-state");
|
|
118
118
|
l(p === "open");
|
|
119
|
-
const s = new MutationObserver((
|
|
120
|
-
for (const f of
|
|
119
|
+
const s = new MutationObserver((d) => {
|
|
120
|
+
for (const f of d)
|
|
121
121
|
f.attributeName === "data-state" && l(e.getAttribute("data-state") === "open");
|
|
122
122
|
});
|
|
123
123
|
return s.observe(e, { attributes: !0, attributeFilter: ["data-state"] }), () => s.disconnect();
|
|
124
|
-
}, []), /* @__PURE__ */ v("div", { className:
|
|
124
|
+
}, []), /* @__PURE__ */ v("div", { className: u("absolute left-0 top-full flex justify-center"), children: [
|
|
125
125
|
/* @__PURE__ */ c(
|
|
126
126
|
R,
|
|
127
127
|
{
|
|
128
|
-
className:
|
|
128
|
+
className: u(
|
|
129
129
|
"origin-top-center relative mt-ds-02b h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-ds-lg border border-surface-border-strong bg-surface-overlay shadow-floating md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
130
130
|
n
|
|
131
131
|
),
|
|
@@ -134,17 +134,13 @@ const Q = V, j = a.forwardRef(({ className: n, ...o }, t) => {
|
|
|
134
134
|
}
|
|
135
135
|
),
|
|
136
136
|
/* @__PURE__ */ c(
|
|
137
|
-
|
|
137
|
+
y.div,
|
|
138
138
|
{
|
|
139
139
|
"aria-hidden": !0,
|
|
140
|
-
|
|
141
|
-
position: "absolute",
|
|
142
|
-
inset: 0,
|
|
143
|
-
pointerEvents: "none"
|
|
144
|
-
},
|
|
140
|
+
className: "absolute inset-0 pointer-events-none",
|
|
145
141
|
initial: !1,
|
|
146
142
|
animate: i ? { opacity: 1, scale: 1 } : { opacity: 0, scale: 0.95 },
|
|
147
|
-
transition: { ...I.smooth, opacity:
|
|
143
|
+
transition: { ...I.smooth, opacity: g.fade }
|
|
148
144
|
}
|
|
149
145
|
)
|
|
150
146
|
] });
|
|
@@ -162,8 +158,8 @@ const F = a.forwardRef(({ className: n, ...o }, t) => {
|
|
|
162
158
|
if (!e) return;
|
|
163
159
|
const p = e.getAttribute("data-state");
|
|
164
160
|
l(p === "visible");
|
|
165
|
-
const s = new MutationObserver((
|
|
166
|
-
for (const f of
|
|
161
|
+
const s = new MutationObserver((d) => {
|
|
162
|
+
for (const f of d)
|
|
167
163
|
f.attributeName === "data-state" && l(e.getAttribute("data-state") === "visible");
|
|
168
164
|
});
|
|
169
165
|
return s.observe(e, { attributes: !0, attributeFilter: ["data-state"] }), () => s.disconnect();
|
|
@@ -171,18 +167,18 @@ const F = a.forwardRef(({ className: n, ...o }, t) => {
|
|
|
171
167
|
M,
|
|
172
168
|
{
|
|
173
169
|
ref: m,
|
|
174
|
-
className:
|
|
170
|
+
className: u(
|
|
175
171
|
"top-full z-base flex h-ds-02b items-end justify-center overflow-hidden",
|
|
176
172
|
n
|
|
177
173
|
),
|
|
178
174
|
...o,
|
|
179
175
|
children: /* @__PURE__ */ c(
|
|
180
|
-
|
|
176
|
+
y.div,
|
|
181
177
|
{
|
|
182
178
|
layout: !0,
|
|
183
179
|
initial: !1,
|
|
184
180
|
animate: i ? { opacity: 1 } : { opacity: 0 },
|
|
185
|
-
transition:
|
|
181
|
+
transition: g.fade,
|
|
186
182
|
className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-surface-border shadow-raised-hover"
|
|
187
183
|
}
|
|
188
184
|
)
|
|
@@ -191,12 +187,12 @@ const F = a.forwardRef(({ className: n, ...o }, t) => {
|
|
|
191
187
|
});
|
|
192
188
|
F.displayName = M.displayName;
|
|
193
189
|
export {
|
|
194
|
-
|
|
195
|
-
|
|
190
|
+
W as NavigationMenu,
|
|
191
|
+
E as NavigationMenuContent,
|
|
196
192
|
F as NavigationMenuIndicator,
|
|
197
193
|
P as NavigationMenuItem,
|
|
198
194
|
Q as NavigationMenuLink,
|
|
199
|
-
|
|
200
|
-
|
|
195
|
+
z as NavigationMenuList,
|
|
196
|
+
D as NavigationMenuTrigger,
|
|
201
197
|
j as NavigationMenuViewport
|
|
202
198
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../src/ui/number-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;IACjI,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,QAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../src/ui/number-input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;IACjI,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,QAAA,MAAM,WAAW,2FA8FhB,CAAA;AAGD,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
package/dist/ui/number-input.js
CHANGED
|
@@ -3,13 +3,13 @@ import { jsxs as g, jsx as a } from "react/jsx-runtime";
|
|
|
3
3
|
import * as w from "react";
|
|
4
4
|
import { IconMinus as y, IconPlus as E } from "@tabler/icons-react";
|
|
5
5
|
import { cn as j } from "./lib/utils.js";
|
|
6
|
-
import { useFormField as
|
|
6
|
+
import { useFormField as D } from "./form.js";
|
|
7
7
|
import { Icon as f } from "./icon.js";
|
|
8
|
-
const
|
|
8
|
+
const M = w.forwardRef(
|
|
9
9
|
({
|
|
10
|
-
value:
|
|
10
|
+
value: r = 0,
|
|
11
11
|
onValueChange: n,
|
|
12
|
-
min:
|
|
12
|
+
min: t = Number.MIN_SAFE_INTEGER,
|
|
13
13
|
max: o = Number.MAX_SAFE_INTEGER,
|
|
14
14
|
step: i = 1,
|
|
15
15
|
disabled: c = !1,
|
|
@@ -17,24 +17,24 @@ const k = w.forwardRef(
|
|
|
17
17
|
"aria-label": b,
|
|
18
18
|
...u
|
|
19
19
|
}, p) => {
|
|
20
|
-
const d =
|
|
20
|
+
const d = D(), h = b ?? (u.id || d.helperTextId ? void 0 : "Numeric value"), v = (s) => {
|
|
21
21
|
const e = s.target.value.trim();
|
|
22
22
|
if (e === "" || e === "-") {
|
|
23
|
-
n?.(
|
|
23
|
+
n?.(t >= 0 ? t : 0);
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
const l = Number(e);
|
|
27
27
|
if (Number.isNaN(l)) return;
|
|
28
|
-
const I = Math.min(Math.max(l,
|
|
28
|
+
const I = Math.min(Math.max(l, t), o);
|
|
29
29
|
n?.(I);
|
|
30
30
|
}, N = (s) => {
|
|
31
31
|
s.preventDefault();
|
|
32
|
-
const e =
|
|
32
|
+
const e = r + i;
|
|
33
33
|
e <= o && n?.(e);
|
|
34
34
|
}, x = (s) => {
|
|
35
35
|
s.preventDefault();
|
|
36
|
-
const e =
|
|
37
|
-
e >=
|
|
36
|
+
const e = r - i;
|
|
37
|
+
e >= t && n?.(e);
|
|
38
38
|
};
|
|
39
39
|
return /* @__PURE__ */ g(
|
|
40
40
|
"div",
|
|
@@ -49,8 +49,9 @@ const k = w.forwardRef(
|
|
|
49
49
|
{
|
|
50
50
|
type: "button",
|
|
51
51
|
onClick: x,
|
|
52
|
-
disabled: c ||
|
|
52
|
+
disabled: c || r <= t,
|
|
53
53
|
"aria-label": "Decrease value",
|
|
54
|
+
title: "Decrease",
|
|
54
55
|
className: "flex h-ds-sm w-ds-sm items-center justify-center border-0 text-surface-fg-subtle hover:bg-surface-raised-hover hover:text-surface-fg-muted active:scale-90 transition-[color,transform] duration-fast-01 ease-productive-standard",
|
|
55
56
|
children: /* @__PURE__ */ a(f, { icon: y, size: "sm" })
|
|
56
57
|
}
|
|
@@ -60,15 +61,15 @@ const k = w.forwardRef(
|
|
|
60
61
|
{
|
|
61
62
|
ref: p,
|
|
62
63
|
type: "number",
|
|
63
|
-
value:
|
|
64
|
+
value: r,
|
|
64
65
|
onChange: v,
|
|
65
|
-
min:
|
|
66
|
+
min: t,
|
|
66
67
|
max: o,
|
|
67
68
|
step: i,
|
|
68
69
|
disabled: c,
|
|
69
70
|
"aria-label": h,
|
|
70
71
|
"aria-describedby": u["aria-describedby"] ?? d.helperTextId,
|
|
71
|
-
className: "bg-transparent text-ds-md font-semibold w-ds-sm-plus border-0 text-center text-surface-fg-muted focus-visible:outline-none focus-visible:ring-
|
|
72
|
+
className: "bg-transparent text-ds-md font-semibold w-ds-sm-plus border-0 text-center text-surface-fg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-9 [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none",
|
|
72
73
|
...u
|
|
73
74
|
}
|
|
74
75
|
),
|
|
@@ -77,8 +78,9 @@ const k = w.forwardRef(
|
|
|
77
78
|
{
|
|
78
79
|
type: "button",
|
|
79
80
|
onClick: N,
|
|
80
|
-
disabled: c ||
|
|
81
|
+
disabled: c || r >= o,
|
|
81
82
|
"aria-label": "Increase value",
|
|
83
|
+
title: "Increase",
|
|
82
84
|
className: "flex h-ds-sm w-ds-sm items-center justify-center border-0 text-surface-fg-subtle hover:bg-surface-raised-hover hover:text-surface-fg-muted active:scale-90 transition-[color,transform] duration-fast-01 ease-productive-standard",
|
|
83
85
|
children: /* @__PURE__ */ a(f, { icon: E, size: "sm" })
|
|
84
86
|
}
|
|
@@ -88,7 +90,7 @@ const k = w.forwardRef(
|
|
|
88
90
|
);
|
|
89
91
|
}
|
|
90
92
|
);
|
|
91
|
-
|
|
93
|
+
M.displayName = "NumberInput";
|
|
92
94
|
export {
|
|
93
|
-
|
|
95
|
+
M as NumberInput
|
|
94
96
|
};
|
package/dist/ui/popover.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/ui/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/ui/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAA;AAY7D,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,CA4BnF,CAAA;AAGD,QAAA,MAAM,cAAc,gHAA2B,CAAA;AAE/C,QAAA,MAAM,aAAa,4GAA0B,CAAA;AAE7C,QAAA,MAAM,cAAc,gKAiDlB,CAAA;AAGF,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAA;AAEjG,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,CAAA"}
|