@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,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
MenuItem
|
|
6
|
-
} from "./components-40j34hdb.js";
|
|
7
|
-
import {
|
|
8
|
-
SizeProvider
|
|
9
|
-
} from "./components-vb033rns.js";
|
|
2
|
+
useMorphOrigin,
|
|
3
|
+
useMorph
|
|
4
|
+
} from "./components-hqeq3w9q.js";
|
|
10
5
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
popupViewportClass
|
|
14
|
-
} from "./components-jw16snbn.js";
|
|
6
|
+
cn2
|
|
7
|
+
} from "./components-ezxhrmer.js";
|
|
15
8
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./components-
|
|
18
|
-
import {
|
|
19
|
-
SURFACE_BG,
|
|
20
|
-
SURFACE_SHADOW,
|
|
21
|
-
SurfaceProvider,
|
|
22
|
-
useSurface
|
|
23
|
-
} from "./components-csxz9f52.js";
|
|
9
|
+
FluidHoverHighlight2
|
|
10
|
+
} from "./components-kvr7f9hy.js";
|
|
24
11
|
import {
|
|
25
12
|
MorphSurface
|
|
26
|
-
} from "./components-
|
|
13
|
+
} from "./components-0q0sqfh4.js";
|
|
27
14
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./components-
|
|
15
|
+
shapeMap
|
|
16
|
+
} from "./components-cv16mryv.js";
|
|
30
17
|
import {
|
|
31
|
-
|
|
32
|
-
} from "./components-
|
|
18
|
+
useSize2
|
|
19
|
+
} from "./components-0sn7ypjw.js";
|
|
33
20
|
import {
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
SURFACE_BG,
|
|
22
|
+
SURFACE_SHADOW,
|
|
23
|
+
useSurface2,
|
|
24
|
+
SurfaceProvider2
|
|
25
|
+
} from "./components-zx6b6yby.js";
|
|
36
26
|
import {
|
|
37
27
|
useControllableState
|
|
38
|
-
} from "./components-
|
|
28
|
+
} from "./components-n7mjr357.js";
|
|
29
|
+
import {
|
|
30
|
+
useFluidHover2
|
|
31
|
+
} from "./components-59efxjd9.js";
|
|
39
32
|
import {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
} from "./components-7nww01w4.js";
|
|
33
|
+
ScrollArea2
|
|
34
|
+
} from "./components-hawvy2qz.js";
|
|
43
35
|
import {
|
|
44
|
-
|
|
45
|
-
} from "./components-
|
|
36
|
+
SizeProvider2
|
|
37
|
+
} from "./components-jjw69c4c.js";
|
|
46
38
|
import {
|
|
47
|
-
|
|
48
|
-
|
|
39
|
+
DropdownContext,
|
|
40
|
+
MenuItem2,
|
|
41
|
+
DropdownLabel2,
|
|
42
|
+
DropdownSeparator2
|
|
43
|
+
} from "./components-a86dytt0.js";
|
|
44
|
+
import {
|
|
45
|
+
popupScrollAreaClass,
|
|
46
|
+
popupViewportClass,
|
|
47
|
+
isDisabledRow
|
|
48
|
+
} from "./components-vynjtrk6.js";
|
|
49
49
|
|
|
50
50
|
// components/overlays/context-menu/index.tsx
|
|
51
51
|
import { ContextMenu as ContextMenuPrimitive } from "@base-ui/react/context-menu";
|
|
@@ -64,11 +64,11 @@ var ContextMenuContext = createContext({ open: false, origin: { current: {} } })
|
|
|
64
64
|
var ShortcutContext = createContext(undefined);
|
|
65
65
|
function RowShortcut() {
|
|
66
66
|
const shortcut = useContext(ShortcutContext);
|
|
67
|
-
const compact =
|
|
67
|
+
const compact = useSize2().variant === "compact";
|
|
68
68
|
if (!shortcut)
|
|
69
69
|
return null;
|
|
70
70
|
return /* @__PURE__ */ jsx("kbd", {
|
|
71
|
-
className:
|
|
71
|
+
className: cn2("shrink-0 pl-4 font-sans text-muted-foreground", compact ? "text-caption-compact" : "text-caption"),
|
|
72
72
|
children: shortcut
|
|
73
73
|
});
|
|
74
74
|
}
|
|
@@ -106,21 +106,21 @@ function renderMenuItem({
|
|
|
106
106
|
]
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
-
var
|
|
109
|
+
var ContextMenuItem2 = forwardRef(({ shortcut, ...props }, ref) => /* @__PURE__ */ jsx(ShortcutContext.Provider, {
|
|
110
110
|
value: shortcut,
|
|
111
|
-
children: /* @__PURE__ */ jsx(
|
|
111
|
+
children: /* @__PURE__ */ jsx(MenuItem2, {
|
|
112
112
|
ref,
|
|
113
113
|
...props
|
|
114
114
|
})
|
|
115
115
|
}));
|
|
116
|
-
|
|
117
|
-
var
|
|
116
|
+
ContextMenuItem2.displayName = "ContextMenuItem";
|
|
117
|
+
var ContextMenuContent2 = forwardRef(({ from = "pointer", effect, hideSource, tier = "moderate", container, className, children }, ref) => {
|
|
118
118
|
const { open, origin } = useContext(ContextMenuContext);
|
|
119
119
|
const morph = useMorph(open, origin, { from, effect, hideSource, tier });
|
|
120
120
|
useImperativeHandle(ref, () => morph.popup, [morph.popup]);
|
|
121
|
-
const level = Math.min(
|
|
121
|
+
const level = Math.min(useSurface2() + 2, 8);
|
|
122
122
|
const containerRef = useRef(null);
|
|
123
|
-
const hover =
|
|
123
|
+
const hover = useFluidHover2(containerRef, { isItemDisabled: isDisabledRow });
|
|
124
124
|
const { activeIndex, setActiveIndex, handlers, registerItem, remeasure } = hover;
|
|
125
125
|
useEffect(() => {
|
|
126
126
|
if (open)
|
|
@@ -149,22 +149,22 @@ var ContextMenuContent = forwardRef(({ from = "pointer", effect, hideSource, tie
|
|
|
149
149
|
setActiveIndex(null);
|
|
150
150
|
},
|
|
151
151
|
className: "relative select-none outline-none",
|
|
152
|
-
children: /* @__PURE__ */ jsx(
|
|
152
|
+
children: /* @__PURE__ */ jsx(SurfaceProvider2, {
|
|
153
153
|
value: level,
|
|
154
154
|
children: /* @__PURE__ */ jsx(MorphSurface, {
|
|
155
155
|
morph,
|
|
156
156
|
bg: SURFACE_BG[level],
|
|
157
157
|
shadow: SURFACE_SHADOW[3],
|
|
158
158
|
radius: shape.container,
|
|
159
|
-
className:
|
|
160
|
-
children: /* @__PURE__ */ jsx(
|
|
159
|
+
className: cn2("flex w-56 max-h-[min(480px,var(--available-height))] flex-col overflow-hidden", shape.container, className),
|
|
160
|
+
children: /* @__PURE__ */ jsx(ScrollArea2, {
|
|
161
161
|
className: popupScrollAreaClass,
|
|
162
|
-
viewportClassName:
|
|
162
|
+
viewportClassName: cn2(popupViewportClass, "scroll-fade"),
|
|
163
163
|
children: /* @__PURE__ */ jsxs("div", {
|
|
164
164
|
ref: containerRef,
|
|
165
165
|
className: "relative flex flex-col p-1",
|
|
166
166
|
children: [
|
|
167
|
-
/* @__PURE__ */ jsx(
|
|
167
|
+
/* @__PURE__ */ jsx(FluidHoverHighlight2, {
|
|
168
168
|
hover,
|
|
169
169
|
hidden: !open,
|
|
170
170
|
className: shape.bg
|
|
@@ -182,8 +182,8 @@ var ContextMenuContent = forwardRef(({ from = "pointer", effect, hideSource, tie
|
|
|
182
182
|
})
|
|
183
183
|
});
|
|
184
184
|
});
|
|
185
|
-
|
|
186
|
-
function
|
|
185
|
+
ContextMenuContent2.displayName = "ContextMenuContent";
|
|
186
|
+
function ContextMenu2({ open, defaultOpen = false, onOpenChange, disabled = false, size, children }) {
|
|
187
187
|
const [current, setCurrent] = useControllableState(open, defaultOpen, onOpenChange);
|
|
188
188
|
const { origin, capture } = useMorphOrigin();
|
|
189
189
|
const ctx = useMemo(() => ({ open: current, origin }), [current, origin]);
|
|
@@ -200,16 +200,16 @@ function ContextMenu({ open, defaultOpen = false, onOpenChange, disabled = false
|
|
|
200
200
|
children
|
|
201
201
|
})
|
|
202
202
|
});
|
|
203
|
-
return size ? /* @__PURE__ */ jsx(
|
|
203
|
+
return size ? /* @__PURE__ */ jsx(SizeProvider2, {
|
|
204
204
|
size,
|
|
205
205
|
children: root
|
|
206
206
|
}) : root;
|
|
207
207
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
var context_menu_default =
|
|
208
|
+
ContextMenu2.Trigger = ContextMenuPrimitive.Trigger;
|
|
209
|
+
ContextMenu2.Content = ContextMenuContent2;
|
|
210
|
+
ContextMenu2.Item = ContextMenuItem2;
|
|
211
|
+
ContextMenu2.Label = DropdownLabel2;
|
|
212
|
+
ContextMenu2.Separator = DropdownSeparator2;
|
|
213
|
+
var context_menu_default = ContextMenu2;
|
|
214
214
|
|
|
215
|
-
export {
|
|
215
|
+
export { ContextMenuItem2, ContextMenuContent2, ContextMenu2, context_menu_default };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useShape
|
|
3
|
-
} from "./components-7zp99w5d.js";
|
|
4
1
|
import {
|
|
5
2
|
useReduceMotion
|
|
6
|
-
} from "./components-
|
|
3
|
+
} from "./components-men63rwj.js";
|
|
4
|
+
import {
|
|
5
|
+
useShape
|
|
6
|
+
} from "./components-cv16mryv.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./components-
|
|
8
|
+
useSizeVariant2
|
|
9
|
+
} from "./components-0sn7ypjw.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./components-
|
|
11
|
+
cn2
|
|
12
|
+
} from "./components-ezxhrmer.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./components-
|
|
14
|
+
spring2
|
|
15
|
+
} from "./components-1v7rxytx.js";
|
|
16
16
|
|
|
17
17
|
// components/button/index.tsx
|
|
18
18
|
import { Button as ButtonPrimitive } from "@base-ui/react/button";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
useRef
|
|
27
27
|
} from "react";
|
|
28
28
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
29
|
-
var
|
|
29
|
+
var buttonVariants2 = cva([
|
|
30
30
|
"group relative isolate inline-flex items-center justify-center outline-none cursor-pointer",
|
|
31
31
|
"transition-[color,opacity] duration-fast",
|
|
32
32
|
"disabled:opacity-50 disabled:pointer-events-none",
|
|
@@ -78,7 +78,7 @@ var activeBgVariants = {
|
|
|
78
78
|
tertiary: "bg-active shadow-[0_0_0_1px_var(--border),inset_0_0_0_0px_var(--border)] group-active:shadow-[0_0_0_0px_var(--border),inset_0_0_0_1px_var(--border)]",
|
|
79
79
|
ghost: "bg-active shadow-[0_0_0_1px_var(--active)] group-active:shadow-[0_0_0_0px_var(--active)]"
|
|
80
80
|
};
|
|
81
|
-
var { exit: _exit, ...enter } =
|
|
81
|
+
var { exit: _exit, ...enter } = spring2.moderate;
|
|
82
82
|
function useLoadingMorph(loading) {
|
|
83
83
|
const surface = useRef(null);
|
|
84
84
|
const progress = useMotionValue(loading ? 1 : 0);
|
|
@@ -112,7 +112,7 @@ function useLoadingMorph(loading) {
|
|
|
112
112
|
}, [loading, reduced]);
|
|
113
113
|
return surface;
|
|
114
114
|
}
|
|
115
|
-
var
|
|
115
|
+
var Button2 = forwardRef(({
|
|
116
116
|
className,
|
|
117
117
|
variant,
|
|
118
118
|
size,
|
|
@@ -128,7 +128,7 @@ var Button = forwardRef(({
|
|
|
128
128
|
}, ref) => {
|
|
129
129
|
const asChildElement = asChild && isValidElement(children) ? children : null;
|
|
130
130
|
const label = asChildElement ? asChildElement.props.children : children;
|
|
131
|
-
const contextSize =
|
|
131
|
+
const contextSize = useSizeVariant2();
|
|
132
132
|
const resolvedSize = size ? legacySizeAliases[size] ?? size : contextSize === "compact" ? "compact" : "default";
|
|
133
133
|
const isIconOnly = resolvedSize === "icon" || resolvedSize === "icon-compact";
|
|
134
134
|
const isCompact = resolvedSize === "compact" || resolvedSize === "icon-compact";
|
|
@@ -142,13 +142,13 @@ var Button = forwardRef(({
|
|
|
142
142
|
/* @__PURE__ */ jsx("span", {
|
|
143
143
|
ref: surface,
|
|
144
144
|
"aria-hidden": true,
|
|
145
|
-
className:
|
|
145
|
+
className: cn2("absolute inset-px rounded-[inherit] transition-[box-shadow,background-color] [transition-duration:180ms,80ms] [transition-timing-function:cubic-bezier(0.23,1,0.32,1),ease] group-active:[transition-duration:80ms,80ms]", bgClass)
|
|
146
146
|
}),
|
|
147
147
|
/* @__PURE__ */ jsx(motion.span, {
|
|
148
148
|
className: "relative inline-flex items-center justify-center gap-[inherit]",
|
|
149
149
|
initial: false,
|
|
150
150
|
animate: { opacity: loading ? 0 : 1 },
|
|
151
|
-
transition: loading ?
|
|
151
|
+
transition: loading ? spring2.fast.exit : enter,
|
|
152
152
|
children: isIconOnly ? /* @__PURE__ */ jsx("span", {
|
|
153
153
|
className: "[&_svg]:stroke-[1.5] [&_svg]:transition-[stroke-width] [&_svg]:duration-fast group-hover:[&_svg]:stroke-[2]",
|
|
154
154
|
children: label
|
|
@@ -178,7 +178,7 @@ var Button = forwardRef(({
|
|
|
178
178
|
className: "absolute inset-0 flex items-center justify-center",
|
|
179
179
|
initial: { opacity: 0, scale: 0.6 },
|
|
180
180
|
animate: { opacity: 1, scale: 1 },
|
|
181
|
-
exit: { opacity: 0, scale: 0.6, transition:
|
|
181
|
+
exit: { opacity: 0, scale: 0.6, transition: spring2.fast.exit },
|
|
182
182
|
transition: enter,
|
|
183
183
|
children: /* @__PURE__ */ jsx("svg", {
|
|
184
184
|
className: spinnerSizeClass,
|
|
@@ -200,7 +200,7 @@ var Button = forwardRef(({
|
|
|
200
200
|
})
|
|
201
201
|
]
|
|
202
202
|
});
|
|
203
|
-
const rootClassName =
|
|
203
|
+
const rootClassName = cn2(buttonVariants2({
|
|
204
204
|
variant,
|
|
205
205
|
size: resolvedSize,
|
|
206
206
|
iconLeft: !isIconOnly && !!LeadingIcon,
|
|
@@ -212,7 +212,7 @@ var Button = forwardRef(({
|
|
|
212
212
|
...props,
|
|
213
213
|
ref,
|
|
214
214
|
"aria-busy": loading || undefined,
|
|
215
|
-
className:
|
|
215
|
+
className: cn2(rootClassName, childProps.className),
|
|
216
216
|
style: { ...style, ...childProps.style }
|
|
217
217
|
}, internals);
|
|
218
218
|
}
|
|
@@ -226,7 +226,7 @@ var Button = forwardRef(({
|
|
|
226
226
|
children: internals
|
|
227
227
|
});
|
|
228
228
|
});
|
|
229
|
-
|
|
230
|
-
var button_default =
|
|
229
|
+
Button2.displayName = "Button";
|
|
230
|
+
var button_default = Button2;
|
|
231
231
|
|
|
232
|
-
export {
|
|
232
|
+
export { buttonVariants2, Button2, button_default };
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./components-
|
|
2
|
+
useReduceMotion
|
|
3
|
+
} from "./components-men63rwj.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./components-
|
|
5
|
+
GOO_BLUR_RATIO
|
|
6
|
+
} from "./components-hqeq3w9q.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./components-
|
|
8
|
+
cn2
|
|
9
|
+
} from "./components-ezxhrmer.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./components-
|
|
11
|
+
FluidHoverHighlight2
|
|
12
|
+
} from "./components-kvr7f9hy.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./components-e46kf6cp.js";
|
|
14
|
+
useIcon
|
|
15
|
+
} from "./components-zrkzcayz.js";
|
|
17
16
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./components-
|
|
17
|
+
GooFilter
|
|
18
|
+
} from "./components-0q0sqfh4.js";
|
|
20
19
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./components-
|
|
20
|
+
useShape
|
|
21
|
+
} from "./components-cv16mryv.js";
|
|
23
22
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./components-
|
|
23
|
+
useSize2
|
|
24
|
+
} from "./components-0sn7ypjw.js";
|
|
26
25
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./components-
|
|
26
|
+
useControllableState
|
|
27
|
+
} from "./components-n7mjr357.js";
|
|
29
28
|
import {
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
useFluidHover2,
|
|
30
|
+
useRegisterFluidHoverItem2
|
|
31
|
+
} from "./components-59efxjd9.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./components-
|
|
33
|
+
SizeProvider2
|
|
34
|
+
} from "./components-jjw69c4c.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./components-
|
|
36
|
+
spring2
|
|
37
|
+
} from "./components-1v7rxytx.js";
|
|
38
38
|
|
|
39
|
-
// components/
|
|
39
|
+
// components/accordion/index.tsx
|
|
40
40
|
import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
|
|
41
41
|
import { AnimatePresence, animate, motion, useMotionValue, useTransform } from "motion/react";
|
|
42
42
|
import {
|
|
@@ -65,13 +65,13 @@ function useAccordionItemContext() {
|
|
|
65
65
|
throw new Error("AccordionTrigger/AccordionContent must be used within an AccordionItem");
|
|
66
66
|
return ctx;
|
|
67
67
|
}
|
|
68
|
-
var
|
|
68
|
+
var AccordionGroup2 = forwardRef((props, ref) => {
|
|
69
69
|
const { children, highlight = "item", type = "single", size, className, ...rest } = props;
|
|
70
70
|
const containerRef = useRef(null);
|
|
71
71
|
const fullItemElementsRef = useRef(new Map);
|
|
72
72
|
const [openItemRects, setOpenItemRects] = useState(new Map);
|
|
73
73
|
const openItemRectsRef = useRef(openItemRects);
|
|
74
|
-
const hover =
|
|
74
|
+
const hover = useFluidHover2(containerRef);
|
|
75
75
|
const { activeIndex, setActiveIndex, itemRects, handlers, registerItem, measureItems } = hover;
|
|
76
76
|
const registerFullItem = useCallback((index, element) => {
|
|
77
77
|
if (element) {
|
|
@@ -229,7 +229,7 @@ var AccordionGroup = forwardRef((props, ref) => {
|
|
|
229
229
|
setFocusedIndex(null);
|
|
230
230
|
setActiveIndex(null);
|
|
231
231
|
},
|
|
232
|
-
className:
|
|
232
|
+
className: cn2("relative flex flex-col w-72 max-w-full", className),
|
|
233
233
|
...htmlProps,
|
|
234
234
|
children: [
|
|
235
235
|
/* @__PURE__ */ jsx(AnimatePresence, {
|
|
@@ -249,19 +249,19 @@ var AccordionGroup = forwardRef((props, ref) => {
|
|
|
249
249
|
height: rect.height,
|
|
250
250
|
opacity: isHoveringNonOpen ? 0.7 : 1
|
|
251
251
|
},
|
|
252
|
-
exit: { opacity: 0, transition:
|
|
252
|
+
exit: { opacity: 0, transition: spring2.moderate.exit },
|
|
253
253
|
transition: {
|
|
254
254
|
top: { duration: 0 },
|
|
255
255
|
left: { duration: 0 },
|
|
256
256
|
width: { duration: 0 },
|
|
257
257
|
height: { duration: 0 },
|
|
258
|
-
opacity: { duration:
|
|
258
|
+
opacity: { duration: spring2.moderate.exit.duration }
|
|
259
259
|
}
|
|
260
260
|
}, `expanded-${idx}`))
|
|
261
261
|
}),
|
|
262
|
-
/* @__PURE__ */ jsx(
|
|
262
|
+
/* @__PURE__ */ jsx(FluidHoverHighlight2, {
|
|
263
263
|
hover,
|
|
264
|
-
className:
|
|
264
|
+
className: cn2(shape.bg, "z-1"),
|
|
265
265
|
transition: reflowing ? false : undefined
|
|
266
266
|
}),
|
|
267
267
|
/* @__PURE__ */ jsx(AnimatePresence, {
|
|
@@ -274,10 +274,10 @@ var AccordionGroup = forwardRef((props, ref) => {
|
|
|
274
274
|
width: focusRect.width + 4,
|
|
275
275
|
height: focusRect.height + 4
|
|
276
276
|
},
|
|
277
|
-
exit: { opacity: 0, transition:
|
|
277
|
+
exit: { opacity: 0, transition: spring2.fast.exit },
|
|
278
278
|
transition: {
|
|
279
|
-
...reflowing ? { duration: 0 } :
|
|
280
|
-
opacity: { duration:
|
|
279
|
+
...reflowing ? { duration: 0 } : spring2.fast,
|
|
280
|
+
opacity: { duration: spring2.fast.duration }
|
|
281
281
|
}
|
|
282
282
|
})
|
|
283
283
|
}),
|
|
@@ -287,13 +287,13 @@ var AccordionGroup = forwardRef((props, ref) => {
|
|
|
287
287
|
}
|
|
288
288
|
})
|
|
289
289
|
});
|
|
290
|
-
return size ? /* @__PURE__ */ jsx(
|
|
290
|
+
return size ? /* @__PURE__ */ jsx(SizeProvider2, {
|
|
291
291
|
size,
|
|
292
292
|
children: group
|
|
293
293
|
}) : group;
|
|
294
294
|
});
|
|
295
|
-
|
|
296
|
-
var
|
|
295
|
+
AccordionGroup2.displayName = "AccordionGroup";
|
|
296
|
+
var Accordion2 = forwardRef(({
|
|
297
297
|
children,
|
|
298
298
|
type = "single",
|
|
299
299
|
collapsible = true,
|
|
@@ -324,7 +324,7 @@ var Accordion = forwardRef(({
|
|
|
324
324
|
return /* @__PURE__ */ jsx("div", {
|
|
325
325
|
...restRoot,
|
|
326
326
|
ref,
|
|
327
|
-
className:
|
|
327
|
+
className: cn2("w-72 max-w-full flex flex-col", className),
|
|
328
328
|
...props,
|
|
329
329
|
children: /* @__PURE__ */ jsx(StandaloneOpenContext.Provider, {
|
|
330
330
|
value: openValues,
|
|
@@ -336,15 +336,15 @@ var Accordion = forwardRef(({
|
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
338
|
});
|
|
339
|
-
return size ? /* @__PURE__ */ jsx(
|
|
339
|
+
return size ? /* @__PURE__ */ jsx(SizeProvider2, {
|
|
340
340
|
size,
|
|
341
341
|
children: root
|
|
342
342
|
}) : root;
|
|
343
343
|
});
|
|
344
|
-
|
|
344
|
+
Accordion2.displayName = "Accordion";
|
|
345
345
|
var StandaloneOpenContext = createContext(new Set);
|
|
346
346
|
var StandaloneHighlightContext = createContext(undefined);
|
|
347
|
-
var
|
|
347
|
+
var AccordionItem2 = forwardRef(({ value, index, disabled, highlight: highlightProp, children, className, ...props }, ref) => {
|
|
348
348
|
const internalRef = useRef(null);
|
|
349
349
|
const groupCtx = useAccordionGroup();
|
|
350
350
|
const standaloneOpen = useContext(StandaloneOpenContext);
|
|
@@ -353,7 +353,7 @@ var AccordionItem = forwardRef(({ value, index, disabled, highlight: highlightPr
|
|
|
353
353
|
const isOpen = groupCtx?.grouped ? groupCtx.openValues.has(value) : standaloneOpen.has(value);
|
|
354
354
|
const triggerRef = useRef(null);
|
|
355
355
|
const press = useRef(null);
|
|
356
|
-
|
|
356
|
+
useRegisterFluidHoverItem2(groupCtx?.grouped ? groupCtx.registerItem : undefined, index, triggerRef);
|
|
357
357
|
useEffect(() => {
|
|
358
358
|
if (groupCtx?.grouped && index !== undefined) {
|
|
359
359
|
if (isOpen) {
|
|
@@ -381,7 +381,7 @@ var AccordionItem = forwardRef(({ value, index, disabled, highlight: highlightPr
|
|
|
381
381
|
return /* @__PURE__ */ jsx("div", {
|
|
382
382
|
...restItem,
|
|
383
383
|
"data-fluid-hover-index": index,
|
|
384
|
-
className:
|
|
384
|
+
className: cn2("relative", className),
|
|
385
385
|
...props,
|
|
386
386
|
children
|
|
387
387
|
});
|
|
@@ -389,13 +389,13 @@ var AccordionItem = forwardRef(({ value, index, disabled, highlight: highlightPr
|
|
|
389
389
|
})
|
|
390
390
|
});
|
|
391
391
|
});
|
|
392
|
-
|
|
393
|
-
var
|
|
392
|
+
AccordionItem2.displayName = "AccordionItem";
|
|
393
|
+
var AccordionTrigger2 = forwardRef(({ children, className, ...props }, ref) => {
|
|
394
394
|
const ChevronRight = useIcon("chevron-right");
|
|
395
395
|
const groupCtx = useAccordionGroup();
|
|
396
396
|
const { index, isOpen, triggerRef, highlight, press } = useAccordionItemContext();
|
|
397
397
|
const shape = useShape();
|
|
398
|
-
const sizeClasses =
|
|
398
|
+
const sizeClasses = useSize2();
|
|
399
399
|
const [isHovered, setIsHovered] = useState(false);
|
|
400
400
|
const isActive = groupCtx?.grouped ? groupCtx.activeIndex === index : isHovered;
|
|
401
401
|
const capture = (event) => {
|
|
@@ -407,11 +407,11 @@ var AccordionTrigger = forwardRef(({ children, className, ...props }, ref) => {
|
|
|
407
407
|
render: /* @__PURE__ */ jsx("div", {}),
|
|
408
408
|
children: /* @__PURE__ */ jsxs(AccordionPrimitive.Trigger, {
|
|
409
409
|
ref,
|
|
410
|
-
className:
|
|
410
|
+
className: cn2(`relative z-10 flex items-center ${sizeClasses.gap} ${shape.item} ${sizeClasses.px} ${sizeClasses.variant === "compact" ? "py-1" : "py-2"} w-full cursor-pointer outline-none select-none`, !groupCtx?.grouped && "focus-visible:ring-1 focus-visible:ring-focus-ring focus-visible:ring-offset-0", className),
|
|
411
411
|
...props,
|
|
412
412
|
children: [
|
|
413
413
|
/* @__PURE__ */ jsxs("span", {
|
|
414
|
-
className:
|
|
414
|
+
className: cn2("inline-grid flex-1 text-left", sizeClasses.text),
|
|
415
415
|
children: [
|
|
416
416
|
/* @__PURE__ */ jsx("span", {
|
|
417
417
|
className: "col-start-1 row-start-1 invisible weight-semibold",
|
|
@@ -419,7 +419,7 @@ var AccordionTrigger = forwardRef(({ children, className, ...props }, ref) => {
|
|
|
419
419
|
children
|
|
420
420
|
}),
|
|
421
421
|
/* @__PURE__ */ jsx("span", {
|
|
422
|
-
className:
|
|
422
|
+
className: cn2("col-start-1 row-start-1 transition-[color,font-variation-settings] duration-fast", isOpen || isActive ? "text-foreground" : "text-muted-foreground", isOpen ? "weight-semibold" : "weight-normal"),
|
|
423
423
|
children
|
|
424
424
|
})
|
|
425
425
|
]
|
|
@@ -427,11 +427,11 @@ var AccordionTrigger = forwardRef(({ children, className, ...props }, ref) => {
|
|
|
427
427
|
/* @__PURE__ */ jsx(motion.span, {
|
|
428
428
|
className: "shrink-0 inline-flex items-center justify-center",
|
|
429
429
|
animate: { rotate: isOpen ? 90 : 0 },
|
|
430
|
-
transition:
|
|
430
|
+
transition: spring2.fast,
|
|
431
431
|
children: /* @__PURE__ */ jsx(ChevronRight, {
|
|
432
432
|
size: sizeClasses.icon,
|
|
433
433
|
strokeWidth: isOpen || isActive ? 2 : 1.5,
|
|
434
|
-
className:
|
|
434
|
+
className: cn2("transition-[color,stroke-width] duration-fast", isOpen || isActive ? "text-foreground" : "text-muted-foreground")
|
|
435
435
|
})
|
|
436
436
|
})
|
|
437
437
|
]
|
|
@@ -455,8 +455,8 @@ var AccordionTrigger = forwardRef(({ children, className, ...props }, ref) => {
|
|
|
455
455
|
className: `absolute inset-0 ${shape.bg} bg-accent/20 dark:bg-accent/12 pointer-events-none`,
|
|
456
456
|
initial: { opacity: 0 },
|
|
457
457
|
animate: { opacity: 1 },
|
|
458
|
-
exit: { opacity: 0, transition:
|
|
459
|
-
transition: { duration:
|
|
458
|
+
exit: { opacity: 0, transition: spring2.moderate.exit },
|
|
459
|
+
transition: { duration: spring2.moderate.exit.duration }
|
|
460
460
|
})
|
|
461
461
|
}),
|
|
462
462
|
/* @__PURE__ */ jsx(AnimatePresence, {
|
|
@@ -464,15 +464,15 @@ var AccordionTrigger = forwardRef(({ children, className, ...props }, ref) => {
|
|
|
464
464
|
className: `absolute inset-0 z-1 ${shape.bg} bg-hover pointer-events-none`,
|
|
465
465
|
initial: { opacity: 0 },
|
|
466
466
|
animate: { opacity: 1 },
|
|
467
|
-
exit: { opacity: 0, transition:
|
|
468
|
-
transition: { duration:
|
|
467
|
+
exit: { opacity: 0, transition: spring2.fast.exit },
|
|
468
|
+
transition: { duration: spring2.fast.duration }
|
|
469
469
|
})
|
|
470
470
|
}),
|
|
471
471
|
triggerContent
|
|
472
472
|
]
|
|
473
473
|
});
|
|
474
474
|
});
|
|
475
|
-
|
|
475
|
+
AccordionTrigger2.displayName = "AccordionTrigger";
|
|
476
476
|
function grow(a, b, t) {
|
|
477
477
|
const p = Math.min(1, t);
|
|
478
478
|
const at = (from, to) => from + (to - from) * p;
|
|
@@ -489,11 +489,11 @@ function place(el, { x, y, w, h, r }) {
|
|
|
489
489
|
el.style.height = `${h}px`;
|
|
490
490
|
el.style.borderRadius = `${r}px`;
|
|
491
491
|
}
|
|
492
|
-
var
|
|
492
|
+
var AccordionContent2 = forwardRef(({ children, className, effect = "goo", tier = "slow", ...props }, ref) => {
|
|
493
493
|
const groupCtx = useAccordionGroup();
|
|
494
494
|
const { isOpen, highlight, press } = useAccordionItemContext();
|
|
495
495
|
const shape = useShape();
|
|
496
|
-
const sizeClasses =
|
|
496
|
+
const sizeClasses = useSize2();
|
|
497
497
|
const reduceMotion = useReduceMotion();
|
|
498
498
|
const gooId = `accordion-goo-${useId().replace(/:/g, "")}`;
|
|
499
499
|
const progress = useMotionValue(isOpen ? 1 : 0);
|
|
@@ -569,7 +569,7 @@ var AccordionContent = forwardRef(({ children, className, effect = "goo", tier =
|
|
|
569
569
|
if (row.current)
|
|
570
570
|
row.current.style.height = `${g.row}px`;
|
|
571
571
|
render(progress.get());
|
|
572
|
-
const { exit, ...enter } =
|
|
572
|
+
const { exit, ...enter } = spring2[tier];
|
|
573
573
|
const controls = animate(progress, isOpen ? 1 : 0, {
|
|
574
574
|
...isOpen ? enter : exit,
|
|
575
575
|
onUpdate: render,
|
|
@@ -610,7 +610,7 @@ var AccordionContent = forwardRef(({ children, className, effect = "goo", tier =
|
|
|
610
610
|
className: "pointer-events-none absolute inset-0",
|
|
611
611
|
initial: false,
|
|
612
612
|
animate: { opacity: groupCtx?.dimOpen ? 0.7 : 1 },
|
|
613
|
-
transition: { duration:
|
|
613
|
+
transition: { duration: spring2.moderate.exit.duration },
|
|
614
614
|
children: /* @__PURE__ */ jsx(motion.div, {
|
|
615
615
|
className: "absolute inset-0",
|
|
616
616
|
style: { opacity: tint },
|
|
@@ -619,7 +619,7 @@ var AccordionContent = forwardRef(({ children, className, effect = "goo", tier =
|
|
|
619
619
|
children: [
|
|
620
620
|
/* @__PURE__ */ jsx("div", {
|
|
621
621
|
ref: refs.rest,
|
|
622
|
-
className:
|
|
622
|
+
className: cn2("absolute inset-0 bg-accent", shape.bg)
|
|
623
623
|
}),
|
|
624
624
|
effect === "goo" && /* @__PURE__ */ jsx(GooFilter, {
|
|
625
625
|
id: gooId,
|
|
@@ -632,7 +632,7 @@ var AccordionContent = forwardRef(({ children, className, effect = "goo", tier =
|
|
|
632
632
|
children: [
|
|
633
633
|
/* @__PURE__ */ jsx("div", {
|
|
634
634
|
ref: refs.row,
|
|
635
|
-
className:
|
|
635
|
+
className: cn2("absolute inset-x-0 top-0 bg-accent", shape.bg)
|
|
636
636
|
}),
|
|
637
637
|
/* @__PURE__ */ jsx("div", {
|
|
638
638
|
ref: refs.shape,
|
|
@@ -646,7 +646,7 @@ var AccordionContent = forwardRef(({ children, className, effect = "goo", tier =
|
|
|
646
646
|
}),
|
|
647
647
|
/* @__PURE__ */ jsx("div", {
|
|
648
648
|
ref: refs.content,
|
|
649
|
-
className:
|
|
649
|
+
className: cn2("relative pt-1 text-muted-foreground", sizeClasses.px, sizeClasses.text, sizeClasses.variant === "compact" ? "pb-2.5" : "pb-3"),
|
|
650
650
|
children
|
|
651
651
|
})
|
|
652
652
|
]
|
|
@@ -655,13 +655,13 @@ var AccordionContent = forwardRef(({ children, className, effect = "goo", tier =
|
|
|
655
655
|
}
|
|
656
656
|
});
|
|
657
657
|
});
|
|
658
|
-
|
|
659
|
-
Object.assign(
|
|
660
|
-
Group:
|
|
661
|
-
Item:
|
|
662
|
-
Trigger:
|
|
663
|
-
Content:
|
|
658
|
+
AccordionContent2.displayName = "AccordionContent";
|
|
659
|
+
Object.assign(Accordion2, {
|
|
660
|
+
Group: AccordionGroup2,
|
|
661
|
+
Item: AccordionItem2,
|
|
662
|
+
Trigger: AccordionTrigger2,
|
|
663
|
+
Content: AccordionContent2
|
|
664
664
|
});
|
|
665
|
-
var accordion_default =
|
|
665
|
+
var accordion_default = Accordion2;
|
|
666
666
|
|
|
667
|
-
export {
|
|
667
|
+
export { AccordionGroup2, Accordion2, AccordionItem2, AccordionTrigger2, AccordionContent2, accordion_default };
|