@eqtylab/equality 4.6.0 → 4.8.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/CHANGELOG.md +21 -0
- package/dist/index.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/radio-group.module.module.css.module.css +11 -2
- package/dist/switch.module.module.css.module.css +53 -37
- package/dist/textarea.module.module.css.module.css +1 -2
- package/dist/theme.module.module.css.module.css +2 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -45,14 +45,14 @@ declare const AlertDialogFooter: {
|
|
|
45
45
|
declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
46
46
|
declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
47
47
|
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
48
|
-
variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "
|
|
48
|
+
variant?: "link" | "primary" | "danger" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
|
|
49
49
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
50
50
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
51
51
|
prefix?: React$1.ReactNode;
|
|
52
52
|
suffix?: React$1.ReactNode;
|
|
53
53
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
54
54
|
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
55
|
-
variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "
|
|
55
|
+
variant?: "link" | "primary" | "danger" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
|
|
56
56
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
57
57
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
58
58
|
prefix?: React$1.ReactNode;
|
|
@@ -225,7 +225,7 @@ declare const BgGradient: ({ theme, placement, }: {
|
|
|
225
225
|
}) => react_jsx_runtime.JSX.Element;
|
|
226
226
|
|
|
227
227
|
declare const buttonVariants: (props?: ({
|
|
228
|
-
variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "
|
|
228
|
+
variant?: "link" | "primary" | "danger" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
|
|
229
229
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
230
230
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
231
231
|
type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
|
|
@@ -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
|
@@ -45,14 +45,14 @@ declare const AlertDialogFooter: {
|
|
|
45
45
|
declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
46
46
|
declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
47
47
|
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
48
|
-
variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "
|
|
48
|
+
variant?: "link" | "primary" | "danger" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
|
|
49
49
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
50
50
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
51
51
|
prefix?: React$1.ReactNode;
|
|
52
52
|
suffix?: React$1.ReactNode;
|
|
53
53
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
54
54
|
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
55
|
-
variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "
|
|
55
|
+
variant?: "link" | "primary" | "danger" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
|
|
56
56
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
57
57
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
58
58
|
prefix?: React$1.ReactNode;
|
|
@@ -225,7 +225,7 @@ declare const BgGradient: ({ theme, placement, }: {
|
|
|
225
225
|
}) => react_jsx_runtime.JSX.Element;
|
|
226
226
|
|
|
227
227
|
declare const buttonVariants: (props?: ({
|
|
228
|
-
variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "
|
|
228
|
+
variant?: "link" | "primary" | "danger" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
|
|
229
229
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
230
230
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
231
231
|
type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
|
|
@@ -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}`],
|