@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 +3 -3
- package/types/ActionButton.d.ts +1 -1
- package/types/BackButton.d.ts +1 -1
- package/types/BaseButton.d.ts +7 -7
- package/types/ExpandButton.d.ts +2 -2
- package/types/InlineBaseButton.d.ts +4 -4
- package/types/InlineExpandButton.d.ts +1 -1
- package/types/PrimaryButton.d.ts +1 -1
- package/types/SecondaryButton.d.ts +1 -1
- package/types/ShortcutButton.d.ts +1 -1
- package/types/TaskButton.d.ts +1 -1
- package/types/TertiaryButton.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-buttons-react",
|
|
3
|
-
"version": "23.0.
|
|
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.
|
|
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": "
|
|
48
|
+
"gitHead": "4e29cbd7778ac53d9dfa1dcba6a0ec40846fce89"
|
|
49
49
|
}
|
package/types/ActionButton.d.ts
CHANGED
|
@@ -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
|
|
4
|
+
export declare const ActionButton: <As extends ElementType>(props: ActionButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;
|
package/types/BackButton.d.ts
CHANGED
|
@@ -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
|
|
4
|
+
export declare const BackButton: <As extends ElementType>(props: BackButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;
|
package/types/BaseButton.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
17
|
-
buttonType:
|
|
18
|
-
isDisabled?: boolean
|
|
19
|
-
isLoading?: boolean
|
|
20
|
-
leftIcon?:
|
|
21
|
-
rightIcon?:
|
|
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;
|
package/types/ExpandButton.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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:
|
|
23
|
+
buttonType: "tertiary" | "back" | "expand";
|
|
24
24
|
/** Icon shown to the left of the label */
|
|
25
|
-
leftIcon?:
|
|
25
|
+
leftIcon?: ReactElement;
|
|
26
26
|
/** Icon shown to the right of the label */
|
|
27
|
-
rightIcon?:
|
|
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
|
|
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;
|
package/types/PrimaryButton.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
4
|
+
export declare const ShortcutButton: <As extends ElementType>(props: ShortcutButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;
|
package/types/TaskButton.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
4
|
+
export declare const TertiaryButton: <As extends ElementType>(props: TertiaryButtonProps<As> & React.RefAttributes<any>) => React.JSX.Element;
|