@drjoshcsimmons/scl 0.3.1 → 0.3.3
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/globals.css +1 -0
- package/dist/hooks/use-font-loaded.d.ts +2 -0
- package/dist/hooks/use-font-loaded.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +116 -114
- package/dist/index10.js +33 -28
- package/dist/index100.js +14 -6
- package/dist/index101.js +43 -41
- package/dist/index102.js +48 -53
- package/dist/index103.js +9 -30
- package/dist/index104.js +1 -1
- package/dist/index105.js +180 -3
- package/dist/index106.js +8 -218
- package/dist/index107.js +29 -47
- package/dist/index108.js +54 -29
- package/dist/index109.js +29 -47
- package/dist/index11.js +28 -5
- package/dist/index110.js +46 -7
- package/dist/index111.js +48 -6
- package/dist/index112.js +1 -1
- package/dist/index113.js +47 -11
- package/dist/index114.js +6 -48
- package/dist/index115.js +10 -204
- package/dist/index116.js +204 -20
- package/dist/index117.js +21 -399
- package/dist/index118.js +400 -2
- package/dist/index119.js +2 -53
- package/dist/index12.js +5 -79
- package/dist/index120.js +41 -53
- package/dist/index121.js +63 -23
- package/dist/index122.js +24 -28
- package/dist/index123.js +29 -5
- package/dist/index124.js +5 -2
- package/dist/index125.js +2 -2
- package/dist/index126.js +2 -5
- package/dist/index127.js +5 -3
- package/dist/index128.js +3 -24
- package/dist/index129.js +22 -111
- package/dist/index13.js +75 -12
- package/dist/index130.js +111 -14
- package/dist/index131.js +14 -523
- package/dist/index132.js +511 -114
- package/dist/index133.js +111 -117
- package/dist/index134.js +130 -61
- package/dist/index135.js +65 -69
- package/dist/index136.js +68 -8
- package/dist/index137.js +9 -14
- package/dist/index138.js +14 -66
- package/dist/index139.js +66 -4
- package/dist/index14.js +16 -14
- package/dist/index140.js +3 -22
- package/dist/index141.js +23 -13
- package/dist/index142.js +20 -25
- package/dist/index143.js +12 -4
- package/dist/index144.js +25 -20
- package/dist/index145.js +7 -0
- package/dist/index15.js +12 -17
- package/dist/index16.js +18 -31
- package/dist/index17.js +32 -25
- package/dist/index18.js +19 -31
- package/dist/index19.js +28 -129
- package/dist/index20.js +136 -18
- package/dist/index21.js +19 -11
- package/dist/index22.js +9 -20
- package/dist/index23.js +23 -15
- package/dist/index24.js +15 -31
- package/dist/index25.js +31 -35
- package/dist/index26.js +35 -15
- package/dist/index27.js +15 -14
- package/dist/index28.js +11 -20
- package/dist/index29.js +23 -99
- package/dist/index3.js +10 -22
- package/dist/index30.js +99 -38
- package/dist/index31.js +38 -10
- package/dist/index32.js +10 -48
- package/dist/index33.js +48 -65
- package/dist/index34.js +65 -236
- package/dist/index35.js +239 -0
- package/dist/{index41.js → index38.js} +5 -5
- package/dist/index4.js +22 -53
- package/dist/index43.js +57 -158
- package/dist/index45.js +221 -231
- package/dist/index48.js +532 -0
- package/dist/index5.js +52 -24
- package/dist/index50.js +16 -234
- package/dist/index52.js +238 -28
- package/dist/index54.js +238 -0
- package/dist/index57.js +118 -70
- package/dist/index6.js +24 -34
- package/dist/index61.js +310 -504
- package/dist/index63.js +71 -230
- package/dist/index65.js +10 -10
- package/dist/index67.js +245 -104
- package/dist/index69.js +103 -234
- package/dist/index7.js +34 -6
- package/dist/index71.js +143 -318
- package/dist/index73.js +31 -130
- package/dist/{index55.js → index76.js} +21 -21
- package/dist/index78.js +53 -40
- package/dist/index79.js +45 -10
- package/dist/index8.js +6 -21
- package/dist/index80.js +27 -4
- package/dist/index81.js +7 -30
- package/dist/index82.js +49 -10
- package/dist/index83.js +12 -8
- package/dist/index84.js +10 -6
- package/dist/index85.js +7 -67
- package/dist/index86.js +51 -177
- package/dist/index87.js +10 -68
- package/dist/index88.js +4 -34
- package/dist/index89.js +30 -8
- package/dist/index9.js +20 -32
- package/dist/index90.js +10 -49
- package/dist/index91.js +5 -10
- package/dist/index92.js +23 -123
- package/dist/index93.js +60 -126
- package/dist/index94.js +4 -14
- package/dist/index95.js +30 -15
- package/dist/index96.js +124 -8
- package/dist/index97.js +15 -50
- package/dist/index98.js +127 -40
- package/dist/index99.js +218 -24
- package/package.json +1 -1
- package/dist/index36.js +0 -62
- package/dist/index47.js +0 -20
- package/dist/index77.js +0 -29
package/dist/globals.css
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-font-loaded.d.ts","sourceRoot":"","sources":["../../src/hooks/use-font-loaded.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,CAAC,UAAU,SAAmB,GAAG,OAAO,CAUpE"}
|
package/dist/index.d.ts
CHANGED
|
@@ -24,5 +24,6 @@ export * from './components/ui/textarea';
|
|
|
24
24
|
export * from './components/ui/toggle';
|
|
25
25
|
export * from './components/ui/tooltip';
|
|
26
26
|
export { cx, cn } from './lib/utils';
|
|
27
|
+
export { useFontLoaded } from './hooks/use-font-loaded';
|
|
27
28
|
export * from './tokens';
|
|
28
29
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AAGxC,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGrC,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AAGxC,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGrC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAGxD,cAAc,UAAU,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,119 +1,121 @@
|
|
|
1
1
|
import { cn as e, cx as t } from "./index2.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
2
|
+
import { useFontLoaded as a } from "./index3.js";
|
|
3
|
+
import { theme as i } from "./index4.js";
|
|
4
|
+
import { Accordion as n, AccordionContent as x, AccordionItem as c, AccordionTrigger as f } from "./index5.js";
|
|
5
|
+
import { Alert as T, AlertDescription as d, AlertTitle as s } from "./index6.js";
|
|
6
|
+
import { Avatar as b, AvatarFallback as S, AvatarImage as D } from "./index7.js";
|
|
7
|
+
import { Badge as u } from "./index8.js";
|
|
8
|
+
import { Button as P } from "./index9.js";
|
|
9
|
+
import { Card as B, CardContent as F, CardDescription as I, CardFooter as w, CardHeader as y, CardTitle as H } from "./index10.js";
|
|
10
|
+
import { Checkbox as R } from "./index11.js";
|
|
11
|
+
import { Collapsible as G, CollapsibleContent as O, CollapsibleTrigger as U } from "./index12.js";
|
|
12
|
+
import { Dialog as j, DialogClose as q, DialogContent as z, DialogDescription as E, DialogFooter as J, DialogHeader as K, DialogOverlay as M, DialogPortal as N, DialogTitle as Q, DialogTrigger as W } from "./index13.js";
|
|
13
|
+
import { Input as Y } from "./index14.js";
|
|
14
|
+
import { Label as _ } from "./index15.js";
|
|
15
|
+
import { Popover as oo, PopoverAnchor as ro, PopoverContent as eo, PopoverTrigger as to } from "./index16.js";
|
|
16
|
+
import { Progress as ao } from "./index17.js";
|
|
17
|
+
import { RadioGroup as io, RadioGroupItem as mo } from "./index18.js";
|
|
18
|
+
import { ScrollArea as xo, ScrollBar as co } from "./index19.js";
|
|
19
|
+
import { Select as go, SelectContent as To, SelectGroup as so, SelectItem as Co, SelectLabel as bo, SelectScrollDownButton as So, SelectScrollUpButton as Do, SelectSeparator as Ao, SelectTrigger as uo, SelectValue as vo } from "./index20.js";
|
|
20
|
+
import { Separator as ho } from "./index21.js";
|
|
21
|
+
import { Skeleton as Fo } from "./index22.js";
|
|
22
|
+
import { Slider as wo } from "./index23.js";
|
|
23
|
+
import { Switch as Ho } from "./index24.js";
|
|
24
|
+
import { Table as Ro, TableBody as ko, TableCaption as Go, TableCell as Oo, TableFooter as Uo, TableHead as Vo, TableHeader as jo, TableRow as qo } from "./index25.js";
|
|
25
|
+
import { Tabs as Eo, TabsContent as Jo, TabsList as Ko, TabsTrigger as Mo } from "./index26.js";
|
|
26
|
+
import { Textarea as Qo } from "./index27.js";
|
|
27
|
+
import { Toggle as Xo } from "./index28.js";
|
|
28
|
+
import { Tooltip as Zo, TooltipContent as _o, TooltipProvider as $o, TooltipTrigger as or } from "./index29.js";
|
|
29
|
+
import { animations as er } from "./index30.js";
|
|
30
|
+
import { colors as lr, palette as ar } from "./index31.js";
|
|
31
|
+
import { shadows as ir } from "./index32.js";
|
|
32
|
+
import { borderRadius as nr, spacing as xr } from "./index33.js";
|
|
33
|
+
import { typography as fr } from "./index34.js";
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
35
|
+
n as Accordion,
|
|
36
|
+
x as AccordionContent,
|
|
37
|
+
c as AccordionItem,
|
|
38
|
+
f as AccordionTrigger,
|
|
39
|
+
T as Alert,
|
|
40
|
+
d as AlertDescription,
|
|
41
|
+
s as AlertTitle,
|
|
42
|
+
b as Avatar,
|
|
43
|
+
S as AvatarFallback,
|
|
44
|
+
D as AvatarImage,
|
|
45
|
+
u as Badge,
|
|
46
|
+
P as Button,
|
|
47
|
+
B as Card,
|
|
48
|
+
F as CardContent,
|
|
49
|
+
I as CardDescription,
|
|
50
|
+
w as CardFooter,
|
|
51
|
+
y as CardHeader,
|
|
52
|
+
H as CardTitle,
|
|
53
|
+
R as Checkbox,
|
|
54
|
+
G as Collapsible,
|
|
55
|
+
O as CollapsibleContent,
|
|
56
|
+
U as CollapsibleTrigger,
|
|
57
|
+
j as Dialog,
|
|
58
|
+
q as DialogClose,
|
|
59
|
+
z as DialogContent,
|
|
60
|
+
E as DialogDescription,
|
|
61
|
+
J as DialogFooter,
|
|
62
|
+
K as DialogHeader,
|
|
63
|
+
M as DialogOverlay,
|
|
64
|
+
N as DialogPortal,
|
|
65
|
+
Q as DialogTitle,
|
|
66
|
+
W as DialogTrigger,
|
|
67
|
+
Y as Input,
|
|
68
|
+
_ as Label,
|
|
69
|
+
oo as Popover,
|
|
70
|
+
ro as PopoverAnchor,
|
|
71
|
+
eo as PopoverContent,
|
|
72
|
+
to as PopoverTrigger,
|
|
73
|
+
ao as Progress,
|
|
74
|
+
io as RadioGroup,
|
|
75
|
+
mo as RadioGroupItem,
|
|
76
|
+
xo as ScrollArea,
|
|
77
|
+
co as ScrollBar,
|
|
78
|
+
go as Select,
|
|
79
|
+
To as SelectContent,
|
|
80
|
+
so as SelectGroup,
|
|
81
|
+
Co as SelectItem,
|
|
82
|
+
bo as SelectLabel,
|
|
83
|
+
So as SelectScrollDownButton,
|
|
84
|
+
Do as SelectScrollUpButton,
|
|
85
|
+
Ao as SelectSeparator,
|
|
86
|
+
uo as SelectTrigger,
|
|
87
|
+
vo as SelectValue,
|
|
88
|
+
ho as Separator,
|
|
89
|
+
Fo as Skeleton,
|
|
90
|
+
wo as Slider,
|
|
91
|
+
Ho as Switch,
|
|
92
|
+
Ro as Table,
|
|
93
|
+
ko as TableBody,
|
|
94
|
+
Go as TableCaption,
|
|
95
|
+
Oo as TableCell,
|
|
96
|
+
Uo as TableFooter,
|
|
97
|
+
Vo as TableHead,
|
|
98
|
+
jo as TableHeader,
|
|
99
|
+
qo as TableRow,
|
|
100
|
+
Eo as Tabs,
|
|
101
|
+
Jo as TabsContent,
|
|
102
|
+
Ko as TabsList,
|
|
103
|
+
Mo as TabsTrigger,
|
|
104
|
+
Qo as Textarea,
|
|
105
|
+
Xo as Toggle,
|
|
106
|
+
Zo as Tooltip,
|
|
107
|
+
_o as TooltipContent,
|
|
108
|
+
$o as TooltipProvider,
|
|
109
|
+
or as TooltipTrigger,
|
|
110
|
+
er as animations,
|
|
111
|
+
nr as borderRadius,
|
|
111
112
|
e as cn,
|
|
112
|
-
|
|
113
|
+
lr as colors,
|
|
113
114
|
t as cx,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
ar as palette,
|
|
116
|
+
ir as shadows,
|
|
117
|
+
xr as spacing,
|
|
118
|
+
i as theme,
|
|
119
|
+
fr as typography,
|
|
120
|
+
a as useFontLoaded
|
|
119
121
|
};
|
package/dist/index10.js
CHANGED
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { cx as t } from "./index2.js";
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { cx as o } from "./index2.js";
|
|
5
4
|
/* empty css */
|
|
6
|
-
const
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
))
|
|
28
|
-
|
|
5
|
+
const c = s.forwardRef(
|
|
6
|
+
({ className: a, ...r }, d) => /* @__PURE__ */ e("div", { ref: d, className: o("scl-card", a), ...r })
|
|
7
|
+
);
|
|
8
|
+
c.displayName = "Card";
|
|
9
|
+
const t = s.forwardRef(
|
|
10
|
+
({ className: a, ...r }, d) => /* @__PURE__ */ e("div", { ref: d, className: o("scl-card__header", a), ...r })
|
|
11
|
+
);
|
|
12
|
+
t.displayName = "CardHeader";
|
|
13
|
+
const i = s.forwardRef(
|
|
14
|
+
({ className: a, ...r }, d) => /* @__PURE__ */ e("div", { ref: d, className: o("scl-card__title", a), ...r })
|
|
15
|
+
);
|
|
16
|
+
i.displayName = "CardTitle";
|
|
17
|
+
const l = s.forwardRef(
|
|
18
|
+
({ className: a, ...r }, d) => /* @__PURE__ */ e("div", { ref: d, className: o("scl-card__description", a), ...r })
|
|
19
|
+
);
|
|
20
|
+
l.displayName = "CardDescription";
|
|
21
|
+
const m = s.forwardRef(
|
|
22
|
+
({ className: a, ...r }, d) => /* @__PURE__ */ e("div", { ref: d, className: o("scl-card__content", a), ...r })
|
|
23
|
+
);
|
|
24
|
+
m.displayName = "CardContent";
|
|
25
|
+
const f = s.forwardRef(
|
|
26
|
+
({ className: a, ...r }, d) => /* @__PURE__ */ e("div", { ref: d, className: o("scl-card__footer", a), ...r })
|
|
27
|
+
);
|
|
28
|
+
f.displayName = "CardFooter";
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
c as Card,
|
|
31
|
+
m as CardContent,
|
|
32
|
+
l as CardDescription,
|
|
33
|
+
f as CardFooter,
|
|
34
|
+
t as CardHeader,
|
|
35
|
+
i as CardTitle
|
|
31
36
|
};
|
package/dist/index100.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import s from "react-dom";
|
|
3
|
+
import { Primitive as c } from "./index83.js";
|
|
4
|
+
import { useLayoutEffect as u } from "./index88.js";
|
|
5
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
6
|
+
var p = "Portal", d = r.forwardRef((e, a) => {
|
|
7
|
+
var o;
|
|
8
|
+
const { container: f, ...i } = e, [m, n] = r.useState(!1);
|
|
9
|
+
u(() => n(!0), []);
|
|
10
|
+
const t = f || m && ((o = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : o.body);
|
|
11
|
+
return t ? s.createPortal(/* @__PURE__ */ l(c.div, { ...i, ref: a }), t) : null;
|
|
12
|
+
});
|
|
13
|
+
d.displayName = p;
|
|
6
14
|
export {
|
|
7
|
-
|
|
15
|
+
d as Portal
|
|
8
16
|
};
|
package/dist/index101.js
CHANGED
|
@@ -1,48 +1,50 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { useComposedRefs as M } from "./index77.js";
|
|
4
|
-
import { createSlot as x } from "./index114.js";
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { composeRefs as m } from "./index80.js";
|
|
5
3
|
import { jsx as u } from "react/jsx-runtime";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
p.displayName = m;
|
|
15
|
-
const a = s + "CollectionSlot", E = x(a), C = r.forwardRef(
|
|
16
|
-
(c, e) => {
|
|
17
|
-
const { scope: l, children: o } = c, t = f(a, l), n = M(e, t.collectionRef);
|
|
18
|
-
return /* @__PURE__ */ u(E, { ref: n, children: o });
|
|
4
|
+
// @__NO_SIDE_EFFECTS__
|
|
5
|
+
function b(e) {
|
|
6
|
+
const n = /* @__PURE__ */ y(e), o = l.forwardRef((t, r) => {
|
|
7
|
+
const { children: i, ...c } = t, s = l.Children.toArray(i), a = s.find(E);
|
|
8
|
+
if (a) {
|
|
9
|
+
const f = a.props.children, d = s.map((p) => p === a ? l.Children.count(f) > 1 ? l.Children.only(null) : l.isValidElement(f) ? f.props.children : null : p);
|
|
10
|
+
return /* @__PURE__ */ u(n, { ...c, ref: r, children: l.isValidElement(f) ? l.cloneElement(f, void 0, d) : null });
|
|
19
11
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
return /* @__PURE__ */ u(n, { ...c, ref: r, children: i });
|
|
13
|
+
});
|
|
14
|
+
return o.displayName = `${e}.Slot`, o;
|
|
15
|
+
}
|
|
16
|
+
// @__NO_SIDE_EFFECTS__
|
|
17
|
+
function y(e) {
|
|
18
|
+
const n = l.forwardRef((o, t) => {
|
|
19
|
+
const { children: r, ...i } = o;
|
|
20
|
+
if (l.isValidElement(r)) {
|
|
21
|
+
const c = S(r), s = C(i, r.props);
|
|
22
|
+
return r.type !== l.Fragment && (s.ref = t ? m(t, c) : c), l.cloneElement(r, s);
|
|
26
23
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
24
|
+
return l.Children.count(r) > 1 ? l.Children.only(null) : null;
|
|
25
|
+
});
|
|
26
|
+
return n.displayName = `${e}.SlotClone`, n;
|
|
27
|
+
}
|
|
28
|
+
var g = Symbol("radix.slottable");
|
|
29
|
+
function E(e) {
|
|
30
|
+
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === g;
|
|
31
|
+
}
|
|
32
|
+
function C(e, n) {
|
|
33
|
+
const o = { ...n };
|
|
34
|
+
for (const t in n) {
|
|
35
|
+
const r = e[t], i = n[t];
|
|
36
|
+
/^on[A-Z]/.test(t) ? r && i ? o[t] = (...s) => {
|
|
37
|
+
const a = i(...s);
|
|
38
|
+
return r(...s), a;
|
|
39
|
+
} : r && (o[t] = r) : t === "style" ? o[t] = { ...r, ...i } : t === "className" && (o[t] = [r, i].filter(Boolean).join(" "));
|
|
39
40
|
}
|
|
40
|
-
return
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
return { ...e, ...o };
|
|
42
|
+
}
|
|
43
|
+
function S(e) {
|
|
44
|
+
var t, r;
|
|
45
|
+
let n = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, o = n && "isReactWarning" in n && n.isReactWarning;
|
|
46
|
+
return o ? e.ref : (n = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = n && "isReactWarning" in n && n.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
|
45
47
|
}
|
|
46
48
|
export {
|
|
47
|
-
|
|
49
|
+
b as createSlot
|
|
48
50
|
};
|
package/dist/index102.js
CHANGED
|
@@ -1,57 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
return [m, S];
|
|
24
|
-
}
|
|
25
|
-
const u = () => {
|
|
26
|
-
const r = o.map((n) => i.createContext(n));
|
|
27
|
-
return function(t) {
|
|
28
|
-
const c = (t == null ? void 0 : t[e]) || r;
|
|
29
|
-
return i.useMemo(
|
|
30
|
-
() => ({ [`__scope${e}`]: { ...t, [e]: c } }),
|
|
31
|
-
[t, c]
|
|
32
|
-
);
|
|
33
|
-
};
|
|
1
|
+
var S = function(r) {
|
|
2
|
+
if (typeof document > "u")
|
|
3
|
+
return null;
|
|
4
|
+
var u = Array.isArray(r) ? r[0] : r;
|
|
5
|
+
return u.ownerDocument.body;
|
|
6
|
+
}, f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {}, h = 0, W = function(r) {
|
|
7
|
+
return r && (r.host || W(r.parentNode));
|
|
8
|
+
}, D = function(r, u) {
|
|
9
|
+
return u.map(function(e) {
|
|
10
|
+
if (r.contains(e))
|
|
11
|
+
return e;
|
|
12
|
+
var n = W(e);
|
|
13
|
+
return n && r.contains(n) ? n : (console.error("aria-hidden", e, "in not contained inside", r, ". Doing nothing"), null);
|
|
14
|
+
}).filter(function(e) {
|
|
15
|
+
return !!e;
|
|
16
|
+
});
|
|
17
|
+
}, E = function(r, u, e, n) {
|
|
18
|
+
var i = D(u, Array.isArray(r) ? r : [r]);
|
|
19
|
+
p[e] || (p[e] = /* @__PURE__ */ new WeakMap());
|
|
20
|
+
var s = p[e], l = [], o = /* @__PURE__ */ new Set(), b = new Set(i), y = function(t) {
|
|
21
|
+
!t || o.has(t) || (o.add(t), y(t.parentNode));
|
|
34
22
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return { ...t, ...a };
|
|
49
|
-
}, {});
|
|
50
|
-
return i.useMemo(() => ({ [`__scope${x.scopeName}`]: n }), [n]);
|
|
51
|
-
};
|
|
23
|
+
i.forEach(y);
|
|
24
|
+
var A = function(t) {
|
|
25
|
+
!t || b.has(t) || Array.prototype.forEach.call(t.children, function(a) {
|
|
26
|
+
if (o.has(a))
|
|
27
|
+
A(a);
|
|
28
|
+
else
|
|
29
|
+
try {
|
|
30
|
+
var c = a.getAttribute(n), w = c !== null && c !== "false", d = (f.get(a) || 0) + 1, M = (s.get(a) || 0) + 1;
|
|
31
|
+
f.set(a, d), s.set(a, M), l.push(a), d === 1 && w && v.set(a, !0), M === 1 && a.setAttribute(e, "true"), w || a.setAttribute(n, "true");
|
|
32
|
+
} catch (k) {
|
|
33
|
+
console.error("aria-hidden: cannot operate on ", a, k);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
52
36
|
};
|
|
53
|
-
return o.
|
|
54
|
-
|
|
37
|
+
return A(u), o.clear(), h++, function() {
|
|
38
|
+
l.forEach(function(t) {
|
|
39
|
+
var a = f.get(t) - 1, c = s.get(t) - 1;
|
|
40
|
+
f.set(t, a), s.set(t, c), a || (v.has(t) || t.removeAttribute(n), v.delete(t)), c || t.removeAttribute(e);
|
|
41
|
+
}), h--, h || (f = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {});
|
|
42
|
+
};
|
|
43
|
+
}, C = function(r, u, e) {
|
|
44
|
+
e === void 0 && (e = "data-aria-hidden");
|
|
45
|
+
var n = Array.from(Array.isArray(r) ? r : [r]), i = S(r);
|
|
46
|
+
return i ? (n.push.apply(n, Array.from(i.querySelectorAll("[aria-live], script"))), E(n, i, e, "aria-hidden")) : function() {
|
|
47
|
+
return null;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
55
50
|
export {
|
|
56
|
-
|
|
51
|
+
C as hideOthers
|
|
57
52
|
};
|
package/dist/index103.js
CHANGED
|
@@ -1,32 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "react
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"form",
|
|
10
|
-
"h2",
|
|
11
|
-
"h3",
|
|
12
|
-
"img",
|
|
13
|
-
"input",
|
|
14
|
-
"label",
|
|
15
|
-
"li",
|
|
16
|
-
"nav",
|
|
17
|
-
"ol",
|
|
18
|
-
"p",
|
|
19
|
-
"select",
|
|
20
|
-
"span",
|
|
21
|
-
"svg",
|
|
22
|
-
"ul"
|
|
23
|
-
], w = u.reduce((t, i) => {
|
|
24
|
-
const o = l(`Primitive.${i}`), r = f.forwardRef((e, m) => {
|
|
25
|
-
const { asChild: a, ...p } = e, s = a ? o : i;
|
|
26
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, { ...p, ref: m });
|
|
27
|
-
});
|
|
28
|
-
return r.displayName = `Primitive.${i}`, { ...t, [i]: r };
|
|
29
|
-
}, {});
|
|
1
|
+
import { __assign as m } from "./index122.js";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { RemoveScroll as e } from "./index123.js";
|
|
4
|
+
import t from "./index124.js";
|
|
5
|
+
var s = r.forwardRef(function(a, o) {
|
|
6
|
+
return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
|
|
7
|
+
});
|
|
8
|
+
s.classNames = e.classNames;
|
|
30
9
|
export {
|
|
31
|
-
|
|
10
|
+
s as default
|
|
32
11
|
};
|