@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.
Files changed (289) hide show
  1. package/README.md +7 -1
  2. package/component-meta.json +568 -143
  3. package/deprecations.json +298 -1
  4. package/dist/accordion.cjs +1 -1
  5. package/dist/accordion.d.ts +36 -0
  6. package/dist/accordion.d.ts.map +1 -1
  7. package/dist/accordion.js +74 -61
  8. package/dist/alert-dialog.cjs +1 -1
  9. package/dist/alert-dialog.js +18 -18
  10. package/dist/alert.cjs +1 -1
  11. package/dist/alert.d.ts +11 -1
  12. package/dist/alert.d.ts.map +1 -1
  13. package/dist/alert.js +31 -28
  14. package/dist/avatar.cjs +1 -1
  15. package/dist/avatar.js +4 -4
  16. package/dist/badge.cjs +1 -1
  17. package/dist/badge.d.ts.map +1 -1
  18. package/dist/badge.js +15 -11
  19. package/dist/blocks/empty-state.cjs +1 -0
  20. package/dist/blocks/empty-state.d.ts +172 -0
  21. package/dist/blocks/empty-state.d.ts.map +1 -0
  22. package/dist/blocks/empty-state.js +147 -0
  23. package/dist/blocks/input-list.cjs +2 -2
  24. package/dist/blocks/input-list.d.ts.map +1 -1
  25. package/dist/blocks/input-list.js +124 -108
  26. package/dist/blocks/progress-state.cjs +1 -0
  27. package/dist/blocks/{progress-screen.d.ts → progress-state.d.ts} +30 -18
  28. package/dist/blocks/progress-state.d.ts.map +1 -0
  29. package/dist/blocks/{progress-screen.js → progress-state.js} +100 -71
  30. package/dist/blocks/sidebar.cjs +1 -1
  31. package/dist/blocks/sidebar.d.ts.map +1 -1
  32. package/dist/blocks/sidebar.js +160 -161
  33. package/dist/breadcrumb.cjs +1 -1
  34. package/dist/breadcrumb.js +1 -1
  35. package/dist/button-group.cjs +1 -0
  36. package/dist/button-group.d.ts +36 -0
  37. package/dist/button-group.d.ts.map +1 -0
  38. package/dist/button-group.js +47 -0
  39. package/dist/button.cjs +1 -1
  40. package/dist/button.js +12 -12
  41. package/dist/calendar.cjs +1 -1
  42. package/dist/calendar.d.ts.map +1 -1
  43. package/dist/calendar.js +37 -38
  44. package/dist/callout.cjs +1 -1
  45. package/dist/callout.d.ts +24 -2
  46. package/dist/callout.d.ts.map +1 -1
  47. package/dist/callout.js +57 -55
  48. package/dist/card.cjs +1 -1
  49. package/dist/card.d.ts +42 -3
  50. package/dist/card.d.ts.map +1 -1
  51. package/dist/card.js +102 -91
  52. package/dist/chart-empty.cjs +1 -0
  53. package/dist/chart-empty.d.ts +59 -0
  54. package/dist/chart-empty.d.ts.map +1 -0
  55. package/dist/chart-empty.js +29 -0
  56. package/dist/chart.cjs +6 -6
  57. package/dist/chart.d.ts +46 -13
  58. package/dist/chart.d.ts.map +1 -1
  59. package/dist/chart.js +172 -157
  60. package/dist/chip.cjs +1 -1
  61. package/dist/chip.d.ts +38 -4
  62. package/dist/chip.d.ts.map +1 -1
  63. package/dist/chip.js +100 -84
  64. package/dist/combobox.cjs +2 -2
  65. package/dist/combobox.d.ts.map +1 -1
  66. package/dist/combobox.js +81 -79
  67. package/dist/command.cjs +1 -1
  68. package/dist/command.d.ts +23 -1
  69. package/dist/command.d.ts.map +1 -1
  70. package/dist/command.js +248 -225
  71. package/dist/context-menu.cjs +1 -1
  72. package/dist/context-menu.d.ts.map +1 -1
  73. package/dist/context-menu.js +26 -29
  74. package/dist/data-table.cjs +1 -1
  75. package/dist/data-table.d.ts +75 -10
  76. package/dist/data-table.d.ts.map +1 -1
  77. package/dist/data-table.js +346 -334
  78. package/dist/date-picker.cjs +1 -1
  79. package/dist/date-picker.d.ts +13 -5
  80. package/dist/date-picker.d.ts.map +1 -1
  81. package/dist/date-picker.js +54 -53
  82. package/dist/description.cjs +1 -1
  83. package/dist/description.js +5 -5
  84. package/dist/dialog.cjs +1 -1
  85. package/dist/dialog.js +20 -20
  86. package/dist/drawer.cjs +1 -1
  87. package/dist/drawer.d.ts.map +1 -1
  88. package/dist/drawer.js +8 -11
  89. package/dist/dropdown-menu.cjs +1 -1
  90. package/dist/dropdown-menu.d.ts.map +1 -1
  91. package/dist/dropdown-menu.js +17 -20
  92. package/dist/field.cjs +1 -1
  93. package/dist/field.d.ts +8 -1
  94. package/dist/field.d.ts.map +1 -1
  95. package/dist/field.js +96 -65
  96. package/dist/global-layout.cjs +1 -1
  97. package/dist/global-layout.d.ts +130 -12
  98. package/dist/global-layout.d.ts.map +1 -1
  99. package/dist/global-layout.js +146 -127
  100. package/dist/grid.cjs +1 -0
  101. package/dist/grid.d.ts +56 -0
  102. package/dist/grid.d.ts.map +1 -0
  103. package/dist/grid.js +32 -0
  104. package/dist/header.d.ts +13 -0
  105. package/dist/header.d.ts.map +1 -1
  106. package/dist/hooks/use-delayed-pending.cjs +1 -0
  107. package/dist/hooks/use-delayed-pending.d.ts +34 -0
  108. package/dist/hooks/use-delayed-pending.d.ts.map +1 -0
  109. package/dist/hooks/use-delayed-pending.js +17 -0
  110. package/dist/hooks/use-mobile.cjs +1 -0
  111. package/dist/hooks/use-mobile.js +8 -0
  112. package/dist/hover-card.cjs +1 -1
  113. package/dist/hover-card.js +13 -13
  114. package/dist/index.cjs +1 -1
  115. package/dist/index.d.ts +9 -1
  116. package/dist/index.d.ts.map +1 -1
  117. package/dist/index.js +554 -527
  118. package/dist/input-chip.cjs +1 -1
  119. package/dist/input-chip.js +25 -25
  120. package/dist/input-group.cjs +1 -1
  121. package/dist/input-group.js +9 -9
  122. package/dist/input-otp.cjs +1 -1
  123. package/dist/input-otp.js +9 -9
  124. package/dist/input-password.cjs +1 -1
  125. package/dist/input-password.d.ts +17 -9
  126. package/dist/input-password.d.ts.map +1 -1
  127. package/dist/input-password.js +73 -72
  128. package/dist/input.cjs +1 -1
  129. package/dist/input.js +9 -9
  130. package/dist/label.cjs +1 -1
  131. package/dist/label.d.ts.map +1 -1
  132. package/dist/label.js +25 -28
  133. package/dist/lib/block-illustration.cjs +1 -0
  134. package/dist/lib/block-illustration.d.ts +28 -0
  135. package/dist/lib/block-illustration.d.ts.map +1 -0
  136. package/dist/lib/block-illustration.js +21 -0
  137. package/dist/lib/empty-canvas.cjs +1 -0
  138. package/dist/lib/empty-canvas.d.ts +27 -0
  139. package/dist/lib/empty-canvas.d.ts.map +1 -0
  140. package/dist/lib/empty-canvas.js +62 -0
  141. package/dist/lib/empty-chip.cjs +1 -0
  142. package/dist/lib/empty-chip.d.ts +4 -0
  143. package/dist/lib/empty-chip.d.ts.map +1 -0
  144. package/dist/lib/empty-chip.js +13 -0
  145. package/dist/lib/optical-center.cjs +1 -0
  146. package/dist/lib/optical-center.d.ts +12 -0
  147. package/dist/lib/optical-center.d.ts.map +1 -0
  148. package/dist/lib/optical-center.js +11 -0
  149. package/dist/lib/utils.cjs +1 -1
  150. package/dist/lib/utils.d.ts.map +1 -1
  151. package/dist/lib/utils.js +28 -5
  152. package/dist/list.cjs +1 -1
  153. package/dist/list.d.ts.map +1 -1
  154. package/dist/list.js +62 -58
  155. package/dist/map.cjs +1 -1
  156. package/dist/map.d.ts +60 -2
  157. package/dist/map.d.ts.map +1 -1
  158. package/dist/map.js +187 -164
  159. package/dist/media-empty.cjs +1 -0
  160. package/dist/media-empty.d.ts +72 -0
  161. package/dist/media-empty.d.ts.map +1 -0
  162. package/dist/media-empty.js +45 -0
  163. package/dist/menubar.cjs +1 -1
  164. package/dist/menubar.d.ts.map +1 -1
  165. package/dist/menubar.js +17 -20
  166. package/dist/navigation-menu.cjs +1 -1
  167. package/dist/navigation-menu.js +7 -7
  168. package/dist/pagination.cjs +1 -1
  169. package/dist/pagination.d.ts +130 -1
  170. package/dist/pagination.d.ts.map +1 -1
  171. package/dist/pagination.js +193 -102
  172. package/dist/progress.cjs +1 -1
  173. package/dist/progress.d.ts +2 -26
  174. package/dist/progress.d.ts.map +1 -1
  175. package/dist/progress.js +79 -118
  176. package/dist/scroll-area.cjs +1 -1
  177. package/dist/scroll-area.d.ts +15 -6
  178. package/dist/scroll-area.d.ts.map +1 -1
  179. package/dist/scroll-area.js +38 -36
  180. package/dist/select.cjs +2 -2
  181. package/dist/select.d.ts +13 -2
  182. package/dist/select.d.ts.map +1 -1
  183. package/dist/select.js +92 -87
  184. package/dist/separator.cjs +1 -1
  185. package/dist/separator.js +8 -8
  186. package/dist/sheet.cjs +1 -1
  187. package/dist/sheet.js +2 -2
  188. package/dist/skeleton.cjs +1 -1
  189. package/dist/skeleton.d.ts +38 -3
  190. package/dist/skeleton.d.ts.map +1 -1
  191. package/dist/skeleton.js +43 -20
  192. package/dist/sonner.cjs +1 -1
  193. package/dist/sonner.js +26 -26
  194. package/dist/stepper.cjs +1 -1
  195. package/dist/stepper.js +40 -40
  196. package/dist/table.cjs +1 -1
  197. package/dist/table.d.ts.map +1 -1
  198. package/dist/table.js +31 -28
  199. package/dist/tabs.cjs +1 -1
  200. package/dist/tabs.js +1 -1
  201. package/dist/text-reveal-motion.d.ts +10 -0
  202. package/dist/text-reveal-motion.d.ts.map +1 -1
  203. package/dist/textarea.cjs +1 -1
  204. package/dist/textarea.js +11 -11
  205. package/dist/toggle.cjs +1 -1
  206. package/dist/toggle.js +8 -8
  207. package/dist/tooltip.cjs +1 -1
  208. package/dist/tooltip.js +8 -8
  209. package/dist/typography-heading.cjs +1 -0
  210. package/dist/typography-heading.d.ts +129 -0
  211. package/dist/typography-heading.d.ts.map +1 -0
  212. package/dist/typography-heading.js +95 -0
  213. package/dist/typography-text.cjs +1 -0
  214. package/dist/typography-text.d.ts +127 -0
  215. package/dist/typography-text.d.ts.map +1 -0
  216. package/dist/typography-text.js +92 -0
  217. package/dist/typography.d.ts +13 -0
  218. package/dist/typography.d.ts.map +1 -1
  219. package/package.json +35 -7
  220. package/src/blocks/empty-state.tsx +412 -0
  221. package/src/blocks/input-list.tsx +66 -36
  222. package/src/blocks/{progress-screen.tsx → progress-state.tsx} +154 -93
  223. package/src/blocks/sidebar.tsx +25 -26
  224. package/src/components/accordion.tsx +82 -27
  225. package/src/components/alert-dialog.tsx +2 -2
  226. package/src/components/alert.tsx +27 -13
  227. package/src/components/avatar.tsx +1 -1
  228. package/src/components/badge.tsx +8 -4
  229. package/src/components/breadcrumb.tsx +1 -1
  230. package/src/components/button-group.tsx +112 -0
  231. package/src/components/button.tsx +4 -4
  232. package/src/components/calendar.tsx +5 -6
  233. package/src/components/callout.tsx +48 -15
  234. package/src/components/card.tsx +89 -19
  235. package/src/components/chart-empty.tsx +116 -0
  236. package/src/components/chart.tsx +103 -32
  237. package/src/components/chip.tsx +88 -13
  238. package/src/components/combobox.tsx +12 -10
  239. package/src/components/command.tsx +64 -13
  240. package/src/components/context-menu.tsx +6 -9
  241. package/src/components/data-table.tsx +135 -20
  242. package/src/components/date-picker.tsx +18 -7
  243. package/src/components/description.tsx +1 -1
  244. package/src/components/dialog.tsx +2 -2
  245. package/src/components/drawer.tsx +2 -5
  246. package/src/components/dropdown-menu.tsx +8 -11
  247. package/src/components/field.tsx +89 -16
  248. package/src/components/global-layout.tsx +210 -39
  249. package/src/components/grid.tsx +130 -0
  250. package/src/components/header.tsx +13 -0
  251. package/src/components/hover-card.tsx +1 -1
  252. package/src/components/input-chip.tsx +1 -1
  253. package/src/components/input-group.tsx +1 -1
  254. package/src/components/input-otp.tsx +1 -1
  255. package/src/components/input-password.tsx +24 -12
  256. package/src/components/input.tsx +1 -1
  257. package/src/components/label.tsx +10 -13
  258. package/src/components/list.tsx +13 -9
  259. package/src/components/map.tsx +101 -5
  260. package/src/components/media-empty.tsx +156 -0
  261. package/src/components/menubar.tsx +7 -10
  262. package/src/components/navigation-menu.tsx +1 -1
  263. package/src/components/pagination.tsx +286 -1
  264. package/src/components/progress.tsx +35 -113
  265. package/src/components/scroll-area.tsx +23 -10
  266. package/src/components/select.tsx +35 -10
  267. package/src/components/separator.tsx +1 -1
  268. package/src/components/sheet.tsx +2 -2
  269. package/src/components/skeleton.tsx +78 -7
  270. package/src/components/sonner.tsx +2 -2
  271. package/src/components/stepper.tsx +3 -3
  272. package/src/components/table.tsx +6 -3
  273. package/src/components/tabs.tsx +1 -1
  274. package/src/components/text-reveal-motion.tsx +10 -0
  275. package/src/components/textarea.tsx +1 -1
  276. package/src/components/toggle.tsx +1 -1
  277. package/src/components/tooltip.tsx +1 -1
  278. package/src/components/typography-heading.tsx +253 -0
  279. package/src/components/typography-text.tsx +250 -0
  280. package/src/components/typography.tsx +13 -0
  281. package/src/hooks/use-delayed-pending.ts +60 -0
  282. package/src/index.ts +11 -1
  283. package/src/lib/block-illustration.tsx +88 -0
  284. package/src/lib/empty-canvas.tsx +128 -0
  285. package/src/lib/empty-chip.ts +24 -0
  286. package/src/lib/optical-center.tsx +45 -0
  287. package/src/lib/utils.ts +26 -0
  288. package/dist/blocks/progress-screen.cjs +0 -1
  289. package/dist/blocks/progress-screen.d.ts.map +0 -1
@@ -0,0 +1,92 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import * as u from "react";
3
+ import { Slot as x } from "@radix-ui/react-slot";
4
+ import { cva as f } from "class-variance-authority";
5
+ import { cn as b } from "@brightlocal/ui-components/lib/utils";
6
+ const g = f("", {
7
+ variants: {
8
+ variant: {
9
+ body: "text-body",
10
+ "body-sm": "text-body-sm",
11
+ "body-xs": "text-body-xs",
12
+ metric: "text-metric",
13
+ code: "text-code"
14
+ },
15
+ color: {
16
+ default: "text-foreground",
17
+ muted: "text-muted-foreground",
18
+ // destructive-foreground is the legible error-text color in both modes
19
+ // (text-destructive is the surface red used behind destructive fills)
20
+ destructive: "text-destructive-foreground"
21
+ },
22
+ // Tri-state on purpose: `undefined` (the default) emits no class so the
23
+ // text inherits its context — proportional everywhere except inside a
24
+ // Table root, which sets `tabular-nums` (DS-926). Explicit `false` must
25
+ // therefore emit `proportional-nums`, or opting out inside a Table would
26
+ // be a silent no-op.
27
+ tabular: {
28
+ true: "tabular-nums",
29
+ false: "proportional-nums"
30
+ },
31
+ align: {
32
+ left: "text-left",
33
+ center: "text-center",
34
+ right: "text-right"
35
+ },
36
+ // Boolean on purpose (no `false` class): unlike tabular there is no
37
+ // inherited context to undo — either the element clips or it doesn't.
38
+ // `block` is load-bearing: an inline box (the default `span` for metric,
39
+ // `code` for code, or an inline asChild child) cannot clip — overflow
40
+ // does not apply to non-replaced inlines — so the variant forces a block
41
+ // container. A no-op on the body variants (`p` is already block) and on
42
+ // flex/grid items (blockified by the layout).
43
+ truncate: {
44
+ true: "block truncate"
45
+ }
46
+ },
47
+ defaultVariants: {
48
+ variant: "body",
49
+ color: "default"
50
+ }
51
+ }), h = {
52
+ body: "p",
53
+ "body-sm": "p",
54
+ "body-xs": "p",
55
+ metric: "span",
56
+ code: "code"
57
+ }, T = u.forwardRef(
58
+ ({
59
+ className: e,
60
+ variant: t = "body",
61
+ color: o = "default",
62
+ tabular: r,
63
+ align: a,
64
+ truncate: d = !1,
65
+ asChild: s = !1,
66
+ dataHook: c,
67
+ trackingEl: l,
68
+ trackingLabel: n,
69
+ ...m
70
+ }, p) => {
71
+ const y = s ? x : h[t];
72
+ return /* @__PURE__ */ i(
73
+ y,
74
+ {
75
+ ref: p,
76
+ className: b(
77
+ g({ variant: t, color: o, tabular: r, align: a, truncate: d }),
78
+ e
79
+ ),
80
+ "data-hook": c,
81
+ "data-slot": "typography-text",
82
+ "data-tracking-el": l || `typography-text-${t}`,
83
+ "data-tracking-label": n,
84
+ ...m
85
+ }
86
+ );
87
+ }
88
+ );
89
+ T.displayName = "TypographyText";
90
+ export {
91
+ T as TypographyText
92
+ };
@@ -52,6 +52,7 @@ interface TypographyH1Props extends React.ComponentProps<"h1">, TypographyBasePr
52
52
  * Main page heading component (h1).
53
53
  * Used for the primary title on a page. Uses the display font (Poppins) with
54
54
  * responsive sizing — 36px on mobile, 48px from the `md` breakpoint.
55
+ * @deprecated Use `<TypographyHeading level={1} variant="page">` (semantic type scale, DS-714). Note the scale's page title is 24px — the 48px look is `variant="display"`, reserved for brand moments.
55
56
  */
56
57
  declare const TypographyH1: React.ForwardRefExoticComponent<Omit<TypographyH1Props, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
57
58
  /**
@@ -63,6 +64,7 @@ interface TypographyH2Props extends React.ComponentProps<"h2">, TypographyBasePr
63
64
  /**
64
65
  * Section heading component (h2).
65
66
  * Used for major section titles within a page.
67
+ * @deprecated Use `<TypographyHeading level={2} variant="section">` (semantic type scale, DS-714).
66
68
  */
67
69
  declare const TypographyH2: React.ForwardRefExoticComponent<Omit<TypographyH2Props, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
68
70
  /**
@@ -74,6 +76,7 @@ interface TypographyH3Props extends React.ComponentProps<"h3">, TypographyBasePr
74
76
  /**
75
77
  * Subsection heading component (h3).
76
78
  * Used for subsections within a major section.
79
+ * @deprecated Use `<TypographyHeading level={3} variant="subsection">` (semantic type scale, DS-714).
77
80
  */
78
81
  declare const TypographyH3: React.ForwardRefExoticComponent<Omit<TypographyH3Props, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
79
82
  /**
@@ -85,6 +88,7 @@ interface TypographyH4Props extends React.ComponentProps<"h4">, TypographyBasePr
85
88
  /**
86
89
  * Minor heading component (h4).
87
90
  * Used for smaller section headings and card titles.
91
+ * @deprecated Use `<TypographyHeading level={4} variant="subsection">` (semantic type scale, DS-714).
88
92
  */
89
93
  declare const TypographyH4: React.ForwardRefExoticComponent<Omit<TypographyH4Props, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
90
94
  /**
@@ -96,6 +100,7 @@ interface TypographyPProps extends React.ComponentProps<"p">, TypographyBaseProp
96
100
  /**
97
101
  * Paragraph text component (p).
98
102
  * Used for body text and general content.
103
+ * @deprecated Use `<TypographyText>` (variant "body", semantic type scale, DS-714).
99
104
  */
100
105
  declare const TypographyP: React.ForwardRefExoticComponent<Omit<TypographyPProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
101
106
  /**
@@ -107,6 +112,7 @@ interface TypographyBlockquoteProps extends React.ComponentProps<"blockquote">,
107
112
  /**
108
113
  * Blockquote component for quoted content.
109
114
  * Displays with a left border accent for visual distinction.
115
+ * @deprecated Use `<TypographyText asChild>` with a `blockquote` child (semantic type scale, DS-714); the border/quote treatment is consumer layout.
110
116
  */
111
117
  declare const TypographyBlockquote: React.ForwardRefExoticComponent<Omit<TypographyBlockquoteProps, "ref"> & React.RefAttributes<HTMLQuoteElement>>;
112
118
  /**
@@ -118,6 +124,7 @@ interface TypographyListProps extends React.ComponentProps<"ul">, TypographyBase
118
124
  /**
119
125
  * Unordered list component (ul).
120
126
  * Used for bullet-point lists with consistent styling.
127
+ * @deprecated Use `<TypographyText asChild>` with a `ul` child (semantic type scale, DS-714); list markers and spacing are consumer layout.
121
128
  */
122
129
  declare const TypographyList: React.ForwardRefExoticComponent<Omit<TypographyListProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
123
130
  /**
@@ -129,6 +136,7 @@ interface TypographyInlineCodeProps extends React.ComponentProps<"code">, Omit<T
129
136
  /**
130
137
  * Inline code component for code snippets within text.
131
138
  * Displays with monospace font and muted background.
139
+ * @deprecated Use `<code className="text-code-inline">` inside a sentence (0.9em, inherits the line's height — semantic type scale, DS-714).
132
140
  */
133
141
  declare const TypographyInlineCode: React.ForwardRefExoticComponent<Omit<TypographyInlineCodeProps, "ref"> & React.RefAttributes<HTMLElement>>;
134
142
  /**
@@ -140,6 +148,7 @@ interface TypographyCodeProps extends React.ComponentProps<"pre">, TypographyBas
140
148
  /**
141
149
  * Code block component for multi-line code snippets.
142
150
  * Displays with dark background, monospace font, and horizontal scroll.
151
+ * @deprecated Use `<TypographyText variant="code">` for copyable identifiers, or a `pre` styled with `text-code` for multi-line snippets (semantic type scale, DS-714).
143
152
  */
144
153
  declare const TypographyCode: React.ForwardRefExoticComponent<Omit<TypographyCodeProps, "ref"> & React.RefAttributes<HTMLPreElement>>;
145
154
  /**
@@ -151,6 +160,7 @@ interface TypographyLeadProps extends React.ComponentProps<"p">, TypographyBaseP
151
160
  /**
152
161
  * Lead paragraph component for introductory text.
153
162
  * Displays larger, muted text for page introductions and summaries.
163
+ * @deprecated Use `<TypographyText color="muted">` for an intro line (semantic type scale, DS-714).
154
164
  */
155
165
  declare const TypographyLead: React.ForwardRefExoticComponent<Omit<TypographyLeadProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
156
166
  /**
@@ -162,6 +172,7 @@ interface TypographyLargeProps extends React.ComponentProps<"div">, TypographyBa
162
172
  /**
163
173
  * Large text component for emphasized content.
164
174
  * Displays larger, semibold text for callouts and highlights.
175
+ * @deprecated Use `<TypographyHeading level={n} variant="subsection">` for a small heading or `<TypographyText>` for emphasised copy (DS-714).
165
176
  */
166
177
  declare const TypographyLarge: React.ForwardRefExoticComponent<Omit<TypographyLargeProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
167
178
  /**
@@ -173,6 +184,7 @@ interface TypographySmallProps extends React.ComponentProps<"small">, Omit<Typog
173
184
  /**
174
185
  * Small text component for compact content.
175
186
  * Used for captions, labels, and supplementary information.
187
+ * @deprecated Use `<TypographyText variant="body-sm">` (semantic type scale, DS-714).
176
188
  */
177
189
  declare const TypographySmall: React.ForwardRefExoticComponent<Omit<TypographySmallProps, "ref"> & React.RefAttributes<HTMLElement>>;
178
190
  /**
@@ -184,6 +196,7 @@ interface TypographyMutedProps extends React.ComponentProps<"p">, TypographyBase
184
196
  /**
185
197
  * Muted text component for de-emphasized content.
186
198
  * Displays with reduced visual prominence for secondary information.
199
+ * @deprecated Use `<TypographyText variant="body-sm" color="muted">` (semantic type scale, DS-714).
187
200
  */
188
201
  declare const TypographyMuted: React.ForwardRefExoticComponent<Omit<TypographyMutedProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
189
202
  export { TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyP, TypographyBlockquote, TypographyList, TypographyInlineCode, TypographyCode, TypographyLead, TypographyLarge, TypographySmall, TypographyMuted, };
@@ -1 +1 @@
1
- {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/components/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;;GAEG;AACH,KAAK,e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Ac,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,GAChB,CAAC;AAEF,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,CAAC"}
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/components/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;;GAEG;AACH,KAAK,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAYnD;;;GAGG;AACH,UAAU,mBAAmB;IAC3B;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAUD;;;GAGG;AACH,UAAU,iBACR,SAAQ,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,mBAAmB;CAAG;AAE5D;;;;;GAKG;AACH,QAAA,MAAM,YAAY,2GA0BjB,CAAC;AAWF;;;GAGG;AACH,UAAU,iBACR,SAAQ,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,mBAAmB;CAAG;AAE5D;;;;GAIG;AACH,QAAA,MAAM,YAAY,2GA0BjB,CAAC;AAWF;;;GAGG;AACH,UAAU,iBACR,SAAQ,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,mBAAmB;CAAG;AAE5D;;;;GAIG;AACH,QAAA,MAAM,YAAY,2GA0BjB,CAAC;AAWF;;;GAGG;A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AGG;AACH,UAAU,oBACR,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,EAAE,OAAO,CAAC;CAAG;AAE9E;;;;GAIG;AACH,QAAA,MAAM,eAAe,uGAyBpB,CAAC;AAUF;;;GAGG;AACH,UAAU,oBACR,SAAQ,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,mBAAmB;CAAG;AAE3D;;;;GAIG;AACH,QAAA,MAAM,eAAe,gHA6BpB,CAAC;AAMF,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,GAChB,CAAC;AAEF,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightlocal/ui-components",
3
- "version": "2.27.0",
3
+ "version": "3.1.0",
4
4
  "description": "BrightLocal Design System UI Components",
5
5
  "type": "module",
6
6
  "private": false,
@@ -61,14 +61,32 @@
61
61
  "import": "./dist/lib/motion.js",
62
62
  "require": "./dist/lib/motion.cjs"
63
63
  },
64
+ "./empty-state": {
65
+ "source": {
66
+ "types": "./src/blocks/empty-state.tsx",
67
+ "import": "./src/blocks/empty-state.tsx"
68
+ },
69
+ "types": "./dist/blocks/empty-state.d.ts",
70
+ "import": "./dist/blocks/empty-state.js",
71
+ "require": "./dist/blocks/empty-state.cjs"
72
+ },
73
+ "./progress-state": {
74
+ "source": {
75
+ "types": "./src/blocks/progress-state.tsx",
76
+ "import": "./src/blocks/progress-state.tsx"
77
+ },
78
+ "types": "./dist/blocks/progress-state.d.ts",
79
+ "import": "./dist/blocks/progress-state.js",
80
+ "require": "./dist/blocks/progress-state.cjs"
81
+ },
64
82
  "./progress-screen": {
65
83
  "source": {
66
- "types": "./src/blocks/progress-screen.tsx",
67
- "import": "./src/blocks/progress-screen.tsx"
84
+ "types": "./src/blocks/progress-state.tsx",
85
+ "import": "./src/blocks/progress-state.tsx"
68
86
  },
69
- "types": "./dist/blocks/progress-screen.d.ts",
70
- "import": "./dist/blocks/progress-screen.js",
71
- "require": "./dist/blocks/progress-screen.cjs"
87
+ "types": "./dist/blocks/progress-state.d.ts",
88
+ "import": "./dist/blocks/progress-state.js",
89
+ "require": "./dist/blocks/progress-state.cjs"
72
90
  },
73
91
  "./input-list": {
74
92
  "source": {
@@ -118,8 +136,14 @@
118
136
  "lib/*": [
119
137
  "dist/lib/*"
120
138
  ],
139
+ "empty-state": [
140
+ "dist/blocks/empty-state"
141
+ ],
142
+ "progress-state": [
143
+ "dist/blocks/progress-state"
144
+ ],
121
145
  "progress-screen": [
122
- "dist/blocks/progress-screen"
146
+ "dist/blocks/progress-state"
123
147
  ],
124
148
  "input-list": [
125
149
  "dist/blocks/input-list"
@@ -240,6 +264,10 @@
240
264
  "token-drift:check": "node scripts/token-drift.mjs --check",
241
265
  "token-drift:update-baseline": "node scripts/token-drift.mjs --update-baseline",
242
266
  "token-drift:report": "node scripts/token-report.mjs",
267
+ "test": "node --test \"scripts/test/*.test.mjs\"",
268
+ "typography-drift": "node scripts/token-drift.mjs --only typography",
269
+ "typography-drift:check": "node scripts/token-drift.mjs --check --only typography",
270
+ "typography-drift:update-baseline": "node scripts/token-drift.mjs --update-baseline --only typography",
243
271
  "build:changelog": "node scripts/generate-changelog.js",
244
272
  "rel:patch": "node scripts/changeset-create.mjs patch",
245
273
  "rel:minor": "node scripts/changeset-create.mjs minor",