@brightlocal/ui-components 2.11.0 → 2.13.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 (154) hide show
  1. package/component-meta.json +474 -27
  2. package/dist/blocks/data-table.cjs +1 -1
  3. package/dist/blocks/data-table.d.ts +16 -4
  4. package/dist/blocks/data-table.d.ts.map +1 -1
  5. package/dist/blocks/data-table.js +57 -53
  6. package/dist/blocks/input-list.cjs +2 -2
  7. package/dist/blocks/input-list.d.ts +7 -1
  8. package/dist/blocks/input-list.d.ts.map +1 -1
  9. package/dist/blocks/input-list.js +82 -81
  10. package/dist/blocks/sidebar.cjs +1 -1
  11. package/dist/blocks/sidebar.d.ts +221 -11
  12. package/dist/blocks/sidebar.d.ts.map +1 -1
  13. package/dist/blocks/sidebar.js +687 -406
  14. package/dist/breadcrumb.cjs +1 -1
  15. package/dist/breadcrumb.d.ts +14 -2
  16. package/dist/breadcrumb.d.ts.map +1 -1
  17. package/dist/breadcrumb.js +37 -37
  18. package/dist/callout.cjs +1 -1
  19. package/dist/callout.d.ts +3 -3
  20. package/dist/callout.d.ts.map +1 -1
  21. package/dist/callout.js +2 -1
  22. package/dist/carousel.cjs +1 -1
  23. package/dist/carousel.d.ts +24 -3
  24. package/dist/carousel.d.ts.map +1 -1
  25. package/dist/carousel.js +121 -117
  26. package/dist/chip.cjs +1 -1
  27. package/dist/chip.d.ts +11 -0
  28. package/dist/chip.d.ts.map +1 -1
  29. package/dist/chip.js +43 -38
  30. package/dist/combobox.cjs +3 -3
  31. package/dist/combobox.d.ts +20 -2
  32. package/dist/combobox.d.ts.map +1 -1
  33. package/dist/combobox.js +244 -238
  34. package/dist/command.cjs +1 -1
  35. package/dist/command.d.ts +5 -0
  36. package/dist/command.d.ts.map +1 -1
  37. package/dist/command.js +207 -206
  38. package/dist/date-picker.cjs +1 -1
  39. package/dist/date-picker.d.ts +10 -0
  40. package/dist/date-picker.d.ts.map +1 -1
  41. package/dist/date-picker.js +96 -96
  42. package/dist/dialog.cjs +1 -1
  43. package/dist/dialog.d.ts +7 -2
  44. package/dist/dialog.d.ts.map +1 -1
  45. package/dist/dialog.js +38 -30
  46. package/dist/drawer.d.ts +2 -2
  47. package/dist/dropdown-menu.cjs +1 -1
  48. package/dist/dropdown-menu.js +1 -1
  49. package/dist/global-layout.cjs +1 -1
  50. package/dist/global-layout.d.ts +5 -0
  51. package/dist/global-layout.d.ts.map +1 -1
  52. package/dist/global-layout.js +15 -7
  53. package/dist/index.cjs +1 -1
  54. package/dist/index.js +313 -305
  55. package/dist/input-chip.cjs +1 -1
  56. package/dist/input-chip.d.ts +7 -1
  57. package/dist/input-chip.d.ts.map +1 -1
  58. package/dist/input-chip.js +131 -130
  59. package/dist/input-group.d.ts +1 -1
  60. package/dist/input-password.cjs +1 -1
  61. package/dist/input-password.d.ts +10 -0
  62. package/dist/input-password.d.ts.map +1 -1
  63. package/dist/input-password.js +108 -106
  64. package/dist/link.cjs +1 -1
  65. package/dist/link.d.ts +1 -1
  66. package/dist/link.d.ts.map +1 -1
  67. package/dist/link.js +36 -37
  68. package/dist/list.cjs +1 -1
  69. package/dist/list.d.ts +25 -4
  70. package/dist/list.d.ts.map +1 -1
  71. package/dist/list.js +71 -53
  72. package/dist/logo.cjs +1 -1
  73. package/dist/logo.d.ts +6 -1
  74. package/dist/logo.d.ts.map +1 -1
  75. package/dist/logo.js +25 -22
  76. package/dist/map.cjs +1 -1
  77. package/dist/map.d.ts +17 -2
  78. package/dist/map.d.ts.map +1 -1
  79. package/dist/map.js +32 -26
  80. package/dist/pagination.cjs +1 -1
  81. package/dist/pagination.d.ts +29 -3
  82. package/dist/pagination.d.ts.map +1 -1
  83. package/dist/pagination.js +26 -25
  84. package/dist/popover.cjs +1 -1
  85. package/dist/popover.js +7 -7
  86. package/dist/rating.cjs +1 -1
  87. package/dist/rating.d.ts +6 -0
  88. package/dist/rating.d.ts.map +1 -1
  89. package/dist/rating.js +28 -20
  90. package/dist/resizable.d.ts +1 -1
  91. package/dist/select.cjs +2 -2
  92. package/dist/select.d.ts +17 -3
  93. package/dist/select.d.ts.map +1 -1
  94. package/dist/select.js +65 -58
  95. package/dist/separator.cjs +1 -1
  96. package/dist/separator.d.ts +16 -4
  97. package/dist/separator.d.ts.map +1 -1
  98. package/dist/separator.js +38 -35
  99. package/dist/sheet.cjs +1 -1
  100. package/dist/sheet.d.ts +6 -1
  101. package/dist/sheet.d.ts.map +1 -1
  102. package/dist/sheet.js +42 -41
  103. package/dist/skeleton.cjs +1 -1
  104. package/dist/skeleton.d.ts +5 -0
  105. package/dist/skeleton.d.ts.map +1 -1
  106. package/dist/skeleton.js +13 -11
  107. package/dist/table.cjs +1 -1
  108. package/dist/table.d.ts +14 -0
  109. package/dist/table.d.ts.map +1 -1
  110. package/dist/table.js +57 -39
  111. package/dist/tabs.cjs +1 -1
  112. package/dist/tabs.d.ts +25 -9
  113. package/dist/tabs.d.ts.map +1 -1
  114. package/dist/tabs.js +128 -113
  115. package/dist/text-reveal-motion.cjs +1 -1
  116. package/dist/text-reveal-motion.d.ts +5 -0
  117. package/dist/text-reveal-motion.d.ts.map +1 -1
  118. package/dist/text-reveal-motion.js +111 -110
  119. package/dist/typography.cjs +1 -1
  120. package/dist/typography.d.ts +1 -2
  121. package/dist/typography.d.ts.map +1 -1
  122. package/dist/typography.js +49 -50
  123. package/package.json +2 -3
  124. package/src/blocks/data-table.tsx +26 -9
  125. package/src/blocks/input-list.tsx +12 -1
  126. package/src/blocks/sidebar.tsx +638 -29
  127. package/src/components/breadcrumb.tsx +43 -26
  128. package/src/components/callout.tsx +5 -4
  129. package/src/components/carousel.tsx +33 -4
  130. package/src/components/chip.tsx +22 -2
  131. package/src/components/combobox.tsx +28 -3
  132. package/src/components/command.tsx +7 -1
  133. package/src/components/date-picker.tsx +17 -3
  134. package/src/components/dialog.tsx +17 -4
  135. package/src/components/drawer.tsx +2 -2
  136. package/src/components/dropdown-menu.tsx +1 -1
  137. package/src/components/global-layout.tsx +15 -2
  138. package/src/components/input-chip.tsx +12 -1
  139. package/src/components/input-password.tsx +73 -49
  140. package/src/components/link.tsx +29 -17
  141. package/src/components/list.tsx +45 -2
  142. package/src/components/logo.tsx +10 -2
  143. package/src/components/map.tsx +23 -0
  144. package/src/components/pagination.tsx +44 -11
  145. package/src/components/popover.tsx +1 -1
  146. package/src/components/rating.tsx +21 -3
  147. package/src/components/select.tsx +33 -3
  148. package/src/components/separator.tsx +40 -25
  149. package/src/components/sheet.tsx +28 -20
  150. package/src/components/skeleton.tsx +13 -2
  151. package/src/components/table.tsx +39 -2
  152. package/src/components/tabs.tsx +195 -146
  153. package/src/components/text-reveal-motion.tsx +7 -1
  154. package/src/components/typography.tsx +6 -7
package/dist/list.js CHANGED
@@ -1,8 +1,8 @@
1
- import { jsx as o, jsxs as p, Fragment as g } from "react/jsx-runtime";
2
- import * as i from "react";
3
- import { Slot as u } from "@radix-ui/react-slot";
1
+ import { jsx as o, jsxs as p, Fragment as u } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import { Slot as g } from "@radix-ui/react-slot";
4
4
  import { cva as x } from "class-variance-authority";
5
- import { cn as l } from "@brightlocal/ui-components/lib/utils";
5
+ import { cn as r } from "@brightlocal/ui-components/lib/utils";
6
6
  import { Skeleton as m } from "@brightlocal/ui-components/skeleton";
7
7
  const N = x(
8
8
  [
@@ -20,6 +20,7 @@ const N = x(
20
20
  {
21
21
  variants: {
22
22
  variant: {
23
+ default: [],
23
24
  filled: ["bg-card"],
24
25
  outline: ["bg-background", "border", "border-border"],
25
26
  loading: ["flex-col", "gap-2", "px-0", "pt-0", "pb-3"]
@@ -29,119 +30,136 @@ const N = x(
29
30
  variant: "filled"
30
31
  }
31
32
  }
32
- ), I = i.forwardRef(
33
- ({ className: e, dataHook: a, trackingEl: t, trackingLabel: r, ...s }, d) => /* @__PURE__ */ o(
33
+ ), b = l.forwardRef(
34
+ ({ className: t, dataHook: a, trackingEl: e, trackingLabel: s, ...i }, d) => /* @__PURE__ */ o(
34
35
  "ul",
35
36
  {
36
37
  ref: d,
37
- className: l("flex flex-col gap-2", e),
38
+ className: r("flex flex-col gap-2", t),
38
39
  "data-hook": a,
39
40
  "data-slot": "list",
40
- "data-tracking-el": t,
41
- "data-tracking-label": r,
42
- ...s
41
+ "data-tracking-el": e,
42
+ "data-tracking-label": s,
43
+ ...i
43
44
  }
44
45
  )
45
46
  );
46
- I.displayName = "List";
47
- const b = i.forwardRef(
47
+ b.displayName = "List";
48
+ const I = l.forwardRef(
48
49
  ({
49
- asChild: e = !1,
50
+ asChild: t = !1,
50
51
  className: a,
51
- variant: t,
52
- dataHook: r,
53
- trackingEl: s,
52
+ variant: e,
53
+ dataHook: s,
54
+ trackingEl: i,
54
55
  trackingLabel: d,
55
56
  children: n,
56
57
  ...c
57
58
  }, f) => /* @__PURE__ */ o(
58
- e ? u : "li",
59
+ t ? g : "li",
59
60
  {
60
61
  ref: f,
61
- className: l(N({ variant: t }), a),
62
- "data-hook": r,
62
+ className: r(N({ variant: e }), a),
63
+ "data-hook": s,
63
64
  "data-slot": "item",
64
- "data-tracking-el": s,
65
+ "data-tracking-el": i,
65
66
  "data-tracking-label": d,
66
67
  ...c,
67
- children: t === "loading" ? /* @__PURE__ */ p(g, { children: [
68
+ children: e === "loading" ? /* @__PURE__ */ p(u, { children: [
68
69
  /* @__PURE__ */ o(m, { className: "h-4 w-full" }),
69
70
  /* @__PURE__ */ o(m, { className: "h-4 w-full" })
70
71
  ] }) : n
71
72
  }
72
73
  )
73
74
  );
74
- b.displayName = "Item";
75
- const k = i.forwardRef(
76
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
75
+ I.displayName = "Item";
76
+ const h = l.forwardRef(
77
+ ({ className: t, ...a }, e) => /* @__PURE__ */ o(
77
78
  "div",
78
79
  {
79
- ref: t,
80
- className: l("shrink-0", e),
80
+ ref: e,
81
+ className: r("shrink-0", t),
81
82
  "data-slot": "item-media",
82
83
  ...a
83
84
  }
84
85
  )
85
86
  );
86
- k.displayName = "ItemMedia";
87
- const w = i.forwardRef(
88
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
87
+ h.displayName = "ItemMedia";
88
+ const k = l.forwardRef(
89
+ ({ className: t, ...a }, e) => /* @__PURE__ */ o(
89
90
  "div",
90
91
  {
91
- ref: t,
92
- className: l("flex flex-1 flex-col gap-1", e),
92
+ ref: e,
93
+ className: r("flex flex-1 flex-col gap-1", t),
93
94
  "data-slot": "item-content",
94
95
  ...a
95
96
  }
96
97
  )
97
98
  );
98
- w.displayName = "ItemContent";
99
- const y = i.forwardRef(
100
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
99
+ k.displayName = "ItemContent";
100
+ const y = l.forwardRef(
101
+ ({ className: t, ...a }, e) => /* @__PURE__ */ o(
101
102
  "div",
102
103
  {
103
- ref: t,
104
- className: l("text-foreground text-lg font-medium", e),
104
+ ref: e,
105
+ className: r("text-foreground text-lg font-medium", t),
105
106
  "data-slot": "item-title",
106
107
  ...a
107
108
  }
108
109
  )
109
110
  );
110
111
  y.displayName = "ItemTitle";
111
- const h = i.forwardRef(
112
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
112
+ const w = l.forwardRef(
113
+ ({ className: t, ...a }, e) => /* @__PURE__ */ o(
113
114
  "div",
114
115
  {
115
- ref: t,
116
- className: l("text-muted-foreground text-base", e),
116
+ ref: e,
117
+ className: r("text-muted-foreground text-base", t),
117
118
  "data-slot": "item-description",
118
119
  ...a
119
120
  }
120
121
  )
121
122
  );
122
- h.displayName = "ItemDescription";
123
- const v = i.forwardRef(
124
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
123
+ w.displayName = "ItemDescription";
124
+ const R = l.forwardRef(
125
+ ({ className: t, ...a }, e) => /* @__PURE__ */ o(
125
126
  "div",
126
127
  {
127
- ref: t,
128
- className: l(
128
+ ref: e,
129
+ className: r(
129
130
  "text-muted-foreground flex size-9 shrink-0 items-center justify-center rounded-full",
130
- e
131
+ t
131
132
  ),
132
133
  "data-slot": "item-actions",
133
134
  ...a
134
135
  }
135
136
  )
136
137
  );
137
- v.displayName = "ItemActions";
138
+ R.displayName = "ItemActions";
139
+ const v = l.forwardRef(
140
+ ({ className: t, dataHook: a, ...e }, s) => /* @__PURE__ */ o(
141
+ "li",
142
+ {
143
+ ref: s,
144
+ className: r(
145
+ "text-muted-foreground flex items-center py-2 pr-2 pl-4 text-base leading-none font-medium",
146
+ t
147
+ ),
148
+ "data-hook": a,
149
+ "data-slot": "item-subheader",
150
+ ...e
151
+ }
152
+ )
153
+ );
154
+ v.displayName = "ItemSubheader";
138
155
  export {
139
- b as Item,
140
- v as ItemActions,
141
- w as ItemContent,
142
- h as ItemDescription,
143
- k as ItemMedia,
156
+ I as Item,
157
+ R as ItemActions,
158
+ k as ItemContent,
159
+ w as ItemDescription,
160
+ h as ItemMedia,
161
+ v as ItemSubheader,
144
162
  y as ItemTitle,
145
- I as List,
163
+ b as List,
146
164
  N as itemVariants
147
165
  };
package/dist/logo.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),s=require("class-variance-authority"),n=require("@brightlocal/ui-components/lib/utils"),c=s.cva("inline-flex text-brand-primary-foreground",{variants:{variant:{logotype:"h-6",mark:"w-6 h-6"}},defaultVariants:{variant:"logotype"}});function l({className:t,variant:i="logotype",dataHook:e,trackingEl:r,trackingLabel:o,...a}){return C.jsxs("div",{"aria-label":"BrightLocal Logo",className:n.cn(c({variant:i}),t),"data-hook":e,"data-slot":"logo","data-tracking-el":r,"data-tracking-label":o,"data-variant":i,role:"img",...a,children:[i==="logotype"&&C.jsxs("svg",{fill:"none",height:"24",viewBox:"0 0 128 24.1509",width:"128",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("g",{clipPath:"url(#clip0_18315_468855)",children:C.jsx("path",{d:"M53.8012 6.13184C55.2785 6.13191 56.4277 6.69033 57.3579 7.75H57.4126V6.2998H60.7505V18.2354C60.7505 20.0759 60.1485 21.5262 58.9995 22.5859C57.8506 23.6455 56.3185 24.1473 54.4585 24.1475C51.5584 24.1475 49.588 23.0319 48.5483 20.7451L51.23 19.1279C51.8866 20.4664 52.9265 21.1357 54.3491 21.1357C56.0997 21.1355 57.3032 20.187 57.3032 18.3467V16.5625H57.2485C56.4278 17.622 55.333 18.124 53.9106 18.124C52.2693 18.124 50.9014 17.5657 49.8618 16.3945C48.8223 15.2791 48.275 13.8293 48.2749 12.1562C48.2749 10.5945 48.7675 9.14395 49.8071 7.97266C50.8467 6.74577 52.1599 6.13189 53.8012 6.13184ZM93.7456 6.07617C95.4964 6.07624 97.0292 6.69017 98.2329 7.86133C99.4366 9.03255 100.093 10.4829 100.093 12.2676C100.093 14.0523 99.4912 15.5582 98.2329 16.7295C96.9744 17.9007 95.4965 18.5146 93.6909 18.5146C91.8855 18.5146 90.4083 17.9564 89.1499 16.7295C87.9461 15.5582 87.2895 14.108 87.2895 12.3232C87.3443 10.5386 87.9461 9.03255 89.2046 7.86133C90.4629 6.63457 91.9949 6.07627 93.7456 6.07617ZM106.879 6.13184C109.506 6.13207 111.64 7.4711 112.406 9.81348L109.396 11.0957C108.904 9.92489 108.028 9.31177 106.879 9.31152C105.293 9.31152 104.088 10.4826 104.088 12.3232C104.088 14.108 105.238 15.335 106.879 15.335C108.083 15.3347 108.958 14.7766 109.451 13.5498L112.46 14.833C111.585 17.2311 109.451 18.5144 106.825 18.5146C105.019 18.4589 103.541 17.9007 102.337 16.7295C101.134 15.5582 100.586 14.108 100.586 12.3232C100.586 10.5384 101.188 9.08828 102.447 7.91699C103.651 6.69002 105.183 6.13184 106.879 6.13184ZM25.4555 7.75293H25.5649C26.4404 6.63751 27.6442 6.0791 29.1216 6.0791C30.7628 6.07926 32.0762 6.69291 33.1157 7.97559C34.1553 9.20262 34.6479 10.6531 34.6479 12.2705C34.6479 13.8879 34.1005 15.3384 33.061 16.5654C31.9668 17.7922 30.6533 18.4617 29.0122 18.4619C27.4802 18.4619 26.2763 17.9034 25.4555 16.7881H25.3999V18.2383H22.063V0.0556641H25.4555V7.75293ZM118.424 6.02051C121.488 6.02061 123.513 7.69329 123.513 10.8164V18.1787H120.34V16.7295H120.286C119.52 17.8449 118.315 18.4579 116.783 18.458C115.689 18.4022 114.759 18.1232 113.993 17.4541C113.227 16.7848 112.843 15.9483 112.843 14.8887V14.833C112.843 13.4388 113.5 12.379 114.594 11.877C115.688 11.3751 116.783 11.1514 118.041 11.1514H119.191C119.793 11.1512 120.121 10.8722 120.121 10.2588C120.12 9.42233 119.464 8.80869 118.26 8.80859C117.111 8.8087 116.236 9.3672 115.689 10.4268L113.062 8.86426C114.047 6.96816 115.853 6.02061 118.424 6.02051ZM78.9184 6.2998H81.8188V9.31152H78.9184V13.4385C78.9184 14.777 79.6299 15.3349 80.9428 15.335C81.2163 15.335 81.4907 15.3351 81.7094 15.2236V18.124C81.2171 18.2913 80.6696 18.3467 80.1225 18.3467C77.0583 18.3467 75.4712 16.6736 75.4712 13.8848V9.31152H73.3921V6.2998H75.5259V2.5625H78.9184V6.2998ZM65.3481 7.69336C65.7858 7.07999 66.2786 6.63424 66.8803 6.41113C67.5368 6.18809 68.0843 6.07617 68.5219 6.07617C69.9445 6.07623 70.9845 6.52258 71.6958 7.4707C72.4069 8.36306 72.7895 9.47894 72.7895 10.8174V18.2354H69.4526V11.5977C69.4525 10.2592 68.7402 9.25503 67.4272 9.25488C66.0595 9.25506 65.3482 10.2593 65.3481 11.542V18.1797H61.9555V0.0527344H65.3481V7.69336ZM47.2329 18.1826H43.7856V6.30273H47.2329V18.1826ZM42.1469 6.1875C42.4203 6.1875 42.6391 6.18837 42.8032 6.2998V9.69336C42.548 9.64804 42.2928 9.64649 42.0376 9.64648C39.8488 9.64648 38.8637 11.0407 38.8637 13.1602V18.1797H35.4712V6.2998H38.8637V8.13965C39.3563 7.02434 40.615 6.18751 42.1469 6.1875ZM86.3598 18.1797H82.9126V0.0527344H86.3598V18.1797ZM128 18.1797H124.553V0.0527344H128V18.1797ZM8.71433 18.0176C8.80009 18.0818 8.88699 18.1279 8.98484 18.1279H8.76609C8.74808 18.1279 8.73185 18.0857 8.71433 18.0176ZM13.0337 2.56641C14.6751 2.56649 16.3174 3.51474 17.2475 4.96484C18.1773 6.52641 18.2321 8.64568 17.2475 10.1514C16.7552 10.932 16.0983 11.5458 15.4419 12.1592C13.4173 14.1671 11.2828 16.0636 9.20359 17.96L9.1489 18.0156C9.0396 18.0713 8.93008 18.0712 8.82078 18.0156C8.73907 17.9739 8.69483 17.901 8.67234 17.8115C8.68532 17.8928 8.70051 17.9637 8.71433 18.0176C8.60851 17.9382 8.50302 17.8297 8.3823 17.7373C6.4126 15.8969 4.44282 14.0554 2.47312 12.1592C1.5978 11.267 0.667749 10.4298 0.229957 9.20312C-0.371808 7.30683 0.230178 5.02011 1.81687 3.7373C2.69222 3.01247 3.78622 2.62215 4.93504 2.62207C6.51656 2.62215 8.04402 3.45333 8.97507 4.78418C9.826 3.47781 11.3626 2.61666 13.0337 2.56641ZM4.88035 3.68164C3.45778 3.68176 2.08968 4.5189 1.37839 5.85742C0.722236 7.14009 0.776662 8.81333 1.70652 9.98438C2.25364 10.7093 2.91135 11.3231 3.56785 11.9365C5.09973 13.4422 6.68635 14.8928 8.27293 16.3428L8.54636 16.6221C8.54827 16.6481 8.59438 17.2709 8.65574 17.707C8.64361 17.5769 8.65668 17.4271 8.65671 17.291C8.49257 14.3351 8.27397 11.3787 8.16453 8.47852C8.12122 7.59564 8.14647 6.71234 8.43015 5.88477C8.41595 5.8552 8.38255 5.84458 8.3823 5.80078C7.72563 4.51826 6.35747 3.68173 4.93504 3.68164H4.88035ZM118.041 13.3271C117.057 13.3272 116.291 13.7729 116.291 14.665C116.291 15.4459 116.893 15.8926 117.768 15.8926C119.245 15.8924 120.121 14.8882 120.121 13.6055V13.3271H118.041ZM28.355 9.20312C27.5344 9.20317 26.8776 9.48152 26.3305 10.0391C25.7834 10.5968 25.5102 11.3224 25.5102 12.2148C25.4556 13.1071 25.7835 13.8319 26.3305 14.4453C26.8777 15.0029 27.589 15.2822 28.4096 15.2822C29.2303 15.2822 29.9416 15.003 30.4887 14.4453C31.0358 13.8876 31.31 13.1071 31.31 12.2148C31.31 11.3225 31.0359 10.5968 30.4341 10.0391C29.887 9.48158 29.1755 9.20319 28.355 9.20312ZM93.6909 9.14453C92.8704 9.14463 92.2135 9.42379 91.6665 10.0371C91.1195 10.5948 90.8462 11.3197 90.8462 12.2119C90.7914 13.1043 91.1193 13.8298 91.6665 14.4434C92.2135 15.0009 92.9251 15.2792 93.7456 15.2793C95.387 15.2791 96.5913 13.9966 96.5913 12.2119C96.5913 11.3198 96.3178 10.5948 95.771 10.0371C95.2238 9.47942 94.5116 9.14461 93.6909 9.14453ZM54.5132 9.2002C52.9265 9.2002 51.6677 10.4266 51.6675 12.0996C51.6675 13.8844 52.8716 15.0566 54.5132 15.0566C56.0997 15.0563 57.3579 13.8842 57.3579 12.0996C57.3577 10.4268 56.1542 9.20052 54.5132 9.2002ZM4.88035 5.29883C5.70098 5.29892 6.46705 5.80143 6.85007 6.52637C7.1781 7.19544 7.17914 7.92078 6.90574 8.58984C6.46795 9.48199 5.42758 10.0402 4.44285 9.87305C3.51289 9.70573 2.74691 8.86878 2.63718 7.9209C2.52778 7.19605 2.80129 6.41509 3.34812 5.91309C3.78578 5.52274 4.33328 5.29892 4.88035 5.29883ZM42.8579 9.70215H42.8032V9.69336C42.8212 9.69655 42.8398 9.69847 42.8579 9.70215ZM13.0337 5.74512C11.9943 5.74536 11.228 6.58213 11.228 7.58594C11.283 8.53376 12.0491 9.31512 12.979 9.37109C13.9636 9.4267 14.7854 8.58961 14.8403 7.58594C14.8403 6.58206 14.0185 5.74525 13.0337 5.74512ZM4.88035 6.30273C4.33328 6.30292 3.78664 6.74998 3.67722 7.30762C3.51371 8.08833 4.22486 9.03641 5.15476 8.86914C5.64674 8.75746 6.08412 8.31104 6.19382 7.80957C6.24854 7.08456 5.6463 6.30289 4.88035 6.30273ZM45.4819 0C46.6853 0.000335991 47.6155 0.948173 47.6157 2.1748C47.6157 3.34589 46.6854 4.29459 45.4819 4.29492C44.3328 4.29492 43.4018 3.3461 43.4018 2.1748C43.4021 1.00371 44.3877 0 45.4819 0Z",fill:"currentColor"})}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_18315_468855",children:C.jsx("rect",{fill:"white",height:"24.1509",width:"128"})})})]}),i==="mark"&&C.jsxs("svg",{fill:"none",height:"21",viewBox:"0 0 23 21",width:"23",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("g",{clipPath:"url(#clip0_18315_468405)",children:C.jsx("path",{d:"M10.824 20.1854C10.9307 20.2655 11.0382 20.3221 11.1599 20.3221C11.0921 20.3221 11.0239 20.3221 10.8885 20.3221C10.866 20.3221 10.8458 20.2706 10.824 20.1854ZM16.1902 0.992035C18.2292 0.992157 20.2682 2.17023 21.4236 3.97153C22.579 5.91141 22.6469 8.54428 21.4236 10.4149C20.812 11.3846 19.9969 12.1471 19.1814 12.909C16.6666 15.4031 14.0152 17.7586 11.4324 20.1141L11.364 20.1834C11.2283 20.2526 11.0926 20.2525 10.9568 20.1834C10.855 20.1315 10.8002 20.041 10.7722 19.9295C10.7884 20.0306 10.8068 20.1184 10.824 20.1854C10.6926 20.0868 10.5618 19.9524 10.4119 19.8377C7.96503 17.5514 5.51794 15.2646 3.07107 12.909C1.9837 11.8007 0.828732 10.7611 0.284942 9.23715C-0.46271 6.88157 0.284639 4.04068 2.25565 2.44711C3.34314 1.54652 4.70335 1.06137 6.13065 1.06137C8.09519 1.06163 9.9918 2.09463 11.1482 3.74789C12.2053 2.12485 14.1142 1.05429 16.1902 0.992035ZM6.06229 2.37778C4.2951 2.37778 2.59534 3.41718 1.7117 5.07993C0.896188 6.67342 0.96448 8.75199 2.1199 10.2069C2.79959 11.1075 3.61583 11.8696 4.43143 12.6317C6.33446 14.5022 8.30516 16.3041 10.2762 18.1053L10.616 18.452C10.6173 18.47 10.6752 19.2471 10.7517 19.7938C10.7376 19.6333 10.7527 19.4502 10.7527 19.2831C10.5488 15.611 10.2764 11.9386 10.1404 8.33578C10.0867 7.23956 10.1194 6.14366 10.4715 5.11606C10.4542 5.07806 10.4119 5.06619 10.4119 5.01059C9.59633 3.41737 7.89755 2.37807 6.13065 2.37778H6.06229ZM6.06229 4.38754C7.0816 4.38762 8.03273 5.01058 8.50858 5.91098C8.91635 6.7423 8.91667 7.64313 8.57693 8.47446C8.03317 9.583 6.74181 10.2761 5.51834 10.0682C4.36285 9.86035 3.41112 8.82123 3.27518 7.6434C3.13925 6.74272 3.47928 5.77281 4.15897 5.14926C4.70273 4.66427 5.38258 4.38754 6.06229 4.38754ZM16.1902 4.94125C14.8989 4.94128 13.9472 5.98038 13.9471 7.22739C14.015 8.40507 14.9665 9.37568 16.1219 9.44516C17.3452 9.51425 18.3654 8.47439 18.4334 7.22739C18.4333 5.98048 17.4135 4.94143 16.1902 4.94125ZM6.06229 5.63461C5.38258 5.63461 4.70311 6.18884 4.56717 6.88168C4.3635 7.8516 5.24675 9.02897 6.40213 8.82114C7.01379 8.6825 7.55722 8.12822 7.69315 7.50473C7.76106 6.60412 7.01375 5.63474 6.06229 5.63461Z",fill:"currentColor"})}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_18315_468405",children:C.jsx("rect",{fill:"white",height:"21",width:"23"})})})]})]})}l.displayName="Logo";exports.Logo=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),n=require("class-variance-authority"),c=require("@brightlocal/ui-components/lib/utils"),h=n.cva("inline-flex text-brand-primary-foreground",{variants:{variant:{logotype:"h-6",mark:"w-6 h-6"}},defaultVariants:{variant:"logotype"}});function t({className:e,variant:i="logotype",dataHook:r,ariaLabel:l,trackingEl:o,trackingLabel:a,...s}){return C.jsxs("div",{className:c.cn(h({variant:i}),e),"data-hook":r,"data-slot":"logo","data-tracking-el":o,"data-tracking-label":a,"data-variant":i,...s,children:[i==="logotype"&&C.jsxs("svg",{"aria-label":l??"BrightLocal Logo",fill:"none",height:"24",role:"img",viewBox:"0 0 128 24.1509",width:"128",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("g",{clipPath:"url(#clip0_18315_468855)",children:C.jsx("path",{d:"M53.8012 6.13184C55.2785 6.13191 56.4277 6.69033 57.3579 7.75H57.4126V6.2998H60.7505V18.2354C60.7505 20.0759 60.1485 21.5262 58.9995 22.5859C57.8506 23.6455 56.3185 24.1473 54.4585 24.1475C51.5584 24.1475 49.588 23.0319 48.5483 20.7451L51.23 19.1279C51.8866 20.4664 52.9265 21.1357 54.3491 21.1357C56.0997 21.1355 57.3032 20.187 57.3032 18.3467V16.5625H57.2485C56.4278 17.622 55.333 18.124 53.9106 18.124C52.2693 18.124 50.9014 17.5657 49.8618 16.3945C48.8223 15.2791 48.275 13.8293 48.2749 12.1562C48.2749 10.5945 48.7675 9.14395 49.8071 7.97266C50.8467 6.74577 52.1599 6.13189 53.8012 6.13184ZM93.7456 6.07617C95.4964 6.07624 97.0292 6.69017 98.2329 7.86133C99.4366 9.03255 100.093 10.4829 100.093 12.2676C100.093 14.0523 99.4912 15.5582 98.2329 16.7295C96.9744 17.9007 95.4965 18.5146 93.6909 18.5146C91.8855 18.5146 90.4083 17.9564 89.1499 16.7295C87.9461 15.5582 87.2895 14.108 87.2895 12.3232C87.3443 10.5386 87.9461 9.03255 89.2046 7.86133C90.4629 6.63457 91.9949 6.07627 93.7456 6.07617ZM106.879 6.13184C109.506 6.13207 111.64 7.4711 112.406 9.81348L109.396 11.0957C108.904 9.92489 108.028 9.31177 106.879 9.31152C105.293 9.31152 104.088 10.4826 104.088 12.3232C104.088 14.108 105.238 15.335 106.879 15.335C108.083 15.3347 108.958 14.7766 109.451 13.5498L112.46 14.833C111.585 17.2311 109.451 18.5144 106.825 18.5146C105.019 18.4589 103.541 17.9007 102.337 16.7295C101.134 15.5582 100.586 14.108 100.586 12.3232C100.586 10.5384 101.188 9.08828 102.447 7.91699C103.651 6.69002 105.183 6.13184 106.879 6.13184ZM25.4555 7.75293H25.5649C26.4404 6.63751 27.6442 6.0791 29.1216 6.0791C30.7628 6.07926 32.0762 6.69291 33.1157 7.97559C34.1553 9.20262 34.6479 10.6531 34.6479 12.2705C34.6479 13.8879 34.1005 15.3384 33.061 16.5654C31.9668 17.7922 30.6533 18.4617 29.0122 18.4619C27.4802 18.4619 26.2763 17.9034 25.4555 16.7881H25.3999V18.2383H22.063V0.0556641H25.4555V7.75293ZM118.424 6.02051C121.488 6.02061 123.513 7.69329 123.513 10.8164V18.1787H120.34V16.7295H120.286C119.52 17.8449 118.315 18.4579 116.783 18.458C115.689 18.4022 114.759 18.1232 113.993 17.4541C113.227 16.7848 112.843 15.9483 112.843 14.8887V14.833C112.843 13.4388 113.5 12.379 114.594 11.877C115.688 11.3751 116.783 11.1514 118.041 11.1514H119.191C119.793 11.1512 120.121 10.8722 120.121 10.2588C120.12 9.42233 119.464 8.80869 118.26 8.80859C117.111 8.8087 116.236 9.3672 115.689 10.4268L113.062 8.86426C114.047 6.96816 115.853 6.02061 118.424 6.02051ZM78.9184 6.2998H81.8188V9.31152H78.9184V13.4385C78.9184 14.777 79.6299 15.3349 80.9428 15.335C81.2163 15.335 81.4907 15.3351 81.7094 15.2236V18.124C81.2171 18.2913 80.6696 18.3467 80.1225 18.3467C77.0583 18.3467 75.4712 16.6736 75.4712 13.8848V9.31152H73.3921V6.2998H75.5259V2.5625H78.9184V6.2998ZM65.3481 7.69336C65.7858 7.07999 66.2786 6.63424 66.8803 6.41113C67.5368 6.18809 68.0843 6.07617 68.5219 6.07617C69.9445 6.07623 70.9845 6.52258 71.6958 7.4707C72.4069 8.36306 72.7895 9.47894 72.7895 10.8174V18.2354H69.4526V11.5977C69.4525 10.2592 68.7402 9.25503 67.4272 9.25488C66.0595 9.25506 65.3482 10.2593 65.3481 11.542V18.1797H61.9555V0.0527344H65.3481V7.69336ZM47.2329 18.1826H43.7856V6.30273H47.2329V18.1826ZM42.1469 6.1875C42.4203 6.1875 42.6391 6.18837 42.8032 6.2998V9.69336C42.548 9.64804 42.2928 9.64649 42.0376 9.64648C39.8488 9.64648 38.8637 11.0407 38.8637 13.1602V18.1797H35.4712V6.2998H38.8637V8.13965C39.3563 7.02434 40.615 6.18751 42.1469 6.1875ZM86.3598 18.1797H82.9126V0.0527344H86.3598V18.1797ZM128 18.1797H124.553V0.0527344H128V18.1797ZM8.71433 18.0176C8.80009 18.0818 8.88699 18.1279 8.98484 18.1279H8.76609C8.74808 18.1279 8.73185 18.0857 8.71433 18.0176ZM13.0337 2.56641C14.6751 2.56649 16.3174 3.51474 17.2475 4.96484C18.1773 6.52641 18.2321 8.64568 17.2475 10.1514C16.7552 10.932 16.0983 11.5458 15.4419 12.1592C13.4173 14.1671 11.2828 16.0636 9.20359 17.96L9.1489 18.0156C9.0396 18.0713 8.93008 18.0712 8.82078 18.0156C8.73907 17.9739 8.69483 17.901 8.67234 17.8115C8.68532 17.8928 8.70051 17.9637 8.71433 18.0176C8.60851 17.9382 8.50302 17.8297 8.3823 17.7373C6.4126 15.8969 4.44282 14.0554 2.47312 12.1592C1.5978 11.267 0.667749 10.4298 0.229957 9.20312C-0.371808 7.30683 0.230178 5.02011 1.81687 3.7373C2.69222 3.01247 3.78622 2.62215 4.93504 2.62207C6.51656 2.62215 8.04402 3.45333 8.97507 4.78418C9.826 3.47781 11.3626 2.61666 13.0337 2.56641ZM4.88035 3.68164C3.45778 3.68176 2.08968 4.5189 1.37839 5.85742C0.722236 7.14009 0.776662 8.81333 1.70652 9.98438C2.25364 10.7093 2.91135 11.3231 3.56785 11.9365C5.09973 13.4422 6.68635 14.8928 8.27293 16.3428L8.54636 16.6221C8.54827 16.6481 8.59438 17.2709 8.65574 17.707C8.64361 17.5769 8.65668 17.4271 8.65671 17.291C8.49257 14.3351 8.27397 11.3787 8.16453 8.47852C8.12122 7.59564 8.14647 6.71234 8.43015 5.88477C8.41595 5.8552 8.38255 5.84458 8.3823 5.80078C7.72563 4.51826 6.35747 3.68173 4.93504 3.68164H4.88035ZM118.041 13.3271C117.057 13.3272 116.291 13.7729 116.291 14.665C116.291 15.4459 116.893 15.8926 117.768 15.8926C119.245 15.8924 120.121 14.8882 120.121 13.6055V13.3271H118.041ZM28.355 9.20312C27.5344 9.20317 26.8776 9.48152 26.3305 10.0391C25.7834 10.5968 25.5102 11.3224 25.5102 12.2148C25.4556 13.1071 25.7835 13.8319 26.3305 14.4453C26.8777 15.0029 27.589 15.2822 28.4096 15.2822C29.2303 15.2822 29.9416 15.003 30.4887 14.4453C31.0358 13.8876 31.31 13.1071 31.31 12.2148C31.31 11.3225 31.0359 10.5968 30.4341 10.0391C29.887 9.48158 29.1755 9.20319 28.355 9.20312ZM93.6909 9.14453C92.8704 9.14463 92.2135 9.42379 91.6665 10.0371C91.1195 10.5948 90.8462 11.3197 90.8462 12.2119C90.7914 13.1043 91.1193 13.8298 91.6665 14.4434C92.2135 15.0009 92.9251 15.2792 93.7456 15.2793C95.387 15.2791 96.5913 13.9966 96.5913 12.2119C96.5913 11.3198 96.3178 10.5948 95.771 10.0371C95.2238 9.47942 94.5116 9.14461 93.6909 9.14453ZM54.5132 9.2002C52.9265 9.2002 51.6677 10.4266 51.6675 12.0996C51.6675 13.8844 52.8716 15.0566 54.5132 15.0566C56.0997 15.0563 57.3579 13.8842 57.3579 12.0996C57.3577 10.4268 56.1542 9.20052 54.5132 9.2002ZM4.88035 5.29883C5.70098 5.29892 6.46705 5.80143 6.85007 6.52637C7.1781 7.19544 7.17914 7.92078 6.90574 8.58984C6.46795 9.48199 5.42758 10.0402 4.44285 9.87305C3.51289 9.70573 2.74691 8.86878 2.63718 7.9209C2.52778 7.19605 2.80129 6.41509 3.34812 5.91309C3.78578 5.52274 4.33328 5.29892 4.88035 5.29883ZM42.8579 9.70215H42.8032V9.69336C42.8212 9.69655 42.8398 9.69847 42.8579 9.70215ZM13.0337 5.74512C11.9943 5.74536 11.228 6.58213 11.228 7.58594C11.283 8.53376 12.0491 9.31512 12.979 9.37109C13.9636 9.4267 14.7854 8.58961 14.8403 7.58594C14.8403 6.58206 14.0185 5.74525 13.0337 5.74512ZM4.88035 6.30273C4.33328 6.30292 3.78664 6.74998 3.67722 7.30762C3.51371 8.08833 4.22486 9.03641 5.15476 8.86914C5.64674 8.75746 6.08412 8.31104 6.19382 7.80957C6.24854 7.08456 5.6463 6.30289 4.88035 6.30273ZM45.4819 0C46.6853 0.000335991 47.6155 0.948173 47.6157 2.1748C47.6157 3.34589 46.6854 4.29459 45.4819 4.29492C44.3328 4.29492 43.4018 3.3461 43.4018 2.1748C43.4021 1.00371 44.3877 0 45.4819 0Z",fill:"currentColor"})}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_18315_468855",children:C.jsx("rect",{fill:"white",height:"24.1509",width:"128"})})})]}),i==="mark"&&C.jsxs("svg",{"aria-label":l??"BrightLocal Logo",fill:"none",height:"21",role:"img",viewBox:"0 0 23 21",width:"23",xmlns:"http://www.w3.org/2000/svg",children:[C.jsx("g",{clipPath:"url(#clip0_18315_468405)",children:C.jsx("path",{d:"M10.824 20.1854C10.9307 20.2655 11.0382 20.3221 11.1599 20.3221C11.0921 20.3221 11.0239 20.3221 10.8885 20.3221C10.866 20.3221 10.8458 20.2706 10.824 20.1854ZM16.1902 0.992035C18.2292 0.992157 20.2682 2.17023 21.4236 3.97153C22.579 5.91141 22.6469 8.54428 21.4236 10.4149C20.812 11.3846 19.9969 12.1471 19.1814 12.909C16.6666 15.4031 14.0152 17.7586 11.4324 20.1141L11.364 20.1834C11.2283 20.2526 11.0926 20.2525 10.9568 20.1834C10.855 20.1315 10.8002 20.041 10.7722 19.9295C10.7884 20.0306 10.8068 20.1184 10.824 20.1854C10.6926 20.0868 10.5618 19.9524 10.4119 19.8377C7.96503 17.5514 5.51794 15.2646 3.07107 12.909C1.9837 11.8007 0.828732 10.7611 0.284942 9.23715C-0.46271 6.88157 0.284639 4.04068 2.25565 2.44711C3.34314 1.54652 4.70335 1.06137 6.13065 1.06137C8.09519 1.06163 9.9918 2.09463 11.1482 3.74789C12.2053 2.12485 14.1142 1.05429 16.1902 0.992035ZM6.06229 2.37778C4.2951 2.37778 2.59534 3.41718 1.7117 5.07993C0.896188 6.67342 0.96448 8.75199 2.1199 10.2069C2.79959 11.1075 3.61583 11.8696 4.43143 12.6317C6.33446 14.5022 8.30516 16.3041 10.2762 18.1053L10.616 18.452C10.6173 18.47 10.6752 19.2471 10.7517 19.7938C10.7376 19.6333 10.7527 19.4502 10.7527 19.2831C10.5488 15.611 10.2764 11.9386 10.1404 8.33578C10.0867 7.23956 10.1194 6.14366 10.4715 5.11606C10.4542 5.07806 10.4119 5.06619 10.4119 5.01059C9.59633 3.41737 7.89755 2.37807 6.13065 2.37778H6.06229ZM6.06229 4.38754C7.0816 4.38762 8.03273 5.01058 8.50858 5.91098C8.91635 6.7423 8.91667 7.64313 8.57693 8.47446C8.03317 9.583 6.74181 10.2761 5.51834 10.0682C4.36285 9.86035 3.41112 8.82123 3.27518 7.6434C3.13925 6.74272 3.47928 5.77281 4.15897 5.14926C4.70273 4.66427 5.38258 4.38754 6.06229 4.38754ZM16.1902 4.94125C14.8989 4.94128 13.9472 5.98038 13.9471 7.22739C14.015 8.40507 14.9665 9.37568 16.1219 9.44516C17.3452 9.51425 18.3654 8.47439 18.4334 7.22739C18.4333 5.98048 17.4135 4.94143 16.1902 4.94125ZM6.06229 5.63461C5.38258 5.63461 4.70311 6.18884 4.56717 6.88168C4.3635 7.8516 5.24675 9.02897 6.40213 8.82114C7.01379 8.6825 7.55722 8.12822 7.69315 7.50473C7.76106 6.60412 7.01375 5.63474 6.06229 5.63461Z",fill:"currentColor"})}),C.jsx("defs",{children:C.jsx("clipPath",{id:"clip0_18315_468405",children:C.jsx("rect",{fill:"white",height:"21",width:"23"})})})]})]})}t.displayName="Logo";exports.Logo=t;
package/dist/logo.d.ts CHANGED
@@ -13,6 +13,11 @@ interface LogoProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children
13
13
  * Required data-hook attribute for testing and component identification
14
14
  */
15
15
  dataHook: string;
16
+ /**
17
+ * Accessible label for the logo image.
18
+ * @default "BrightLocal Logo"
19
+ */
20
+ ariaLabel?: string;
16
21
  /**
17
22
  * Optional tracking element identifier for analytics
18
23
  */
@@ -22,7 +27,7 @@ interface LogoProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children
22
27
  */
23
28
  trackingLabel?: string;
24
29
  }
25
- declare function Logo({ className, variant, dataHook, trackingEl, trackingLabel, ...props }: LogoProps): import("react/jsx-runtime").JSX.Element;
30
+ declare function Logo({ className, variant, dataHook, ariaLabel, trackingEl, trackingLabel, ...props }: LogoProps): import("react/jsx-runtime").JSX.Element;
26
31
  declare namespace Logo {
27
32
  var displayName: string;
28
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../src/components/logo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;AAE9C,QAAA,MAAM,YAAY;;8EAUhB,CAAC;AAEH,UAAU,SACR,SACE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,EACtD,YAAY,CAAC,OAAO,YAAY,CAAC;IACnC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,iBAAS,IAAI,CAAC,EACZ,SAAS,EACT,OAAoB,EACpB,QAAQ,EACR,UAAU,EACV,aAAa,EACb,GAAG,KAAK,EACT,EAAE,SAAS,2CAyDX;kBAhEQ,IAAI;;;AAoEb,OAAO,EAAE,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../src/components/logo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;AAE9C,QAAA,MAAM,YAAY;;8EAUhB,CAAC;AAEH,UAAU,SACR,SACE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,EACtD,YAAY,CAAC,OAAO,YAAY,CAAC;IACnC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,iBAAS,IAAI,CAAC,EACZ,SAAS,EACT,OAAoB,EACpB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,aAAa,EACb,GAAG,KAAK,EACT,EAAE,SAAS,2CA2DX;kBAnEQ,IAAI;;;AAuEb,OAAO,EAAE,IAAI,EAAE,CAAC"}
package/dist/logo.js CHANGED
@@ -1,7 +1,7 @@
1
- import { jsxs as l, jsx as C } from "react/jsx-runtime";
2
- import { cva as h } from "class-variance-authority";
3
- import { cn as V } from "@brightlocal/ui-components/lib/utils";
4
- const n = h("inline-flex text-brand-primary-foreground", {
1
+ import { jsxs as i, jsx as C } from "react/jsx-runtime";
2
+ import { cva as V } from "class-variance-authority";
3
+ import { cn as n } from "@brightlocal/ui-components/lib/utils";
4
+ const H = V("inline-flex text-brand-primary-foreground", {
5
5
  variants: {
6
6
  variant: {
7
7
  logotype: "h-6",
@@ -12,32 +12,33 @@ const n = h("inline-flex text-brand-primary-foreground", {
12
12
  variant: "logotype"
13
13
  }
14
14
  });
15
- function H({
16
- className: t,
17
- variant: i = "logotype",
15
+ function c({
16
+ className: o,
17
+ variant: l = "logotype",
18
18
  dataHook: r,
19
- trackingEl: o,
20
- trackingLabel: e,
21
- ...a
19
+ ariaLabel: t,
20
+ trackingEl: e,
21
+ trackingLabel: a,
22
+ ...h
22
23
  }) {
23
- return /* @__PURE__ */ l(
24
+ return /* @__PURE__ */ i(
24
25
  "div",
25
26
  {
26
- "aria-label": "BrightLocal Logo",
27
- className: V(n({ variant: i }), t),
27
+ className: n(H({ variant: l }), o),
28
28
  "data-hook": r,
29
29
  "data-slot": "logo",
30
- "data-tracking-el": o,
31
- "data-tracking-label": e,
32
- "data-variant": i,
33
- role: "img",
34
- ...a,
30
+ "data-tracking-el": e,
31
+ "data-tracking-label": a,
32
+ "data-variant": l,
33
+ ...h,
35
34
  children: [
36
- i === "logotype" && /* @__PURE__ */ l(
35
+ l === "logotype" && /* @__PURE__ */ i(
37
36
  "svg",
38
37
  {
38
+ "aria-label": t ?? "BrightLocal Logo",
39
39
  fill: "none",
40
40
  height: "24",
41
+ role: "img",
41
42
  viewBox: "0 0 128 24.1509",
42
43
  width: "128",
43
44
  xmlns: "http://www.w3.org/2000/svg",
@@ -53,11 +54,13 @@ function H({
53
54
  ]
54
55
  }
55
56
  ),
56
- i === "mark" && /* @__PURE__ */ l(
57
+ l === "mark" && /* @__PURE__ */ i(
57
58
  "svg",
58
59
  {
60
+ "aria-label": t ?? "BrightLocal Logo",
59
61
  fill: "none",
60
62
  height: "21",
63
+ role: "img",
61
64
  viewBox: "0 0 23 21",
62
65
  width: "23",
63
66
  xmlns: "http://www.w3.org/2000/svg",
@@ -77,7 +80,7 @@ function H({
77
80
  }
78
81
  );
79
82
  }
80
- H.displayName = "Logo";
83
+ c.displayName = "Logo";
81
84
  export {
82
- H as Logo
85
+ c as Logo
83
86
  };
package/dist/map.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),N=require("react"),w=require("@brightlocal/icons"),u=require("@brightlocal/ui-components/button"),v=require("@brightlocal/ui-components/card"),p=require("@brightlocal/ui-components/lib/utils"),m=require("@brightlocal/ui-components/popover");function k(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return a.default=t,Object.freeze(a)}const c=k(N),C={primary:"var(--primary)",secondary:"var(--secondary)",destructive:"var(--destructive)",outline:"var(--muted)",warning:"var(--warning-background)"},g=c.forwardRef(({value:t,variant:a="primary",pulse:e=!1,dataHook:r,className:o,trackingEl:n,trackingLabel:i,...l},d)=>s.jsx(u.Button,{ref:d,className:p.cn("size-8 p-0",e&&"animate-grid-pin-pulse transition-none motion-reduce:animate-none",o),dataHook:r,size:"sm",style:e?{"--grid-pin-pulse-color":C[a]}:void 0,trackingEl:n||"map-grid-pin",trackingLabel:i,variant:a,...l,children:String(t)}));g.displayName="MapGridPin";const x=c.forwardRef(({value:t=1,dataHook:a,...e},r)=>s.jsx(g,{ref:r,dataHook:a,value:t,...e}));x.displayName="MapLocationPin";const M=c.forwardRef(({className:t,dataHook:a,trackingEl:e,trackingLabel:r,children:o,...n},i)=>s.jsx(u.Button,{ref:i,className:p.cn("rounded-lg shadow-sm",t),"data-slot":"map-control-button",dataHook:a,trackingEl:e||"map-control-button",trackingLabel:r,variant:"outline",...n,children:o}));M.displayName="MapControlButton";const h=c.forwardRef(({className:t,message:a="Loading map…",dataHook:e,trackingEl:r,trackingLabel:o,...n},i)=>s.jsxs("div",{ref:i,"aria-live":"polite",className:p.cn("text-muted-foreground flex items-center justify-center gap-2 py-6 text-sm",t),"data-hook":e,"data-slot":"map-loading-state","data-tracking-el":r||"map-loading-state","data-tracking-label":o,role:"status",...n,children:[s.jsx("div",{"aria-hidden":"true",className:"size-4 animate-spin rounded-full border-2 border-current border-t-transparent"}),a]}));h.displayName="MapLoadingState";const y=c.forwardRef(({className:t,title:a="Unable to load map",message:e="Something went wrong while loading the map. Please try again.",onRetry:r,dataHook:o,trackingEl:n,trackingLabel:i,...l},d)=>s.jsxs("div",{ref:d,className:p.cn("bg-muted/50 flex flex-col items-center justify-center gap-3 rounded-xl p-8 text-center",t),"data-hook":o,"data-slot":"map-error-state","data-tracking-el":n||"map-error-state","data-tracking-label":i,role:"alert",...l,children:[s.jsx(w.AlertCircle,{"aria-hidden":"true",className:"text-muted-foreground/60",size:40,strokeWidth:1.5}),s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("h3",{className:"text-foreground text-sm font-semibold","data-slot":"map-error-title",children:a}),e&&s.jsx("p",{className:"text-muted-foreground max-w-xs text-xs","data-slot":"map-error-message",children:e})]}),r&&s.jsx(u.Button,{className:"mt-1",dataHook:`${o}-retry`,size:"sm",variant:"primary",onClick:r,children:"Try again"})]}));y.displayName="MapErrorState";const P=c.forwardRef(({className:t,dataHook:a,trackingEl:e,trackingLabel:r,children:o,...n},i)=>s.jsx(v.Card,{ref:i,className:p.cn("inline-flex w-auto flex-row items-center",t),"data-slot":"map-legend",dataHook:a,density:"condensed",maxWidth:"none",trackingEl:e||"map-legend",trackingLabel:r,variant:"filled",...n,children:s.jsx(v.CardContent,{className:"flex items-center gap-3",children:o})}));P.displayName="MapLegend";function S(t=150){const[a,e]=c.useState(null),[r,o]=c.useState(null),n=c.useRef(null),i=c.useCallback(f=>{n.current&&clearTimeout(n.current),o(f),e(f)},[]),l=c.useCallback(()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>e(null),t)},[t]),d=c.useCallback(()=>{n.current&&clearTimeout(n.current)},[]);return{activeItem:a,anchorItem:r,showItem:i,scheduleClose:l,cancelClose:d}}const R=m.Popover,b=m.PopoverAnchor;b.displayName="MapPopoverAnchor";const j=c.forwardRef(({className:t,side:a="top",sideOffset:e=4,dataHook:r,trackingEl:o,trackingLabel:n,...i},l)=>s.jsx(m.PopoverContent,{ref:l,className:p.cn("w-auto p-3 data-[state=closed]:animate-none data-[state=closed]:opacity-0",t),"data-slot":"map-popover-content","data-tracking-el":o||"map-popover","data-tracking-label":n,dataHook:r,side:a,sideOffset:e,onOpenAutoFocus:d=>d.preventDefault(),...i}));j.displayName="MapPopoverContent";exports.MapControlButton=M;exports.MapErrorState=y;exports.MapGridPin=g;exports.MapLegend=P;exports.MapLoadingState=h;exports.MapLocationPin=x;exports.MapPopover=R;exports.MapPopoverAnchor=b;exports.MapPopoverContent=j;exports.useMapPopoverHover=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),N=require("react"),w=require("@brightlocal/icons"),u=require("@brightlocal/ui-components/button"),v=require("@brightlocal/ui-components/card"),p=require("@brightlocal/ui-components/lib/utils"),m=require("@brightlocal/ui-components/popover");function k(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(a,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return a.default=t,Object.freeze(a)}const c=k(N),C={ROADMAP:"roadmap",SATELLITE:"satellite"},S={primary:"var(--primary)",secondary:"var(--secondary)",destructive:"var(--destructive)",outline:"var(--muted)",warning:"var(--warning-background)"},g=c.forwardRef(({value:t,variant:a="primary",pulse:e=!1,dataHook:r,className:n,trackingEl:o,trackingLabel:i,...l},d)=>s.jsx(u.Button,{ref:d,className:p.cn("size-8 p-0",e&&"animate-grid-pin-pulse transition-none motion-reduce:animate-none",n),dataHook:r,size:"sm",style:e?{"--grid-pin-pulse-color":S[a]}:void 0,trackingEl:o||"map-grid-pin",trackingLabel:i,variant:a,...l,children:String(t)}));g.displayName="MapGridPin";const x=c.forwardRef(({value:t=1,dataHook:a,...e},r)=>s.jsx(g,{ref:r,dataHook:a,value:t,...e}));x.displayName="MapLocationPin";const M=c.forwardRef(({className:t,dataHook:a,trackingEl:e,trackingLabel:r,children:n,...o},i)=>s.jsx(u.Button,{ref:i,className:p.cn("rounded-lg shadow-sm",t),"data-slot":"map-control-button",dataHook:a,trackingEl:e||"map-control-button",trackingLabel:r,variant:"outline",...o,children:n}));M.displayName="MapControlButton";const y=c.forwardRef(({className:t,message:a="Loading map…",dataHook:e,trackingEl:r,trackingLabel:n,...o},i)=>s.jsxs("div",{ref:i,"aria-live":"polite",className:p.cn("text-muted-foreground flex items-center justify-center gap-2 py-6 text-sm",t),"data-hook":e,"data-slot":"map-loading-state","data-tracking-el":r||"map-loading-state","data-tracking-label":n,role:"status",...o,children:[s.jsx("div",{"aria-hidden":"true",className:"size-4 animate-spin rounded-full border-2 border-current border-t-transparent"}),a]}));y.displayName="MapLoadingState";const h=c.forwardRef(({className:t,title:a="Unable to load map",message:e="Something went wrong while loading the map. Please try again.",onRetry:r,dataHook:n,trackingEl:o,trackingLabel:i,...l},d)=>s.jsxs("div",{ref:d,className:p.cn("bg-muted/50 flex flex-col items-center justify-center gap-3 rounded-xl p-8 text-center",t),"data-hook":n,"data-slot":"map-error-state","data-tracking-el":o||"map-error-state","data-tracking-label":i,role:"alert",...l,children:[s.jsx(w.AlertCircle,{"aria-hidden":"true",className:"text-muted-foreground/60",size:40,strokeWidth:1.5}),s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("h3",{className:"text-foreground text-sm font-semibold","data-slot":"map-error-title",children:a}),e&&s.jsx("p",{className:"text-muted-foreground max-w-xs text-xs","data-slot":"map-error-message",children:e})]}),r&&s.jsx(u.Button,{className:"mt-1",dataHook:`${n}-retry`,size:"sm",variant:"primary",onClick:r,children:"Try again"})]}));h.displayName="MapErrorState";const P=c.forwardRef(({className:t,dataHook:a,trackingEl:e,trackingLabel:r,children:n,...o},i)=>s.jsx(v.Card,{ref:i,className:p.cn("inline-flex w-auto flex-row items-center",t),"data-slot":"map-legend",dataHook:a,density:"condensed",maxWidth:"none",trackingEl:e||"map-legend",trackingLabel:r,variant:"filled",...o,children:s.jsx(v.CardContent,{className:"flex items-center gap-3",children:n})}));P.displayName="MapLegend";function L(t=150){const[a,e]=c.useState(null),[r,n]=c.useState(null),o=c.useRef(null),i=c.useCallback(f=>{o.current&&clearTimeout(o.current),n(f),e(f)},[]),l=c.useCallback(()=>{o.current&&clearTimeout(o.current),o.current=setTimeout(()=>e(null),t)},[t]),d=c.useCallback(()=>{o.current&&clearTimeout(o.current)},[]);return{activeItem:a,anchorItem:r,showItem:i,scheduleClose:l,cancelClose:d}}const R=m.Popover,b=m.PopoverAnchor;b.displayName="MapPopoverAnchor";const j=c.forwardRef(({className:t,side:a="top",sideOffset:e=4,dataHook:r,trackingEl:n,trackingLabel:o,...i},l)=>s.jsx(m.PopoverContent,{ref:l,className:p.cn("w-auto p-3 data-[state=closed]:animate-none data-[state=closed]:opacity-0",t),"data-slot":"map-popover-content","data-tracking-el":n||"map-popover","data-tracking-label":o,dataHook:r,side:a,sideOffset:e,onOpenAutoFocus:d=>d.preventDefault(),...i}));j.displayName="MapPopoverContent";exports.MapControlButton=M;exports.MapErrorState=h;exports.MapGridPin=g;exports.MapLegend=P;exports.MapLoadingState=y;exports.MapLocationPin=x;exports.MapPopover=R;exports.MapPopoverAnchor=b;exports.MapPopoverContent=j;exports.MapTypeId=C;exports.useMapPopoverHover=L;
package/dist/map.d.ts CHANGED
@@ -1,5 +1,20 @@
1
1
  import { Popover, PopoverProps, PopoverAnchorProps, PopoverContentProps } from './popover';
2
2
  import * as React from "react";
3
+ /**
4
+ * Vendor-agnostic map type identifiers.
5
+ * Values match `google.maps.MapTypeId` so they can be passed directly
6
+ * to Google Maps or any provider that accepts the same string literals.
7
+ */
8
+ declare const MapTypeId: {
9
+ /** Default road map view */
10
+ readonly ROADMAP: "roadmap";
11
+ /** Satellite imagery */
12
+ readonly SATELLITE: "satellite";
13
+ };
14
+ /**
15
+ * Union of all map type identifier values.
16
+ */
17
+ type MapTypeIdValue = (typeof MapTypeId)[keyof typeof MapTypeId];
3
18
  type MapGridPinVariant = "primary" | "secondary" | "destructive" | "outline" | "warning";
4
19
  /**
5
20
  * Props for the MapGridPin component.
@@ -187,6 +202,6 @@ interface MapPopoverContentProps extends PopoverContentProps {
187
202
  * with `MapPopoverAnchor` and {@link useMapPopoverHover}.
188
203
  */
189
204
  declare const MapPopoverContent: React.ForwardRefExoticComponent<Omit<MapPopoverContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
190
- export { MapLocationPin, MapGridPin, MapControlButton, MapLoadingState, MapErrorState, MapLegend, MapPopover, MapPopoverAnchor, MapPopoverContent, useMapPopoverHover, };
191
- export type { MapLocationPinProps, MapGridPinProps, MapGridPinVariant, MapControlButtonProps, MapLoadingStateProps, MapErrorStateProps, MapLegendProps, MapPopoverProps, MapPopoverAnchorProps, MapPopoverContentProps, UseMapPopoverHoverReturn, };
205
+ export { MapTypeId, MapLocationPin, MapGridPin, MapControlButton, MapLoadingState, MapErrorState, MapLegend, MapPopover, MapPopoverAnchor, MapPopoverContent, useMapPopoverHover, };
206
+ export type { MapTypeIdValue, MapLocationPinProps, MapGridPinProps, MapGridPinVariant, MapControlButtonProps, MapLoadingStateProps, MapErrorStateProps, MapLegendProps, MapPopoverProps, MapPopoverAnchorProps, MapPopoverContentProps, UseMapPopoverHoverReturn, };
192
207
  //# sourceMappingURL=map.d.ts.map
package/dist/map.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../src/components/map.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EACL,OAAO,EAGP,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACzB,MAAM,oCAAoC,CAAC;AAM5C,KAAK,iBAAiB,GAClB,SAAS,GACT,WAAW,GACX,aAAa,GACb,SAAS,GACT,SAAS,CAAC;AAUd;;GAEG;AACH,UAAU,eAAgB,SAAQ,IAAI,CACpC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAC9B,UAAU,GAAG,MAAM,CACpB;IACC,6DAA6D;IAC7D,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,wEAAw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AE,KAAK,SAAM,GAAG,wBAAwB,CAAC,CAAC,CAAC,CA2BvE;AAMD;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,UAAU,gBAAU,CAAC;AAE3B;;GAEG;AACH,KAAK,eAAe,GAAG,YAAY,CAAC;AAEpC;;;GAGG;AACH,QAAA,MAAM,gBAAgB,wGAAgB,CAAC;AAGvC;;GAEG;AACH,KAAK,qBAAqB,GAAG,kBAAkB,CAAC;AAMhD;;GAEG;AACH,UAAU,sBAAuB,SAAQ,mBAAmB;IAC1D,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,QAAA,MAAM,iBAAiB,4GAgCtB,CAAC;AAQF,OAAO,EACL,SAAS,EACT,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,GACnB,CAAC;AAEF,YAAY,EACV,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,GACzB,CAAC"}
package/dist/map.js CHANGED
@@ -1,11 +1,16 @@
1
- import { jsx as l, jsxs as p } from "react/jsx-runtime";
1
+ import { jsx as l, jsxs as m } from "react/jsx-runtime";
2
2
  import * as s from "react";
3
3
  import { AlertCircle as v } from "@brightlocal/icons";
4
4
  import { Button as u } from "@brightlocal/ui-components/button";
5
5
  import { Card as h, CardContent as x } from "@brightlocal/ui-components/card";
6
- import { cn as m } from "@brightlocal/ui-components/lib/utils";
7
- import { Popover as y, PopoverAnchor as N, PopoverContent as w } from "@brightlocal/ui-components/popover";
8
- const M = {
6
+ import { cn as p } from "@brightlocal/ui-components/lib/utils";
7
+ import { Popover as y, PopoverAnchor as N, PopoverContent as M } from "@brightlocal/ui-components/popover";
8
+ const B = {
9
+ /** Default road map view */
10
+ ROADMAP: "roadmap",
11
+ /** Satellite imagery */
12
+ SATELLITE: "satellite"
13
+ }, w = {
9
14
  primary: "var(--primary)",
10
15
  secondary: "var(--secondary)",
11
16
  destructive: "var(--destructive)",
@@ -25,7 +30,7 @@ const M = {
25
30
  u,
26
31
  {
27
32
  ref: c,
28
- className: m(
33
+ className: p(
29
34
  "size-8 p-0",
30
35
  a && "animate-grid-pin-pulse transition-none motion-reduce:animate-none",
31
36
  n
@@ -33,7 +38,7 @@ const M = {
33
38
  dataHook: o,
34
39
  size: "sm",
35
40
  style: a ? {
36
- "--grid-pin-pulse-color": M[r]
41
+ "--grid-pin-pulse-color": w[r]
37
42
  } : void 0,
38
43
  trackingEl: e || "map-grid-pin",
39
44
  trackingLabel: i,
@@ -53,7 +58,7 @@ const P = s.forwardRef(
53
58
  u,
54
59
  {
55
60
  ref: i,
56
- className: m("rounded-lg shadow-sm", t),
61
+ className: p("rounded-lg shadow-sm", t),
57
62
  "data-slot": "map-control-button",
58
63
  dataHook: r,
59
64
  trackingEl: a || "map-control-button",
@@ -73,12 +78,12 @@ const b = s.forwardRef(
73
78
  trackingEl: o,
74
79
  trackingLabel: n,
75
80
  ...e
76
- }, i) => /* @__PURE__ */ p(
81
+ }, i) => /* @__PURE__ */ m(
77
82
  "div",
78
83
  {
79
84
  ref: i,
80
85
  "aria-live": "polite",
81
- className: m(
86
+ className: p(
82
87
  "text-muted-foreground flex items-center justify-center gap-2 py-6 text-sm",
83
88
  t
84
89
  ),
@@ -112,11 +117,11 @@ const C = s.forwardRef(
112
117
  trackingEl: e,
113
118
  trackingLabel: i,
114
119
  ...d
115
- }, c) => /* @__PURE__ */ p(
120
+ }, c) => /* @__PURE__ */ m(
116
121
  "div",
117
122
  {
118
123
  ref: c,
119
- className: m(
124
+ className: p(
120
125
  "bg-muted/50 flex flex-col items-center justify-center gap-3 rounded-xl p-8 text-center",
121
126
  t
122
127
  ),
@@ -136,7 +141,7 @@ const C = s.forwardRef(
136
141
  strokeWidth: 1.5
137
142
  }
138
143
  ),
139
- /* @__PURE__ */ p("div", { className: "flex flex-col gap-1", children: [
144
+ /* @__PURE__ */ m("div", { className: "flex flex-col gap-1", children: [
140
145
  /* @__PURE__ */ l(
141
146
  "h3",
142
147
  {
@@ -170,12 +175,12 @@ const C = s.forwardRef(
170
175
  )
171
176
  );
172
177
  C.displayName = "MapErrorState";
173
- const R = s.forwardRef(
178
+ const A = s.forwardRef(
174
179
  ({ className: t, dataHook: r, trackingEl: a, trackingLabel: o, children: n, ...e }, i) => /* @__PURE__ */ l(
175
180
  h,
176
181
  {
177
182
  ref: i,
178
- className: m("inline-flex w-auto flex-row items-center", t),
183
+ className: p("inline-flex w-auto flex-row items-center", t),
179
184
  "data-slot": "map-legend",
180
185
  dataHook: r,
181
186
  density: "condensed",
@@ -188,8 +193,8 @@ const R = s.forwardRef(
188
193
  }
189
194
  )
190
195
  );
191
- R.displayName = "MapLegend";
192
- function B(t = 150) {
196
+ A.displayName = "MapLegend";
197
+ function D(t = 150) {
193
198
  const [r, a] = s.useState(null), [o, n] = s.useState(null), e = s.useRef(null), i = s.useCallback((f) => {
194
199
  e.current && clearTimeout(e.current), n(f), a(f);
195
200
  }, []), d = s.useCallback(() => {
@@ -205,9 +210,9 @@ function B(t = 150) {
205
210
  cancelClose: c
206
211
  };
207
212
  }
208
- const G = y, S = N;
209
- S.displayName = "MapPopoverAnchor";
210
- const A = s.forwardRef(
213
+ const G = y, R = N;
214
+ R.displayName = "MapPopoverAnchor";
215
+ const L = s.forwardRef(
211
216
  ({
212
217
  className: t,
213
218
  side: r = "top",
@@ -217,10 +222,10 @@ const A = s.forwardRef(
217
222
  trackingLabel: e,
218
223
  ...i
219
224
  }, d) => /* @__PURE__ */ l(
220
- w,
225
+ M,
221
226
  {
222
227
  ref: d,
223
- className: m(
228
+ className: p(
224
229
  "w-auto p-3 data-[state=closed]:animate-none data-[state=closed]:opacity-0",
225
230
  t
226
231
  ),
@@ -235,16 +240,17 @@ const A = s.forwardRef(
235
240
  }
236
241
  )
237
242
  );
238
- A.displayName = "MapPopoverContent";
243
+ L.displayName = "MapPopoverContent";
239
244
  export {
240
245
  P as MapControlButton,
241
246
  C as MapErrorState,
242
247
  g as MapGridPin,
243
- R as MapLegend,
248
+ A as MapLegend,
244
249
  b as MapLoadingState,
245
250
  k as MapLocationPin,
246
251
  G as MapPopover,
247
- S as MapPopoverAnchor,
248
- A as MapPopoverContent,
249
- B as useMapPopoverHover
252
+ R as MapPopoverAnchor,
253
+ L as MapPopoverContent,
254
+ B as MapTypeId,
255
+ D as useMapPopoverHover
250
256
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),j=require("react"),d=require("@brightlocal/icons"),N=require("class-variance-authority"),f=require("@brightlocal/ui-components/lib/utils");function k(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const n in a)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}return e.default=a,Object.freeze(e)}const l=k(j);function w({page:a,totalPages:e,siblingCount:n=1,boundaryCount:i=1}){return l.useMemo(()=>{const r=[];r.push("previous");const u=Math.max(a-n,i+1),p=Math.min(a+n,e-i),b=u>i+2,P=p<e-i-1;for(let t=1;t<=Math.min(i,e);t++)r.push(t);if(b)r.push("ellipsis");else if(i+1<u)for(let t=i+1;t<u;t++)r.push(t);for(let t=u;t<=p;t++)t>i&&t<=e-i&&r.push(t);if(P)r.push("ellipsis");else if(p<e-i)for(let t=p+1;t<e-i+1;t++)r.push(t);for(let t=Math.max(e-i+1,i+1);t<=e;t++)t>i&&r.push(t);return r.push("next"),r},[a,e,n,i])}const g=N.cva(["inline-flex items-center justify-center","h-9 w-9","rounded-full","text-sm font-medium","transition-colors","focus-visible:outline-none focus-visible:shadow-default"],{variants:{variant:{previous:["text-foreground","hover:bg-accent","aria-disabled:opacity-50 aria-disabled:cursor-default aria-disabled:pointer-events-none"],next:["text-foreground","hover:bg-accent","aria-disabled:opacity-50 aria-disabled:cursor-default aria-disabled:pointer-events-none"],link:["text-foreground","hover:bg-accent hover:text-accent-foreground","aria-[current=page]:bg-background aria-[current=page]:border aria-[current=page]:border-input","dark:aria-[current=page]:bg-input/30","aria-[current=page]:hover:bg-accent","aria-[current=page]:focus-visible:border-ring","aria-disabled:opacity-50 aria-disabled:cursor-default aria-disabled:pointer-events-none"],ellipsis:["cursor-default","text-foreground","pointer-events-none"]}},defaultVariants:{variant:"link"}});function h({className:a,dataHook:e,trackingEl:n,trackingLabel:i,ariaLabel:o="Pagination",...r}){return s.jsx("nav",{"aria-label":o,className:f.cn("mx-auto flex w-full justify-center",a),"data-hook":e,"data-slot":"pagination","data-tracking-el":n||"pagination","data-tracking-label":i,role:"navigation",...r})}h.displayName="Pagination";function M({className:a,...e}){return s.jsx("ul",{className:f.cn("flex flex-row items-center gap-2",a),"data-slot":"pagination-content",...e})}function R(a){return s.jsx("li",{"data-slot":"pagination-item",...a})}const c=l.forwardRef(({className:a,variant:e,isActive:n,children:i,...o},r)=>s.jsx("button",{ref:r,"aria-current":n?"page":void 0,className:f.cn(g({variant:e}),a),"data-active":n,"data-slot":"pagination-button",type:"button",...o,children:i}));c.displayName="PaginationButton";const x=l.forwardRef(({className:a,disabled:e,...n},i)=>s.jsx(c,{ref:i,"aria-disabled":e,"aria-label":"Go to previous page",className:a,disabled:e,variant:"previous",...n,children:s.jsx(d.ChevronLeft,{})}));x.displayName="PaginationPrevious";const v=l.forwardRef(({className:a,disabled:e,...n},i)=>s.jsx(c,{ref:i,"aria-disabled":e,"aria-label":"Go to next page",className:a,disabled:e,variant:"next",...n,children:s.jsx(d.ChevronRight,{})}));v.displayName="PaginationNext";const m=l.forwardRef(({className:a,page:e,isActive:n,...i},o)=>s.jsx(c,{ref:o,"aria-label":`Go to page ${e}`,className:a,isActive:n,variant:"link",...i,children:e}));m.displayName="PaginationLink";function O({className:a,...e}){return s.jsxs("span",{"aria-hidden":"true",className:f.cn(g({variant:"ellipsis"}),a),"data-slot":"pagination-ellipsis",...e,children:[s.jsx(d.MoreHorizontal,{}),s.jsx("span",{className:"sr-only",children:"More pages"})]})}exports.Pagination=h;exports.PaginationButton=c;exports.PaginationContent=M;exports.PaginationEllipsis=O;exports.PaginationItem=R;exports.PaginationLink=m;exports.PaginationNext=v;exports.PaginationPrevious=x;exports.usePagination=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),j=require("react"),d=require("@brightlocal/icons"),N=require("class-variance-authority"),f=require("@brightlocal/ui-components/lib/utils");function k(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const n in a)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}return e.default=a,Object.freeze(e)}const l=k(j);function w({page:a,totalPages:e,siblingCount:n=1,boundaryCount:i=1}){return l.useMemo(()=>{const r=[];r.push("previous");const u=Math.max(a-n,i+1),p=Math.min(a+n,e-i),b=u>i+2,P=p<e-i-1;for(let t=1;t<=Math.min(i,e);t++)r.push(t);if(b)r.push("ellipsis");else if(i+1<u)for(let t=i+1;t<u;t++)r.push(t);for(let t=u;t<=p;t++)t>i&&t<=e-i&&r.push(t);if(P)r.push("ellipsis");else if(p<e-i)for(let t=p+1;t<e-i+1;t++)r.push(t);for(let t=Math.max(e-i+1,i+1);t<=e;t++)t>i&&r.push(t);return r.push("next"),r},[a,e,n,i])}const g=N.cva(["inline-flex items-center justify-center","h-9 w-9","rounded-full","text-sm font-medium","transition-colors","focus-visible:outline-none focus-visible:shadow-default"],{variants:{variant:{previous:["text-foreground","hover:bg-accent","aria-disabled:opacity-50 aria-disabled:cursor-default aria-disabled:pointer-events-none"],next:["text-foreground","hover:bg-accent","aria-disabled:opacity-50 aria-disabled:cursor-default aria-disabled:pointer-events-none"],link:["text-foreground","hover:bg-accent hover:text-accent-foreground","aria-[current=page]:bg-background aria-[current=page]:border aria-[current=page]:border-input","dark:aria-[current=page]:bg-input/30","aria-[current=page]:hover:bg-accent","aria-[current=page]:focus-visible:border-ring","aria-disabled:opacity-50 aria-disabled:cursor-default aria-disabled:pointer-events-none"],ellipsis:["cursor-default","text-foreground","pointer-events-none"]}},defaultVariants:{variant:"link"}});function h({className:a,dataHook:e,trackingEl:n,trackingLabel:i,ariaLabel:o,...r}){return s.jsx("nav",{"aria-label":o??"Pagination",className:f.cn("mx-auto flex w-full justify-center",a),"data-hook":e,"data-slot":"pagination","data-tracking-el":n||"pagination","data-tracking-label":i,role:"navigation",...r})}h.displayName="Pagination";function M({className:a,...e}){return s.jsx("ul",{className:f.cn("flex flex-row items-center gap-2",a),"data-slot":"pagination-content",...e})}function R(a){return s.jsx("li",{"data-slot":"pagination-item",...a})}const c=l.forwardRef(({className:a,variant:e,isActive:n,children:i,...o},r)=>s.jsx("button",{ref:r,"aria-current":n?"page":void 0,className:f.cn(g({variant:e}),a),"data-active":n,"data-slot":"pagination-button",type:"button",...o,children:i}));c.displayName="PaginationButton";const x=l.forwardRef(({className:a,disabled:e,ariaLabel:n,...i},o)=>s.jsx(c,{ref:o,"aria-disabled":e,"aria-label":n??"Go to previous page",className:a,disabled:e,variant:"previous",...i,children:s.jsx(d.ChevronLeft,{})}));x.displayName="PaginationPrevious";const v=l.forwardRef(({className:a,disabled:e,ariaLabel:n,...i},o)=>s.jsx(c,{ref:o,"aria-disabled":e,"aria-label":n??"Go to next page",className:a,disabled:e,variant:"next",...i,children:s.jsx(d.ChevronRight,{})}));v.displayName="PaginationNext";const m=l.forwardRef(({className:a,page:e,isActive:n,ariaLabel:i,...o},r)=>s.jsx(c,{ref:r,"aria-label":i?i.replace("{page}",String(e)):`Go to page ${e}`,className:a,isActive:n,variant:"link",...o,children:e}));m.displayName="PaginationLink";function S({className:a,srLabel:e="More pages",...n}){return s.jsxs("span",{"aria-hidden":"true",className:f.cn(g({variant:"ellipsis"}),a),"data-slot":"pagination-ellipsis",...n,children:[s.jsx(d.MoreHorizontal,{}),s.jsx("span",{className:"sr-only",children:e})]})}exports.Pagination=h;exports.PaginationButton=c;exports.PaginationContent=M;exports.PaginationEllipsis=S;exports.PaginationItem=R;exports.PaginationLink=m;exports.PaginationNext=v;exports.PaginationPrevious=x;exports.usePagination=w;