@amboss/design-system 1.5.1 → 1.5.4

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.
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { AriaAttributes } from "react";
2
2
  import { SpaceSizes, TextAlignment, MQ } from "../../types";
3
3
  declare type BoxProps = {
4
4
  children: React.ReactNode[] | React.ReactNode;
@@ -24,10 +24,13 @@ declare type BoxProps = {
24
24
  /** Aria property for assigning an accessible role to an element
25
25
  * eg. dialog, tab, tooltip etc. */
26
26
  role?: string;
27
+ /** Additional aria attributes. [see documentation](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/02549c083e9d62b604091d770c4568d47282cdd0/types/react/index.d.ts#L1461)
28
+ */
29
+ ariaAttributes?: AriaAttributes;
27
30
  "data-e2e-test-id"?: string;
28
31
  };
29
- export declare const Box: import("@emotion/styled").StyledComponent<{
30
- theme?: import("@emotion/react").Theme;
31
- as?: React.ElementType<any>;
32
- } & BoxProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
32
+ export declare function Box({ children, space, vSpace, rSpace, lSpace, tSpace, bSpace, alignText, role, ariaAttributes, "data-e2e-test-id": dataE2eTestId, }: BoxProps): React.ReactElement;
33
+ export declare namespace Box {
34
+ var defaultProps: Partial<BoxProps>;
35
+ }
33
36
  export {};
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { AriaAttributes } from "react";
2
2
  import { IconName } from "../Icon/Icon";
3
3
  import { BaseVariations, ButtonSize, HorizontalAlignment, TextVariations } from "../../types";
4
4
  declare type ButtonPrivateProps = {
@@ -24,8 +24,11 @@ export declare type ButtonProps = Record<string, unknown> & {
24
24
  fullWidth?: boolean;
25
25
  privateProps?: ButtonPrivateProps;
26
26
  "data-e2e-test-id"?: string;
27
+ /** Additional aria attributes. [see documentation](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/02549c083e9d62b604091d770c4568d47282cdd0/types/react/index.d.ts#L1461)
28
+ */
29
+ ariaAttributes?: AriaAttributes;
27
30
  };
28
- export declare function Button({ children, onClick, onFocus, onBlur, type, variant, size, disabled, loading, as, leftIcon, rightIcon, fullWidth, privateProps: { squareCorners, alignItems, rightIconVariant }, "data-e2e-test-id": dataE2eTestId, ...rest }: ButtonProps): React.ReactElement;
31
+ export declare function Button({ children, onClick, onFocus, onBlur, type, variant, size, disabled, loading, as, leftIcon, rightIcon, fullWidth, privateProps: { squareCorners, alignItems, rightIconVariant }, "data-e2e-test-id": dataE2eTestId, ariaAttributes, ...rest }: ButtonProps): React.ReactElement;
29
32
  export declare namespace Button {
30
33
  var defaultProps: Partial<ButtonProps>;
31
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amboss/design-system",
3
- "version": "1.5.1",
3
+ "version": "1.5.4",
4
4
  "description": "the design system for AMBOSS products",
5
5
  "author": "Bagrat Gobedashvili",
6
6
  "license": "ISC",