@brightlocal/ui-components 2.11.0 → 2.12.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 (134) hide show
  1. package/component-meta.json +163 -12
  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 +18 -7
  12. package/dist/blocks/sidebar.d.ts.map +1 -1
  13. package/dist/blocks/sidebar.js +143 -136
  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 +12 -2
  32. package/dist/combobox.d.ts.map +1 -1
  33. package/dist/combobox.js +235 -230
  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/global-layout.cjs +1 -1
  48. package/dist/global-layout.d.ts +5 -0
  49. package/dist/global-layout.d.ts.map +1 -1
  50. package/dist/global-layout.js +15 -7
  51. package/dist/index.cjs +1 -1
  52. package/dist/index.js +178 -178
  53. package/dist/input-chip.cjs +1 -1
  54. package/dist/input-chip.d.ts +7 -1
  55. package/dist/input-chip.d.ts.map +1 -1
  56. package/dist/input-chip.js +131 -130
  57. package/dist/input-group.d.ts +1 -1
  58. package/dist/input-password.cjs +1 -1
  59. package/dist/input-password.d.ts +10 -0
  60. package/dist/input-password.d.ts.map +1 -1
  61. package/dist/input-password.js +108 -106
  62. package/dist/link.cjs +1 -1
  63. package/dist/link.d.ts +1 -1
  64. package/dist/link.d.ts.map +1 -1
  65. package/dist/link.js +36 -37
  66. package/dist/list.d.ts +1 -1
  67. package/dist/logo.cjs +1 -1
  68. package/dist/logo.d.ts +6 -1
  69. package/dist/logo.d.ts.map +1 -1
  70. package/dist/logo.js +25 -22
  71. package/dist/map.cjs +1 -1
  72. package/dist/map.d.ts +17 -2
  73. package/dist/map.d.ts.map +1 -1
  74. package/dist/map.js +32 -26
  75. package/dist/pagination.cjs +1 -1
  76. package/dist/pagination.d.ts +29 -3
  77. package/dist/pagination.d.ts.map +1 -1
  78. package/dist/pagination.js +26 -25
  79. package/dist/rating.cjs +1 -1
  80. package/dist/rating.d.ts +6 -0
  81. package/dist/rating.d.ts.map +1 -1
  82. package/dist/rating.js +27 -19
  83. package/dist/resizable.d.ts +1 -1
  84. package/dist/select.cjs +2 -2
  85. package/dist/select.d.ts +7 -1
  86. package/dist/select.d.ts.map +1 -1
  87. package/dist/select.js +52 -51
  88. package/dist/separator.cjs +1 -1
  89. package/dist/separator.d.ts +16 -4
  90. package/dist/separator.d.ts.map +1 -1
  91. package/dist/separator.js +38 -35
  92. package/dist/sheet.cjs +1 -1
  93. package/dist/sheet.d.ts +6 -1
  94. package/dist/sheet.d.ts.map +1 -1
  95. package/dist/sheet.js +42 -41
  96. package/dist/skeleton.cjs +1 -1
  97. package/dist/skeleton.d.ts +5 -0
  98. package/dist/skeleton.d.ts.map +1 -1
  99. package/dist/skeleton.js +13 -11
  100. package/dist/text-reveal-motion.cjs +1 -1
  101. package/dist/text-reveal-motion.d.ts +5 -0
  102. package/dist/text-reveal-motion.d.ts.map +1 -1
  103. package/dist/text-reveal-motion.js +111 -110
  104. package/dist/typography.cjs +1 -1
  105. package/dist/typography.d.ts +1 -2
  106. package/dist/typography.d.ts.map +1 -1
  107. package/dist/typography.js +49 -50
  108. package/package.json +2 -3
  109. package/src/blocks/data-table.tsx +26 -9
  110. package/src/blocks/input-list.tsx +12 -1
  111. package/src/blocks/sidebar.tsx +43 -21
  112. package/src/components/breadcrumb.tsx +43 -26
  113. package/src/components/callout.tsx +5 -4
  114. package/src/components/carousel.tsx +33 -4
  115. package/src/components/chip.tsx +22 -2
  116. package/src/components/combobox.tsx +18 -3
  117. package/src/components/command.tsx +7 -1
  118. package/src/components/date-picker.tsx +17 -3
  119. package/src/components/dialog.tsx +17 -4
  120. package/src/components/drawer.tsx +2 -2
  121. package/src/components/global-layout.tsx +15 -2
  122. package/src/components/input-chip.tsx +12 -1
  123. package/src/components/input-password.tsx +73 -49
  124. package/src/components/link.tsx +29 -17
  125. package/src/components/logo.tsx +10 -2
  126. package/src/components/map.tsx +23 -0
  127. package/src/components/pagination.tsx +44 -11
  128. package/src/components/rating.tsx +20 -2
  129. package/src/components/select.tsx +9 -1
  130. package/src/components/separator.tsx +40 -25
  131. package/src/components/sheet.tsx +28 -20
  132. package/src/components/skeleton.tsx +13 -2
  133. package/src/components/text-reveal-motion.tsx +7 -1
  134. package/src/components/typography.tsx +6 -7
@@ -1 +1 @@
1
- {"version":3,"file":"typography.d.ts","sourceRoot":"","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e,EACf,eAAe,GAChB,CAAC;AAEF,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,CAAC"}
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/components/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B;;;GAGG;AACH,UAAU,mBAAmB;IAC3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AASD;;;GAGG;AACH,UAAU,iBACR,SAAQ,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,mBAAmB;CAAG;AAE5D;;;GAGG;AACH,QAAA,MAAM,YAAY,2GAyBjB,CAAC;AAUF;;;GAGG;AACH,UAAU,iBACR,SAAQ,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,mBAAmB;CAAG;AAE5D;;;GAGG;AACH,QAAA,MAAM,YAAY,2GAyBjB,CAAC;AAUF;;;GAGG;AACH,UAAU,iBACR,SAAQ,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,mBAAmB;CAAG;AAE5D;;;GAGG;AACH,QAAA,MAAM,YAAY,2GAyBjB,CAAC;AAUF;;;GAGG;AACH,UAAU,iBACR,SAAQ,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,mBAAmB;CAAG;AAE5D;;;GAGG;AACH,QAAA,MAAM,YAAY,2GAyBjB,CAAC;AAQF;;;GAGG;AACH,UAAU,gBACR,SAAQ,KAAK,CA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mBAAmB;CAAG;AAE3D;;;GAGG;AACH,QAAA,MAAM,eAAe,gHA4BpB,CAAC;AAMF,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,GAChB,CAAC;AAEF,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,yBAAyB,EACzB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,CAAC"}
@@ -1,10 +1,10 @@
1
- import { jsx as l } from "react/jsx-runtime";
1
+ import { jsx as s } from "react/jsx-runtime";
2
2
  import * as d from "react";
3
3
  import { Slot as p } from "@radix-ui/react-slot";
4
4
  import { cva as g } from "class-variance-authority";
5
- import { cn as c } from "@brightlocal/ui-components/lib/utils";
6
- const i = g(
7
- "self-stretch text-foreground text-4xl font-extrabold font-sans leading-10 lg:text-5xl lg:font-medium lg:font-display lg:leading-12"
5
+ import { cn as i } from "@brightlocal/ui-components/lib/utils";
6
+ const m = g(
7
+ "self-stretch text-foreground text-4xl font-extrabold font-display leading-10 lg:text-5xl lg:leading-12"
8
8
  ), y = d.forwardRef(
9
9
  ({
10
10
  className: a,
@@ -13,11 +13,11 @@ const i = g(
13
13
  trackingEl: e,
14
14
  trackingLabel: r,
15
15
  ...n
16
- }, s) => /* @__PURE__ */ l(
16
+ }, l) => /* @__PURE__ */ s(
17
17
  t ? p : "h1",
18
18
  {
19
- ref: s,
20
- className: c(i(), a),
19
+ ref: l,
20
+ className: i(m(), a),
21
21
  "data-hook": o,
22
22
  "data-slot": "typography-h1",
23
23
  "data-tracking-el": e,
@@ -28,7 +28,7 @@ const i = g(
28
28
  );
29
29
  y.displayName = "TypographyH1";
30
30
  const f = g(
31
- "text-foreground text-3xl font-semibold font-sans leading-9"
31
+ "text-foreground text-3xl font-semibold font-display leading-9"
32
32
  ), h = d.forwardRef(
33
33
  ({
34
34
  className: a,
@@ -37,11 +37,11 @@ const f = g(
37
37
  trackingEl: e,
38
38
  trackingLabel: r,
39
39
  ...n
40
- }, s) => /* @__PURE__ */ l(
40
+ }, l) => /* @__PURE__ */ s(
41
41
  t ? p : "h2",
42
42
  {
43
- ref: s,
44
- className: c(f(), a),
43
+ ref: l,
44
+ className: i(f(), a),
45
45
  "data-hook": o,
46
46
  "data-slot": "typography-h2",
47
47
  "data-tracking-el": e,
@@ -52,7 +52,7 @@ const f = g(
52
52
  );
53
53
  h.displayName = "TypographyH2";
54
54
  const u = g(
55
- "text-foreground text-2xl font-semibold font-sans leading-8"
55
+ "text-foreground text-2xl font-semibold font-display leading-8"
56
56
  ), k = d.forwardRef(
57
57
  ({
58
58
  className: a,
@@ -61,11 +61,11 @@ const u = g(
61
61
  trackingEl: e,
62
62
  trackingLabel: r,
63
63
  ...n
64
- }, s) => /* @__PURE__ */ l(
64
+ }, l) => /* @__PURE__ */ s(
65
65
  t ? p : "h3",
66
66
  {
67
- ref: s,
68
- className: c(u(), a),
67
+ ref: l,
68
+ className: i(u(), a),
69
69
  "data-hook": o,
70
70
  "data-slot": "typography-h3",
71
71
  "data-tracking-el": e,
@@ -76,7 +76,7 @@ const u = g(
76
76
  );
77
77
  k.displayName = "TypographyH3";
78
78
  const x = g(
79
- "text-foreground text-xl font-semibold font-sans leading-7"
79
+ "text-foreground text-xl font-semibold font-display leading-7"
80
80
  ), b = d.forwardRef(
81
81
  ({
82
82
  className: a,
@@ -85,11 +85,11 @@ const x = g(
85
85
  trackingEl: e,
86
86
  trackingLabel: r,
87
87
  ...n
88
- }, s) => /* @__PURE__ */ l(
88
+ }, l) => /* @__PURE__ */ s(
89
89
  t ? p : "h4",
90
90
  {
91
- ref: s,
92
- className: c(x(), a),
91
+ ref: l,
92
+ className: i(x(), a),
93
93
  "data-hook": o,
94
94
  "data-slot": "typography-h4",
95
95
  "data-tracking-el": e,
@@ -107,11 +107,11 @@ const C = g("text-foreground text-base font-normal font-sans"), N = d.forwardRef
107
107
  trackingEl: e,
108
108
  trackingLabel: r,
109
109
  ...n
110
- }, s) => /* @__PURE__ */ l(
110
+ }, l) => /* @__PURE__ */ s(
111
111
  t ? p : "p",
112
112
  {
113
- ref: s,
114
- className: c(C(), a),
113
+ ref: l,
114
+ className: i(C(), a),
115
115
  "data-hook": o,
116
116
  "data-slot": "typography-p",
117
117
  "data-tracking-el": e,
@@ -131,11 +131,11 @@ const T = g(
131
131
  trackingEl: e,
132
132
  trackingLabel: r,
133
133
  ...n
134
- }, s) => /* @__PURE__ */ l(
134
+ }, l) => /* @__PURE__ */ s(
135
135
  t ? p : "blockquote",
136
136
  {
137
- ref: s,
138
- className: c(T(), a),
137
+ ref: l,
138
+ className: i(T(), a),
139
139
  "data-hook": o,
140
140
  "data-slot": "typography-blockquote",
141
141
  "data-tracking-el": e,
@@ -155,11 +155,11 @@ const R = g(
155
155
  trackingEl: e,
156
156
  trackingLabel: r,
157
157
  ...n
158
- }, s) => /* @__PURE__ */ l(
158
+ }, l) => /* @__PURE__ */ s(
159
159
  t ? p : "ul",
160
160
  {
161
- ref: s,
162
- className: c(R(), a),
161
+ ref: l,
162
+ className: i(R(), a),
163
163
  "data-hook": o,
164
164
  "data-slot": "typography-list",
165
165
  "data-tracking-el": e,
@@ -170,7 +170,7 @@ const R = g(
170
170
  );
171
171
  V.displayName = "TypographyList";
172
172
  const H = g(
173
- "inline-flex justify-center items-center gap-2 bg-muted rounded-md px-[4.80px] py-[3.20px] text-foreground text-sm font-normal font-mono leading-5"
173
+ "inline-flex justify-center items-center gap-2 bg-muted rounded-md px-1.5 py-0.5 text-foreground text-sm font-normal font-mono leading-5"
174
174
  ), L = d.forwardRef(
175
175
  ({
176
176
  className: a,
@@ -179,11 +179,11 @@ const H = g(
179
179
  trackingEl: e,
180
180
  trackingLabel: r,
181
181
  ...n
182
- }, s) => /* @__PURE__ */ l(
182
+ }, l) => /* @__PURE__ */ s(
183
183
  t ? p : "code",
184
184
  {
185
- ref: s,
186
- className: c(H(), a),
185
+ ref: l,
186
+ className: i(H(), a),
187
187
  "data-hook": o,
188
188
  "data-slot": "typography-inline-code",
189
189
  "data-tracking-el": e,
@@ -194,7 +194,7 @@ const H = g(
194
194
  );
195
195
  L.displayName = "TypographyInlineCode";
196
196
  const q = g(
197
- "block w-full p-4 bg-zinc-900 rounded-lg border border-border text-white/50 text-base font-normal font-mono leading-6 overflow-x-auto"
197
+ "block w-full p-4 bg-muted rounded-lg border border-border text-muted-foreground text-base font-normal font-mono leading-6 overflow-x-auto focus-visible:shadow-default outline-none"
198
198
  ), v = d.forwardRef(
199
199
  ({
200
200
  className: a,
@@ -203,11 +203,11 @@ const q = g(
203
203
  trackingEl: e,
204
204
  trackingLabel: r,
205
205
  ...n
206
- }, s) => /* @__PURE__ */ l(
206
+ }, l) => /* @__PURE__ */ s(
207
207
  t ? p : "pre",
208
208
  {
209
- ref: s,
210
- className: c(q(), a),
209
+ ref: l,
210
+ className: i(q(), a),
211
211
  "data-hook": o,
212
212
  "data-slot": "typography-code",
213
213
  "data-tracking-el": e,
@@ -228,11 +228,11 @@ const I = g(
228
228
  trackingEl: e,
229
229
  trackingLabel: r,
230
230
  ...n
231
- }, s) => /* @__PURE__ */ l(
231
+ }, l) => /* @__PURE__ */ s(
232
232
  t ? p : "p",
233
233
  {
234
- ref: s,
235
- className: c(I(), a),
234
+ ref: l,
235
+ className: i(I(), a),
236
236
  "data-hook": o,
237
237
  "data-slot": "typography-lead",
238
238
  "data-tracking-el": e,
@@ -252,11 +252,11 @@ const j = g(
252
252
  trackingEl: e,
253
253
  trackingLabel: r,
254
254
  ...n
255
- }, s) => /* @__PURE__ */ l(
255
+ }, l) => /* @__PURE__ */ s(
256
256
  t ? p : "div",
257
257
  {
258
- ref: s,
259
- className: c(j(), a),
258
+ ref: l,
259
+ className: i(j(), a),
260
260
  "data-hook": o,
261
261
  "data-slot": "typography-large",
262
262
  "data-tracking-el": e,
@@ -276,11 +276,11 @@ const M = g(
276
276
  trackingEl: e,
277
277
  trackingLabel: r,
278
278
  ...n
279
- }, s) => /* @__PURE__ */ l(
279
+ }, l) => /* @__PURE__ */ s(
280
280
  t ? p : "small",
281
281
  {
282
- ref: s,
283
- className: c(M(), a),
282
+ ref: l,
283
+ className: i(M(), a),
284
284
  "data-hook": o,
285
285
  "data-slot": "typography-small",
286
286
  "data-tracking-el": e,
@@ -300,11 +300,11 @@ const z = g(
300
300
  trackingEl: e,
301
301
  trackingLabel: r,
302
302
  ...n
303
- }, s) => /* @__PURE__ */ l(
303
+ }, l) => /* @__PURE__ */ s(
304
304
  t ? p : "p",
305
305
  {
306
- ref: s,
307
- className: c(z(), a),
306
+ ref: l,
307
+ className: i(z(), a),
308
308
  "data-hook": o,
309
309
  "data-slot": "typography-muted",
310
310
  "data-tracking-el": e,
@@ -327,6 +327,5 @@ export {
327
327
  V as TypographyList,
328
328
  A as TypographyMuted,
329
329
  N as TypographyP,
330
- P as TypographySmall,
331
- T as blockquoteVariants
330
+ P as TypographySmall
332
331
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightlocal/ui-components",
3
- "version": "2.11.0",
3
+ "version": "2.12.0",
4
4
  "description": "BrightLocal Design System UI Components",
5
5
  "type": "module",
6
6
  "private": false,
@@ -161,7 +161,6 @@
161
161
  "@radix-ui/react-radio-group": "^1.3.8",
162
162
  "@radix-ui/react-scroll-area": "^1.2.10",
163
163
  "@radix-ui/react-select": "^2.2.6",
164
- "@radix-ui/react-separator": "^1.1.8",
165
164
  "@radix-ui/react-slider": "^1.3.6",
166
165
  "@radix-ui/react-slot": "^1.2.4",
167
166
  "@radix-ui/react-switch": "^1.2.6",
@@ -186,7 +185,7 @@
186
185
  "sonner": "^2.0.7",
187
186
  "tailwind-merge": "^3.4.0",
188
187
  "vaul": "^1.1.2",
189
- "@brightlocal/icons": "2.1.1"
188
+ "@brightlocal/icons": "2.2.0"
190
189
  },
191
190
  "size-limit": [
192
191
  {
@@ -764,6 +764,12 @@ export interface DataTableColumnHeaderProps<
764
764
  trackingLabel?: string;
765
765
  /** Alignment — should match the cell's alignment. @default "left" */
766
766
  align?: "left" | "center" | "right";
767
+ /**
768
+ * Builds the accessible label for the sort button.
769
+ * Receives the column title and current sort direction (`"asc"`, `"desc"`, or `false`).
770
+ * @default (title, dir) => `Sort by ${title}${dir ? `, currently ${dir === "asc" ? "ascending" : "descending"}` : ""}`
771
+ */
772
+ getSortLabel?: (title: string, direction: "asc" | "desc" | false) => string;
767
773
  }
768
774
 
769
775
  /**
@@ -781,6 +787,7 @@ export function DataTableColumnHeader<TData, TValue>({
781
787
  trackingEl,
782
788
  trackingLabel,
783
789
  align = "left",
790
+ getSortLabel,
784
791
  }: DataTableColumnHeaderProps<TData, TValue>) {
785
792
  if (!column.getCanSort()) {
786
793
  return (
@@ -802,8 +809,9 @@ export function DataTableColumnHeader<TData, TValue>({
802
809
  }
803
810
 
804
811
  const sortState = column.getIsSorted();
805
- const sortLabel =
806
- sortState === "desc"
812
+ const sortLabel = getSortLabel
813
+ ? getSortLabel(title, sortState)
814
+ : sortState === "desc"
807
815
  ? `Sort by ${title}, currently descending`
808
816
  : sortState === "asc"
809
817
  ? `Sort by ${title}, currently ascending`
@@ -870,6 +878,8 @@ export interface DataTableSearchProps<TData> extends Omit<
870
878
  ariaLabel?: string;
871
879
  /** Input placeholder. @default "Search..." */
872
880
  placeholder?: string;
881
+ /** Accessible label for the clear button. @default "Clear search" */
882
+ clearSearchAriaLabel?: string;
873
883
  }
874
884
 
875
885
  /**
@@ -883,8 +893,9 @@ export interface DataTableSearchProps<TData> extends Omit<
883
893
  */
884
894
  export function DataTableSearch<TData>({
885
895
  table,
886
- ariaLabel = "Search table",
887
- placeholder = "Search...",
896
+ ariaLabel,
897
+ placeholder,
898
+ clearSearchAriaLabel,
888
899
  ...inputGroupProps
889
900
  }: DataTableSearchProps<TData>) {
890
901
  const filterValue = (table.getState().globalFilter ?? "") as string;
@@ -899,8 +910,8 @@ export function DataTableSearch<TData>({
899
910
  <Search />
900
911
  </InputGroupAddon>
901
912
  <InputGroupInput
902
- aria-label={ariaLabel}
903
- placeholder={placeholder}
913
+ aria-label={ariaLabel ?? "Search table"}
914
+ placeholder={placeholder ?? "Search..."}
904
915
  type="text"
905
916
  value={filterValue}
906
917
  onChange={(event) => handleFilterChange(event.target.value)}
@@ -908,7 +919,7 @@ export function DataTableSearch<TData>({
908
919
  {filterValue && (
909
920
  <InputGroupAddon className="pr-1">
910
921
  <Button
911
- aria-label="Clear search"
922
+ aria-label={clearSearchAriaLabel ?? "Clear search"}
912
923
  className="h-auto p-1"
913
924
  data-slot="data-table-search-clear"
914
925
  dataHook={`${inputGroupProps.dataHook}-clear`}
@@ -1378,6 +1389,8 @@ export interface DataTableSelectAllCheckboxProps<TData> {
1378
1389
  trackingEl?: string;
1379
1390
  /** Analytics label. */
1380
1391
  trackingLabel?: string;
1392
+ /** Accessible label for the select-all checkbox. @default "Select all" */
1393
+ selectAllAriaLabel?: string;
1381
1394
  }
1382
1395
 
1383
1396
  /**
@@ -1389,10 +1402,11 @@ export function DataTableSelectAllCheckbox<TData>({
1389
1402
  dataHook,
1390
1403
  trackingEl,
1391
1404
  trackingLabel,
1405
+ selectAllAriaLabel,
1392
1406
  }: DataTableSelectAllCheckboxProps<TData>) {
1393
1407
  return (
1394
1408
  <Checkbox
1395
- aria-label="Select all"
1409
+ aria-label={selectAllAriaLabel ?? "Select all"}
1396
1410
  checked={
1397
1411
  table.getIsAllPageRowsSelected() ||
1398
1412
  (table.getIsSomePageRowsSelected() && "indeterminate")
@@ -1419,6 +1433,8 @@ export interface DataTableSelectRowCheckboxProps<TData> {
1419
1433
  trackingEl?: string;
1420
1434
  /** Analytics label. */
1421
1435
  trackingLabel?: string;
1436
+ /** Accessible label for the row selection checkbox. @default "Select row" */
1437
+ selectRowAriaLabel?: string;
1422
1438
  }
1423
1439
 
1424
1440
  /**
@@ -1429,10 +1445,11 @@ export function DataTableSelectRowCheckbox<TData>({
1429
1445
  dataHook,
1430
1446
  trackingEl,
1431
1447
  trackingLabel,
1448
+ selectRowAriaLabel,
1432
1449
  }: DataTableSelectRowCheckboxProps<TData>) {
1433
1450
  return (
1434
1451
  <Checkbox
1435
- aria-label="Select row"
1452
+ aria-label={selectRowAriaLabel ?? "Select row"}
1436
1453
  checked={row.getIsSelected()}
1437
1454
  dataHook={dataHook || `select-row-${row.id}`}
1438
1455
  disabled={!row.getCanSelect()}
@@ -216,6 +216,12 @@ export interface InputListItemsProps {
216
216
  * Disables all remove buttons in the list.
217
217
  */
218
218
  disabled?: boolean;
219
+ /**
220
+ * Accessible label for each item's remove button.
221
+ * Supports `{item}` placeholder for interpolation.
222
+ * @default "Remove {item}"
223
+ */
224
+ removeAriaLabel?: string;
219
225
  /**
220
226
  * Additional CSS classes applied to the list element.
221
227
  */
@@ -239,6 +245,7 @@ function InputListItems({
239
245
  loading = false,
240
246
  skeletonCount = 5,
241
247
  disabled = false,
248
+ removeAriaLabel,
242
249
  className,
243
250
  }: InputListItemsProps) {
244
251
  const { value, removeItem, stableKeys } = useInputListContext();
@@ -295,7 +302,11 @@ function InputListItems({
295
302
  </ItemContent>
296
303
  <ItemActions>
297
304
  <button
298
- aria-label={`Remove ${item}`}
305
+ aria-label={
306
+ removeAriaLabel
307
+ ? removeAriaLabel.replace("{item}", item)
308
+ : `Remove ${item}`
309
+ }
299
310
  className={cn(
300
311
  "inline-flex size-9 cursor-pointer items-center justify-center rounded-full",
301
312
  "text-muted-foreground",
@@ -391,8 +391,8 @@ const Sidebar = React.forwardRef<HTMLDivElement, SidebarProps>(
391
391
  collapsible = SidebarCollapsible.OFFCANVAS,
392
392
  // eslint-disable-next-line @typescript-eslint/no-unused-vars -- accepted for backward compat
393
393
  embedded,
394
- mobileTitle = "Navigation",
395
- mobileDescription = "Main navigation menu",
394
+ mobileTitle,
395
+ mobileDescription,
396
396
  className,
397
397
  children,
398
398
  ...props
@@ -435,9 +435,11 @@ const Sidebar = React.forwardRef<HTMLDivElement, SidebarProps>(
435
435
  } as React.CSSProperties
436
436
  }
437
437
  >
438
- <SheetTitle className="sr-only">{mobileTitle}</SheetTitle>
438
+ <SheetTitle className="sr-only">
439
+ {mobileTitle ?? "Navigation"}
440
+ </SheetTitle>
439
441
  <SheetDescription className="sr-only">
440
- {mobileDescription}
442
+ {mobileDescription ?? "Main navigation menu"}
441
443
  </SheetDescription>
442
444
  <div className="flex h-full w-full flex-col">{children}</div>
443
445
  </SheetContent>
@@ -488,6 +490,11 @@ interface SidebarTriggerProps extends Omit<
488
490
  * @default "sidebar-trigger"
489
491
  */
490
492
  dataHook?: string;
493
+ /**
494
+ * Accessible label for the toggle button.
495
+ * @default "Toggle Sidebar"
496
+ */
497
+ toggleAriaLabel?: string;
491
498
  }
492
499
 
493
500
  const SidebarTrigger = React.forwardRef<
@@ -495,16 +502,24 @@ const SidebarTrigger = React.forwardRef<
495
502
  SidebarTriggerProps
496
503
  >(
497
504
  (
498
- { className, onClick, dataHook = "sidebar-trigger", children, ...props },
505
+ {
506
+ className,
507
+ onClick,
508
+ dataHook = "sidebar-trigger",
509
+ toggleAriaLabel,
510
+ children,
511
+ ...props
512
+ },
499
513
  ref
500
514
  ) => {
501
515
  const { toggleSidebar } = useSidebar();
516
+ const resolvedLabel = toggleAriaLabel ?? "Toggle Sidebar";
502
517
 
503
518
  return (
504
519
  <Button
505
520
  ref={ref}
506
521
  iconOnly
507
- aria-label="Toggle Sidebar"
522
+ aria-label={resolvedLabel}
508
523
  className={cn("h-7 w-7", className)}
509
524
  data-slot="sidebar-trigger"
510
525
  dataHook={dataHook}
@@ -517,7 +532,7 @@ const SidebarTrigger = React.forwardRef<
517
532
  {...props}
518
533
  >
519
534
  {children || <PanelLeft />}
520
- <span className="sr-only">Toggle Sidebar</span>
535
+ <span className="sr-only">{resolvedLabel}</span>
521
536
  </Button>
522
537
  );
523
538
  }
@@ -527,16 +542,23 @@ SidebarTrigger.displayName = "SidebarTrigger";
527
542
  /**
528
543
  * Props for the SidebarRail component
529
544
  */
530
- type SidebarRailProps = React.ComponentProps<"button">;
545
+ interface SidebarRailProps extends React.ComponentProps<"button"> {
546
+ /**
547
+ * Accessible label and tooltip for the rail toggle.
548
+ * @default "Toggle Sidebar"
549
+ */
550
+ toggleAriaLabel?: string;
551
+ }
531
552
 
532
553
  const SidebarRail = React.forwardRef<HTMLButtonElement, SidebarRailProps>(
533
- ({ className, ...props }, ref) => {
554
+ ({ className, toggleAriaLabel, ...props }, ref) => {
534
555
  const { toggleSidebar } = useSidebar();
556
+ const resolvedLabel = toggleAriaLabel ?? "Toggle Sidebar";
535
557
 
536
558
  return (
537
559
  <button
538
560
  ref={ref}
539
- aria-label="Toggle Sidebar"
561
+ aria-label={resolvedLabel}
540
562
  className={cn(
541
563
  "hover:after:bg-sidebar-border absolute inset-y-0 -right-4 z-20 hidden w-4 -translate-x-1/2 transition-transform ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 sm:flex",
542
564
  "cursor-w-resize",
@@ -547,7 +569,7 @@ const SidebarRail = React.forwardRef<HTMLButtonElement, SidebarRailProps>(
547
569
  )}
548
570
  data-slot="sidebar-rail"
549
571
  tabIndex={-1}
550
- title="Toggle Sidebar"
572
+ title={resolvedLabel}
551
573
  onClick={toggleSidebar}
552
574
  {...props}
553
575
  />
@@ -623,15 +645,15 @@ SidebarInput.displayName = "SidebarInput";
623
645
  /**
624
646
  * Props for the SidebarHeader component
625
647
  */
626
- interface SidebarHeaderProps extends React.ComponentProps<"div"> {
648
+ interface SidebarHeaderProps extends React.ComponentProps<"header"> {
627
649
  /** Data hook for automated testing */
628
650
  dataHook?: string;
629
651
  }
630
652
 
631
- const SidebarHeader = React.forwardRef<HTMLDivElement, SidebarHeaderProps>(
653
+ const SidebarHeader = React.forwardRef<HTMLElement, SidebarHeaderProps>(
632
654
  ({ className, dataHook, ...props }, ref) => {
633
655
  return (
634
- <div
656
+ <header
635
657
  ref={ref}
636
658
  className={cn(
637
659
  "pr-section-xs flex flex-col gap-2 pt-2 pb-9 pl-8",
@@ -649,15 +671,15 @@ SidebarHeader.displayName = "SidebarHeader";
649
671
  /**
650
672
  * Props for the SidebarFooter component
651
673
  */
652
- interface SidebarFooterProps extends React.ComponentProps<"div"> {
674
+ interface SidebarFooterProps extends React.ComponentProps<"footer"> {
653
675
  /** Data hook for automated testing */
654
676
  dataHook?: string;
655
677
  }
656
678
 
657
- const SidebarFooter = React.forwardRef<HTMLDivElement, SidebarFooterProps>(
679
+ const SidebarFooter = React.forwardRef<HTMLElement, SidebarFooterProps>(
658
680
  ({ className, dataHook, ...props }, ref) => {
659
681
  return (
660
- <div
682
+ <footer
661
683
  ref={ref}
662
684
  className={cn("flex flex-col gap-2 p-2", className)}
663
685
  data-hook={dataHook}
@@ -1298,13 +1320,13 @@ const SidebarMenuSkeleton = React.forwardRef<
1298
1320
  SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
1299
1321
 
1300
1322
  const sidebarMenuSubVariants = cva(
1301
- "flex min-w-0 flex-col items-start gap-1 px-10 py-0.5 group-data-[collapsible=icon]:hidden",
1323
+ "flex min-w-0 flex-col items-start gap-1 py-0.5 group-data-[collapsible=icon]:hidden",
1302
1324
  {
1303
1325
  variants: {
1304
1326
  variant: {
1305
- default: "",
1306
- border: "[&>li]:border-l [&>li]:border-sidebar-border",
1307
- indent: "border-l-0",
1327
+ default: "px-10",
1328
+ border: "border-l border-sidebar-border ml-10 pl-1 pr-10",
1329
+ indent: "px-10",
1308
1330
  },
1309
1331
  },
1310
1332
  defaultVariants: {