@instructure/ui-buttons 8.28.0 → 8.28.1-snapshot-2

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.
@@ -16,7 +16,7 @@ declare class BaseButton extends Component<BaseButtonProps> {
16
16
  type?: "button" | "submit" | "reset" | undefined;
17
17
  size?: "small" | "medium" | "large" | undefined;
18
18
  elementRef?: ((element: Element | null) => void) | undefined;
19
- as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
19
+ as?: import("@instructure/shared-types/types/CommonProps").AsElementType<any> | undefined;
20
20
  interaction?: import("@instructure/ui-react-utils").InteractionType | undefined;
21
21
  color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger" | undefined;
22
22
  focusColor?: "info" | "inverse" | undefined;
@@ -39,7 +39,7 @@ declare class BaseButton extends Component<BaseButtonProps> {
39
39
  type?: "button" | "submit" | "reset" | undefined;
40
40
  size?: "small" | "medium" | "large" | undefined;
41
41
  elementRef?: ((element: Element | null) => void) | undefined;
42
- as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
42
+ as?: import("@instructure/shared-types/types/CommonProps").AsElementType<any> | undefined;
43
43
  interaction?: import("@instructure/ui-react-utils").InteractionType | undefined;
44
44
  color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger" | undefined;
45
45
  focusColor?: "info" | "inverse" | undefined;
@@ -78,7 +78,7 @@ declare class BaseButton extends Component<BaseButtonProps> {
78
78
  get _rootElement(): Element | null;
79
79
  get makeStylesVariables(): BaseButtonStyleProps;
80
80
  get hasOnlyIconVisible(): boolean;
81
- get elementType(): import("@instructure/shared-types/types/CommonProps").AsElementType;
81
+ get elementType(): React.ComponentClass<any, any> | React.FunctionComponent<Readonly<BaseButtonProps>> | React.ComponentClass<Readonly<BaseButtonProps>, any> | NonNullable<import("@instructure/shared-types/types/CommonProps").AsElementType<any> | undefined>;
82
82
  get interaction(): import("@instructure/ui-react-utils").InteractionType;
83
83
  get isDisabled(): bool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14,7 @@ declare class Button extends Component<ButtonProps> {
14
14
  type?: "button" | "submit" | "reset" | undefined;
15
15
  size?: "small" | "medium" | "large" | undefined;
16
16
  elementRef?: ((element: Element | null) => void) | undefined;
17
- as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
17
+ as?: import("@instructure/shared-types/types/CommonProps").AsElementType<any> | undefined;
18
18
  interaction?: "enabled" | "disabled" | "readonly" | undefined;
19
19
  color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger" | undefined;
20
20
  focusColor?: "info" | "inverse" | undefined;
@@ -32,7 +32,7 @@ declare class Button extends Component<ButtonProps> {
32
32
  type?: "button" | "submit" | "reset" | undefined;
33
33
  size?: "small" | "medium" | "large" | undefined;
34
34
  elementRef?: ((element: Element | null) => void) | undefined;
35
- as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
35
+ as?: import("@instructure/shared-types/types/CommonProps").AsElementType<any> | undefined;
36
36
  interaction?: "enabled" | "disabled" | "readonly" | undefined;
37
37
  color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger" | undefined;
38
38
  focusColor?: "info" | "inverse" | undefined;
@@ -21,7 +21,7 @@ declare class CloseButton extends Component<CloseButtonProps> {
21
21
  placement?: "start" | "end" | "static" | undefined;
22
22
  offset?: "small" | "medium" | "none" | "x-small" | undefined;
23
23
  type?: "button" | "submit" | "reset" | undefined;
24
- as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
24
+ as?: import("@instructure/shared-types/types/CommonProps").AsElementType<any> | undefined;
25
25
  href?: string | undefined;
26
26
  cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
27
27
  tabIndex?: string | number | undefined;
@@ -37,7 +37,7 @@ declare class CloseButton extends Component<CloseButtonProps> {
37
37
  placement?: "start" | "end" | "static" | undefined;
38
38
  offset?: "small" | "medium" | "none" | "x-small" | undefined;
39
39
  type?: "button" | "submit" | "reset" | undefined;
40
- as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
40
+ as?: import("@instructure/shared-types/types/CommonProps").AsElementType<any> | undefined;
41
41
  href?: string | undefined;
42
42
  cursor?: import("@instructure/ui-prop-types/types/cursor").Cursor | undefined;
43
43
  tabIndex?: string | number | undefined;
@@ -14,7 +14,7 @@ declare class CondensedButton extends Component<CondensedButtonProps> {
14
14
  type?: "button" | "submit" | "reset" | undefined;
15
15
  size?: "small" | "medium" | "large" | undefined;
16
16
  elementRef?: ((element: Element | null) => void) | undefined;
17
- as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
17
+ as?: import("@instructure/shared-types/types/CommonProps").AsElementType<any> | undefined;
18
18
  interaction?: "enabled" | "disabled" | "readonly" | undefined;
19
19
  color?: "primary" | "primary-inverse" | undefined;
20
20
  margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
@@ -28,7 +28,7 @@ declare class CondensedButton extends Component<CondensedButtonProps> {
28
28
  type?: "button" | "submit" | "reset" | undefined;
29
29
  size?: "small" | "medium" | "large" | undefined;
30
30
  elementRef?: ((element: Element | null) => void) | undefined;
31
- as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
31
+ as?: import("@instructure/shared-types/types/CommonProps").AsElementType<any> | undefined;
32
32
  interaction?: "enabled" | "disabled" | "readonly" | undefined;
33
33
  color?: "primary" | "primary-inverse" | undefined;
34
34
  margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
@@ -16,7 +16,7 @@ declare class IconButton extends Component<IconButtonProps> {
16
16
  type?: "button" | "submit" | "reset" | undefined;
17
17
  size?: "small" | "medium" | "large" | undefined;
18
18
  elementRef?: ((element: Element | null) => void) | undefined;
19
- as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
19
+ as?: import("@instructure/shared-types/types/CommonProps").AsElementType<any> | undefined;
20
20
  interaction?: "enabled" | "disabled" | "readonly" | undefined;
21
21
  color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger" | undefined;
22
22
  focusColor?: "info" | "inverse" | undefined;
@@ -35,7 +35,7 @@ declare class IconButton extends Component<IconButtonProps> {
35
35
  type?: "button" | "submit" | "reset" | undefined;
36
36
  size?: "small" | "medium" | "large" | undefined;
37
37
  elementRef?: ((element: Element | null) => void) | undefined;
38
- as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
38
+ as?: import("@instructure/shared-types/types/CommonProps").AsElementType<any> | undefined;
39
39
  interaction?: "enabled" | "disabled" | "readonly" | undefined;
40
40
  color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger" | undefined;
41
41
  focusColor?: "info" | "inverse" | undefined;
@@ -13,7 +13,7 @@ declare class ToggleButton extends Component<ToggleButtonProps, ToggleButtonStat
13
13
  renderTooltipContent: React.ReactNode | ((...args: any[]) => any);
14
14
  renderIcon: import("@instructure/shared-types").Renderable<never>;
15
15
  status: "pressed" | "unpressed";
16
- as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
16
+ as?: import("@instructure/shared-types/types/CommonProps").AsElementType<any> | undefined;
17
17
  interaction?: "enabled" | "disabled" | "readonly" | undefined;
18
18
  size?: "small" | "medium" | "large" | undefined;
19
19
  elementRef?: ((element: Element | null) => void) | undefined;
@@ -29,7 +29,7 @@ declare class ToggleButton extends Component<ToggleButtonProps, ToggleButtonStat
29
29
  renderTooltipContent: React.ReactNode | ((...args: any[]) => any);
30
30
  renderIcon: import("@instructure/shared-types").Renderable<never>;
31
31
  status: "pressed" | "unpressed";
32
- as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
32
+ as?: import("@instructure/shared-types/types/CommonProps").AsElementType<any> | undefined;
33
33
  interaction?: "enabled" | "disabled" | "readonly" | undefined;
34
34
  size?: "small" | "medium" | "large" | undefined;
35
35
  elementRef?: ((element: Element | null) => void) | undefined;