@justanarthur/modo-ui 0.1.0 → 0.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/dist/blocks/sidebar-app/index.d.ts +1 -1
- package/dist/blocks/sidebar-app/index.js +28 -31
- 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/checkbox-group/index.d.ts +1 -1
- package/dist/components/inputs/checkbox-group/index.js +17 -19
- 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 +1 -1
- 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/input-copy/index.d.ts +1 -1
- package/dist/components/inputs/input-copy/index.js +12 -14
- package/dist/components/inputs/input-message/index.d.ts +1 -1
- package/dist/components/inputs/input-message/index.js +21 -23
- package/dist/components/inputs/radio-group/index.d.ts +1 -1
- package/dist/components/inputs/radio-group/index.js +16 -18
- 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 +1 -1
- package/dist/components/inputs/switch/index.js +10 -12
- package/dist/components/navigation/accordion/index.d.ts +1 -1
- package/dist/components/navigation/accordion/index.js +24 -26
- 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 +1 -1
- 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/components/thinking-indicator/index.d.ts +1 -1
- package/dist/components/thinking-indicator/index.js +9 -11
- package/dist/index.d.ts +51 -51
- package/dist/index.js +506 -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 +1 -1
- 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 +1 -1
- 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-0ke6xada.js +123 -0
- 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-p2vmyfe1.js → components-1j9791sn.js} +42 -42
- package/dist/shared/{components-6phwsry6.js → components-1rfwbyyc.js} +25 -25
- package/dist/shared/{components-vc1k7yv2.js → components-1v7rxytx.js} +3 -3
- package/dist/shared/{components-tm88ghva.js → components-1xekx2hx.js} +58 -58
- package/dist/shared/{components-6t6nr33r.js → components-39jq9va1.js} +26 -26
- package/dist/shared/{components-j65qt1mq.js → components-3gae8nta.js} +101 -101
- package/dist/shared/{components-r2gke5p6.js → components-3k8xpnpq.js} +125 -125
- package/dist/shared/{components-6y1th6k4.js → components-3mkepka5.js} +31 -31
- package/dist/shared/{components-vktws5r6.js → components-3wk0w46f.js} +72 -72
- package/dist/shared/{components-zx2hr57f.js → components-4cnjmgex.js} +15 -15
- 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-7gv95yfy.js → components-62ybc7t2.js} +83 -83
- package/dist/shared/{components-brnzrp2t.js → components-66mv71kx.js} +41 -41
- package/dist/shared/{components-taxmgbnh.js → components-7ans7ce5.js} +17 -17
- 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-5zry9te1.js → components-7x9kawxv.js} +26 -26
- package/dist/shared/{components-4hh0gm0v.js → components-8fpr3s4p.js} +61 -61
- package/dist/shared/{components-x2xyckd5.js → components-9jvzzvt1.js} +20 -20
- package/dist/shared/{components-bf2d9k02.js → components-apdwtweq.js} +94 -94
- package/dist/shared/{components-hjkrv00c.js → components-asr5pg50.js} +18 -18
- package/dist/shared/{components-5pkcfprd.js → components-b2wyq2cq.js} +22 -22
- package/dist/shared/{components-nn6xezy2.js → components-ca2c898n.js} +226 -226
- package/dist/shared/{components-xszag63d.js → components-cbxjn9p8.js} +12 -12
- 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-4xxtggzp.js → components-ez65vtbq.js} +18 -18
- package/dist/shared/{components-0f0as45n.js → components-ezxhrmer.js} +2 -2
- 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-ess3ch6w.js → components-h2dpcwgc.js} +23 -23
- 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-vb033rns.js → components-jjw69c4c.js} +6 -6
- package/dist/shared/{components-tad5h7ta.js → components-jwst3vtj.js} +48 -48
- package/dist/shared/{components-r22vtgqc.js → components-kvr7f9hy.js} +11 -11
- package/dist/shared/{components-gndm6am4.js → components-ng72k97e.js} +17 -17
- package/dist/shared/{components-40j34hdb.js → components-nh8tma1n.js} +116 -116
- package/dist/shared/{components-s5pkbjx1.js → components-njzgqdwy.js} +56 -56
- package/dist/shared/{components-54nf2x99.js → components-ny774h8p.js} +42 -42
- package/dist/shared/{components-r4jt6hgd.js → components-q4daerx0.js} +6 -6
- package/dist/shared/{components-peg09pzs.js → components-q5xj5c16.js} +11 -11
- package/dist/shared/{components-r43mqnd6.js → components-rr7a6ja9.js} +46 -46
- package/dist/shared/{components-bkvb6nem.js → components-s2bz1xpk.js} +11 -11
- package/dist/shared/{components-zvb11ker.js → components-tqvarbfv.js} +47 -47
- package/dist/shared/{components-aaq3yk4f.js → components-v6xp325t.js} +43 -43
- package/dist/shared/{components-v7es8aan.js → components-v7wtz8hk.js} +15 -15
- 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-gjfrycb5.js → components-yh3kwdhr.js} +63 -66
- package/dist/shared/{components-y3cqdrgy.js → components-ytb2tefr.js} +43 -43
- 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/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,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
DialogFooter,
|
|
5
|
-
DialogHeader,
|
|
6
|
-
DialogState,
|
|
7
|
-
DialogTitle,
|
|
8
|
-
DialogTrigger,
|
|
9
|
-
useDialogState
|
|
10
|
-
} from "./components-61ckf42z.js";
|
|
2
|
+
MorphSurface
|
|
3
|
+
} from "./components-0q0sqfh4.js";
|
|
11
4
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
SurfaceProvider,
|
|
15
|
-
useSurface
|
|
16
|
-
} from "./components-csxz9f52.js";
|
|
5
|
+
useMorph
|
|
6
|
+
} from "./components-hqeq3w9q.js";
|
|
17
7
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./components-
|
|
8
|
+
cn2
|
|
9
|
+
} from "./components-ezxhrmer.js";
|
|
20
10
|
import {
|
|
21
11
|
useShape
|
|
22
|
-
} from "./components-
|
|
12
|
+
} from "./components-cv16mryv.js";
|
|
23
13
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
SURFACE_BG,
|
|
15
|
+
SURFACE_SHADOW,
|
|
16
|
+
useSurface2,
|
|
17
|
+
SurfaceProvider2
|
|
18
|
+
} from "./components-zx6b6yby.js";
|
|
26
19
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
useDialogState2,
|
|
21
|
+
DialogTrigger2,
|
|
22
|
+
DialogClose2,
|
|
23
|
+
DialogHeader2,
|
|
24
|
+
DialogFooter2,
|
|
25
|
+
DialogTitle2,
|
|
26
|
+
DialogDescription2,
|
|
27
|
+
DialogState2
|
|
28
|
+
} from "./components-zfnmn5d4.js";
|
|
29
29
|
|
|
30
30
|
// components/overlays/sheet/index.tsx
|
|
31
31
|
import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer";
|
|
@@ -53,9 +53,9 @@ var PLACEMENT = {
|
|
|
53
53
|
};
|
|
54
54
|
var DRAWER_OFFSET = 4;
|
|
55
55
|
var INDENT_RADIUS = { pill: "data-[active]:rounded-3xl", rounded: "data-[active]:rounded-xl" };
|
|
56
|
-
var
|
|
56
|
+
var SheetContent2 = forwardRef(({ from, effect, hideSource, tier, container, className, children, ...props }, ref) => {
|
|
57
57
|
const { side, swiped } = useContext(SheetContext);
|
|
58
|
-
const { open, origin } =
|
|
58
|
+
const { open, origin } = useDialogState2();
|
|
59
59
|
const morph = useMorph(open, origin, {
|
|
60
60
|
from: from ?? side,
|
|
61
61
|
effect,
|
|
@@ -65,7 +65,7 @@ var SheetContent = forwardRef(({ from, effect, hideSource, tier, container, clas
|
|
|
65
65
|
});
|
|
66
66
|
useImperativeHandle(ref, () => morph.popup, [morph.popup]);
|
|
67
67
|
const shape = useShape();
|
|
68
|
-
const level = Math.min(
|
|
68
|
+
const level = Math.min(useSurface2() + DRAWER_OFFSET, 8);
|
|
69
69
|
const edge = side === "top" || side === "bottom";
|
|
70
70
|
return /* @__PURE__ */ jsxs(DrawerPrimitive.Portal, {
|
|
71
71
|
container: container ?? undefined,
|
|
@@ -74,22 +74,22 @@ var SheetContent = forwardRef(({ from, effect, hideSource, tier, container, clas
|
|
|
74
74
|
render: /* @__PURE__ */ jsx(motion.div, {
|
|
75
75
|
style: { opacity: morph.progress }
|
|
76
76
|
}),
|
|
77
|
-
className:
|
|
77
|
+
className: cn2(container ? "absolute" : "fixed", "inset-0 z-50 bg-scrim")
|
|
78
78
|
}),
|
|
79
79
|
/* @__PURE__ */ jsx(DrawerPrimitive.Viewport, {
|
|
80
|
-
className:
|
|
80
|
+
className: cn2(container ? "absolute" : "fixed", "inset-0 z-50"),
|
|
81
81
|
children: /* @__PURE__ */ jsx(DrawerPrimitive.Popup, {
|
|
82
82
|
ref: morph.popupRef,
|
|
83
83
|
...props,
|
|
84
|
-
className:
|
|
85
|
-
children: /* @__PURE__ */ jsx(
|
|
84
|
+
className: cn2("absolute flex flex-col focus:outline-none", PLACEMENT[side], "[transform:translate(var(--drawer-swipe-movement-x),calc(var(--drawer-snap-point-offset)_+_var(--drawer-swipe-movement-y)))]", "transition-[transform] duration-slow"),
|
|
85
|
+
children: /* @__PURE__ */ jsx(SurfaceProvider2, {
|
|
86
86
|
value: level,
|
|
87
87
|
children: /* @__PURE__ */ jsxs(MorphSurface, {
|
|
88
88
|
morph,
|
|
89
89
|
bg: SURFACE_BG[level],
|
|
90
90
|
shadow: SURFACE_SHADOW[level],
|
|
91
91
|
radius: shape.container,
|
|
92
|
-
className:
|
|
92
|
+
className: cn2("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-6", edge && "pt-3", className),
|
|
93
93
|
children: [
|
|
94
94
|
edge && /* @__PURE__ */ jsx("div", {
|
|
95
95
|
"aria-hidden": true,
|
|
@@ -104,17 +104,17 @@ var SheetContent = forwardRef(({ from, effect, hideSource, tier, container, clas
|
|
|
104
104
|
]
|
|
105
105
|
});
|
|
106
106
|
});
|
|
107
|
-
|
|
108
|
-
var
|
|
107
|
+
SheetContent2.displayName = "SheetContent";
|
|
108
|
+
var SheetIndent2 = forwardRef(({ className, ...props }, ref) => {
|
|
109
109
|
const shape = useShape();
|
|
110
110
|
return /* @__PURE__ */ jsx(DrawerPrimitive.Indent, {
|
|
111
111
|
ref,
|
|
112
|
-
className:
|
|
112
|
+
className: cn2("origin-top transition-[transform] duration-slow data-[active]:scale-[0.96] data-[active]:overflow-hidden", INDENT_RADIUS[shape.variant], className),
|
|
113
113
|
...props
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
|
-
|
|
117
|
-
function
|
|
116
|
+
SheetIndent2.displayName = "SheetIndent";
|
|
117
|
+
function Sheet2({
|
|
118
118
|
children,
|
|
119
119
|
open,
|
|
120
120
|
defaultOpen,
|
|
@@ -127,7 +127,7 @@ function Sheet({
|
|
|
127
127
|
const [swiped, setSwiped] = useState(false);
|
|
128
128
|
return /* @__PURE__ */ jsx(SheetContext.Provider, {
|
|
129
129
|
value: { side, swiped },
|
|
130
|
-
children: /* @__PURE__ */ jsx(
|
|
130
|
+
children: /* @__PURE__ */ jsx(DialogState2, {
|
|
131
131
|
open,
|
|
132
132
|
defaultOpen,
|
|
133
133
|
onOpenChange,
|
|
@@ -146,15 +146,15 @@ function Sheet({
|
|
|
146
146
|
})
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
var sheet_default =
|
|
149
|
+
Sheet2.Trigger = DialogTrigger2;
|
|
150
|
+
Sheet2.Content = SheetContent2;
|
|
151
|
+
Sheet2.Header = DialogHeader2;
|
|
152
|
+
Sheet2.Footer = DialogFooter2;
|
|
153
|
+
Sheet2.Title = DialogTitle2;
|
|
154
|
+
Sheet2.Description = DialogDescription2;
|
|
155
|
+
Sheet2.Close = DialogClose2;
|
|
156
|
+
Sheet2.Provider = DrawerPrimitive.Provider;
|
|
157
|
+
Sheet2.Indent = SheetIndent2;
|
|
158
|
+
var sheet_default = Sheet2;
|
|
159
159
|
|
|
160
|
-
export {
|
|
160
|
+
export { SheetContent2, SheetIndent2, Sheet2, sheet_default };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
scroll_area_default
|
|
3
|
-
} from "./components-ed7cmssr.js";
|
|
4
1
|
import {
|
|
5
2
|
SURFACE_BG,
|
|
6
|
-
|
|
7
|
-
} from "./components-
|
|
3
|
+
useSurface2
|
|
4
|
+
} from "./components-zx6b6yby.js";
|
|
8
5
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./components-
|
|
6
|
+
cn2
|
|
7
|
+
} from "./components-ezxhrmer.js";
|
|
8
|
+
import {
|
|
9
|
+
scroll_area_default
|
|
10
|
+
} from "./components-hawvy2qz.js";
|
|
11
11
|
|
|
12
12
|
// primitives/code/index.tsx
|
|
13
13
|
import { Fragment } from "react";
|
|
@@ -40,18 +40,18 @@ function highlight(source, language) {
|
|
|
40
40
|
]
|
|
41
41
|
}, line.index));
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Code2({
|
|
44
44
|
children,
|
|
45
45
|
language = "tsx",
|
|
46
46
|
className
|
|
47
47
|
}) {
|
|
48
|
-
const level = Math.min(
|
|
48
|
+
const level = Math.min(useSurface2() + 1, 8);
|
|
49
49
|
const source = children.trim();
|
|
50
50
|
const id = lang(language);
|
|
51
51
|
return /* @__PURE__ */ jsx(scroll_area_default, {
|
|
52
52
|
orientation: "horizontal",
|
|
53
53
|
viewportClassName: "scroll-fade-x",
|
|
54
|
-
className:
|
|
54
|
+
className: cn2("rounded-xl", SURFACE_BG[level], className),
|
|
55
55
|
children: /* @__PURE__ */ jsx("pre", {
|
|
56
56
|
className: "m-0 w-max min-w-full p-4 font-mono text-caption leading-relaxed text-foreground",
|
|
57
57
|
children: /* @__PURE__ */ jsx("code", {
|
|
@@ -60,4 +60,4 @@ function Code({
|
|
|
60
60
|
})
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
export {
|
|
63
|
+
export { Code2 };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./components-
|
|
2
|
+
cn2
|
|
3
|
+
} from "./components-ezxhrmer.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
useSurface
|
|
8
|
-
} from "./components-csxz9f52.js";
|
|
9
|
-
import {
|
|
10
|
-
useFluidHover
|
|
11
|
-
} from "./components-e46kf6cp.js";
|
|
5
|
+
GooIndicator
|
|
6
|
+
} from "./components-chacnk61.js";
|
|
12
7
|
import {
|
|
13
8
|
useShape
|
|
14
|
-
} from "./components-
|
|
9
|
+
} from "./components-cv16mryv.js";
|
|
15
10
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./components-
|
|
11
|
+
useSize2
|
|
12
|
+
} from "./components-0sn7ypjw.js";
|
|
13
|
+
import {
|
|
14
|
+
SURFACE_BG,
|
|
15
|
+
SURFACE_SHADOW,
|
|
16
|
+
useSurface2
|
|
17
|
+
} from "./components-zx6b6yby.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./components-
|
|
19
|
+
useFluidHover2
|
|
20
|
+
} from "./components-59efxjd9.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./components-
|
|
22
|
+
SizeProvider2
|
|
23
|
+
} from "./components-jjw69c4c.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./components-
|
|
25
|
+
spring2
|
|
26
|
+
} from "./components-1v7rxytx.js";
|
|
27
27
|
|
|
28
28
|
// components/navigation/tabs/index.tsx
|
|
29
29
|
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
@@ -50,7 +50,7 @@ function useTabsList() {
|
|
|
50
50
|
throw new Error("TabItem must be used within a TabsList");
|
|
51
51
|
return ctx;
|
|
52
52
|
}
|
|
53
|
-
var
|
|
53
|
+
var Tabs2 = forwardRef(({ value, onValueChange, selectedIndex, onSelect, defaultValue, defaultSelectedIndex, size, children, ...props }, ref) => {
|
|
54
54
|
const [valueOrder, setValueOrder] = useState([]);
|
|
55
55
|
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);
|
|
56
56
|
const updateValueOrder = useCallback((order) => {
|
|
@@ -88,18 +88,18 @@ var Tabs = forwardRef(({ value, onValueChange, selectedIndex, onSelect, defaultV
|
|
|
88
88
|
children
|
|
89
89
|
})
|
|
90
90
|
});
|
|
91
|
-
return size ? /* @__PURE__ */ jsx(
|
|
91
|
+
return size ? /* @__PURE__ */ jsx(SizeProvider2, {
|
|
92
92
|
size,
|
|
93
93
|
children: root
|
|
94
94
|
}) : root;
|
|
95
95
|
});
|
|
96
|
-
|
|
97
|
-
var
|
|
96
|
+
Tabs2.displayName = "Tabs";
|
|
97
|
+
var TabsList2 = forwardRef(({ children, className, ...props }, ref) => {
|
|
98
98
|
const containerRef = useRef(null);
|
|
99
99
|
const isMouseInside = useRef(false);
|
|
100
100
|
const shape = useShape();
|
|
101
|
-
const sizeClasses =
|
|
102
|
-
const substrate =
|
|
101
|
+
const sizeClasses = useSize2();
|
|
102
|
+
const substrate = useSurface2();
|
|
103
103
|
const indicatorLevel = Math.min(substrate + 3, 8);
|
|
104
104
|
const valueOrderCtx = useContext(TabsValueOrderContext);
|
|
105
105
|
const [optimisticIdx, setOptimisticIdx] = useState(null);
|
|
@@ -116,7 +116,7 @@ var TabsList = forwardRef(({ children, className, ...props }, ref) => {
|
|
|
116
116
|
handlers,
|
|
117
117
|
registerItem,
|
|
118
118
|
measureItems
|
|
119
|
-
} =
|
|
119
|
+
} = useFluidHover2(containerRef, { axis: "x" });
|
|
120
120
|
const registerTab = useCallback((index, _value, el) => {
|
|
121
121
|
registerItem(index, el);
|
|
122
122
|
}, [registerItem]);
|
|
@@ -186,24 +186,24 @@ var TabsList = forwardRef(({ children, className, ...props }, ref) => {
|
|
|
186
186
|
return;
|
|
187
187
|
setHoveredIndex(null);
|
|
188
188
|
},
|
|
189
|
-
className:
|
|
189
|
+
className: cn2("relative inline-flex items-center select-none bg-muted", sizeClasses.segmentPad, shape.container, className),
|
|
190
190
|
...props,
|
|
191
191
|
children: [
|
|
192
192
|
selectedRect && /* @__PURE__ */ jsx(GooIndicator, {
|
|
193
193
|
rect: selectedRect,
|
|
194
|
-
className:
|
|
194
|
+
className: cn2(SURFACE_BG[indicatorLevel], shape.bg),
|
|
195
195
|
shadow: SURFACE_SHADOW[indicatorLevel],
|
|
196
196
|
opacity: isHovering ? 0.85 : 1
|
|
197
197
|
}),
|
|
198
198
|
selectedRect && /* @__PURE__ */ jsx(GooIndicator, {
|
|
199
199
|
rect: isHovering && hoverRect ? hoverRect : selectedRect,
|
|
200
|
-
className:
|
|
201
|
-
transition:
|
|
200
|
+
className: cn2("bg-hover", shape.bg),
|
|
201
|
+
transition: spring2.fast,
|
|
202
202
|
opacity: isHovering ? 0.4 : 0
|
|
203
203
|
}),
|
|
204
204
|
/* @__PURE__ */ jsx(AnimatePresence, {
|
|
205
205
|
children: focusRect && /* @__PURE__ */ jsx(motion.div, {
|
|
206
|
-
className:
|
|
206
|
+
className: cn2("absolute pointer-events-none z-20 border border-focus-ring", shape.focusRing),
|
|
207
207
|
initial: false,
|
|
208
208
|
animate: {
|
|
209
209
|
left: focusRect.left - 2,
|
|
@@ -211,10 +211,10 @@ var TabsList = forwardRef(({ children, className, ...props }, ref) => {
|
|
|
211
211
|
width: focusRect.width + 4,
|
|
212
212
|
height: focusRect.height + 4
|
|
213
213
|
},
|
|
214
|
-
exit: { opacity: 0, transition:
|
|
214
|
+
exit: { opacity: 0, transition: spring2.fast.exit },
|
|
215
215
|
transition: {
|
|
216
|
-
...
|
|
217
|
-
opacity: { duration:
|
|
216
|
+
...spring2.fast,
|
|
217
|
+
opacity: { duration: spring2.fast.duration }
|
|
218
218
|
}
|
|
219
219
|
})
|
|
220
220
|
}),
|
|
@@ -223,10 +223,10 @@ var TabsList = forwardRef(({ children, className, ...props }, ref) => {
|
|
|
223
223
|
})
|
|
224
224
|
});
|
|
225
225
|
});
|
|
226
|
-
|
|
227
|
-
var
|
|
226
|
+
TabsList2.displayName = "TabsList";
|
|
227
|
+
var TabItem2 = forwardRef(({ value, icon: Icon, label, _index = 0, className, onClick, ...props }, ref) => {
|
|
228
228
|
const internalRef = useRef(null);
|
|
229
|
-
const sizeClasses =
|
|
229
|
+
const sizeClasses = useSize2();
|
|
230
230
|
const { registerTab, hoveredIndex, selectedValue, setOptimisticIdx } = useTabsList();
|
|
231
231
|
useEffect(() => {
|
|
232
232
|
registerTab(_index, value, internalRef.current);
|
|
@@ -248,16 +248,16 @@ var TabItem = forwardRef(({ value, icon: Icon, label, _index = 0, className, onC
|
|
|
248
248
|
},
|
|
249
249
|
value,
|
|
250
250
|
"data-fluid-hover-index": _index,
|
|
251
|
-
className:
|
|
251
|
+
className: cn2("relative z-10 flex items-center px-3 cursor-pointer bg-transparent border-none outline-none", sizeClasses.segmentItem, sizeClasses.gap, className),
|
|
252
252
|
...props,
|
|
253
253
|
children: [
|
|
254
254
|
Icon && /* @__PURE__ */ jsx(Icon, {
|
|
255
255
|
size: sizeClasses.icon,
|
|
256
256
|
strokeWidth: isActive ? 2 : 1.5,
|
|
257
|
-
className:
|
|
257
|
+
className: cn2("transition-[color,stroke-width] duration-fast", isActive ? "text-foreground" : "text-muted-foreground")
|
|
258
258
|
}),
|
|
259
259
|
/* @__PURE__ */ jsxs("span", {
|
|
260
|
-
className:
|
|
260
|
+
className: cn2("inline-grid whitespace-nowrap", sizeClasses.text),
|
|
261
261
|
children: [
|
|
262
262
|
/* @__PURE__ */ jsx("span", {
|
|
263
263
|
className: "col-start-1 row-start-1 invisible [text-box:trim-both_cap_alphabetic] weight-semibold",
|
|
@@ -265,7 +265,7 @@ var TabItem = forwardRef(({ value, icon: Icon, label, _index = 0, className, onC
|
|
|
265
265
|
children: label
|
|
266
266
|
}),
|
|
267
267
|
/* @__PURE__ */ jsx("span", {
|
|
268
|
-
className:
|
|
268
|
+
className: cn2("col-start-1 row-start-1 transition-[color,font-variation-settings] duration-fast [text-box:trim-both_cap_alphabetic]", isActive ? "text-foreground" : "text-muted-foreground", isSelected ? "weight-semibold" : "weight-normal"),
|
|
269
269
|
children: label
|
|
270
270
|
})
|
|
271
271
|
]
|
|
@@ -273,16 +273,16 @@ var TabItem = forwardRef(({ value, icon: Icon, label, _index = 0, className, onC
|
|
|
273
273
|
]
|
|
274
274
|
});
|
|
275
275
|
});
|
|
276
|
-
|
|
277
|
-
var
|
|
276
|
+
TabItem2.displayName = "TabItem";
|
|
277
|
+
var TabPanel2 = forwardRef(({ className, ...props }, ref) => {
|
|
278
278
|
return /* @__PURE__ */ jsx(TabsPrimitive.Panel, {
|
|
279
279
|
ref,
|
|
280
|
-
className:
|
|
280
|
+
className: cn2("outline-none", className),
|
|
281
281
|
...props
|
|
282
282
|
});
|
|
283
283
|
});
|
|
284
|
-
|
|
285
|
-
Object.assign(
|
|
286
|
-
var tabs_default =
|
|
284
|
+
TabPanel2.displayName = "TabPanel";
|
|
285
|
+
Object.assign(Tabs2, { List: TabsList2, Item: TabItem2, Panel: TabPanel2 });
|
|
286
|
+
var tabs_default = Tabs2;
|
|
287
287
|
|
|
288
|
-
export {
|
|
288
|
+
export { Tabs2, TabsList2, TabItem2, TabPanel2, tabs_default };
|
|
@@ -1,27 +1,27 @@
|
|
|
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
8
|
useShape
|
|
9
|
-
} from "./components-
|
|
9
|
+
} from "./components-cv16mryv.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./components-
|
|
11
|
+
useSize2
|
|
12
|
+
} from "./components-0sn7ypjw.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./components-
|
|
14
|
+
useControllableState
|
|
15
|
+
} from "./components-n7mjr357.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./components-
|
|
17
|
+
useFluidHover2
|
|
18
|
+
} from "./components-59efxjd9.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./components-
|
|
20
|
+
SizeProvider2
|
|
21
|
+
} from "./components-jjw69c4c.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./components-
|
|
23
|
+
spring2
|
|
24
|
+
} from "./components-1v7rxytx.js";
|
|
25
25
|
|
|
26
26
|
// components/navigation/tabs-subtle/index.tsx
|
|
27
27
|
import { Tabs } from "@base-ui/react/tabs";
|
|
@@ -40,14 +40,14 @@ import {
|
|
|
40
40
|
} from "react";
|
|
41
41
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
42
42
|
var TabsSubtleContext = createContext(null);
|
|
43
|
-
var isPanel = (child) => isValidElement(child) && child.type ===
|
|
43
|
+
var isPanel = (child) => isValidElement(child) && child.type === TabsSubtlePanel2;
|
|
44
44
|
function useTabsSubtle() {
|
|
45
45
|
const ctx = useContext(TabsSubtleContext);
|
|
46
46
|
if (!ctx)
|
|
47
47
|
throw new Error("useTabsSubtle must be used within a TabsSubtle");
|
|
48
48
|
return ctx;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
50
|
+
var TabsSubtle2 = forwardRef(({
|
|
51
51
|
children,
|
|
52
52
|
selectedIndex: selectedIndexProp,
|
|
53
53
|
defaultSelectedIndex = 0,
|
|
@@ -74,7 +74,7 @@ var TabsSubtle = forwardRef(({
|
|
|
74
74
|
handlers,
|
|
75
75
|
registerItem,
|
|
76
76
|
measureItems: measureTabs
|
|
77
|
-
} =
|
|
77
|
+
} = useFluidHover2(containerRef, { axis: "x" });
|
|
78
78
|
const tabElementsRef = useRef(new Map);
|
|
79
79
|
const registerTab = useCallback((index, element) => {
|
|
80
80
|
registerItem(index, element);
|
|
@@ -151,23 +151,23 @@ var TabsSubtle = forwardRef(({
|
|
|
151
151
|
return;
|
|
152
152
|
setHoveredIndex(null);
|
|
153
153
|
},
|
|
154
|
-
className:
|
|
154
|
+
className: cn2("relative flex items-center select-none overflow-x-auto max-w-[calc(100%_+_8px)] scrollbar-hide -mx-1 px-1 -my-1 py-1", className),
|
|
155
155
|
...props,
|
|
156
156
|
children: [
|
|
157
157
|
selectedRect && /* @__PURE__ */ jsx(GooIndicator, {
|
|
158
158
|
rect: selectedRect,
|
|
159
|
-
className:
|
|
159
|
+
className: cn2("bg-active", shape.bg),
|
|
160
160
|
opacity: isHovering ? 0.8 : 1
|
|
161
161
|
}),
|
|
162
162
|
selectedRect && /* @__PURE__ */ jsx(GooIndicator, {
|
|
163
163
|
rect: isHovering && hoverRect ? hoverRect : selectedRect,
|
|
164
|
-
className:
|
|
165
|
-
transition:
|
|
164
|
+
className: cn2("bg-active", shape.bg),
|
|
165
|
+
transition: spring2.fast,
|
|
166
166
|
opacity: isHovering ? 0.4 : 0
|
|
167
167
|
}),
|
|
168
168
|
/* @__PURE__ */ jsx(AnimatePresence, {
|
|
169
169
|
children: focusRect && /* @__PURE__ */ jsx(motion.div, {
|
|
170
|
-
className:
|
|
170
|
+
className: cn2("absolute pointer-events-none z-20 border border-focus-ring", shape.focusRing),
|
|
171
171
|
initial: false,
|
|
172
172
|
animate: {
|
|
173
173
|
left: focusRect.left - 2,
|
|
@@ -175,10 +175,10 @@ var TabsSubtle = forwardRef(({
|
|
|
175
175
|
width: focusRect.width + 4,
|
|
176
176
|
height: focusRect.height + 4
|
|
177
177
|
},
|
|
178
|
-
exit: { opacity: 0, transition:
|
|
178
|
+
exit: { opacity: 0, transition: spring2.fast.exit },
|
|
179
179
|
transition: {
|
|
180
|
-
...
|
|
181
|
-
opacity: { duration:
|
|
180
|
+
...spring2.fast,
|
|
181
|
+
opacity: { duration: spring2.fast.duration }
|
|
182
182
|
}
|
|
183
183
|
})
|
|
184
184
|
}),
|
|
@@ -189,13 +189,13 @@ var TabsSubtle = forwardRef(({
|
|
|
189
189
|
panels
|
|
190
190
|
]
|
|
191
191
|
});
|
|
192
|
-
return size ? /* @__PURE__ */ jsx(
|
|
192
|
+
return size ? /* @__PURE__ */ jsx(SizeProvider2, {
|
|
193
193
|
size,
|
|
194
194
|
children: root
|
|
195
195
|
}) : root;
|
|
196
196
|
});
|
|
197
|
-
|
|
198
|
-
var
|
|
197
|
+
TabsSubtle2.displayName = "TabsSubtle";
|
|
198
|
+
var TabsSubtleItem2 = forwardRef(({ icon: Icon, label, index, className, ...props }, ref) => {
|
|
199
199
|
const internalRef = useRef(null);
|
|
200
200
|
const [labelWidth, setLabelWidth] = useState(null);
|
|
201
201
|
const labelRoRef = useRef(null);
|
|
@@ -210,7 +210,7 @@ var TabsSubtleItem = forwardRef(({ icon: Icon, label, index, className, ...props
|
|
|
210
210
|
labelRoRef.current.observe(el);
|
|
211
211
|
}, []);
|
|
212
212
|
const shape = useShape();
|
|
213
|
-
const sizeClasses =
|
|
213
|
+
const sizeClasses = useSize2();
|
|
214
214
|
const { registerTab, hoveredIndex, selectedIndex, idPrefix, activeLabel } = useTabsSubtle();
|
|
215
215
|
useEffect(() => {
|
|
216
216
|
registerTab(index, internalRef.current);
|
|
@@ -222,7 +222,7 @@ var TabsSubtleItem = forwardRef(({ icon: Icon, label, index, className, ...props
|
|
|
222
222
|
const showLabel = !collapseLabel || isSelected;
|
|
223
223
|
const labelContent = /* @__PURE__ */ jsxs("span", {
|
|
224
224
|
ref: measureLabel,
|
|
225
|
-
className:
|
|
225
|
+
className: cn2("inline-grid whitespace-nowrap", sizeClasses.text),
|
|
226
226
|
children: [
|
|
227
227
|
/* @__PURE__ */ jsx("span", {
|
|
228
228
|
className: "col-start-1 row-start-1 invisible [text-box:trim-both_cap_alphabetic] weight-semibold",
|
|
@@ -230,7 +230,7 @@ var TabsSubtleItem = forwardRef(({ icon: Icon, label, index, className, ...props
|
|
|
230
230
|
children: label
|
|
231
231
|
}),
|
|
232
232
|
/* @__PURE__ */ jsx("span", {
|
|
233
|
-
className:
|
|
233
|
+
className: cn2("col-start-1 row-start-1 transition-[color,font-variation-settings] duration-fast [text-box:trim-both_cap_alphabetic]", isActive ? "text-foreground" : "text-muted-foreground", isSelected ? "weight-semibold" : "weight-normal"),
|
|
234
234
|
children: label
|
|
235
235
|
})
|
|
236
236
|
]
|
|
@@ -249,13 +249,13 @@ var TabsSubtleItem = forwardRef(({ icon: Icon, label, index, className, ...props
|
|
|
249
249
|
id: idPrefix ? `${idPrefix}-tab-${index}` : undefined,
|
|
250
250
|
"aria-controls": idPrefix ? `${idPrefix}-panel-${index}` : undefined,
|
|
251
251
|
"aria-label": collapseLabel && !showLabel ? label : undefined,
|
|
252
|
-
className:
|
|
252
|
+
className: cn2("relative z-10 flex items-center cursor-pointer bg-transparent border-none outline-none", sizeClasses.control, sizeClasses.px, !collapseLabel && sizeClasses.gap, shape.bg, className),
|
|
253
253
|
...props,
|
|
254
254
|
children: [
|
|
255
255
|
Icon && /* @__PURE__ */ jsx(Icon, {
|
|
256
256
|
size: sizeClasses.icon,
|
|
257
257
|
strokeWidth: isActive ? 2 : 1.5,
|
|
258
|
-
className:
|
|
258
|
+
className: cn2("shrink-0 transition-[color,stroke-width] duration-fast", isActive ? "text-foreground" : "text-muted-foreground")
|
|
259
259
|
}),
|
|
260
260
|
collapseLabel ? /* @__PURE__ */ jsx(AnimatePresence, {
|
|
261
261
|
initial: false,
|
|
@@ -270,8 +270,8 @@ var TabsSubtleItem = forwardRef(({ icon: Icon, label, index, className, ...props
|
|
|
270
270
|
},
|
|
271
271
|
exit: { width: 0, opacity: 0, marginLeft: 0 },
|
|
272
272
|
transition: {
|
|
273
|
-
...
|
|
274
|
-
opacity: { duration:
|
|
273
|
+
...spring2.fast,
|
|
274
|
+
opacity: { duration: spring2.fast.exit.duration }
|
|
275
275
|
},
|
|
276
276
|
children: labelContent
|
|
277
277
|
}, "label")
|
|
@@ -279,8 +279,8 @@ var TabsSubtleItem = forwardRef(({ icon: Icon, label, index, className, ...props
|
|
|
279
279
|
]
|
|
280
280
|
});
|
|
281
281
|
});
|
|
282
|
-
|
|
283
|
-
var
|
|
282
|
+
TabsSubtleItem2.displayName = "TabsSubtleItem";
|
|
283
|
+
var TabsSubtlePanel2 = forwardRef(({ index, selectedIndex, idPrefix, children, className, ...props }, ref) => {
|
|
284
284
|
const ctx = useContext(TabsSubtleContext);
|
|
285
285
|
const resolvedSelectedIndex = selectedIndex ?? ctx?.selectedIndex ?? -1;
|
|
286
286
|
const resolvedIdPrefix = idPrefix ?? ctx?.idPrefix;
|
|
@@ -292,13 +292,13 @@ var TabsSubtlePanel = forwardRef(({ index, selectedIndex, idPrefix, children, cl
|
|
|
292
292
|
"aria-labelledby": resolvedIdPrefix ? `${resolvedIdPrefix}-tab-${index}` : undefined,
|
|
293
293
|
hidden: !isSelected,
|
|
294
294
|
tabIndex: -1,
|
|
295
|
-
className:
|
|
295
|
+
className: cn2("outline-none", className),
|
|
296
296
|
...props,
|
|
297
297
|
children: isSelected && children
|
|
298
298
|
});
|
|
299
299
|
});
|
|
300
|
-
|
|
301
|
-
Object.assign(
|
|
302
|
-
var tabs_subtle_default =
|
|
300
|
+
TabsSubtlePanel2.displayName = "TabsSubtlePanel";
|
|
301
|
+
Object.assign(TabsSubtle2, { Item: TabsSubtleItem2, Panel: TabsSubtlePanel2 });
|
|
302
|
+
var tabs_subtle_default = TabsSubtle2;
|
|
303
303
|
|
|
304
|
-
export {
|
|
304
|
+
export { TabsSubtle2, TabsSubtleItem2, TabsSubtlePanel2, tabs_subtle_default };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
TimeColumns
|
|
3
|
-
} from "./components-r4jt6hgd.js";
|
|
4
|
-
import {
|
|
5
|
-
calendar_default
|
|
6
|
-
} from "./components-6phwsry6.js";
|
|
7
|
-
import {
|
|
8
|
-
PickerInput,
|
|
9
|
-
PickerShell
|
|
10
|
-
} from "./components-hzfp4tjb.js";
|
|
11
1
|
import {
|
|
12
2
|
defaultLocale,
|
|
13
3
|
hourCycleOf,
|
|
14
4
|
parseDateText,
|
|
15
5
|
parseTimeText
|
|
16
|
-
} from "./components-
|
|
6
|
+
} from "./components-9jvzzvt1.js";
|
|
17
7
|
import {
|
|
18
8
|
useControllableState
|
|
19
|
-
} from "./components-
|
|
9
|
+
} from "./components-n7mjr357.js";
|
|
10
|
+
import {
|
|
11
|
+
calendar_default
|
|
12
|
+
} from "./components-1rfwbyyc.js";
|
|
13
|
+
import {
|
|
14
|
+
PickerShell,
|
|
15
|
+
PickerInput
|
|
16
|
+
} from "./components-7btqt08d.js";
|
|
17
|
+
import {
|
|
18
|
+
TimeColumns
|
|
19
|
+
} from "./components-q4daerx0.js";
|
|
20
20
|
|
|
21
21
|
// components/inputs/date-time/date-picker/index.tsx
|
|
22
22
|
import { endOfMonth, format, set } from "date-fns";
|
|
@@ -24,7 +24,7 @@ import { useRef } from "react";
|
|
|
24
24
|
import { dateMatchModifiers } from "react-day-picker";
|
|
25
25
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
26
26
|
var keepTime = (day, from) => set(day, { hours: from?.getHours() ?? 0, minutes: from?.getMinutes() ?? 0, seconds: 0, milliseconds: 0 });
|
|
27
|
-
function
|
|
27
|
+
function DatePicker2({
|
|
28
28
|
value: valueProp,
|
|
29
29
|
defaultValue = null,
|
|
30
30
|
onValueChange,
|
|
@@ -139,6 +139,6 @@ function DatePicker({
|
|
|
139
139
|
})
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
|
-
var date_picker_default =
|
|
142
|
+
var date_picker_default = DatePicker2;
|
|
143
143
|
|
|
144
|
-
export {
|
|
144
|
+
export { DatePicker2, date_picker_default };
|