@usetheo/ui 0.22.0 → 0.22.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.
@@ -19,6 +19,8 @@ import type { ElementType, HTMLAttributes, ReactNode } from "react";
19
19
  export interface ActionBarProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
20
20
  search?: {
21
21
  placeholder: string;
22
+ /** Accessible name; defaults to the placeholder with trailing ellipsis stripped (issue #8). */
23
+ "aria-label"?: string;
22
24
  value: string;
23
25
  onChange: (value: string) => void;
24
26
  };
package/dist/index.js CHANGED
@@ -3899,6 +3899,7 @@ var ActionBar = forwardRef(
3899
3899
  "input",
3900
3900
  {
3901
3901
  type: "search",
3902
+ "aria-label": search["aria-label"] ?? search.placeholder.replace(/(\.{3}|…)\s*$/, ""),
3902
3903
  placeholder: search.placeholder,
3903
3904
  value: search.value,
3904
3905
  onChange: (e) => search.onChange(e.target.value),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usetheo/ui",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Violet Forge design system — generic React components + primitives (the non-AI foundation of @theokit/ui).",