@sb1/ffe-buttons-react 23.0.6 → 23.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-buttons-react",
3
- "version": "23.0.6",
3
+ "version": "23.0.7",
4
4
  "description": "React implementation of ffe-buttons",
5
5
  "keywords": [
6
6
  "ffe"
@@ -29,7 +29,7 @@
29
29
  "test:watch": "ffe-buildtool jest --watch"
30
30
  },
31
31
  "dependencies": {
32
- "@sb1/ffe-buttons": "^18.0.30",
32
+ "@sb1/ffe-buttons": "^18.0.31",
33
33
  "@sb1/ffe-icons-react": "^10.0.5",
34
34
  "classnames": "^2.3.1"
35
35
  },
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "1a06e8ffb30f92e91b7825ccebada746d7f60abc"
48
+ "gitHead": "4e29cbd7778ac53d9dfa1dcba6a0ec40846fce89"
49
49
  }
@@ -1,4 +1,4 @@
1
1
  import React, { ElementType } from 'react';
2
2
  import { BaseButtonProps } from './BaseButton';
3
3
  export type ActionButtonProps<As extends ElementType = 'button'> = Omit<BaseButtonProps<As>, 'buttonType'>;
4
- export declare const ActionButton: <As extends React.ElementType>(props: ActionButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;
4
+ export declare const ActionButton: <As extends ElementType>(props: ActionButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React, { ElementType } from 'react';
2
2
  import { InlineBaseButtonProps } from './InlineBaseButton';
3
3
  export type BackButtonProps<As extends ElementType = 'button'> = Omit<InlineBaseButtonProps<As>, 'buttonType' | 'leftIcon'>;
4
- export declare const BackButton: <As extends React.ElementType>(props: BackButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;
4
+ export declare const BackButton: <As extends ElementType>(props: BackButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;
@@ -8,15 +8,15 @@ export type BaseButtonProps<As extends ElementType = 'button'> = ComponentAsProp
8
8
  leftIcon?: ReactElement;
9
9
  rightIcon?: ReactElement;
10
10
  };
11
- export declare const BaseButton: <As extends React.ElementType>(props: {
11
+ export declare const BaseButton: <As extends ElementType>(props: {
12
12
  as?: As | undefined;
13
13
  } & import("./types").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "button" : As>, "as" & {
14
14
  ref: React.ForwardedRef<any>;
15
15
  }> & {
16
- ariaLoadingMessage?: string | undefined;
17
- buttonType: 'action' | 'primary' | 'secondary' | 'shortcut' | 'task';
18
- isDisabled?: boolean | undefined;
19
- isLoading?: boolean | undefined;
20
- leftIcon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
21
- rightIcon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
16
+ ariaLoadingMessage?: string;
17
+ buttonType: "action" | "primary" | "secondary" | "shortcut" | "task";
18
+ isDisabled?: boolean;
19
+ isLoading?: boolean;
20
+ leftIcon?: ReactElement;
21
+ rightIcon?: ReactElement;
22
22
  } & React.RefAttributes<any>) => React.JSX.Element;
@@ -6,13 +6,13 @@ export type ExpandButtonProps<As extends ElementType = 'button'> = ComponentAsPr
6
6
  /** When true the component will render a circle with an X indicating whatever is controlled is in an expanded state. */
7
7
  isExpanded: boolean;
8
8
  };
9
- export declare const ExpandButton: <As extends React.ElementType>(props: {
9
+ export declare const ExpandButton: <As extends ElementType>(props: {
10
10
  as?: As | undefined;
11
11
  } & import("./types").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "button" : As>, "as" & {
12
12
  ref: React.ForwardedRef<any>;
13
13
  }> & {
14
14
  /** An accessible label for the close-button, only shown in the "isExpanded" state */
15
- closeLabel?: string | undefined;
15
+ closeLabel?: string;
16
16
  /** When true the component will render a circle with an X indicating whatever is controlled is in an expanded state. */
17
17
  isExpanded: boolean;
18
18
  } & React.RefAttributes<any>) => React.JSX.Element;
@@ -11,7 +11,7 @@ export type InlineBaseButtonProps<As extends ElementType = 'button'> = Component
11
11
  /** Icon shown to the right of the label */
12
12
  rightIcon?: ReactElement;
13
13
  };
14
- export declare const InlineBaseButton: <As extends React.ElementType>(props: {
14
+ export declare const InlineBaseButton: <As extends ElementType>(props: {
15
15
  as?: As | undefined;
16
16
  } & import("./types").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "button" : As>, "as" & {
17
17
  ref: React.ForwardedRef<any>;
@@ -20,9 +20,9 @@ export declare const InlineBaseButton: <As extends React.ElementType>(props: {
20
20
  * Enum of supported prop types. Used internally only.
21
21
  * @ignore
22
22
  */
23
- buttonType: 'tertiary' | 'back' | 'expand';
23
+ buttonType: "tertiary" | "back" | "expand";
24
24
  /** Icon shown to the left of the label */
25
- leftIcon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
25
+ leftIcon?: ReactElement;
26
26
  /** Icon shown to the right of the label */
27
- rightIcon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
27
+ rightIcon?: ReactElement;
28
28
  } & React.RefAttributes<any>) => React.JSX.Element;
@@ -4,7 +4,7 @@ export type InlineExpandButtonProps<As extends ElementType = 'button'> = Omit<In
4
4
  /** When true it will indicate the button is in its open state */
5
5
  isExpanded: boolean;
6
6
  };
7
- export declare const InlineExpandButton: <As extends React.ElementType>(props: Omit<InlineBaseButtonProps<As>, "buttonType" | "rightIcon"> & {
7
+ export declare const InlineExpandButton: <As extends ElementType>(props: Omit<InlineBaseButtonProps<As>, "buttonType" | "rightIcon"> & {
8
8
  /** When true it will indicate the button is in its open state */
9
9
  isExpanded: boolean;
10
10
  } & React.RefAttributes<any>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React, { ElementType } from 'react';
2
2
  import { BaseButtonProps } from './BaseButton';
3
3
  export type PrimaryButtonProps<As extends ElementType = 'button'> = Omit<BaseButtonProps<As>, 'buttonType'>;
4
- export declare const PrimaryButton: <As extends React.ElementType>(props: PrimaryButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;
4
+ export declare const PrimaryButton: <As extends ElementType>(props: PrimaryButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React, { ElementType } from 'react';
2
2
  import { BaseButtonProps } from './BaseButton';
3
3
  export type SecondaryButtonProps<As extends ElementType = 'button'> = Omit<BaseButtonProps<As>, 'buttonType'>;
4
- export declare const SecondaryButton: <As extends React.ElementType>(props: SecondaryButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;
4
+ export declare const SecondaryButton: <As extends ElementType>(props: SecondaryButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React, { ElementType } from 'react';
2
2
  import { BaseButtonProps } from './BaseButton';
3
3
  export type ShortcutButtonProps<As extends ElementType = 'button'> = Omit<BaseButtonProps<As>, 'buttonType' | 'rightIcon'>;
4
- export declare const ShortcutButton: <As extends React.ElementType>(props: ShortcutButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;
4
+ export declare const ShortcutButton: <As extends ElementType>(props: ShortcutButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;
@@ -4,7 +4,7 @@ export type TaskButtonProps<As extends ElementType = 'button'> = Omit<BaseButton
4
4
  /** icon element shown to the left of the label */
5
5
  icon: ReactElement;
6
6
  };
7
- export declare const TaskButton: <As extends React.ElementType>(props: Omit<BaseButtonProps<As>, "buttonType" | "leftIcon" | "rightIcon"> & {
7
+ export declare const TaskButton: <As extends ElementType>(props: Omit<BaseButtonProps<As>, "buttonType" | "leftIcon" | "rightIcon"> & {
8
8
  /** icon element shown to the left of the label */
9
9
  icon: ReactElement;
10
10
  } & React.RefAttributes<any>) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React, { ElementType } from 'react';
2
2
  import { InlineBaseButtonProps } from './InlineBaseButton';
3
3
  export type TertiaryButtonProps<As extends ElementType = 'button'> = Omit<InlineBaseButtonProps<As>, 'buttonType'>;
4
- export declare const TertiaryButton: <As extends React.ElementType>(props: TertiaryButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;
4
+ export declare const TertiaryButton: <As extends ElementType>(props: TertiaryButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;