gladvn 0.2.18 → 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 (203) 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
  203. package/src/styles/gladvn.css +1 -2
@@ -7,15 +7,13 @@ import {
7
7
  Accordion,
8
8
  AccordionContent,
9
9
  AccordionItem,
10
- AccordionTrigger,
11
- } from "../../components/micro/accordion";
10
+ AccordionTrigger } from "../../components/micro/accordion";
12
11
  import {
13
12
  DocsP,
14
13
  ExampleGrid,
15
14
  ExampleSection,
16
15
  Showcase,
17
- ShowcaseDocs,
18
- } from "../../dev/components/showcase";
16
+ ShowcaseDocs } from "../../dev/components/showcase";
19
17
 
20
18
  // ──────────────────────────────────────────────────────────
21
19
  // Shared Data
@@ -23,20 +21,16 @@ import {
23
21
  const faqItems = [
24
22
  {
25
23
  q: "Is it accessible?",
26
- a: "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported.",
27
- },
24
+ a: "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported." },
28
25
  {
29
26
  q: "Is it styled?",
30
- a: "Yes. It comes with default styles that match the other components' aesthetic. You can override every token via CSS variables.",
31
- },
27
+ a: "Yes. It comes with default styles that match the other components' aesthetic. You can override every token via CSS variables." },
32
28
  {
33
29
  q: "Is it animated?",
34
- a: "Yes. It's animated by default with smooth expand/collapse transitions, but you can disable animation if you prefer.",
35
- },
30
+ a: "Yes. It's animated by default with smooth expand/collapse transitions, but you can disable animation if you prefer." },
36
31
  {
37
32
  q: "Can I nest accordions?",
38
- a: "Yes. You can nest accordion components inside each other to create multi-level collapsible sections.",
39
- },
33
+ a: "Yes. You can nest accordion components inside each other to create multi-level collapsible sections." },
40
34
  ];
41
35
 
42
36
  const presetItems = [
@@ -44,19 +38,16 @@ const presetItems = [
44
38
  value: "item-1",
45
39
  title: "Is it accessible?",
46
40
  content:
47
- "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported.",
48
- },
41
+ "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported." },
49
42
  {
50
43
  value: "item-2",
51
44
  title: "Is it styled?",
52
45
  content:
53
- "Yes. It comes with default styles that match the other components' aesthetic.",
54
- },
46
+ "Yes. It comes with default styles that match the other components' aesthetic." },
55
47
  {
56
48
  value: "item-3",
57
49
  title: "Is it animated?",
58
- content: "Yes. It's animated by default with smooth transitions.",
59
- },
50
+ content: "Yes. It's animated by default with smooth transitions." },
60
51
  ];
61
52
 
62
53
  // ──────────────────────────────────────────────────────────
@@ -79,20 +70,17 @@ function AccordionMacroShowcase() {
79
70
  value: "item-1",
80
71
  title: "Is it accessible?",
81
72
  content:
82
- "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported.",
83
- },
73
+ "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported." },
84
74
  {
85
75
  value: "item-2",
86
76
  title: "Is it styled?",
87
77
  content:
88
- "Yes. It comes with default styles that match the other components' aesthetic.",
89
- },
78
+ "Yes. It comes with default styles that match the other components' aesthetic." },
90
79
  {
91
80
  value: "item-3",
92
81
  title: "Is it animated?",
93
82
  content:
94
- "Yes. It's animated by default with smooth transitions.",
95
- },
83
+ "Yes. It's animated by default with smooth transitions." },
96
84
  ]}
97
85
  />`}
98
86
  >
@@ -104,20 +92,17 @@ function AccordionMacroShowcase() {
104
92
  value: "item-1",
105
93
  title: "Is it accessible?",
106
94
  content:
107
- "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported.",
108
- },
95
+ "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported." },
109
96
  {
110
97
  value: "item-2",
111
98
  title: "Is it styled?",
112
99
  content:
113
- "Yes. It comes with default styles that match the other components' aesthetic.",
114
- },
100
+ "Yes. It comes with default styles that match the other components' aesthetic." },
115
101
  {
116
102
  value: "item-3",
117
103
  title: "Is it animated?",
118
104
  content:
119
- "Yes. It's animated by default with smooth transitions.",
120
- },
105
+ "Yes. It's animated by default with smooth transitions." },
121
106
  ]}
122
107
  />
123
108
  </ExampleSection>
@@ -134,20 +119,17 @@ function AccordionMacroShowcase() {
134
119
  value: "item-1",
135
120
  title: "Is it accessible?",
136
121
  content:
137
- "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported.",
138
- },
122
+ "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported." },
139
123
  {
140
124
  value: "item-2",
141
125
  title: "Is it styled?",
142
126
  content:
143
- "Yes. It comes with default styles that match the other components' aesthetic.",
144
- },
127
+ "Yes. It comes with default styles that match the other components' aesthetic." },
145
128
  {
146
129
  value: "item-3",
147
130
  title: "Is it animated?",
148
131
  content:
149
- "Yes. It's animated by default with smooth transitions.",
150
- },
132
+ "Yes. It's animated by default with smooth transitions." },
151
133
  ]}
152
134
  />`}
153
135
  >
@@ -160,20 +142,17 @@ function AccordionMacroShowcase() {
160
142
  value: "item-1",
161
143
  title: "Is it accessible?",
162
144
  content:
163
- "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported.",
164
- },
145
+ "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported." },
165
146
  {
166
147
  value: "item-2",
167
148
  title: "Is it styled?",
168
149
  content:
169
- "Yes. It comes with default styles that match the other components' aesthetic.",
170
- },
150
+ "Yes. It comes with default styles that match the other components' aesthetic." },
171
151
  {
172
152
  value: "item-3",
173
153
  title: "Is it animated?",
174
154
  content:
175
- "Yes. It's animated by default with smooth transitions.",
176
- },
155
+ "Yes. It's animated by default with smooth transitions." },
177
156
  ]}
178
157
  />
179
158
  </ExampleSection>
@@ -194,18 +173,15 @@ return (
194
173
  {
195
174
  value: "item-1",
196
175
  title: "Is it accessible?",
197
- content: "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported.",
198
- },
176
+ content: "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported." },
199
177
  {
200
178
  value: "item-2",
201
179
  title: "Is it styled?",
202
- content: "Yes. It comes with default styles that match the other components' aesthetic.",
203
- },
180
+ content: "Yes. It comes with default styles that match the other components' aesthetic." },
204
181
  {
205
182
  value: "item-3",
206
183
  title: "Is it animated?",
207
- content: "Yes. It's animated by default with smooth transitions.",
208
- },
184
+ content: "Yes. It's animated by default with smooth transitions." },
209
185
  ]}
210
186
  />
211
187
  );`}
@@ -229,20 +205,17 @@ return (
229
205
  value: "item-1",
230
206
  title: "Is it accessible?",
231
207
  content:
232
- "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported.",
233
- },
208
+ "Yes. It adheres to the WAI-ARIA design pattern. Keyboard navigation and screen readers are fully supported." },
234
209
  {
235
210
  value: "item-2",
236
211
  title: "Is it styled?",
237
212
  content:
238
- "Yes. It comes with default styles that match the other components' aesthetic.",
239
- },
213
+ "Yes. It comes with default styles that match the other components' aesthetic." },
240
214
  {
241
215
  value: "item-3",
242
216
  title: "Is it animated?",
243
217
  content:
244
- "Yes. It's animated by default with smooth transitions.",
245
- },
218
+ "Yes. It's animated by default with smooth transitions." },
246
219
  ]}
247
220
  />
248
221
  </div>
@@ -258,21 +231,18 @@ return (
258
231
  value: "enabled-1",
259
232
  title: "Available Feature",
260
233
  content:
261
- "This feature is available and can be expanded normally.",
262
- },
234
+ "This feature is available and can be expanded normally." },
263
235
  {
264
236
  value: "disabled-1",
265
237
  title: "Premium Feature (Locked)",
266
238
  content:
267
239
  "This content is hidden behind a premium plan.",
268
- disabled: true,
269
- },
240
+ disabled: true },
270
241
  {
271
242
  value: "enabled-2",
272
243
  title: "Another Feature",
273
244
  content:
274
- "This is another available feature you can interact with freely.",
275
- },
245
+ "This is another available feature you can interact with freely." },
276
246
  ]}
277
247
  />`}
278
248
  >
@@ -283,20 +253,17 @@ return (
283
253
  value: "enabled-1",
284
254
  title: "Available Feature",
285
255
  content:
286
- "This feature is available and can be expanded normally.",
287
- },
256
+ "This feature is available and can be expanded normally." },
288
257
  {
289
258
  value: "disabled-1",
290
259
  title: "Premium Feature (Locked)",
291
260
  content: "This content is hidden behind a premium plan.",
292
- disabled: true,
293
- },
261
+ disabled: true },
294
262
  {
295
263
  value: "enabled-2",
296
264
  title: "Another Feature",
297
265
  content:
298
- "This is another available feature you can interact with freely.",
299
- },
266
+ "This is another available feature you can interact with freely." },
300
267
  ]}
301
268
  />
302
269
  </ExampleSection>
@@ -322,8 +289,7 @@ return (
322
289
  Edit Profile
323
290
  </button>
324
291
  </div>
325
- ),
326
- },
292
+ ) },
327
293
  ]}
328
294
  />`}
329
295
  >
@@ -342,8 +308,7 @@ return (
342
308
  Edit Profile
343
309
  </button>
344
310
  </div>
345
- ),
346
- },
311
+ ) },
347
312
  ]}
348
313
  />
349
314
  </ExampleSection>
@@ -365,12 +330,10 @@ return (
365
330
  value: "installation",
366
331
  title: "Installation",
367
332
  content:
368
- "Run npm install to add the component to your project.",
369
- },
333
+ "Run npm install to add the component to your project." },
370
334
  ]}
371
335
  />
372
- ),
373
- },
336
+ ) },
374
337
  {
375
338
  value: "advanced",
376
339
  title: "Advanced Usage",
@@ -382,12 +345,10 @@ return (
382
345
  value: "controlled",
383
346
  title: "Controlled Mode",
384
347
  content:
385
- "Use the value and onValueChange props to control which items are open.",
386
- },
348
+ "Use the value and onValueChange props to control which items are open." },
387
349
  ]}
388
350
  />
389
- ),
390
- },
351
+ ) },
391
352
  ]}
392
353
  />`}
393
354
  >
@@ -405,12 +366,10 @@ return (
405
366
  value: "installation",
406
367
  title: "Installation",
407
368
  content:
408
- "Run npm install to add the component to your project.",
409
- },
369
+ "Run npm install to add the component to your project." },
410
370
  ]}
411
371
  />
412
- ),
413
- },
372
+ ) },
414
373
  {
415
374
  value: "advanced",
416
375
  title: "Advanced Usage",
@@ -422,12 +381,10 @@ return (
422
381
  value: "controlled",
423
382
  title: "Controlled Mode",
424
383
  content:
425
- "Use the value and onValueChange props to control which items are open.",
426
- },
384
+ "Use the value and onValueChange props to control which items are open." },
427
385
  ]}
428
386
  />
429
- ),
430
- },
387
+ ) },
431
388
  ]}
432
389
  />
433
390
  </ExampleSection>
@@ -821,14 +778,12 @@ function AccordionMicroShowcase() {
821
778
  value: "Is it accessible?",
822
779
  title: "Is it accessible?",
823
780
  content:
824
- "Yes. It adheres to the WAI-ARIA design pattern.",
825
- },
781
+ "Yes. It adheres to the WAI-ARIA design pattern." },
826
782
  {
827
783
  value: "Is it styled?",
828
784
  title: "Is it styled?",
829
785
  content:
830
- "Yes. It comes with default styles that match the other components' aesthetic.",
831
- },
786
+ "Yes. It comes with default styles that match the other components' aesthetic." },
832
787
  ]}
833
788
  />
834
789
  </div>
@@ -929,14 +884,12 @@ function AccordionMicroShowcase() {
929
884
  {
930
885
  value: "Is it accessible?",
931
886
  title: "Is it accessible?",
932
- content: "Yes. It adheres to the WAI-ARIA design pattern.",
933
- },
887
+ content: "Yes. It adheres to the WAI-ARIA design pattern." },
934
888
  {
935
889
  value: "Is it styled?",
936
890
  title: "Is it styled?",
937
891
  content:
938
- "Yes. It comes with default styles that match the other components' aesthetic.",
939
- },
892
+ "Yes. It comes with default styles that match the other components' aesthetic." },
940
893
  ]}
941
894
  />
942
895
  </div>
@@ -7,8 +7,7 @@ import {
7
7
  MessageSquareWarningIcon,
8
8
  ShieldAlertIcon,
9
9
  TrashIcon,
10
- XIcon,
11
- } from "lucide-react";
10
+ XIcon } from "lucide-react";
12
11
 
13
12
  import { AlertDialogPreset } from "../../components/macro/alert-dialog-preset";
14
13
  import {
@@ -21,10 +20,9 @@ import {
21
20
  AlertDialogFooter,
22
21
  AlertDialogHeader,
23
22
  AlertDialogMedia,
24
- AlertDialogPortal,
23
+
25
24
  AlertDialogTitle,
26
- AlertDialogTrigger,
27
- } from "../../components/micro/alert-dialog";
25
+ AlertDialogTrigger } from "../../components/micro/alert-dialog";
28
26
  import { Button } from "../../components/micro/button";
29
27
  import { useDevContext } from "../../dev/components/dev-context";
30
28
  import {
@@ -32,8 +30,7 @@ import {
32
30
  ExampleGrid,
33
31
  ExampleSection,
34
32
  Showcase,
35
- ShowcaseDocs,
36
- } from "../../dev/components/showcase";
33
+ ShowcaseDocs } from "../../dev/components/showcase";
37
34
  import { type Size } from "../../lib/types";
38
35
 
39
36
  // ──────────────────────────────────────────────────────────
@@ -354,7 +351,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
354
351
  <Button variant="outline">Mở Dialog Trắng</Button>
355
352
  }
356
353
  />
357
- <AlertDialogPortal>
354
+
358
355
  <AlertDialogContent>
359
356
  <AlertDialogHeader>
360
357
  <AlertDialogTitle>
@@ -371,7 +368,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
371
368
  <AlertDialogAction>Tiếp tục</AlertDialogAction>
372
369
  </AlertDialogFooter>
373
370
  </AlertDialogContent>
374
- </AlertDialogPortal>
371
+
375
372
  </AlertDialog>`}
376
373
  >
377
374
  <AlertDialog>
@@ -383,7 +380,6 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
383
380
  }
384
381
  />
385
382
 
386
- <AlertDialogPortal>
387
383
  <AlertDialogContent size={globalSize}>
388
384
  <AlertDialogHeader>
389
385
  <AlertDialogTitle>Cấu trúc nguyên thuỷ</AlertDialogTitle>
@@ -401,7 +397,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
401
397
  </AlertDialogAction>
402
398
  </AlertDialogFooter>
403
399
  </AlertDialogContent>
404
- </AlertDialogPortal>
400
+
405
401
  </AlertDialog>
406
402
  </ExampleSection>
407
403
 
@@ -416,7 +412,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
416
412
  </Button>
417
413
  }
418
414
  />
419
- <AlertDialogPortal>
415
+
420
416
  <AlertDialogContent className="border-warning/50">
421
417
  <div className="flex flex-col-reverse items-center justify-center gap-4 py-4 sm:flex-row">
422
418
  <div className="size-16 rounded-lg bg-warning/20 border border-warning" />
@@ -436,7 +432,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
436
432
  </AlertDialogCancel>
437
433
  </AlertDialogFooter>
438
434
  </AlertDialogContent>
439
- </AlertDialogPortal>
435
+
440
436
  </AlertDialog>`}
441
437
  >
442
438
  <AlertDialog>
@@ -448,7 +444,6 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
448
444
  }
449
445
  />
450
446
 
451
- <AlertDialogPortal>
452
447
  <AlertDialogContent
453
448
  size={globalSize}
454
449
  className="border-warning/50"
@@ -471,7 +466,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
471
466
  </AlertDialogCancel>
472
467
  </AlertDialogFooter>
473
468
  </AlertDialogContent>
474
- </AlertDialogPortal>
469
+
475
470
  </AlertDialog>
476
471
  </ExampleSection>
477
472
  </ExampleGrid>
@@ -484,7 +479,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
484
479
  <AlertDialogTrigger
485
480
  render={<Button variant="outline">Với Media</Button>}
486
481
  />
487
- <AlertDialogPortal>
482
+
488
483
  <AlertDialogContent>
489
484
  <div className="flex flex-col gap-1.5 sm:flex-row sm:gap-4">
490
485
  <AlertDialogMedia className="mx-auto mb-2 shrink-0 sm:mx-0 sm:mb-0">
@@ -508,7 +503,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
508
503
  </AlertDialogAction>
509
504
  </AlertDialogFooter>
510
505
  </AlertDialogContent>
511
- </AlertDialogPortal>
506
+
512
507
  </AlertDialog>`}
513
508
  >
514
509
  <AlertDialog>
@@ -520,7 +515,6 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
520
515
  }
521
516
  />
522
517
 
523
- <AlertDialogPortal>
524
518
  <AlertDialogContent size={globalSize}>
525
519
  <div className="flex flex-col gap-1.5 sm:flex-row sm:gap-4">
526
520
  <AlertDialogMedia className="mx-auto mb-2 shrink-0 sm:mx-0 sm:mb-0">
@@ -541,7 +535,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
541
535
  </AlertDialogAction>
542
536
  </AlertDialogFooter>
543
537
  </AlertDialogContent>
544
- </AlertDialogPortal>
538
+
545
539
  </AlertDialog>
546
540
  </ExampleSection>
547
541
 
@@ -554,7 +548,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
554
548
  <Button variant="outline">Dialog Có Nút X</Button>
555
549
  }
556
550
  />
557
- <AlertDialogPortal>
551
+
558
552
  <AlertDialogContent>
559
553
  <AlertDialogClose className="absolute top-3 right-3 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none">
560
554
  <XIcon className="size-4" />
@@ -575,7 +569,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
575
569
  <AlertDialogAction>Đồng ý</AlertDialogAction>
576
570
  </AlertDialogFooter>
577
571
  </AlertDialogContent>
578
- </AlertDialogPortal>
572
+
579
573
  </AlertDialog>`}
580
574
  >
581
575
  <AlertDialog>
@@ -587,7 +581,6 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
587
581
  }
588
582
  />
589
583
 
590
- <AlertDialogPortal>
591
584
  <AlertDialogContent size={globalSize}>
592
585
  <AlertDialogClose className="absolute top-3 right-3 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-none">
593
586
  <XIcon className="size-4" />
@@ -608,7 +601,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
608
601
  </AlertDialogAction>
609
602
  </AlertDialogFooter>
610
603
  </AlertDialogContent>
611
- </AlertDialogPortal>
604
+
612
605
  </AlertDialog>
613
606
  </ExampleSection>
614
607
  </ExampleGrid>
@@ -625,7 +618,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
625
618
  </Button>
626
619
  }
627
620
  />
628
- <AlertDialogPortal>
621
+
629
622
  <AlertDialogContent>
630
623
  <div className="flex flex-col gap-1.5 sm:flex-row sm:gap-4">
631
624
  <AlertDialogMedia className="mx-auto mb-2 shrink-0 sm:mx-0 sm:mb-0">
@@ -648,7 +641,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
648
641
  </AlertDialogAction>
649
642
  </AlertDialogFooter>
650
643
  </AlertDialogContent>
651
- </AlertDialogPortal>
644
+
652
645
  </AlertDialog>`}
653
646
  >
654
647
  <AlertDialog>
@@ -660,7 +653,6 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
660
653
  }
661
654
  />
662
655
 
663
- <AlertDialogPortal>
664
656
  <AlertDialogContent size={globalSize}>
665
657
  <div className="flex flex-col gap-1.5 sm:flex-row sm:gap-4">
666
658
  <AlertDialogMedia className="mx-auto mb-2 shrink-0 sm:mx-0 sm:mb-0">
@@ -682,7 +674,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
682
674
  </AlertDialogAction>
683
675
  </AlertDialogFooter>
684
676
  </AlertDialogContent>
685
- </AlertDialogPortal>
677
+
686
678
  </AlertDialog>
687
679
  </ExampleSection>
688
680
 
@@ -695,7 +687,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
695
687
  <Button variant="outline">Custom Variants</Button>
696
688
  }
697
689
  />
698
- <AlertDialogPortal>
690
+
699
691
  <AlertDialogContent>
700
692
  <div className="flex flex-col gap-1.5 sm:flex-row sm:gap-4">
701
693
  <AlertDialogMedia className="mx-auto mb-2 shrink-0 sm:mx-0 sm:mb-0">
@@ -718,7 +710,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
718
710
  </AlertDialogAction>
719
711
  </AlertDialogFooter>
720
712
  </AlertDialogContent>
721
- </AlertDialogPortal>
713
+
722
714
  </AlertDialog>`}
723
715
  >
724
716
  <AlertDialog>
@@ -730,7 +722,6 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
730
722
  }
731
723
  />
732
724
 
733
- <AlertDialogPortal>
734
725
  <AlertDialogContent size={globalSize}>
735
726
  <div className="flex flex-col gap-1.5 sm:flex-row sm:gap-4">
736
727
  <AlertDialogMedia className="mx-auto mb-2 shrink-0 sm:mx-0 sm:mb-0">
@@ -757,7 +748,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
757
748
  </AlertDialogAction>
758
749
  </AlertDialogFooter>
759
750
  </AlertDialogContent>
760
- </AlertDialogPortal>
751
+
761
752
  </AlertDialog>
762
753
  </ExampleSection>
763
754
  </ExampleGrid>
@@ -859,7 +850,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
859
850
  </Button>
860
851
  }
861
852
  />
862
- <AlertDialogPortal>
853
+
863
854
  <AlertDialogContent size="sm">
864
855
  <div className="h-24 w-full rounded-md bg-muted flex items-center justify-center text-xs text-muted-foreground">
865
856
  Custom Image
@@ -883,7 +874,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
883
874
  </AlertDialogCancel>
884
875
  </AlertDialogFooter>
885
876
  </AlertDialogContent>
886
- </AlertDialogPortal>
877
+
887
878
  </AlertDialog>
888
879
  </div>
889
880
 
@@ -985,7 +976,6 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
985
976
  }
986
977
  />
987
978
 
988
- <AlertDialogPortal>
989
979
  <AlertDialogContent size="sm">
990
980
  <div className="h-24 w-full rounded-md bg-muted flex items-center justify-center text-xs text-muted-foreground">
991
981
  Custom Image
@@ -1007,7 +997,7 @@ function AlertDialogMicroShowcase({ globalSize }: { globalSize: Size }) {
1007
997
  </AlertDialogCancel>
1008
998
  </AlertDialogFooter>
1009
999
  </AlertDialogContent>
1010
- </AlertDialogPortal>
1000
+
1011
1001
  </AlertDialog>
1012
1002
  </div>
1013
1003
 
@@ -1047,12 +1037,10 @@ export default function AlertDialogShowcase() {
1047
1037
  tabs={[
1048
1038
  {
1049
1039
  label: "Micro (Primitive)",
1050
- content: <AlertDialogMicroShowcase globalSize={globalSize} />,
1051
- },
1040
+ content: <AlertDialogMicroShowcase globalSize={globalSize} /> },
1052
1041
  {
1053
1042
  label: "Macro (Preset)",
1054
- content: <AlertDialogMacroShowcase globalSize={globalSize} />,
1055
- },
1043
+ content: <AlertDialogMacroShowcase globalSize={globalSize} /> },
1056
1044
  ]}
1057
1045
  />
1058
1046
  );