@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,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
DropdownTrigger,
|
|
5
|
-
MenuItem
|
|
6
|
-
} from "./components-40j34hdb.js";
|
|
2
|
+
useShape
|
|
3
|
+
} from "./components-cv16mryv.js";
|
|
7
4
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
SidebarMenuButton,
|
|
11
|
-
SidebarMenuItem,
|
|
12
|
-
SidebarTrigger,
|
|
13
|
-
sidebar_default
|
|
14
|
-
} from "./components-nn6xezy2.js";
|
|
5
|
+
useSize2
|
|
6
|
+
} from "./components-0sn7ypjw.js";
|
|
15
7
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./components-
|
|
8
|
+
cn2
|
|
9
|
+
} from "./components-ezxhrmer.js";
|
|
18
10
|
import {
|
|
19
11
|
button_default
|
|
20
|
-
} from "./components-
|
|
12
|
+
} from "./components-b2wyq2cq.js";
|
|
21
13
|
import {
|
|
22
14
|
useIcon
|
|
23
|
-
} from "./components-
|
|
15
|
+
} from "./components-zrkzcayz.js";
|
|
24
16
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./components-
|
|
17
|
+
tooltip_default
|
|
18
|
+
} from "./components-ng72k97e.js";
|
|
27
19
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
SidebarTrigger2,
|
|
21
|
+
SidebarInput2,
|
|
22
|
+
SidebarMenu2,
|
|
23
|
+
SidebarMenuItem2,
|
|
24
|
+
SidebarMenuButton2,
|
|
25
|
+
sidebar_default
|
|
26
|
+
} from "./components-ca2c898n.js";
|
|
30
27
|
import {
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
MenuItem2,
|
|
29
|
+
DropdownMenu2,
|
|
30
|
+
DropdownTrigger2,
|
|
31
|
+
DropdownContent2
|
|
32
|
+
} from "./components-nh8tma1n.js";
|
|
33
33
|
|
|
34
34
|
// blocks/sidebar-app/index.tsx
|
|
35
35
|
import { useState } from "react";
|
|
@@ -38,9 +38,9 @@ import { useState } from "react";
|
|
|
38
38
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
39
39
|
function SidebarInsetTopbar({ children, className }) {
|
|
40
40
|
return /* @__PURE__ */ jsxs("header", {
|
|
41
|
-
className:
|
|
41
|
+
className: cn2("flex h-12 shrink-0 items-center gap-2 px-1.5", className),
|
|
42
42
|
children: [
|
|
43
|
-
/* @__PURE__ */ jsx(
|
|
43
|
+
/* @__PURE__ */ jsx(SidebarTrigger2, {}),
|
|
44
44
|
children
|
|
45
45
|
]
|
|
46
46
|
});
|
|
@@ -68,7 +68,7 @@ var NAV_SECTIONS = [
|
|
|
68
68
|
// blocks/sidebar-app/search-field.tsx
|
|
69
69
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
70
70
|
function SidebarSearchField({ placeholder = "Search…", shortcut = "⌘K", ...props }) {
|
|
71
|
-
const iconSize =
|
|
71
|
+
const iconSize = useSize2().icon;
|
|
72
72
|
const SearchIcon = useIcon("search");
|
|
73
73
|
return /* @__PURE__ */ jsxs2("div", {
|
|
74
74
|
className: "group/search relative",
|
|
@@ -78,7 +78,7 @@ function SidebarSearchField({ placeholder = "Search…", shortcut = "⌘K", ...p
|
|
|
78
78
|
strokeWidth: 1.5,
|
|
79
79
|
className: "pointer-events-none absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"
|
|
80
80
|
}),
|
|
81
|
-
/* @__PURE__ */ jsx2(
|
|
81
|
+
/* @__PURE__ */ jsx2(SidebarInput2, {
|
|
82
82
|
placeholder,
|
|
83
83
|
"aria-label": "Search",
|
|
84
84
|
className: "pl-8 pr-12",
|
|
@@ -99,16 +99,16 @@ var SIDEBAR_MENU_POPUP = `min-w-[240px] w-[calc(var(--anchor-width)_+_10px)] ${S
|
|
|
99
99
|
// blocks/sidebar-app/user-footer.tsx
|
|
100
100
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
101
101
|
function SidebarUserFooter({ name, avatar, menu, className }) {
|
|
102
|
-
const iconSize =
|
|
102
|
+
const iconSize = useSize2().icon;
|
|
103
103
|
const ChevronsUpDown = useIcon("chevrons-up-down");
|
|
104
|
-
return /* @__PURE__ */ jsx3(
|
|
104
|
+
return /* @__PURE__ */ jsx3(SidebarMenu2, {
|
|
105
105
|
"aria-label": "User",
|
|
106
|
-
className:
|
|
107
|
-
children: /* @__PURE__ */ jsx3(
|
|
108
|
-
children: /* @__PURE__ */ jsxs3(
|
|
106
|
+
className: cn2(className),
|
|
107
|
+
children: /* @__PURE__ */ jsx3(SidebarMenuItem2, {
|
|
108
|
+
children: /* @__PURE__ */ jsxs3(DropdownMenu2, {
|
|
109
109
|
children: [
|
|
110
|
-
/* @__PURE__ */ jsx3(
|
|
111
|
-
render: /* @__PURE__ */ jsxs3(
|
|
110
|
+
/* @__PURE__ */ jsx3(DropdownTrigger2, {
|
|
111
|
+
render: /* @__PURE__ */ jsxs3(SidebarMenuButton2, {
|
|
112
112
|
"aria-label": "Open user menu",
|
|
113
113
|
children: [
|
|
114
114
|
/* @__PURE__ */ jsx3("span", {
|
|
@@ -130,7 +130,7 @@ function SidebarUserFooter({ name, avatar, menu, className }) {
|
|
|
130
130
|
]
|
|
131
131
|
})
|
|
132
132
|
}),
|
|
133
|
-
/* @__PURE__ */ jsx3(
|
|
133
|
+
/* @__PURE__ */ jsx3(DropdownContent2, {
|
|
134
134
|
className: SIDEBAR_MENU_POPUP,
|
|
135
135
|
side: "top",
|
|
136
136
|
align: "start",
|
|
@@ -152,7 +152,7 @@ function SidebarWorkspaceHeader({
|
|
|
152
152
|
checkedIndex,
|
|
153
153
|
defaultCheckedIndex
|
|
154
154
|
}) {
|
|
155
|
-
const iconSize =
|
|
155
|
+
const iconSize = useSize2().icon;
|
|
156
156
|
const ChevronDown = useIcon("chevron-down");
|
|
157
157
|
const tileSlot = /* @__PURE__ */ jsx4("span", {
|
|
158
158
|
"aria-hidden": true,
|
|
@@ -172,14 +172,14 @@ function SidebarWorkspaceHeader({
|
|
|
172
172
|
]
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
return /* @__PURE__ */ jsx4(
|
|
175
|
+
return /* @__PURE__ */ jsx4(SidebarMenu2, {
|
|
176
176
|
"aria-label": "Workspace",
|
|
177
177
|
className: "@container",
|
|
178
|
-
children: /* @__PURE__ */ jsx4(
|
|
179
|
-
children: /* @__PURE__ */ jsxs4(
|
|
178
|
+
children: /* @__PURE__ */ jsx4(SidebarMenuItem2, {
|
|
179
|
+
children: /* @__PURE__ */ jsxs4(DropdownMenu2, {
|
|
180
180
|
children: [
|
|
181
|
-
/* @__PURE__ */ jsx4(
|
|
182
|
-
render: /* @__PURE__ */ jsxs4(
|
|
181
|
+
/* @__PURE__ */ jsx4(DropdownTrigger2, {
|
|
182
|
+
render: /* @__PURE__ */ jsxs4(SidebarMenuButton2, {
|
|
183
183
|
"aria-label": "Switch workspace",
|
|
184
184
|
className: "pl-8",
|
|
185
185
|
children: [
|
|
@@ -196,7 +196,7 @@ function SidebarWorkspaceHeader({
|
|
|
196
196
|
]
|
|
197
197
|
})
|
|
198
198
|
}),
|
|
199
|
-
/* @__PURE__ */ jsx4(
|
|
199
|
+
/* @__PURE__ */ jsx4(DropdownContent2, {
|
|
200
200
|
className: SIDEBAR_MENU_POPUP,
|
|
201
201
|
align: "start",
|
|
202
202
|
sideOffset: 4,
|
|
@@ -212,7 +212,7 @@ function SidebarWorkspaceHeader({
|
|
|
212
212
|
function WorkspaceTile({ children, className }) {
|
|
213
213
|
const shape = useShape();
|
|
214
214
|
return /* @__PURE__ */ jsx4("span", {
|
|
215
|
-
className:
|
|
215
|
+
className: cn2("flex size-5 shrink-0 items-center justify-center bg-foreground text-micro-compact weight-semibold text-background", shape.bgRadius >= 20 ? "rounded-full" : "rounded-md", className),
|
|
216
216
|
children
|
|
217
217
|
});
|
|
218
218
|
}
|
|
@@ -245,15 +245,15 @@ function AppSidebar({ variant, side, className, value, onValueChange }) {
|
|
|
245
245
|
defaultCheckedIndex: 0,
|
|
246
246
|
menu: /* @__PURE__ */ jsxs5(Fragment, {
|
|
247
247
|
children: [
|
|
248
|
-
/* @__PURE__ */ jsx5(
|
|
248
|
+
/* @__PURE__ */ jsx5(MenuItem2, {
|
|
249
249
|
index: 0,
|
|
250
250
|
label: "Acme Inc"
|
|
251
251
|
}),
|
|
252
|
-
/* @__PURE__ */ jsx5(
|
|
252
|
+
/* @__PURE__ */ jsx5(MenuItem2, {
|
|
253
253
|
index: 1,
|
|
254
254
|
label: "Personal"
|
|
255
255
|
}),
|
|
256
|
-
/* @__PURE__ */ jsx5(
|
|
256
|
+
/* @__PURE__ */ jsx5(MenuItem2, {
|
|
257
257
|
index: 2,
|
|
258
258
|
icon: PlusIcon,
|
|
259
259
|
label: "New workspace"
|
|
@@ -311,26 +311,26 @@ function AppSidebar({ variant, side, className, value, onValueChange }) {
|
|
|
311
311
|
value: item.label,
|
|
312
312
|
children: item.label
|
|
313
313
|
}),
|
|
314
|
-
/* @__PURE__ */ jsxs5(
|
|
314
|
+
/* @__PURE__ */ jsxs5(DropdownMenu2, {
|
|
315
315
|
children: [
|
|
316
|
-
/* @__PURE__ */ jsx5(
|
|
316
|
+
/* @__PURE__ */ jsx5(DropdownTrigger2, {
|
|
317
317
|
render: /* @__PURE__ */ jsx5(sidebar_default.MenuAction, {
|
|
318
318
|
showOnHover: true,
|
|
319
319
|
"aria-label": "More options",
|
|
320
320
|
children: /* @__PURE__ */ jsx5(MoreVerticalIcon, {})
|
|
321
321
|
})
|
|
322
322
|
}),
|
|
323
|
-
/* @__PURE__ */ jsxs5(
|
|
323
|
+
/* @__PURE__ */ jsxs5(DropdownContent2, {
|
|
324
324
|
className: "min-w-0 w-[240px]",
|
|
325
325
|
align: "start",
|
|
326
326
|
sideOffset: 4,
|
|
327
327
|
children: [
|
|
328
|
-
/* @__PURE__ */ jsx5(
|
|
328
|
+
/* @__PURE__ */ jsx5(MenuItem2, {
|
|
329
329
|
index: 0,
|
|
330
330
|
icon: PencilIcon,
|
|
331
331
|
label: "Rename"
|
|
332
332
|
}),
|
|
333
|
-
/* @__PURE__ */ jsx5(
|
|
333
|
+
/* @__PURE__ */ jsx5(MenuItem2, {
|
|
334
334
|
index: 1,
|
|
335
335
|
icon: LinkIcon,
|
|
336
336
|
label: "Share"
|
|
@@ -358,17 +358,17 @@ function AppSidebar({ variant, side, className, value, onValueChange }) {
|
|
|
358
358
|
className: "min-w-0 flex-1",
|
|
359
359
|
menu: /* @__PURE__ */ jsxs5(Fragment, {
|
|
360
360
|
children: [
|
|
361
|
-
/* @__PURE__ */ jsx5(
|
|
361
|
+
/* @__PURE__ */ jsx5(MenuItem2, {
|
|
362
362
|
index: 0,
|
|
363
363
|
icon: UserIcon,
|
|
364
364
|
label: "Profile"
|
|
365
365
|
}),
|
|
366
|
-
/* @__PURE__ */ jsx5(
|
|
366
|
+
/* @__PURE__ */ jsx5(MenuItem2, {
|
|
367
367
|
index: 1,
|
|
368
368
|
icon: SettingsIcon,
|
|
369
369
|
label: "Settings"
|
|
370
370
|
}),
|
|
371
|
-
/* @__PURE__ */ jsx5(
|
|
371
|
+
/* @__PURE__ */ jsx5(MenuItem2, {
|
|
372
372
|
index: 2,
|
|
373
373
|
icon: ArrowLeftIcon,
|
|
374
374
|
label: "Log out"
|
|
@@ -404,7 +404,7 @@ function AppSidebar({ variant, side, className, value, onValueChange }) {
|
|
|
404
404
|
]
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function SidebarApp2({
|
|
408
408
|
defaultOpen = false,
|
|
409
409
|
variant = "inset",
|
|
410
410
|
side = "left",
|
|
@@ -425,7 +425,7 @@ function SidebarApp({
|
|
|
425
425
|
onValueChange: setThread
|
|
426
426
|
}),
|
|
427
427
|
/* @__PURE__ */ jsxs5(sidebar_default.Inset, {
|
|
428
|
-
className:
|
|
428
|
+
className: cn2(contained && "min-h-0", variant === "floating" && "pt-2"),
|
|
429
429
|
children: [
|
|
430
430
|
/* @__PURE__ */ jsx5(SidebarInsetTopbar, {
|
|
431
431
|
children: /* @__PURE__ */ jsx5("span", {
|
|
@@ -442,4 +442,4 @@ function SidebarApp({
|
|
|
442
442
|
});
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
-
export {
|
|
445
|
+
export { SidebarApp2 };
|
|
@@ -1,31 +1,31 @@
|
|
|
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
|
-
|
|
10
|
-
} from "./components-e46kf6cp.js";
|
|
8
|
+
FluidHoverHighlight2
|
|
9
|
+
} from "./components-kvr7f9hy.js";
|
|
11
10
|
import {
|
|
12
11
|
useShape
|
|
13
|
-
} from "./components-
|
|
12
|
+
} from "./components-cv16mryv.js";
|
|
14
13
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./components-
|
|
14
|
+
useSize2
|
|
15
|
+
} from "./components-0sn7ypjw.js";
|
|
17
16
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./components-
|
|
17
|
+
useControllableState
|
|
18
|
+
} from "./components-n7mjr357.js";
|
|
20
19
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
useFluidHover2,
|
|
21
|
+
useRegisterFluidHoverItem2
|
|
22
|
+
} from "./components-59efxjd9.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./components-
|
|
24
|
+
SizeProvider2
|
|
25
|
+
} from "./components-jjw69c4c.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./components-
|
|
27
|
+
spring2
|
|
28
|
+
} from "./components-1v7rxytx.js";
|
|
29
29
|
|
|
30
30
|
// components/inputs/radio-group/index.tsx
|
|
31
31
|
import { Radio as RadioPrimitive } from "@base-ui/react/radio";
|
|
@@ -49,7 +49,7 @@ function useRadioGroupContext() {
|
|
|
49
49
|
throw new Error("useRadioGroup must be used within a RadioGroup");
|
|
50
50
|
return ctx;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
52
|
+
var RadioGroup2 = forwardRef(({
|
|
53
53
|
children,
|
|
54
54
|
selectedIndex: selectedIndexProp,
|
|
55
55
|
defaultSelectedIndex,
|
|
@@ -65,7 +65,7 @@ var RadioGroup = forwardRef(({
|
|
|
65
65
|
const [value, onValueChange] = useControllableState(valueProp, defaultValue, onValueChangeProp);
|
|
66
66
|
const containerRef = useRef(null);
|
|
67
67
|
const childValues = Children.toArray(children).filter(isValidElement).map((child) => child.props.value);
|
|
68
|
-
const hover =
|
|
68
|
+
const hover = useFluidHover2(containerRef);
|
|
69
69
|
const { activeIndex, setActiveIndex, itemRects, handlers, registerItem } = hover;
|
|
70
70
|
const [focusedIndex, setFocusedIndex] = useState(null);
|
|
71
71
|
const resolvedSelectedIndex = value !== undefined ? childValues.findIndex((childValue) => childValue === value) : selectedIndex ?? -1;
|
|
@@ -124,14 +124,14 @@ var RadioGroup = forwardRef(({
|
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
role: "radiogroup",
|
|
127
|
-
className:
|
|
127
|
+
className: cn2("relative flex flex-col w-72 max-w-full select-none", className),
|
|
128
128
|
...props,
|
|
129
129
|
children: [
|
|
130
130
|
selectedRect && /* @__PURE__ */ jsx(GooIndicator, {
|
|
131
131
|
rect: selectedRect,
|
|
132
|
-
className:
|
|
132
|
+
className: cn2("bg-active", shape.bg)
|
|
133
133
|
}),
|
|
134
|
-
/* @__PURE__ */ jsx(
|
|
134
|
+
/* @__PURE__ */ jsx(FluidHoverHighlight2, {
|
|
135
135
|
hover,
|
|
136
136
|
className: shape.bg
|
|
137
137
|
}),
|
|
@@ -145,17 +145,17 @@ var RadioGroup = forwardRef(({
|
|
|
145
145
|
width: focusRect.width + 4,
|
|
146
146
|
height: focusRect.height + 4
|
|
147
147
|
},
|
|
148
|
-
exit: { opacity: 0, transition:
|
|
148
|
+
exit: { opacity: 0, transition: spring2.fast.exit },
|
|
149
149
|
transition: {
|
|
150
|
-
...
|
|
151
|
-
opacity: { duration:
|
|
150
|
+
...spring2.fast,
|
|
151
|
+
opacity: { duration: spring2.fast.duration }
|
|
152
152
|
}
|
|
153
153
|
})
|
|
154
154
|
}),
|
|
155
155
|
children
|
|
156
156
|
]
|
|
157
157
|
});
|
|
158
|
-
const withSize = (node) => size ? /* @__PURE__ */ jsx(
|
|
158
|
+
const withSize = (node) => size ? /* @__PURE__ */ jsx(SizeProvider2, {
|
|
159
159
|
size,
|
|
160
160
|
children: node
|
|
161
161
|
}) : node;
|
|
@@ -188,19 +188,19 @@ var RadioGroup = forwardRef(({
|
|
|
188
188
|
children: content
|
|
189
189
|
}));
|
|
190
190
|
});
|
|
191
|
-
|
|
192
|
-
var
|
|
191
|
+
RadioGroup2.displayName = "RadioGroup";
|
|
192
|
+
var RadioItem2 = forwardRef(({ label, index, selected, onSelect, value, className, ...props }, ref) => {
|
|
193
193
|
const internalRef = useRef(null);
|
|
194
194
|
const hasMounted = useRef(false);
|
|
195
195
|
const { registerItem, activeIndex, selectedIndex, selectedValue, onValueChange, hasSelection, selectIndex } = useRadioGroupContext();
|
|
196
|
-
|
|
196
|
+
useRegisterFluidHoverItem2(registerItem, index, internalRef);
|
|
197
197
|
useEffect(() => {
|
|
198
198
|
hasMounted.current = true;
|
|
199
199
|
}, []);
|
|
200
200
|
const isActive = activeIndex === index;
|
|
201
201
|
const skipAnimation = !hasMounted.current;
|
|
202
202
|
const shape = useShape();
|
|
203
|
-
const sizeClasses =
|
|
203
|
+
const sizeClasses = useSize2();
|
|
204
204
|
const compact = sizeClasses.variant === "compact";
|
|
205
205
|
const isSelected = value !== undefined && selectedValue !== undefined ? selectedValue === value : selected ?? selectedIndex === index;
|
|
206
206
|
const handleSelect = () => {
|
|
@@ -237,14 +237,14 @@ var RadioItem = forwardRef(({ label, index, selected, onSelect, value, className
|
|
|
237
237
|
handleSelect();
|
|
238
238
|
}
|
|
239
239
|
},
|
|
240
|
-
className:
|
|
240
|
+
className: cn2(`relative z-10 flex ${sizeClasses.control} items-center ${sizeClasses.gap} ${shape.item} ${sizeClasses.px} cursor-pointer outline-none`, className),
|
|
241
241
|
...props,
|
|
242
242
|
children: [
|
|
243
243
|
/* @__PURE__ */ jsxs("div", {
|
|
244
|
-
className:
|
|
244
|
+
className: cn2("relative shrink-0", compact ? "w-[14px] h-[14px]" : "w-[16px] h-[16px]"),
|
|
245
245
|
children: [
|
|
246
246
|
/* @__PURE__ */ jsx("div", {
|
|
247
|
-
className:
|
|
247
|
+
className: cn2("absolute inset-0 rounded-full border-solid transition-all duration-fast", isSelected ? "border-[1.5px] border-transparent" : isActive ? "border-[1.5px] border-control" : "border-[1.5px] border-border")
|
|
248
248
|
}),
|
|
249
249
|
/* @__PURE__ */ jsx(AnimatePresence, {
|
|
250
250
|
children: isSelected && /* @__PURE__ */ jsx(motion.div, {
|
|
@@ -255,16 +255,16 @@ var RadioItem = forwardRef(({ label, index, selected, onSelect, value, className
|
|
|
255
255
|
},
|
|
256
256
|
animate: { opacity: 1, scale: 1 },
|
|
257
257
|
exit: { opacity: 0, scale: 0.3, transition: { duration: 0.04 } },
|
|
258
|
-
transition:
|
|
258
|
+
transition: spring2.fast,
|
|
259
259
|
children: /* @__PURE__ */ jsx("div", {
|
|
260
|
-
className:
|
|
260
|
+
className: cn2("rounded-full bg-foreground", compact ? "w-[7px] h-[7px]" : "w-[8px] h-[8px]")
|
|
261
261
|
})
|
|
262
262
|
})
|
|
263
263
|
})
|
|
264
264
|
]
|
|
265
265
|
}),
|
|
266
266
|
/* @__PURE__ */ jsxs("span", {
|
|
267
|
-
className:
|
|
267
|
+
className: cn2("inline-grid", sizeClasses.text),
|
|
268
268
|
children: [
|
|
269
269
|
/* @__PURE__ */ jsx("span", {
|
|
270
270
|
className: "col-start-1 row-start-1 invisible [text-box:trim-both_cap_alphabetic] weight-semibold",
|
|
@@ -272,7 +272,7 @@ var RadioItem = forwardRef(({ label, index, selected, onSelect, value, className
|
|
|
272
272
|
children: label
|
|
273
273
|
}),
|
|
274
274
|
/* @__PURE__ */ jsx("span", {
|
|
275
|
-
className:
|
|
275
|
+
className: cn2("col-start-1 row-start-1 transition-[color,font-variation-settings] duration-fast [text-box:trim-both_cap_alphabetic]", isSelected || isActive ? "text-foreground" : "text-muted-foreground", isSelected ? "weight-semibold" : "weight-normal"),
|
|
276
276
|
children: label
|
|
277
277
|
})
|
|
278
278
|
]
|
|
@@ -286,8 +286,8 @@ var RadioItem = forwardRef(({ label, index, selected, onSelect, value, className
|
|
|
286
286
|
]
|
|
287
287
|
});
|
|
288
288
|
});
|
|
289
|
-
|
|
290
|
-
Object.assign(
|
|
291
|
-
var radio_group_default =
|
|
289
|
+
RadioItem2.displayName = "RadioItem";
|
|
290
|
+
Object.assign(RadioGroup2, { Item: RadioItem2 });
|
|
291
|
+
var radio_group_default = RadioGroup2;
|
|
292
292
|
|
|
293
|
-
export {
|
|
293
|
+
export { RadioGroup2, RadioItem2, radio_group_default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./components-
|
|
2
|
+
fieldLabel,
|
|
3
|
+
ScrollColumn
|
|
4
|
+
} from "./components-9jvzzvt1.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, {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cn2
|
|
3
|
+
} from "./components-ezxhrmer.js";
|
|
1
4
|
import {
|
|
2
5
|
button_default
|
|
3
|
-
} from "./components-
|
|
6
|
+
} from "./components-b2wyq2cq.js";
|
|
4
7
|
import {
|
|
5
8
|
useControllableState
|
|
6
|
-
} from "./components-
|
|
7
|
-
import {
|
|
8
|
-
spring
|
|
9
|
-
} from "./components-vc1k7yv2.js";
|
|
9
|
+
} from "./components-n7mjr357.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./components-
|
|
11
|
+
spring2
|
|
12
|
+
} from "./components-1v7rxytx.js";
|
|
13
13
|
|
|
14
14
|
// primitives/motion/index.tsx
|
|
15
15
|
import { MotionConfig, motion } from "motion/react";
|
|
16
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
-
function
|
|
17
|
+
function Motion2({
|
|
18
18
|
tier = "moderate",
|
|
19
19
|
show,
|
|
20
20
|
defaultShow = true,
|
|
@@ -25,12 +25,12 @@ function Motion({
|
|
|
25
25
|
children
|
|
26
26
|
}) {
|
|
27
27
|
const [shown, setShown] = useControllableState(show, defaultShow, onShowChange);
|
|
28
|
-
const enter =
|
|
28
|
+
const enter = spring2[tier];
|
|
29
29
|
const leave = sameExit ? enter : enter.exit;
|
|
30
30
|
return /* @__PURE__ */ jsx(MotionConfig, {
|
|
31
31
|
reducedMotion,
|
|
32
32
|
children: /* @__PURE__ */ jsxs("div", {
|
|
33
|
-
className:
|
|
33
|
+
className: cn2("flex flex-col items-center gap-3", className),
|
|
34
34
|
children: [
|
|
35
35
|
/* @__PURE__ */ jsx(motion.div, {
|
|
36
36
|
initial: false,
|
|
@@ -76,4 +76,4 @@ function Motion({
|
|
|
76
76
|
})
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
export {
|
|
79
|
+
export { Motion2 };
|