@brightlocal/ui-components 2.26.0 → 3.0.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 +9 -2
- package/component-meta.json +4010 -255
- package/deprecations.json +189 -2
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.js +2 -2
- 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 +155 -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-state.d.ts +121 -0
- package/dist/blocks/progress-state.d.ts.map +1 -0
- package/dist/blocks/progress-state.js +368 -0
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +297 -296
- package/dist/brand-illustration-motif.d.ts +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.d.ts.map +1 -1
- package/dist/breadcrumb.js +44 -40
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +23 -23
- 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 +23 -2
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +94 -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 +6 -1
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +183 -183
- package/dist/chip.cjs +1 -1
- package/dist/chip.d.ts +1 -1
- package/dist/chip.d.ts.map +1 -1
- package/dist/chip.js +47 -44
- package/dist/combobox.cjs +3 -3
- package/dist/combobox.d.ts +4 -2
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +143 -141
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +74 -77
- 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 +182 -13
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +462 -314
- 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.map +1 -1
- package/dist/field.js +29 -25
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +58 -6
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +278 -194
- 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/hover-card.cjs +1 -1
- package/dist/hover-card.js +13 -13
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +523 -494
- 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.js +51 -51
- 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/motion.cjs +1 -1
- package/dist/lib/motion.js +10 -8
- 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/link.cjs +1 -1
- package/dist/link.d.ts +8 -6
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +52 -20
- package/dist/list.cjs +1 -1
- package/dist/list.d.ts.map +1 -1
- package/dist/list.js +87 -81
- 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 +127 -1
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +189 -98
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +37 -3
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +102 -64
- package/dist/route-progress.cjs +1 -0
- package/dist/route-progress.d.ts +103 -0
- package/dist/route-progress.d.ts.map +1 -0
- package/dist/route-progress.js +106 -0
- package/dist/select.cjs +2 -2
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +19 -18
- package/dist/separator.cjs +1 -1
- package/dist/separator.js +8 -8
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +35 -2
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +103 -66
- 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.d.ts.map +1 -1
- package/dist/sonner.js +32 -36
- package/dist/spinner.cjs +1 -0
- package/dist/spinner.d.ts +57 -0
- package/dist/spinner.d.ts.map +1 -0
- package/dist/spinner.js +35 -0
- package/dist/stepper.cjs +1 -1
- package/dist/stepper.d.ts.map +1 -1
- package/dist/stepper.js +23 -22
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +1 -1
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +36 -29
- 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 +116 -0
- package/dist/typography-heading.d.ts.map +1 -0
- package/dist/typography-heading.js +84 -0
- package/dist/typography-text.cjs +1 -0
- package/dist/typography-text.d.ts +113 -0
- package/dist/typography-text.d.ts.map +1 -0
- package/dist/typography-text.js +81 -0
- package/dist/typography.d.ts +13 -0
- package/dist/typography.d.ts.map +1 -1
- package/package.json +42 -2
- package/src/blocks/empty-state.tsx +424 -0
- package/src/blocks/input-list.tsx +66 -36
- package/src/blocks/progress-state.tsx +542 -0
- package/src/blocks/sidebar.tsx +46 -40
- package/src/components/accordion.tsx +2 -2
- 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 +9 -4
- package/src/components/button.tsx +5 -8
- package/src/components/calendar.tsx +5 -6
- package/src/components/callout.tsx +48 -15
- package/src/components/card.tsx +52 -17
- package/src/components/chart-empty.tsx +116 -0
- package/src/components/chart.tsx +43 -17
- package/src/components/chip.tsx +9 -6
- package/src/components/combobox.tsx +21 -12
- package/src/components/command.tsx +9 -10
- package/src/components/context-menu.tsx +6 -9
- package/src/components/data-table.tsx +405 -31
- 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 +8 -4
- package/src/components/global-layout.tsx +264 -65
- 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 +1 -1
- package/src/components/input.tsx +1 -1
- package/src/components/label.tsx +10 -13
- package/src/components/link.tsx +39 -5
- package/src/components/list.tsx +18 -14
- 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 +279 -1
- package/src/components/progress.tsx +120 -11
- package/src/components/route-progress.tsx +354 -0
- package/src/components/select.tsx +5 -4
- package/src/components/separator.tsx +1 -1
- package/src/components/sheet.tsx +89 -7
- package/src/components/skeleton.tsx +78 -7
- package/src/components/sonner.tsx +5 -14
- package/src/components/spinner.tsx +94 -0
- package/src/components/stepper.tsx +6 -7
- package/src/components/table.tsx +11 -4
- 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 +229 -0
- package/src/components/typography-text.tsx +225 -0
- package/src/components/typography.tsx +13 -0
- package/src/hooks/use-delayed-pending.ts +60 -0
- package/src/index.ts +12 -0
- package/src/lib/block-illustration.tsx +88 -0
- package/src/lib/empty-canvas.tsx +128 -0
- package/src/lib/optical-center.tsx +45 -0
- package/src/lib/utils.ts +26 -0
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
|
{
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"type": "type",
|
|
195
195
|
"since": "2.24.0",
|
|
196
196
|
"reason": "Paired with the deprecated TableCaption component",
|
|
197
|
-
"replacement": "None
|
|
197
|
+
"replacement": "None \u2014 remove the import",
|
|
198
198
|
"ticket": "DS-779"
|
|
199
199
|
},
|
|
200
200
|
{
|
|
@@ -207,5 +207,192 @@
|
|
|
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 \u2014 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 \u2014 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"
|
|
210
397
|
}
|
|
211
398
|
]
|
package/dist/accordion.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),x=require("react"),j=require("@radix-ui/react-accordion"),A=require("@brightlocal/icons"),c=require("@brightlocal/ui-components/lib/utils");function m(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const i=m(x),r=m(j),b=i.forwardRef((e,a)=>{const{dataHook:t,trackingEl:o,trackingLabel:d,disabled:l,dir:s,orientation:u,className:f,children:g}=e;return e.type==="single"?n.jsx(r.Root,{ref:a,className:f,collapsible:e.collapsible,"data-hook":t,"data-slot":"accordion","data-tracking-el":o,"data-tracking-label":d,defaultValue:e.defaultValue,dir:s,disabled:l,orientation:u,type:"single",value:e.value,onValueChange:e.onValueChange,children:g}):n.jsx(r.Root,{ref:a,className:f,"data-hook":t,"data-slot":"accordion","data-tracking-el":o,"data-tracking-label":d,defaultValue:e.defaultValue,dir:s,disabled:l,orientation:u,type:"multiple",value:e.value,onValueChange:e.onValueChange,children:g})});b.displayName="Accordion";const v=i.forwardRef(({className:e,...a},t)=>n.jsx(r.Item,{ref:t,className:c.cn("border-b last:border-b-0",e),"data-slot":"accordion-item",...a}));v.displayName="AccordionItem";const y=i.forwardRef(({className:e,children:a,...t},o)=>n.jsx(r.Header,{className:"flex",children:n.jsxs(r.Trigger,{ref:o,className:c.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-slot":"accordion-trigger",...t,children:[a,n.jsx(A.ChevronDown,{className:"text-muted-foreground duration-base pointer-events-none shrink-0 translate-y-0.5 transition-transform ease-in-out"})]})}));y.displayName="AccordionTrigger";const h=i.forwardRef(({className:e,children:a,...t},o)=>n.jsx(r.Content,{ref:o,className:"text-body-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden","data-slot":"accordion-content",...t,children:n.jsx("div",{className:c.cn("pt-0 pb-4",e),children:a})}));h.displayName="AccordionContent";exports.Accordion=b;exports.AccordionContent=h;exports.AccordionItem=v;exports.AccordionTrigger=y;
|
package/dist/accordion.js
CHANGED
|
@@ -71,7 +71,7 @@ const y = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__
|
|
|
71
71
|
{
|
|
72
72
|
ref: n,
|
|
73
73
|
className: d(
|
|
74
|
-
"focus-visible:border-ring focus-visible:shadow-default duration-fast flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left
|
|
74
|
+
"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",
|
|
75
75
|
a
|
|
76
76
|
),
|
|
77
77
|
"data-slot": "accordion-trigger",
|
|
@@ -87,7 +87,7 @@ const N = r.forwardRef(({ className: a, children: e, ...t }, n) => /* @__PURE__
|
|
|
87
87
|
i.Content,
|
|
88
88
|
{
|
|
89
89
|
ref: n,
|
|
90
|
-
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden
|
|
90
|
+
className: "text-body-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden",
|
|
91
91
|
"data-slot": "accordion-content",
|
|
92
92
|
...t,
|
|
93
93
|
children: /* @__PURE__ */ o("div", { className: d("pt-0 pb-4", a), children: e })
|
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;
|
package/dist/alert-dialog.js
CHANGED
|
@@ -3,12 +3,12 @@ import * as l from "react";
|
|
|
3
3
|
import * as r from "@radix-ui/react-alert-dialog";
|
|
4
4
|
import { cn as i } from "@brightlocal/ui-components/lib/utils";
|
|
5
5
|
import { useOverlayPointerLock as m } from "@brightlocal/ui-components/hooks/use-overlay-pointer-lock";
|
|
6
|
-
import { ButtonVariants as
|
|
6
|
+
import { ButtonVariants as s } from "@brightlocal/ui-components/button";
|
|
7
7
|
function f({
|
|
8
8
|
dataHook: a,
|
|
9
9
|
trackingEl: t,
|
|
10
10
|
trackingLabel: e,
|
|
11
|
-
...
|
|
11
|
+
...d
|
|
12
12
|
}) {
|
|
13
13
|
return /* @__PURE__ */ o(
|
|
14
14
|
r.Root,
|
|
@@ -17,7 +17,7 @@ function f({
|
|
|
17
17
|
"data-slot": "alert-dialog",
|
|
18
18
|
"data-tracking-el": t,
|
|
19
19
|
"data-tracking-label": e,
|
|
20
|
-
...
|
|
20
|
+
...d
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
23
|
}
|
|
@@ -89,43 +89,43 @@ const u = l.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o(
|
|
|
89
89
|
}
|
|
90
90
|
));
|
|
91
91
|
u.displayName = "AlertDialogFooter";
|
|
92
|
-
const
|
|
92
|
+
const y = l.forwardRef(({ className: a, dataHook: t, ...e }, d) => /* @__PURE__ */ o(
|
|
93
93
|
r.Title,
|
|
94
94
|
{
|
|
95
|
-
ref:
|
|
96
|
-
className: i("text-
|
|
95
|
+
ref: d,
|
|
96
|
+
className: i("text-heading-section", a),
|
|
97
97
|
"data-hook": t,
|
|
98
98
|
"data-slot": "alert-dialog-title",
|
|
99
99
|
...e
|
|
100
100
|
}
|
|
101
101
|
));
|
|
102
|
-
|
|
103
|
-
const
|
|
102
|
+
y.displayName = "AlertDialogTitle";
|
|
103
|
+
const N = l.forwardRef(({ className: a, dataHook: t, ...e }, d) => /* @__PURE__ */ o(
|
|
104
104
|
r.Description,
|
|
105
105
|
{
|
|
106
|
-
ref:
|
|
107
|
-
className: i("text-
|
|
106
|
+
ref: d,
|
|
107
|
+
className: i("text-body-sm text-muted-foreground", a),
|
|
108
108
|
"data-hook": t,
|
|
109
109
|
"data-slot": "alert-dialog-description",
|
|
110
110
|
...e
|
|
111
111
|
}
|
|
112
112
|
));
|
|
113
|
-
|
|
114
|
-
const
|
|
113
|
+
N.displayName = "AlertDialogDescription";
|
|
114
|
+
const x = l.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o(
|
|
115
115
|
r.Action,
|
|
116
116
|
{
|
|
117
117
|
ref: e,
|
|
118
|
-
className: i(
|
|
118
|
+
className: i(s(), a),
|
|
119
119
|
"data-slot": "alert-dialog-action",
|
|
120
120
|
...t
|
|
121
121
|
}
|
|
122
122
|
));
|
|
123
|
-
|
|
123
|
+
x.displayName = "AlertDialogAction";
|
|
124
124
|
const w = l.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o(
|
|
125
125
|
r.Cancel,
|
|
126
126
|
{
|
|
127
127
|
ref: e,
|
|
128
|
-
className: i(
|
|
128
|
+
className: i(s({ variant: "outline" }), a),
|
|
129
129
|
"data-slot": "alert-dialog-cancel",
|
|
130
130
|
...t
|
|
131
131
|
}
|
|
@@ -133,14 +133,14 @@ const w = l.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ o(
|
|
|
133
133
|
w.displayName = "AlertDialogCancel";
|
|
134
134
|
export {
|
|
135
135
|
f as AlertDialog,
|
|
136
|
-
|
|
136
|
+
x as AlertDialogAction,
|
|
137
137
|
w as AlertDialogCancel,
|
|
138
138
|
A as AlertDialogContent,
|
|
139
|
-
|
|
139
|
+
N as AlertDialogDescription,
|
|
140
140
|
u as AlertDialogFooter,
|
|
141
141
|
D as AlertDialogHeader,
|
|
142
142
|
c as AlertDialogOverlay,
|
|
143
143
|
n as AlertDialogPortal,
|
|
144
|
-
|
|
144
|
+
y as AlertDialogTitle,
|
|
145
145
|
p as AlertDialogTrigger
|
|
146
146
|
};
|
package/dist/alert.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),h=require("@radix-ui/react-slot"),j=require("class-variance-authority"),u=require("@brightlocal/icons"),i=require("@brightlocal/ui-components/lib/utils");function v(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const x=v(m),g=j.cva("relative w-full rounded-lg px-4 py-3 flex gap-3 items-start",{variants:{variant:{default:"bg-muted text-foreground",success:"bg-success-background text-success-foreground",info:"bg-info-background text-info-foreground",destructive:"bg-destructive text-destructive-foreground",warning:"bg-warning-background text-warning-foreground"}},defaultVariants:{variant:"default"}}),d=x.forwardRef(({className:t,variant:r,...a},s)=>e.jsx("div",{ref:s,className:i.cn(g({variant:r}),t),"data-slot":"alert","data-tracking-el":`alert-${r}`,role:"alert",...a}));d.displayName="Alert";const o=x.forwardRef(({className:t,asChild:r=!1,...a},s)=>{const l=r?h.Slot:"div";return e.jsx(l,{ref:s,className:i.cn("text-heading-compact break-words",t),"data-slot":"alert-title",...a})});o.displayName="AlertTitle";const f=x.forwardRef(({className:t,...r},a)=>e.jsx("div",{ref:a,className:i.cn("text-body-sm [&_p]:leading-5",t),"data-slot":"alert-description",...r}));f.displayName="AlertDescription";function k({title:t,description:r,action:a,className:s,dataHook:l,trackingEl:n,trackingLabel:c}){return e.jsxs(d,{className:i.cn("items-center",s),"data-hook":l,"data-tracking-el":n,"data-tracking-label":c,variant:"success",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-3",children:[e.jsx(u.CircleCheck,{className:"text-success-foreground shrink-0 translate-y-0.5"}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[t&&e.jsx(o,{children:t}),r!=null&&e.jsx(f,{children:r})]})]}),a&&e.jsx("div",{className:"shrink-0 self-center",children:a})]})}function N({title:t,description:r,action:a,className:s,dataHook:l,trackingEl:n,trackingLabel:c}){return e.jsxs(d,{className:i.cn("items-center",s),"data-hook":l,"data-tracking-el":n,"data-tracking-label":c,variant:"info",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-3",children:[e.jsx(u.Info,{className:"text-info-foreground shrink-0 translate-y-0.5"}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[t&&e.jsx(o,{children:t}),r!=null&&e.jsx(f,{children:r})]})]}),a&&e.jsx("div",{className:"shrink-0 self-center",children:a})]})}function p({title:t,description:r,action:a,className:s,dataHook:l,trackingEl:n,trackingLabel:c}){return e.jsxs(d,{className:i.cn("items-center",s),"data-hook":l,"data-tracking-el":n,"data-tracking-label":c,variant:"destructive",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-3",children:[e.jsx(u.CircleX,{className:"text-destructive-foreground shrink-0 translate-y-0.5"}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[t&&e.jsx(o,{children:t}),r!=null&&e.jsx(f,{children:r})]})]}),a&&e.jsx("div",{className:"shrink-0 self-center",children:a})]})}function b({title:t,description:r,action:a,className:s,dataHook:l,trackingEl:n,trackingLabel:c}){return e.jsxs(d,{className:i.cn("items-center",s),"data-hook":l,"data-tracking-el":n,"data-tracking-label":c,variant:"warning",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-start gap-3",children:[e.jsx(u.TriangleAlert,{className:"text-warning-foreground shrink-0 translate-y-0.5"}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[t&&e.jsx(o,{children:t}),r!=null&&e.jsx(f,{children:r})]})]}),a&&e.jsx("div",{className:"shrink-0 self-center",children:a})]})}exports.Alert=d;exports.AlertDescription=f;exports.AlertDestructive=p;exports.AlertInfo=N;exports.AlertSuccess=k;exports.AlertTitle=o;exports.AlertWarning=b;exports.alertVariants=g;
|
package/dist/alert.d.ts
CHANGED
|
@@ -6,7 +6,16 @@ declare const alertVariants: (props?: ({
|
|
|
6
6
|
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
7
7
|
variant?: "default" | "info" | "success" | "destructive" | "warning" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
|
|
9
|
+
interface AlertTitleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
10
|
+
/**
|
|
11
|
+
* Render the title as its child element (e.g. an `h2`–`h6`) so consumers
|
|
12
|
+
* can opt the alert title into the document outline at the level their
|
|
13
|
+
* page calls for.
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
asChild?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare const AlertTitle: React.ForwardRefExoticComponent<AlertTitleProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
19
|
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
11
20
|
interface AlertContentBaseProps {
|
|
12
21
|
/**
|
|
@@ -57,4 +66,5 @@ declare function AlertInfo({ title, description, action, className, dataHook, tr
|
|
|
57
66
|
declare function AlertDestructive({ title, description, action, className, dataHook, trackingEl, trackingLabel, }: AlertContentProps): import("react/jsx-runtime").JSX.Element;
|
|
58
67
|
declare function AlertWarning({ title, description, action, className, dataHook, trackingEl, trackingLabel, }: AlertContentProps): import("react/jsx-runtime").JSX.Element;
|
|
59
68
|
export { Alert, AlertTitle, AlertDescription, alertVariants, AlertSuccess, AlertInfo, AlertDestructive, AlertWarning, };
|
|
69
|
+
export type { AlertTitleProps };
|
|
60
70
|
//# sourceMappingURL=alert.d.ts.map
|
package/dist/alert.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/components/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/components/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,aAAa;;8EAgBlB,CAAC;AAEF,QAAA,MAAM,KAAK;;sHAYT,CAAC;AAGH,UAAU,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACpE;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,UAAU,wFAYf,CAAC;AAGF,QAAA,MAAM,gBAAgB,6GAUpB,CAAC;AAGH,UAAU,qBAAqB;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,KAAK,iBAAiB,GAAG,qBAAqB,GAC5C,CACI;IACE;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B,GACD;IACE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B,CACJ,CAAC;AAEJ,iBAAS,YAAY,CAAC,EACpB,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,EACT,QAAQ,EACR,UAAU,EACV,aAAa,GACd,EAAE,iBAAiB,2CAqBnB;AAED,iBAAS,SAAS,CAAC,EACjB,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,EACT,QAAQ,EACR,UAAU,EACV,aAAa,GACd,EAAE,iBAAiB,2CAqBnB;AAED,iBAAS,gBAAgB,CAAC,EACxB,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,EACT,QAAQ,EACR,UAAU,EACV,aAAa,GACd,EAAE,iBAAiB,2CAqBnB;AAED,iBAAS,YAAY,CAAC,EACpB,KAAK,EACL,WAAW,EACX,MAAM,EACN,SAAS,EACT,QAAQ,EACR,UAAU,EACV,aAAa,GACd,EAAE,iBAAiB,2CAqBnB;AAED,OAAO,EACL,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,YAAY,GACb,CAAC;AACF,YAAY,EAAE,eAAe,EAAE,CAAC"}
|
package/dist/alert.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Slot as u } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as h } from "class-variance-authority";
|
|
5
|
+
import { CircleX as x, Info as v, CircleCheck as k, TriangleAlert as N } from "@brightlocal/icons";
|
|
5
6
|
import { cn as d } from "@brightlocal/ui-components/lib/utils";
|
|
6
|
-
const
|
|
7
|
-
"relative w-full rounded-lg px-4 py-3
|
|
7
|
+
const p = h(
|
|
8
|
+
"relative w-full rounded-lg px-4 py-3 flex gap-3 items-start",
|
|
8
9
|
{
|
|
9
10
|
variants: {
|
|
10
11
|
variant: {
|
|
@@ -23,7 +24,7 @@ const N = u(
|
|
|
23
24
|
"div",
|
|
24
25
|
{
|
|
25
26
|
ref: n,
|
|
26
|
-
className: d(
|
|
27
|
+
className: d(p({ variant: a }), r),
|
|
27
28
|
"data-slot": "alert",
|
|
28
29
|
"data-tracking-el": `alert-${a}`,
|
|
29
30
|
role: "alert",
|
|
@@ -31,27 +32,29 @@ const N = u(
|
|
|
31
32
|
}
|
|
32
33
|
));
|
|
33
34
|
o.displayName = "Alert";
|
|
34
|
-
const f = g.forwardRef(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
const f = g.forwardRef(
|
|
36
|
+
({ className: r, asChild: a = !1, ...t }, n) => /* @__PURE__ */ e(
|
|
37
|
+
a ? u : "div",
|
|
38
|
+
{
|
|
39
|
+
ref: n,
|
|
40
|
+
className: d("text-heading-compact break-words", r),
|
|
41
|
+
"data-slot": "alert-title",
|
|
42
|
+
...t
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
);
|
|
43
46
|
f.displayName = "AlertTitle";
|
|
44
47
|
const m = g.forwardRef(({ className: r, ...a }, t) => /* @__PURE__ */ e(
|
|
45
48
|
"div",
|
|
46
49
|
{
|
|
47
50
|
ref: t,
|
|
48
|
-
className: d("text-sm
|
|
51
|
+
className: d("text-body-sm [&_p]:leading-5", r),
|
|
49
52
|
"data-slot": "alert-description",
|
|
50
53
|
...a
|
|
51
54
|
}
|
|
52
55
|
));
|
|
53
56
|
m.displayName = "AlertDescription";
|
|
54
|
-
function
|
|
57
|
+
function R({
|
|
55
58
|
title: r,
|
|
56
59
|
description: a,
|
|
57
60
|
action: t,
|
|
@@ -70,7 +73,7 @@ function y({
|
|
|
70
73
|
variant: "success",
|
|
71
74
|
children: [
|
|
72
75
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-start gap-3", children: [
|
|
73
|
-
/* @__PURE__ */ e(
|
|
76
|
+
/* @__PURE__ */ e(k, { className: "text-success-foreground shrink-0 translate-y-0.5" }),
|
|
74
77
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
75
78
|
r && /* @__PURE__ */ e(f, { children: r }),
|
|
76
79
|
a != null && /* @__PURE__ */ e(m, { children: a })
|
|
@@ -81,7 +84,7 @@ function y({
|
|
|
81
84
|
}
|
|
82
85
|
);
|
|
83
86
|
}
|
|
84
|
-
function
|
|
87
|
+
function D({
|
|
85
88
|
title: r,
|
|
86
89
|
description: a,
|
|
87
90
|
action: t,
|
|
@@ -100,7 +103,7 @@ function R({
|
|
|
100
103
|
variant: "info",
|
|
101
104
|
children: [
|
|
102
105
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-start gap-3", children: [
|
|
103
|
-
/* @__PURE__ */ e(
|
|
106
|
+
/* @__PURE__ */ e(v, { className: "text-info-foreground shrink-0 translate-y-0.5" }),
|
|
104
107
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
105
108
|
r && /* @__PURE__ */ e(f, { children: r }),
|
|
106
109
|
a != null && /* @__PURE__ */ e(m, { children: a })
|
|
@@ -111,7 +114,7 @@ function R({
|
|
|
111
114
|
}
|
|
112
115
|
);
|
|
113
116
|
}
|
|
114
|
-
function
|
|
117
|
+
function T({
|
|
115
118
|
title: r,
|
|
116
119
|
description: a,
|
|
117
120
|
action: t,
|
|
@@ -130,7 +133,7 @@ function C({
|
|
|
130
133
|
variant: "destructive",
|
|
131
134
|
children: [
|
|
132
135
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-start gap-3", children: [
|
|
133
|
-
/* @__PURE__ */ e(
|
|
136
|
+
/* @__PURE__ */ e(x, { className: "text-destructive-foreground shrink-0 translate-y-0.5" }),
|
|
134
137
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
135
138
|
r && /* @__PURE__ */ e(f, { children: r }),
|
|
136
139
|
a != null && /* @__PURE__ */ e(m, { children: a })
|
|
@@ -141,7 +144,7 @@ function C({
|
|
|
141
144
|
}
|
|
142
145
|
);
|
|
143
146
|
}
|
|
144
|
-
function
|
|
147
|
+
function j({
|
|
145
148
|
title: r,
|
|
146
149
|
description: a,
|
|
147
150
|
action: t,
|
|
@@ -160,7 +163,7 @@ function D({
|
|
|
160
163
|
variant: "warning",
|
|
161
164
|
children: [
|
|
162
165
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 items-start gap-3", children: [
|
|
163
|
-
/* @__PURE__ */ e(
|
|
166
|
+
/* @__PURE__ */ e(N, { className: "text-warning-foreground shrink-0 translate-y-0.5" }),
|
|
164
167
|
/* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
165
168
|
r && /* @__PURE__ */ e(f, { children: r }),
|
|
166
169
|
a != null && /* @__PURE__ */ e(m, { children: a })
|
|
@@ -174,10 +177,10 @@ function D({
|
|
|
174
177
|
export {
|
|
175
178
|
o as Alert,
|
|
176
179
|
m as AlertDescription,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
+
T as AlertDestructive,
|
|
181
|
+
D as AlertInfo,
|
|
182
|
+
R as AlertSuccess,
|
|
180
183
|
f as AlertTitle,
|
|
181
|
-
|
|
182
|
-
|
|
184
|
+
j as AlertWarning,
|
|
185
|
+
p as alertVariants
|
|
183
186
|
};
|
package/dist/avatar.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),v=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),v=require("react"),b=require("@radix-ui/react-avatar"),o=require("@brightlocal/ui-components/lib/utils");function n(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const e in a)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:()=>a[e]})}}return t.default=a,Object.freeze(t)}const c=n(v),l=n(b),i=c.forwardRef(({className:a,dataHook:t,trackingEl:e,trackingLabel:r,...f},m)=>s.jsx(l.Root,{ref:m,className:o.cn("relative flex size-10 shrink-0 overflow-hidden rounded-full",a),"data-hook":t,"data-slot":"avatar","data-tracking-el":e,"data-tracking-label":r,...f}));i.displayName=l.Root.displayName;const d=c.forwardRef(({className:a,...t},e)=>s.jsx(l.Image,{ref:e,className:o.cn("aspect-square size-full",a),"data-slot":"avatar-image",...t}));d.displayName="AvatarImage";const u=c.forwardRef(({className:a,...t},e)=>s.jsx(l.Fallback,{ref:e,className:o.cn("text-body-sm bg-muted text-foreground flex size-full items-center justify-center rounded-full",a),"data-slot":"avatar-fallback",...t}));u.displayName="AvatarFallback";exports.Avatar=i;exports.AvatarFallback=u;exports.AvatarImage=d;
|
package/dist/avatar.js
CHANGED
|
@@ -2,10 +2,10 @@ import { jsx as l } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import * as r from "@radix-ui/react-avatar";
|
|
4
4
|
import { cn as s } from "@brightlocal/ui-components/lib/utils";
|
|
5
|
-
const f = o.forwardRef(({ className: a, dataHook: t, trackingEl: e, trackingLabel: m, ...
|
|
5
|
+
const f = o.forwardRef(({ className: a, dataHook: t, trackingEl: e, trackingLabel: m, ...d }, i) => /* @__PURE__ */ l(
|
|
6
6
|
r.Root,
|
|
7
7
|
{
|
|
8
|
-
ref:
|
|
8
|
+
ref: i,
|
|
9
9
|
className: s(
|
|
10
10
|
"relative flex size-10 shrink-0 overflow-hidden rounded-full",
|
|
11
11
|
a
|
|
@@ -14,7 +14,7 @@ const f = o.forwardRef(({ className: a, dataHook: t, trackingEl: e, trackingLabe
|
|
|
14
14
|
"data-slot": "avatar",
|
|
15
15
|
"data-tracking-el": e,
|
|
16
16
|
"data-tracking-label": m,
|
|
17
|
-
...
|
|
17
|
+
...d
|
|
18
18
|
}
|
|
19
19
|
));
|
|
20
20
|
f.displayName = r.Root.displayName;
|
|
@@ -33,7 +33,7 @@ const n = o.forwardRef(({ className: a, ...t }, e) => /* @__PURE__ */ l(
|
|
|
33
33
|
{
|
|
34
34
|
ref: e,
|
|
35
35
|
className: s(
|
|
36
|
-
"bg-muted text-foreground flex size-full items-center justify-center rounded-full
|
|
36
|
+
"text-body-sm bg-muted text-foreground flex size-full items-center justify-center rounded-full",
|
|
37
37
|
a
|
|
38
38
|
),
|
|
39
39
|
"data-slot": "avatar-fallback",
|
package/dist/badge.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),g=require("react"),f=require("@radix-ui/react-slot"),p=require("class-variance-authority"),_=require("@brightlocal/ui-components/lib/utils");function v(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const m=v(g),x=p.cva(["inline-flex items-center justify-center gap-1 w-fit shrink-0 overflow-hidden","rounded-full border px-2 py-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),g=require("react"),f=require("@radix-ui/react-slot"),p=require("class-variance-authority"),_=require("@brightlocal/ui-components/lib/utils");function v(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const m=v(g),x=p.cva(["inline-flex items-center justify-center gap-1 w-fit shrink-0 overflow-hidden","rounded-full border px-2 py-0.5","text-label-sm whitespace-nowrap","[&>svg]:size-3 [&>svg]:pointer-events-none","transition-[color,background-color,border-color,box-shadow] duration-fast ease-out","focus-visible:outline-none","focus-visible:shadow-[0_0_0_1px_white,0_0_0_2px_var(--color-ring),0_0_0_4px_rgba(0,0,0,0.1)]","dark:focus-visible:shadow-[0_0_0_1px_var(--background),0_0_0_2px_var(--color-ring),0_0_0_4px_rgba(255,255,255,0.1)]","data-[number=true]:size-5 data-[number=true]:p-0 data-[number=true]:aspect-square"],{variants:{variant:{primary:"border-transparent bg-success-background text-success-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground focus-visible:border-ring",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"bg-background border-border text-foreground focus-visible:border-ring"}},defaultVariants:{variant:"primary"}}),n=m.forwardRef(({className:e,variant:t,asChild:r=!1,dataHook:a,trackingEl:s,trackingLabel:i,children:o,...c},u)=>{const d=r?f.Slot:"span",b=typeof o=="string"&&/^[0-9]$/.test(o);return l.jsx(d,{ref:u,className:_.cn(x({variant:t}),e),"data-hook":a,"data-number":b,"data-slot":"badge","data-tracking-el":s,"data-tracking-label":i,...c,children:o})});n.displayName="Badge";exports.Badge=n;
|
package/dist/badge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/components/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/components/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;8EAwClB,CAAC;AAEF;;GAEG;AACH,UAAU,UACR,SAAQ,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,OAAO,aAAa,CAAC;IACxE;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,QAAA,MAAM,KAAK,iGAmCV,CAAC;AAIF,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,YAAY,EAAE,UAAU,EAAE,CAAC"}
|