gladvn 0.2.19 → 0.2.20

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 (202) hide show
  1. package/bin/cli.js +15 -5
  2. package/dist/components/macro/accordion-preset.d.ts.map +1 -1
  3. package/dist/components/macro/alert-dialog-preset.d.ts.map +1 -1
  4. package/dist/components/macro/alert-preset.d.ts.map +1 -1
  5. package/dist/components/macro/avatar-preset.d.ts.map +1 -1
  6. package/dist/components/macro/breadcrumb-preset.d.ts.map +1 -1
  7. package/dist/components/macro/card-preset.d.ts.map +1 -1
  8. package/dist/components/macro/carousel-preset.d.ts.map +1 -1
  9. package/dist/components/macro/checkbox-preset.d.ts.map +1 -1
  10. package/dist/components/macro/combobox-preset.d.ts.map +1 -1
  11. package/dist/components/macro/command-preset.d.ts +1 -1
  12. package/dist/components/macro/command-preset.d.ts.map +1 -1
  13. package/dist/components/macro/date-picker.d.ts.map +1 -1
  14. package/dist/components/macro/dialog-preset.d.ts.map +1 -1
  15. package/dist/components/macro/empty-preset.d.ts +1 -1
  16. package/dist/components/macro/empty-preset.d.ts.map +1 -1
  17. package/dist/components/macro/field-preset.d.ts.map +1 -1
  18. package/dist/components/macro/input-otp-preset.d.ts.map +1 -1
  19. package/dist/components/macro/input-preset.d.ts.map +1 -1
  20. package/dist/components/macro/pagination-preset.d.ts.map +1 -1
  21. package/dist/components/macro/progress-preset.d.ts.map +1 -1
  22. package/dist/components/macro/radio-group-preset.d.ts.map +1 -1
  23. package/dist/components/macro/select-preset.d.ts.map +1 -1
  24. package/dist/components/macro/slider-preset.d.ts.map +1 -1
  25. package/dist/components/macro/switch-preset.d.ts.map +1 -1
  26. package/dist/components/macro/tabs-preset.d.ts.map +1 -1
  27. package/dist/components/micro/alert-dialog.d.ts +4 -4
  28. package/dist/components/micro/alert-dialog.d.ts.map +1 -1
  29. package/dist/components/micro/combobox.d.ts +4 -3
  30. package/dist/components/micro/combobox.d.ts.map +1 -1
  31. package/dist/components/micro/context-menu.d.ts +4 -6
  32. package/dist/components/micro/context-menu.d.ts.map +1 -1
  33. package/dist/components/micro/dialog.d.ts +4 -3
  34. package/dist/components/micro/dialog.d.ts.map +1 -1
  35. package/dist/components/micro/drawer.d.ts +4 -3
  36. package/dist/components/micro/drawer.d.ts.map +1 -1
  37. package/dist/components/micro/dropdown-menu.d.ts +7 -4
  38. package/dist/components/micro/dropdown-menu.d.ts.map +1 -1
  39. package/dist/components/micro/hover-card.d.ts +4 -3
  40. package/dist/components/micro/hover-card.d.ts.map +1 -1
  41. package/dist/components/micro/menubar.d.ts +2 -3
  42. package/dist/components/micro/menubar.d.ts.map +1 -1
  43. package/dist/components/micro/navigation-menu.d.ts +4 -3
  44. package/dist/components/micro/navigation-menu.d.ts.map +1 -1
  45. package/dist/components/micro/popover.d.ts +4 -3
  46. package/dist/components/micro/popover.d.ts.map +1 -1
  47. package/dist/components/micro/select.d.ts +4 -3
  48. package/dist/components/micro/select.d.ts.map +1 -1
  49. package/dist/components/micro/sheet.d.ts +3 -3
  50. package/dist/components/micro/sheet.d.ts.map +1 -1
  51. package/dist/components/micro/tooltip.d.ts +4 -3
  52. package/dist/components/micro/tooltip.d.ts.map +1 -1
  53. package/dist/dev/showcase/accordion.d.ts.map +1 -1
  54. package/dist/dev/showcase/alert-dialog.d.ts.map +1 -1
  55. package/dist/dev/showcase/alert.d.ts.map +1 -1
  56. package/dist/dev/showcase/aspect-ratio.d.ts.map +1 -1
  57. package/dist/dev/showcase/avatar.d.ts.map +1 -1
  58. package/dist/dev/showcase/badge.d.ts.map +1 -1
  59. package/dist/dev/showcase/breadcrumb.d.ts.map +1 -1
  60. package/dist/dev/showcase/button.d.ts.map +1 -1
  61. package/dist/dev/showcase/calendar.d.ts.map +1 -1
  62. package/dist/dev/showcase/card.d.ts.map +1 -1
  63. package/dist/dev/showcase/carousel.d.ts.map +1 -1
  64. package/dist/dev/showcase/chart.d.ts.map +1 -1
  65. package/dist/dev/showcase/checkbox.d.ts.map +1 -1
  66. package/dist/dev/showcase/collapsible.d.ts.map +1 -1
  67. package/dist/dev/showcase/combobox.d.ts.map +1 -1
  68. package/dist/dev/showcase/command.d.ts.map +1 -1
  69. package/dist/dev/showcase/context-menu.d.ts.map +1 -1
  70. package/dist/dev/showcase/dialog.d.ts.map +1 -1
  71. package/dist/dev/showcase/drawer.d.ts.map +1 -1
  72. package/dist/dev/showcase/dropdown-menu.d.ts.map +1 -1
  73. package/dist/dev/showcase/empty.d.ts.map +1 -1
  74. package/dist/dev/showcase/hover-card.d.ts.map +1 -1
  75. package/dist/dev/showcase/input-group.d.ts.map +1 -1
  76. package/dist/dev/showcase/input-otp.d.ts.map +1 -1
  77. package/dist/dev/showcase/input.d.ts.map +1 -1
  78. package/dist/dev/showcase/item.d.ts.map +1 -1
  79. package/dist/dev/showcase/kbd.d.ts.map +1 -1
  80. package/dist/dev/showcase/label.d.ts.map +1 -1
  81. package/dist/dev/showcase/menubar.d.ts.map +1 -1
  82. package/dist/dev/showcase/navigation-menu.d.ts.map +1 -1
  83. package/dist/dev/showcase/overview.d.ts.map +1 -1
  84. package/dist/dev/showcase/pagination.d.ts.map +1 -1
  85. package/dist/dev/showcase/popover.d.ts.map +1 -1
  86. package/dist/dev/showcase/progress.d.ts.map +1 -1
  87. package/dist/dev/showcase/radio-group.d.ts.map +1 -1
  88. package/dist/dev/showcase/resizable.d.ts.map +1 -1
  89. package/dist/dev/showcase/scroll-area.d.ts.map +1 -1
  90. package/dist/dev/showcase/select.d.ts.map +1 -1
  91. package/dist/dev/showcase/separator.d.ts.map +1 -1
  92. package/dist/dev/showcase/sheet.d.ts.map +1 -1
  93. package/dist/dev/showcase/sidebar.d.ts.map +1 -1
  94. package/dist/dev/showcase/skeleton.d.ts.map +1 -1
  95. package/dist/dev/showcase/slider.d.ts.map +1 -1
  96. package/dist/dev/showcase/sonner.d.ts.map +1 -1
  97. package/dist/dev/showcase/spinner.d.ts.map +1 -1
  98. package/dist/dev/showcase/switch.d.ts.map +1 -1
  99. package/dist/dev/showcase/table.d.ts.map +1 -1
  100. package/dist/dev/showcase/tabs.d.ts.map +1 -1
  101. package/dist/dev/showcase/textarea.d.ts.map +1 -1
  102. package/dist/dev/showcase/theme-provider.d.ts.map +1 -1
  103. package/dist/dev/showcase/toast.d.ts.map +1 -1
  104. package/dist/dev/showcase/toggle-group.d.ts.map +1 -1
  105. package/dist/dev/showcase/toggle.d.ts.map +1 -1
  106. package/dist/dev/showcase/tooltip.d.ts.map +1 -1
  107. package/dist/index.cjs +256 -256
  108. package/dist/index.cjs.map +1 -1
  109. package/dist/index.js +257 -244
  110. package/dist/index.js.map +1 -1
  111. package/package.json +1 -1
  112. package/src/components/macro/accordion-preset.test.tsx +1 -2
  113. package/src/components/macro/accordion-preset.tsx +1 -2
  114. package/src/components/macro/alert-dialog-preset.tsx +7 -12
  115. package/src/components/macro/alert-preset.tsx +1 -2
  116. package/src/components/macro/avatar-preset.tsx +2 -4
  117. package/src/components/macro/breadcrumb-preset.tsx +1 -2
  118. package/src/components/macro/card-preset.tsx +1 -2
  119. package/src/components/macro/carousel-preset.tsx +1 -2
  120. package/src/components/macro/checkbox-preset.tsx +1 -2
  121. package/src/components/macro/combobox-preset.tsx +8 -14
  122. package/src/components/macro/command-preset.tsx +18 -24
  123. package/src/components/macro/date-picker.tsx +14 -23
  124. package/src/components/macro/dialog-preset.tsx +45 -49
  125. package/src/components/macro/empty-preset.tsx +2 -4
  126. package/src/components/macro/field-preset.tsx +1 -2
  127. package/src/components/macro/input-otp-preset.tsx +1 -2
  128. package/src/components/macro/input-preset.tsx +1 -2
  129. package/src/components/macro/pagination-preset.tsx +3 -6
  130. package/src/components/macro/progress-preset.tsx +1 -2
  131. package/src/components/macro/radio-group-preset.tsx +2 -4
  132. package/src/components/macro/select-preset.tsx +7 -12
  133. package/src/components/macro/slider-preset.tsx +1 -2
  134. package/src/components/macro/switch-preset.tsx +1 -2
  135. package/src/components/macro/tabs-preset.tsx +1 -2
  136. package/src/components/micro/alert-dialog.tsx +16 -14
  137. package/src/components/micro/combobox.tsx +28 -22
  138. package/src/components/micro/context-menu.tsx +52 -36
  139. package/src/components/micro/dialog.tsx +23 -19
  140. package/src/components/micro/drawer.tsx +23 -19
  141. package/src/components/micro/dropdown-menu.tsx +23 -18
  142. package/src/components/micro/hover-card.tsx +31 -23
  143. package/src/components/micro/menubar.tsx +0 -8
  144. package/src/components/micro/navigation-menu.tsx +26 -19
  145. package/src/components/micro/popover.tsx +31 -25
  146. package/src/components/micro/select.tsx +36 -29
  147. package/src/components/micro/sheet.tsx +36 -31
  148. package/src/components/micro/tooltip.tsx +28 -23
  149. package/src/dev/showcase/accordion.tsx +47 -94
  150. package/src/dev/showcase/alert-dialog.tsx +27 -39
  151. package/src/dev/showcase/alert.tsx +5 -10
  152. package/src/dev/showcase/aspect-ratio.tsx +1 -2
  153. package/src/dev/showcase/avatar.tsx +5 -10
  154. package/src/dev/showcase/badge.tsx +2 -4
  155. package/src/dev/showcase/breadcrumb.tsx +8 -11
  156. package/src/dev/showcase/button.tsx +2 -4
  157. package/src/dev/showcase/calendar.tsx +5 -10
  158. package/src/dev/showcase/card.tsx +4 -8
  159. package/src/dev/showcase/carousel.tsx +40 -80
  160. package/src/dev/showcase/chart.tsx +7 -16
  161. package/src/dev/showcase/checkbox.tsx +7 -14
  162. package/src/dev/showcase/collapsible.tsx +3 -6
  163. package/src/dev/showcase/combobox.tsx +27 -43
  164. package/src/dev/showcase/command.tsx +4 -8
  165. package/src/dev/showcase/context-menu.tsx +13 -19
  166. package/src/dev/showcase/dialog.tsx +19 -33
  167. package/src/dev/showcase/drawer.tsx +19 -27
  168. package/src/dev/showcase/dropdown-menu.tsx +19 -29
  169. package/src/dev/showcase/empty.tsx +3 -6
  170. package/src/dev/showcase/hover-card.tsx +24 -36
  171. package/src/dev/showcase/input-group.tsx +4 -8
  172. package/src/dev/showcase/input-otp.tsx +5 -10
  173. package/src/dev/showcase/input.tsx +5 -10
  174. package/src/dev/showcase/item.tsx +3 -6
  175. package/src/dev/showcase/kbd.tsx +12 -16
  176. package/src/dev/showcase/label.tsx +2 -4
  177. package/src/dev/showcase/menubar.tsx +17 -19
  178. package/src/dev/showcase/navigation-menu.tsx +12 -15
  179. package/src/dev/showcase/overview.tsx +14 -27
  180. package/src/dev/showcase/pagination.tsx +4 -8
  181. package/src/dev/showcase/popover.tsx +21 -27
  182. package/src/dev/showcase/progress.tsx +4 -8
  183. package/src/dev/showcase/radio-group.tsx +8 -16
  184. package/src/dev/showcase/resizable.tsx +2 -4
  185. package/src/dev/showcase/scroll-area.tsx +1 -2
  186. package/src/dev/showcase/select.tsx +27 -39
  187. package/src/dev/showcase/separator.tsx +1 -2
  188. package/src/dev/showcase/sheet.tsx +22 -33
  189. package/src/dev/showcase/sidebar.tsx +2 -4
  190. package/src/dev/showcase/skeleton.tsx +1 -2
  191. package/src/dev/showcase/slider.tsx +5 -10
  192. package/src/dev/showcase/sonner.tsx +18 -38
  193. package/src/dev/showcase/spinner.tsx +2 -4
  194. package/src/dev/showcase/switch.tsx +6 -12
  195. package/src/dev/showcase/table.tsx +3 -6
  196. package/src/dev/showcase/tabs.tsx +20 -40
  197. package/src/dev/showcase/textarea.tsx +5 -10
  198. package/src/dev/showcase/theme-provider.tsx +384 -545
  199. package/src/dev/showcase/toast.tsx +4 -10
  200. package/src/dev/showcase/toggle-group.tsx +4 -8
  201. package/src/dev/showcase/toggle.tsx +2 -4
  202. package/src/dev/showcase/tooltip.tsx +34 -43
@@ -5,8 +5,7 @@ import {
5
5
  InfoIcon,
6
6
  TriangleAlertIcon,
7
7
  XCircleIcon,
8
- XIcon,
9
- } from "lucide-react";
8
+ XIcon } from "lucide-react";
10
9
 
11
10
  import { AlertPreset } from "../../components/macro/alert-preset";
12
11
  import {
@@ -14,8 +13,7 @@ import {
14
13
  AlertAction,
15
14
  AlertDescription,
16
15
  AlertIcon,
17
- AlertTitle,
18
- } from "../../components/micro/alert";
16
+ AlertTitle } from "../../components/micro/alert";
19
17
  import { Button } from "../../components/micro/button";
20
18
  import { useDevContext } from "../../dev/components/dev-context";
21
19
  import {
@@ -26,8 +24,7 @@ import {
26
24
  ExampleGrid,
27
25
  ExampleSection,
28
26
  Showcase,
29
- ShowcaseDocs,
30
- } from "../../dev/components/showcase";
27
+ ShowcaseDocs } from "../../dev/components/showcase";
31
28
  import { type Size } from "../../lib/types";
32
29
 
33
30
  // ──────────────────────────────────────────────────────────
@@ -757,12 +754,10 @@ export default function AlertShowcase() {
757
754
  tabs={[
758
755
  {
759
756
  label: "Micro (Primitive)",
760
- content: <AlertMicroShowcase globalSize={globalSize} />,
761
- },
757
+ content: <AlertMicroShowcase globalSize={globalSize} /> },
762
758
  {
763
759
  label: "Macro (Preset)",
764
- content: <AlertMacroShowcase globalSize={globalSize} />,
765
- },
760
+ content: <AlertMacroShowcase globalSize={globalSize} /> },
766
761
  ]}
767
762
  />
768
763
  );
@@ -5,8 +5,7 @@ import {
5
5
  ExampleGrid,
6
6
  ExampleSection,
7
7
  Showcase,
8
- ShowcaseDocs,
9
- } from "../../dev/components/showcase";
8
+ ShowcaseDocs } from "../../dev/components/showcase";
10
9
 
11
10
  const commonRatios = [
12
11
  { label: "16:9", ratio: 16 / 9, desc: "Widescreen — video, hero banners" },
@@ -2,8 +2,7 @@ import {
2
2
  CheckCircle2Icon,
3
3
  CheckIcon,
4
4
  LayersIcon,
5
- UserIcon,
6
- } from "lucide-react";
5
+ UserIcon } from "lucide-react";
7
6
 
8
7
  import { AvatarPreset } from "../../components/macro/avatar-preset";
9
8
  import {
@@ -12,16 +11,14 @@ import {
12
11
  AvatarFallback,
13
12
  AvatarGroup,
14
13
  AvatarGroupCount,
15
- AvatarImage,
16
- } from "../../components/micro/avatar";
14
+ AvatarImage } from "../../components/micro/avatar";
17
15
  import { useDevContext } from "../../dev/components/dev-context";
18
16
  import {
19
17
  DocsP,
20
18
  ExampleGrid,
21
19
  ExampleSection,
22
20
  Showcase,
23
- ShowcaseDocs,
24
- } from "../../dev/components/showcase";
21
+ ShowcaseDocs } from "../../dev/components/showcase";
25
22
  import { type Size } from "../../lib/types";
26
23
 
27
24
  // ──────────────────────────────────────────────────────────
@@ -529,12 +526,10 @@ export default function AvatarShowcase() {
529
526
  tabs={[
530
527
  {
531
528
  label: "Micro (Primitive)",
532
- content: <AvatarMicroShowcase globalSize={globalSize} />,
533
- },
529
+ content: <AvatarMicroShowcase globalSize={globalSize} /> },
534
530
  {
535
531
  label: "Macro (Preset)",
536
- content: <AvatarMacroShowcase globalSize={globalSize} />,
537
- },
532
+ content: <AvatarMacroShowcase globalSize={globalSize} /> },
538
533
  ]}
539
534
  />
540
535
  );
@@ -8,8 +8,7 @@ import {
8
8
  ExampleGrid,
9
9
  ExampleSection,
10
10
  Showcase,
11
- ShowcaseDocs,
12
- } from "../../dev/components/showcase";
11
+ ShowcaseDocs } from "../../dev/components/showcase";
13
12
  import { type Size } from "../../lib/types";
14
13
 
15
14
  export default function BadgeShowcase() {
@@ -30,8 +29,7 @@ export default function BadgeShowcase() {
30
29
  tabs={[
31
30
  {
32
31
  label: "Micro (Primitive)",
33
- content: <BadgeMicroShowcase globalSize={globalSize} />,
34
- },
32
+ content: <BadgeMicroShowcase globalSize={globalSize} /> },
35
33
  ]}
36
34
  />
37
35
  );
@@ -8,22 +8,19 @@ import {
8
8
  BreadcrumbLink,
9
9
  BreadcrumbList,
10
10
  BreadcrumbPage,
11
- BreadcrumbSeparator,
12
- } from "../../components/micro/breadcrumb";
11
+ BreadcrumbSeparator } from "../../components/micro/breadcrumb";
13
12
  import {
14
13
  DropdownMenu,
15
14
  DropdownMenuContent,
16
15
  DropdownMenuItem,
17
- DropdownMenuPortal,
18
- DropdownMenuTrigger,
19
- } from "../../components/micro/dropdown-menu";
16
+
17
+ DropdownMenuTrigger } from "../../components/micro/dropdown-menu";
20
18
  import {
21
19
  DocsP,
22
20
  ExampleGrid,
23
21
  ExampleSection,
24
22
  Showcase,
25
- ShowcaseDocs,
26
- } from "../../dev/components/showcase";
23
+ ShowcaseDocs } from "../../dev/components/showcase";
27
24
 
28
25
  // ──────────────────────────────────────────────────────────
29
26
  // SECTION 1: Macro Content
@@ -185,13 +182,13 @@ function BreadcrumbMicroShowcase() {
185
182
  <BreadcrumbEllipsis className="h-4 w-4" />
186
183
  <span className="sr-only">Toggle menu</span>
187
184
  </DropdownMenuTrigger>
188
- <DropdownMenuPortal>
185
+
189
186
  <DropdownMenuContent align="start">
190
187
  <DropdownMenuItem>Tài liệu</DropdownMenuItem>
191
188
  <DropdownMenuItem>Giao diện</DropdownMenuItem>
192
189
  <DropdownMenuItem>GitHub</DropdownMenuItem>
193
190
  </DropdownMenuContent>
194
- </DropdownMenuPortal>
191
+
195
192
  </DropdownMenu>
196
193
  </BreadcrumbItem>
197
194
  <BreadcrumbSeparator />
@@ -219,13 +216,13 @@ function BreadcrumbMicroShowcase() {
219
216
  <BreadcrumbEllipsis className="h-4 w-4" />
220
217
  <span className="sr-only">Toggle menu</span>
221
218
  </DropdownMenuTrigger>
222
- <DropdownMenuPortal>
219
+
223
220
  <DropdownMenuContent align="start">
224
221
  <DropdownMenuItem>Tài liệu</DropdownMenuItem>
225
222
  <DropdownMenuItem>Giao diện</DropdownMenuItem>
226
223
  <DropdownMenuItem>GitHub</DropdownMenuItem>
227
224
  </DropdownMenuContent>
228
- </DropdownMenuPortal>
225
+
229
226
  </DropdownMenu>
230
227
  </BreadcrumbItem>
231
228
  <BreadcrumbSeparator />
@@ -10,8 +10,7 @@ import {
10
10
  ExampleGrid,
11
11
  ExampleSection,
12
12
  Showcase,
13
- ShowcaseDocs,
14
- } from "../../dev/components/showcase";
13
+ ShowcaseDocs } from "../../dev/components/showcase";
15
14
  import { type Size } from "../../lib/types";
16
15
 
17
16
  function ButtonMicroShowcase({ globalSize }: { globalSize: Size }) {
@@ -277,8 +276,7 @@ export default function ButtonShowcase() {
277
276
  tabs={[
278
277
  {
279
278
  label: "Micro (Primitive)",
280
- content: <ButtonMicroShowcase globalSize={globalSize} />,
281
- },
279
+ content: <ButtonMicroShowcase globalSize={globalSize} /> },
282
280
  ]}
283
281
  />
284
282
  );
@@ -10,8 +10,7 @@ import {
10
10
  ExampleGrid,
11
11
  ExampleSection,
12
12
  Showcase,
13
- ShowcaseDocs,
14
- } from "../../dev/components/showcase";
13
+ ShowcaseDocs } from "../../dev/components/showcase";
15
14
  import { type Size } from "../../lib/types";
16
15
 
17
16
  function CalendarMicroShowcase({ globalSize }: { globalSize: Size }) {
@@ -23,8 +22,7 @@ function CalendarMicroShowcase({ globalSize }: { globalSize: Size }) {
23
22
  ]);
24
23
  const [dateRange, setDateRange] = useState<DateRange | undefined>({
25
24
  from: new Date(2026, 5, 15),
26
- to: new Date(2026, 5, 25),
27
- });
25
+ to: new Date(2026, 5, 25) });
28
26
 
29
27
  return (
30
28
  <div className="space-y-10 mt-6">
@@ -59,8 +57,7 @@ function CalendarMicroShowcase({ globalSize }: { globalSize: Size }) {
59
57
  description="Chọn một phạm vi ngày."
60
58
  codeString={`const [date, setDate] = React.useState<DateRange | undefined>({
61
59
  from: new Date(2026, 5, 15),
62
- to: new Date(2026, 5, 25),
63
- })
60
+ to: new Date(2026, 5, 25) })
64
61
 
65
62
  <Calendar
66
63
  mode="range"
@@ -370,12 +367,10 @@ export default function CalendarShowcase() {
370
367
  tabs={[
371
368
  {
372
369
  label: "Micro (Primitive)",
373
- content: <CalendarMicroShowcase globalSize={globalSize} />,
374
- },
370
+ content: <CalendarMicroShowcase globalSize={globalSize} /> },
375
371
  {
376
372
  label: "Macro (DatePicker)",
377
- content: <CalendarMacroShowcase globalSize={globalSize} />,
378
- },
373
+ content: <CalendarMacroShowcase globalSize={globalSize} /> },
379
374
  ]}
380
375
  />
381
376
  );
@@ -7,8 +7,7 @@ import {
7
7
  CardDescription,
8
8
  CardFooter,
9
9
  CardHeader,
10
- CardTitle,
11
- } from "../../components/micro/card";
10
+ CardTitle } from "../../components/micro/card";
12
11
  import { Input } from "../../components/micro/input";
13
12
  import { Label } from "../../components/micro/label";
14
13
  import { useDevContext } from "../../dev/components/dev-context";
@@ -17,8 +16,7 @@ import {
17
16
  ExampleGrid,
18
17
  ExampleSection,
19
18
  Showcase,
20
- ShowcaseDocs,
21
- } from "../../dev/components/showcase";
19
+ ShowcaseDocs } from "../../dev/components/showcase";
22
20
  import { type Size } from "../../lib/types";
23
21
 
24
22
  // ──────────────────────────────────────────────────────────
@@ -458,12 +456,10 @@ export default function CardShowcase() {
458
456
  tabs={[
459
457
  {
460
458
  label: "Micro (Primitive)",
461
- content: <CardMicroShowcase globalSize={globalSize} />,
462
- },
459
+ content: <CardMicroShowcase globalSize={globalSize} /> },
463
460
  {
464
461
  label: "Macro (Preset)",
465
- content: <CardMacroShowcase globalSize={globalSize} />,
466
- },
462
+ content: <CardMacroShowcase globalSize={globalSize} /> },
467
463
  ]}
468
464
  />
469
465
  );
@@ -8,15 +8,13 @@ import {
8
8
  CarouselDots,
9
9
  CarouselItem,
10
10
  CarouselNext,
11
- CarouselPrevious,
12
- } from "../../components/micro/carousel";
11
+ CarouselPrevious } from "../../components/micro/carousel";
13
12
  import {
14
13
  DocsP,
15
14
  ExampleGrid,
16
15
  ExampleSection,
17
16
  Showcase,
18
- ShowcaseDocs,
19
- } from "../../dev/components/showcase";
17
+ ShowcaseDocs } from "../../dev/components/showcase";
20
18
  import { cn } from "../../lib/utils";
21
19
 
22
20
  const SLIDES = [
@@ -24,32 +22,27 @@ const SLIDES = [
24
22
  id: 1,
25
23
  title: "Modern Aesthetics",
26
24
  desc: "Crafting beautiful interfaces with tailwind.",
27
- bg: "bg-gradient-to-tr from-violet-500 to-purple-500",
28
- },
25
+ bg: "bg-gradient-to-tr from-violet-500 to-purple-500" },
29
26
  {
30
27
  id: 2,
31
28
  title: "Smooth Interactions",
32
29
  desc: "Fluid animations and micro-interactions.",
33
- bg: "bg-gradient-to-tr from-pink-500 to-rose-500",
34
- },
30
+ bg: "bg-gradient-to-tr from-pink-500 to-rose-500" },
35
31
  {
36
32
  id: 3,
37
33
  title: "Highly Customizable",
38
34
  desc: "Easily adapt to your brand.",
39
- bg: "bg-gradient-to-tr from-blue-500 to-cyan-500",
40
- },
35
+ bg: "bg-gradient-to-tr from-blue-500 to-cyan-500" },
41
36
  {
42
37
  id: 4,
43
38
  title: "Accessible by Default",
44
39
  desc: "Keyboard navigation out of the box.",
45
- bg: "bg-gradient-to-tr from-emerald-500 to-teal-500",
46
- },
40
+ bg: "bg-gradient-to-tr from-emerald-500 to-teal-500" },
47
41
  {
48
42
  id: 5,
49
43
  title: "Dark Mode Ready",
50
44
  desc: "Looks stunning on dark and light mode.",
51
- bg: "bg-gradient-to-tr from-amber-500 to-orange-500",
52
- },
45
+ bg: "bg-gradient-to-tr from-amber-500 to-orange-500" },
53
46
  ];
54
47
 
55
48
  function ControlledCarouselDemo() {
@@ -84,8 +77,7 @@ function ControlledCarouselDemo() {
84
77
  <span className="text-4xl font-semibold">1</span>
85
78
  </div>
86
79
  </div>
87
- ),
88
- },
80
+ ) },
89
81
  {
90
82
  id: "c2",
91
83
  content: (
@@ -94,8 +86,7 @@ function ControlledCarouselDemo() {
94
86
  <span className="text-4xl font-semibold">2</span>
95
87
  </div>
96
88
  </div>
97
- ),
98
- },
89
+ ) },
99
90
  {
100
91
  id: "c3",
101
92
  content: (
@@ -104,8 +95,7 @@ function ControlledCarouselDemo() {
104
95
  <span className="text-4xl font-semibold">3</span>
105
96
  </div>
106
97
  </div>
107
- ),
108
- },
98
+ ) },
109
99
  ]}
110
100
  />
111
101
  </div>
@@ -139,8 +129,7 @@ function CarouselMacroShowcase() {
139
129
  </span>
140
130
  </div>
141
131
  </div>
142
- ),
143
- },
132
+ ) },
144
133
  {
145
134
  id: "std-2",
146
135
  content: (
@@ -151,8 +140,7 @@ function CarouselMacroShowcase() {
151
140
  </span>
152
141
  </div>
153
142
  </div>
154
- ),
155
- },
143
+ ) },
156
144
  {
157
145
  id: "std-3",
158
146
  content: (
@@ -163,8 +151,7 @@ function CarouselMacroShowcase() {
163
151
  </span>
164
152
  </div>
165
153
  </div>
166
- ),
167
- },
154
+ ) },
168
155
  ]}
169
156
  />`}
170
157
  >
@@ -179,8 +166,7 @@ function CarouselMacroShowcase() {
179
166
  <span className="text-4xl font-semibold">1</span>
180
167
  </div>
181
168
  </div>
182
- ),
183
- },
169
+ ) },
184
170
  {
185
171
  id: "std-2",
186
172
  content: (
@@ -189,8 +175,7 @@ function CarouselMacroShowcase() {
189
175
  <span className="text-4xl font-semibold">2</span>
190
176
  </div>
191
177
  </div>
192
- ),
193
- },
178
+ ) },
194
179
  {
195
180
  id: "std-3",
196
181
  content: (
@@ -199,8 +184,7 @@ function CarouselMacroShowcase() {
199
184
  <span className="text-4xl font-semibold">3</span>
200
185
  </div>
201
186
  </div>
202
- ),
203
- },
187
+ ) },
204
188
  ]}
205
189
  />
206
190
  </div>
@@ -219,8 +203,7 @@ function CarouselMacroShowcase() {
219
203
  alt="Slide 1"
220
204
  className="rounded-xl object-cover"
221
205
  />
222
- ),
223
- },
206
+ ) },
224
207
  {
225
208
  id: "img-2",
226
209
  content: (
@@ -229,8 +212,7 @@ function CarouselMacroShowcase() {
229
212
  alt="Slide 2"
230
213
  className="rounded-xl object-cover"
231
214
  />
232
- ),
233
- },
215
+ ) },
234
216
  {
235
217
  id: "img-3",
236
218
  content: (
@@ -239,8 +221,7 @@ function CarouselMacroShowcase() {
239
221
  alt="Slide 3"
240
222
  className="rounded-xl object-cover"
241
223
  />
242
- ),
243
- },
224
+ ) },
244
225
  ]}
245
226
  />`}
246
227
  >
@@ -255,8 +236,7 @@ function CarouselMacroShowcase() {
255
236
  alt="Slide 1"
256
237
  className="rounded-xl object-cover"
257
238
  />
258
- ),
259
- },
239
+ ) },
260
240
  {
261
241
  id: "img-2",
262
242
  content: (
@@ -265,8 +245,7 @@ function CarouselMacroShowcase() {
265
245
  alt="Slide 2"
266
246
  className="rounded-xl object-cover"
267
247
  />
268
- ),
269
- },
248
+ ) },
270
249
  {
271
250
  id: "img-3",
272
251
  content: (
@@ -275,8 +254,7 @@ function CarouselMacroShowcase() {
275
254
  alt="Slide 3"
276
255
  className="rounded-xl object-cover"
277
256
  />
278
- ),
279
- },
257
+ ) },
280
258
  ]}
281
259
  />
282
260
  </div>
@@ -301,8 +279,7 @@ function CarouselMacroShowcase() {
301
279
  </span>
302
280
  </div>
303
281
  </div>
304
- ),
305
- },
282
+ ) },
306
283
  {
307
284
  id: "loop-2",
308
285
  content: (
@@ -313,8 +290,7 @@ function CarouselMacroShowcase() {
313
290
  </span>
314
291
  </div>
315
292
  </div>
316
- ),
317
- },
293
+ ) },
318
294
  {
319
295
  id: "loop-3",
320
296
  content: (
@@ -325,8 +301,7 @@ function CarouselMacroShowcase() {
325
301
  </span>
326
302
  </div>
327
303
  </div>
328
- ),
329
- },
304
+ ) },
330
305
  ]}
331
306
  />`}
332
307
  >
@@ -343,8 +318,7 @@ function CarouselMacroShowcase() {
343
318
  <span className="text-4xl font-semibold">1</span>
344
319
  </div>
345
320
  </div>
346
- ),
347
- },
321
+ ) },
348
322
  {
349
323
  id: "loop-2",
350
324
  content: (
@@ -353,8 +327,7 @@ function CarouselMacroShowcase() {
353
327
  <span className="text-4xl font-semibold">2</span>
354
328
  </div>
355
329
  </div>
356
- ),
357
- },
330
+ ) },
358
331
  {
359
332
  id: "loop-3",
360
333
  content: (
@@ -363,8 +336,7 @@ function CarouselMacroShowcase() {
363
336
  <span className="text-4xl font-semibold">3</span>
364
337
  </div>
365
338
  </div>
366
- ),
367
- },
339
+ ) },
368
340
  ]}
369
341
  />
370
342
  </div>
@@ -386,8 +358,7 @@ function CarouselMacroShowcase() {
386
358
  </span>
387
359
  </div>
388
360
  </div>
389
- ),
390
- },
361
+ ) },
391
362
  {
392
363
  id: "arr-2",
393
364
  content: (
@@ -398,8 +369,7 @@ function CarouselMacroShowcase() {
398
369
  </span>
399
370
  </div>
400
371
  </div>
401
- ),
402
- },
372
+ ) },
403
373
  {
404
374
  id: "arr-3",
405
375
  content: (
@@ -410,8 +380,7 @@ function CarouselMacroShowcase() {
410
380
  </span>
411
381
  </div>
412
382
  </div>
413
- ),
414
- },
383
+ ) },
415
384
  ]}
416
385
  />`}
417
386
  >
@@ -427,8 +396,7 @@ function CarouselMacroShowcase() {
427
396
  <span className="text-4xl font-semibold">A</span>
428
397
  </div>
429
398
  </div>
430
- ),
431
- },
399
+ ) },
432
400
  {
433
401
  id: "arr-2",
434
402
  content: (
@@ -437,8 +405,7 @@ function CarouselMacroShowcase() {
437
405
  <span className="text-4xl font-semibold">B</span>
438
406
  </div>
439
407
  </div>
440
- ),
441
- },
408
+ ) },
442
409
  {
443
410
  id: "arr-3",
444
411
  content: (
@@ -447,8 +414,7 @@ function CarouselMacroShowcase() {
447
414
  <span className="text-4xl font-semibold">C</span>
448
415
  </div>
449
416
  </div>
450
- ),
451
- },
417
+ ) },
452
418
  ]}
453
419
  />
454
420
  </div>
@@ -487,24 +453,21 @@ return (
487
453
  <div className="h-full w-full border border-border rounded-xl flex items-center justify-center bg-muted/20 text-4xl font-semibold">
488
454
  A
489
455
  </div>
490
- ),
491
- },
456
+ ) },
492
457
  {
493
458
  id: "v2",
494
459
  content: (
495
460
  <div className="h-full w-full border border-border rounded-xl flex items-center justify-center bg-muted/20 text-4xl font-semibold">
496
461
  B
497
462
  </div>
498
- ),
499
- },
463
+ ) },
500
464
  {
501
465
  id: "v3",
502
466
  content: (
503
467
  <div className="h-full w-full border border-border rounded-xl flex items-center justify-center bg-muted/20 text-4xl font-semibold">
504
468
  C
505
469
  </div>
506
- ),
507
- },
470
+ ) },
508
471
  ]}
509
472
  />`}
510
473
  >
@@ -521,24 +484,21 @@ return (
521
484
  <div className="h-full w-full border border-border rounded-xl flex items-center justify-center bg-muted/20 text-4xl font-semibold">
522
485
  A
523
486
  </div>
524
- ),
525
- },
487
+ ) },
526
488
  {
527
489
  id: "v2",
528
490
  content: (
529
491
  <div className="h-full w-full border border-border rounded-xl flex items-center justify-center bg-muted/20 text-4xl font-semibold">
530
492
  B
531
493
  </div>
532
- ),
533
- },
494
+ ) },
534
495
  {
535
496
  id: "v3",
536
497
  content: (
537
498
  <div className="h-full w-full border border-border rounded-xl flex items-center justify-center bg-muted/20 text-4xl font-semibold">
538
499
  C
539
500
  </div>
540
- ),
541
- },
501
+ ) },
542
502
  ]}
543
503
  />
544
504
  </div>