@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.
Files changed (127) hide show
  1. package/dist/globals.css +1 -0
  2. package/dist/hooks/use-font-loaded.d.ts +2 -0
  3. package/dist/hooks/use-font-loaded.d.ts.map +1 -0
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +116 -114
  7. package/dist/index10.js +33 -28
  8. package/dist/index100.js +14 -6
  9. package/dist/index101.js +43 -41
  10. package/dist/index102.js +48 -53
  11. package/dist/index103.js +9 -30
  12. package/dist/index104.js +1 -1
  13. package/dist/index105.js +180 -3
  14. package/dist/index106.js +8 -218
  15. package/dist/index107.js +29 -47
  16. package/dist/index108.js +54 -29
  17. package/dist/index109.js +29 -47
  18. package/dist/index11.js +28 -5
  19. package/dist/index110.js +46 -7
  20. package/dist/index111.js +48 -6
  21. package/dist/index112.js +1 -1
  22. package/dist/index113.js +47 -11
  23. package/dist/index114.js +6 -48
  24. package/dist/index115.js +10 -204
  25. package/dist/index116.js +204 -20
  26. package/dist/index117.js +21 -399
  27. package/dist/index118.js +400 -2
  28. package/dist/index119.js +2 -53
  29. package/dist/index12.js +5 -79
  30. package/dist/index120.js +41 -53
  31. package/dist/index121.js +63 -23
  32. package/dist/index122.js +24 -28
  33. package/dist/index123.js +29 -5
  34. package/dist/index124.js +5 -2
  35. package/dist/index125.js +2 -2
  36. package/dist/index126.js +2 -5
  37. package/dist/index127.js +5 -3
  38. package/dist/index128.js +3 -24
  39. package/dist/index129.js +22 -111
  40. package/dist/index13.js +75 -12
  41. package/dist/index130.js +111 -14
  42. package/dist/index131.js +14 -523
  43. package/dist/index132.js +511 -114
  44. package/dist/index133.js +111 -117
  45. package/dist/index134.js +130 -61
  46. package/dist/index135.js +65 -69
  47. package/dist/index136.js +68 -8
  48. package/dist/index137.js +9 -14
  49. package/dist/index138.js +14 -66
  50. package/dist/index139.js +66 -4
  51. package/dist/index14.js +16 -14
  52. package/dist/index140.js +3 -22
  53. package/dist/index141.js +23 -13
  54. package/dist/index142.js +20 -25
  55. package/dist/index143.js +12 -4
  56. package/dist/index144.js +25 -20
  57. package/dist/index145.js +7 -0
  58. package/dist/index15.js +12 -17
  59. package/dist/index16.js +18 -31
  60. package/dist/index17.js +32 -25
  61. package/dist/index18.js +19 -31
  62. package/dist/index19.js +28 -129
  63. package/dist/index20.js +136 -18
  64. package/dist/index21.js +19 -11
  65. package/dist/index22.js +9 -20
  66. package/dist/index23.js +23 -15
  67. package/dist/index24.js +15 -31
  68. package/dist/index25.js +31 -35
  69. package/dist/index26.js +35 -15
  70. package/dist/index27.js +15 -14
  71. package/dist/index28.js +11 -20
  72. package/dist/index29.js +23 -99
  73. package/dist/index3.js +10 -22
  74. package/dist/index30.js +99 -38
  75. package/dist/index31.js +38 -10
  76. package/dist/index32.js +10 -48
  77. package/dist/index33.js +48 -65
  78. package/dist/index34.js +65 -236
  79. package/dist/index35.js +239 -0
  80. package/dist/{index41.js → index38.js} +5 -5
  81. package/dist/index4.js +22 -53
  82. package/dist/index43.js +57 -158
  83. package/dist/index45.js +221 -231
  84. package/dist/index48.js +532 -0
  85. package/dist/index5.js +52 -24
  86. package/dist/index50.js +16 -234
  87. package/dist/index52.js +238 -28
  88. package/dist/index54.js +238 -0
  89. package/dist/index57.js +118 -70
  90. package/dist/index6.js +24 -34
  91. package/dist/index61.js +310 -504
  92. package/dist/index63.js +71 -230
  93. package/dist/index65.js +10 -10
  94. package/dist/index67.js +245 -104
  95. package/dist/index69.js +103 -234
  96. package/dist/index7.js +34 -6
  97. package/dist/index71.js +143 -318
  98. package/dist/index73.js +31 -130
  99. package/dist/{index55.js → index76.js} +21 -21
  100. package/dist/index78.js +53 -40
  101. package/dist/index79.js +45 -10
  102. package/dist/index8.js +6 -21
  103. package/dist/index80.js +27 -4
  104. package/dist/index81.js +7 -30
  105. package/dist/index82.js +49 -10
  106. package/dist/index83.js +12 -8
  107. package/dist/index84.js +10 -6
  108. package/dist/index85.js +7 -67
  109. package/dist/index86.js +51 -177
  110. package/dist/index87.js +10 -68
  111. package/dist/index88.js +4 -34
  112. package/dist/index89.js +30 -8
  113. package/dist/index9.js +20 -32
  114. package/dist/index90.js +10 -49
  115. package/dist/index91.js +5 -10
  116. package/dist/index92.js +23 -123
  117. package/dist/index93.js +60 -126
  118. package/dist/index94.js +4 -14
  119. package/dist/index95.js +30 -15
  120. package/dist/index96.js +124 -8
  121. package/dist/index97.js +15 -50
  122. package/dist/index98.js +127 -40
  123. package/dist/index99.js +218 -24
  124. package/package.json +1 -1
  125. package/dist/index36.js +0 -62
  126. package/dist/index47.js +0 -20
  127. package/dist/index77.js +0 -29
package/dist/globals.css CHANGED
@@ -4,6 +4,7 @@
4
4
  @font-face {
5
5
  font-family: 'BigBlueTerm437';
6
6
  src: url('/fonts/BigBlueTerm437.ttf') format('truetype');
7
+ font-display: block;
7
8
  }
8
9
 
9
10
  /* CSS Custom Properties (Design Tokens) */
@@ -0,0 +1,2 @@
1
+ export declare function useFontLoaded(fontFamily?: string): boolean;
2
+ //# sourceMappingURL=use-font-loaded.d.ts.map
@@ -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
@@ -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 { theme as a } from "./index3.js";
3
- import { Accordion as i, AccordionContent as m, AccordionItem as n, AccordionTrigger as x } from "./index4.js";
4
- import { Alert as f, AlertDescription as g, AlertTitle as T } from "./index5.js";
5
- import { Avatar as C, AvatarFallback as b, AvatarImage as s } from "./index6.js";
6
- import { Badge as D } from "./index7.js";
7
- import { Button as u } from "./index8.js";
8
- import { Card as P, CardContent as h, CardDescription as B, CardFooter as I, CardHeader as w, CardTitle as y } from "./index9.js";
9
- import { Checkbox as H } from "./index10.js";
10
- import { Collapsible as k, CollapsibleContent as G, CollapsibleTrigger as L } from "./index11.js";
11
- import { Dialog as U, DialogClose as V, DialogContent as j, DialogDescription as q, DialogFooter as z, DialogHeader as E, DialogOverlay as J, DialogPortal as K, DialogTitle as M, DialogTrigger as N } from "./index12.js";
12
- import { Input as W } from "./index13.js";
13
- import { Label as Y } from "./index14.js";
14
- import { Popover as _, PopoverAnchor as $, PopoverContent as oo, PopoverTrigger as ro } from "./index15.js";
15
- import { Progress as to } from "./index16.js";
16
- import { RadioGroup as ao, RadioGroupItem as po } from "./index17.js";
17
- import { ScrollArea as mo, ScrollBar as no } from "./index18.js";
18
- import { Select as co, SelectContent as fo, SelectGroup as go, SelectItem as To, SelectLabel as Co, SelectScrollDownButton as bo, SelectScrollUpButton as so, SelectSeparator as So, SelectTrigger as Do, SelectValue as Ao } from "./index19.js";
19
- import { Separator as vo } from "./index20.js";
20
- import { Skeleton as ho } from "./index21.js";
21
- import { Slider as Io } from "./index22.js";
22
- import { Switch as yo } from "./index23.js";
23
- import { Table as Ho, TableBody as Ro, TableCaption as ko, TableCell as Go, TableFooter as Lo, TableHead as Oo, TableHeader as Uo, TableRow as Vo } from "./index24.js";
24
- import { Tabs as qo, TabsContent as zo, TabsList as Eo, TabsTrigger as Jo } from "./index25.js";
25
- import { Textarea as Mo } from "./index26.js";
26
- import { Toggle as Qo } from "./index27.js";
27
- import { Tooltip as Xo, TooltipContent as Yo, TooltipProvider as Zo, TooltipTrigger as _o } from "./index28.js";
28
- import { animations as or } from "./index29.js";
29
- import { colors as er, palette as tr } from "./index30.js";
30
- import { shadows as ar } from "./index31.js";
31
- import { borderRadius as ir, spacing as mr } from "./index32.js";
32
- import { typography as xr } from "./index33.js";
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
- i as Accordion,
35
- m as AccordionContent,
36
- n as AccordionItem,
37
- x as AccordionTrigger,
38
- f as Alert,
39
- g as AlertDescription,
40
- T as AlertTitle,
41
- C as Avatar,
42
- b as AvatarFallback,
43
- s as AvatarImage,
44
- D as Badge,
45
- u as Button,
46
- P as Card,
47
- h as CardContent,
48
- B as CardDescription,
49
- I as CardFooter,
50
- w as CardHeader,
51
- y as CardTitle,
52
- H as Checkbox,
53
- k as Collapsible,
54
- G as CollapsibleContent,
55
- L as CollapsibleTrigger,
56
- U as Dialog,
57
- V as DialogClose,
58
- j as DialogContent,
59
- q as DialogDescription,
60
- z as DialogFooter,
61
- E as DialogHeader,
62
- J as DialogOverlay,
63
- K as DialogPortal,
64
- M as DialogTitle,
65
- N as DialogTrigger,
66
- W as Input,
67
- Y as Label,
68
- _ as Popover,
69
- $ as PopoverAnchor,
70
- oo as PopoverContent,
71
- ro as PopoverTrigger,
72
- to as Progress,
73
- ao as RadioGroup,
74
- po as RadioGroupItem,
75
- mo as ScrollArea,
76
- no as ScrollBar,
77
- co as Select,
78
- fo as SelectContent,
79
- go as SelectGroup,
80
- To as SelectItem,
81
- Co as SelectLabel,
82
- bo as SelectScrollDownButton,
83
- so as SelectScrollUpButton,
84
- So as SelectSeparator,
85
- Do as SelectTrigger,
86
- Ao as SelectValue,
87
- vo as Separator,
88
- ho as Skeleton,
89
- Io as Slider,
90
- yo as Switch,
91
- Ho as Table,
92
- Ro as TableBody,
93
- ko as TableCaption,
94
- Go as TableCell,
95
- Lo as TableFooter,
96
- Oo as TableHead,
97
- Uo as TableHeader,
98
- Vo as TableRow,
99
- qo as Tabs,
100
- zo as TabsContent,
101
- Eo as TabsList,
102
- Jo as TabsTrigger,
103
- Mo as Textarea,
104
- Qo as Toggle,
105
- Xo as Tooltip,
106
- Yo as TooltipContent,
107
- Zo as TooltipProvider,
108
- _o as TooltipTrigger,
109
- or as animations,
110
- ir as borderRadius,
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
- er as colors,
113
+ lr as colors,
113
114
  t as cx,
114
- tr as palette,
115
- ar as shadows,
116
- mr as spacing,
117
- a as theme,
118
- xr as typography
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 o } from "react/jsx-runtime";
2
- import { Checkbox as e, CheckboxIndicator as s } from "./index69.js";
3
- import * as a from "react";
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 n = () => /* @__PURE__ */ o(
7
- "svg",
8
- {
9
- className: "scl-checkbox__icon",
10
- viewBox: "0 0 24 24",
11
- fill: "none",
12
- stroke: "currentColor",
13
- strokeWidth: "3",
14
- strokeLinecap: "square",
15
- strokeLinejoin: "miter",
16
- "aria-hidden": "true",
17
- children: /* @__PURE__ */ o("polyline", { points: "20 6 9 17 4 12" })
18
- }
19
- ), l = a.forwardRef(({ className: c, ...r }, i) => /* @__PURE__ */ o(
20
- e,
21
- {
22
- ref: i,
23
- className: t("scl-checkbox", c),
24
- ...r,
25
- children: /* @__PURE__ */ o(s, { className: "scl-checkbox__indicator", children: /* @__PURE__ */ o(n, {}) })
26
- }
27
- ));
28
- l.displayName = e.displayName;
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
- l as Checkbox
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 u from "react";
2
- function t(r) {
3
- const e = u.useRef({ value: r, previous: r });
4
- return u.useMemo(() => (e.current.value !== r && (e.current.previous = e.current.value, e.current.value = r), e.current.previous), [r]);
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
- t as usePrevious
15
+ d as Portal
8
16
  };
package/dist/index101.js CHANGED
@@ -1,48 +1,50 @@
1
- import r from "react";
2
- import { createContextScope as y } from "./index85.js";
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
- function g(s) {
7
- const m = s + "CollectionProvider", [A, N] = y(m), [_, f] = A(
8
- m,
9
- { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
10
- ), p = (c) => {
11
- const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;
12
- return /* @__PURE__ */ u(_, { scope: e, itemMap: t, collectionRef: o, children: l });
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
- C.displayName = a;
22
- const d = s + "CollectionItemSlot", R = "data-radix-collection-item", T = x(d), I = r.forwardRef(
23
- (c, e) => {
24
- const { scope: l, children: o, ...t } = c, n = r.useRef(null), S = M(e, n), i = f(d, l);
25
- return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => void i.itemMap.delete(n))), /* @__PURE__ */ u(T, { [R]: "", ref: S, children: o });
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
- I.displayName = d;
29
- function O(c) {
30
- const e = f(s + "CollectionConsumer", c);
31
- return r.useCallback(() => {
32
- const o = e.collectionRef.current;
33
- if (!o) return [];
34
- const t = Array.from(o.querySelectorAll(`[${R}]`));
35
- return Array.from(e.itemMap.values()).sort(
36
- (i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)
37
- );
38
- }, [e.collectionRef, e.itemMap]);
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
- { Provider: p, Slot: C, ItemSlot: I },
42
- O,
43
- N
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
- g as createCollection
49
+ b as createSlot
48
50
  };
package/dist/index102.js CHANGED
@@ -1,57 +1,52 @@
1
- import * as i from "react";
2
- import { jsx as _ } from "react/jsx-runtime";
3
- function $(e, x = []) {
4
- let o = [];
5
- function f(r, n) {
6
- const t = i.createContext(n);
7
- t.displayName = r + "Context";
8
- const c = o.length;
9
- o = [...o, n];
10
- const m = (a) => {
11
- var l;
12
- const { scope: s, children: C, ...p } = a, d = ((l = s == null ? void 0 : s[e]) == null ? void 0 : l[c]) || t, v = i.useMemo(() => p, Object.values(p));
13
- return /* @__PURE__ */ _(d.Provider, { value: v, children: C });
14
- };
15
- m.displayName = r + "Provider";
16
- function S(a, s) {
17
- var d;
18
- const C = ((d = s == null ? void 0 : s[e]) == null ? void 0 : d[c]) || t, p = i.useContext(C);
19
- if (p) return p;
20
- if (n !== void 0) return n;
21
- throw new Error(`\`${a}\` must be used within \`${r}\``);
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
- return u.scopeName = e, [f, h(u, ...x)];
36
- }
37
- function h(...e) {
38
- const x = e[0];
39
- if (e.length === 1) return x;
40
- const o = () => {
41
- const f = e.map((u) => ({
42
- useScope: u(),
43
- scopeName: u.scopeName
44
- }));
45
- return function(r) {
46
- const n = f.reduce((t, { useScope: c, scopeName: m }) => {
47
- const a = c(r)[`__scope${m}`];
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.scopeName = x.scopeName, 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
- $ as createContextScope
51
+ C as hideOthers
57
52
  };
package/dist/index103.js CHANGED
@@ -1,32 +1,11 @@
1
- import * as f from "react";
2
- import "react-dom";
3
- import { createSlot as l } from "./index36.js";
4
- import { jsx as n } from "react/jsx-runtime";
5
- var u = [
6
- "a",
7
- "button",
8
- "div",
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
- w as Primitive
10
+ s as default
32
11
  };
package/dist/index104.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as f from "react";
2
2
  import "react-dom";
3
- import { createSlot as l } from "./index36.js";
3
+ import { createSlot as l } from "./index43.js";
4
4
  import { jsx as n } from "react/jsx-runtime";
5
5
  var u = [
6
6
  "a",