@brightlocal/ui-components 2.27.0 → 3.1.0
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 +7 -1
- package/component-meta.json +568 -143
- package/deprecations.json +298 -1
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.d.ts +36 -0
- package/dist/accordion.d.ts.map +1 -1
- package/dist/accordion.js +74 -61
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.js +18 -18
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +11 -1
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.js +31 -28
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.js +4 -4
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.js +15 -11
- package/dist/blocks/empty-state.cjs +1 -0
- package/dist/blocks/empty-state.d.ts +172 -0
- package/dist/blocks/empty-state.d.ts.map +1 -0
- package/dist/blocks/empty-state.js +147 -0
- package/dist/blocks/input-list.cjs +2 -2
- package/dist/blocks/input-list.d.ts.map +1 -1
- package/dist/blocks/input-list.js +124 -108
- package/dist/blocks/progress-state.cjs +1 -0
- package/dist/blocks/{progress-screen.d.ts → progress-state.d.ts} +30 -18
- package/dist/blocks/progress-state.d.ts.map +1 -0
- package/dist/blocks/{progress-screen.js → progress-state.js} +100 -71
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +160 -161
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/button-group.cjs +1 -0
- package/dist/button-group.d.ts +36 -0
- package/dist/button-group.d.ts.map +1 -0
- package/dist/button-group.js +47 -0
- package/dist/button.cjs +1 -1
- package/dist/button.js +12 -12
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.js +37 -38
- package/dist/callout.cjs +1 -1
- package/dist/callout.d.ts +24 -2
- package/dist/callout.d.ts.map +1 -1
- package/dist/callout.js +57 -55
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +42 -3
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +102 -91
- package/dist/chart-empty.cjs +1 -0
- package/dist/chart-empty.d.ts +59 -0
- package/dist/chart-empty.d.ts.map +1 -0
- package/dist/chart-empty.js +29 -0
- package/dist/chart.cjs +6 -6
- package/dist/chart.d.ts +46 -13
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +172 -157
- package/dist/chip.cjs +1 -1
- package/dist/chip.d.ts +38 -4
- package/dist/chip.d.ts.map +1 -1
- package/dist/chip.js +100 -84
- package/dist/combobox.cjs +2 -2
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +81 -79
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +23 -1
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +248 -225
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.js +26 -29
- package/dist/data-table.cjs +1 -1
- package/dist/data-table.d.ts +75 -10
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +346 -334
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.d.ts +13 -5
- package/dist/date-picker.d.ts.map +1 -1
- package/dist/date-picker.js +54 -53
- package/dist/description.cjs +1 -1
- package/dist/description.js +5 -5
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +20 -20
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.js +8 -11
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.js +17 -20
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +8 -1
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +96 -65
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +130 -12
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +146 -127
- package/dist/grid.cjs +1 -0
- package/dist/grid.d.ts +56 -0
- package/dist/grid.d.ts.map +1 -0
- package/dist/grid.js +32 -0
- package/dist/header.d.ts +13 -0
- package/dist/header.d.ts.map +1 -1
- package/dist/hooks/use-delayed-pending.cjs +1 -0
- package/dist/hooks/use-delayed-pending.d.ts +34 -0
- package/dist/hooks/use-delayed-pending.d.ts.map +1 -0
- package/dist/hooks/use-delayed-pending.js +17 -0
- package/dist/hooks/use-mobile.cjs +1 -0
- package/dist/hooks/use-mobile.js +8 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.js +13 -13
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +554 -527
- package/dist/input-chip.cjs +1 -1
- package/dist/input-chip.js +25 -25
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.js +9 -9
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.js +9 -9
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.d.ts +17 -9
- package/dist/input-password.d.ts.map +1 -1
- package/dist/input-password.js +73 -72
- package/dist/input.cjs +1 -1
- package/dist/input.js +9 -9
- package/dist/label.cjs +1 -1
- package/dist/label.d.ts.map +1 -1
- package/dist/label.js +25 -28
- package/dist/lib/block-illustration.cjs +1 -0
- package/dist/lib/block-illustration.d.ts +28 -0
- package/dist/lib/block-illustration.d.ts.map +1 -0
- package/dist/lib/block-illustration.js +21 -0
- package/dist/lib/empty-canvas.cjs +1 -0
- package/dist/lib/empty-canvas.d.ts +27 -0
- package/dist/lib/empty-canvas.d.ts.map +1 -0
- package/dist/lib/empty-canvas.js +62 -0
- package/dist/lib/empty-chip.cjs +1 -0
- package/dist/lib/empty-chip.d.ts +4 -0
- package/dist/lib/empty-chip.d.ts.map +1 -0
- package/dist/lib/empty-chip.js +13 -0
- package/dist/lib/optical-center.cjs +1 -0
- package/dist/lib/optical-center.d.ts +12 -0
- package/dist/lib/optical-center.d.ts.map +1 -0
- package/dist/lib/optical-center.js +11 -0
- package/dist/lib/utils.cjs +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +28 -5
- package/dist/list.cjs +1 -1
- package/dist/list.d.ts.map +1 -1
- package/dist/list.js +62 -58
- package/dist/map.cjs +1 -1
- package/dist/map.d.ts +60 -2
- package/dist/map.d.ts.map +1 -1
- package/dist/map.js +187 -164
- package/dist/media-empty.cjs +1 -0
- package/dist/media-empty.d.ts +72 -0
- package/dist/media-empty.d.ts.map +1 -0
- package/dist/media-empty.js +45 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.js +17 -20
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.js +7 -7
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +130 -1
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +193 -102
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +2 -26
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +79 -118
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +15 -6
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.js +38 -36
- package/dist/select.cjs +2 -2
- package/dist/select.d.ts +13 -2
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +92 -87
- package/dist/separator.cjs +1 -1
- package/dist/separator.js +8 -8
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +2 -2
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.d.ts +38 -3
- package/dist/skeleton.d.ts.map +1 -1
- package/dist/skeleton.js +43 -20
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.js +26 -26
- package/dist/stepper.cjs +1 -1
- package/dist/stepper.js +40 -40
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +31 -28
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text-reveal-motion.d.ts +10 -0
- package/dist/text-reveal-motion.d.ts.map +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +11 -11
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.js +8 -8
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +8 -8
- package/dist/typography-heading.cjs +1 -0
- package/dist/typography-heading.d.ts +129 -0
- package/dist/typography-heading.d.ts.map +1 -0
- package/dist/typography-heading.js +95 -0
- package/dist/typography-text.cjs +1 -0
- package/dist/typography-text.d.ts +127 -0
- package/dist/typography-text.d.ts.map +1 -0
- package/dist/typography-text.js +92 -0
- package/dist/typography.d.ts +13 -0
- package/dist/typography.d.ts.map +1 -1
- package/package.json +35 -7
- package/src/blocks/empty-state.tsx +412 -0
- package/src/blocks/input-list.tsx +66 -36
- package/src/blocks/{progress-screen.tsx → progress-state.tsx} +154 -93
- package/src/blocks/sidebar.tsx +25 -26
- package/src/components/accordion.tsx +82 -27
- package/src/components/alert-dialog.tsx +2 -2
- package/src/components/alert.tsx +27 -13
- package/src/components/avatar.tsx +1 -1
- package/src/components/badge.tsx +8 -4
- package/src/components/breadcrumb.tsx +1 -1
- package/src/components/button-group.tsx +112 -0
- package/src/components/button.tsx +4 -4
- package/src/components/calendar.tsx +5 -6
- package/src/components/callout.tsx +48 -15
- package/src/components/card.tsx +89 -19
- package/src/components/chart-empty.tsx +116 -0
- package/src/components/chart.tsx +103 -32
- package/src/components/chip.tsx +88 -13
- package/src/components/combobox.tsx +12 -10
- package/src/components/command.tsx +64 -13
- package/src/components/context-menu.tsx +6 -9
- package/src/components/data-table.tsx +135 -20
- package/src/components/date-picker.tsx +18 -7
- package/src/components/description.tsx +1 -1
- package/src/components/dialog.tsx +2 -2
- package/src/components/drawer.tsx +2 -5
- package/src/components/dropdown-menu.tsx +8 -11
- package/src/components/field.tsx +89 -16
- package/src/components/global-layout.tsx +210 -39
- package/src/components/grid.tsx +130 -0
- package/src/components/header.tsx +13 -0
- package/src/components/hover-card.tsx +1 -1
- package/src/components/input-chip.tsx +1 -1
- package/src/components/input-group.tsx +1 -1
- package/src/components/input-otp.tsx +1 -1
- package/src/components/input-password.tsx +24 -12
- package/src/components/input.tsx +1 -1
- package/src/components/label.tsx +10 -13
- package/src/components/list.tsx +13 -9
- package/src/components/map.tsx +101 -5
- package/src/components/media-empty.tsx +156 -0
- package/src/components/menubar.tsx +7 -10
- package/src/components/navigation-menu.tsx +1 -1
- package/src/components/pagination.tsx +286 -1
- package/src/components/progress.tsx +35 -113
- package/src/components/scroll-area.tsx +23 -10
- package/src/components/select.tsx +35 -10
- package/src/components/separator.tsx +1 -1
- package/src/components/sheet.tsx +2 -2
- package/src/components/skeleton.tsx +78 -7
- package/src/components/sonner.tsx +2 -2
- package/src/components/stepper.tsx +3 -3
- package/src/components/table.tsx +6 -3
- package/src/components/tabs.tsx +1 -1
- package/src/components/text-reveal-motion.tsx +10 -0
- package/src/components/textarea.tsx +1 -1
- package/src/components/toggle.tsx +1 -1
- package/src/components/tooltip.tsx +1 -1
- package/src/components/typography-heading.tsx +253 -0
- package/src/components/typography-text.tsx +250 -0
- package/src/components/typography.tsx +13 -0
- package/src/hooks/use-delayed-pending.ts +60 -0
- package/src/index.ts +11 -1
- package/src/lib/block-illustration.tsx +88 -0
- package/src/lib/empty-canvas.tsx +128 -0
- package/src/lib/empty-chip.ts +24 -0
- package/src/lib/optical-center.tsx +45 -0
- package/src/lib/utils.ts +26 -0
- package/dist/blocks/progress-screen.cjs +0 -1
- package/dist/blocks/progress-screen.d.ts.map +0 -1
package/deprecations.json
CHANGED
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"type": "component",
|
|
184
184
|
"since": "2.24.0",
|
|
185
185
|
"reason": "A <caption> is placed by the CSS caption-side property, not by composition order; it names the table without adding to the document outline and scrolls horizontally with the table",
|
|
186
|
-
"replacement": "
|
|
186
|
+
"replacement": "TypographyHeading (e.g. level 3) with aria-labelledby on Table",
|
|
187
187
|
"ticket": "DS-779"
|
|
188
188
|
},
|
|
189
189
|
{
|
|
@@ -207,5 +207,302 @@
|
|
|
207
207
|
"reason": "Use Tailwind max-width utilities via className instead",
|
|
208
208
|
"replacement": "className=\"max-w-sm\" (or any max-w-* utility)",
|
|
209
209
|
"ticket": "DS-578"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"id": "typography-typographyh1",
|
|
213
|
+
"component": "TypographyH1",
|
|
214
|
+
"file": "components/typography.tsx",
|
|
215
|
+
"item": "TypographyH1",
|
|
216
|
+
"type": "component",
|
|
217
|
+
"since": "2.27.0",
|
|
218
|
+
"reason": "Tag and visual size are coupled; superseded by the two-axis semantic type scale API",
|
|
219
|
+
"replacement": "TypographyHeading level={1} variant=\"page\"",
|
|
220
|
+
"ticket": "DS-714"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"id": "typography-typographyh2",
|
|
224
|
+
"component": "TypographyH2",
|
|
225
|
+
"file": "components/typography.tsx",
|
|
226
|
+
"item": "TypographyH2",
|
|
227
|
+
"type": "component",
|
|
228
|
+
"since": "2.27.0",
|
|
229
|
+
"reason": "Tag and visual size are coupled; superseded by the two-axis semantic type scale API",
|
|
230
|
+
"replacement": "TypographyHeading level={2} variant=\"section\"",
|
|
231
|
+
"ticket": "DS-714"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"id": "typography-typographyh3",
|
|
235
|
+
"component": "TypographyH3",
|
|
236
|
+
"file": "components/typography.tsx",
|
|
237
|
+
"item": "TypographyH3",
|
|
238
|
+
"type": "component",
|
|
239
|
+
"since": "2.27.0",
|
|
240
|
+
"reason": "Tag and visual size are coupled; superseded by the two-axis semantic type scale API",
|
|
241
|
+
"replacement": "TypographyHeading level={3} variant=\"subsection\"",
|
|
242
|
+
"ticket": "DS-714"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"id": "typography-typographyh4",
|
|
246
|
+
"component": "TypographyH4",
|
|
247
|
+
"file": "components/typography.tsx",
|
|
248
|
+
"item": "TypographyH4",
|
|
249
|
+
"type": "component",
|
|
250
|
+
"since": "2.27.0",
|
|
251
|
+
"reason": "Tag and visual size are coupled; superseded by the two-axis semantic type scale API",
|
|
252
|
+
"replacement": "TypographyHeading level={4} variant=\"subsection\"",
|
|
253
|
+
"ticket": "DS-714"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"id": "typography-typographyp",
|
|
257
|
+
"component": "TypographyP",
|
|
258
|
+
"file": "components/typography.tsx",
|
|
259
|
+
"item": "TypographyP",
|
|
260
|
+
"type": "component",
|
|
261
|
+
"since": "2.27.0",
|
|
262
|
+
"reason": "Tag and visual size are coupled; superseded by the two-axis semantic type scale API",
|
|
263
|
+
"replacement": "TypographyText variant=\"body\"",
|
|
264
|
+
"ticket": "DS-714"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"id": "typography-typographylead",
|
|
268
|
+
"component": "TypographyLead",
|
|
269
|
+
"file": "components/typography.tsx",
|
|
270
|
+
"item": "TypographyLead",
|
|
271
|
+
"type": "component",
|
|
272
|
+
"since": "2.27.0",
|
|
273
|
+
"reason": "Tag and visual size are coupled; superseded by the two-axis semantic type scale API",
|
|
274
|
+
"replacement": "TypographyText color=\"muted\"",
|
|
275
|
+
"ticket": "DS-714"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"id": "typography-typographylarge",
|
|
279
|
+
"component": "TypographyLarge",
|
|
280
|
+
"file": "components/typography.tsx",
|
|
281
|
+
"item": "TypographyLarge",
|
|
282
|
+
"type": "component",
|
|
283
|
+
"since": "2.27.0",
|
|
284
|
+
"reason": "Tag and visual size are coupled; superseded by the two-axis semantic type scale API",
|
|
285
|
+
"replacement": "TypographyHeading level={n} variant=\"subsection\" or TypographyText",
|
|
286
|
+
"ticket": "DS-714"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"id": "typography-typographysmall",
|
|
290
|
+
"component": "TypographySmall",
|
|
291
|
+
"file": "components/typography.tsx",
|
|
292
|
+
"item": "TypographySmall",
|
|
293
|
+
"type": "component",
|
|
294
|
+
"since": "2.27.0",
|
|
295
|
+
"reason": "Tag and visual size are coupled; superseded by the two-axis semantic type scale API",
|
|
296
|
+
"replacement": "TypographyText variant=\"body-sm\"",
|
|
297
|
+
"ticket": "DS-714"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"id": "typography-typographymuted",
|
|
301
|
+
"component": "TypographyMuted",
|
|
302
|
+
"file": "components/typography.tsx",
|
|
303
|
+
"item": "TypographyMuted",
|
|
304
|
+
"type": "component",
|
|
305
|
+
"since": "2.27.0",
|
|
306
|
+
"reason": "Tag and visual size are coupled; superseded by the two-axis semantic type scale API",
|
|
307
|
+
"replacement": "TypographyText variant=\"body-sm\" color=\"muted\"",
|
|
308
|
+
"ticket": "DS-714"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"id": "typography-typographyblockquote",
|
|
312
|
+
"component": "TypographyBlockquote",
|
|
313
|
+
"file": "components/typography.tsx",
|
|
314
|
+
"item": "TypographyBlockquote",
|
|
315
|
+
"type": "component",
|
|
316
|
+
"since": "2.27.0",
|
|
317
|
+
"reason": "Superseded by the semantic type scale; quote decoration is consumer layout",
|
|
318
|
+
"replacement": "TypographyText asChild with a blockquote child",
|
|
319
|
+
"ticket": "DS-714"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"id": "typography-typographylist",
|
|
323
|
+
"component": "TypographyList",
|
|
324
|
+
"file": "components/typography.tsx",
|
|
325
|
+
"item": "TypographyList",
|
|
326
|
+
"type": "component",
|
|
327
|
+
"since": "2.27.0",
|
|
328
|
+
"reason": "Superseded by the semantic type scale; list markers and spacing are consumer layout",
|
|
329
|
+
"replacement": "TypographyText asChild with a ul child",
|
|
330
|
+
"ticket": "DS-714"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"id": "typography-typographyinlinecode",
|
|
334
|
+
"component": "TypographyInlineCode",
|
|
335
|
+
"file": "components/typography.tsx",
|
|
336
|
+
"item": "TypographyInlineCode",
|
|
337
|
+
"type": "component",
|
|
338
|
+
"since": "2.27.0",
|
|
339
|
+
"reason": "Superseded by the type-scale inline code treatment (0.9em, inherits line-height)",
|
|
340
|
+
"replacement": "code element with the text-code-inline utility",
|
|
341
|
+
"ticket": "DS-714"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"id": "typography-typographycode",
|
|
345
|
+
"component": "TypographyCode",
|
|
346
|
+
"file": "components/typography.tsx",
|
|
347
|
+
"item": "TypographyCode",
|
|
348
|
+
"type": "component",
|
|
349
|
+
"since": "2.27.0",
|
|
350
|
+
"reason": "Superseded by the semantic type scale code style (Geist Mono 400 - 16/24)",
|
|
351
|
+
"replacement": "TypographyText variant=\"code\" for copyable identifiers; pre styled with text-code for multi-line snippets",
|
|
352
|
+
"ticket": "DS-714"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"id": "text-reveal-motion",
|
|
356
|
+
"component": "TextRevealMotion",
|
|
357
|
+
"file": "components/text-reveal-motion.tsx",
|
|
358
|
+
"item": "TextRevealMotion",
|
|
359
|
+
"type": "component",
|
|
360
|
+
"since": "2.28.0",
|
|
361
|
+
"reason": "Cycling phrases on a holdTime timer violates the Loading pattern's Honesty principle — the phrases are not stages the backend reported; the motif duplicates Loading's shapes and gradient",
|
|
362
|
+
"replacement": "Section skeleton, or a named-stages running screen driven by real stage data (Patterns / Loading)",
|
|
363
|
+
"ticket": "DS-907"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"id": "text-reveal-motion-props",
|
|
367
|
+
"component": "TextRevealMotion",
|
|
368
|
+
"file": "components/text-reveal-motion.tsx",
|
|
369
|
+
"item": "TextRevealMotionProps",
|
|
370
|
+
"type": "type",
|
|
371
|
+
"since": "2.28.0",
|
|
372
|
+
"reason": "Paired with the deprecated TextRevealMotion component",
|
|
373
|
+
"replacement": "None — remove the import",
|
|
374
|
+
"ticket": "DS-907"
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"id": "progress-screen-renamed",
|
|
378
|
+
"component": "ProgressState",
|
|
379
|
+
"file": "blocks/progress-state.tsx",
|
|
380
|
+
"item": "ProgressScreen",
|
|
381
|
+
"type": "component",
|
|
382
|
+
"since": "2.28.0",
|
|
383
|
+
"reason": "Renamed to ProgressState: the suffix says what the component owns, and a named state covers every scope it has",
|
|
384
|
+
"replacement": "ProgressState",
|
|
385
|
+
"ticket": "DS-931"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"id": "progress-screen-props-renamed",
|
|
389
|
+
"component": "ProgressState",
|
|
390
|
+
"file": "blocks/progress-state.tsx",
|
|
391
|
+
"item": "ProgressScreenProps",
|
|
392
|
+
"type": "type",
|
|
393
|
+
"since": "2.28.0",
|
|
394
|
+
"reason": "Paired with the deprecated ProgressScreen alias, renamed to ProgressState",
|
|
395
|
+
"replacement": "ProgressStateProps",
|
|
396
|
+
"ticket": "DS-931"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"id": "global-layout-content-actions-renamed",
|
|
400
|
+
"component": "GlobalLayout",
|
|
401
|
+
"file": "components/global-layout.tsx",
|
|
402
|
+
"item": "GlobalLayoutContentActions",
|
|
403
|
+
"type": "component",
|
|
404
|
+
"since": "3.1.0",
|
|
405
|
+
"reason": "Renamed to GlobalLayoutActions: the Content middle segment was an unearned discriminator — no sibling actions row exists to discriminate against (DS-809 names discriminate siblings only)",
|
|
406
|
+
"replacement": "GlobalLayoutActions",
|
|
407
|
+
"ticket": "DS-855"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"id": "global-layout-content-actions-props-renamed",
|
|
411
|
+
"component": "GlobalLayout",
|
|
412
|
+
"file": "components/global-layout.tsx",
|
|
413
|
+
"item": "GlobalLayoutContentActionsProps",
|
|
414
|
+
"type": "type",
|
|
415
|
+
"since": "3.1.0",
|
|
416
|
+
"reason": "Paired with the deprecated GlobalLayoutContentActions alias, renamed to GlobalLayoutActions",
|
|
417
|
+
"replacement": "GlobalLayoutActionsProps",
|
|
418
|
+
"ticket": "DS-855"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"id": "global-layout-content-body-renamed",
|
|
422
|
+
"component": "GlobalLayout",
|
|
423
|
+
"file": "components/global-layout.tsx",
|
|
424
|
+
"item": "GlobalLayoutContentBody",
|
|
425
|
+
"type": "component",
|
|
426
|
+
"since": "3.1.0",
|
|
427
|
+
"reason": "Renamed to GlobalLayoutBody: the Content middle segment was an unearned discriminator — no sibling body region exists to discriminate against (DS-809 names discriminate siblings only)",
|
|
428
|
+
"replacement": "GlobalLayoutBody",
|
|
429
|
+
"ticket": "DS-855"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"id": "global-layout-content-body-props-renamed",
|
|
433
|
+
"component": "GlobalLayout",
|
|
434
|
+
"file": "components/global-layout.tsx",
|
|
435
|
+
"item": "GlobalLayoutContentBodyProps",
|
|
436
|
+
"type": "type",
|
|
437
|
+
"since": "3.1.0",
|
|
438
|
+
"reason": "Paired with the deprecated GlobalLayoutContentBody alias, renamed to GlobalLayoutBody",
|
|
439
|
+
"replacement": "GlobalLayoutBodyProps",
|
|
440
|
+
"ticket": "DS-855"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"id": "date-picker-root",
|
|
444
|
+
"component": "DatePicker",
|
|
445
|
+
"file": "components/date-picker.tsx",
|
|
446
|
+
"item": "DatePickerRoot",
|
|
447
|
+
"type": "component",
|
|
448
|
+
"since": "3.1.0",
|
|
449
|
+
"reason": "Family roots are bare names (DS-809); renamed to DatePicker",
|
|
450
|
+
"replacement": "DatePicker",
|
|
451
|
+
"ticket": "DS-853"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"id": "date-picker-root-props",
|
|
455
|
+
"component": "DatePicker",
|
|
456
|
+
"file": "components/date-picker.tsx",
|
|
457
|
+
"item": "DatePickerRootProps",
|
|
458
|
+
"type": "type",
|
|
459
|
+
"since": "3.1.0",
|
|
460
|
+
"reason": "Follows the DatePickerRoot → DatePicker rename",
|
|
461
|
+
"replacement": "DatePickerProps",
|
|
462
|
+
"ticket": "DS-853"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"id": "input-password-root",
|
|
466
|
+
"component": "InputPassword",
|
|
467
|
+
"file": "components/input-password.tsx",
|
|
468
|
+
"item": "InputPasswordRoot",
|
|
469
|
+
"type": "component",
|
|
470
|
+
"since": "3.1.0",
|
|
471
|
+
"reason": "Family roots are bare names (DS-809); renamed to InputPassword",
|
|
472
|
+
"replacement": "InputPassword",
|
|
473
|
+
"ticket": "DS-853"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"id": "input-password-root-props",
|
|
477
|
+
"component": "InputPassword",
|
|
478
|
+
"file": "components/input-password.tsx",
|
|
479
|
+
"item": "InputPasswordRootProps",
|
|
480
|
+
"type": "type",
|
|
481
|
+
"since": "3.1.0",
|
|
482
|
+
"reason": "Follows the InputPasswordRoot → InputPassword rename",
|
|
483
|
+
"replacement": "InputPasswordProps",
|
|
484
|
+
"ticket": "DS-853"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"id": "scroll-bar",
|
|
488
|
+
"component": "ScrollArea",
|
|
489
|
+
"file": "components/scroll-area.tsx",
|
|
490
|
+
"item": "ScrollBar",
|
|
491
|
+
"type": "component",
|
|
492
|
+
"since": "3.1.0",
|
|
493
|
+
"reason": "Family parts carry the family prefix exactly once (DS-809); renamed to ScrollAreaScrollbar",
|
|
494
|
+
"replacement": "ScrollAreaScrollbar",
|
|
495
|
+
"ticket": "DS-853"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"id": "scroll-bar-props",
|
|
499
|
+
"component": "ScrollArea",
|
|
500
|
+
"file": "components/scroll-area.tsx",
|
|
501
|
+
"item": "ScrollBarProps",
|
|
502
|
+
"type": "type",
|
|
503
|
+
"since": "3.1.0",
|
|
504
|
+
"reason": "Follows the ScrollBar → ScrollAreaScrollbar rename",
|
|
505
|
+
"replacement": "ScrollAreaScrollbarProps",
|
|
506
|
+
"ticket": "DS-853"
|
|
210
507
|
}
|
|
211
508
|
]
|
package/dist/accordion.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),y=require("react"),x=require("@radix-ui/react-accordion"),j=require("@brightlocal/icons"),s=require("@brightlocal/ui-components/lib/utils");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const l=m(y),d=m(x),b=l.forwardRef((e,t)=>{const{dataHook:a,trackingEl:o,trackingLabel:n,disabled:r,dir:c,orientation:u,className:g,children:f}=e;return e.type==="single"?i.jsx(d.Root,{ref:t,className:g,collapsible:e.collapsible,"data-hook":a,"data-slot":"accordion","data-tracking-el":o,"data-tracking-label":n,defaultValue:e.defaultValue,dir:c,disabled:r,orientation:u,type:"single",value:e.value,onValueChange:e.onValueChange,children:f}):i.jsx(d.Root,{ref:t,className:g,"data-hook":a,"data-slot":"accordion","data-tracking-el":o,"data-tracking-label":n,defaultValue:e.defaultValue,dir:c,disabled:r,orientation:u,type:"multiple",value:e.value,onValueChange:e.onValueChange,children:f})});b.displayName="Accordion";const k=l.forwardRef(({className:e,dataHook:t,trackingEl:a,trackingLabel:o,...n},r)=>i.jsx(d.Item,{ref:r,className:s.cn("border-b last:border-b-0",e),"data-hook":t,"data-slot":"accordion-item","data-tracking-el":a,"data-tracking-label":o,...n}));k.displayName="AccordionItem";const h=l.forwardRef(({className:e,children:t,dataHook:a,trackingEl:o,trackingLabel:n,...r},c)=>i.jsx(d.Header,{className:"flex",children:i.jsxs(d.Trigger,{ref:c,className:s.cn("focus-visible:border-ring focus-visible:shadow-default duration-fast text-label flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left transition-shadow ease-out outline-none hover:underline disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),"data-hook":a,"data-slot":"accordion-trigger","data-tracking-el":o,"data-tracking-label":n,...r,children:[t,i.jsx(j.ChevronDown,{className:"text-muted-foreground duration-base pointer-events-none shrink-0 translate-y-0.5 transition-transform ease-in-out"})]})}));h.displayName="AccordionTrigger";const v=l.forwardRef(({className:e,children:t,dataHook:a,trackingEl:o,trackingLabel:n,...r},c)=>i.jsx(d.Content,{ref:c,className:"text-body-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden","data-hook":a,"data-slot":"accordion-content","data-tracking-el":o,"data-tracking-label":n,...r,children:i.jsx("div",{className:s.cn("pt-0 pb-4",e),children:t})}));v.displayName="AccordionContent";exports.Accordion=b;exports.AccordionContent=v;exports.AccordionItem=k;exports.AccordionTrigger=h;
|
package/dist/accordion.d.ts
CHANGED
|
@@ -54,6 +54,18 @@ export interface AccordionItemProps extends React.ComponentProps<typeof Accordio
|
|
|
54
54
|
* A unique value for the item (REQUIRED)
|
|
55
55
|
*/
|
|
56
56
|
value: string;
|
|
57
|
+
/**
|
|
58
|
+
* Data hook for automated testing
|
|
59
|
+
*/
|
|
60
|
+
dataHook?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Tracking element identifier for analytics
|
|
63
|
+
*/
|
|
64
|
+
trackingEl?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Tracking label for analytics context
|
|
67
|
+
*/
|
|
68
|
+
trackingLabel?: string;
|
|
57
69
|
/**
|
|
58
70
|
* Whether the accordion item is disabled
|
|
59
71
|
*/
|
|
@@ -81,6 +93,18 @@ export interface AccordionTriggerProps extends React.ComponentProps<typeof Accor
|
|
|
81
93
|
* Whether the trigger is disabled
|
|
82
94
|
*/
|
|
83
95
|
disabled?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Data hook for automated testing
|
|
98
|
+
*/
|
|
99
|
+
dataHook?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Tracking element identifier for analytics
|
|
102
|
+
*/
|
|
103
|
+
trackingEl?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Tracking label for analytics context
|
|
106
|
+
*/
|
|
107
|
+
trackingLabel?: string;
|
|
84
108
|
}
|
|
85
109
|
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
86
110
|
export interface AccordionContentProps extends React.ComponentProps<typeof AccordionPrimitive.Content> {
|
|
@@ -96,6 +120,18 @@ export interface AccordionContentProps extends React.ComponentProps<typeof Accor
|
|
|
96
120
|
* Force mounting of the content when true
|
|
97
121
|
*/
|
|
98
122
|
forceMount?: true;
|
|
123
|
+
/**
|
|
124
|
+
* Data hook for automated testing
|
|
125
|
+
*/
|
|
126
|
+
dataHook?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Tracking element identifier for analytics
|
|
129
|
+
*/
|
|
130
|
+
trackingEl?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Tracking label for analytics context
|
|
133
|
+
*/
|
|
134
|
+
trackingLabel?: string;
|
|
99
135
|
}
|
|
100
136
|
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
101
137
|
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
package/dist/accordion.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../src/components/accordion.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAKhE,UAAU,kBAAkB;IAC1B;;OAEG;IACH,QAAQ,EAAE,MAA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ClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,gBAAgB,2GAoBrB,CAAC;AAIF,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC"}
|
package/dist/accordion.js
CHANGED
|
@@ -1,102 +1,115 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import * as l from "@radix-ui/react-accordion";
|
|
4
4
|
import { ChevronDown as b } from "@brightlocal/icons";
|
|
5
|
-
import { cn as
|
|
6
|
-
const h =
|
|
5
|
+
import { cn as s } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
+
const h = c.forwardRef(
|
|
7
7
|
(a, e) => {
|
|
8
8
|
const {
|
|
9
9
|
dataHook: t,
|
|
10
|
-
trackingEl:
|
|
11
|
-
trackingLabel:
|
|
12
|
-
disabled:
|
|
13
|
-
dir:
|
|
10
|
+
trackingEl: o,
|
|
11
|
+
trackingLabel: n,
|
|
12
|
+
disabled: i,
|
|
13
|
+
dir: r,
|
|
14
14
|
orientation: m,
|
|
15
15
|
className: u,
|
|
16
|
-
children:
|
|
16
|
+
children: g
|
|
17
17
|
} = a;
|
|
18
|
-
return a.type === "single" ? /* @__PURE__ */
|
|
19
|
-
|
|
18
|
+
return a.type === "single" ? /* @__PURE__ */ d(
|
|
19
|
+
l.Root,
|
|
20
20
|
{
|
|
21
21
|
ref: e,
|
|
22
22
|
className: u,
|
|
23
23
|
collapsible: a.collapsible,
|
|
24
24
|
"data-hook": t,
|
|
25
25
|
"data-slot": "accordion",
|
|
26
|
-
"data-tracking-el":
|
|
27
|
-
"data-tracking-label":
|
|
26
|
+
"data-tracking-el": o,
|
|
27
|
+
"data-tracking-label": n,
|
|
28
28
|
defaultValue: a.defaultValue,
|
|
29
|
-
dir:
|
|
30
|
-
disabled:
|
|
29
|
+
dir: r,
|
|
30
|
+
disabled: i,
|
|
31
31
|
orientation: m,
|
|
32
32
|
type: "single",
|
|
33
33
|
value: a.value,
|
|
34
34
|
onValueChange: a.onValueChange,
|
|
35
|
-
children:
|
|
35
|
+
children: g
|
|
36
36
|
}
|
|
37
|
-
) : /* @__PURE__ */
|
|
38
|
-
|
|
37
|
+
) : /* @__PURE__ */ d(
|
|
38
|
+
l.Root,
|
|
39
39
|
{
|
|
40
40
|
ref: e,
|
|
41
41
|
className: u,
|
|
42
42
|
"data-hook": t,
|
|
43
43
|
"data-slot": "accordion",
|
|
44
|
-
"data-tracking-el":
|
|
45
|
-
"data-tracking-label":
|
|
44
|
+
"data-tracking-el": o,
|
|
45
|
+
"data-tracking-label": n,
|
|
46
46
|
defaultValue: a.defaultValue,
|
|
47
|
-
dir:
|
|
48
|
-
disabled:
|
|
47
|
+
dir: r,
|
|
48
|
+
disabled: i,
|
|
49
49
|
orientation: m,
|
|
50
50
|
type: "multiple",
|
|
51
51
|
value: a.value,
|
|
52
52
|
onValueChange: a.onValueChange,
|
|
53
|
-
children:
|
|
53
|
+
children: g
|
|
54
54
|
}
|
|
55
55
|
);
|
|
56
56
|
}
|
|
57
57
|
);
|
|
58
58
|
h.displayName = "Accordion";
|
|
59
|
-
const
|
|
60
|
-
|
|
59
|
+
const k = c.forwardRef(({ className: a, dataHook: e, trackingEl: t, trackingLabel: o, ...n }, i) => /* @__PURE__ */ d(
|
|
60
|
+
l.Item,
|
|
61
61
|
{
|
|
62
|
-
ref:
|
|
63
|
-
className:
|
|
62
|
+
ref: i,
|
|
63
|
+
className: s("border-b last:border-b-0", a),
|
|
64
|
+
"data-hook": e,
|
|
64
65
|
"data-slot": "accordion-item",
|
|
65
|
-
|
|
66
|
+
"data-tracking-el": t,
|
|
67
|
+
"data-tracking-label": o,
|
|
68
|
+
...n
|
|
66
69
|
}
|
|
67
70
|
));
|
|
68
|
-
|
|
69
|
-
const
|
|
70
|
-
i.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
y.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
71
|
+
k.displayName = "AccordionItem";
|
|
72
|
+
const v = c.forwardRef(
|
|
73
|
+
({ className: a, children: e, dataHook: t, trackingEl: o, trackingLabel: n, ...i }, r) => /* @__PURE__ */ d(l.Header, { className: "flex", children: /* @__PURE__ */ f(
|
|
74
|
+
l.Trigger,
|
|
75
|
+
{
|
|
76
|
+
ref: r,
|
|
77
|
+
className: s(
|
|
78
|
+
"focus-visible:border-ring focus-visible:shadow-default duration-fast text-label flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left transition-shadow ease-out outline-none hover:underline disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
79
|
+
a
|
|
80
|
+
),
|
|
81
|
+
"data-hook": t,
|
|
82
|
+
"data-slot": "accordion-trigger",
|
|
83
|
+
"data-tracking-el": o,
|
|
84
|
+
"data-tracking-label": n,
|
|
85
|
+
...i,
|
|
86
|
+
children: [
|
|
87
|
+
e,
|
|
88
|
+
/* @__PURE__ */ d(b, { className: "text-muted-foreground duration-base pointer-events-none shrink-0 translate-y-0.5 transition-transform ease-in-out" })
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
) })
|
|
92
|
+
);
|
|
93
|
+
v.displayName = "AccordionTrigger";
|
|
94
|
+
const y = c.forwardRef(
|
|
95
|
+
({ className: a, children: e, dataHook: t, trackingEl: o, trackingLabel: n, ...i }, r) => /* @__PURE__ */ d(
|
|
96
|
+
l.Content,
|
|
97
|
+
{
|
|
98
|
+
ref: r,
|
|
99
|
+
className: "text-body-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden",
|
|
100
|
+
"data-hook": t,
|
|
101
|
+
"data-slot": "accordion-content",
|
|
102
|
+
"data-tracking-el": o,
|
|
103
|
+
"data-tracking-label": n,
|
|
104
|
+
...i,
|
|
105
|
+
children: /* @__PURE__ */ d("div", { className: s("pt-0 pb-4", a), children: e })
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
);
|
|
109
|
+
y.displayName = "AccordionContent";
|
|
97
110
|
export {
|
|
98
111
|
h as Accordion,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
112
|
+
y as AccordionContent,
|
|
113
|
+
k as AccordionItem,
|
|
114
|
+
v as AccordionTrigger
|
|
102
115
|
};
|
package/dist/alert-dialog.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),N=require("react"),b=require("@radix-ui/react-alert-dialog"),s=require("@brightlocal/ui-components/lib/utils"),w=require("@brightlocal/ui-components/hooks/use-overlay-pointer-lock"),c=require("@brightlocal/ui-components/button");function g(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),N=require("react"),b=require("@radix-ui/react-alert-dialog"),s=require("@brightlocal/ui-components/lib/utils"),w=require("@brightlocal/ui-components/hooks/use-overlay-pointer-lock"),c=require("@brightlocal/ui-components/button");function g(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const l=g(N),r=g(b);function u({dataHook:e,trackingEl:t,trackingLabel:a,...i}){return o.jsx(r.Root,{"data-hook":e,"data-slot":"alert-dialog","data-tracking-el":t,"data-tracking-label":a,...i})}u.displayName="AlertDialog";const f=l.forwardRef((e,t)=>o.jsx(r.Trigger,{ref:t,"data-slot":"alert-dialog-trigger",...e}));f.displayName="AlertDialogTrigger";function n({...e}){return o.jsx(r.Portal,{...e})}n.displayName="AlertDialogPortal";const d=l.forwardRef(({className:e,...t},a)=>o.jsx(r.Overlay,{ref:a,className:s.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=open]:duration-slow fixed inset-0 z-50 bg-black/50 ease-out data-[state=closed]:duration-250 data-[state=closed]:ease-in",e),"data-slot":"alert-dialog-overlay",...t}));d.displayName="AlertDialogOverlay";const m=l.forwardRef(({className:e,...t},a)=>(w.useOverlayPointerLock(),o.jsxs(n,{children:[o.jsx(d,{}),o.jsx(r.Content,{ref:a,className:s.cn("border-border bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=open]:duration-slow fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg ease-out data-[state=closed]:duration-250 data-[state=closed]:ease-in sm:max-w-lg",e),"data-slot":"alert-dialog-content",...t})]})));m.displayName="AlertDialogContent";const D=l.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:s.cn("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"alert-dialog-header",...t}));D.displayName="AlertDialogHeader";const A=l.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:s.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"alert-dialog-footer",...t}));A.displayName="AlertDialogFooter";const p=l.forwardRef(({className:e,dataHook:t,...a},i)=>o.jsx(r.Title,{ref:i,className:s.cn("text-heading-section",e),"data-hook":t,"data-slot":"alert-dialog-title",...a}));p.displayName="AlertDialogTitle";const x=l.forwardRef(({className:e,dataHook:t,...a},i)=>o.jsx(r.Description,{ref:i,className:s.cn("text-body-sm text-muted-foreground",e),"data-hook":t,"data-slot":"alert-dialog-description",...a}));x.displayName="AlertDialogDescription";const y=l.forwardRef(({className:e,...t},a)=>o.jsx(r.Action,{ref:a,className:s.cn(c.ButtonVariants(),e),"data-slot":"alert-dialog-action",...t}));y.displayName="AlertDialogAction";const j=l.forwardRef(({className:e,...t},a)=>o.jsx(r.Cancel,{ref:a,className:s.cn(c.ButtonVariants({variant:"outline"}),e),"data-slot":"alert-dialog-cancel",...t}));j.displayName="AlertDialogCancel";exports.AlertDialog=u;exports.AlertDialogAction=y;exports.AlertDialogCancel=j;exports.AlertDialogContent=m;exports.AlertDialogDescription=x;exports.AlertDialogFooter=A;exports.AlertDialogHeader=D;exports.AlertDialogOverlay=d;exports.AlertDialogPortal=n;exports.AlertDialogTitle=p;exports.AlertDialogTrigger=f;
|