@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
package/dist/preset.d.ts
CHANGED
|
@@ -101,4 +101,4 @@ declare const utilities: Record<string, Record<string, string>>;
|
|
|
101
101
|
declare const COMPONENT_DIRS: string[];
|
|
102
102
|
declare function modoUiContent(): string;
|
|
103
103
|
declare function presetModoUi(): Preset;
|
|
104
|
-
export {
|
|
104
|
+
export { COMPONENT_DIRS, presetModoUi as default, modoUiContent, presetModoUi, theme, utilities };
|
package/dist/preset.js
CHANGED
|
@@ -115,10 +115,10 @@ function presetModoUi() {
|
|
|
115
115
|
}
|
|
116
116
|
var preset_default = presetModoUi;
|
|
117
117
|
export {
|
|
118
|
-
|
|
119
|
-
theme,
|
|
120
|
-
presetModoUi,
|
|
121
|
-
modoUiContent,
|
|
118
|
+
COMPONENT_DIRS,
|
|
122
119
|
preset_default as default,
|
|
123
|
-
|
|
120
|
+
modoUiContent,
|
|
121
|
+
presetModoUi,
|
|
122
|
+
theme,
|
|
123
|
+
utilities
|
|
124
124
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../shared/components-
|
|
4
|
-
import"../../shared/components-
|
|
5
|
-
import"../../shared/components-
|
|
6
|
-
import"../../shared/components-
|
|
7
|
-
import"../../shared/components-
|
|
8
|
-
import"../../shared/components-kpbcms10.js";
|
|
2
|
+
Code2
|
|
3
|
+
} from "../../shared/components-s2bz1xpk.js";
|
|
4
|
+
import"../../shared/components-hawvy2qz.js";
|
|
5
|
+
import"../../shared/components-cv16mryv.js";
|
|
6
|
+
import"../../shared/components-zx6b6yby.js";
|
|
7
|
+
import"../../shared/components-ezxhrmer.js";
|
|
9
8
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Code2 as Code,
|
|
10
|
+
Code2 as default
|
|
12
11
|
};
|
|
@@ -28,4 +28,4 @@ type Element_12xgc = JSX_1kxb["Element"];
|
|
|
28
28
|
* @example {@include ./examples.mdx}
|
|
29
29
|
*/
|
|
30
30
|
declare function Craft({ bad, good, badNote, goodNote, className }: CraftProps): Element_12xgc;
|
|
31
|
-
export { Craft as default
|
|
31
|
+
export { CraftProps, Craft as default };
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Craft
|
|
3
|
-
} from "../../shared/components-
|
|
4
|
-
import"../../shared/components-
|
|
5
|
-
import"../../shared/components-
|
|
6
|
-
import"../../shared/components-
|
|
7
|
-
import"../../shared/components-
|
|
8
|
-
import"../../shared/components-
|
|
9
|
-
import"../../shared/components-0f0as45n.js";
|
|
10
|
-
import"../../shared/components-kpbcms10.js";
|
|
3
|
+
} from "../../shared/components-vfbhxf5r.js";
|
|
4
|
+
import"../../shared/components-7r3etddy.js";
|
|
5
|
+
import"../../shared/components-men63rwj.js";
|
|
6
|
+
import"../../shared/components-0sn7ypjw.js";
|
|
7
|
+
import"../../shared/components-cv16mryv.js";
|
|
8
|
+
import"../../shared/components-ezxhrmer.js";
|
|
11
9
|
export {
|
|
12
10
|
Craft as default
|
|
13
11
|
};
|
|
@@ -230,4 +230,4 @@ type FluidHoverComponent = ForwardRefExoticComponent<FluidHoverProps & RefAttrib
|
|
|
230
230
|
* @example {@include ./examples.mdx}
|
|
231
231
|
*/
|
|
232
232
|
declare const FluidHover: FluidHoverComponent;
|
|
233
|
-
export {
|
|
233
|
+
export { FluidHover, FluidHoverAxis, FluidHoverHighlight, FluidHoverHighlightProps, FluidHoverItem, FluidHoverItemProps, FluidHoverProps, ItemRect, UseFluidHoverOptions, UseFluidHoverReturn, FluidHover as default, useFluidHover, useRegisterFluidHoverItem };
|
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
FluidHoverItem2,
|
|
3
|
+
FluidHover2,
|
|
4
4
|
fluid_hover_default
|
|
5
|
-
} from "../../shared/components-
|
|
5
|
+
} from "../../shared/components-h2dpcwgc.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
} from "../../shared/components-
|
|
7
|
+
FluidHoverHighlight2
|
|
8
|
+
} from "../../shared/components-kvr7f9hy.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "../../shared/components-
|
|
13
|
-
import"../../shared/components-
|
|
14
|
-
import"../../shared/components-
|
|
15
|
-
import"../../shared/components-
|
|
16
|
-
import"../../shared/components-
|
|
17
|
-
import"../../shared/components-
|
|
18
|
-
import"../../shared/components-0f0as45n.js";
|
|
19
|
-
import"../../shared/components-kpbcms10.js";
|
|
10
|
+
useFluidHover2,
|
|
11
|
+
useRegisterFluidHoverItem2
|
|
12
|
+
} from "../../shared/components-59efxjd9.js";
|
|
13
|
+
import"../../shared/components-chacnk61.js";
|
|
14
|
+
import"../../shared/components-hqeq3w9q.js";
|
|
15
|
+
import"../../shared/components-men63rwj.js";
|
|
16
|
+
import"../../shared/components-cv16mryv.js";
|
|
17
|
+
import"../../shared/components-ezxhrmer.js";
|
|
20
18
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
FluidHover2 as FluidHover,
|
|
20
|
+
FluidHoverHighlight2 as FluidHoverHighlight,
|
|
21
|
+
FluidHoverItem2 as FluidHoverItem,
|
|
23
22
|
fluid_hover_default as default,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
FluidHover
|
|
23
|
+
useFluidHover2 as useFluidHover,
|
|
24
|
+
useRegisterFluidHoverItem2 as useRegisterFluidHoverItem
|
|
27
25
|
};
|
|
@@ -124,4 +124,4 @@ type Element_12xgc2 = JSX_1kxb2["Element"];
|
|
|
124
124
|
* @example {@include ./examples.mdx}
|
|
125
125
|
*/
|
|
126
126
|
declare function Morph({ from, effect, tier, hideSource, open, defaultOpen, onOpenChange, label, className, children }: MorphProps): Element_12xgc2;
|
|
127
|
-
export { Morph
|
|
127
|
+
export { Morph, MorphPart, MorphProps, Morph as default };
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../shared/components-
|
|
4
|
-
import"../../shared/components-5pkcfprd.js";
|
|
5
|
-
import"../../shared/components-csxz9f52.js";
|
|
2
|
+
Morph2
|
|
3
|
+
} from "../../shared/components-39jq9va1.js";
|
|
6
4
|
import {
|
|
7
|
-
|
|
8
|
-
} from "../../shared/components-
|
|
9
|
-
import"../../shared/components-
|
|
10
|
-
import"../../shared/components-
|
|
11
|
-
import"../../shared/components-
|
|
12
|
-
import"../../shared/components-
|
|
13
|
-
import"../../shared/components-
|
|
14
|
-
import"../../shared/components-
|
|
15
|
-
import"../../shared/components-
|
|
16
|
-
import"../../shared/components-
|
|
5
|
+
MorphPart2
|
|
6
|
+
} from "../../shared/components-0q0sqfh4.js";
|
|
7
|
+
import"../../shared/components-hqeq3w9q.js";
|
|
8
|
+
import"../../shared/components-b2wyq2cq.js";
|
|
9
|
+
import"../../shared/components-n7mjr357.js";
|
|
10
|
+
import"../../shared/components-men63rwj.js";
|
|
11
|
+
import"../../shared/components-0sn7ypjw.js";
|
|
12
|
+
import"../../shared/components-cv16mryv.js";
|
|
13
|
+
import"../../shared/components-zx6b6yby.js";
|
|
14
|
+
import"../../shared/components-ezxhrmer.js";
|
|
17
15
|
export {
|
|
18
|
-
|
|
19
|
-
MorphPart,
|
|
20
|
-
|
|
16
|
+
Morph2 as Morph,
|
|
17
|
+
MorphPart2 as MorphPart,
|
|
18
|
+
Morph2 as default
|
|
21
19
|
};
|
|
@@ -112,4 +112,4 @@ type Element_12xgc = JSX_1kxb["Element"];
|
|
|
112
112
|
* @example {@include ./examples.mdx}
|
|
113
113
|
*/
|
|
114
114
|
declare function Motion({ tier, show, defaultShow, onShowChange, sameExit, reducedMotion, className, children }: MotionProps): Element_12xgc;
|
|
115
|
-
export {
|
|
115
|
+
export { Motion, MotionProps, SpringTier, Motion as default, exitFallbackMs, spring };
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../shared/components-
|
|
4
|
-
import"../../shared/components-
|
|
5
|
-
import"../../shared/components-
|
|
6
|
-
import"../../shared/components-
|
|
7
|
-
import"../../shared/components-nnnd2xef.js";
|
|
2
|
+
Motion2
|
|
3
|
+
} from "../../shared/components-q5xj5c16.js";
|
|
4
|
+
import"../../shared/components-b2wyq2cq.js";
|
|
5
|
+
import"../../shared/components-n7mjr357.js";
|
|
6
|
+
import"../../shared/components-men63rwj.js";
|
|
8
7
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "../../shared/components-
|
|
12
|
-
import"../../shared/components-
|
|
13
|
-
import"../../shared/components-
|
|
14
|
-
import"../../shared/components-
|
|
8
|
+
spring2,
|
|
9
|
+
exitFallbackMs2
|
|
10
|
+
} from "../../shared/components-1v7rxytx.js";
|
|
11
|
+
import"../../shared/components-0sn7ypjw.js";
|
|
12
|
+
import"../../shared/components-cv16mryv.js";
|
|
13
|
+
import"../../shared/components-ezxhrmer.js";
|
|
15
14
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
Motion2 as Motion,
|
|
16
|
+
Motion2 as default,
|
|
17
|
+
exitFallbackMs2 as exitFallbackMs,
|
|
18
|
+
spring2 as spring
|
|
20
19
|
};
|
|
@@ -38,4 +38,4 @@ interface ScrollAreaStatics {
|
|
|
38
38
|
*/
|
|
39
39
|
declare const ScrollArea: ForwardRefExoticComponent<ScrollAreaProps & RefAttributes<HTMLDivElement>> & ScrollAreaStatics;
|
|
40
40
|
declare const ScrollBar: ForwardRefExoticComponent<Omit<Omit<ScrollAreaScrollbarProps_g9nf4s, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
41
|
-
export { ScrollArea
|
|
41
|
+
export { ScrollArea, ScrollAreaProps, ScrollBar, ScrollArea as default };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
ScrollArea2,
|
|
3
|
+
ScrollBar2,
|
|
4
4
|
scroll_area_default
|
|
5
|
-
} from "../../shared/components-
|
|
6
|
-
import"../../shared/components-
|
|
7
|
-
import"../../shared/components-
|
|
8
|
-
import"../../shared/components-kpbcms10.js";
|
|
5
|
+
} from "../../shared/components-hawvy2qz.js";
|
|
6
|
+
import"../../shared/components-cv16mryv.js";
|
|
7
|
+
import"../../shared/components-ezxhrmer.js";
|
|
9
8
|
export {
|
|
10
|
-
|
|
11
|
-
ScrollBar,
|
|
12
|
-
|
|
9
|
+
ScrollArea2 as ScrollArea,
|
|
10
|
+
ScrollBar2 as ScrollBar,
|
|
11
|
+
scroll_area_default as default
|
|
13
12
|
};
|
|
@@ -125,4 +125,4 @@ declare function SizeProvider({ children, size, defaultSize }: {
|
|
|
125
125
|
/** Uncontrolled initial variant, switchable via `useSizeContext().setSize`. Defaults to `'default'`. */
|
|
126
126
|
defaultSize?: "default" | "compact";
|
|
127
127
|
}): Element_12xgc;
|
|
128
|
-
export {
|
|
128
|
+
export { SizeClasses, SizeProvider, SizeVariant, TypeScaleRole, TypeScaleStep, SizeProvider as default, sizeMap, typeScale, useSize, useSizeContext, useSizeVariant, useTypeScale };
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../shared/components-
|
|
2
|
+
SizeProvider2
|
|
3
|
+
} from "../../shared/components-jjw69c4c.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "../../shared/components-
|
|
12
|
-
import"../../shared/components-kpbcms10.js";
|
|
5
|
+
sizeMap2,
|
|
6
|
+
typeScale2,
|
|
7
|
+
useTypeScale2,
|
|
8
|
+
useSizeVariant2,
|
|
9
|
+
useSize2,
|
|
10
|
+
useSizeContext2
|
|
11
|
+
} from "../../shared/components-0sn7ypjw.js";
|
|
13
12
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
SizeProvider2 as SizeProvider,
|
|
14
|
+
SizeProvider2 as default,
|
|
15
|
+
sizeMap2 as sizeMap,
|
|
16
|
+
typeScale2 as typeScale,
|
|
17
|
+
useSize2 as useSize,
|
|
18
|
+
useSizeContext2 as useSizeContext,
|
|
19
|
+
useSizeVariant2 as useSizeVariant,
|
|
20
|
+
useTypeScale2 as useTypeScale
|
|
22
21
|
};
|
|
@@ -66,4 +66,4 @@ interface ElevatedStatics {
|
|
|
66
66
|
* @example {@include ./examples.mdx}
|
|
67
67
|
*/
|
|
68
68
|
declare const Elevated: ForwardRefExoticComponent<ElevatedProps & RefAttributes<HTMLDivElement>> & ElevatedStatics;
|
|
69
|
-
export {
|
|
69
|
+
export { Elevated, ElevatedProps, SurfaceProvider, Elevated as default, surfaceClasses, useSurface };
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Elevated2,
|
|
3
3
|
surface_default
|
|
4
|
-
} from "../../shared/components-
|
|
4
|
+
} from "../../shared/components-vc7vq5nz.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "../../shared/components-
|
|
10
|
-
import"../../shared/components-
|
|
11
|
-
import"../../shared/components-kpbcms10.js";
|
|
6
|
+
surfaceClasses2,
|
|
7
|
+
useSurface2,
|
|
8
|
+
SurfaceProvider2
|
|
9
|
+
} from "../../shared/components-zx6b6yby.js";
|
|
10
|
+
import"../../shared/components-ezxhrmer.js";
|
|
12
11
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
Elevated2 as Elevated,
|
|
13
|
+
SurfaceProvider2 as SurfaceProvider,
|
|
15
14
|
surface_default as default,
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
surfaceClasses2 as surfaceClasses,
|
|
16
|
+
useSurface2 as useSurface
|
|
18
17
|
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cn2
|
|
3
|
+
} from "./components-ezxhrmer.js";
|
|
4
|
+
import {
|
|
5
|
+
FluidHoverHighlight2
|
|
6
|
+
} from "./components-kvr7f9hy.js";
|
|
7
|
+
import {
|
|
8
|
+
useSize2
|
|
9
|
+
} from "./components-0sn7ypjw.js";
|
|
10
|
+
import {
|
|
11
|
+
useFluidHover2,
|
|
12
|
+
useRegisterFluidHoverItem2
|
|
13
|
+
} from "./components-59efxjd9.js";
|
|
14
|
+
import {
|
|
15
|
+
SizeProvider2
|
|
16
|
+
} from "./components-jjw69c4c.js";
|
|
17
|
+
|
|
18
|
+
// components/table/index.tsx
|
|
19
|
+
import {
|
|
20
|
+
createContext,
|
|
21
|
+
forwardRef,
|
|
22
|
+
useContext,
|
|
23
|
+
useMemo,
|
|
24
|
+
useRef
|
|
25
|
+
} from "react";
|
|
26
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
27
|
+
var TableContext = createContext(null);
|
|
28
|
+
var Table2 = forwardRef(({ children, size, className, ...props }, ref) => {
|
|
29
|
+
const containerRef = useRef(null);
|
|
30
|
+
const sizeClasses = useSize2(size);
|
|
31
|
+
const hover = useFluidHover2(containerRef);
|
|
32
|
+
const { activeIndex, handlers, registerItem } = hover;
|
|
33
|
+
const contextValue = useMemo(() => ({ registerItem, activeIndex }), [registerItem, activeIndex]);
|
|
34
|
+
const table = /* @__PURE__ */ jsx(TableContext.Provider, {
|
|
35
|
+
value: contextValue,
|
|
36
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
37
|
+
ref: containerRef,
|
|
38
|
+
className: "relative",
|
|
39
|
+
onMouseEnter: handlers.onMouseEnter,
|
|
40
|
+
onMouseMove: handlers.onMouseMove,
|
|
41
|
+
onMouseLeave: handlers.onMouseLeave,
|
|
42
|
+
onClick: handlers.onClick,
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ jsx(FluidHoverHighlight2, {
|
|
45
|
+
hover
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ jsx("table", {
|
|
48
|
+
ref,
|
|
49
|
+
className: cn2("w-full border-collapse", sizeClasses.text, className),
|
|
50
|
+
...props,
|
|
51
|
+
children
|
|
52
|
+
})
|
|
53
|
+
]
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
return size ? /* @__PURE__ */ jsx(SizeProvider2, {
|
|
57
|
+
size,
|
|
58
|
+
children: table
|
|
59
|
+
}) : table;
|
|
60
|
+
});
|
|
61
|
+
Table2.displayName = "Table";
|
|
62
|
+
var TableHeader2 = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("thead", {
|
|
63
|
+
ref,
|
|
64
|
+
className: cn2("", className),
|
|
65
|
+
...props
|
|
66
|
+
}));
|
|
67
|
+
TableHeader2.displayName = "TableHeader";
|
|
68
|
+
var TableBody2 = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", {
|
|
69
|
+
ref,
|
|
70
|
+
className: cn2("", className),
|
|
71
|
+
...props
|
|
72
|
+
}));
|
|
73
|
+
TableBody2.displayName = "TableBody";
|
|
74
|
+
var TableRow2 = forwardRef(({ index, className, style, ...props }, ref) => {
|
|
75
|
+
const internalRef = useRef(null);
|
|
76
|
+
const ctx = useContext(TableContext);
|
|
77
|
+
useRegisterFluidHoverItem2(ctx?.registerItem, index, internalRef);
|
|
78
|
+
const isBodyRow = index !== undefined;
|
|
79
|
+
const activeIdx = ctx?.activeIndex ?? null;
|
|
80
|
+
const hideBorder = activeIdx !== null && (isBodyRow && (index === activeIdx || index === activeIdx - 1) || !isBodyRow && activeIdx === 0);
|
|
81
|
+
return /* @__PURE__ */ jsx("tr", {
|
|
82
|
+
ref: (node) => {
|
|
83
|
+
internalRef.current = node;
|
|
84
|
+
if (typeof ref === "function")
|
|
85
|
+
ref(node);
|
|
86
|
+
else if (ref)
|
|
87
|
+
ref.current = node;
|
|
88
|
+
},
|
|
89
|
+
"data-fluid-hover-index": index,
|
|
90
|
+
className: cn2("group/row relative z-10 border-b transition-[border-color] duration-fast", hideBorder ? "border-transparent" : "border-accent/40", isBodyRow && activeIdx === index && "is-active", isBodyRow ? "weight-normal" : "weight-semibold", className),
|
|
91
|
+
style,
|
|
92
|
+
...props
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
TableRow2.displayName = "TableRow";
|
|
96
|
+
var TableHead2 = forwardRef(({ className, ...props }, ref) => {
|
|
97
|
+
const sizeClasses = useSize2();
|
|
98
|
+
return /* @__PURE__ */ jsx("th", {
|
|
99
|
+
ref,
|
|
100
|
+
className: cn2("text-left text-foreground", sizeClasses.variant === "compact" ? "px-2.5 py-[5px]" : "px-3 py-2", className),
|
|
101
|
+
...props
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
TableHead2.displayName = "TableHead";
|
|
105
|
+
var TableCell2 = forwardRef(({ className, ...props }, ref) => {
|
|
106
|
+
const sizeClasses = useSize2();
|
|
107
|
+
return /* @__PURE__ */ jsx("td", {
|
|
108
|
+
ref,
|
|
109
|
+
className: cn2("text-muted-foreground transition-colors duration-fast group-[.is-active]/row:text-foreground", sizeClasses.variant === "compact" ? "px-2.5 py-[5px]" : "px-3 py-2", className),
|
|
110
|
+
...props
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
TableCell2.displayName = "TableCell";
|
|
114
|
+
Object.assign(Table2, {
|
|
115
|
+
Header: TableHeader2,
|
|
116
|
+
Body: TableBody2,
|
|
117
|
+
Row: TableRow2,
|
|
118
|
+
Head: TableHead2,
|
|
119
|
+
Cell: TableCell2
|
|
120
|
+
});
|
|
121
|
+
var table_default = Table2;
|
|
122
|
+
|
|
123
|
+
export { Table2, TableHeader2, TableBody2, TableRow2, TableHead2, TableCell2, table_default };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GOO_MATRIX
|
|
3
|
-
} from "./components-7nww01w4.js";
|
|
4
1
|
import {
|
|
5
2
|
useReduceMotion
|
|
6
|
-
} from "./components-
|
|
3
|
+
} from "./components-men63rwj.js";
|
|
4
|
+
import {
|
|
5
|
+
GOO_MATRIX
|
|
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
|
+
spring2
|
|
12
|
+
} from "./components-1v7rxytx.js";
|
|
13
13
|
|
|
14
14
|
// lib/morph-part.tsx
|
|
15
15
|
import { motion } from "motion/react";
|
|
@@ -17,8 +17,8 @@ import { createContext, useContext } from "react";
|
|
|
17
17
|
import { jsx } from "react/jsx-runtime";
|
|
18
18
|
var MorphPartScope = createContext(null);
|
|
19
19
|
var MorphPartInOverlay = createContext(false);
|
|
20
|
-
var { exit: _exit, ...enter } =
|
|
21
|
-
function
|
|
20
|
+
var { exit: _exit, ...enter } = spring2.slow;
|
|
21
|
+
function MorphPart2({ id, className, children }) {
|
|
22
22
|
const scope = useContext(MorphPartScope);
|
|
23
23
|
const inOverlay = useContext(MorphPartInOverlay);
|
|
24
24
|
const reduced = useReduceMotion();
|
|
@@ -113,27 +113,27 @@ function MorphSurface({ morph, bg, shadow, radius, className, children }) {
|
|
|
113
113
|
children: [
|
|
114
114
|
effect === "goo" && /* @__PURE__ */ jsx2("div", {
|
|
115
115
|
ref: refs.copy,
|
|
116
|
-
className:
|
|
116
|
+
className: cn2("absolute", bg)
|
|
117
117
|
}),
|
|
118
118
|
/* @__PURE__ */ jsx2("div", {
|
|
119
119
|
ref: refs.shape,
|
|
120
|
-
className:
|
|
120
|
+
className: cn2("absolute", bg)
|
|
121
121
|
})
|
|
122
122
|
]
|
|
123
123
|
}),
|
|
124
124
|
/* @__PURE__ */ jsx2("div", {
|
|
125
125
|
ref: refs.bg,
|
|
126
126
|
"aria-hidden": true,
|
|
127
|
-
className:
|
|
127
|
+
className: cn2("pointer-events-none absolute inset-0", bg, radius)
|
|
128
128
|
}),
|
|
129
129
|
shadow && /* @__PURE__ */ jsx2("div", {
|
|
130
130
|
ref: refs.shadow,
|
|
131
131
|
"aria-hidden": true,
|
|
132
|
-
className:
|
|
132
|
+
className: cn2("pointer-events-none absolute inset-0", shadow, radius)
|
|
133
133
|
}),
|
|
134
134
|
/* @__PURE__ */ jsx2("div", {
|
|
135
135
|
ref: refs.content,
|
|
136
|
-
className:
|
|
136
|
+
className: cn2("relative", className),
|
|
137
137
|
children: /* @__PURE__ */ jsx2(MorphPartInOverlay.Provider, {
|
|
138
138
|
value: true,
|
|
139
139
|
children
|
|
@@ -143,4 +143,4 @@ function MorphSurface({ morph, bg, shadow, radius, className, children }) {
|
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
export { MorphPartScope,
|
|
146
|
+
export { MorphPartScope, MorphPart2, GooFilter, MorphSurface };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// lib/size-context.tsx
|
|
2
2
|
import { createContext, useContext } from "react";
|
|
3
|
-
var
|
|
3
|
+
var sizeMap2 = {
|
|
4
4
|
default: {
|
|
5
5
|
variant: "default",
|
|
6
6
|
control: "h-9",
|
|
@@ -26,36 +26,36 @@ var sizeMap = {
|
|
|
26
26
|
icon: 14
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
var
|
|
29
|
+
var typeScale2 = {
|
|
30
30
|
display: { default: 28, compact: 24 },
|
|
31
31
|
title: { default: 16, compact: 15 },
|
|
32
32
|
subtitle: { default: 14, compact: 13 },
|
|
33
33
|
body: { default: 13, compact: 12 },
|
|
34
34
|
caption: { default: 12, compact: 11 }
|
|
35
35
|
};
|
|
36
|
-
function
|
|
37
|
-
const variant =
|
|
36
|
+
function useTypeScale2(override) {
|
|
37
|
+
const variant = useSizeVariant2(override);
|
|
38
38
|
return {
|
|
39
|
-
display:
|
|
40
|
-
title:
|
|
41
|
-
subtitle:
|
|
42
|
-
body:
|
|
43
|
-
caption:
|
|
39
|
+
display: typeScale2.display[variant],
|
|
40
|
+
title: typeScale2.title[variant],
|
|
41
|
+
subtitle: typeScale2.subtitle[variant],
|
|
42
|
+
body: typeScale2.body[variant],
|
|
43
|
+
caption: typeScale2.caption[variant]
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
var SizeContext = createContext(null);
|
|
47
|
-
function
|
|
47
|
+
function useSizeVariant2(override) {
|
|
48
48
|
const ctx = useContext(SizeContext);
|
|
49
49
|
return override ?? ctx?.size ?? "default";
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return
|
|
51
|
+
function useSize2(override) {
|
|
52
|
+
return sizeMap2[useSizeVariant2(override)];
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function useSizeContext2() {
|
|
55
55
|
const ctx = useContext(SizeContext);
|
|
56
56
|
if (!ctx)
|
|
57
57
|
throw new Error("useSizeContext must be used within a SizeProvider");
|
|
58
58
|
return ctx;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { sizeMap2, typeScale2, useTypeScale2, SizeContext, useSizeVariant2, useSize2, useSizeContext2 };
|