gladvn 0.2.16 → 0.2.18

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 (315) hide show
  1. package/bin/cli.js +9 -6
  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.map +1 -1
  16. package/dist/components/macro/field-preset.d.ts.map +1 -1
  17. package/dist/components/macro/input-otp-preset.d.ts +6 -0
  18. package/dist/components/macro/input-otp-preset.d.ts.map +1 -1
  19. package/dist/components/macro/input-preset.d.ts +1 -1
  20. package/dist/components/macro/input-preset.d.ts.map +1 -1
  21. package/dist/components/macro/pagination-preset.d.ts.map +1 -1
  22. package/dist/components/macro/progress-preset.d.ts.map +1 -1
  23. package/dist/components/macro/radio-group-preset.d.ts.map +1 -1
  24. package/dist/components/macro/select-preset.d.ts.map +1 -1
  25. package/dist/components/macro/slider-preset.d.ts.map +1 -1
  26. package/dist/components/macro/switch-preset.d.ts.map +1 -1
  27. package/dist/components/macro/tabs-preset.d.ts +1 -1
  28. package/dist/components/macro/tabs-preset.d.ts.map +1 -1
  29. package/dist/components/macro/textarea-preset.d.ts +1 -1
  30. package/dist/components/macro/textarea-preset.d.ts.map +1 -1
  31. package/dist/components/micro/accordion.d.ts +7 -0
  32. package/dist/components/micro/accordion.d.ts.map +1 -1
  33. package/dist/components/micro/alert-dialog.d.ts.map +1 -1
  34. package/dist/components/micro/alert.d.ts +7 -0
  35. package/dist/components/micro/alert.d.ts.map +1 -1
  36. package/dist/components/micro/aspect-ratio.d.ts +7 -0
  37. package/dist/components/micro/aspect-ratio.d.ts.map +1 -1
  38. package/dist/components/micro/avatar.d.ts.map +1 -1
  39. package/dist/components/micro/badge.d.ts +8 -1
  40. package/dist/components/micro/badge.d.ts.map +1 -1
  41. package/dist/components/micro/breadcrumb.d.ts +7 -0
  42. package/dist/components/micro/breadcrumb.d.ts.map +1 -1
  43. package/dist/components/micro/button.d.ts +8 -1
  44. package/dist/components/micro/button.d.ts.map +1 -1
  45. package/dist/components/micro/calendar.d.ts +2 -2
  46. package/dist/components/micro/calendar.d.ts.map +1 -1
  47. package/dist/components/micro/carousel.d.ts.map +1 -1
  48. package/dist/components/micro/chart.d.ts.map +1 -1
  49. package/dist/components/micro/checkbox.d.ts.map +1 -1
  50. package/dist/components/micro/collapsible.d.ts.map +1 -1
  51. package/dist/components/micro/combobox.d.ts.map +1 -1
  52. package/dist/components/micro/command.d.ts.map +1 -1
  53. package/dist/components/micro/context-menu.d.ts.map +1 -1
  54. package/dist/components/micro/dialog.d.ts.map +1 -1
  55. package/dist/components/micro/drawer.d.ts.map +1 -1
  56. package/dist/components/micro/dropdown-menu.d.ts.map +1 -1
  57. package/dist/components/micro/empty.d.ts +7 -0
  58. package/dist/components/micro/empty.d.ts.map +1 -1
  59. package/dist/components/micro/field.d.ts.map +1 -1
  60. package/dist/components/micro/hover-card.d.ts +1 -1
  61. package/dist/components/micro/hover-card.d.ts.map +1 -1
  62. package/dist/components/micro/input-group.d.ts.map +1 -1
  63. package/dist/components/micro/input-otp.d.ts.map +1 -1
  64. package/dist/components/micro/input.d.ts +7 -0
  65. package/dist/components/micro/input.d.ts.map +1 -1
  66. package/dist/components/micro/item.d.ts.map +1 -1
  67. package/dist/components/micro/label.d.ts.map +1 -1
  68. package/dist/components/micro/menubar.d.ts.map +1 -1
  69. package/dist/components/micro/navigation-menu.d.ts +8 -1
  70. package/dist/components/micro/navigation-menu.d.ts.map +1 -1
  71. package/dist/components/micro/pagination.d.ts.map +1 -1
  72. package/dist/components/micro/popover.d.ts.map +1 -1
  73. package/dist/components/micro/progress.d.ts.map +1 -1
  74. package/dist/components/micro/radio-group.d.ts.map +1 -1
  75. package/dist/components/micro/select.d.ts +1 -1
  76. package/dist/components/micro/select.d.ts.map +1 -1
  77. package/dist/components/micro/sheet.d.ts.map +1 -1
  78. package/dist/components/micro/sidebar.d.ts.map +1 -1
  79. package/dist/components/micro/skeleton.d.ts +7 -0
  80. package/dist/components/micro/skeleton.d.ts.map +1 -1
  81. package/dist/components/micro/slider.d.ts +7 -0
  82. package/dist/components/micro/slider.d.ts.map +1 -1
  83. package/dist/components/micro/sonner.d.ts.map +1 -1
  84. package/dist/components/micro/spinner.d.ts.map +1 -1
  85. package/dist/components/micro/switch.d.ts.map +1 -1
  86. package/dist/components/micro/table.d.ts.map +1 -1
  87. package/dist/components/micro/tabs.d.ts +1 -1
  88. package/dist/components/micro/tabs.d.ts.map +1 -1
  89. package/dist/components/micro/textarea.d.ts +7 -0
  90. package/dist/components/micro/textarea.d.ts.map +1 -1
  91. package/dist/components/micro/toggle-group.d.ts.map +1 -1
  92. package/dist/components/micro/toggle.d.ts.map +1 -1
  93. package/dist/components/micro/tooltip.d.ts +1 -1
  94. package/dist/components/micro/tooltip.d.ts.map +1 -1
  95. package/dist/dev/App.d.ts.map +1 -1
  96. package/dist/dev/components/code-highlighter.d.ts.map +1 -1
  97. package/dist/dev/components/dev-context.d.ts.map +1 -1
  98. package/dist/dev/components/showcase.d.ts +1 -1
  99. package/dist/dev/components/showcase.d.ts.map +1 -1
  100. package/dist/dev/data.d.ts.map +1 -1
  101. package/dist/dev/main.d.ts.map +1 -1
  102. package/dist/dev/sections/buttons.d.ts.map +1 -1
  103. package/dist/dev/sections/feedback.d.ts.map +1 -1
  104. package/dist/dev/sections/overview.d.ts.map +1 -1
  105. package/dist/dev/showcase/accordion.d.ts.map +1 -1
  106. package/dist/dev/showcase/alert-dialog.d.ts.map +1 -1
  107. package/dist/dev/showcase/alert.d.ts.map +1 -1
  108. package/dist/dev/showcase/aspect-ratio.d.ts.map +1 -1
  109. package/dist/dev/showcase/avatar.d.ts.map +1 -1
  110. package/dist/dev/showcase/breadcrumb.d.ts.map +1 -1
  111. package/dist/dev/showcase/button.d.ts.map +1 -1
  112. package/dist/dev/showcase/calendar.d.ts.map +1 -1
  113. package/dist/dev/showcase/card.d.ts.map +1 -1
  114. package/dist/dev/showcase/carousel.d.ts.map +1 -1
  115. package/dist/dev/showcase/chart.d.ts.map +1 -1
  116. package/dist/dev/showcase/checkbox.d.ts.map +1 -1
  117. package/dist/dev/showcase/collapsible.d.ts.map +1 -1
  118. package/dist/dev/showcase/combobox.d.ts.map +1 -1
  119. package/dist/dev/showcase/command.d.ts.map +1 -1
  120. package/dist/dev/showcase/context-menu.d.ts.map +1 -1
  121. package/dist/dev/showcase/dialog.d.ts.map +1 -1
  122. package/dist/dev/showcase/drawer.d.ts.map +1 -1
  123. package/dist/dev/showcase/dropdown-menu.d.ts.map +1 -1
  124. package/dist/dev/showcase/empty.d.ts.map +1 -1
  125. package/dist/dev/showcase/hover-card.d.ts.map +1 -1
  126. package/dist/dev/showcase/input-group.d.ts.map +1 -1
  127. package/dist/dev/showcase/input-otp.d.ts.map +1 -1
  128. package/dist/dev/showcase/input.d.ts.map +1 -1
  129. package/dist/dev/showcase/item.d.ts.map +1 -1
  130. package/dist/dev/showcase/kbd.d.ts.map +1 -1
  131. package/dist/dev/showcase/label.d.ts.map +1 -1
  132. package/dist/dev/showcase/menubar.d.ts.map +1 -1
  133. package/dist/dev/showcase/navigation-menu.d.ts.map +1 -1
  134. package/dist/dev/showcase/overview.d.ts.map +1 -1
  135. package/dist/dev/showcase/pagination.d.ts.map +1 -1
  136. package/dist/dev/showcase/popover.d.ts.map +1 -1
  137. package/dist/dev/showcase/progress.d.ts.map +1 -1
  138. package/dist/dev/showcase/radio-group.d.ts.map +1 -1
  139. package/dist/dev/showcase/resizable.d.ts.map +1 -1
  140. package/dist/dev/showcase/scroll-area.d.ts.map +1 -1
  141. package/dist/dev/showcase/select.d.ts.map +1 -1
  142. package/dist/dev/showcase/separator.d.ts.map +1 -1
  143. package/dist/dev/showcase/sheet.d.ts.map +1 -1
  144. package/dist/dev/showcase/sidebar.d.ts.map +1 -1
  145. package/dist/dev/showcase/skeleton.d.ts.map +1 -1
  146. package/dist/dev/showcase/slider.d.ts.map +1 -1
  147. package/dist/dev/showcase/sonner.d.ts.map +1 -1
  148. package/dist/dev/showcase/spinner.d.ts.map +1 -1
  149. package/dist/dev/showcase/switch.d.ts.map +1 -1
  150. package/dist/dev/showcase/table.d.ts.map +1 -1
  151. package/dist/dev/showcase/tabs.d.ts.map +1 -1
  152. package/dist/dev/showcase/textarea.d.ts.map +1 -1
  153. package/dist/dev/showcase/theme-provider.d.ts.map +1 -1
  154. package/dist/dev/showcase/toast.d.ts.map +1 -1
  155. package/dist/dev/showcase/toggle-group.d.ts.map +1 -1
  156. package/dist/dev/showcase/toggle.d.ts.map +1 -1
  157. package/dist/dev/showcase/tooltip.d.ts.map +1 -1
  158. package/dist/index.cjs +2 -2
  159. package/dist/index.cjs.map +1 -1
  160. package/dist/index.js +2 -2
  161. package/dist/index.js.map +1 -1
  162. package/dist/lib/utils.d.ts.map +1 -1
  163. package/package.json +3 -1
  164. package/scripts/format-codestrings.ts +87 -0
  165. package/scripts/organize-imports.ts +21 -0
  166. package/scripts/regex-format.cjs +67 -0
  167. package/scripts/tmp.tsx +25 -0
  168. package/src/components/macro/accordion-preset.test.tsx +1 -0
  169. package/src/components/macro/accordion-preset.tsx +2 -1
  170. package/src/components/macro/alert-dialog-preset.tsx +44 -43
  171. package/src/components/macro/alert-preset.tsx +7 -3
  172. package/src/components/macro/avatar-preset.tsx +2 -1
  173. package/src/components/macro/breadcrumb-preset.tsx +2 -1
  174. package/src/components/macro/card-preset.tsx +2 -1
  175. package/src/components/macro/carousel-preset.tsx +5 -2
  176. package/src/components/macro/checkbox-preset.test.tsx +1 -0
  177. package/src/components/macro/checkbox-preset.tsx +6 -2
  178. package/src/components/macro/combobox-preset.tsx +6 -3
  179. package/src/components/macro/command-preset.tsx +7 -3
  180. package/src/components/macro/date-picker.tsx +77 -59
  181. package/src/components/macro/dialog-preset.tsx +42 -38
  182. package/src/components/macro/empty-preset.tsx +2 -1
  183. package/src/components/macro/field-preset.test.tsx +1 -0
  184. package/src/components/macro/field-preset.tsx +2 -1
  185. package/src/components/macro/input-otp-preset.tsx +6 -2
  186. package/src/components/macro/input-preset.test.tsx +1 -0
  187. package/src/components/macro/input-preset.tsx +4 -2
  188. package/src/components/macro/pagination-preset.tsx +3 -1
  189. package/src/components/macro/progress-preset.test.tsx +1 -0
  190. package/src/components/macro/progress-preset.tsx +2 -1
  191. package/src/components/macro/radio-group-preset.tsx +4 -1
  192. package/src/components/macro/select-preset.tsx +35 -30
  193. package/src/components/macro/slider-preset.test.tsx +1 -0
  194. package/src/components/macro/slider-preset.tsx +4 -1
  195. package/src/components/macro/switch-preset.test.tsx +1 -0
  196. package/src/components/macro/switch-preset.tsx +4 -1
  197. package/src/components/macro/tabs-preset.test.tsx +1 -0
  198. package/src/components/macro/tabs-preset.tsx +4 -2
  199. package/src/components/macro/textarea-preset.test.tsx +1 -0
  200. package/src/components/macro/textarea-preset.tsx +4 -1
  201. package/src/components/micro/accordion.tsx +3 -2
  202. package/src/components/micro/alert-dialog.tsx +2 -1
  203. package/src/components/micro/alert.tsx +3 -2
  204. package/src/components/micro/aspect-ratio.tsx +2 -1
  205. package/src/components/micro/avatar.tsx +2 -1
  206. package/src/components/micro/badge.tsx +3 -3
  207. package/src/components/micro/breadcrumb.tsx +3 -2
  208. package/src/components/micro/button.test.tsx +1 -0
  209. package/src/components/micro/button.tsx +3 -3
  210. package/src/components/micro/calendar.tsx +10 -9
  211. package/src/components/micro/carousel.tsx +3 -2
  212. package/src/components/micro/chart.tsx +1 -0
  213. package/src/components/micro/checkbox.tsx +2 -2
  214. package/src/components/micro/collapsible.tsx +4 -2
  215. package/src/components/micro/combobox.tsx +47 -29
  216. package/src/components/micro/command.tsx +23 -16
  217. package/src/components/micro/context-menu.tsx +3 -2
  218. package/src/components/micro/dialog.tsx +2 -1
  219. package/src/components/micro/drawer.tsx +2 -1
  220. package/src/components/micro/dropdown-menu.tsx +3 -2
  221. package/src/components/micro/empty.tsx +2 -1
  222. package/src/components/micro/field.tsx +4 -3
  223. package/src/components/micro/hover-card.tsx +20 -19
  224. package/src/components/micro/input-group.tsx +5 -4
  225. package/src/components/micro/input-otp.tsx +3 -2
  226. package/src/components/micro/input.tsx +3 -2
  227. package/src/components/micro/item.tsx +1 -0
  228. package/src/components/micro/label.tsx +2 -1
  229. package/src/components/micro/menubar.tsx +2 -1
  230. package/src/components/micro/navigation-menu.tsx +18 -17
  231. package/src/components/micro/pagination.tsx +2 -1
  232. package/src/components/micro/popover.tsx +2 -1
  233. package/src/components/micro/progress.tsx +2 -1
  234. package/src/components/micro/radio-group.tsx +3 -3
  235. package/src/components/micro/select.tsx +5 -4
  236. package/src/components/micro/sheet.tsx +2 -1
  237. package/src/components/micro/sidebar.tsx +4 -1
  238. package/src/components/micro/skeleton.tsx +2 -1
  239. package/src/components/micro/slider.tsx +4 -1
  240. package/src/components/micro/sonner.tsx +2 -1
  241. package/src/components/micro/spinner.tsx +1 -2
  242. package/src/components/micro/switch.tsx +2 -2
  243. package/src/components/micro/table.tsx +2 -1
  244. package/src/components/micro/tabs.tsx +4 -3
  245. package/src/components/micro/textarea.tsx +2 -1
  246. package/src/components/micro/toggle-group.tsx +1 -0
  247. package/src/components/micro/toggle.tsx +1 -3
  248. package/src/components/micro/tooltip.tsx +9 -3
  249. package/src/dev/App.tsx +66 -41
  250. package/src/dev/components/code-highlighter.tsx +2 -1
  251. package/src/dev/components/dev-context.tsx +1 -0
  252. package/src/dev/components/showcase.tsx +13 -14
  253. package/src/dev/data.ts +206 -52
  254. package/src/dev/main.tsx +4 -4
  255. package/src/dev/sections/buttons.tsx +14 -12
  256. package/src/dev/sections/feedback.tsx +7 -2
  257. package/src/dev/sections/forms.tsx +11 -11
  258. package/src/dev/sections/overview.tsx +2 -1
  259. package/src/dev/showcase/accordion.tsx +399 -314
  260. package/src/dev/showcase/alert-dialog.tsx +387 -384
  261. package/src/dev/showcase/alert.tsx +271 -258
  262. package/src/dev/showcase/aspect-ratio.tsx +102 -105
  263. package/src/dev/showcase/avatar.tsx +216 -145
  264. package/src/dev/showcase/badge.tsx +78 -50
  265. package/src/dev/showcase/breadcrumb.tsx +88 -85
  266. package/src/dev/showcase/button.tsx +72 -96
  267. package/src/dev/showcase/calendar.tsx +41 -39
  268. package/src/dev/showcase/card.tsx +170 -148
  269. package/src/dev/showcase/carousel.tsx +239 -77
  270. package/src/dev/showcase/chart.tsx +5 -4
  271. package/src/dev/showcase/checkbox.tsx +206 -140
  272. package/src/dev/showcase/collapsible.tsx +108 -84
  273. package/src/dev/showcase/combobox.tsx +272 -199
  274. package/src/dev/showcase/command.tsx +31 -28
  275. package/src/dev/showcase/context-menu.tsx +94 -77
  276. package/src/dev/showcase/dialog.tsx +445 -424
  277. package/src/dev/showcase/drawer.tsx +142 -135
  278. package/src/dev/showcase/dropdown-menu.tsx +165 -161
  279. package/src/dev/showcase/empty.tsx +173 -158
  280. package/src/dev/showcase/hover-card.tsx +92 -52
  281. package/src/dev/showcase/input-group.tsx +193 -160
  282. package/src/dev/showcase/input-otp.tsx +109 -99
  283. package/src/dev/showcase/input.tsx +78 -42
  284. package/src/dev/showcase/item.tsx +101 -98
  285. package/src/dev/showcase/kbd.tsx +78 -62
  286. package/src/dev/showcase/label.tsx +16 -23
  287. package/src/dev/showcase/menubar.tsx +274 -251
  288. package/src/dev/showcase/navigation-menu.tsx +175 -170
  289. package/src/dev/showcase/overview.tsx +164 -148
  290. package/src/dev/showcase/pagination.tsx +101 -69
  291. package/src/dev/showcase/popover.tsx +113 -86
  292. package/src/dev/showcase/progress.tsx +99 -69
  293. package/src/dev/showcase/radio-group.tsx +217 -134
  294. package/src/dev/showcase/resizable.tsx +65 -55
  295. package/src/dev/showcase/scroll-area.tsx +32 -22
  296. package/src/dev/showcase/select.tsx +192 -136
  297. package/src/dev/showcase/separator.tsx +28 -24
  298. package/src/dev/showcase/sheet.tsx +182 -134
  299. package/src/dev/showcase/sidebar.tsx +9 -5
  300. package/src/dev/showcase/skeleton.tsx +54 -59
  301. package/src/dev/showcase/slider.tsx +158 -129
  302. package/src/dev/showcase/sonner.tsx +3 -5
  303. package/src/dev/showcase/spinner.tsx +22 -18
  304. package/src/dev/showcase/switch.tsx +207 -110
  305. package/src/dev/showcase/table.tsx +44 -32
  306. package/src/dev/showcase/tabs.tsx +272 -267
  307. package/src/dev/showcase/textarea.tsx +162 -116
  308. package/src/dev/showcase/theme-provider.tsx +596 -534
  309. package/src/dev/showcase/toast.tsx +37 -38
  310. package/src/dev/showcase/toggle-group.tsx +87 -39
  311. package/src/dev/showcase/toggle.tsx +36 -27
  312. package/src/dev/showcase/tooltip.tsx +154 -119
  313. package/src/lib/utils.test.ts +1 -0
  314. package/src/lib/utils.ts +1 -1
  315. package/src/styles/gladvn.css +1 -1
package/src/dev/data.ts CHANGED
@@ -46,292 +46,446 @@ export const COLOR_INFO = {
46
46
  };
47
47
 
48
48
  export const COMPONENTS = [
49
- { id: "accordion", category: "Layout & Structure",
49
+ {
50
+ id: "accordion",
51
+ category: "Layout & Structure",
50
52
  label: "Accordion",
51
53
  hasMicro: true,
52
54
  hasMacro: true,
53
55
  status: "stable",
54
56
  },
55
- { id: "alert", category: "Feedback & Overlays",
57
+ {
58
+ id: "alert",
59
+ category: "Feedback & Overlays",
56
60
  label: "Alert",
57
61
  hasMicro: true,
58
62
  hasMacro: true,
59
63
  status: "stable",
60
64
  hasSize: true,
61
65
  },
62
- { id: "alert-dialog", category: "Feedback & Overlays",
66
+ {
67
+ id: "alert-dialog",
68
+ category: "Feedback & Overlays",
63
69
  label: "Alert Dialog",
64
70
  hasMicro: true,
65
71
  hasMacro: true,
66
72
  status: "stable",
67
73
  hasSize: true,
68
74
  },
69
- { id: "aspect-ratio", category: "Layout & Structure",
75
+ {
76
+ id: "aspect-ratio",
77
+ category: "Layout & Structure",
70
78
  label: "Aspect Ratio",
71
79
  hasMicro: true,
72
80
  hasMacro: false,
73
81
  status: "stable",
74
82
  },
75
- { id: "avatar", category: "Data Display",
83
+ {
84
+ id: "avatar",
85
+ category: "Data Display",
76
86
  label: "Avatar",
77
87
  hasMicro: true,
78
88
  hasMacro: true,
79
89
  status: "stable",
80
90
  hasSize: true,
81
91
  },
82
- { id: "badge", category: "Data Display",
92
+ {
93
+ id: "badge",
94
+ category: "Data Display",
83
95
  label: "Badge",
84
96
  hasMicro: true,
85
97
  hasMacro: false,
86
98
  status: "stable",
87
99
  hasSize: true,
88
100
  },
89
- { id: "breadcrumb", category: "Navigation",
101
+ {
102
+ id: "breadcrumb",
103
+ category: "Navigation",
90
104
  label: "Breadcrumb",
91
105
  hasMicro: true,
92
106
  hasMacro: true,
93
107
  status: "stable",
94
108
  },
95
- { id: "button", category: "Forms & Inputs",
109
+ {
110
+ id: "button",
111
+ category: "Forms & Inputs",
96
112
  label: "Button",
97
113
  hasMicro: true,
98
114
  hasMacro: false,
99
115
  status: "stable",
100
116
  hasSize: true,
101
117
  },
102
- { id: "calendar", category: "Forms & Inputs",
118
+ {
119
+ id: "calendar",
120
+ category: "Forms & Inputs",
103
121
  label: "Calendar",
104
122
  hasMicro: true,
105
123
  hasMacro: false,
106
124
  status: "stable",
107
125
  hasSize: true,
108
126
  },
109
- { id: "card", category: "Layout & Structure",
127
+ {
128
+ id: "card",
129
+ category: "Layout & Structure",
110
130
  label: "Card",
111
131
  hasMicro: true,
112
132
  hasMacro: true,
113
133
  status: "stable",
114
134
  hasSize: true,
115
135
  },
116
- { id: "carousel", category: "Layout & Structure",
136
+ {
137
+ id: "carousel",
138
+ category: "Layout & Structure",
117
139
  label: "Carousel",
118
140
  hasMicro: true,
119
141
  hasMacro: true,
120
142
  status: "stable",
121
143
  },
122
- { id: "chart", category: "Data Display", label: "Chart", hasMicro: true, hasMacro: false, status: "stable" },
123
- { id: "checkbox", category: "Forms & Inputs",
144
+ {
145
+ id: "chart",
146
+ category: "Data Display",
147
+ label: "Chart",
148
+ hasMicro: true,
149
+ hasMacro: false,
150
+ status: "stable",
151
+ },
152
+ {
153
+ id: "checkbox",
154
+ category: "Forms & Inputs",
124
155
  label: "Checkbox",
125
156
  hasMicro: true,
126
157
  hasMacro: true,
127
158
  status: "stable",
128
159
  hasSize: true,
129
160
  },
130
- { id: "collapsible", category: "Layout & Structure",
161
+ {
162
+ id: "collapsible",
163
+ category: "Layout & Structure",
131
164
  label: "Collapsible",
132
165
  hasMicro: true,
133
166
  hasMacro: false,
134
167
  status: "stable",
135
168
  },
136
- { id: "combobox", category: "Forms & Inputs",
169
+ {
170
+ id: "combobox",
171
+ category: "Forms & Inputs",
137
172
  label: "Combobox",
138
173
  hasMicro: true,
139
174
  hasMacro: true,
140
175
  status: "stable",
141
176
  hasSize: true,
142
177
  },
143
- { id: "command", category: "Navigation",
178
+ {
179
+ id: "command",
180
+ category: "Navigation",
144
181
  label: "Command",
145
182
  hasMicro: true,
146
183
  hasMacro: false,
147
184
  status: "stable",
148
185
  },
149
- { id: "context-menu", category: "Navigation",
186
+ {
187
+ id: "context-menu",
188
+ category: "Navigation",
150
189
  label: "Context Menu",
151
190
  hasMicro: true,
152
191
  hasMacro: false,
153
192
  status: "stable",
154
193
  },
155
- { id: "dialog", category: "Feedback & Overlays",
194
+ {
195
+ id: "dialog",
196
+ category: "Feedback & Overlays",
156
197
  label: "Dialog",
157
198
  hasMicro: true,
158
199
  hasMacro: true,
159
200
  status: "stable",
160
201
  hasSize: true,
161
202
  },
162
- { id: "drawer", category: "Feedback & Overlays",
203
+ {
204
+ id: "drawer",
205
+ category: "Feedback & Overlays",
163
206
  label: "Drawer",
164
207
  hasMicro: true,
165
208
  hasMacro: false,
166
209
  status: "stable",
167
210
  },
168
- { id: "dropdown-menu", category: "Navigation",
211
+ {
212
+ id: "dropdown-menu",
213
+ category: "Navigation",
169
214
  label: "Dropdown Menu",
170
215
  hasMicro: true,
171
216
  hasMacro: false,
172
217
  status: "stable",
173
218
  hasSize: true,
174
219
  },
175
- { id: "empty", category: "Data Display",
220
+ {
221
+ id: "empty",
222
+ category: "Data Display",
176
223
  label: "Empty",
177
224
  hasMicro: true,
178
225
  hasMacro: true,
179
226
  status: "stable",
180
227
  },
181
228
 
182
- { id: "hover-card", category: "Feedback & Overlays",
229
+ {
230
+ id: "hover-card",
231
+ category: "Feedback & Overlays",
183
232
  label: "Hover Card",
184
233
  hasMicro: true,
185
234
  hasMacro: false,
186
235
  status: "stable",
187
236
  hasSize: true,
188
237
  },
189
- { id: "input", category: "Forms & Inputs",
238
+ {
239
+ id: "input",
240
+ category: "Forms & Inputs",
190
241
  label: "Input",
191
242
  hasMicro: true,
192
243
  hasMacro: true,
193
244
  status: "stable",
194
245
  hasSize: true,
195
246
  },
196
- { id: "input-group", category: "Forms & Inputs",
247
+ {
248
+ id: "input-group",
249
+ category: "Forms & Inputs",
197
250
  label: "Input Group",
198
251
  hasMicro: true,
199
252
  hasMacro: false,
200
253
  status: "stable",
201
254
  hasSize: true,
202
255
  },
203
- { id: "input-otp", category: "Forms & Inputs",
256
+ {
257
+ id: "input-otp",
258
+ category: "Forms & Inputs",
204
259
  label: "Input Otp",
205
260
  hasMicro: true,
206
261
  hasMacro: true,
207
262
  status: "stable",
208
263
  hasSize: true,
209
264
  },
210
- { id: "item", category: "Data Display", label: "Item", hasMicro: true, hasMacro: false, status: "stable",
265
+ {
266
+ id: "item",
267
+ category: "Data Display",
268
+ label: "Item",
269
+ hasMicro: true,
270
+ hasMacro: false,
271
+ status: "stable",
211
272
  hasSize: true,
212
273
  },
213
- { id: "kbd", category: "Data Display",
274
+ {
275
+ id: "kbd",
276
+ category: "Data Display",
214
277
  label: "Kbd",
215
278
  hasMicro: true,
216
279
  hasMacro: false,
217
280
  status: "stable",
218
281
  },
219
- { id: "label", category: "Forms & Inputs",
282
+ {
283
+ id: "label",
284
+ category: "Forms & Inputs",
220
285
  label: "Label",
221
286
  hasMicro: true,
222
287
  hasMacro: false,
223
288
  status: "stable",
224
289
  hasSize: true,
225
290
  },
226
- { id: "menubar", category: "Navigation", label: "Menubar", hasMicro: true, hasMacro: false, status: "stable" },
227
- { id: "navigation-menu", category: "Navigation",
291
+ {
292
+ id: "menubar",
293
+ category: "Navigation",
294
+ label: "Menubar",
295
+ hasMicro: true,
296
+ hasMacro: false,
297
+ status: "stable",
298
+ },
299
+ {
300
+ id: "navigation-menu",
301
+ category: "Navigation",
228
302
  label: "Navigation Menu",
229
303
  hasMicro: true,
230
304
  hasMacro: false,
231
305
  status: "stable",
232
306
  },
233
- { id: "pagination", category: "Navigation", label: "Pagination", hasMicro: true, hasMacro: true, status: "stable",
307
+ {
308
+ id: "pagination",
309
+ category: "Navigation",
310
+ label: "Pagination",
311
+ hasMicro: true,
312
+ hasMacro: true,
313
+ status: "stable",
234
314
  hasSize: true,
235
315
  },
236
- { id: "popover", category: "Feedback & Overlays",
316
+ {
317
+ id: "popover",
318
+ category: "Feedback & Overlays",
237
319
  label: "Popover",
238
320
  hasMicro: true,
239
321
  hasMacro: false,
240
322
  status: "stable",
241
323
  hasSize: true,
242
324
  },
243
- { id: "progress", category: "Feedback & Overlays",
325
+ {
326
+ id: "progress",
327
+ category: "Feedback & Overlays",
244
328
  label: "Progress",
245
329
  hasMicro: true,
246
330
  hasMacro: true,
247
331
  status: "stable",
248
332
  hasSize: true,
249
333
  },
250
- { id: "radio-group", category: "Forms & Inputs",
334
+ {
335
+ id: "radio-group",
336
+ category: "Forms & Inputs",
251
337
  label: "Radio Group",
252
338
  hasMicro: true,
253
339
  hasMacro: true,
254
340
  status: "stable",
255
341
  hasSize: true,
256
342
  },
257
- { id: "resizable", category: "Layout & Structure", label: "Resizable", hasMicro: true, hasMacro: false, status: "stable" },
258
- { id: "scroll-area", category: "Layout & Structure", label: "Scroll Area", hasMicro: true, hasMacro: false, status: "stable" },
259
- { id: "select", category: "Forms & Inputs",
343
+ {
344
+ id: "resizable",
345
+ category: "Layout & Structure",
346
+ label: "Resizable",
347
+ hasMicro: true,
348
+ hasMacro: false,
349
+ status: "stable",
350
+ },
351
+ {
352
+ id: "scroll-area",
353
+ category: "Layout & Structure",
354
+ label: "Scroll Area",
355
+ hasMicro: true,
356
+ hasMacro: false,
357
+ status: "stable",
358
+ },
359
+ {
360
+ id: "select",
361
+ category: "Forms & Inputs",
260
362
  label: "Select",
261
363
  hasMicro: true,
262
364
  hasMacro: true,
263
365
  status: "stable",
264
366
  hasSize: true,
265
367
  },
266
- { id: "separator", category: "Layout & Structure", label: "Separator", hasMicro: true, hasMacro: false, status: "stable" },
267
- { id: "sheet", category: "Feedback & Overlays",
368
+ {
369
+ id: "separator",
370
+ category: "Layout & Structure",
371
+ label: "Separator",
372
+ hasMicro: true,
373
+ hasMacro: false,
374
+ status: "stable",
375
+ },
376
+ {
377
+ id: "sheet",
378
+ category: "Feedback & Overlays",
268
379
  label: "Sheet",
269
380
  hasMicro: true,
270
381
  hasMacro: false,
271
382
  status: "stable",
272
383
  hasSize: true,
273
384
  },
274
- { id: "sidebar", category: "Layout & Structure", label: "Sidebar", hasMicro: true, hasMacro: false },
275
- { id: "skeleton", category: "Feedback & Overlays",
385
+ {
386
+ id: "sidebar",
387
+ category: "Layout & Structure",
388
+ label: "Sidebar",
389
+ hasMicro: true,
390
+ hasMacro: false,
391
+ },
392
+ {
393
+ id: "skeleton",
394
+ category: "Feedback & Overlays",
276
395
  label: "Skeleton",
277
396
  hasMicro: true,
278
397
  hasMacro: false,
279
398
  status: "stable",
280
399
  },
281
- { id: "slider", category: "Forms & Inputs",
400
+ {
401
+ id: "slider",
402
+ category: "Forms & Inputs",
282
403
  label: "Slider",
283
404
  hasMicro: true,
284
405
  hasMacro: true,
285
406
  status: "stable",
286
407
  hasSize: true,
287
408
  },
288
- { id: "sonner", category: "Feedback & Overlays", label: "Sonner", hasMicro: true, hasMacro: false, status: "stable" },
289
- { id: "spinner", category: "Feedback & Overlays", label: "Spinner", hasMicro: true, hasMacro: false, status: "stable",
409
+ {
410
+ id: "sonner",
411
+ category: "Feedback & Overlays",
412
+ label: "Sonner",
413
+ hasMicro: true,
414
+ hasMacro: false,
415
+ status: "stable",
416
+ },
417
+ {
418
+ id: "spinner",
419
+ category: "Feedback & Overlays",
420
+ label: "Spinner",
421
+ hasMicro: true,
422
+ hasMacro: false,
423
+ status: "stable",
290
424
  hasSize: true,
291
425
  },
292
- { id: "switch", category: "Forms & Inputs",
426
+ {
427
+ id: "switch",
428
+ category: "Forms & Inputs",
293
429
  label: "Switch",
294
430
  hasMicro: true,
295
431
  hasMacro: true,
296
432
  status: "stable",
297
433
  hasSize: true,
298
434
  },
299
- { id: "table", category: "Layout & Structure",
435
+ {
436
+ id: "table",
437
+ category: "Layout & Structure",
300
438
  label: "Table",
301
439
  hasMicro: true,
302
440
  hasMacro: false,
303
441
  status: "stable",
304
442
  },
305
- { id: "tabs", category: "Navigation",
443
+ {
444
+ id: "tabs",
445
+ category: "Navigation",
306
446
  label: "Tabs",
307
447
  hasMicro: true,
308
448
  hasMacro: true,
309
449
  status: "stable",
310
450
  },
311
- { id: "textarea", category: "Forms & Inputs",
451
+ {
452
+ id: "textarea",
453
+ category: "Forms & Inputs",
312
454
  label: "Textarea",
313
455
  hasMicro: true,
314
456
  hasMacro: true,
315
457
  status: "stable",
316
458
  hasSize: true,
317
459
  },
318
- { id: "toggle", category: "Forms & Inputs", label: "Toggle", hasMicro: true, hasMacro: false, status: "stable",
460
+ {
461
+ id: "toggle",
462
+ category: "Forms & Inputs",
463
+ label: "Toggle",
464
+ hasMicro: true,
465
+ hasMacro: false,
466
+ status: "stable",
319
467
  hasSize: true,
320
468
  },
321
- { id: "toggle-group", category: "Forms & Inputs",
469
+ {
470
+ id: "toggle-group",
471
+ category: "Forms & Inputs",
322
472
  label: "Toggle Group",
323
473
  hasMicro: true,
324
474
  hasMacro: false,
325
475
  status: "stable",
326
476
  hasSize: true,
327
477
  },
328
- { id: "theme-provider", category: "Data Display",
478
+ {
479
+ id: "theme-provider",
480
+ category: "Data Display",
329
481
  label: "Theme Provider",
330
482
  hasMicro: true,
331
483
  hasMacro: false,
332
484
  status: "stable",
333
485
  },
334
- { id: "tooltip", category: "Feedback & Overlays",
486
+ {
487
+ id: "tooltip",
488
+ category: "Feedback & Overlays",
335
489
  label: "Tooltip",
336
490
  hasMicro: true,
337
491
  hasMacro: false,
package/src/dev/main.tsx CHANGED
@@ -1,10 +1,11 @@
1
- import { useEffect } from "react";
1
+ import { StrictMode, useEffect } from "react";
2
+
3
+ import { createRoot } from "react-dom/client";
4
+
2
5
  import { ThemeProvider, useTheme } from "../components/micro/theme-provider";
3
6
  import App from "../dev/App";
4
7
  import { DevContextProvider } from "../dev/components/dev-context";
5
8
  import "../dev/index.css";
6
- import { StrictMode } from "react";
7
- import { createRoot } from "react-dom/client";
8
9
 
9
10
  /** Syncs the theme class to <html> — this is a Macro concern, done here for the dev playground. */
10
11
  function RootThemeSync() {
@@ -27,4 +28,3 @@ createRoot(document.getElementById("root")!).render(
27
28
  </ThemeProvider>
28
29
  </StrictMode>,
29
30
  );
30
-
@@ -1,3 +1,17 @@
1
+ import { useState } from "react";
2
+
3
+ import {
4
+ BoxIcon,
5
+ CheckCircle2Icon,
6
+ LayersIcon,
7
+ PlusIcon,
8
+ SendIcon,
9
+ SettingsIcon,
10
+ ShieldAlertIcon,
11
+ Trash2Icon,
12
+ UserIcon,
13
+ } from "lucide-react";
14
+
1
15
  import { SelectPreset } from "../../components/macro/select-preset";
2
16
  import { Avatar, AvatarFallback } from "../../components/micro/avatar";
3
17
  import { Button } from "../../components/micro/button";
@@ -10,18 +24,6 @@ import {
10
24
  } from "../../components/micro/tooltip";
11
25
  import { SectionHeader } from "../../dev/components/showcase";
12
26
  import { Size } from "../../lib/types";
13
- import {
14
- BoxIcon,
15
- CheckCircle2Icon,
16
- LayersIcon,
17
- PlusIcon,
18
- SendIcon,
19
- SettingsIcon,
20
- ShieldAlertIcon,
21
- Trash2Icon,
22
- UserIcon,
23
- } from "lucide-react";
24
- import { useState } from "react";
25
27
 
26
28
  export default function ButtonsSection() {
27
29
  const [globalSize, setGlobalSize] = useState<Size>("md");
@@ -1,3 +1,5 @@
1
+ import { useState } from "react";
2
+
1
3
  import {
2
4
  CheckCircle2Icon,
3
5
  FileX2Icon,
@@ -7,10 +9,13 @@ import {
7
9
  TriangleAlertIcon,
8
10
  XCircleIcon,
9
11
  } from "lucide-react";
10
- import { useState } from "react";
11
12
  import { toast } from "sonner";
12
13
 
13
- import { Alert, AlertDescription, AlertTitle } from "../../components/micro/alert";
14
+ import {
15
+ Alert,
16
+ AlertDescription,
17
+ AlertTitle,
18
+ } from "../../components/micro/alert";
14
19
  import { Button } from "../../components/micro/button";
15
20
  import {
16
21
  Empty,
@@ -1,5 +1,15 @@
1
1
  import { useState } from "react";
2
2
 
3
+ import {
4
+ CalendarIcon,
5
+ LayoutTemplateIcon,
6
+ MousePointerClickIcon,
7
+ ToggleLeftIcon,
8
+ TriangleAlertIcon,
9
+ TypeIcon,
10
+ } from "lucide-react";
11
+
12
+ import { SelectPreset } from "../../components/macro/select-preset";
3
13
  import { Alert, AlertDescription } from "../../components/micro/alert";
4
14
  import { Calendar } from "../../components/micro/calendar";
5
15
  import { Checkbox } from "../../components/micro/checkbox";
@@ -30,17 +40,6 @@ import {
30
40
  InputOTPSlot,
31
41
  } from "../../components/micro/input-otp";
32
42
  import { Label } from "../../components/micro/label";
33
- import { SectionHeader } from "../../dev/components/showcase";
34
- import {
35
- CalendarIcon,
36
- LayoutTemplateIcon,
37
- MousePointerClickIcon,
38
- ToggleLeftIcon,
39
- TriangleAlertIcon,
40
- TypeIcon,
41
- } from "lucide-react";
42
-
43
- import { SelectPreset } from "../../components/macro/select-preset";
44
43
  import { RadioGroup, RadioGroupItem } from "../../components/micro/radio-group";
45
44
  import {
46
45
  Select,
@@ -56,6 +55,7 @@ import { Separator } from "../../components/micro/separator";
56
55
  import { Slider } from "../../components/micro/slider";
57
56
  import { Switch } from "../../components/micro/switch";
58
57
  import { Textarea } from "../../components/micro/textarea";
58
+ import { SectionHeader } from "../../dev/components/showcase";
59
59
  import { Size } from "../../lib/types";
60
60
 
61
61
  export default function FormsSection() {
@@ -1,3 +1,5 @@
1
+ import { useState } from "react";
2
+
1
3
  import {
2
4
  BoxIcon,
3
5
  CheckIcon,
@@ -8,7 +10,6 @@ import {
8
10
  PaletteIcon,
9
11
  ZapIcon,
10
12
  } from "lucide-react";
11
- import { useState } from "react";
12
13
  import { toast } from "sonner";
13
14
 
14
15
  import {