@brightlocal/ui-components 2.27.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.
Files changed (259) hide show
  1. package/README.md +6 -1
  2. package/component-meta.json +480 -126
  3. package/deprecations.json +189 -2
  4. package/dist/accordion.cjs +1 -1
  5. package/dist/accordion.js +2 -2
  6. package/dist/alert-dialog.cjs +1 -1
  7. package/dist/alert-dialog.js +18 -18
  8. package/dist/alert.cjs +1 -1
  9. package/dist/alert.d.ts +11 -1
  10. package/dist/alert.d.ts.map +1 -1
  11. package/dist/alert.js +31 -28
  12. package/dist/avatar.cjs +1 -1
  13. package/dist/avatar.js +4 -4
  14. package/dist/badge.cjs +1 -1
  15. package/dist/badge.d.ts.map +1 -1
  16. package/dist/badge.js +15 -11
  17. package/dist/blocks/empty-state.cjs +1 -0
  18. package/dist/blocks/empty-state.d.ts +172 -0
  19. package/dist/blocks/empty-state.d.ts.map +1 -0
  20. package/dist/blocks/empty-state.js +155 -0
  21. package/dist/blocks/input-list.cjs +2 -2
  22. package/dist/blocks/input-list.d.ts.map +1 -1
  23. package/dist/blocks/input-list.js +124 -108
  24. package/dist/blocks/progress-state.cjs +1 -0
  25. package/dist/blocks/{progress-screen.d.ts → progress-state.d.ts} +30 -18
  26. package/dist/blocks/progress-state.d.ts.map +1 -0
  27. package/dist/blocks/{progress-screen.js → progress-state.js} +100 -71
  28. package/dist/blocks/sidebar.cjs +1 -1
  29. package/dist/blocks/sidebar.d.ts.map +1 -1
  30. package/dist/blocks/sidebar.js +160 -161
  31. package/dist/breadcrumb.cjs +1 -1
  32. package/dist/breadcrumb.js +1 -1
  33. package/dist/button.cjs +1 -1
  34. package/dist/button.js +11 -11
  35. package/dist/calendar.cjs +1 -1
  36. package/dist/calendar.d.ts.map +1 -1
  37. package/dist/calendar.js +37 -38
  38. package/dist/callout.cjs +1 -1
  39. package/dist/callout.d.ts +24 -2
  40. package/dist/callout.d.ts.map +1 -1
  41. package/dist/callout.js +57 -55
  42. package/dist/card.cjs +1 -1
  43. package/dist/card.d.ts +23 -2
  44. package/dist/card.d.ts.map +1 -1
  45. package/dist/card.js +94 -91
  46. package/dist/chart-empty.cjs +1 -0
  47. package/dist/chart-empty.d.ts +59 -0
  48. package/dist/chart-empty.d.ts.map +1 -0
  49. package/dist/chart-empty.js +29 -0
  50. package/dist/chart.cjs +6 -6
  51. package/dist/chart.d.ts +6 -1
  52. package/dist/chart.d.ts.map +1 -1
  53. package/dist/chart.js +183 -183
  54. package/dist/chip.cjs +1 -1
  55. package/dist/chip.d.ts.map +1 -1
  56. package/dist/chip.js +5 -3
  57. package/dist/combobox.cjs +2 -2
  58. package/dist/combobox.d.ts.map +1 -1
  59. package/dist/combobox.js +81 -79
  60. package/dist/command.cjs +1 -1
  61. package/dist/command.d.ts.map +1 -1
  62. package/dist/command.js +74 -77
  63. package/dist/context-menu.cjs +1 -1
  64. package/dist/context-menu.d.ts.map +1 -1
  65. package/dist/context-menu.js +26 -29
  66. package/dist/data-table.cjs +1 -1
  67. package/dist/data-table.d.ts +44 -10
  68. package/dist/data-table.d.ts.map +1 -1
  69. package/dist/data-table.js +13 -11
  70. package/dist/description.cjs +1 -1
  71. package/dist/description.js +5 -5
  72. package/dist/dialog.cjs +1 -1
  73. package/dist/dialog.js +20 -20
  74. package/dist/drawer.cjs +1 -1
  75. package/dist/drawer.d.ts.map +1 -1
  76. package/dist/drawer.js +8 -11
  77. package/dist/dropdown-menu.cjs +1 -1
  78. package/dist/dropdown-menu.d.ts.map +1 -1
  79. package/dist/dropdown-menu.js +17 -20
  80. package/dist/field.cjs +1 -1
  81. package/dist/field.d.ts.map +1 -1
  82. package/dist/field.js +29 -25
  83. package/dist/global-layout.cjs +1 -1
  84. package/dist/global-layout.d.ts +27 -1
  85. package/dist/global-layout.d.ts.map +1 -1
  86. package/dist/global-layout.js +18 -16
  87. package/dist/grid.cjs +1 -0
  88. package/dist/grid.d.ts +56 -0
  89. package/dist/grid.d.ts.map +1 -0
  90. package/dist/grid.js +32 -0
  91. package/dist/header.d.ts +13 -0
  92. package/dist/header.d.ts.map +1 -1
  93. package/dist/hooks/use-delayed-pending.cjs +1 -0
  94. package/dist/hooks/use-delayed-pending.d.ts +34 -0
  95. package/dist/hooks/use-delayed-pending.d.ts.map +1 -0
  96. package/dist/hooks/use-delayed-pending.js +17 -0
  97. package/dist/hover-card.cjs +1 -1
  98. package/dist/hover-card.js +13 -13
  99. package/dist/index.cjs +1 -1
  100. package/dist/index.d.ts +8 -1
  101. package/dist/index.d.ts.map +1 -1
  102. package/dist/index.js +512 -494
  103. package/dist/input-chip.cjs +1 -1
  104. package/dist/input-chip.js +25 -25
  105. package/dist/input-group.cjs +1 -1
  106. package/dist/input-group.js +9 -9
  107. package/dist/input-otp.cjs +1 -1
  108. package/dist/input-otp.js +9 -9
  109. package/dist/input-password.cjs +1 -1
  110. package/dist/input-password.js +51 -51
  111. package/dist/input.cjs +1 -1
  112. package/dist/input.js +9 -9
  113. package/dist/label.cjs +1 -1
  114. package/dist/label.d.ts.map +1 -1
  115. package/dist/label.js +25 -28
  116. package/dist/lib/block-illustration.cjs +1 -0
  117. package/dist/lib/block-illustration.d.ts +28 -0
  118. package/dist/lib/block-illustration.d.ts.map +1 -0
  119. package/dist/lib/block-illustration.js +21 -0
  120. package/dist/lib/empty-canvas.cjs +1 -0
  121. package/dist/lib/empty-canvas.d.ts +27 -0
  122. package/dist/lib/empty-canvas.d.ts.map +1 -0
  123. package/dist/lib/empty-canvas.js +62 -0
  124. package/dist/lib/optical-center.cjs +1 -0
  125. package/dist/lib/optical-center.d.ts +12 -0
  126. package/dist/lib/optical-center.d.ts.map +1 -0
  127. package/dist/lib/optical-center.js +11 -0
  128. package/dist/lib/utils.cjs +1 -1
  129. package/dist/lib/utils.d.ts.map +1 -1
  130. package/dist/lib/utils.js +28 -5
  131. package/dist/list.cjs +1 -1
  132. package/dist/list.d.ts.map +1 -1
  133. package/dist/list.js +62 -58
  134. package/dist/map.cjs +1 -1
  135. package/dist/map.d.ts +60 -2
  136. package/dist/map.d.ts.map +1 -1
  137. package/dist/map.js +187 -164
  138. package/dist/media-empty.cjs +1 -0
  139. package/dist/media-empty.d.ts +72 -0
  140. package/dist/media-empty.d.ts.map +1 -0
  141. package/dist/media-empty.js +45 -0
  142. package/dist/menubar.cjs +1 -1
  143. package/dist/menubar.d.ts.map +1 -1
  144. package/dist/menubar.js +17 -20
  145. package/dist/navigation-menu.cjs +1 -1
  146. package/dist/navigation-menu.js +7 -7
  147. package/dist/pagination.cjs +1 -1
  148. package/dist/pagination.d.ts +127 -1
  149. package/dist/pagination.d.ts.map +1 -1
  150. package/dist/pagination.js +189 -98
  151. package/dist/progress.cjs +1 -1
  152. package/dist/progress.d.ts +2 -26
  153. package/dist/progress.d.ts.map +1 -1
  154. package/dist/progress.js +79 -118
  155. package/dist/select.cjs +2 -2
  156. package/dist/select.d.ts.map +1 -1
  157. package/dist/select.js +19 -18
  158. package/dist/separator.cjs +1 -1
  159. package/dist/separator.js +8 -8
  160. package/dist/sheet.cjs +1 -1
  161. package/dist/sheet.js +2 -2
  162. package/dist/skeleton.cjs +1 -1
  163. package/dist/skeleton.d.ts +38 -3
  164. package/dist/skeleton.d.ts.map +1 -1
  165. package/dist/skeleton.js +43 -20
  166. package/dist/sonner.cjs +1 -1
  167. package/dist/sonner.js +26 -26
  168. package/dist/stepper.cjs +1 -1
  169. package/dist/stepper.js +40 -40
  170. package/dist/table.cjs +1 -1
  171. package/dist/table.d.ts.map +1 -1
  172. package/dist/table.js +31 -28
  173. package/dist/tabs.cjs +1 -1
  174. package/dist/tabs.js +1 -1
  175. package/dist/text-reveal-motion.d.ts +10 -0
  176. package/dist/text-reveal-motion.d.ts.map +1 -1
  177. package/dist/textarea.cjs +1 -1
  178. package/dist/textarea.js +11 -11
  179. package/dist/toggle.cjs +1 -1
  180. package/dist/toggle.js +8 -8
  181. package/dist/tooltip.cjs +1 -1
  182. package/dist/tooltip.js +8 -8
  183. package/dist/typography-heading.cjs +1 -0
  184. package/dist/typography-heading.d.ts +116 -0
  185. package/dist/typography-heading.d.ts.map +1 -0
  186. package/dist/typography-heading.js +84 -0
  187. package/dist/typography-text.cjs +1 -0
  188. package/dist/typography-text.d.ts +113 -0
  189. package/dist/typography-text.d.ts.map +1 -0
  190. package/dist/typography-text.js +81 -0
  191. package/dist/typography.d.ts +13 -0
  192. package/dist/typography.d.ts.map +1 -1
  193. package/package.json +35 -7
  194. package/src/blocks/empty-state.tsx +424 -0
  195. package/src/blocks/input-list.tsx +66 -36
  196. package/src/blocks/{progress-screen.tsx → progress-state.tsx} +154 -93
  197. package/src/blocks/sidebar.tsx +25 -26
  198. package/src/components/accordion.tsx +2 -2
  199. package/src/components/alert-dialog.tsx +2 -2
  200. package/src/components/alert.tsx +27 -13
  201. package/src/components/avatar.tsx +1 -1
  202. package/src/components/badge.tsx +8 -4
  203. package/src/components/breadcrumb.tsx +1 -1
  204. package/src/components/button.tsx +3 -3
  205. package/src/components/calendar.tsx +5 -6
  206. package/src/components/callout.tsx +48 -15
  207. package/src/components/card.tsx +52 -17
  208. package/src/components/chart-empty.tsx +116 -0
  209. package/src/components/chart.tsx +43 -17
  210. package/src/components/chip.tsx +5 -3
  211. package/src/components/combobox.tsx +12 -10
  212. package/src/components/command.tsx +9 -10
  213. package/src/components/context-menu.tsx +6 -9
  214. package/src/components/data-table.tsx +72 -17
  215. package/src/components/description.tsx +1 -1
  216. package/src/components/dialog.tsx +2 -2
  217. package/src/components/drawer.tsx +2 -5
  218. package/src/components/dropdown-menu.tsx +8 -11
  219. package/src/components/field.tsx +8 -4
  220. package/src/components/global-layout.tsx +36 -3
  221. package/src/components/grid.tsx +130 -0
  222. package/src/components/header.tsx +13 -0
  223. package/src/components/hover-card.tsx +1 -1
  224. package/src/components/input-chip.tsx +1 -1
  225. package/src/components/input-group.tsx +1 -1
  226. package/src/components/input-otp.tsx +1 -1
  227. package/src/components/input-password.tsx +1 -1
  228. package/src/components/input.tsx +1 -1
  229. package/src/components/label.tsx +10 -13
  230. package/src/components/list.tsx +13 -9
  231. package/src/components/map.tsx +101 -5
  232. package/src/components/media-empty.tsx +156 -0
  233. package/src/components/menubar.tsx +7 -10
  234. package/src/components/navigation-menu.tsx +1 -1
  235. package/src/components/pagination.tsx +279 -1
  236. package/src/components/progress.tsx +35 -113
  237. package/src/components/select.tsx +5 -4
  238. package/src/components/separator.tsx +1 -1
  239. package/src/components/sheet.tsx +2 -2
  240. package/src/components/skeleton.tsx +78 -7
  241. package/src/components/sonner.tsx +2 -2
  242. package/src/components/stepper.tsx +3 -3
  243. package/src/components/table.tsx +6 -3
  244. package/src/components/tabs.tsx +1 -1
  245. package/src/components/text-reveal-motion.tsx +10 -0
  246. package/src/components/textarea.tsx +1 -1
  247. package/src/components/toggle.tsx +1 -1
  248. package/src/components/tooltip.tsx +1 -1
  249. package/src/components/typography-heading.tsx +229 -0
  250. package/src/components/typography-text.tsx +225 -0
  251. package/src/components/typography.tsx +13 -0
  252. package/src/hooks/use-delayed-pending.ts +60 -0
  253. package/src/index.ts +10 -1
  254. package/src/lib/block-illustration.tsx +88 -0
  255. package/src/lib/empty-canvas.tsx +128 -0
  256. package/src/lib/optical-center.tsx +45 -0
  257. package/src/lib/utils.ts +26 -0
  258. package/dist/blocks/progress-screen.cjs +0 -1
  259. package/dist/blocks/progress-screen.d.ts.map +0 -1
package/dist/badge.js CHANGED
@@ -1,16 +1,20 @@
1
1
  import { jsx as b } from "react/jsx-runtime";
2
2
  import * as g from "react";
3
3
  import { Slot as p } from "@radix-ui/react-slot";
4
- import { cva as f } from "class-variance-authority";
5
- import { cn as l } from "@brightlocal/ui-components/lib/utils";
6
- const _ = f(
4
+ import { cva as l } from "class-variance-authority";
5
+ import { cn as f } from "@brightlocal/ui-components/lib/utils";
6
+ const _ = l(
7
7
  [
8
8
  // Layout
9
9
  "inline-flex items-center justify-center gap-1 w-fit shrink-0 overflow-hidden",
10
- // Spacing & shape
11
- "rounded-full border px-2 py-1",
12
- // Typography
13
- "text-xs font-semibold whitespace-nowrap leading-none",
10
+ // Spacing & shape — 2px vertical padding around the 16px line box keeps the
11
+ // content box 20px, matching the Figma frame (its stroke sits inside); the
12
+ // 1px border makes the rendered box 22px, unchanged from the pre-scale
13
+ // `leading-none` + py-1 stack (DS-925)
14
+ "rounded-full border px-2 py-0.5",
15
+ // Typography — type-scale role for badges (12/16 Figma 500; the weight
16
+ // drop from the old semibold is intentional, DS-925)
17
+ "text-label-sm whitespace-nowrap",
14
18
  // Icons
15
19
  "[&>svg]:size-3 [&>svg]:pointer-events-none",
16
20
  // Transition
@@ -38,20 +42,20 @@ const _ = f(
38
42
  ), m = g.forwardRef(
39
43
  ({
40
44
  className: e,
41
- variant: o,
42
- asChild: a = !1,
45
+ variant: a,
46
+ asChild: o = !1,
43
47
  dataHook: t,
44
48
  trackingEl: s,
45
49
  trackingLabel: n,
46
50
  children: r,
47
51
  ...i
48
52
  }, d) => {
49
- const c = a ? p : "span", u = typeof r == "string" && /^[0-9]$/.test(r);
53
+ const c = o ? p : "span", u = typeof r == "string" && /^[0-9]$/.test(r);
50
54
  return /* @__PURE__ */ b(
51
55
  c,
52
56
  {
53
57
  ref: d,
54
- className: l(_({ variant: o }), e),
58
+ className: f(_({ variant: a }), e),
55
59
  "data-hook": t,
56
60
  "data-number": u,
57
61
  "data-slot": "badge",
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),S=require("react"),T=require("class-variance-authority"),i=require("@brightlocal/ui-components/lib/utils"),I=require("../typography-heading.cjs"),_=require("../typography-text.cjs"),j=require("../lib/block-illustration.cjs");function A(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const e=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(s,n,e.get?e:{enumerable:!0,get:()=>t[n]})}}return s.default=t,Object.freeze(s)}const o=A(S),L={md:"section",lg:"page"},O={lg:2,md:3},q=T.cva("bg-muted text-muted-foreground flex size-10 items-center justify-center rounded-full",{variants:{align:{center:"",left:"shrink-0"}},defaultVariants:{align:"center"}}),k=o.forwardRef((t,s)=>{const{className:n,dataHook:e,title:b,description:m,children:u,titleLevel:v,trackingEl:g,trackingLabel:p,size:r="md",...E}=t,y=t.icon,f=t.illustration,l=r==="lg"?"center":t.align??"center",c=E;delete c.icon,delete c.illustration,delete c.align;const N=o.Children.toArray(u).flatMap(d=>o.isValidElement(d)&&d.type===o.Fragment?o.Children.toArray(d.props.children):[d]).length>0,x=r==="lg"&&f?a.jsx(j.BlockIllustration,{size:j.BLOCK_ILLUSTRATION_SIZE,slot:"empty-state-illustration",children:f}):y?a.jsx("span",{"aria-hidden":"true",className:i.cn(q({align:l}),r==="md"&&l==="center"&&"mb-1"),"data-hook":`${e}-icon`,"data-slot":"empty-state-icon",children:y}):null,h=a.jsxs("div",{className:i.cn("flex flex-col gap-2",l==="center"&&"w-full items-center"),"data-slot":"empty-state-content",children:[a.jsx(I.TypographyHeading,{align:l==="center"?"center":"left","data-slot":"empty-state-title",dataHook:`${e}-title`,level:v??O[r],variant:L[r],children:b}),m?a.jsx(_.TypographyText,{align:l==="center"?"center":"left",className:"max-w-md",color:"muted","data-slot":"empty-state-description",dataHook:`${e}-message`,variant:"body-sm",children:m}):null,N?a.jsx("div",{className:i.cn("mt-2 flex items-center gap-4",l==="center"&&"justify-center"),"data-slot":"empty-state-actions",children:u}):null]});return r==="lg"?a.jsxs("div",{ref:s,className:i.cn("flex w-full flex-col items-center gap-6",n),"data-hook":e,"data-size":"lg","data-slot":"empty-state","data-tracking-el":g??"empty-state","data-tracking-label":p,...c,children:[x,h]}):a.jsxs("div",{ref:s,className:i.cn(l==="left"?"flex items-start gap-4 text-left":"flex flex-col items-center gap-2 text-center",n),"data-hook":e,"data-size":"md","data-slot":"empty-state","data-tracking-el":g??"empty-state","data-tracking-label":p,...c,children:[x,h]})});k.displayName="EmptyState";exports.EmptyState=k;
@@ -0,0 +1,172 @@
1
+ import { TypographyHeadingLevel } from '../typography-heading';
2
+ import * as React from "react";
3
+ /**
4
+ * Visual prominence of the block. It sets the title's role, the kind of
5
+ * visual, and the rhythm — never the layout, which stays the consumer's.
6
+ */
7
+ type EmptyStateSize = "md" | "lg";
8
+ /**
9
+ * Where an md block's content sits relative to its visual.
10
+ * - `center` — the column centres under the chip. For a standalone area the
11
+ * block fills: a zero-row table, a chart well, a panel.
12
+ * - `left` — the chip sits beside a left-aligned column, so the text joins the
13
+ * reading flow of the card it lives in rather than interrupting it.
14
+ *
15
+ * lg has no alignment: a page message is centred, full stop.
16
+ */
17
+ type EmptyStateAlign = "center" | "left";
18
+ /**
19
+ * The parts every empty state has, at either size.
20
+ */
21
+ interface EmptyStateBaseProps extends Omit<React.ComponentPropsWithoutRef<"div">, "title"> {
22
+ /**
23
+ * Required data-hook attribute for automated testing. The parts derive
24
+ * theirs from it: `-icon`, `-title`, `-message`.
25
+ * @example "locations-empty"
26
+ */
27
+ dataHook: string;
28
+ /**
29
+ * What is missing, as a real heading. Name the thing, not the condition:
30
+ * "No locations yet", never "Empty".
31
+ */
32
+ title: React.ReactNode;
33
+ /**
34
+ * One line under the title: what would put something here, or why there is
35
+ * nothing. May carry an inline link that reads as part of the sentence.
36
+ */
37
+ description?: React.ReactNode;
38
+ /**
39
+ * The actions row. Source order is the rendered order and the primary action
40
+ * goes last, so the CTA lands rightmost; a quiet
41
+ * `<Link variant="ghost" external>` comes before it. Never a second bordered
42
+ * button — two buttons of equal weight ask the reader to choose twice.
43
+ *
44
+ * Omit it entirely on a gated screen: the reader cannot act, and a button
45
+ * they are not allowed to press is worse than no button.
46
+ */
47
+ children?: React.ReactNode;
48
+ /**
49
+ * Document outline level for the title. Pick it as if CSS did not exist —
50
+ * the text's size comes from `size`, never from this.
51
+ * @default 3 at size md, 2 at size lg
52
+ */
53
+ titleLevel?: TypographyHeadingLevel;
54
+ /**
55
+ * Tracking element identifier for analytics.
56
+ */
57
+ trackingEl?: string;
58
+ /**
59
+ * Tracking label for analytics context.
60
+ */
61
+ trackingLabel?: string;
62
+ }
63
+ /**
64
+ * The block at md: filling one region of a working page.
65
+ */
66
+ interface EmptyStateMdProps extends EmptyStateBaseProps {
67
+ /**
68
+ * @default "md"
69
+ */
70
+ size?: "md";
71
+ /**
72
+ * Content alignment relative to the chip.
73
+ * @default "center"
74
+ */
75
+ align?: EmptyStateAlign;
76
+ /**
77
+ * The glyph in the muted chip, at its default 16px. Decorative: the wrapper
78
+ * is `aria-hidden`, so pass the glyph and nothing else.
79
+ * @example <MapPin />
80
+ */
81
+ icon?: React.ReactNode;
82
+ /**
83
+ * Not available at md — a 130px drawing inside a card outweighs the page
84
+ * around it. Use `size="lg"`, or pass an `icon`.
85
+ */
86
+ illustration?: never;
87
+ }
88
+ /**
89
+ * The block at lg: the whole page has nothing to show.
90
+ */
91
+ interface EmptyStateLgProps extends EmptyStateBaseProps {
92
+ size: "lg";
93
+ /**
94
+ * The screen's illustration. Decorative — mark it `aria-hidden`; the title
95
+ * and description carry the state on their own.
96
+ *
97
+ * Pass the illustration itself and do NOT set a size: the block renders it at
98
+ * the size the design specifies, whatever the element carries, so there is no
99
+ * number to get wrong per call site.
100
+ * @example <BusinessLocation aria-hidden />
101
+ */
102
+ illustration?: React.ReactNode;
103
+ /**
104
+ * A glyph in the muted chip, for a page with no illustration of its own.
105
+ * Ignored when `illustration` is set — a screen gets one visual, not two.
106
+ */
107
+ icon?: React.ReactNode;
108
+ /**
109
+ * Not available at lg: a page message is centred, full stop.
110
+ */
111
+ align?: never;
112
+ }
113
+ /**
114
+ * Props for the EmptyState block. `size` discriminates the two shapes.
115
+ */
116
+ export type EmptyStateProps = EmptyStateMdProps | EmptyStateLgProps;
117
+ /**
118
+ * The empty block: a visual, a title, one supporting line, and up to two
119
+ * actions. Pure content — compose the position around it: `size="lg"` inside
120
+ * `<Grid variant="centered">` for an empty page, `size="md"` inside the card, panel or
121
+ * table frame it speaks for.
122
+ *
123
+ * @example
124
+ * ```tsx
125
+ * // A zero-row collection, inside the table's own frame.
126
+ * <EmptyState
127
+ * dataHook="locations-empty"
128
+ * description="Add a location to start tracking visibility."
129
+ * icon={<MapPin />}
130
+ * title={t("locations.empty.title")}
131
+ * >
132
+ * <Button dataHook="locations-add" variant="secondary">
133
+ * <Plus aria-hidden="true" />
134
+ * Add location
135
+ * </Button>
136
+ * </EmptyState>
137
+ *
138
+ * // In a card's reading flow, with a quiet secondary action before the CTA.
139
+ * <EmptyState
140
+ * align="left"
141
+ * dataHook="reviews-empty"
142
+ * description={t("reviews.empty.description")}
143
+ * icon={<MessageSquareText />}
144
+ * title="No reviews yet"
145
+ * >
146
+ * <Link dataHook="reviews-docs" external href="/help/reviews" variant="ghost">
147
+ * How review sync works
148
+ * </Link>
149
+ * <Button dataHook="reviews-connect" variant="secondary">Connect profile</Button>
150
+ * </EmptyState>
151
+ *
152
+ * // The whole page is empty: lg, held at the page body's optical centre.
153
+ * <Grid dataHook="locations-empty-center" variant="centered">
154
+ * <EmptyState
155
+ * dataHook="locations-empty-page"
156
+ * description={t("locations.empty.description")}
157
+ * illustration={<BusinessLocation aria-hidden />}
158
+ * size="lg"
159
+ * title={t("locations.empty.title")}
160
+ * >
161
+ * <Button dataHook="locations-add">
162
+ * <Plus aria-hidden="true" />
163
+ * Add location
164
+ * </Button>
165
+ * </EmptyState>
166
+ * </Grid>
167
+ * ```
168
+ */
169
+ declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
170
+ export { EmptyState };
171
+ export type { EmptyStateAlign, EmptyStateSize };
172
+ //# sourceMappingURL=empty-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../../src/blocks/empty-state.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,kCAAkC,CAAC;AA8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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,QAAA,MAAM,UAAU,wFAiKf,CAAC;AAIF,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,155 @@
1
+ import { jsx as n, jsxs as c } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import { cva as L } from "class-variance-authority";
4
+ import { cn as s } from "@brightlocal/ui-components/lib/utils";
5
+ import { TypographyHeading as T } from "../typography-heading.js";
6
+ import { TypographyText as A } from "../typography-text.js";
7
+ import { BlockIllustration as S, BLOCK_ILLUSTRATION_SIZE as b } from "../lib/block-illustration.js";
8
+ const _ = {
9
+ md: "section",
10
+ lg: "page"
11
+ }, z = {
12
+ // An lg block is the page's message, under the layout's own page header,
13
+ // which owns h1.
14
+ lg: 2,
15
+ md: 3
16
+ }, H = L(
17
+ "bg-muted text-muted-foreground flex size-10 items-center justify-center rounded-full",
18
+ {
19
+ variants: {
20
+ align: { center: "", left: "shrink-0" }
21
+ },
22
+ defaultVariants: { align: "center" }
23
+ }
24
+ ), j = i.forwardRef(
25
+ (r, d) => {
26
+ const {
27
+ className: m,
28
+ dataHook: a,
29
+ title: v,
30
+ description: p,
31
+ children: g,
32
+ titleLevel: E,
33
+ trackingEl: f,
34
+ trackingLabel: y,
35
+ size: e = "md",
36
+ ...N
37
+ } = r, u = r.icon, h = r.illustration, t = e === "lg" ? "center" : r.align ?? "center", l = N;
38
+ delete l.icon, delete l.illustration, delete l.align;
39
+ const I = i.Children.toArray(g).flatMap(
40
+ (o) => i.isValidElement(o) && o.type === i.Fragment ? i.Children.toArray(
41
+ o.props.children
42
+ ) : [o]
43
+ ).length > 0, x = e === "lg" && h ? /* @__PURE__ */ n(
44
+ S,
45
+ {
46
+ size: b,
47
+ slot: "empty-state-illustration",
48
+ children: h
49
+ }
50
+ ) : u ? /* @__PURE__ */ n(
51
+ "span",
52
+ {
53
+ "aria-hidden": "true",
54
+ className: s(
55
+ H({ align: t }),
56
+ /* The chip's 4px of extra breathing room belongs to the title
57
+ under it — the lg column sets its own 16px rhythm instead. */
58
+ e === "md" && t === "center" && "mb-1"
59
+ ),
60
+ "data-hook": `${a}-icon`,
61
+ "data-slot": "empty-state-icon",
62
+ children: u
63
+ }
64
+ ) : null, k = /* @__PURE__ */ c(
65
+ "div",
66
+ {
67
+ className: s(
68
+ "flex flex-col gap-2",
69
+ t === "center" && "w-full items-center"
70
+ ),
71
+ "data-slot": "empty-state-content",
72
+ children: [
73
+ /* @__PURE__ */ n(
74
+ T,
75
+ {
76
+ align: t === "center" ? "center" : "left",
77
+ "data-slot": "empty-state-title",
78
+ dataHook: `${a}-title`,
79
+ level: E ?? z[e],
80
+ variant: _[e],
81
+ children: v
82
+ }
83
+ ),
84
+ p ? (
85
+ /* Capped at 28rem: a single line of support reads as one thought
86
+ only while it stays a couple of lines long. */
87
+ /* @__PURE__ */ n(
88
+ A,
89
+ {
90
+ align: t === "center" ? "center" : "left",
91
+ className: "max-w-md",
92
+ color: "muted",
93
+ "data-slot": "empty-state-description",
94
+ dataHook: `${a}-message`,
95
+ variant: "body-sm",
96
+ children: p
97
+ }
98
+ )
99
+ ) : null,
100
+ I ? /* @__PURE__ */ n(
101
+ "div",
102
+ {
103
+ className: s(
104
+ "mt-2 flex items-center gap-4",
105
+ t === "center" && "justify-center"
106
+ ),
107
+ "data-slot": "empty-state-actions",
108
+ children: g
109
+ }
110
+ ) : null
111
+ ]
112
+ }
113
+ );
114
+ return e === "lg" ? /* @__PURE__ */ c(
115
+ "div",
116
+ {
117
+ ref: d,
118
+ className: s("flex w-full flex-col items-center gap-6", m),
119
+ "data-hook": a,
120
+ "data-size": "lg",
121
+ "data-slot": "empty-state",
122
+ "data-tracking-el": f ?? "empty-state",
123
+ "data-tracking-label": y,
124
+ ...l,
125
+ children: [
126
+ x,
127
+ k
128
+ ]
129
+ }
130
+ ) : /* @__PURE__ */ c(
131
+ "div",
132
+ {
133
+ ref: d,
134
+ className: s(
135
+ t === "left" ? "flex items-start gap-4 text-left" : "flex flex-col items-center gap-2 text-center",
136
+ m
137
+ ),
138
+ "data-hook": a,
139
+ "data-size": "md",
140
+ "data-slot": "empty-state",
141
+ "data-tracking-el": f ?? "empty-state",
142
+ "data-tracking-label": y,
143
+ ...l,
144
+ children: [
145
+ x,
146
+ k
147
+ ]
148
+ }
149
+ );
150
+ }
151
+ );
152
+ j.displayName = "EmptyState";
153
+ export {
154
+ j as EmptyState
155
+ };
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),_=require("react"),R=require("framer-motion"),M=require("@brightlocal/icons"),y=require("@brightlocal/ui-components/lib/utils"),K=require("@brightlocal/ui-components/hooks/use-prefers-reduced-motion"),O=require("../lib/motion.cjs"),$=require("../button.cjs"),B=require("../input.cjs"),x=require("../list.cjs");function V(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(o,a,i.get?i:{enumerable:!0,get:()=>t[a]})}}return o.default=t,Object.freeze(o)}const r=V(_),P=r.createContext(null);function j(){const t=r.useContext(P);if(!t)throw new Error("InputList components must be used within an <InputList>");return t}function k({value:t,onValueChange:o,children:a,className:i,dataHook:c,trackingEl:u,trackingLabel:g}){const[f,m]=r.useState(""),h=r.useRef(t.length),e=r.useRef(t.length),[l,I]=r.useState(()=>t.map((p,s)=>s)),[w,C]=r.useState(0);r.useEffect(()=>{const p=h.current;h.current=t.length,t.length>p&&m(""),I(s=>s.length===t.length?s:t.length>s.length?[...s,...Array.from({length:t.length-s.length},()=>e.current++)]:s.slice(0,t.length))},[t,w]);const b=r.useCallback(p=>{const s=p.map(d=>d.trim()).filter(Boolean);s.length&&(I(d=>[...d,...s.map(()=>e.current++)]),o([...t,...s]),C(d=>d+1))},[t,o]),L=r.useCallback(p=>{I(s=>s.filter((d,D)=>D!==p)),o(t.filter((s,d)=>d!==p))},[t,o]),S=r.useMemo(()=>({value:t,inputValue:f,setInputValue:m,addItems:b,removeItem:L,stableKeys:l}),[t,f,b,L,l]);return n.jsx(P.Provider,{value:S,children:n.jsx("div",{className:y.cn("flex flex-col gap-4",i),"data-hook":c,"data-slot":"input-list","data-tracking-el":u,"data-tracking-label":g,children:a})})}k.displayName="InputList";function A({dataHook:t="input-list",loading:o=!1,skeletonCount:a=5,disabled:i=!1,removeAriaLabel:c,className:u}){const{value:g,removeItem:f,stableKeys:m}=j(),h=K.usePrefersReducedMotion();return o?n.jsx("ul",{className:y.cn("flex flex-col gap-2",u),"data-slot":"input-list-skeleton",children:Array.from({length:a}).map((e,l)=>n.jsx(x.Item,{variant:"loading"},l))}):n.jsx("ul",{className:y.cn("flex flex-col gap-2",u),"data-hook":`${t}-list`,"data-slot":"list",children:n.jsx(R.AnimatePresence,{initial:!1,mode:"popLayout",children:g.map((e,l)=>n.jsx(R.motion.li,{layout:!0,animate:{opacity:1,scale:1},"data-hook":`${t}-item-${l}`,exit:{opacity:0,scale:.8,transition:{opacity:{duration:.15},scale:{duration:.12}}},initial:h?!1:{opacity:0,scale:.8},transition:{opacity:{duration:.15},scale:{duration:.15},layout:O.SPRING_SNAPPY},children:n.jsx(x.Item,{asChild:!0,variant:"filled",children:n.jsxs("div",{children:[n.jsx(x.ItemContent,{children:n.jsx(x.ItemTitle,{children:e})}),n.jsx(x.ItemActions,{children:n.jsx("button",{"aria-label":c?c.replace("{item}",e):`Remove ${e}`,className:y.cn("inline-flex size-9 cursor-pointer items-center justify-center rounded-full","text-muted-foreground","focus-visible:shadow-default outline-none","duration-fast transition-colors ease-out","disabled:pointer-events-none disabled:opacity-50"),"data-hook":`${t}-remove-${l}`,disabled:i,type:"button",onClick:()=>f(l),children:n.jsx(M.X,{})})})]})})},m[l]))})})}A.displayName="InputListItems";const N=r.forwardRef(({dataHook:t,error:o=!1,className:a,...i},c)=>{const{inputValue:u,setInputValue:g,addItems:f}=j(),m=e=>{e.key==="Enter"&&(e.preventDefault(),f([u])),i.onKeyDown?.(e)},h=e=>{const I=e.clipboardData.getData("text").split(`
2
- `);I.length>1&&(e.preventDefault(),f(I)),i.onPaste?.(e)};return n.jsx(B.Input,{ref:c,...i,className:y.cn("flex-1",a),dataHook:t,error:o,value:u,onChange:e=>{g(e.target.value),i.onChange?.(e)},onKeyDown:m,onPaste:h})});N.displayName="InputListInput";const q=r.forwardRef(({dataHook:t,children:o,...a},i)=>{const{inputValue:c,addItems:u}=j();return n.jsx($.Button,{ref:i,...a,dataHook:t,onClick:()=>u([c]),children:o})});q.displayName="InputListAddButton";exports.InputList=k;exports.InputListAddButton=q;exports.InputListInput=N;exports.InputListItems=A;exports.useInputListContext=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),C=require("react"),L=require("framer-motion"),S=require("@brightlocal/icons"),y=require("@brightlocal/ui-components/lib/utils"),D=require("@brightlocal/ui-components/hooks/use-prefers-reduced-motion"),_=require("../lib/motion.cjs"),A=require("../button.cjs"),M=require("../input.cjs"),x=require("../list.cjs");function K(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const i=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(s,l,i.get?i:{enumerable:!0,get:()=>t[l]})}}return s.default=t,Object.freeze(s)}const r=K(C),k=r.createContext(null);function j(){const t=r.useContext(k);if(!t)throw new Error("InputList components must be used within an <InputList>");return t}function P({value:t,onValueChange:s,children:l,className:i,dataHook:p,trackingEl:c,trackingLabel:h}){const[f,g]=r.useState(""),I=r.useRef(t.length),[e,a]=r.useState(()=>({keys:t.map((u,d)=>d),nextId:t.length,pendingRemoval:null}));let o=e.keys;if(o.length!==t.length){const u=t.length>o.length?{keys:[...o,...Array.from({length:t.length-o.length},(d,m)=>e.nextId+m)],nextId:e.nextId+(t.length-o.length),pendingRemoval:null}:{keys:e.pendingRemoval!==null&&o.length-t.length===1?o.filter((d,m)=>m!==e.pendingRemoval):o.slice(0,t.length),nextId:e.nextId,pendingRemoval:null};o=u.keys,a(u)}else e.pendingRemoval!==null&&a({...e,pendingRemoval:null});r.useEffect(()=>{const u=I.current;I.current=t.length,t.length>u&&g("")},[t]);const b=r.useCallback(u=>{const d=u.map(m=>m.trim()).filter(Boolean);d.length&&s([...t,...d])},[t,s]),R=r.useCallback(u=>{a(d=>({...d,pendingRemoval:u})),s(t.filter((d,m)=>m!==u))},[t,s]),w=r.useMemo(()=>({value:t,inputValue:f,setInputValue:g,addItems:b,removeItem:R,stableKeys:o}),[t,f,b,R,o]);return n.jsx(k.Provider,{value:w,children:n.jsx("div",{className:y.cn("flex flex-col gap-4",i),"data-hook":p,"data-slot":"input-list","data-tracking-el":c,"data-tracking-label":h,children:l})})}P.displayName="InputList";function v({dataHook:t="input-list",loading:s=!1,skeletonCount:l=5,disabled:i=!1,removeAriaLabel:p,className:c}){const{value:h,removeItem:f,stableKeys:g}=j(),I=D.usePrefersReducedMotion();return s?n.jsx("ul",{className:y.cn("flex flex-col gap-2",c),"data-slot":"input-list-skeleton",children:Array.from({length:l}).map((e,a)=>n.jsx(x.Item,{variant:"loading"},a))}):n.jsx("ul",{className:y.cn("flex flex-col gap-2",c),"data-hook":`${t}-list`,"data-slot":"list",children:n.jsx(L.AnimatePresence,{initial:!1,mode:"popLayout",children:h.map((e,a)=>n.jsx(L.motion.li,{layout:!0,animate:{opacity:1,scale:1},"data-hook":`${t}-item-${a}`,exit:{opacity:0,scale:.8,transition:{opacity:{duration:.15},scale:{duration:.12}}},initial:I?!1:{opacity:0,scale:.8},transition:{opacity:{duration:.15},scale:{duration:.15},layout:_.SPRING_SNAPPY},children:n.jsx(x.Item,{asChild:!0,variant:"filled",children:n.jsxs("div",{children:[n.jsx(x.ItemContent,{children:n.jsx(x.ItemTitle,{children:e})}),n.jsx(x.ItemActions,{children:n.jsx("button",{"aria-label":p?p.replace("{item}",e):`Remove ${e}`,className:y.cn("inline-flex size-9 cursor-pointer items-center justify-center rounded-full","text-muted-foreground","focus-visible:shadow-default outline-none","duration-fast transition-colors ease-out","disabled:pointer-events-none disabled:opacity-50"),"data-hook":`${t}-remove-${a}`,disabled:i,type:"button",onClick:()=>f(a),children:n.jsx(S.X,{})})})]})})},g[a]))})})}v.displayName="InputListItems";const N=r.forwardRef(({dataHook:t,error:s=!1,className:l,...i},p)=>{const{inputValue:c,setInputValue:h,addItems:f}=j(),g=e=>{e.key==="Enter"&&(e.preventDefault(),f([c])),i.onKeyDown?.(e)},I=e=>{const o=e.clipboardData.getData("text").split(`
2
+ `);o.length>1&&(e.preventDefault(),f(o)),i.onPaste?.(e)};return n.jsx(M.Input,{ref:p,...i,className:y.cn("flex-1",l),dataHook:t,error:s,value:c,onChange:e=>{h(e.target.value),i.onChange?.(e)},onKeyDown:g,onPaste:I})});N.displayName="InputListInput";const q=r.forwardRef(({dataHook:t,children:s,...l},i)=>{const{inputValue:p,addItems:c}=j();return n.jsx(A.Button,{ref:i,...l,dataHook:t,onClick:()=>c([p]),children:s})});q.displayName="InputListAddButton";exports.InputList=P;exports.InputListAddButton=q;exports.InputListInput=N;exports.InputListItems=v;exports.useInputListContext=j;
@@ -1 +1 @@
1
- {"version":3,"file":"input-list.d.ts","sourceRoot":"","sources":["../../src/blocks/input-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAQhE,UAAU,qBAAqB;IAC7B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACpC,UAAU,EAAE,CAAC,KAAK,EAAE,MAA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