@justanarthur/modo-ui 2.0.0 → 2.2.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/blocks/desktop-shell/index.tsx +2 -1
- package/components/data-display/sparkline/examples.mdx +79 -0
- package/components/data-display/sparkline/index.tsx +158 -0
- package/components/data-display/sparkline/live-demo.tsx +36 -0
- package/components/feedback/meter/examples.mdx +25 -0
- package/components/feedback/meter/index.tsx +23 -7
- package/components/feedback/meter/timer-demo.tsx +37 -0
- package/components/inputs/checkbox/index.tsx +5 -0
- package/components/inputs/combobox/index.tsx +9 -4
- package/components/inputs/radio/index.tsx +5 -0
- package/components/inputs/select/index.tsx +23 -3
- package/components/inputs/slider/comfortable.tsx +10 -4
- package/components/inputs/slider/compact.tsx +153 -71
- package/components/inputs/slider/examples.mdx +24 -0
- package/components/inputs/slider/geometry.ts +18 -6
- package/components/inputs/slider/index.tsx +30 -8
- package/components/inputs/slider/value-display.tsx +16 -9
- package/components/inputs/switch/index.tsx +7 -2
- package/components/inputs/textarea/examples.mdx +19 -0
- package/components/inputs/textarea/index.tsx +42 -5
- package/components/navigation/sidebar/sidebar-group.tsx +2 -1
- package/components/navigation/sidebar/sidebar-menu-sub.tsx +2 -1
- package/components/navigation/sidebar/sidebar-shell.tsx +2 -1
- package/components/navigation/tree/index.tsx +2 -1
- package/components/overlays/dropdown/index.tsx +50 -8
- package/components/overlays/dropdown/submenu.tsx +41 -10
- package/components/overlays/tooltip/examples.mdx +13 -0
- package/components/overlays/tooltip/index.tsx +58 -16
- package/dist/base.css +4 -0
- package/dist/blocks/desktop-shell/index.js +28 -27
- package/dist/blocks/sidebar-app/index.js +38 -37
- package/dist/components/actions/button/index.js +4 -4
- package/dist/components/actions/copy/index.js +12 -12
- package/dist/components/containers/accordion/index.d.ts +1 -1
- package/dist/components/containers/accordion/index.js +16 -16
- package/dist/components/containers/card/index.js +14 -14
- package/dist/components/data-display/avatar/index.js +3 -3
- package/dist/components/data-display/badge/index.js +2 -2
- package/dist/components/data-display/diff/index.js +4 -4
- package/dist/components/data-display/list/index.js +3 -3
- package/dist/components/data-display/log-view/index.js +8 -8
- package/dist/components/data-display/markdown/index.js +15 -15
- package/dist/components/data-display/sparkline/index.d.ts +44 -0
- package/dist/components/data-display/sparkline/index.js +11 -0
- package/dist/components/data-display/table/index.js +9 -9
- package/dist/components/feedback/empty-state/index.js +3 -3
- package/dist/components/feedback/meter/index.d.ts +9 -1
- package/dist/components/feedback/meter/index.js +2 -2
- package/dist/components/feedback/progress/index.js +2 -2
- package/dist/components/inputs/checkbox/index.d.ts +2 -0
- package/dist/components/inputs/checkbox/index.js +13 -13
- package/dist/components/inputs/choice-list/index.js +10 -10
- package/dist/components/inputs/color-picker/index.js +22 -22
- package/dist/components/inputs/combobox/index.d.ts +1 -1
- package/dist/components/inputs/combobox/index.js +21 -21
- package/dist/components/inputs/date-time/calendar/index.js +9 -9
- package/dist/components/inputs/date-time/date-picker/index.js +28 -28
- package/dist/components/inputs/date-time/date-range-picker/index.js +28 -28
- package/dist/components/inputs/date-time/duration-picker/index.js +27 -27
- package/dist/components/inputs/date-time/month-picker/index.js +26 -26
- package/dist/components/inputs/date-time/time-picker/index.js +27 -27
- package/dist/components/inputs/editable-text/index.js +2 -2
- package/dist/components/inputs/field/index.js +5 -5
- package/dist/components/inputs/file-dropzone/index.js +8 -8
- package/dist/components/inputs/input/index.js +6 -6
- package/dist/components/inputs/key-value/index.js +12 -12
- package/dist/components/inputs/number-input/index.js +7 -7
- package/dist/components/inputs/radio/index.d.ts +2 -0
- package/dist/components/inputs/radio/index.js +12 -12
- package/dist/components/inputs/search/index.js +23 -23
- package/dist/components/inputs/select/index.d.ts +22 -4
- package/dist/components/inputs/select/index.js +22 -22
- package/dist/components/inputs/slider/index.d.ts +12 -3
- package/dist/components/inputs/slider/index.js +4 -4
- package/dist/components/inputs/switch/index.d.ts +2 -0
- package/dist/components/inputs/switch/index.js +9 -9
- package/dist/components/inputs/textarea/index.d.ts +8 -1
- package/dist/components/inputs/textarea/index.js +4 -4
- package/dist/components/navigation/breadcrumb/index.js +25 -25
- package/dist/components/navigation/navigation-menu/index.js +17 -17
- package/dist/components/navigation/pagination/index.js +16 -16
- package/dist/components/navigation/sidebar/index.js +26 -25
- package/dist/components/navigation/tabs/index.js +13 -13
- package/dist/components/navigation/tree/index.js +10 -9
- package/dist/components/overlays/alert-dialog/index.d.ts +3 -3
- package/dist/components/overlays/alert-dialog/index.js +15 -15
- package/dist/components/overlays/command/index.d.ts +1 -1
- package/dist/components/overlays/command/index.js +21 -21
- package/dist/components/overlays/context-menu/index.d.ts +20 -1
- package/dist/components/overlays/context-menu/index.js +25 -25
- package/dist/components/overlays/dialog/index.d.ts +3 -3
- package/dist/components/overlays/dialog/index.js +14 -14
- package/dist/components/overlays/dropdown/index.d.ts +30 -8
- package/dist/components/overlays/dropdown/index.js +24 -24
- package/dist/components/overlays/lightbox/index.js +12 -12
- package/dist/components/overlays/popover/index.d.ts +6 -6
- package/dist/components/overlays/popover/index.js +11 -11
- package/dist/components/overlays/preview-card/index.js +10 -10
- package/dist/components/overlays/sheet/index.d.ts +3 -3
- package/dist/components/overlays/sheet/index.js +15 -15
- package/dist/components/overlays/toast/index.d.ts +1 -1
- package/dist/components/overlays/toast/index.js +11 -11
- package/dist/components/overlays/tooltip/index.d.ts +35 -10
- package/dist/components/overlays/tooltip/index.js +8 -8
- package/dist/docs/index.js +18 -17
- package/dist/index.d.ts +330 -228
- package/dist/index.js +82 -77
- package/dist/lib/fluid-hover-highlight.js +4 -4
- package/dist/lib/focus-ring.js +2 -2
- package/dist/lib/goo-indicator.js +3 -3
- package/dist/lib/inert.d.ts +7 -0
- package/dist/lib/inert.js +6 -0
- package/dist/lib/morph-layers.js +4 -4
- package/dist/lib/morph-part.js +2 -2
- package/dist/lib/overlay.d.ts +20 -13
- package/dist/lib/overlay.js +5 -4
- package/dist/lib/popup-rows.js +2 -2
- package/dist/lib/popup-surface.js +7 -7
- package/dist/lib/scroll-column.js +6 -6
- package/dist/lib/slot.d.ts +5 -2
- package/dist/lib/slot.js +1 -1
- package/dist/lib/use-merge-split.js +4 -4
- package/dist/lib/use-morph.js +2 -2
- package/dist/preset.d.ts +1 -0
- package/dist/preset.js +1 -0
- package/dist/primitives/content/code/index.js +3 -3
- package/dist/primitives/layout/resizable/index.js +2 -2
- package/dist/primitives/layout/sortable/index.js +5 -5
- package/dist/primitives/systems/craft/index.js +3 -3
- package/dist/primitives/systems/fluid-hover/index.js +6 -6
- package/dist/primitives/systems/morph/index.js +14 -14
- package/dist/primitives/systems/motion/index.js +7 -7
- package/dist/primitives/systems/sizes/index.js +2 -2
- package/dist/shared/{components-280grw6q.js → components-09n5hgmx.js} +2 -2
- package/dist/shared/{components-1f3a7gmg.js → components-151vndgm.js} +3 -3
- package/dist/shared/{components-14wzcym0.js → components-16wx5av1.js} +6 -6
- package/dist/shared/{components-yf2gtq68.js → components-19e2wpxc.js} +9 -6
- package/dist/shared/{components-rzy6h7s4.js → components-1nqp7wqr.js} +1 -1
- package/dist/shared/components-2myjk2zf.js +8 -0
- package/dist/shared/{components-9rebr89j.js → components-2q0m4mxf.js} +2 -2
- package/dist/shared/{components-1asw2ph0.js → components-2zr49v82.js} +3 -3
- package/dist/shared/{components-wq9hrera.js → components-313rmbxy.js} +2 -2
- package/dist/shared/{components-0h2mng6m.js → components-31pkxwfz.js} +1 -1
- package/dist/shared/{components-w2at9ntm.js → components-3cvwrzc1.js} +3 -3
- package/dist/shared/{components-n0gbyp5a.js → components-4xd21p2p.js} +6 -6
- package/dist/shared/{components-t0c1rw40.js → components-7v6869ga.js} +1 -1
- package/dist/shared/{components-kwxye0an.js → components-7wjkag2j.js} +4 -2
- package/dist/shared/{components-fqsgd07c.js → components-85dz3xx3.js} +4 -4
- package/dist/shared/{components-3rvrdsa9.js → components-8qkd3659.js} +1 -1
- package/dist/shared/{components-me742146.js → components-8qwbwtv9.js} +5 -5
- package/dist/shared/{components-nxqrw789.js → components-90sfqz5t.js} +1 -1
- package/dist/shared/{components-b9bj65j3.js → components-90y8qwxv.js} +9 -9
- package/dist/shared/{components-g35n8tzm.js → components-95kp19zn.js} +1 -1
- package/dist/shared/{components-nhmgr5xc.js → components-9e5fpy3v.js} +14 -11
- package/dist/shared/{components-a1ms36qq.js → components-9hysh6d3.js} +1 -1
- package/dist/shared/{components-hcftn5r8.js → components-9s9vb2w0.js} +7 -4
- package/dist/shared/{components-vfreweq3.js → components-a3edrqpb.js} +3 -3
- package/dist/shared/{components-ee09xmkh.js → components-afj2ajea.js} +8 -5
- package/dist/shared/{components-ev0ytbqb.js → components-ajgwbabq.js} +4 -4
- package/dist/shared/{components-62510420.js → components-dr5c27yd.js} +6 -6
- package/dist/shared/{components-s90v3jpr.js → components-fqdh9ysk.js} +68 -19
- package/dist/shared/{components-2m2hg11x.js → components-gfw4zk8b.js} +8 -8
- package/dist/shared/{components-z0kz9rxj.js → components-gvwxswpr.js} +1 -1
- package/dist/shared/{components-p32aqk3q.js → components-h9se5cz5.js} +110 -73
- package/dist/shared/{components-464zs8v6.js → components-hbqyf35a.js} +41 -34
- package/dist/shared/{components-77gxngmc.js → components-jd21f3mb.js} +8 -8
- package/dist/shared/{components-xnkc892z.js → components-mamtvenk.js} +2 -2
- package/dist/shared/{components-1hga6pkn.js → components-mcnyaaep.js} +3 -3
- package/dist/shared/{components-h0x2pj2y.js → components-mpx3yq5c.js} +24 -10
- package/dist/shared/{components-j79a6jqa.js → components-nc8wggew.js} +3 -3
- package/dist/shared/{components-r5q9gdh4.js → components-nd3f803g.js} +7 -7
- package/dist/shared/{components-9ca0c92a.js → components-nehs80xd.js} +1 -1
- package/dist/shared/components-nw2k1pg9.js +98 -0
- package/dist/shared/{components-4t2cjav8.js → components-pgs3p035.js} +1 -1
- package/dist/shared/{components-91mmbrw3.js → components-ppc2dmxs.js} +2 -2
- package/dist/shared/{components-b2kjsn1s.js → components-qc1fae2s.js} +6 -6
- package/dist/shared/{components-fmyvz4r2.js → components-qd27dvgj.js} +6 -6
- package/dist/shared/{components-9z7bq8gn.js → components-qe8yp3vf.js} +3 -3
- package/dist/shared/{components-wx1dcp2n.js → components-qhk2m7fj.js} +2 -2
- package/dist/shared/{components-a1mwqxsv.js → components-qkt4h7x4.js} +8 -8
- package/dist/shared/{components-6rtawx8y.js → components-qs0cwe8p.js} +10 -10
- package/dist/shared/{components-y8m64zdw.js → components-r6ejdtpr.js} +3 -3
- package/dist/shared/{components-1bnf96sr.js → components-rj4nnqkz.js} +39 -11
- package/dist/shared/{components-gd8gmr6w.js → components-rmhdr4g1.js} +1 -1
- package/dist/shared/{components-e7zxwja1.js → components-rts2mggt.js} +1 -1
- package/dist/shared/{components-ta4e10mx.js → components-s25rehbv.js} +1 -1
- package/dist/shared/{components-chda6b23.js → components-sxstx1x7.js} +33 -4
- package/dist/shared/{components-b7p1pjcm.js → components-t4eb37vd.js} +2 -2
- package/dist/shared/{components-7xc2dne4.js → components-v3c3madd.js} +2 -2
- package/dist/shared/{components-22h8dvt1.js → components-v81eejq6.js} +3 -3
- package/dist/shared/{components-w1ysefg1.js → components-veaxns17.js} +2 -2
- package/dist/shared/{components-czvraaw9.js → components-vkrp4nb9.js} +4 -4
- package/dist/shared/{components-gsstwhtv.js → components-vv420geb.js} +6 -3
- package/dist/shared/{components-5xs8pkkj.js → components-w5p7mfb4.js} +1 -1
- package/dist/shared/{components-rgng034x.js → components-xvf8jcza.js} +25 -4
- package/dist/shared/{components-q7zk70tx.js → components-y07de1qv.js} +1 -1
- package/dist/shared/{components-0cpte6s1.js → components-yn8bw8tv.js} +11 -10
- package/dist/shared/{components-xa9fvd5b.js → components-z9gc2weg.js} +3 -3
- package/dist/shared/{components-twyj2y8c.js → components-zk1tj5za.js} +3 -3
- package/dist/shared/{components-hz6armxa.js → components-zktkxnzq.js} +7 -4
- package/dist/styles.css +10 -1
- package/dist/tailwind.css +1 -0
- package/dist/tokens.css +4 -0
- package/index.ts +1 -0
- package/lib/inert.ts +15 -0
- package/lib/overlay.tsx +49 -5
- package/lib/slot.tsx +9 -3
- package/package.json +7 -2
- package/tokens/colors.css +4 -0
- /package/dist/shared/{components-jw45ck66.js → components-02683eqd.js} +0 -0
- /package/dist/shared/{components-q0hs5rqn.js → components-6c52v58g.js} +0 -0
- /package/dist/shared/{components-y4gsk1jt.js → components-fa61vwag.js} +0 -0
- /package/dist/shared/{components-nz14rwtd.js → components-ffng9rpa.js} +0 -0
- /package/dist/shared/{components-7mj5wsv3.js → components-k9qbcmaa.js} +0 -0
- /package/dist/shared/{components-8pnvkrbw.js → components-mp7en54n.js} +0 -0
- /package/dist/shared/{components-h8v9nh5r.js → components-pbx77hzb.js} +0 -0
- /package/dist/shared/{components-c515d6xr.js → components-v1m0xjbw.js} +0 -0
- /package/dist/shared/{components-pa43g2r2.js → components-wddr0r6a.js} +0 -0
- /package/dist/shared/{components-ymq8tbq9.js → components-wqac4434.js} +0 -0
- /package/dist/shared/{components-m3vxpz2z.js → components-yy0a9b02.js} +0 -0
- /package/dist/shared/{components-92mvpt9h.js → components-zwgxvktt.js} +0 -0
|
@@ -15,16 +15,16 @@ import {
|
|
|
15
15
|
} from "./components-1ztgy933.js";
|
|
16
16
|
import {
|
|
17
17
|
useMorph2
|
|
18
|
-
} from "./components-
|
|
18
|
+
} from "./components-mp7en54n.js";
|
|
19
19
|
import {
|
|
20
20
|
GooIndicator2
|
|
21
|
-
} from "./components-
|
|
21
|
+
} from "./components-gvwxswpr.js";
|
|
22
22
|
import {
|
|
23
23
|
FluidHoverHighlight2
|
|
24
|
-
} from "./components-
|
|
24
|
+
} from "./components-95kp19zn.js";
|
|
25
25
|
import {
|
|
26
26
|
FocusRing2
|
|
27
|
-
} from "./components-
|
|
27
|
+
} from "./components-v1m0xjbw.js";
|
|
28
28
|
import {
|
|
29
29
|
useMergeRefs2
|
|
30
30
|
} from "./components-bkwjvvkh.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
useOverlay2,
|
|
38
38
|
positionerProps2,
|
|
39
39
|
usePortalContainer2
|
|
40
|
-
} from "./components-
|
|
40
|
+
} from "./components-xvf8jcza.js";
|
|
41
41
|
import {
|
|
42
42
|
POPUP_SHAPE2,
|
|
43
43
|
popupScrollAreaClass2,
|
|
@@ -53,16 +53,16 @@ import {
|
|
|
53
53
|
CheckMark2,
|
|
54
54
|
PopupLabel2,
|
|
55
55
|
PopupSeparator2
|
|
56
|
-
} from "./components-
|
|
56
|
+
} from "./components-6c52v58g.js";
|
|
57
57
|
import {
|
|
58
58
|
PopupSurface2
|
|
59
|
-
} from "./components-
|
|
59
|
+
} from "./components-90sfqz5t.js";
|
|
60
60
|
import {
|
|
61
61
|
useRowFocus2
|
|
62
62
|
} from "./components-vcte8p75.js";
|
|
63
63
|
import {
|
|
64
64
|
slotRender2
|
|
65
|
-
} from "./components-
|
|
65
|
+
} from "./components-7wjkag2j.js";
|
|
66
66
|
import {
|
|
67
67
|
useFluidHover2,
|
|
68
68
|
useRegisterFluidHoverItem2
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
} from "./components-esy5nsvc.js";
|
|
76
76
|
import {
|
|
77
77
|
SizeScope2
|
|
78
|
-
} from "./components-
|
|
78
|
+
} from "./components-ffng9rpa.js";
|
|
79
79
|
|
|
80
80
|
// components/inputs/select/index.tsx
|
|
81
81
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
@@ -207,6 +207,10 @@ var SelectContent2 = forwardRef(({
|
|
|
207
207
|
side,
|
|
208
208
|
align,
|
|
209
209
|
sideOffset,
|
|
210
|
+
alignOffset,
|
|
211
|
+
collisionPadding,
|
|
212
|
+
collisionBoundary,
|
|
213
|
+
positionerClassName,
|
|
210
214
|
container,
|
|
211
215
|
finalFocus,
|
|
212
216
|
from,
|
|
@@ -247,7 +251,17 @@ var SelectContent2 = forwardRef(({
|
|
|
247
251
|
return /* @__PURE__ */ jsx(SelectPrimitive.Portal, {
|
|
248
252
|
container: usePortalContainer2(container),
|
|
249
253
|
children: /* @__PURE__ */ jsx(SelectPrimitive.Positioner, {
|
|
250
|
-
...positionerProps2({
|
|
254
|
+
...positionerProps2({
|
|
255
|
+
side,
|
|
256
|
+
align,
|
|
257
|
+
sideOffset,
|
|
258
|
+
alignOffset,
|
|
259
|
+
collisionPadding,
|
|
260
|
+
collisionBoundary,
|
|
261
|
+
positionerClassName,
|
|
262
|
+
effect,
|
|
263
|
+
hideSource
|
|
264
|
+
}, { side: "bottom", align: "start", sideOffset: 6 }),
|
|
251
265
|
alignItemWithTrigger: false,
|
|
252
266
|
children: /* @__PURE__ */ jsx(SelectContentContext.Provider, {
|
|
253
267
|
value: contentCtx,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./components-xnp09586.js";
|
|
6
6
|
import {
|
|
7
7
|
FluidHoverHighlight2
|
|
8
|
-
} from "./components-
|
|
8
|
+
} from "./components-95kp19zn.js";
|
|
9
9
|
import {
|
|
10
10
|
useIcon2
|
|
11
11
|
} from "./components-jnhpgpfk.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
rowLabelClass2,
|
|
24
24
|
RowIcon2,
|
|
25
25
|
PopupLabel2
|
|
26
|
-
} from "./components-
|
|
26
|
+
} from "./components-6c52v58g.js";
|
|
27
27
|
import {
|
|
28
28
|
useFluidHover2,
|
|
29
29
|
useRegisterFluidHoverItem2
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
DialogTrigger2,
|
|
36
36
|
DialogContent2,
|
|
37
37
|
DialogState2
|
|
38
|
-
} from "./components-
|
|
38
|
+
} from "./components-90y8qwxv.js";
|
|
39
39
|
|
|
40
40
|
// components/overlays/command/index.tsx
|
|
41
41
|
import { Autocomplete } from "@base-ui/react/autocomplete";
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
} from "./components-bkwjvvkh.js";
|
|
6
6
|
import {
|
|
7
7
|
useMorph2
|
|
8
|
-
} from "./components-
|
|
8
|
+
} from "./components-mp7en54n.js";
|
|
9
|
+
import {
|
|
10
|
+
cn2
|
|
11
|
+
} from "./components-xnp09586.js";
|
|
9
12
|
import {
|
|
10
13
|
OverlayContext2,
|
|
11
14
|
useOverlayRoot2,
|
|
12
15
|
useOverlay2,
|
|
13
16
|
positionerProps2,
|
|
14
17
|
usePortalContainer2
|
|
15
|
-
} from "./components-
|
|
16
|
-
import {
|
|
17
|
-
cn2
|
|
18
|
-
} from "./components-xnp09586.js";
|
|
18
|
+
} from "./components-xvf8jcza.js";
|
|
19
19
|
import {
|
|
20
20
|
PopupSurface2
|
|
21
|
-
} from "./components-
|
|
21
|
+
} from "./components-90sfqz5t.js";
|
|
22
22
|
import {
|
|
23
23
|
slotPart2
|
|
24
|
-
} from "./components-
|
|
24
|
+
} from "./components-7wjkag2j.js";
|
|
25
25
|
|
|
26
26
|
// components/overlays/popover/index.tsx
|
|
27
27
|
import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./components-bkwjvvkh.js";
|
|
25
25
|
import {
|
|
26
26
|
InputAdornment2
|
|
27
|
-
} from "./components-
|
|
27
|
+
} from "./components-y07de1qv.js";
|
|
28
28
|
|
|
29
29
|
// components/inputs/number-input/index.tsx
|
|
30
30
|
import { NumberField } from "@base-ui/react/number-field";
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
useSize2
|
|
5
|
+
} from "./components-znspksk0.js";
|
|
6
|
+
import {
|
|
7
|
+
cn2
|
|
8
|
+
} from "./components-xnp09586.js";
|
|
9
|
+
|
|
10
|
+
// components/data-display/sparkline/index.tsx
|
|
11
|
+
import { forwardRef } from "react";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
var TONE = {
|
|
14
|
+
current: "",
|
|
15
|
+
muted: "text-muted-foreground",
|
|
16
|
+
info: "text-status-info",
|
|
17
|
+
success: "text-status-success",
|
|
18
|
+
warning: "text-status-warning",
|
|
19
|
+
error: "text-status-error"
|
|
20
|
+
};
|
|
21
|
+
var HEIGHT = { default: "h-6", compact: "h-5" };
|
|
22
|
+
var W = 100;
|
|
23
|
+
var H = 100;
|
|
24
|
+
function points(series, max) {
|
|
25
|
+
const step = W / (series.length - 1);
|
|
26
|
+
return series.map((v, i) => `${i * step},${H - Math.min(Math.max(v / max, 0), 1) * H}`).join(" ");
|
|
27
|
+
}
|
|
28
|
+
function Series({ series, max, tone, area }) {
|
|
29
|
+
const line = points(series, max);
|
|
30
|
+
return /* @__PURE__ */ jsxs("g", {
|
|
31
|
+
className: TONE[tone],
|
|
32
|
+
children: [
|
|
33
|
+
area && /* @__PURE__ */ jsx("polygon", {
|
|
34
|
+
points: `0,${H} ${line} ${W},${H}`,
|
|
35
|
+
className: "fill-current/16"
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ jsx("polyline", {
|
|
38
|
+
points: line,
|
|
39
|
+
fill: "none",
|
|
40
|
+
strokeWidth: "1.5",
|
|
41
|
+
strokeLinejoin: "round",
|
|
42
|
+
strokeLinecap: "round",
|
|
43
|
+
vectorEffect: "non-scaling-stroke",
|
|
44
|
+
className: "stroke-current"
|
|
45
|
+
})
|
|
46
|
+
]
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
var Sparkline2 = forwardRef(({
|
|
50
|
+
values,
|
|
51
|
+
secondary,
|
|
52
|
+
max: maxProp,
|
|
53
|
+
label,
|
|
54
|
+
tone = "current",
|
|
55
|
+
secondaryTone = "muted",
|
|
56
|
+
area = false,
|
|
57
|
+
size: sizeProp,
|
|
58
|
+
className
|
|
59
|
+
}, ref) => {
|
|
60
|
+
const size = useSize2(sizeProp);
|
|
61
|
+
const max = maxProp ?? Math.max(...values, ...secondary ?? []);
|
|
62
|
+
const scale = max > 0 ? max : 1;
|
|
63
|
+
const drawn = values.length > 1;
|
|
64
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
65
|
+
ref,
|
|
66
|
+
role: "img",
|
|
67
|
+
"aria-label": label,
|
|
68
|
+
viewBox: `0 0 ${W} ${H}`,
|
|
69
|
+
preserveAspectRatio: "none",
|
|
70
|
+
className: cn2("block w-full shrink-0 overflow-visible", HEIGHT[size.variant], className),
|
|
71
|
+
children: [
|
|
72
|
+
secondary && secondary.length > 1 && /* @__PURE__ */ jsx(Series, {
|
|
73
|
+
series: secondary,
|
|
74
|
+
max: scale,
|
|
75
|
+
tone: secondaryTone,
|
|
76
|
+
area
|
|
77
|
+
}),
|
|
78
|
+
drawn ? /* @__PURE__ */ jsx(Series, {
|
|
79
|
+
series: values,
|
|
80
|
+
max: scale,
|
|
81
|
+
tone,
|
|
82
|
+
area
|
|
83
|
+
}) : /* @__PURE__ */ jsx("line", {
|
|
84
|
+
x1: "0",
|
|
85
|
+
y1: H,
|
|
86
|
+
x2: W,
|
|
87
|
+
y2: H,
|
|
88
|
+
strokeWidth: "1.5",
|
|
89
|
+
vectorEffect: "non-scaling-stroke",
|
|
90
|
+
className: "stroke-current text-border"
|
|
91
|
+
})
|
|
92
|
+
]
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
Sparkline2.displayName = "Sparkline";
|
|
96
|
+
var sparkline_default = Sparkline2;
|
|
97
|
+
|
|
98
|
+
export { Sparkline2, sparkline_default };
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
} from "./components-1ztgy933.js";
|
|
15
15
|
import {
|
|
16
16
|
slotRender2
|
|
17
|
-
} from "./components-
|
|
17
|
+
} from "./components-7wjkag2j.js";
|
|
18
18
|
import {
|
|
19
19
|
SizeScope2
|
|
20
|
-
} from "./components-
|
|
20
|
+
} from "./components-ffng9rpa.js";
|
|
21
21
|
import {
|
|
22
22
|
label_default
|
|
23
23
|
} from "./components-fpsfr52a.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./components-xnp09586.js";
|
|
23
23
|
import {
|
|
24
24
|
slotRender2
|
|
25
|
-
} from "./components-
|
|
25
|
+
} from "./components-7wjkag2j.js";
|
|
26
26
|
import {
|
|
27
27
|
spring2,
|
|
28
28
|
springEnter2
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./components-wwd093xg.js";
|
|
40
40
|
import {
|
|
41
41
|
SizeScope2
|
|
42
|
-
} from "./components-
|
|
42
|
+
} from "./components-ffng9rpa.js";
|
|
43
43
|
import {
|
|
44
44
|
useReduceMotion2
|
|
45
45
|
} from "./components-tz0axc0f.js";
|
|
@@ -50,19 +50,19 @@ import {
|
|
|
50
50
|
} from "./components-pva1wj1r.js";
|
|
51
51
|
import {
|
|
52
52
|
GOO_BLUR_RATIO2
|
|
53
|
-
} from "./components-
|
|
53
|
+
} from "./components-mp7en54n.js";
|
|
54
54
|
import {
|
|
55
55
|
GooFilter2
|
|
56
|
-
} from "./components-
|
|
56
|
+
} from "./components-313rmbxy.js";
|
|
57
57
|
import {
|
|
58
58
|
useIsoLayoutEffect2
|
|
59
59
|
} from "./components-v2j3jx89.js";
|
|
60
60
|
import {
|
|
61
61
|
FluidHoverHighlight2
|
|
62
|
-
} from "./components-
|
|
62
|
+
} from "./components-95kp19zn.js";
|
|
63
63
|
import {
|
|
64
64
|
FocusRing2
|
|
65
|
-
} from "./components-
|
|
65
|
+
} from "./components-v1m0xjbw.js";
|
|
66
66
|
import {
|
|
67
67
|
useRowFocus2
|
|
68
68
|
} from "./components-vcte8p75.js";
|
|
@@ -5,20 +5,20 @@ import {
|
|
|
5
5
|
} from "./components-bkwjvvkh.js";
|
|
6
6
|
import {
|
|
7
7
|
useMorph2
|
|
8
|
-
} from "./components-
|
|
8
|
+
} from "./components-mp7en54n.js";
|
|
9
|
+
import {
|
|
10
|
+
cn2
|
|
11
|
+
} from "./components-xnp09586.js";
|
|
9
12
|
import {
|
|
10
13
|
OverlayContext2,
|
|
11
14
|
useOverlayRoot2,
|
|
12
15
|
useOverlay2,
|
|
13
16
|
positionerProps2,
|
|
14
17
|
usePortalContainer2
|
|
15
|
-
} from "./components-
|
|
16
|
-
import {
|
|
17
|
-
cn2
|
|
18
|
-
} from "./components-xnp09586.js";
|
|
18
|
+
} from "./components-xvf8jcza.js";
|
|
19
19
|
import {
|
|
20
20
|
PopupSurface2
|
|
21
|
-
} from "./components-
|
|
21
|
+
} from "./components-90sfqz5t.js";
|
|
22
22
|
|
|
23
23
|
// components/overlays/preview-card/index.tsx
|
|
24
24
|
import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card";
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
} from "./components-pva1wj1r.js";
|
|
18
18
|
import {
|
|
19
19
|
GOO_BLUR_RATIO2
|
|
20
|
-
} from "./components-
|
|
20
|
+
} from "./components-mp7en54n.js";
|
|
21
21
|
import {
|
|
22
22
|
cn2
|
|
23
23
|
} from "./components-xnp09586.js";
|
|
24
24
|
import {
|
|
25
25
|
GooFilter2
|
|
26
|
-
} from "./components-
|
|
26
|
+
} from "./components-313rmbxy.js";
|
|
27
27
|
import {
|
|
28
28
|
useShape2
|
|
29
29
|
} from "./components-kxpcj2ry.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "./components-nwa2a9tq.js";
|
|
36
36
|
import {
|
|
37
37
|
Tooltip2
|
|
38
|
-
} from "./components-
|
|
38
|
+
} from "./components-rj4nnqkz.js";
|
|
39
39
|
|
|
40
40
|
// components/actions/copy/index.tsx
|
|
41
41
|
import { AnimatePresence, animate, motion, useMotionValue } from "motion/react";
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
columnsPopupClass,
|
|
16
16
|
ColumnsPanel,
|
|
17
17
|
PickerInput
|
|
18
|
-
} from "./components-
|
|
18
|
+
} from "./components-qkt4h7x4.js";
|
|
19
19
|
import {
|
|
20
20
|
pad,
|
|
21
21
|
TimeColumns
|
|
22
|
-
} from "./components-
|
|
22
|
+
} from "./components-rts2mggt.js";
|
|
23
23
|
|
|
24
24
|
// components/inputs/date-time/time-picker/index.tsx
|
|
25
25
|
import { set } from "date-fns";
|
|
@@ -22,36 +22,36 @@ import {
|
|
|
22
22
|
} from "./components-bkwjvvkh.js";
|
|
23
23
|
import {
|
|
24
24
|
useMorph2
|
|
25
|
-
} from "./components-
|
|
25
|
+
} from "./components-mp7en54n.js";
|
|
26
26
|
import {
|
|
27
27
|
OverlayContext2,
|
|
28
28
|
useOverlayRoot2,
|
|
29
29
|
useOverlay2,
|
|
30
30
|
positionerProps2
|
|
31
|
-
} from "./components-
|
|
31
|
+
} from "./components-xvf8jcza.js";
|
|
32
32
|
import {
|
|
33
33
|
PopupSurface2
|
|
34
|
-
} from "./components-
|
|
34
|
+
} from "./components-90sfqz5t.js";
|
|
35
35
|
import {
|
|
36
36
|
dividedColumns2
|
|
37
|
-
} from "./components-
|
|
37
|
+
} from "./components-s25rehbv.js";
|
|
38
38
|
import {
|
|
39
39
|
useIsMobile2
|
|
40
40
|
} from "./components-8wp8d8q1.js";
|
|
41
41
|
import {
|
|
42
42
|
SizeScope2
|
|
43
|
-
} from "./components-
|
|
43
|
+
} from "./components-ffng9rpa.js";
|
|
44
44
|
import {
|
|
45
45
|
button_default
|
|
46
|
-
} from "./components-
|
|
46
|
+
} from "./components-31pkxwfz.js";
|
|
47
47
|
import {
|
|
48
48
|
sheet_default
|
|
49
|
-
} from "./components-
|
|
49
|
+
} from "./components-dr5c27yd.js";
|
|
50
50
|
import {
|
|
51
51
|
InputAdornment2,
|
|
52
52
|
InputAction2,
|
|
53
53
|
input_default
|
|
54
|
-
} from "./components-
|
|
54
|
+
} from "./components-y07de1qv.js";
|
|
55
55
|
|
|
56
56
|
// components/inputs/date-time/picker-shell.tsx
|
|
57
57
|
import { Popover } from "@base-ui/react/popover";
|
|
@@ -12,38 +12,38 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
useMorphOrigin2,
|
|
14
14
|
useMorph2
|
|
15
|
-
} from "./components-
|
|
15
|
+
} from "./components-mp7en54n.js";
|
|
16
|
+
import {
|
|
17
|
+
cn2
|
|
18
|
+
} from "./components-xnp09586.js";
|
|
16
19
|
import {
|
|
17
20
|
positionerProps2,
|
|
18
21
|
usePortalContainer2
|
|
19
|
-
} from "./components-
|
|
22
|
+
} from "./components-xvf8jcza.js";
|
|
20
23
|
import {
|
|
21
24
|
POPUP_SHAPE2
|
|
22
25
|
} from "./components-mse06t0x.js";
|
|
23
|
-
import {
|
|
24
|
-
cn2
|
|
25
|
-
} from "./components-xnp09586.js";
|
|
26
26
|
import {
|
|
27
27
|
useShape2
|
|
28
28
|
} from "./components-kxpcj2ry.js";
|
|
29
29
|
import {
|
|
30
30
|
PopupSurface2
|
|
31
|
-
} from "./components-
|
|
31
|
+
} from "./components-90sfqz5t.js";
|
|
32
32
|
import {
|
|
33
33
|
useSize2
|
|
34
34
|
} from "./components-znspksk0.js";
|
|
35
35
|
import {
|
|
36
36
|
SizeScope2
|
|
37
|
-
} from "./components-
|
|
37
|
+
} from "./components-ffng9rpa.js";
|
|
38
38
|
import {
|
|
39
39
|
GooIndicator2
|
|
40
|
-
} from "./components-
|
|
40
|
+
} from "./components-gvwxswpr.js";
|
|
41
41
|
import {
|
|
42
42
|
FluidHoverHighlight2
|
|
43
|
-
} from "./components-
|
|
43
|
+
} from "./components-95kp19zn.js";
|
|
44
44
|
import {
|
|
45
45
|
FocusRing2
|
|
46
|
-
} from "./components-
|
|
46
|
+
} from "./components-v1m0xjbw.js";
|
|
47
47
|
import {
|
|
48
48
|
mergeRefs2,
|
|
49
49
|
useMergeRefs2
|
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
} from "./components-wwd093xg.js";
|
|
32
32
|
import {
|
|
33
33
|
SizeScope2
|
|
34
|
-
} from "./components-
|
|
34
|
+
} from "./components-ffng9rpa.js";
|
|
35
35
|
import {
|
|
36
36
|
FluidHoverHighlight2
|
|
37
|
-
} from "./components-
|
|
37
|
+
} from "./components-95kp19zn.js";
|
|
38
38
|
import {
|
|
39
39
|
button_default
|
|
40
|
-
} from "./components-
|
|
40
|
+
} from "./components-31pkxwfz.js";
|
|
41
41
|
import {
|
|
42
42
|
WeightLabel2
|
|
43
43
|
} from "./components-y09nr7fe.js";
|
|
@@ -5,25 +5,25 @@ import {
|
|
|
5
5
|
} from "./components-bkwjvvkh.js";
|
|
6
6
|
import {
|
|
7
7
|
useMorph2
|
|
8
|
-
} from "./components-
|
|
8
|
+
} from "./components-mp7en54n.js";
|
|
9
9
|
import {
|
|
10
10
|
cn2
|
|
11
11
|
} from "./components-xnp09586.js";
|
|
12
12
|
import {
|
|
13
13
|
MorphSurface2
|
|
14
|
-
} from "./components-
|
|
14
|
+
} from "./components-313rmbxy.js";
|
|
15
15
|
import {
|
|
16
16
|
useOverlayRoot2,
|
|
17
17
|
positionerProps2,
|
|
18
18
|
PortalContainer2,
|
|
19
19
|
usePortalContainer2
|
|
20
|
-
} from "./components-
|
|
20
|
+
} from "./components-xvf8jcza.js";
|
|
21
21
|
import {
|
|
22
22
|
useShape2
|
|
23
23
|
} from "./components-kxpcj2ry.js";
|
|
24
24
|
import {
|
|
25
25
|
slotRender2
|
|
26
|
-
} from "./components-
|
|
26
|
+
} from "./components-7wjkag2j.js";
|
|
27
27
|
|
|
28
28
|
// components/overlays/tooltip/index.tsx
|
|
29
29
|
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
@@ -52,12 +52,20 @@ function TooltipPortalContainer2({ value, children }) {
|
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
var TooltipGroupContext = createContext(false);
|
|
55
|
-
function TooltipProvider2({
|
|
55
|
+
function TooltipProvider2({
|
|
56
|
+
children,
|
|
57
|
+
delay,
|
|
58
|
+
delayDuration,
|
|
59
|
+
skipDelayDuration = 300,
|
|
60
|
+
timeout,
|
|
61
|
+
closeDelay
|
|
62
|
+
}) {
|
|
56
63
|
return /* @__PURE__ */ jsx(TooltipGroupContext.Provider, {
|
|
57
64
|
value: true,
|
|
58
65
|
children: /* @__PURE__ */ jsx(TooltipPrimitive.Provider, {
|
|
59
66
|
delay: delay ?? delayDuration ?? DEFAULT_DELAY,
|
|
60
|
-
timeout: skipDelayDuration,
|
|
67
|
+
timeout: timeout ?? skipDelayDuration,
|
|
68
|
+
closeDelay,
|
|
61
69
|
children
|
|
62
70
|
})
|
|
63
71
|
});
|
|
@@ -74,6 +82,7 @@ function TooltipRoot({
|
|
|
74
82
|
defaultOpen,
|
|
75
83
|
onOpenChange,
|
|
76
84
|
delayDuration,
|
|
85
|
+
closeDelay,
|
|
77
86
|
followCursor,
|
|
78
87
|
children
|
|
79
88
|
}) {
|
|
@@ -86,7 +95,7 @@ function TooltipRoot({
|
|
|
86
95
|
if (held && followCursor)
|
|
87
96
|
followOffset.set(0);
|
|
88
97
|
}, [held, followCursor, followOffset]);
|
|
89
|
-
const state = useMemo(() => ({ open, origin: root.state.origin, handedOff, delayDuration, followCursor, followOffset }), [open, root.state.origin, delayDuration, followCursor, followOffset]);
|
|
98
|
+
const state = useMemo(() => ({ open, origin: root.state.origin, handedOff, delayDuration, closeDelay, followCursor, followOffset }), [open, root.state.origin, delayDuration, closeDelay, followCursor, followOffset]);
|
|
90
99
|
const tooltip = /* @__PURE__ */ jsx(TooltipStateContext.Provider, {
|
|
91
100
|
value: state,
|
|
92
101
|
children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, {
|
|
@@ -106,14 +115,20 @@ function TooltipRoot({
|
|
|
106
115
|
});
|
|
107
116
|
}
|
|
108
117
|
var TooltipTrigger2 = forwardRef(({ render, asChild, children, onPointerMove, ...props }, ref) => {
|
|
109
|
-
const { delayDuration, followCursor, followOffset } = useTooltipState("Tooltip.Trigger");
|
|
118
|
+
const { delayDuration, closeDelay, followCursor, followOffset } = useTooltipState("Tooltip.Trigger");
|
|
110
119
|
const el = slotRender2(render, asChild, children);
|
|
111
120
|
const follow = (event) => {
|
|
112
121
|
onPointerMove?.(event);
|
|
113
122
|
const rect = event.currentTarget.getBoundingClientRect();
|
|
114
123
|
followOffset.set(followCursor === "y" ? event.clientY - (rect.top + rect.height / 2) : event.clientX - (rect.left + rect.width / 2));
|
|
115
124
|
};
|
|
116
|
-
const shared = {
|
|
125
|
+
const shared = {
|
|
126
|
+
ref,
|
|
127
|
+
delay: delayDuration,
|
|
128
|
+
closeDelay,
|
|
129
|
+
onPointerMove: followCursor ? follow : onPointerMove,
|
|
130
|
+
...props
|
|
131
|
+
};
|
|
117
132
|
return el ? /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, {
|
|
118
133
|
...shared,
|
|
119
134
|
render: el
|
|
@@ -130,6 +145,10 @@ var TooltipContent2 = forwardRef(({
|
|
|
130
145
|
side = "top",
|
|
131
146
|
align,
|
|
132
147
|
sideOffset = 8,
|
|
148
|
+
alignOffset,
|
|
149
|
+
collisionPadding,
|
|
150
|
+
collisionBoundary,
|
|
151
|
+
positionerClassName,
|
|
133
152
|
container,
|
|
134
153
|
className,
|
|
135
154
|
contentClassName,
|
|
@@ -149,7 +168,7 @@ var TooltipContent2 = forwardRef(({
|
|
|
149
168
|
instant: (popup) => handedOff.current || popup.dataset.instant === "delay"
|
|
150
169
|
});
|
|
151
170
|
const popupRef = useMergeRefs2(ref, morph.popupRef);
|
|
152
|
-
const positioner = positionerProps2({ side, align, sideOffset, effect }, { side: "top", align: "center", sideOffset: 8 });
|
|
171
|
+
const positioner = positionerProps2({ side, align, sideOffset, alignOffset, collisionPadding, collisionBoundary, positionerClassName, effect }, { side: "top", align: "center", sideOffset: 8 });
|
|
153
172
|
const label = render ? children === undefined ? render : cloneElement(render, undefined, children) : slotRender2(undefined, asChild, children) ?? children;
|
|
154
173
|
return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, {
|
|
155
174
|
container: portal,
|
|
@@ -182,8 +201,13 @@ var Tooltip2 = Object.assign(function Tooltip({
|
|
|
182
201
|
align,
|
|
183
202
|
sideOffset,
|
|
184
203
|
container,
|
|
204
|
+
alignOffset,
|
|
205
|
+
collisionPadding,
|
|
206
|
+
collisionBoundary,
|
|
207
|
+
positionerClassName,
|
|
185
208
|
delay,
|
|
186
209
|
delayDuration,
|
|
210
|
+
closeDelay,
|
|
187
211
|
className,
|
|
188
212
|
contentClassName,
|
|
189
213
|
open,
|
|
@@ -194,7 +218,7 @@ var Tooltip2 = Object.assign(function Tooltip({
|
|
|
194
218
|
effect,
|
|
195
219
|
tier
|
|
196
220
|
}) {
|
|
197
|
-
const root = { open, defaultOpen, onOpenChange, delayDuration: delay ?? delayDuration, followCursor };
|
|
221
|
+
const root = { open, defaultOpen, onOpenChange, delayDuration: delay ?? delayDuration, closeDelay, followCursor };
|
|
198
222
|
if (content === undefined)
|
|
199
223
|
return /* @__PURE__ */ jsx(TooltipRoot, {
|
|
200
224
|
...root,
|
|
@@ -210,6 +234,10 @@ var Tooltip2 = Object.assign(function Tooltip({
|
|
|
210
234
|
side,
|
|
211
235
|
align,
|
|
212
236
|
sideOffset,
|
|
237
|
+
alignOffset,
|
|
238
|
+
collisionPadding,
|
|
239
|
+
collisionBoundary,
|
|
240
|
+
positionerClassName,
|
|
213
241
|
container,
|
|
214
242
|
className,
|
|
215
243
|
contentClassName,
|