@eqtylab/equality 4.6.0 → 4.7.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.
package/dist/index.d.cts CHANGED
@@ -796,9 +796,13 @@ interface SegmentedControlsProps {
796
796
  display?: SegmentedControlsDisplay;
797
797
  /** Matches the height of a `Button` of the same size. */
798
798
  size?: SegmentedControlsSize;
799
+ /** Accessible name for the group. Provide this or `aria-labelledby`. */
800
+ 'aria-label'?: string;
801
+ /** Id of a visible element that names the group. */
802
+ 'aria-labelledby'?: string;
799
803
  className?: string;
800
804
  }
801
- declare const SegmentedControls: ({ options, value, onValueChange, display, size, className, }: SegmentedControlsProps) => react_jsx_runtime.JSX.Element;
805
+ declare const SegmentedControls: ({ options, value, onValueChange, display, size, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, className, }: SegmentedControlsProps) => react_jsx_runtime.JSX.Element;
802
806
 
803
807
  declare const useSelectSearchQuery: () => {
804
808
  query: string;
package/dist/index.d.ts CHANGED
@@ -796,9 +796,13 @@ interface SegmentedControlsProps {
796
796
  display?: SegmentedControlsDisplay;
797
797
  /** Matches the height of a `Button` of the same size. */
798
798
  size?: SegmentedControlsSize;
799
+ /** Accessible name for the group. Provide this or `aria-labelledby`. */
800
+ 'aria-label'?: string;
801
+ /** Id of a visible element that names the group. */
802
+ 'aria-labelledby'?: string;
799
803
  className?: string;
800
804
  }
801
- declare const SegmentedControls: ({ options, value, onValueChange, display, size, className, }: SegmentedControlsProps) => react_jsx_runtime.JSX.Element;
805
+ declare const SegmentedControls: ({ options, value, onValueChange, display, size, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, className, }: SegmentedControlsProps) => react_jsx_runtime.JSX.Element;
802
806
 
803
807
  declare const useSelectSearchQuery: () => {
804
808
  query: string;
package/dist/index.js CHANGED
@@ -3835,6 +3835,8 @@ var SegmentedControls = ({
3835
3835
  onValueChange,
3836
3836
  display = "both",
3837
3837
  size = "md",
3838
+ "aria-label": ariaLabel,
3839
+ "aria-labelledby": ariaLabelledBy,
3838
3840
  className
3839
3841
  }) => {
3840
3842
  const allHaveIcons = options.every((option) => option.icon != null);
@@ -3872,6 +3874,9 @@ var SegmentedControls = ({
3872
3874
  "div",
3873
3875
  {
3874
3876
  ref: containerRef,
3877
+ role: "group",
3878
+ "aria-label": ariaLabel,
3879
+ "aria-labelledby": ariaLabelledBy,
3875
3880
  className: cn(
3876
3881
  styles49["segmented-controls"],
3877
3882
  styles49[`size--${size}`],