gladvn 0.2.36 → 0.2.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/scripts/strip-comments.ts +79 -0
- package/src/blocks/auth-form.tsx +34 -30
- package/src/blocks/auth-recovery.tsx +9 -13
- package/src/blocks/auth-split.tsx +46 -36
- package/src/blocks/settings.tsx +84 -117
- package/src/components/macro/alert-preset.tsx +3 -1
- package/src/components/macro/carousel-preset.tsx +0 -1
- package/src/components/macro/checkbox-preset.test.tsx +2 -2
- package/src/components/macro/checkbox-preset.tsx +1 -2
- package/src/components/macro/command-preset.tsx +1 -1
- package/src/components/macro/date-picker.tsx +5 -18
- package/src/components/macro/dialog-preset.tsx +5 -3
- package/src/components/macro/input-preset.tsx +0 -1
- package/src/components/macro/select-preset.tsx +1 -1
- package/src/components/macro/switch-preset.test.tsx +1 -1
- package/src/components/micro/accordion.test.tsx +6 -12
- package/src/components/micro/alert-dialog.tsx +0 -2
- package/src/components/micro/alert.test.tsx +5 -8
- package/src/components/micro/alert.tsx +0 -2
- package/src/components/micro/badge.test.tsx +5 -7
- package/src/components/micro/badge.tsx +1 -3
- package/src/components/micro/button.test.tsx +19 -26
- package/src/components/micro/button.tsx +3 -11
- package/src/components/micro/calendar.tsx +12 -13
- package/src/components/micro/card.test.tsx +3 -5
- package/src/components/micro/carousel.tsx +0 -1
- package/src/components/micro/chart.tsx +3 -2
- package/src/components/micro/checkbox.test.tsx +9 -18
- package/src/components/micro/combobox.tsx +1 -3
- package/src/components/micro/command.tsx +23 -11
- package/src/components/micro/context-menu.tsx +0 -2
- package/src/components/micro/dialog.test.tsx +6 -14
- package/src/components/micro/dialog.tsx +0 -2
- package/src/components/micro/drawer.tsx +0 -3
- package/src/components/micro/dropdown-menu.test.tsx +8 -14
- package/src/components/micro/dropdown-menu.tsx +0 -2
- package/src/components/micro/field.tsx +3 -3
- package/src/components/micro/hover-card.tsx +0 -2
- package/src/components/micro/input-group.tsx +9 -42
- package/src/components/micro/input.test.tsx +15 -24
- package/src/components/micro/navigation-menu.tsx +0 -2
- package/src/components/micro/popover.test.tsx +5 -9
- package/src/components/micro/progress.tsx +5 -1
- package/src/components/micro/select.test.tsx +5 -18
- package/src/components/micro/select.tsx +3 -5
- package/src/components/micro/separator.tsx +1 -1
- package/src/components/micro/sheet.test.tsx +6 -14
- package/src/components/micro/sheet.tsx +0 -2
- package/src/components/micro/sidebar.tsx +5 -6
- package/src/components/micro/sonner.tsx +0 -1
- package/src/components/micro/switch.test.tsx +9 -18
- package/src/components/micro/switch.tsx +1 -1
- package/src/components/micro/tabs.test.tsx +5 -11
- package/src/components/micro/theme-provider.tsx +0 -12
- package/src/components/micro/toggle-group.tsx +1 -12
- package/src/components/micro/tooltip.test.tsx +7 -12
- package/src/dev/App.tsx +6 -6
- package/src/dev/components/BlockViewer.tsx +15 -4
- package/src/dev/components/Container.tsx +20 -0
- package/src/dev/components/GladvnLogo.tsx +3 -9
- package/src/dev/components/code-highlighter.tsx +5 -3
- package/src/dev/components/showcase.tsx +116 -168
- package/src/dev/sections/buttons.tsx +4 -9
- package/src/dev/sections/display.tsx +68 -72
- package/src/dev/sections/feedback.tsx +304 -314
- package/src/dev/sections/forms.tsx +10 -14
- package/src/dev/sections/interactive.tsx +32 -32
- package/src/dev/sections/overview.tsx +2 -10
- package/src/dev/showcase/accordion.tsx +512 -554
- package/src/dev/showcase/alert-dialog.tsx +525 -565
- package/src/dev/showcase/alert.tsx +352 -402
- package/src/dev/showcase/aspect-ratio.tsx +167 -193
- package/src/dev/showcase/avatar.tsx +231 -269
- package/src/dev/showcase/badge.tsx +92 -140
- package/src/dev/showcase/breadcrumb.tsx +113 -135
- package/src/dev/showcase/button.tsx +140 -173
- package/src/dev/showcase/calendar.tsx +187 -237
- package/src/dev/showcase/card.tsx +229 -261
- package/src/dev/showcase/carousel.tsx +288 -315
- package/src/dev/showcase/chart.tsx +44 -50
- package/src/dev/showcase/checkbox.tsx +286 -330
- package/src/dev/showcase/collapsible.tsx +143 -160
- package/src/dev/showcase/combobox.tsx +327 -369
- package/src/dev/showcase/command.tsx +106 -120
- package/src/dev/showcase/context-menu.tsx +93 -107
- package/src/dev/showcase/dialog.tsx +585 -630
- package/src/dev/showcase/drawer.tsx +176 -196
- package/src/dev/showcase/dropdown-menu.tsx +183 -201
- package/src/dev/showcase/empty.tsx +232 -274
- package/src/dev/showcase/hover-card.tsx +153 -180
- package/src/dev/showcase/input-group.tsx +221 -253
- package/src/dev/showcase/input-otp.tsx +204 -250
- package/src/dev/showcase/input.tsx +246 -325
- package/src/dev/showcase/item.tsx +134 -152
- package/src/dev/showcase/kbd.tsx +149 -172
- package/src/dev/showcase/label.tsx +50 -68
- package/src/dev/showcase/menubar.tsx +194 -213
- package/src/dev/showcase/navigation-menu.tsx +119 -133
- package/src/dev/showcase/overview-components/ArchitectureSection.tsx +126 -0
- package/src/dev/showcase/overview-components/CodeBlock.tsx +50 -0
- package/src/dev/showcase/overview-components/ColorPaletteSection.tsx +44 -0
- package/src/dev/showcase/overview-components/DashboardPreview.tsx +159 -0
- package/src/dev/showcase/overview-components/FeatureGridSection.tsx +535 -0
- package/src/dev/showcase/overview-components/FooterCTA.tsx +137 -0
- package/src/dev/showcase/overview-components/HeroSection.tsx +65 -0
- package/src/dev/showcase/overview-components/PrinciplesSection.tsx +128 -0
- package/src/dev/showcase/overview.tsx +21 -1163
- package/src/dev/showcase/pagination.tsx +144 -190
- package/src/dev/showcase/popover.tsx +181 -196
- package/src/dev/showcase/progress.tsx +141 -189
- package/src/dev/showcase/radio-group.tsx +272 -332
- package/src/dev/showcase/resizable.tsx +119 -141
- package/src/dev/showcase/scroll-area.tsx +21 -36
- package/src/dev/showcase/select.tsx +262 -322
- package/src/dev/showcase/separator.tsx +75 -73
- package/src/dev/showcase/sheet.tsx +333 -361
- package/src/dev/showcase/sidebar.tsx +53 -59
- package/src/dev/showcase/skeleton.tsx +93 -112
- package/src/dev/showcase/slider.tsx +244 -296
- package/src/dev/showcase/sonner.tsx +251 -258
- package/src/dev/showcase/spinner.tsx +46 -67
- package/src/dev/showcase/switch.tsx +298 -362
- package/src/dev/showcase/table.tsx +76 -80
- package/src/dev/showcase/tabs.tsx +302 -355
- package/src/dev/showcase/textarea.tsx +240 -293
- package/src/dev/showcase/toast.tsx +48 -54
- package/src/dev/showcase/toggle-group.tsx +104 -129
- package/src/dev/showcase/toggle.tsx +82 -102
- package/src/dev/showcase/tooltip.tsx +173 -192
- package/src/dev/showcase/why.tsx +6 -12
- package/src/hooks/use-mobile.test.ts +3 -2
- package/src/lib/utils.test.ts +5 -4
|
@@ -17,15 +17,12 @@ import {
|
|
|
17
17
|
DocsCode,
|
|
18
18
|
DocsP,
|
|
19
19
|
ExampleGrid,
|
|
20
|
-
|
|
20
|
+
ShowcaseExample,
|
|
21
21
|
Showcase,
|
|
22
22
|
ShowcaseDocs
|
|
23
23
|
} from "../../dev/components/showcase";
|
|
24
24
|
import { type Size } from "../../lib/types";
|
|
25
25
|
|
|
26
|
-
// ──────────────────────────────────────────────────────────
|
|
27
|
-
// Shared demo card content
|
|
28
|
-
// ──────────────────────────────────────────────────────────
|
|
29
26
|
function NextJsCard() {
|
|
30
27
|
return (
|
|
31
28
|
<div className="flex justify-between space-x-4">
|
|
@@ -53,17 +50,10 @@ function NextJsCard() {
|
|
|
53
50
|
);
|
|
54
51
|
}
|
|
55
52
|
|
|
56
|
-
// ──────────────────────────────────────────────────────────
|
|
57
|
-
// SECTION 2: Micro Content (không export)
|
|
58
|
-
// ──────────────────────────────────────────────────────────
|
|
59
53
|
function HoverCardMicroShowcase({ globalSize }: { globalSize: Size }) {
|
|
60
54
|
return (
|
|
61
|
-
<div className="space-y-10
|
|
62
|
-
|
|
63
|
-
<ExampleSection
|
|
64
|
-
label="Default"
|
|
65
|
-
description="Di chuột qua liên kết để xem bản xem trước. Trigger render dưới dạng Button với variant link."
|
|
66
|
-
codeString={`<HoverCard>
|
|
55
|
+
<div className="space-y-10">
|
|
56
|
+
<ShowcaseExample title="Default" description="Di chuột qua liên kết để xem bản xem trước. Trigger render dưới dạng Button với variant link." code={`<HoverCard>
|
|
67
57
|
<HoverCardTrigger render={<Button variant="link" />}>
|
|
68
58
|
@nextjs
|
|
69
59
|
</HoverCardTrigger>
|
|
@@ -99,27 +89,24 @@ function HoverCardMicroShowcase({ globalSize }: { globalSize: Size }) {
|
|
|
99
89
|
</div>
|
|
100
90
|
</HoverCardContent>
|
|
101
91
|
|
|
102
|
-
</HoverCard>`}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
92
|
+
</HoverCard>`} preview={
|
|
93
|
+
<>
|
|
94
|
+
<HoverCard>
|
|
95
|
+
<HoverCardTrigger
|
|
96
|
+
render={<Button variant="link" size={globalSize} />}
|
|
97
|
+
>
|
|
98
|
+
@nextjs
|
|
99
|
+
</HoverCardTrigger>
|
|
110
100
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
101
|
+
<HoverCardContent className="w-80">
|
|
102
|
+
<NextJsCard />
|
|
103
|
+
</HoverCardContent>
|
|
104
|
+
|
|
105
|
+
</HoverCard>
|
|
106
|
+
</>
|
|
107
|
+
} />
|
|
117
108
|
|
|
118
|
-
|
|
119
|
-
<ExampleSection
|
|
120
|
-
label="Vị trí (Side)"
|
|
121
|
-
description="HoverCard có thể xuất hiện ở bốn phía của trigger thông qua prop side."
|
|
122
|
-
codeString={`<HoverCard>
|
|
109
|
+
<ShowcaseExample title="Vị trí (Side)" description="HoverCard có thể xuất hiện ở bốn phía của trigger thông qua prop side." code={`<HoverCard>
|
|
123
110
|
<HoverCardTrigger
|
|
124
111
|
render={<Button variant="outline">Top</Button>}
|
|
125
112
|
/>
|
|
@@ -128,90 +115,82 @@ function HoverCardMicroShowcase({ globalSize }: { globalSize: Size }) {
|
|
|
128
115
|
...
|
|
129
116
|
</HoverCardContent>
|
|
130
117
|
|
|
131
|
-
</HoverCard>`}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
118
|
+
</HoverCard>`} preview={
|
|
119
|
+
<>
|
|
120
|
+
<div className="flex flex-wrap items-center justify-center gap-4 py-8">
|
|
121
|
+
{(["top", "right", "bottom", "left"] as const).map((side) => (
|
|
122
|
+
<HoverCard key={side}>
|
|
123
|
+
<HoverCardTrigger
|
|
124
|
+
render={
|
|
125
|
+
<Button
|
|
126
|
+
variant="outline"
|
|
127
|
+
size={globalSize}
|
|
128
|
+
className="capitalize"
|
|
129
|
+
>
|
|
130
|
+
{side}
|
|
131
|
+
</Button>
|
|
132
|
+
}
|
|
133
|
+
/>
|
|
147
134
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
135
|
+
<HoverCardContent side={side} className="w-72">
|
|
136
|
+
<NextJsCard />
|
|
137
|
+
</HoverCardContent>
|
|
138
|
+
|
|
139
|
+
</HoverCard>
|
|
140
|
+
))}
|
|
141
|
+
</div>
|
|
142
|
+
</>
|
|
143
|
+
} />
|
|
156
144
|
|
|
157
|
-
{/* ── Căn chỉnh (Align) ── */}
|
|
158
145
|
<ExampleGrid>
|
|
159
146
|
{(["start", "center", "end"] as const).map((align) => (
|
|
160
|
-
<
|
|
161
|
-
|
|
162
|
-
label={`Align: ${align}`}
|
|
163
|
-
description={`Card căn ${align} theo trục ngang.`}
|
|
164
|
-
codeString={`<HoverCardContent align="${align}" className="w-80">...</HoverCardContent>`}
|
|
165
|
-
>
|
|
147
|
+
<ShowcaseExample key={align} title={`Align: ${align}`} description={`Card căn ${align} theo trục ngang.`} code={`<HoverCardContent align="${align}" className="w-80">...</HoverCardContent>`} preview={
|
|
148
|
+
<>
|
|
166
149
|
<HoverCard>
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
150
|
+
<HoverCardTrigger
|
|
151
|
+
render={
|
|
152
|
+
<Button
|
|
153
|
+
variant="outline"
|
|
154
|
+
size={globalSize}
|
|
155
|
+
className="capitalize"
|
|
156
|
+
>
|
|
157
|
+
{align}
|
|
158
|
+
</Button>
|
|
159
|
+
}
|
|
160
|
+
/>
|
|
178
161
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
162
|
+
<HoverCardContent align={align} className="w-64">
|
|
163
|
+
<NextJsCard />
|
|
164
|
+
</HoverCardContent>
|
|
165
|
+
|
|
166
|
+
</HoverCard>
|
|
167
|
+
</>
|
|
168
|
+
} />
|
|
185
169
|
))}
|
|
186
170
|
</ExampleGrid>
|
|
187
171
|
|
|
188
172
|
{/* ── Trigger types ── */}
|
|
189
173
|
<ExampleGrid>
|
|
190
|
-
<
|
|
191
|
-
label="Trigger: Button Link"
|
|
192
|
-
description="Trigger render như Button variant link — phù hợp cho text nội tuyến."
|
|
193
|
-
codeString={`<HoverCardTrigger render={<Button variant="link" />}>
|
|
174
|
+
<ShowcaseExample title="Trigger: Button Link" description="Trigger render như Button variant link — phù hợp cho text nội tuyến." code={`<HoverCardTrigger render={<Button variant="link" />}>
|
|
194
175
|
@nextjs
|
|
195
|
-
</HoverCardTrigger>`}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
176
|
+
</HoverCardTrigger>`} preview={
|
|
177
|
+
<>
|
|
178
|
+
<HoverCard>
|
|
179
|
+
<HoverCardTrigger
|
|
180
|
+
render={<Button variant="link" size={globalSize} />}
|
|
181
|
+
>
|
|
182
|
+
@nextjs
|
|
183
|
+
</HoverCardTrigger>
|
|
203
184
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
185
|
+
<HoverCardContent className="w-80">
|
|
186
|
+
<NextJsCard />
|
|
187
|
+
</HoverCardContent>
|
|
188
|
+
|
|
189
|
+
</HoverCard>
|
|
190
|
+
</>
|
|
191
|
+
} />
|
|
210
192
|
|
|
211
|
-
<
|
|
212
|
-
label="Trigger: Thẻ anchor thuần"
|
|
213
|
-
description="Trigger render như thẻ <a> HTML thuần — phù hợp cho liên kết tự nhiên trong văn bản."
|
|
214
|
-
codeString={`<HoverCardTrigger
|
|
193
|
+
<ShowcaseExample title="Trigger: Thẻ anchor thuần" description="Trigger render như thẻ <a> HTML thuần — phù hợp cho liên kết tự nhiên trong văn bản." code={`<HoverCardTrigger
|
|
215
194
|
render={
|
|
216
195
|
<a
|
|
217
196
|
href="#"
|
|
@@ -220,34 +199,31 @@ function HoverCardMicroShowcase({ globalSize }: { globalSize: Size }) {
|
|
|
220
199
|
}
|
|
221
200
|
>
|
|
222
201
|
@nextjs
|
|
223
|
-
</HoverCardTrigger>`}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
202
|
+
</HoverCardTrigger>`} preview={
|
|
203
|
+
<>
|
|
204
|
+
<HoverCard>
|
|
205
|
+
<HoverCardTrigger
|
|
206
|
+
render={
|
|
207
|
+
<a
|
|
208
|
+
href="#"
|
|
209
|
+
className="text-sm text-primary underline underline-offset-4 hover:opacity-80 transition-opacity"
|
|
210
|
+
/>
|
|
211
|
+
}
|
|
212
|
+
>
|
|
213
|
+
@nextjs
|
|
214
|
+
</HoverCardTrigger>
|
|
236
215
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
216
|
+
<HoverCardContent className="w-80">
|
|
217
|
+
<NextJsCard />
|
|
218
|
+
</HoverCardContent>
|
|
219
|
+
|
|
220
|
+
</HoverCard>
|
|
221
|
+
</>
|
|
222
|
+
} />
|
|
243
223
|
</ExampleGrid>
|
|
244
224
|
|
|
245
225
|
{/* ── Độ trễ (delay / closeDelay) ── */}
|
|
246
|
-
<
|
|
247
|
-
label="Độ trễ (delay / closeDelay)"
|
|
248
|
-
description="Tuỳ chỉnh thời gian trễ trước khi card xuất hiện hoặc biến mất. Props delay và closeDelay đặt trên HoverCardTrigger."
|
|
249
|
-
fullWidth
|
|
250
|
-
codeString={`<HoverCard>
|
|
226
|
+
<ShowcaseExample title="Độ trễ (delay / closeDelay)" description="Tuỳ chỉnh thời gian trễ trước khi card xuất hiện hoặc biến mất. Props delay và closeDelay đặt trên HoverCardTrigger." code={`<HoverCard>
|
|
251
227
|
<HoverCardTrigger delay={0} render={<Button />}>
|
|
252
228
|
Tức thì
|
|
253
229
|
</HoverCardTrigger>
|
|
@@ -276,59 +252,60 @@ function HoverCardMicroShowcase({ globalSize }: { globalSize: Size }) {
|
|
|
276
252
|
|
|
277
253
|
<HoverCardContent>...</HoverCardContent>
|
|
278
254
|
|
|
279
|
-
</HoverCard>`}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
255
|
+
</HoverCard>`} preview={
|
|
256
|
+
<>
|
|
257
|
+
<div className="grid grid-cols-1 md:grid-cols-3 gap-4 w-full">
|
|
258
|
+
<HoverCard>
|
|
259
|
+
<HoverCardTrigger
|
|
260
|
+
delay={0}
|
|
261
|
+
render={
|
|
262
|
+
<Button variant="outline" size={globalSize} className="w-full">
|
|
263
|
+
Tức thì (0ms)
|
|
264
|
+
</Button>
|
|
265
|
+
}
|
|
266
|
+
/>
|
|
291
267
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
268
|
+
<HoverCardContent className="w-72">
|
|
269
|
+
<NextJsCard />
|
|
270
|
+
</HoverCardContent>
|
|
271
|
+
|
|
272
|
+
</HoverCard>
|
|
297
273
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
274
|
+
<HoverCard>
|
|
275
|
+
<HoverCardTrigger
|
|
276
|
+
delay={500}
|
|
277
|
+
render={
|
|
278
|
+
<Button variant="outline" size={globalSize} className="w-full">
|
|
279
|
+
Mặc định (500ms)
|
|
280
|
+
</Button>
|
|
281
|
+
}
|
|
282
|
+
/>
|
|
307
283
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
284
|
+
<HoverCardContent className="w-72">
|
|
285
|
+
<NextJsCard />
|
|
286
|
+
</HoverCardContent>
|
|
287
|
+
|
|
288
|
+
</HoverCard>
|
|
313
289
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
290
|
+
<HoverCard>
|
|
291
|
+
<HoverCardTrigger
|
|
292
|
+
delay={1500}
|
|
293
|
+
closeDelay={500}
|
|
294
|
+
render={
|
|
295
|
+
<Button variant="outline" size={globalSize} className="w-full">
|
|
296
|
+
Chậm (1500ms)
|
|
297
|
+
</Button>
|
|
298
|
+
}
|
|
299
|
+
/>
|
|
324
300
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
301
|
+
<HoverCardContent className="w-72">
|
|
302
|
+
<NextJsCard />
|
|
303
|
+
</HoverCardContent>
|
|
304
|
+
|
|
305
|
+
</HoverCard>
|
|
306
|
+
</div>
|
|
307
|
+
</>
|
|
308
|
+
} />
|
|
332
309
|
</div>
|
|
333
310
|
);
|
|
334
311
|
}
|
|
@@ -342,7 +319,7 @@ export default function HoverCardShowcase() {
|
|
|
342
319
|
<Showcase
|
|
343
320
|
title="Hover Card"
|
|
344
321
|
description="Xem trước nội dung đằng sau một liên kết khi hover."
|
|
345
|
-
|
|
322
|
+
guideline={
|
|
346
323
|
<ShowcaseDocs>
|
|
347
324
|
<DocsP>
|
|
348
325
|
<DocsCode>HoverCard</DocsCode> hiển thị một khung xem trước thông
|
|
@@ -357,11 +334,7 @@ export default function HoverCardShowcase() {
|
|
|
357
334
|
</DocsP>
|
|
358
335
|
</ShowcaseDocs>
|
|
359
336
|
}
|
|
360
|
-
|
|
361
|
-
{
|
|
362
|
-
label: "Micro (Primitive)",
|
|
363
|
-
content: <HoverCardMicroShowcase globalSize={globalSize} /> },
|
|
364
|
-
]}
|
|
337
|
+
micro={{ content: <HoverCardMicroShowcase globalSize={globalSize} /> }}
|
|
365
338
|
/>
|
|
366
339
|
);
|
|
367
340
|
}
|