@espressif/dashboard-ui-components 1.14.1 → 1.15.1

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 (70) hide show
  1. package/.claude/rules/dashboard-ui-consumption.md +48 -0
  2. package/CHANGELOG.md +82 -0
  3. package/dist/bottom-sheet.props-CFpM7Gvx.d.ts +26 -0
  4. package/dist/common/index.d.ts +3 -3
  5. package/dist/common/my-account-menu/my-account-menu.js +3 -3
  6. package/dist/components/async-multi-select/async-multi-select.js +4 -8
  7. package/dist/components/async-multi-select/index.d.ts +5 -1
  8. package/dist/components/bottom-sheet/index.d.ts +3 -25
  9. package/dist/components/breadcrumb/index.d.ts +4 -1
  10. package/dist/components/cards/index.d.ts +1 -1
  11. package/dist/components/cards/section-card.js +2 -2
  12. package/dist/components/carousel/carousel.js +8 -4
  13. package/dist/components/carousel/index.d.ts +8 -0
  14. package/dist/components/combobox/index.d.ts +3 -1
  15. package/dist/components/coverflow/coverflow.js +3 -2
  16. package/dist/components/coverflow/index.d.ts +2 -0
  17. package/dist/components/data-table/data-table.js +8 -4
  18. package/dist/components/data-table/index.d.ts +5 -1
  19. package/dist/components/date-range-picker/date-range-picker.js +5 -5
  20. package/dist/components/date-range-picker/index.d.ts +9 -1
  21. package/dist/components/dialog/index.d.ts +3 -1
  22. package/dist/components/facet-filters/active-filters.js +2 -1
  23. package/dist/components/facet-filters/filter-group.js +2 -1
  24. package/dist/components/facet-filters/index.d.ts +4 -0
  25. package/dist/components/file-upload/file-upload.js +2 -2
  26. package/dist/components/file-upload/index.d.ts +2 -0
  27. package/dist/components/filters-bar/filters-bar-sheet.js +73 -0
  28. package/dist/components/filters-bar/filters-bar.js +51 -28
  29. package/dist/components/filters-bar/index.d.ts +35 -8
  30. package/dist/components/index.d.ts +8 -7
  31. package/dist/components/key-value-manager/index.d.ts +8 -0
  32. package/dist/components/key-value-manager/key-value-manager-table.js +4 -4
  33. package/dist/components/key-value-manager/key-value-manager.js +5 -1
  34. package/dist/components/key-value-manager/key-value-manager.props.js +5 -1
  35. package/dist/components/list-details/index.d.ts +1 -1
  36. package/dist/components/nav-bar/index.d.ts +19 -2
  37. package/dist/components/nav-bar/nav-bar-mobile-menu.js +4 -3
  38. package/dist/components/nav-bar/nav-bar.js +10 -7
  39. package/dist/components/sheet/index.d.ts +3 -1
  40. package/dist/components/sidebar/index.d.ts +13 -6
  41. package/dist/components/sidebar/sidebar.js +4 -2
  42. package/dist/components/simple-paginated-list/index.d.ts +11 -2
  43. package/dist/components/simple-paginated-list/simple-paginated-list.js +3 -3
  44. package/dist/components/stat-card/index.d.ts +10 -0
  45. package/dist/components/stat-card/stat-card.js +60 -48
  46. package/dist/components/tag/index.d.ts +2 -0
  47. package/dist/components/tag/tag.js +2 -2
  48. package/dist/components/tag-input/index.d.ts +5 -0
  49. package/dist/components/tag-input/tag-input.js +5 -3
  50. package/dist/components/transfer-list/index.d.ts +22 -2
  51. package/dist/components/transfer-list/transfer-list.js +30 -8
  52. package/dist/components/user-type-badge/index.d.ts +2 -0
  53. package/dist/components/user-type-badge/user-type-badge.js +3 -2
  54. package/dist/core/animate-ui/components/radix/dialog.js +2 -2
  55. package/dist/core/animate-ui/components/radix/sheet.js +3 -3
  56. package/dist/core/animate-ui/components/radix/sidebar.js +4 -4
  57. package/dist/core/breadcrumb.js +2 -2
  58. package/dist/core/combobox/combobox.js +2 -2
  59. package/dist/index.d.ts +10 -9
  60. package/dist/layouts/index.d.ts +81 -35
  61. package/dist/layouts/minimal-workspace-layout/minimal-workspace-layout.js +8 -2
  62. package/dist/layouts/shared/account-menu-props.js +3 -2
  63. package/dist/layouts/workspace-layout/account-menu/account-menu.js +19 -8
  64. package/dist/layouts/workspace-layout/breadcrumbs/workspace-breadcrumbs.js +14 -11
  65. package/dist/layouts/workspace-layout/header/header.js +3 -3
  66. package/dist/layouts/workspace-layout/workspace-layout.js +13 -5
  67. package/dist/{my-account-menu.props-C7DK71WC.d.ts → my-account-menu.props-V3kFdvCZ.d.ts} +2 -0
  68. package/dist/{section-card-DqQeQkzU.d.ts → section-card-Bs3sKQtv.d.ts} +6 -1
  69. package/dist/{types-CkXflqg7.d.ts → types-CoZOfz4S.d.ts} +12 -1
  70. package/package.json +1 -1
@@ -174,6 +174,39 @@ Things agents get wrong:
174
174
  - For a link that looks like a button use `asChild`, never a Button that navigates in `onClick`:
175
175
  `<Button asChild startIcon={<Plus />}><Link to="/new">Add</Link></Button>`. With `disabled`/`loading` the link gets `aria-disabled`, `tabIndex={-1}` and its clicks are cancelled.
176
176
 
177
+ ## Showing an app in another language (1.15)
178
+
179
+ The library ships English only and translates nothing. Every word it writes
180
+ itself (visible or for screen readers) is an optional prop whose default is that
181
+ English: pass the app's own translated words. Several strings → a `labels`
182
+ object; one string → a `<thing>Label` prop. Function labels receive what they
183
+ name (`goToSlide: (n) => …`, `deleteItem: (key) => …`).
184
+
185
+ - Shell: `WorkspaceLayout` / `MinimalWorkspaceLayout` take `accountMenuLabels`
186
+ (the account menu: `menu`, `colorTheme`, `darkMode`, `lightMode`, `language`,
187
+ `logout`) and `labels` (`WorkspaceLayoutLabels` / `MinimalWorkspaceLayoutLabels`:
188
+ sidebar toggle/expand/collapse, the phone sheet's `closeSidebar`,
189
+ `sidebarTitle`, `sidebarDescription`; `breadcrumbs` on WorkspaceLayout).
190
+ `MyAccountMenu` `triggerLabel`; `Sidebar` `labels`; `SidebarTrigger` `label`.
191
+ - Overlays: `closeLabel` on every `DialogContent` and `SheetContent` (the X
192
+ button). Pass it everywhere, e.g. through one small app wrapper.
193
+ - `NavBar` `labels` (+ `moreLabel`), `Carousel` `labels` (`pagination`,
194
+ `goToSlide`, `roleDescription`, `slideRoleDescription`, …), `Coverflow`
195
+ `labels.roleDescription`.
196
+ - Data: `DataTable` `selectAllLabel` / `selectRowLabel` (plus its existing
197
+ `previousLabel`, `nextLabel`, `pageLabel`, …), `SimplePaginatedList` `labels`,
198
+ `KeyValueManager` `labels`, `TransferList` `labels`, `DateRangePicker`
199
+ `startDateLabel` / `endDateLabel` / `cancelLabel` / `applyLabel` (plus
200
+ `clearLabel`, `presetLabels`, `placeholder`).
201
+ - Small ones: `StatCard` `infoIconLabel`, `SectionCard` `toggleLabel`,
202
+ `UserTypeBadge` `label`, `BreadcrumbEllipsis` `moreLabel`, `Tag` `deleteLabel`,
203
+ `TagInput` `removeTagLabel`, `FileUpload` `removeFileLabel`,
204
+ `AsyncCombobox` `loadMoreLabel`, `AsyncMultiSelect` `removeLabel` / `moreLabel`,
205
+ `FacetFiltersLabels.clearSearch`, `ActiveFilterTag.deleteLabel`.
206
+
207
+ Dates and numbers that a component formats itself (calendar month names,
208
+ `StatCard` values, file sizes) are not localized by these props.
209
+
177
210
  ## Optional peer dependencies
178
211
 
179
212
  Install only when the feature is used:
@@ -263,6 +296,15 @@ Things agents get wrong about it:
263
296
  (`landscape` 4:3, `square`); do not set the stage height through `className`.
264
297
  - The reflection fade uses `mask-*` utilities, which need Tailwind **4.1+**.
265
298
 
299
+ ## StatCard
300
+
301
+ - What a number counts goes in `description`, not inside `heading` as a node: it wraps
302
+ under the heading and is never cut short. `infoContent` is for longer notes behind
303
+ the info button.
304
+ - It lays itself out by its own width (a container query): below about 22rem the icon
305
+ moves above the heading. Do not switch layouts per breakpoint in the app, and give it
306
+ a width (a grid or flex cell), not a shrink-to-fit parent.
307
+
266
308
  ## CategoryCard or SimpleClickableCard
267
309
 
268
310
  - `CategoryCard` (from `/components`): a "browse by kind" card, stacked: icon tile, a count
@@ -322,6 +364,12 @@ Things agents get wrong about it:
322
364
  - `AnchoredPanel` is non-modal and positioned by a zero-size anchor element the app keeps at
323
365
  the point (`anchorRef`); pass `keepOpenFor` for the control that toggles it, or that
324
366
  control's own click closes and reopens it.
367
+ - `FiltersBar` puts `search` and `actions` on its first row and `filters` on rows of their own
368
+ below. Pass the filter controls only: with `onClearAll` (set it only while something is
369
+ set) and `labels` (`FiltersBarLabels`: `filters`, `clearAll`, `sheet`) it renders "Clear all"
370
+ itself, and below a 576px-wide bar folds the filters into a "Filters" button
371
+ (`activeFilterCount` badge) that opens a `BottomSheet`. Without `labels` the filters scroll
372
+ sideways on a narrow bar. `searchClassName` replaces the default `max-w-md`.
325
373
  - `BottomSheet` is non-modal and has no `open` prop: render it to open it, stop rendering it in
326
374
  `onClose`. It keeps its own height (half or tall). `labels` (`expand`, `collapse`, `close`)
327
375
  are required and not translated. It is `fixed` to the viewport; inside a framed preview pass
package/CHANGELOG.md CHANGED
@@ -4,6 +4,88 @@ All notable changes to this project are documented here. The format is based on
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres
5
5
  to [Semantic Versioning](https://semver.org/).
6
6
 
7
+ ## [1.15.1] - 2026-12-04
8
+
9
+ ### Added
10
+ - **`StatCard` `description`.** One or two sentences under the heading that say
11
+ what the number counts. It wraps and is never cut short (`body` role,
12
+ `secondary` at `size="sm"`). Apps that put a description inside `heading`
13
+ can move it here.
14
+ - `FiltersBar` `labels` (`FiltersBarLabels`: `filters`, `clearAll`, `sheet`),
15
+ `activeFilterCount` and `onClearAll`. With `labels`, below a 576px-wide bar
16
+ the filters fold into a "Filters" button with a count badge that opens a
17
+ `BottomSheet`: the filters full width, and "Clear all" pinned to its bottom
18
+ edge. `onClearAll` also puts a "Clear all" link after the filters on a wider
19
+ bar, so pages no longer render their own.
20
+
21
+ ### Changed
22
+ - **`StatCard` stacks its header when the card is narrow.** Below a content
23
+ width of 20rem (a card about 22rem wide at the default size) the icon moves
24
+ above the heading and is drawn smaller, so the heading and description use
25
+ the card's full width instead of a squeezed column beside the icon. Wider
26
+ cards look as before. The card measures its own width (a container query,
27
+ like `CategoryCard`), so it needs a width from its parent: a grid or flex
28
+ cell, not a shrink-to-fit box.
29
+ - **`StatCard`'s info button sits beside the heading.** The button that opens
30
+ `infoContent` moved from the bottom-right corner to just after the heading,
31
+ so it reads as "about this number"; its popover opens below it. The bottom
32
+ row now appears only for a trend (`previousValue`).
33
+ - **`StatCard` values line up in a row of cards.** When cards in a grid are
34
+ stretched to the same height, the value (and what follows it) sits at the
35
+ bottom, so values stay level when headings or descriptions differ in length.
36
+ - **`FiltersBar` keeps its search and actions in one place, however many
37
+ filters a page has.** The search and the page actions now always share the
38
+ first row, and the filters get a row of their own below it that wraps onto
39
+ further rows. Before, from a 768px-wide bar, everything shared one wrapping
40
+ row: with four filters the search floated halfway down, "Clear all" dropped
41
+ under the first filter and the actions drifted. The filters row wraps from a
42
+ 576px-wide bar (was 768px); below that, without `labels`, it still scrolls
43
+ sideways.
44
+ - `FiltersBar`'s search keeps at least 12rem; when the actions don't fit
45
+ beside it they wrap onto a line of their own, end-aligned, instead of
46
+ squeezing it.
47
+ - `FiltersBar` `searchClassName` now replaces `max-w-md` in every layout
48
+ (with `filters` it used to replace `@3xl:w-xs`). A page that passed an
49
+ `@3xl:w-*` width gets a search that grows to fill the row; pass a
50
+ `max-w-*` instead.
51
+
52
+ ## [1.15.0] - 2026-11-26
53
+
54
+ ### Added
55
+ - **Labels for an app shown in another language.** Every word the library itself
56
+ puts on screen or reads to a screen reader can now be passed in; each defaults
57
+ to the English it said before, so nothing changes for an app that passes none.
58
+ - `AccountMenu` `labels` (`AccountMenuLabels`: `menu`, `colorTheme`,
59
+ `darkMode`, `lightMode`, `language`, `logout`), and `accountMenuLabels` on
60
+ `WorkspaceLayout` and `MinimalWorkspaceLayout`.
61
+ - `MyAccountMenu` `triggerLabel` (was always "My Account").
62
+ - `DialogContent` and `SheetContent` `closeLabel` (was always "Close").
63
+ - `NavBar` `labels` (`NavBarLabels`: `navigation`, `openMenu`, `moreItems`,
64
+ `mobileNavigation`, `back`, `close`).
65
+ - `Carousel` `labels`: `pagination` ("Carousel pagination"), `goToSlide`
66
+ (the dots), `roleDescription` and `slideRoleDescription` ("carousel" /
67
+ "slide"). `CoverflowLabels.roleDescription`.
68
+ - `WorkspaceLayout` `labels` (`WorkspaceLayoutLabels`: `toggleSidebar`,
69
+ `closeSidebar`, `sidebarTitle`, `sidebarDescription`, `breadcrumbs`);
70
+ `MinimalWorkspaceLayoutLabels` gains `closeSidebar`, `sidebarTitle` and
71
+ `sidebarDescription` (the phone sheet). `WorkspaceHeader`
72
+ `toggleSidebarLabel`.
73
+ - `Sidebar` `labels` (`SidebarLabels`: `close`, `mobileTitle`,
74
+ `mobileDescription`); `SidebarTrigger` `label`; `SidebarPrimitive`
75
+ `mobileTitle` / `mobileDescription`.
76
+ - `BreadcrumbEllipsis` `moreLabel`, `StatCard` `infoIconLabel`,
77
+ `SectionCard` `toggleLabel`, `UserTypeBadge` `label`, `Tag` `deleteLabel`,
78
+ `TagInput` `removeTagLabel`, `FileUpload` `removeFileLabel`,
79
+ `AsyncCombobox` `loadMoreLabel`, `AsyncMultiSelect` `removeLabel` and
80
+ `moreLabel`.
81
+ - `DataTable` `selectAllLabel` / `selectRowLabel`; `DateRangePicker`
82
+ `startDateLabel`, `endDateLabel`, `cancelLabel`, `applyLabel`.
83
+ - `SimplePaginatedList` `labels` (`previousPage`, `nextPage`);
84
+ `KeyValueManagerLabels` gains `previousPage`, `nextPage`, `deleteItem` and
85
+ `clearSearch`; `TransferList` `labels` (`TransferListLabels`: `selectAll`,
86
+ `search`, `searchPlaceholder`, `cancelSearch`, `clearSearch`, `moveTo`).
87
+ - `FacetFiltersLabels.clearSearch` and `ActiveFilterTag.deleteLabel`.
88
+
7
89
  ## [1.14.1] - 2026-11-26
8
90
 
9
91
  ### Added
@@ -0,0 +1,26 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ /** The sheet's own controls, named in the page's language (no English defaults). */
4
+ interface BottomSheetLabels {
5
+ /** The handle's name while the sheet is at half height. */
6
+ expand: string;
7
+ /** The handle's name while the sheet is tall. */
8
+ collapse: string;
9
+ /** The ✕ button's name. */
10
+ close: string;
11
+ }
12
+ interface BottomSheetProps {
13
+ /** Names the sheet (its dialog role) and shows in its title bar. */
14
+ title: string;
15
+ /** Beside the title. */
16
+ icon?: ReactNode;
17
+ labels: BottomSheetLabels;
18
+ /** Escape, ✕, or a drag or flick down. Open and closed is the parent's: it renders the sheet or doesn't. */
19
+ onClose: () => void;
20
+ /** What the sheet holds; it scrolls on its own below the title bar. */
21
+ children: ReactNode;
22
+ /** Merged onto the sheet's `<section>` (e.g. `absolute` instead of `fixed` inside a framed preview). */
23
+ className?: string;
24
+ }
25
+
26
+ export type { BottomSheetLabels as B, BottomSheetProps as a };
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from 'react';
2
- import { A as AppLogoProps, M as MyAccountMenuProps } from '../my-account-menu.props-C7DK71WC.js';
3
- export { L as LogoAsset, a as LogoAssetConfig, b as LogoVariantSet } from '../my-account-menu.props-C7DK71WC.js';
2
+ import { A as AppLogoProps, M as MyAccountMenuProps } from '../my-account-menu.props-V3kFdvCZ.js';
3
+ export { L as LogoAsset, a as LogoAssetConfig, b as LogoVariantSet } from '../my-account-menu.props-V3kFdvCZ.js';
4
4
  import { C as Color } from '../index-BQANnKs9.js';
5
5
  import '../list.props-DP_xPTqU.js';
6
6
  import '../style-axes-DSQ2DGc5.js';
@@ -36,7 +36,7 @@ declare function CopyrightCard({ text, logoSrc, logoAlt, href, logoOnly, }: Copy
36
36
  */
37
37
  declare function PageLoader(): React$1.JSX.Element;
38
38
 
39
- declare function MyAccountMenu({ name, email, imageUrl, minWidth, menuItems, avatarColor, badgeColor, badgeIcon, triggerVariant, side, align, }: MyAccountMenuProps): React$1.JSX.Element;
39
+ declare function MyAccountMenu({ name, email, imageUrl, minWidth, menuItems, avatarColor, badgeColor, badgeIcon, triggerVariant, side, align, triggerLabel, }: MyAccountMenuProps): React$1.JSX.Element;
40
40
 
41
41
  declare function FooterCard(): React$1.JSX.Element;
42
42
 
@@ -5,7 +5,7 @@ import Menu$1 from "../../components/menu/menu.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { ChevronsUpDown } from "lucide-react";
7
7
  //#region src/common/my-account-menu/my-account-menu.tsx
8
- function MyAccountMenu({ name, email, imageUrl, minWidth = "200px", menuItems, avatarColor, badgeColor, badgeIcon, triggerVariant = "avatar", side, align = "end" }) {
8
+ function MyAccountMenu({ name, email, imageUrl, minWidth = "200px", menuItems, avatarColor, badgeColor, badgeIcon, triggerVariant = "avatar", side, align = "end", triggerLabel = "My Account" }) {
9
9
  const avatar = /* @__PURE__ */ jsx(Avatar, {
10
10
  name: name || email,
11
11
  imageUrl,
@@ -39,7 +39,7 @@ function MyAccountMenu({ name, email, imageUrl, minWidth = "200px", menuItems, a
39
39
  }),
40
40
  /* @__PURE__ */ jsx("span", {
41
41
  className: "sr-only",
42
- children: "My Account"
42
+ children: triggerLabel
43
43
  })
44
44
  ]
45
45
  }) : /* @__PURE__ */ jsxs(Button, {
@@ -48,7 +48,7 @@ function MyAccountMenu({ name, email, imageUrl, minWidth = "200px", menuItems, a
48
48
  className: "rounded-full",
49
49
  children: [avatar, /* @__PURE__ */ jsx("span", {
50
50
  className: "sr-only",
51
- children: "My Account"
51
+ children: triggerLabel
52
52
  })]
53
53
  }),
54
54
  side,
@@ -23,7 +23,7 @@ function normalizeValue(value, multiple) {
23
23
  if (Array.isArray(value)) return value;
24
24
  return multiple ? [value] : [value];
25
25
  }
26
- function AsyncMultiSelect({ options, multiple = true, value, onValueChange, onSearchChange, hasMore = false, onLoadMore, isLoading = false, disabled = false, placeholder = "Select...", emptyText = "No results.", searchPlaceholder = "Search...", label, required, size = "default", className, clearable = false, maxDisplayedBadges = 3, portal = true, renderOption, action, radius, border }) {
26
+ function AsyncMultiSelect({ options, multiple = true, value, onValueChange, onSearchChange, hasMore = false, onLoadMore, isLoading = false, disabled = false, placeholder = "Select...", emptyText = "No results.", searchPlaceholder = "Search...", removeLabel = (optionLabel) => `Remove ${optionLabel}`, moreLabel = (count) => `+${count} more`, label, required, size = "default", className, clearable = false, maxDisplayedBadges = 3, portal = true, renderOption, action, radius, border }) {
27
27
  const axes = useStyleAxes({
28
28
  radius,
29
29
  border
@@ -104,16 +104,12 @@ function AsyncMultiSelect({ options, multiple = true, value, onValueChange, onSe
104
104
  onKeyDown: (e) => {
105
105
  if (e.key === "Enter" || e.key === " ") handleRemove(opt.value, e);
106
106
  },
107
- "aria-label": `Remove ${opt.label}`,
107
+ "aria-label": removeLabel(opt.label),
108
108
  children: /* @__PURE__ */ jsx(X, { className: "size-3" })
109
109
  })]
110
- }, opt.value)), remaining > 0 && /* @__PURE__ */ jsxs("span", {
110
+ }, opt.value)), remaining > 0 && /* @__PURE__ */ jsx("span", {
111
111
  className: "type-caption text-muted-foreground",
112
- children: [
113
- "+",
114
- remaining,
115
- " more"
116
- ]
112
+ children: moreLabel(remaining)
117
113
  })]
118
114
  });
119
115
  }
@@ -32,6 +32,10 @@ interface AsyncMultiSelectProps extends Pick<StyleAxisProps, "radius" | "border"
32
32
  placeholder?: string;
33
33
  emptyText?: string;
34
34
  searchPlaceholder?: string;
35
+ /** Accessible name of a selected badge's remove button. Default `` label => `Remove ${label}` ``. */
36
+ removeLabel?: (label: string) => string;
37
+ /** Text after the badges when more are selected than shown. Default `` count => `+${count} more` ``. */
38
+ moreLabel?: (count: number) => string;
35
39
  label?: React.ReactNode;
36
40
  required?: boolean;
37
41
  size?: Size;
@@ -58,6 +62,6 @@ interface AsyncMultiSelectProps extends Pick<StyleAxisProps, "radius" | "border"
58
62
  action?: AsyncMultiSelectAction;
59
63
  }
60
64
 
61
- declare function AsyncMultiSelect({ options, multiple, value, onValueChange, onSearchChange, hasMore, onLoadMore, isLoading, disabled, placeholder, emptyText, searchPlaceholder, label, required, size, className, clearable, maxDisplayedBadges, portal, renderOption, action, radius, border, }: AsyncMultiSelectProps): React.JSX.Element;
65
+ declare function AsyncMultiSelect({ options, multiple, value, onValueChange, onSearchChange, hasMore, onLoadMore, isLoading, disabled, placeholder, emptyText, searchPlaceholder, removeLabel, moreLabel, label, required, size, className, clearable, maxDisplayedBadges, portal, renderOption, action, radius, border, }: AsyncMultiSelectProps): React.JSX.Element;
62
66
 
63
67
  export { AsyncMultiSelect, type AsyncMultiSelectOption, type AsyncMultiSelectProps };
@@ -1,28 +1,6 @@
1
1
  import * as React from 'react';
2
- import { ReactNode } from 'react';
3
-
4
- /** The sheet's own controls, named in the page's language (no English defaults). */
5
- interface BottomSheetLabels {
6
- /** The handle's name while the sheet is at half height. */
7
- expand: string;
8
- /** The handle's name while the sheet is tall. */
9
- collapse: string;
10
- /** The ✕ button's name. */
11
- close: string;
12
- }
13
- interface BottomSheetProps {
14
- /** Names the sheet (its dialog role) and shows in its title bar. */
15
- title: string;
16
- /** Beside the title. */
17
- icon?: ReactNode;
18
- labels: BottomSheetLabels;
19
- /** Escape, ✕, or a drag or flick down. Open and closed is the parent's: it renders the sheet or doesn't. */
20
- onClose: () => void;
21
- /** What the sheet holds; it scrolls on its own below the title bar. */
22
- children: ReactNode;
23
- /** Merged onto the sheet's `<section>` (e.g. `absolute` instead of `fixed` inside a framed preview). */
24
- className?: string;
25
- }
2
+ import { a as BottomSheetProps } from '../../bottom-sheet.props-CFpM7Gvx.js';
3
+ export { B as BottomSheetLabels } from '../../bottom-sheet.props-CFpM7Gvx.js';
26
4
 
27
5
  /**
28
6
  * A phone's panel: a sheet up from the bottom edge, half the screen, so what
@@ -47,4 +25,4 @@ declare function settleSheet({ share, velocity, from }: {
47
25
  from: Exclude<SheetRest, "closed">;
48
26
  }): SheetRest;
49
27
 
50
- export { BottomSheet, type BottomSheetLabels, type BottomSheetProps, type SheetRest, settleSheet };
28
+ export { BottomSheet, BottomSheetProps, type SheetRest, settleSheet };
@@ -14,7 +14,10 @@ declare const BreadcrumbSeparator: {
14
14
  displayName: string;
15
15
  };
16
16
  declare const BreadcrumbEllipsis: {
17
- ({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
17
+ ({ className, moreLabel, ...props }: React.ComponentProps<"span"> & {
18
+ /** Screen-reader text for the collapsed items. Default "More". */
19
+ moreLabel?: string;
20
+ }): React.JSX.Element;
18
21
  displayName: string;
19
22
  };
20
23
 
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import { k as StyleAxisProps } from '../../style-axes-DSQ2DGc5.js';
4
- export { S as SectionCard, a as SectionCardProps, b as SectionCardSize, c as SectionCardVariant } from '../../section-card-DqQeQkzU.js';
4
+ export { S as SectionCard, a as SectionCardProps, b as SectionCardSize, c as SectionCardVariant } from '../../section-card-Bs3sKQtv.js';
5
5
  import '../../index-BQANnKs9.js';
6
6
  import '../../variant-DjdaxfIA.js';
7
7
 
@@ -210,7 +210,7 @@ function TruncatedLineWithTooltip({ className, textStyle, tooltipContent, childr
210
210
  children: tooltip
211
211
  });
212
212
  }
213
- function SectionCard({ icon, primaryText, secondaryText, truncateSecondaryText = true, actions, allowCollapse: allowCollapseProp = true, hideCollapseIcon = false, defaultOpen = true, open: controlledOpen, size = "default", variant = "outline", color = "gray", children, className, style, fillHeight: fillHeightProp = false, onOpenChange, expandOnHover = false, radius, elevation }) {
213
+ function SectionCard({ icon, primaryText, secondaryText, truncateSecondaryText = true, actions, allowCollapse: allowCollapseProp = true, hideCollapseIcon = false, toggleLabel: toggleLabelProp, defaultOpen = true, open: controlledOpen, size = "default", variant = "outline", color = "gray", children, className, style, fillHeight: fillHeightProp = false, onOpenChange, expandOnHover = false, radius, elevation }) {
214
214
  const allowCollapse = expandOnHover ? false : allowCollapseProp;
215
215
  const fillHeight = expandOnHover ? false : fillHeightProp;
216
216
  const hover = useHoverExpand(expandOnHover, onOpenChange);
@@ -227,7 +227,7 @@ function SectionCard({ icon, primaryText, secondaryText, truncateSecondaryText =
227
227
  }, [defaultOpen]);
228
228
  const isOpenControlled = controlledOpen !== void 0;
229
229
  const open = isOpenControlled ? controlledOpen : uncontrolledOpen;
230
- const toggleLabel = typeof primaryText === "string" ? `Toggle ${primaryText}` : "Toggle section";
230
+ const toggleLabel = toggleLabelProp ?? (typeof primaryText === "string" ? `Toggle ${primaryText}` : "Toggle section");
231
231
  const hasPrimaryText = hasRenderableContent(primaryText);
232
232
  const hasSecondaryText = hasRenderableContent(secondaryText);
233
233
  const hasHeaderText = hasPrimaryText || hasSecondaryText;
@@ -30,19 +30,19 @@ function getDotWindow(total, maxDots, selectedIndex) {
30
30
  if (start > total - maxDots) start = total - maxDots;
31
31
  return Array.from({ length: maxDots }, (_, i) => start + i);
32
32
  }
33
- function DotsRow({ total, maxDots, selectedIndex, orientation, onDotClick }) {
33
+ function DotsRow({ total, maxDots, selectedIndex, orientation, onDotClick, label = "Carousel pagination", goToSlide = (index) => `Go to slide ${index}` }) {
34
34
  const window = getDotWindow(total, maxDots, selectedIndex);
35
35
  return /* @__PURE__ */ jsx("div", {
36
36
  className: cn("flex items-center justify-center gap-1.5", orientation === "horizontal" ? "mt-3 flex-row" : "ml-3 flex-col"),
37
37
  role: "tablist",
38
- "aria-label": "Carousel pagination",
38
+ "aria-label": label,
39
39
  children: window.map((index) => {
40
40
  const isActive = index === selectedIndex;
41
41
  return /* @__PURE__ */ jsx("button", {
42
42
  type: "button",
43
43
  role: "tab",
44
44
  "aria-selected": isActive,
45
- "aria-label": `Go to slide ${index + 1}`,
45
+ "aria-label": goToSlide(index + 1),
46
46
  onClick: () => onDotClick(index),
47
47
  className: cn("rounded-full transition-all duration-200 ease-out", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", orientation === "horizontal" ? isActive ? "h-2 w-4 bg-foreground" : "h-2 w-2 bg-muted-foreground/40 hover:bg-muted-foreground/60" : isActive ? "h-4 w-2 bg-foreground" : "h-2 w-2 bg-muted-foreground/40 hover:bg-muted-foreground/60")
48
48
  }, index);
@@ -98,7 +98,9 @@ function CarouselNavigation({ props, state, placement, maxDots }) {
98
98
  maxDots,
99
99
  selectedIndex: state.selectedIndex,
100
100
  orientation,
101
- onDotClick: state.scrollTo
101
+ onDotClick: state.scrollTo,
102
+ label: labels?.pagination,
103
+ goToSlide: labels?.goToSlide
102
104
  });
103
105
  if (navigation === "custom" && renderNavigation) return /* @__PURE__ */ jsx("div", {
104
106
  className: cn(orientation === "horizontal" ? "mt-3" : "ml-3"),
@@ -214,10 +216,12 @@ function Carousel(props) {
214
216
  plugins,
215
217
  className: cn("min-w-0 flex-1", beside && (orientation === "horizontal" ? "px-11" : "py-11")),
216
218
  "aria-label": labels?.carousel,
219
+ "aria-roledescription": labels?.roleDescription ?? "carousel",
217
220
  children: [
218
221
  /* @__PURE__ */ jsx(CarouselContent, { children: data.map((item, index) => /* @__PURE__ */ jsx(CarouselItem, {
219
222
  className: itemClassName,
220
223
  "aria-label": labels?.slide?.(index + 1, data.length),
224
+ "aria-roledescription": labels?.slideRoleDescription ?? "slide",
221
225
  children: item.content
222
226
  }, item.id)) }),
223
227
  sideArrows && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(CarouselPrevious, {
@@ -21,6 +21,14 @@ interface CarouselLabels {
21
21
  next?: string;
22
22
  /** Each slide's name, 1-based ("2 of 5: Air Mouse"). */
23
23
  slide?: (index: number, total: number) => string;
24
+ /** The row of dots under the slides. Default "Carousel pagination". */
25
+ pagination?: string;
26
+ /** One dot, 1-based. Default `` index => `Go to slide ${index}` ``. */
27
+ goToSlide?: (index: number) => string;
28
+ /** What a screen reader calls the carousel (`aria-roledescription`). Default "carousel". */
29
+ roleDescription?: string;
30
+ /** What a screen reader calls each slide (`aria-roledescription`). Default "slide". */
31
+ slideRoleDescription?: string;
24
32
  }
25
33
  /** Where a slide comes to rest in the viewport when it is selected. */
26
34
  type CarouselAlign = 'start' | 'center' | 'end';
@@ -22,7 +22,9 @@ interface AsyncComboboxProps extends Pick<StyleAxisProps, "radius" | "border"> {
22
22
  clearable?: boolean;
23
23
  hasMore?: boolean;
24
24
  onLoadMore?: () => void;
25
+ /** The button that loads more options. Default "Load more". */
26
+ loadMoreLabel?: string;
25
27
  }
26
- declare function AsyncCombobox({ value, onValueChange, options, onSearchChange, isLoading, placeholder, emptyText, searchPlaceholder, label, required, disabled, className, clearable, hasMore, onLoadMore, radius, border, }: AsyncComboboxProps): React.JSX.Element;
28
+ declare function AsyncCombobox({ value, onValueChange, options, onSearchChange, isLoading, placeholder, emptyText, searchPlaceholder, label, required, disabled, className, clearable, hasMore, onLoadMore, loadMoreLabel, radius, border, }: AsyncComboboxProps): React.JSX.Element;
27
29
 
28
30
  export { AsyncCombobox, type AsyncComboboxProps, type ComboboxOption };
@@ -24,7 +24,8 @@ var DEFAULT_LABELS = {
24
24
  next: "Next",
25
25
  pick: "Choose an item",
26
26
  show: (name) => `Show ${name}`,
27
- open: (name) => `Open ${name}`
27
+ open: (name) => `Open ${name}`,
28
+ roleDescription: "carousel"
28
29
  };
29
30
  /** The default face: the item's image, or the fallback when there is none or it fails to load. */
30
31
  function ImageFace({ item, state, variant, fallback }) {
@@ -138,7 +139,7 @@ function Coverflow(props) {
138
139
  ref: root,
139
140
  "data-slot": "coverflow",
140
141
  role: "region",
141
- "aria-roledescription": "carousel",
142
+ "aria-roledescription": labels?.roleDescription ?? DEFAULT_LABELS.roleDescription,
142
143
  "aria-labelledby": labelledBy,
143
144
  "aria-label": labelledBy ? void 0 : labels?.carousel ?? DEFAULT_LABELS.carousel,
144
145
  className: cn("flex flex-col gap-6", className),
@@ -27,6 +27,8 @@ interface CoverflowLabels {
27
27
  show?: (name: string) => string;
28
28
  /** The front card, when `onOpen` is set. Default `Open ${name}`. */
29
29
  open?: (name: string) => string;
30
+ /** What a screen reader calls the region (`aria-roledescription`). Default "carousel". */
31
+ roleDescription?: string;
30
32
  }
31
33
  /** The card's proportions; sets the card width per breakpoint, the reflection depth and the stage height together. */
32
34
  type CoverflowAspect = 'square' | 'landscape';
@@ -16,7 +16,7 @@ import { Columns2 } from "lucide-react";
16
16
  import { getCoreRowModel, getPaginationRowModel, useReactTable } from "@tanstack/react-table";
17
17
  //#region src/components/data-table/data-table.tsx
18
18
  var edgeShadowClass = "pointer-events-none absolute inset-y-0 z-[3] w-4 from-black/10 to-transparent opacity-0 transition-opacity dark:from-black/40";
19
- function DataTable({ columns, data, tableActionsContent, isFetching, pageIndex = 0, hasNextPage = false, hasPrevPage = false, onNextPage, onPrevPage, pageSize = 5, onPageSizeChange, pageSizeOptions = DEFAULT_PAGE_SIZE_OPTIONS, showColumnVisibilitySelector = true, columnVisibilityLabel = "Columns", noResultsHeading = "No results", noResultsDescription = "No results found. Try adjusting your search or filter to find what you're looking for.", noResultsAction, noResultsIllustration, hideNoResultsIllustration, pageLabel, previousLabel = "Previous", nextLabel = "Next", pageSizeOptionLabel, onRowClick, showBorder = false, rowSelection, onRowSelectionChange, getRowId, enableMultiRowSelection = true, enableRowSelection = false, tableRowClassName, getRowClassName, className, hidePaginationControls = false, radius, border, density }) {
19
+ function DataTable({ columns, data, tableActionsContent, isFetching, pageIndex = 0, hasNextPage = false, hasPrevPage = false, onNextPage, onPrevPage, pageSize = 5, onPageSizeChange, pageSizeOptions = DEFAULT_PAGE_SIZE_OPTIONS, showColumnVisibilitySelector = true, columnVisibilityLabel = "Columns", noResultsHeading = "No results", noResultsDescription = "No results found. Try adjusting your search or filter to find what you're looking for.", noResultsAction, noResultsIllustration, hideNoResultsIllustration, pageLabel, previousLabel = "Previous", nextLabel = "Next", selectAllLabel = "Select all", selectRowLabel = "Select row", pageSizeOptionLabel, onRowClick, showBorder = false, rowSelection, onRowSelectionChange, getRowId, enableMultiRowSelection = true, enableRowSelection = false, tableRowClassName, getRowClassName, className, hidePaginationControls = false, radius, border, density }) {
20
20
  const { partStyle } = useStyleAxes({
21
21
  radius,
22
22
  border
@@ -38,16 +38,20 @@ function DataTable({ columns, data, tableActionsContent, isFetching, pageIndex =
38
38
  header: enableMultiRowSelection ? ({ table: t }) => /* @__PURE__ */ jsx(Checkbox, {
39
39
  checked: t.getIsAllPageRowsSelected() ? true : t.getIsSomePageRowsSelected() ? "indeterminate" : false,
40
40
  onCheckedChange: (value) => t.toggleAllPageRowsSelected(!!value),
41
- "aria-label": "Select all"
41
+ "aria-label": selectAllLabel
42
42
  }) : void 0,
43
43
  cell: ({ row }) => /* @__PURE__ */ jsx(Checkbox, {
44
44
  checked: row.getIsSelected(),
45
45
  disabled: !row.getCanSelect(),
46
46
  onCheckedChange: (value) => row.toggleSelected(!!value),
47
47
  onClick: (e) => e.stopPropagation(),
48
- "aria-label": "Select row"
48
+ "aria-label": selectRowLabel
49
49
  })
50
- }), [enableMultiRowSelection]);
50
+ }), [
51
+ enableMultiRowSelection,
52
+ selectAllLabel,
53
+ selectRowLabel
54
+ ]);
51
55
  const tableColumns = useMemo(() => enableRowSelection ? [selectColumn, ...columns] : columns, [
52
56
  enableRowSelection,
53
57
  selectColumn,
@@ -41,6 +41,10 @@ interface DataTableProps<TData, TValue> extends Pick<StyleAxisProps, "radius" |
41
41
  pageLabel?: string;
42
42
  previousLabel?: string;
43
43
  nextLabel?: string;
44
+ /** Accessible name of the header checkbox that selects every row. Default "Select all". */
45
+ selectAllLabel?: string;
46
+ /** Accessible name of each row's select checkbox. Default "Select row". */
47
+ selectRowLabel?: string;
44
48
  pageSizeOptionLabel?: (size: number) => string;
45
49
  onRowClick?: (row: TData) => void;
46
50
  showBorder?: boolean;
@@ -57,7 +61,7 @@ interface DataTableProps<TData, TValue> extends Pick<StyleAxisProps, "radius" |
57
61
  className?: string;
58
62
  hidePaginationControls?: boolean;
59
63
  }
60
- declare function DataTable<TData, TValue>({ columns, data, tableActionsContent, isFetching, pageIndex, hasNextPage, hasPrevPage, onNextPage, onPrevPage, pageSize, onPageSizeChange, pageSizeOptions, showColumnVisibilitySelector, columnVisibilityLabel, noResultsHeading, noResultsDescription, noResultsAction, noResultsIllustration, hideNoResultsIllustration, pageLabel, previousLabel, nextLabel, pageSizeOptionLabel, onRowClick, showBorder, rowSelection, onRowSelectionChange, getRowId, enableMultiRowSelection, enableRowSelection, tableRowClassName, getRowClassName, className, hidePaginationControls, radius, border, density, }: DataTableProps<TData, TValue>): React.JSX.Element;
64
+ declare function DataTable<TData, TValue>({ columns, data, tableActionsContent, isFetching, pageIndex, hasNextPage, hasPrevPage, onNextPage, onPrevPage, pageSize, onPageSizeChange, pageSizeOptions, showColumnVisibilitySelector, columnVisibilityLabel, noResultsHeading, noResultsDescription, noResultsAction, noResultsIllustration, hideNoResultsIllustration, pageLabel, previousLabel, nextLabel, selectAllLabel, selectRowLabel, pageSizeOptionLabel, onRowClick, showBorder, rowSelection, onRowSelectionChange, getRowId, enableMultiRowSelection, enableRowSelection, tableRowClassName, getRowClassName, className, hidePaginationControls, radius, border, density, }: DataTableProps<TData, TValue>): React.JSX.Element;
61
65
 
62
66
  /** Responsive options read from a column's `meta`. */
63
67
  interface DataTableColumnMeta {
@@ -30,7 +30,7 @@ var parseDateOrNull = (value, dateFormat) => {
30
30
  const parsed = parse(value, dateFormat, /* @__PURE__ */ new Date());
31
31
  return isValid(parsed) ? parsed : null;
32
32
  };
33
- function DateRangePicker({ presets, presetLabels, allowCustom = false, lockEndToToday = false, disableFutureDates = false, dateFormat = DEFAULT_DATE_FORMAT, onChange, onPresetChange, onDraftChange, selectedPresetId, selectedStartDate, selectedEndDate, clearable = false, clearLabel = "Clear", onClear, trigger, placeholder = "Select date range", label, size, hideIcon = false, disabled = false, required = false, rounded = false, radius, popoverRadius, popoverElevation, error, errorContent, startHelperContent, endHelperContent, hintContent, align = "start", side = "bottom", className }) {
33
+ function DateRangePicker({ presets, presetLabels, allowCustom = false, lockEndToToday = false, disableFutureDates = false, dateFormat = DEFAULT_DATE_FORMAT, onChange, onPresetChange, onDraftChange, selectedPresetId, selectedStartDate, selectedEndDate, clearable = false, clearLabel = "Clear", onClear, startDateLabel = "Start date", endDateLabel = "End date", cancelLabel = "Cancel", applyLabel = "Apply", trigger, placeholder = "Select date range", label, size, hideIcon = false, disabled = false, required = false, rounded = false, radius, popoverRadius, popoverElevation, error, errorContent, startHelperContent, endHelperContent, hintContent, align = "start", side = "bottom", className }) {
34
34
  const [open, setOpen] = React$1.useState(false);
35
35
  const popoverAxes = useStyleAxes({
36
36
  radius: popoverRadius,
@@ -182,7 +182,7 @@ function DateRangePicker({ presets, presetLabels, allowCustom = false, lockEndTo
182
182
  color: "error",
183
183
  size: isInline ? void 0 : "sm",
184
184
  onClick: () => handleOpenChange(false),
185
- children: "Cancel"
185
+ children: cancelLabel
186
186
  });
187
187
  const applyButton = /* @__PURE__ */ jsx(Button, {
188
188
  variant: "outline",
@@ -190,7 +190,7 @@ function DateRangePicker({ presets, presetLabels, allowCustom = false, lockEndTo
190
190
  size: isInline ? void 0 : "sm",
191
191
  disabled: !isRangeComplete,
192
192
  onClick: handleApply,
193
- children: "Apply"
193
+ children: applyLabel
194
194
  });
195
195
  const calendarBody = /* @__PURE__ */ jsxs("div", {
196
196
  className: "flex flex-col h-full justify-between",
@@ -213,7 +213,7 @@ function DateRangePicker({ presets, presetLabels, allowCustom = false, lockEndTo
213
213
  className: cn(isInline ? "grid w-full grid-cols-2 gap-3" : "flex items-center gap-3"),
214
214
  children: [/* @__PURE__ */ jsx(Input, {
215
215
  size: "sm",
216
- label: "Start date",
216
+ label: startDateLabel,
217
217
  value: startInputValue,
218
218
  placeholder: dateFormat.toLowerCase(),
219
219
  onChange: handleStartInputChange,
@@ -221,7 +221,7 @@ function DateRangePicker({ presets, presetLabels, allowCustom = false, lockEndTo
221
221
  className: isInline ? "w-full min-w-0" : "w-32"
222
222
  }), /* @__PURE__ */ jsx(Input, {
223
223
  size: "sm",
224
- label: "End date",
224
+ label: endDateLabel,
225
225
  value: endInputValue,
226
226
  placeholder: dateFormat.toLowerCase(),
227
227
  onChange: handleEndInputChange,
@@ -63,6 +63,14 @@ interface DateRangePickerProps extends Pick<StyleAxisProps, "radius"> {
63
63
  clearLabel?: string;
64
64
  /** Fires when the "Clear" menu item is selected. The consumer resets its selection. */
65
65
  onClear?: () => void;
66
+ /** Label of the custom range's start-date field (i18n). Default "Start date". */
67
+ startDateLabel?: string;
68
+ /** Label of the custom range's end-date field (i18n). Default "End date". */
69
+ endDateLabel?: string;
70
+ /** The custom range's cancel button (i18n). Default "Cancel". */
71
+ cancelLabel?: string;
72
+ /** The custom range's apply button (i18n). Default "Apply". */
73
+ applyLabel?: string;
66
74
  /** Custom trigger element. Overrides the default Input trigger entirely. */
67
75
  trigger?: React__default.ReactNode;
68
76
  placeholder?: string;
@@ -92,7 +100,7 @@ interface DateRangePickerProps extends Pick<StyleAxisProps, "radius"> {
92
100
  className?: string;
93
101
  }
94
102
 
95
- declare function DateRangePicker({ presets, presetLabels, allowCustom, lockEndToToday, disableFutureDates, dateFormat, onChange, onPresetChange, onDraftChange, selectedPresetId, selectedStartDate, selectedEndDate, clearable, clearLabel, onClear, trigger, placeholder, label, size, hideIcon, disabled, required, rounded, radius, popoverRadius, popoverElevation, error, errorContent, startHelperContent, endHelperContent, hintContent, align, side, className, }: DateRangePickerProps): React.JSX.Element;
103
+ declare function DateRangePicker({ presets, presetLabels, allowCustom, lockEndToToday, disableFutureDates, dateFormat, onChange, onPresetChange, onDraftChange, selectedPresetId, selectedStartDate, selectedEndDate, clearable, clearLabel, onClear, startDateLabel, endDateLabel, cancelLabel, applyLabel, trigger, placeholder, label, size, hideIcon, disabled, required, rounded, radius, popoverRadius, popoverElevation, error, errorContent, startHelperContent, endHelperContent, hintContent, align, side, className, }: DateRangePickerProps): React.JSX.Element;
96
104
  declare namespace DateRangePicker {
97
105
  var displayName: string;
98
106
  }
@@ -24,8 +24,10 @@ declare function DialogClose(props: DialogCloseProps): React.JSX.Element;
24
24
  type DialogContentProps = DialogContentProps$1 & Pick<StyleAxisProps, 'radius' | 'elevation'> & DensityProps & {
25
25
  showCloseButton?: boolean;
26
26
  closeButtonClassName?: string;
27
+ /** The close button's accessible name, for an app in another language. Default "Close". */
28
+ closeLabel?: string;
27
29
  };
28
- declare function DialogContent({ className, children, showCloseButton, closeButtonClassName, radius, elevation, density, style, ...props }: DialogContentProps): React.JSX.Element;
30
+ declare function DialogContent({ className, children, showCloseButton, closeButtonClassName, closeLabel, radius, elevation, density, style, ...props }: DialogContentProps): React.JSX.Element;
29
31
  type DialogHeaderProps = DialogHeaderProps$1;
30
32
  declare function DialogHeader({ className, ...props }: DialogHeaderProps): React.JSX.Element;
31
33
  type DialogFooterProps = DialogFooterProps$1;
@@ -15,7 +15,8 @@ function ActiveFilters({ tags, clearLabel, onClearAll }) {
15
15
  color: "silver",
16
16
  size: "sm",
17
17
  rounded: true,
18
- onDelete: tag.onDelete
18
+ onDelete: tag.onDelete,
19
+ deleteLabel: tag.deleteLabel
19
20
  }, tag.key)), /* @__PURE__ */ jsx(Button, {
20
21
  variant: "ghost",
21
22
  color: "error",
@@ -48,7 +48,8 @@ function FilterGroup({ group, selected, onToggle, order, animate, labels }) {
48
48
  onSearch: view.setFind,
49
49
  onClear: () => view.setFind(""),
50
50
  placeholder: labels.searchGroupPlaceholder(lower),
51
- "aria-label": labels.searchGroupPlaceholder(lower)
51
+ "aria-label": labels.searchGroupPlaceholder(lower),
52
+ clearLabel: labels.clearSearch
52
53
  }),
53
54
  /* @__PURE__ */ jsx("ul", {
54
55
  className: "m-0 flex list-none flex-col gap-1 p-0",