@justanarthur/modo-ui 0.1.0 → 0.3.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 +18 -15
- package/dist/blocks/sidebar-app/index.d.ts +1 -1
- package/dist/blocks/sidebar-app/index.js +28 -31
- package/dist/components/{inputs → AI}/input-message/index.d.ts +1 -1
- package/dist/components/AI/input-message/index.js +25 -0
- package/dist/components/{thinking-indicator → AI/thinking-indicator}/index.d.ts +1 -1
- package/dist/components/AI/thinking-indicator/index.js +13 -0
- package/dist/components/{navigation/accordion → accordion}/index.d.ts +1 -1
- package/dist/components/accordion/index.js +28 -0
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/badge/index.js +12 -14
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.js +10 -12
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/card/index.js +38 -40
- package/dist/components/{inputs/input-copy → copy}/index.d.ts +7 -7
- package/dist/components/copy/index.js +16 -0
- package/dist/components/inputs/checkbox/index.d.ts +62 -0
- package/dist/components/inputs/checkbox/index.js +22 -0
- package/dist/components/inputs/color-picker/index.d.ts +1 -1
- package/dist/components/inputs/color-picker/index.js +31 -33
- package/dist/components/inputs/combobox/index.d.ts +2 -2
- package/dist/components/inputs/combobox/index.js +31 -34
- package/dist/components/inputs/date-time/calendar/index.d.ts +1 -1
- package/dist/components/inputs/date-time/calendar/index.js +14 -16
- package/dist/components/inputs/date-time/date-picker/index.d.ts +1 -1
- package/dist/components/inputs/date-time/date-picker/index.js +28 -30
- package/dist/components/inputs/date-time/date-range-picker/index.d.ts +1 -1
- package/dist/components/inputs/date-time/date-range-picker/index.js +27 -29
- package/dist/components/inputs/date-time/duration-picker/index.d.ts +1 -1
- package/dist/components/inputs/date-time/duration-picker/index.js +27 -29
- package/dist/components/inputs/date-time/month-picker/index.d.ts +1 -1
- package/dist/components/inputs/date-time/month-picker/index.js +26 -28
- package/dist/components/inputs/date-time/time-picker/index.d.ts +1 -1
- package/dist/components/inputs/date-time/time-picker/index.js +27 -29
- package/dist/components/inputs/input/index.d.ts +1 -1
- package/dist/components/inputs/input/index.js +15 -16
- package/dist/components/inputs/{radio-group → radio}/index.d.ts +30 -30
- package/dist/components/inputs/radio/index.js +21 -0
- package/dist/components/inputs/search/index.d.ts +1 -1
- package/dist/components/inputs/search/index.js +21 -24
- package/dist/components/inputs/select/index.d.ts +1 -1
- package/dist/components/inputs/select/index.js +30 -33
- package/dist/components/inputs/slider/index.d.ts +1 -1
- package/dist/components/inputs/slider/index.js +10 -12
- package/dist/components/inputs/switch/index.d.ts +27 -6
- package/dist/components/inputs/switch/index.js +17 -12
- package/dist/components/navigation/sidebar/index.d.ts +3 -3
- package/dist/components/navigation/sidebar/index.js +95 -97
- package/dist/components/navigation/tabs/index.d.ts +1 -1
- package/dist/components/navigation/tabs/index.js +19 -21
- package/dist/components/navigation/tabs-subtle/index.d.ts +1 -1
- package/dist/components/navigation/tabs-subtle/index.js +17 -19
- package/dist/components/overlays/alert-dialog/index.d.ts +2 -2
- package/dist/components/overlays/alert-dialog/index.js +18 -20
- package/dist/components/overlays/command/index.d.ts +1 -1
- package/dist/components/overlays/command/index.js +32 -35
- package/dist/components/overlays/context-menu/index.d.ts +1 -1
- package/dist/components/overlays/context-menu/index.js +25 -28
- package/dist/components/overlays/dialog/index.d.ts +1 -1
- package/dist/components/overlays/dialog/index.js +33 -35
- package/dist/components/overlays/dropdown/index.d.ts +3 -3
- package/dist/components/overlays/dropdown/index.js +40 -43
- package/dist/components/overlays/popover/index.d.ts +1 -1
- package/dist/components/overlays/popover/index.js +22 -24
- package/dist/components/overlays/preview-card/index.d.ts +1 -1
- package/dist/components/overlays/preview-card/index.js +15 -17
- package/dist/components/overlays/sheet/index.d.ts +1 -1
- package/dist/components/overlays/sheet/index.js +20 -22
- package/dist/components/overlays/toast/index.d.ts +1 -1
- package/dist/components/overlays/toast/index.js +17 -19
- package/dist/components/overlays/tooltip/index.d.ts +1 -1
- package/dist/components/overlays/tooltip/index.js +13 -15
- package/dist/components/table/index.d.ts +1 -1
- package/dist/components/table/index.js +22 -24
- package/dist/index.d.ts +828 -795
- package/dist/index.js +509 -508
- package/dist/preset.d.ts +1 -1
- package/dist/preset.js +5 -5
- package/dist/primitives/code/index.d.ts +1 -1
- package/dist/primitives/code/index.js +8 -9
- package/dist/primitives/craft/index.d.ts +1 -1
- package/dist/primitives/craft/index.js +6 -8
- package/dist/primitives/fluid-hover/index.d.ts +1 -1
- package/dist/primitives/fluid-hover/index.js +18 -20
- package/dist/primitives/morph/index.d.ts +3 -3
- package/dist/primitives/morph/index.js +15 -17
- package/dist/primitives/motion/index.d.ts +1 -1
- package/dist/primitives/motion/index.js +15 -16
- package/dist/primitives/scroll-area/index.d.ts +1 -1
- package/dist/primitives/scroll-area/index.js +8 -9
- package/dist/primitives/sizes/index.d.ts +3 -3
- package/dist/primitives/sizes/index.js +17 -18
- package/dist/primitives/surface/index.d.ts +1 -1
- package/dist/primitives/surface/index.js +11 -12
- package/dist/shared/{components-jxgznftn.js → components-0q0sqfh4.js} +16 -16
- package/dist/shared/{components-x3rz4cyn.js → components-0sn7ypjw.js} +14 -14
- package/dist/shared/components-1434p1mh.js +123 -0
- package/dist/shared/{components-vc1k7yv2.js → components-1v7rxytx.js} +3 -3
- package/dist/shared/{components-6phwsry6.js → components-1z6tdadk.js} +25 -25
- package/dist/shared/{components-5zry9te1.js → components-27nnvrwe.js} +27 -27
- package/dist/shared/{components-ess3ch6w.js → components-2dxkv6zm.js} +23 -23
- package/dist/shared/{components-s5pkbjx1.js → components-2n3whx7z.js} +56 -56
- package/dist/shared/{components-v7es8aan.js → components-2nhgyh31.js} +15 -15
- package/dist/shared/{components-6t6nr33r.js → components-39jq9va1.js} +26 -26
- package/dist/shared/{components-4hh0gm0v.js → components-39vmfq9s.js} +61 -61
- package/dist/shared/{components-zx2hr57f.js → components-3fbbvq5j.js} +15 -15
- package/dist/shared/{components-6y1th6k4.js → components-3mkepka5.js} +31 -31
- package/dist/shared/{components-e46kf6cp.js → components-59efxjd9.js} +8 -8
- package/dist/shared/{components-rc63qsy6.js → components-5xc2j8jz.js} +10 -10
- package/dist/shared/{components-hzfp4tjb.js → components-7btqt08d.js} +42 -42
- package/dist/shared/{components-9p8s8n5q.js → components-7r3etddy.js} +22 -22
- package/dist/shared/{components-j65qt1mq.js → components-8ey44d79.js} +101 -101
- package/dist/shared/{components-hjkrv00c.js → components-8snj490h.js} +120 -23
- package/dist/shared/{components-40j34hdb.js → components-a86dytt0.js} +116 -116
- package/dist/shared/{components-tm88ghva.js → components-ar66gnt0.js} +58 -58
- package/dist/shared/{components-5pkcfprd.js → components-b2wyq2cq.js} +22 -22
- package/dist/shared/{components-vktws5r6.js → components-b3c5et5b.js} +73 -73
- package/dist/shared/{components-4xxtggzp.js → components-bshdmf75.js} +18 -18
- package/dist/shared/{components-kf2ehztc.js → components-chacnk61.js} +16 -16
- package/dist/shared/{components-7zp99w5d.js → components-cv16mryv.js} +2 -2
- package/dist/shared/{components-gjfrycb5.js → components-d6xtjht3.js} +66 -69
- package/dist/shared/{components-aaq3yk4f.js → components-dk0gjr5a.js} +43 -43
- package/dist/shared/{components-0f0as45n.js → components-ezxhrmer.js} +2 -2
- package/dist/shared/{components-7gv95yfy.js → components-frw34b65.js} +83 -83
- package/dist/shared/{components-s3yfvfkr.js → components-gc5vtq2f.js} +42 -42
- package/dist/shared/components-gf5s6ap9.js +42 -0
- package/dist/shared/{components-7cqq1sqy.js → components-gvr9w41t.js} +40 -40
- package/dist/shared/{components-x2xyckd5.js → components-gz8zf3ec.js} +20 -20
- package/dist/shared/{components-ed7cmssr.js → components-hawvy2qz.js} +18 -18
- package/dist/shared/{components-7nww01w4.js → components-hqeq3w9q.js} +34 -34
- package/dist/shared/{components-zvb11ker.js → components-hw9yk32z.js} +47 -47
- package/dist/shared/{components-y3cqdrgy.js → components-hyq23phv.js} +73 -54
- package/dist/shared/{components-bf2d9k02.js → components-jbbmdr74.js} +94 -94
- package/dist/shared/{components-vb033rns.js → components-jjw69c4c.js} +6 -6
- package/dist/shared/{components-r2gke5p6.js → components-jthe1pwb.js} +125 -125
- package/dist/shared/{components-tad5h7ta.js → components-jwst3vtj.js} +48 -48
- package/dist/shared/{components-xszag63d.js → components-k809mbn0.js} +12 -12
- package/dist/shared/{components-r22vtgqc.js → components-kvr7f9hy.js} +11 -11
- package/dist/shared/{components-r4jt6hgd.js → components-mjthm1kf.js} +6 -6
- package/dist/shared/{components-nn6xezy2.js → components-nb87fjy4.js} +226 -226
- package/dist/shared/{components-gndm6am4.js → components-ng72k97e.js} +17 -17
- package/dist/shared/{components-54nf2x99.js → components-pbmqctfa.js} +52 -45
- package/dist/shared/{components-peg09pzs.js → components-q5xj5c16.js} +11 -11
- package/dist/shared/{components-taxmgbnh.js → components-re6rs21k.js} +17 -17
- package/dist/shared/{components-r43mqnd6.js → components-rr7a6ja9.js} +46 -46
- package/dist/shared/{components-p2vmyfe1.js → components-s083f38z.js} +43 -43
- package/dist/shared/{components-bkvb6nem.js → components-s2bz1xpk.js} +11 -11
- package/dist/shared/components-ta7shw28.js +19 -0
- package/dist/shared/components-vc7vq5nz.js +32 -0
- package/dist/shared/{components-6hzwfmfd.js → components-vfbhxf5r.js} +8 -8
- package/dist/shared/{components-8hk9ve3r.js → components-wvp1m52g.js} +57 -57
- package/dist/shared/{components-brnzrp2t.js → components-xxvdw7k1.js} +41 -41
- package/dist/shared/{components-61ckf42z.js → components-zfnmn5d4.js} +64 -64
- package/dist/shared/{components-m5br529r.js → components-zrkzcayz.js} +2 -2
- package/dist/shared/{components-csxz9f52.js → components-zx6b6yby.js} +4 -4
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/dist/components/inputs/checkbox-group/index.d.ts +0 -50
- package/dist/components/inputs/checkbox-group/index.js +0 -23
- package/dist/components/inputs/input-copy/index.js +0 -18
- package/dist/components/inputs/input-message/index.js +0 -27
- package/dist/components/inputs/radio-group/index.js +0 -22
- package/dist/components/navigation/accordion/index.js +0 -30
- package/dist/components/thinking-indicator/index.js +0 -15
- package/dist/shared/components-74c20v2f.js +0 -32
- package/dist/shared/components-8hzbsfbd.js +0 -123
- package/dist/shared/components-dphg9gjr.js +0 -42
- package/dist/shared/components-kpbcms10.js +0 -9
- /package/dist/shared/{components-5vxtcp88.js → components-3ky44908.js} +0 -0
- /package/dist/shared/{components-4xxddc44.js → components-c6s6b43g.js} +0 -0
- /package/dist/shared/{components-nnnd2xef.js → components-men63rwj.js} +0 -0
- /package/dist/shared/{components-de8xsm9y.js → components-mhd39z7x.js} +0 -0
- /package/dist/shared/{components-dg0w8g5p.js → components-n7mjr357.js} +0 -0
- /package/dist/shared/{components-jw16snbn.js → components-vynjtrk6.js} +0 -0
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./components-
|
|
2
|
+
useReduceMotion
|
|
3
|
+
} from "./components-men63rwj.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./components-
|
|
5
|
+
GooFilter
|
|
6
|
+
} from "./components-0q0sqfh4.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
useSurface
|
|
12
|
-
} from "./components-csxz9f52.js";
|
|
8
|
+
GOO_BLUR_RATIO,
|
|
9
|
+
holdExit
|
|
10
|
+
} from "./components-hqeq3w9q.js";
|
|
13
11
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./components-
|
|
12
|
+
cn2
|
|
13
|
+
} from "./components-ezxhrmer.js";
|
|
16
14
|
import {
|
|
17
15
|
useShape
|
|
18
|
-
} from "./components-
|
|
16
|
+
} from "./components-cv16mryv.js";
|
|
19
17
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./components-7nww01w4.js";
|
|
18
|
+
sizeMap2
|
|
19
|
+
} from "./components-0sn7ypjw.js";
|
|
23
20
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./components-
|
|
21
|
+
slotRender
|
|
22
|
+
} from "./components-3ky44908.js";
|
|
26
23
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
SURFACE_BG,
|
|
25
|
+
SURFACE_SHADOW,
|
|
26
|
+
useSurface2,
|
|
27
|
+
SurfaceProvider2
|
|
28
|
+
} from "./components-zx6b6yby.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./components-
|
|
30
|
+
button_default
|
|
31
|
+
} from "./components-b2wyq2cq.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./components-
|
|
33
|
+
spring2
|
|
34
|
+
} from "./components-1v7rxytx.js";
|
|
35
35
|
|
|
36
36
|
// components/overlays/toast/index.tsx
|
|
37
37
|
import { Toast as ToastPrimitive } from "@base-ui/react/toast";
|
|
@@ -74,7 +74,7 @@ var VIEWPORT = {
|
|
|
74
74
|
"bottom-center": "bottom-4 left-1/2 -translate-x-1/2 flex-col-reverse items-center",
|
|
75
75
|
"bottom-right": "bottom-4 right-4 flex-col-reverse items-end"
|
|
76
76
|
};
|
|
77
|
-
var PILL =
|
|
77
|
+
var PILL = sizeMap2.default.controlHeight;
|
|
78
78
|
var BLUR = PILL / 2 * GOO_BLUR_RATIO;
|
|
79
79
|
var SNAP = { duration: 0 };
|
|
80
80
|
var AUTO_EXPAND_MS = 150;
|
|
@@ -83,7 +83,7 @@ var ToastSettings = createContext({
|
|
|
83
83
|
position: "top-right",
|
|
84
84
|
timeout: 6000
|
|
85
85
|
});
|
|
86
|
-
function
|
|
86
|
+
function useToast2() {
|
|
87
87
|
const manager = ToastPrimitive.useToastManager();
|
|
88
88
|
return useMemo(() => {
|
|
89
89
|
const options = ({ action, ...rest }, type) => ({
|
|
@@ -112,16 +112,16 @@ function Shape({ box, className, shapeRef }) {
|
|
|
112
112
|
return /* @__PURE__ */ jsx(motion.div, {
|
|
113
113
|
ref: shapeRef,
|
|
114
114
|
"aria-hidden": true,
|
|
115
|
-
className:
|
|
115
|
+
className: cn2("pointer-events-none absolute top-0 left-0", className),
|
|
116
116
|
initial: false,
|
|
117
117
|
animate: { ...box },
|
|
118
|
-
transition: reduced ? SNAP :
|
|
118
|
+
transition: reduced ? SNAP : spring2.slow
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
function ToastItem({ toast }) {
|
|
122
122
|
const { position, timeout } = useContext(ToastSettings);
|
|
123
123
|
const shape = useShape();
|
|
124
|
-
const level = Math.min(
|
|
124
|
+
const level = Math.min(useSurface2() + 2, 8);
|
|
125
125
|
const gooId = `toast-goo-${useId().replace(/:/g, "")}`;
|
|
126
126
|
const type = toast.type ?? "info";
|
|
127
127
|
const Icon = ICONS[type];
|
|
@@ -175,7 +175,7 @@ function ToastItem({ toast }) {
|
|
|
175
175
|
const bodyBox = { x: 0, y: top ? PILL : 0, width: size.width, height: bodyHeight };
|
|
176
176
|
const reduced = useReduceMotion();
|
|
177
177
|
const away = reduced ? { opacity: 0 } : { opacity: 0, y: top ? -6 : 6, scale: 0.95 };
|
|
178
|
-
const move = reduced ? SNAP :
|
|
178
|
+
const move = reduced ? SNAP : spring2.slow;
|
|
179
179
|
return /* @__PURE__ */ jsxs(ToastPrimitive.Root, {
|
|
180
180
|
ref: root,
|
|
181
181
|
toast,
|
|
@@ -185,7 +185,7 @@ function ToastItem({ toast }) {
|
|
|
185
185
|
render: /* @__PURE__ */ jsx(motion.div, {
|
|
186
186
|
initial: { ...away, height: PILL },
|
|
187
187
|
animate: ending ? { ...away, height } : { opacity: 1, y: 0, scale: 1, height },
|
|
188
|
-
transition: ending ?
|
|
188
|
+
transition: ending ? spring2.moderate.exit : { ...spring2.moderate, height: move }
|
|
189
189
|
}),
|
|
190
190
|
className: "relative w-[min(22rem,calc(100vw-2rem))] select-none outline-none [translate:var(--toast-swipe-movement-x)_var(--toast-swipe-movement-y)]",
|
|
191
191
|
children: [
|
|
@@ -195,11 +195,11 @@ function ToastItem({ toast }) {
|
|
|
195
195
|
}),
|
|
196
196
|
/* @__PURE__ */ jsx(Shape, {
|
|
197
197
|
box: pill,
|
|
198
|
-
className:
|
|
198
|
+
className: cn2("rounded-full", SURFACE_SHADOW[3])
|
|
199
199
|
}),
|
|
200
200
|
hasBody && /* @__PURE__ */ jsx(Shape, {
|
|
201
201
|
box: bodyBox,
|
|
202
|
-
className:
|
|
202
|
+
className: cn2(shape.container, SURFACE_SHADOW[3])
|
|
203
203
|
}),
|
|
204
204
|
/* @__PURE__ */ jsxs("div", {
|
|
205
205
|
"aria-hidden": true,
|
|
@@ -208,16 +208,16 @@ function ToastItem({ toast }) {
|
|
|
208
208
|
children: [
|
|
209
209
|
/* @__PURE__ */ jsx(Shape, {
|
|
210
210
|
box: pill,
|
|
211
|
-
className:
|
|
211
|
+
className: cn2("rounded-full", SURFACE_BG[level])
|
|
212
212
|
}),
|
|
213
213
|
hasBody && /* @__PURE__ */ jsx(Shape, {
|
|
214
214
|
box: bodyBox,
|
|
215
215
|
shapeRef: bodyShape,
|
|
216
|
-
className:
|
|
216
|
+
className: cn2(shape.container, SURFACE_BG[level])
|
|
217
217
|
})
|
|
218
218
|
]
|
|
219
219
|
}),
|
|
220
|
-
/* @__PURE__ */ jsxs(
|
|
220
|
+
/* @__PURE__ */ jsxs(SurfaceProvider2, {
|
|
221
221
|
value: level,
|
|
222
222
|
children: [
|
|
223
223
|
/* @__PURE__ */ jsx(motion.div, {
|
|
@@ -235,11 +235,11 @@ function ToastItem({ toast }) {
|
|
|
235
235
|
className: "inline-flex items-center gap-2",
|
|
236
236
|
initial: { opacity: 0, filter: "blur(4px)" },
|
|
237
237
|
animate: { opacity: 1, filter: "blur(0px)" },
|
|
238
|
-
exit: { opacity: 0, filter: "blur(4px)", transition:
|
|
239
|
-
transition:
|
|
238
|
+
exit: { opacity: 0, filter: "blur(4px)", transition: spring2.moderate.exit },
|
|
239
|
+
transition: spring2.moderate,
|
|
240
240
|
children: [
|
|
241
241
|
/* @__PURE__ */ jsx("span", {
|
|
242
|
-
className:
|
|
242
|
+
className: cn2("flex size-6 items-center justify-center rounded-full", TONES[type]),
|
|
243
243
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
244
244
|
size: 14,
|
|
245
245
|
strokeWidth: 2.5,
|
|
@@ -259,10 +259,10 @@ function ToastItem({ toast }) {
|
|
|
259
259
|
className: "absolute top-0 left-0 w-full overflow-hidden",
|
|
260
260
|
initial: false,
|
|
261
261
|
animate: { y: bodyBox.y, height: bodyHeight, opacity: expanded ? 1 : 0 },
|
|
262
|
-
transition: { ...move, opacity: expanded ?
|
|
262
|
+
transition: { ...move, opacity: expanded ? spring2.slow : spring2.slow.exit },
|
|
263
263
|
children: /* @__PURE__ */ jsxs("div", {
|
|
264
264
|
ref: body,
|
|
265
|
-
className:
|
|
265
|
+
className: cn2("flex flex-col items-start gap-3 p-4", top ? "pt-6" : "pb-6"),
|
|
266
266
|
children: [
|
|
267
267
|
/* @__PURE__ */ jsx(ToastPrimitive.Description, {
|
|
268
268
|
className: "text-caption text-muted-foreground"
|
|
@@ -287,7 +287,7 @@ function ToastList() {
|
|
|
287
287
|
toast
|
|
288
288
|
}, toast.id));
|
|
289
289
|
}
|
|
290
|
-
var
|
|
290
|
+
var ToastTrigger2 = forwardRef(({
|
|
291
291
|
title,
|
|
292
292
|
description,
|
|
293
293
|
type,
|
|
@@ -302,7 +302,7 @@ var ToastTrigger = forwardRef(({
|
|
|
302
302
|
onClick,
|
|
303
303
|
...props
|
|
304
304
|
}, ref) => {
|
|
305
|
-
const toast =
|
|
305
|
+
const toast = useToast2();
|
|
306
306
|
const el = slotRender(render, asChild, children);
|
|
307
307
|
const press = (event) => {
|
|
308
308
|
onClick?.(event);
|
|
@@ -320,8 +320,8 @@ var ToastTrigger = forwardRef(({
|
|
|
320
320
|
children
|
|
321
321
|
});
|
|
322
322
|
});
|
|
323
|
-
|
|
324
|
-
function
|
|
323
|
+
ToastTrigger2.displayName = "ToastTrigger";
|
|
324
|
+
function Toast2({ position = "top-right", limit = 3, timeout = 6000, children }) {
|
|
325
325
|
const settings = useMemo(() => ({ position, timeout }), [position, timeout]);
|
|
326
326
|
return /* @__PURE__ */ jsx(ToastPrimitive.Provider, {
|
|
327
327
|
limit,
|
|
@@ -332,7 +332,7 @@ function Toast({ position = "top-right", limit = 3, timeout = 6000, children })
|
|
|
332
332
|
children,
|
|
333
333
|
/* @__PURE__ */ jsx(ToastPrimitive.Portal, {
|
|
334
334
|
children: /* @__PURE__ */ jsx(ToastPrimitive.Viewport, {
|
|
335
|
-
className:
|
|
335
|
+
className: cn2("fixed z-[60] flex flex-col gap-2 outline-none", VIEWPORT[position]),
|
|
336
336
|
children: /* @__PURE__ */ jsx(ToastList, {})
|
|
337
337
|
})
|
|
338
338
|
})
|
|
@@ -340,7 +340,7 @@ function Toast({ position = "top-right", limit = 3, timeout = 6000, children })
|
|
|
340
340
|
})
|
|
341
341
|
});
|
|
342
342
|
}
|
|
343
|
-
|
|
344
|
-
var toast_default =
|
|
343
|
+
Toast2.Trigger = ToastTrigger2;
|
|
344
|
+
var toast_default = Toast2;
|
|
345
345
|
|
|
346
|
-
export {
|
|
346
|
+
export { useToast2, ToastTrigger2, Toast2, toast_default };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
calendar_default
|
|
3
|
-
} from "./components-6phwsry6.js";
|
|
4
|
-
import {
|
|
5
|
-
PickerInput,
|
|
6
|
-
PickerShell
|
|
7
|
-
} from "./components-hzfp4tjb.js";
|
|
8
1
|
import {
|
|
9
2
|
defaultLocale,
|
|
10
3
|
parseDateText
|
|
11
|
-
} from "./components-
|
|
4
|
+
} from "./components-gz8zf3ec.js";
|
|
12
5
|
import {
|
|
13
6
|
useControllableState
|
|
14
|
-
} from "./components-
|
|
7
|
+
} from "./components-n7mjr357.js";
|
|
8
|
+
import {
|
|
9
|
+
calendar_default
|
|
10
|
+
} from "./components-1z6tdadk.js";
|
|
11
|
+
import {
|
|
12
|
+
PickerShell,
|
|
13
|
+
PickerInput
|
|
14
|
+
} from "./components-7btqt08d.js";
|
|
15
15
|
|
|
16
16
|
// components/inputs/date-time/date-range-picker/index.tsx
|
|
17
17
|
import { endOfMonth, format } from "date-fns";
|
|
18
18
|
import { useRef, useState } from "react";
|
|
19
19
|
import { dateMatchModifiers } from "react-day-picker";
|
|
20
20
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
21
|
-
function
|
|
21
|
+
function DateRangePicker2({
|
|
22
22
|
value: valueProp,
|
|
23
23
|
defaultValue = null,
|
|
24
24
|
onValueChange,
|
|
@@ -136,6 +136,6 @@ function DateRangePicker({
|
|
|
136
136
|
})
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
var date_range_picker_default =
|
|
139
|
+
var date_range_picker_default = DateRangePicker2;
|
|
140
140
|
|
|
141
|
-
export {
|
|
141
|
+
export { DateRangePicker2, date_range_picker_default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./components-
|
|
2
|
+
cn2
|
|
3
|
+
} from "./components-ezxhrmer.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./components-
|
|
5
|
+
GooIndicator
|
|
6
|
+
} from "./components-chacnk61.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./components-
|
|
8
|
+
spring2
|
|
9
|
+
} from "./components-1v7rxytx.js";
|
|
10
10
|
|
|
11
11
|
// lib/fluid-hover-highlight.tsx
|
|
12
12
|
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
|
@@ -20,7 +20,7 @@ function resolveHighlightSource(props) {
|
|
|
20
20
|
}
|
|
21
21
|
return { rect: props.rect, session: props.session };
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function FluidHoverHighlight2(props) {
|
|
24
24
|
const { from, className, transition } = props;
|
|
25
25
|
const { rect, session } = resolveHighlightSource(props);
|
|
26
26
|
const reduceMotion = useReducedMotion() ?? false;
|
|
@@ -30,16 +30,16 @@ function FluidHoverHighlight(props) {
|
|
|
30
30
|
className: "pointer-events-none absolute top-0 left-0",
|
|
31
31
|
initial: { opacity: 0 },
|
|
32
32
|
animate: { opacity: 1 },
|
|
33
|
-
exit: { opacity: 0, transition:
|
|
33
|
+
exit: { opacity: 0, transition: spring2.fast.exit },
|
|
34
34
|
transition: fade,
|
|
35
35
|
children: /* @__PURE__ */ jsx(GooIndicator, {
|
|
36
36
|
rect,
|
|
37
37
|
from,
|
|
38
|
-
className:
|
|
39
|
-
transition: transition === false || reduceMotion ? false : transition ??
|
|
38
|
+
className: cn2("bg-hover", className),
|
|
39
|
+
transition: transition === false || reduceMotion ? false : transition ?? spring2.fast
|
|
40
40
|
})
|
|
41
41
|
}, session)
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
export {
|
|
45
|
+
export { FluidHoverHighlight2 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./components-
|
|
2
|
+
fieldLabel,
|
|
3
|
+
ScrollColumn
|
|
4
|
+
} from "./components-gz8zf3ec.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./components-
|
|
6
|
+
cn2
|
|
7
|
+
} from "./components-ezxhrmer.js";
|
|
8
8
|
|
|
9
9
|
// components/inputs/date-time/time-columns.tsx
|
|
10
10
|
import { format } from "date-fns";
|
|
@@ -32,7 +32,7 @@ function TimeColumns({
|
|
|
32
32
|
label: pad(i * minuteStep)
|
|
33
33
|
})), [minuteStep]);
|
|
34
34
|
const vertical = orientation === "vertical";
|
|
35
|
-
const width = (fixed) => !vertical ? "w-full" : fill ? "min-w-0 flex-1" :
|
|
35
|
+
const width = (fixed) => !vertical ? "w-full" : fill ? "min-w-0 flex-1" : cn2("shrink-0", fixed);
|
|
36
36
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
37
37
|
children: [
|
|
38
38
|
/* @__PURE__ */ jsx(ScrollColumn, {
|