@instructure/ui-buttons 9.2.1-snapshot-10 → 9.2.1-snapshot-14
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 +1 -1
- package/package.json +23 -23
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/BaseButton/index.d.ts.map +1 -1
- package/types/Button/index.d.ts +28 -28
- package/types/CloseButton/index.d.ts +26 -26
- package/types/CondensedButton/index.d.ts +20 -20
- package/types/IconButton/index.d.ts +28 -28
- package/types/ToggleButton/index.d.ts +20 -20
- package/types/ToggleButton/index.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/BaseButton/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAaxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAEpE;;;;GAIG;AAEH,cAEM,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACjD,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAe;IAE1C,MAAM,CAAC,SAAS,iGAAY;IAC5B,MAAM,CAAC,YAAY,0DAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;MAeT;IAEV,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB;IAIjB,kBAAkB;IAIlB,IAAI,mBAAmB,IAAI,oBAAoB,CAK9C;IAED,IAAI,kBAAkB,YAGrB;IAED,IAAI,WAAW,4NAEd;IAED,IAAI,WAAW,0DAEd;IAED,IAAI,UAAU,YAEb;IAED,IAAI,UAAU,YAEb;IAED,IAAI,SAAS,YAEZ;IAED,IAAI,UAAU,uBAiBb;IAED,IAAI,OAAO,YAEV;IAED,KAAK;IAIL,gBAAgB,OAAQ,OAAO,GAAG,IAAI,UAQrC;IAED,WAAW,UAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/BaseButton/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAaxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMrD,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAEpE;;;;GAIG;AAEH,cAEM,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACjD,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAe;IAE1C,MAAM,CAAC,SAAS,iGAAY;IAC5B,MAAM,CAAC,YAAY,0DAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;MAeT;IAEV,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB;IAIjB,kBAAkB;IAIlB,IAAI,mBAAmB,IAAI,oBAAoB,CAK9C;IAED,IAAI,kBAAkB,YAGrB;IAED,IAAI,WAAW,4NAEd;IAED,IAAI,WAAW,0DAEd;IAED,IAAI,UAAU,YAEb;IAED,IAAI,UAAU,YAEb;IAED,IAAI,SAAS,YAEZ;IAED,IAAI,UAAU,uBAiBb;IAED,IAAI,OAAO,YAEV;IAED,KAAK;IAIL,gBAAgB,OAAQ,OAAO,GAAG,IAAI,UAQrC;IAED,WAAW,UAAW,KAAK,CAAC,UAAU,CAAC,SAAS,GAAG,OAAO,CAAC,UAa1D;IAED,aAAa,UAAW,KAAK,CAAC,aAAa,CAAC,SAAS,GAAG,OAAO,CAAC,UA0B/D;IAED,cAAc;IAgCd,MAAM;CAuDP;AAED,OAAO,EAAE,UAAU,EAAE,CAAA;AACrB,eAAe,UAAU,CAAA"}
|
package/types/Button/index.d.ts
CHANGED
|
@@ -10,39 +10,39 @@ declare class Button extends Component<ButtonProps> {
|
|
|
10
10
|
static readonly componentId = "Button";
|
|
11
11
|
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
12
12
|
children?: React.ReactNode;
|
|
13
|
-
type?: "button" | "submit" | "reset"
|
|
14
|
-
size?: "small" | "medium" | "large"
|
|
15
|
-
elementRef?: (
|
|
16
|
-
as?: import("@instructure/shared-types").AsElementType
|
|
17
|
-
interaction?: "enabled" | "disabled" | "readonly"
|
|
18
|
-
color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger"
|
|
19
|
-
focusColor?: "info" | "inverse"
|
|
20
|
-
display?: "inline-block" | "block"
|
|
21
|
-
textAlign?: "
|
|
22
|
-
withBackground?: boolean
|
|
23
|
-
margin?: import("@instructure/emotion").Spacing
|
|
24
|
-
cursor?: import("@instructure/ui-prop-types").Cursor
|
|
25
|
-
href?: string
|
|
13
|
+
type?: "button" | "submit" | "reset";
|
|
14
|
+
size?: "small" | "medium" | "large";
|
|
15
|
+
elementRef?: (element: Element | null) => void;
|
|
16
|
+
as?: import("@instructure/shared-types").AsElementType;
|
|
17
|
+
interaction?: "enabled" | "disabled" | "readonly";
|
|
18
|
+
color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger";
|
|
19
|
+
focusColor?: "info" | "inverse";
|
|
20
|
+
display?: "inline-block" | "block";
|
|
21
|
+
textAlign?: "start" | "center";
|
|
22
|
+
withBackground?: boolean;
|
|
23
|
+
margin?: import("@instructure/emotion").Spacing;
|
|
24
|
+
cursor?: import("@instructure/ui-prop-types").Cursor;
|
|
25
|
+
href?: string;
|
|
26
26
|
renderIcon?: React.ReactNode | (() => React.ReactNode);
|
|
27
|
-
onClick?: (
|
|
27
|
+
onClick?: (event: React.KeyboardEvent<import("@instructure/ui-view").ViewProps> | React.MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
28
28
|
}>;
|
|
29
29
|
static allowedProps: readonly (keyof {
|
|
30
30
|
children?: React.ReactNode;
|
|
31
|
-
type?: "button" | "submit" | "reset"
|
|
32
|
-
size?: "small" | "medium" | "large"
|
|
33
|
-
elementRef?: (
|
|
34
|
-
as?: import("@instructure/shared-types").AsElementType
|
|
35
|
-
interaction?: "enabled" | "disabled" | "readonly"
|
|
36
|
-
color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger"
|
|
37
|
-
focusColor?: "info" | "inverse"
|
|
38
|
-
display?: "inline-block" | "block"
|
|
39
|
-
textAlign?: "
|
|
40
|
-
withBackground?: boolean
|
|
41
|
-
margin?: import("@instructure/emotion").Spacing
|
|
42
|
-
cursor?: import("@instructure/ui-prop-types").Cursor
|
|
43
|
-
href?: string
|
|
31
|
+
type?: "button" | "submit" | "reset";
|
|
32
|
+
size?: "small" | "medium" | "large";
|
|
33
|
+
elementRef?: (element: Element | null) => void;
|
|
34
|
+
as?: import("@instructure/shared-types").AsElementType;
|
|
35
|
+
interaction?: "enabled" | "disabled" | "readonly";
|
|
36
|
+
color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger";
|
|
37
|
+
focusColor?: "info" | "inverse";
|
|
38
|
+
display?: "inline-block" | "block";
|
|
39
|
+
textAlign?: "start" | "center";
|
|
40
|
+
withBackground?: boolean;
|
|
41
|
+
margin?: import("@instructure/emotion").Spacing;
|
|
42
|
+
cursor?: import("@instructure/ui-prop-types").Cursor;
|
|
43
|
+
href?: string;
|
|
44
44
|
renderIcon?: React.ReactNode | (() => React.ReactNode);
|
|
45
|
-
onClick?: (
|
|
45
|
+
onClick?: (event: React.KeyboardEvent<import("@instructure/ui-view").ViewProps> | React.MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
46
46
|
})[];
|
|
47
47
|
static defaultProps: {
|
|
48
48
|
type: string;
|
|
@@ -11,35 +11,35 @@ declare class CloseButton extends Component<CloseButtonProps> {
|
|
|
11
11
|
static readonly componentId = "CloseButton";
|
|
12
12
|
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
13
13
|
screenReaderLabel: import("react").ReactNode;
|
|
14
|
-
color?: "primary" | "primary-inverse"
|
|
15
|
-
interaction?: "enabled" | "disabled" | "readonly"
|
|
16
|
-
elementRef?: (
|
|
17
|
-
size?: "small" | "medium" | "large"
|
|
18
|
-
onClick?: (
|
|
19
|
-
margin?: import("@instructure/emotion").Spacing
|
|
20
|
-
placement?: "start" | "end" | "static"
|
|
21
|
-
offset?: "
|
|
22
|
-
type?: "button" | "submit" | "reset"
|
|
23
|
-
as?: import("@instructure/shared-types").AsElementType
|
|
24
|
-
href?: string
|
|
25
|
-
cursor?: import("@instructure/ui-prop-types").Cursor
|
|
26
|
-
tabIndex?: number
|
|
14
|
+
color?: "primary" | "primary-inverse";
|
|
15
|
+
interaction?: "enabled" | "disabled" | "readonly";
|
|
16
|
+
elementRef?: (element: Element | null) => void;
|
|
17
|
+
size?: "small" | "medium" | "large";
|
|
18
|
+
onClick?: (event: import("react").KeyboardEvent<import("@instructure/ui-view").ViewProps> | import("react").MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
19
|
+
margin?: import("@instructure/emotion").Spacing;
|
|
20
|
+
placement?: "start" | "end" | "static";
|
|
21
|
+
offset?: "none" | "x-small" | "small" | "medium";
|
|
22
|
+
type?: "button" | "submit" | "reset";
|
|
23
|
+
as?: import("@instructure/shared-types").AsElementType;
|
|
24
|
+
href?: string;
|
|
25
|
+
cursor?: import("@instructure/ui-prop-types").Cursor;
|
|
26
|
+
tabIndex?: number;
|
|
27
27
|
}>;
|
|
28
28
|
static allowedProps: readonly (keyof {
|
|
29
29
|
screenReaderLabel: import("react").ReactNode;
|
|
30
|
-
color?: "primary" | "primary-inverse"
|
|
31
|
-
interaction?: "enabled" | "disabled" | "readonly"
|
|
32
|
-
elementRef?: (
|
|
33
|
-
size?: "small" | "medium" | "large"
|
|
34
|
-
onClick?: (
|
|
35
|
-
margin?: import("@instructure/emotion").Spacing
|
|
36
|
-
placement?: "start" | "end" | "static"
|
|
37
|
-
offset?: "
|
|
38
|
-
type?: "button" | "submit" | "reset"
|
|
39
|
-
as?: import("@instructure/shared-types").AsElementType
|
|
40
|
-
href?: string
|
|
41
|
-
cursor?: import("@instructure/ui-prop-types").Cursor
|
|
42
|
-
tabIndex?: number
|
|
30
|
+
color?: "primary" | "primary-inverse";
|
|
31
|
+
interaction?: "enabled" | "disabled" | "readonly";
|
|
32
|
+
elementRef?: (element: Element | null) => void;
|
|
33
|
+
size?: "small" | "medium" | "large";
|
|
34
|
+
onClick?: (event: import("react").KeyboardEvent<import("@instructure/ui-view").ViewProps> | import("react").MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
35
|
+
margin?: import("@instructure/emotion").Spacing;
|
|
36
|
+
placement?: "start" | "end" | "static";
|
|
37
|
+
offset?: "none" | "x-small" | "small" | "medium";
|
|
38
|
+
type?: "button" | "submit" | "reset";
|
|
39
|
+
as?: import("@instructure/shared-types").AsElementType;
|
|
40
|
+
href?: string;
|
|
41
|
+
cursor?: import("@instructure/ui-prop-types").Cursor;
|
|
42
|
+
tabIndex?: number;
|
|
43
43
|
})[];
|
|
44
44
|
static defaultProps: {
|
|
45
45
|
interaction: undefined;
|
|
@@ -10,31 +10,31 @@ declare class CondensedButton extends Component<CondensedButtonProps> {
|
|
|
10
10
|
static readonly componentId = "CondensedButton";
|
|
11
11
|
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
12
12
|
children?: React.ReactNode;
|
|
13
|
-
type?: "button" | "submit" | "reset"
|
|
14
|
-
size?: "small" | "medium" | "large"
|
|
15
|
-
elementRef?: (
|
|
16
|
-
as?: import("@instructure/shared-types").AsElementType
|
|
17
|
-
interaction?: "enabled" | "disabled" | "readonly"
|
|
18
|
-
color?: "primary" | "primary-inverse" | "secondary"
|
|
19
|
-
margin?: import("@instructure/emotion").Spacing
|
|
20
|
-
cursor?: import("@instructure/ui-prop-types").Cursor
|
|
21
|
-
href?: string
|
|
13
|
+
type?: "button" | "submit" | "reset";
|
|
14
|
+
size?: "small" | "medium" | "large";
|
|
15
|
+
elementRef?: (element: Element | null) => void;
|
|
16
|
+
as?: import("@instructure/shared-types").AsElementType;
|
|
17
|
+
interaction?: "enabled" | "disabled" | "readonly";
|
|
18
|
+
color?: "primary" | "primary-inverse" | "secondary";
|
|
19
|
+
margin?: import("@instructure/emotion").Spacing;
|
|
20
|
+
cursor?: import("@instructure/ui-prop-types").Cursor;
|
|
21
|
+
href?: string;
|
|
22
22
|
renderIcon?: React.ReactNode | (() => React.ReactNode);
|
|
23
|
-
onClick?: (
|
|
23
|
+
onClick?: (event: React.KeyboardEvent<import("@instructure/ui-view").ViewProps> | React.MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
24
24
|
}>;
|
|
25
25
|
static allowedProps: readonly (keyof {
|
|
26
26
|
children?: React.ReactNode;
|
|
27
|
-
type?: "button" | "submit" | "reset"
|
|
28
|
-
size?: "small" | "medium" | "large"
|
|
29
|
-
elementRef?: (
|
|
30
|
-
as?: import("@instructure/shared-types").AsElementType
|
|
31
|
-
interaction?: "enabled" | "disabled" | "readonly"
|
|
32
|
-
color?: "primary" | "primary-inverse" | "secondary"
|
|
33
|
-
margin?: import("@instructure/emotion").Spacing
|
|
34
|
-
cursor?: import("@instructure/ui-prop-types").Cursor
|
|
35
|
-
href?: string
|
|
27
|
+
type?: "button" | "submit" | "reset";
|
|
28
|
+
size?: "small" | "medium" | "large";
|
|
29
|
+
elementRef?: (element: Element | null) => void;
|
|
30
|
+
as?: import("@instructure/shared-types").AsElementType;
|
|
31
|
+
interaction?: "enabled" | "disabled" | "readonly";
|
|
32
|
+
color?: "primary" | "primary-inverse" | "secondary";
|
|
33
|
+
margin?: import("@instructure/emotion").Spacing;
|
|
34
|
+
cursor?: import("@instructure/ui-prop-types").Cursor;
|
|
35
|
+
href?: string;
|
|
36
36
|
renderIcon?: React.ReactNode | (() => React.ReactNode);
|
|
37
|
-
onClick?: (
|
|
37
|
+
onClick?: (event: React.KeyboardEvent<import("@instructure/ui-view").ViewProps> | React.MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
38
38
|
})[];
|
|
39
39
|
static defaultProps: {
|
|
40
40
|
type: string;
|
|
@@ -12,39 +12,39 @@ declare class IconButton extends Component<IconButtonProps> {
|
|
|
12
12
|
children?: import("@instructure/shared-types").Renderable;
|
|
13
13
|
renderIcon?: import("@instructure/shared-types").Renderable;
|
|
14
14
|
screenReaderLabel: React.ReactNode;
|
|
15
|
-
type?: "button" | "submit" | "reset"
|
|
16
|
-
size?: "small" | "medium" | "large"
|
|
17
|
-
elementRef?: (
|
|
18
|
-
as?: import("@instructure/shared-types").AsElementType
|
|
19
|
-
interaction?: "enabled" | "disabled" | "readonly"
|
|
20
|
-
color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger"
|
|
21
|
-
focusColor?: "info" | "inverse"
|
|
22
|
-
shape?: "
|
|
23
|
-
withBackground?: boolean
|
|
24
|
-
withBorder?: boolean
|
|
25
|
-
margin?: import("@instructure/emotion").Spacing
|
|
26
|
-
cursor?: import("@instructure/ui-prop-types").Cursor
|
|
27
|
-
href?: string
|
|
28
|
-
onClick?: (
|
|
15
|
+
type?: "button" | "submit" | "reset";
|
|
16
|
+
size?: "small" | "medium" | "large";
|
|
17
|
+
elementRef?: (element: Element | null) => void;
|
|
18
|
+
as?: import("@instructure/shared-types").AsElementType;
|
|
19
|
+
interaction?: "enabled" | "disabled" | "readonly";
|
|
20
|
+
color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger";
|
|
21
|
+
focusColor?: "info" | "inverse";
|
|
22
|
+
shape?: "rectangle" | "circle";
|
|
23
|
+
withBackground?: boolean;
|
|
24
|
+
withBorder?: boolean;
|
|
25
|
+
margin?: import("@instructure/emotion").Spacing;
|
|
26
|
+
cursor?: import("@instructure/ui-prop-types").Cursor;
|
|
27
|
+
href?: string;
|
|
28
|
+
onClick?: (event: React.KeyboardEvent<import("@instructure/ui-view").ViewProps> | React.MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
29
29
|
}>;
|
|
30
30
|
static allowedProps: readonly (keyof {
|
|
31
31
|
children?: import("@instructure/shared-types").Renderable;
|
|
32
32
|
renderIcon?: import("@instructure/shared-types").Renderable;
|
|
33
33
|
screenReaderLabel: React.ReactNode;
|
|
34
|
-
type?: "button" | "submit" | "reset"
|
|
35
|
-
size?: "small" | "medium" | "large"
|
|
36
|
-
elementRef?: (
|
|
37
|
-
as?: import("@instructure/shared-types").AsElementType
|
|
38
|
-
interaction?: "enabled" | "disabled" | "readonly"
|
|
39
|
-
color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger"
|
|
40
|
-
focusColor?: "info" | "inverse"
|
|
41
|
-
shape?: "
|
|
42
|
-
withBackground?: boolean
|
|
43
|
-
withBorder?: boolean
|
|
44
|
-
margin?: import("@instructure/emotion").Spacing
|
|
45
|
-
cursor?: import("@instructure/ui-prop-types").Cursor
|
|
46
|
-
href?: string
|
|
47
|
-
onClick?: (
|
|
34
|
+
type?: "button" | "submit" | "reset";
|
|
35
|
+
size?: "small" | "medium" | "large";
|
|
36
|
+
elementRef?: (element: Element | null) => void;
|
|
37
|
+
as?: import("@instructure/shared-types").AsElementType;
|
|
38
|
+
interaction?: "enabled" | "disabled" | "readonly";
|
|
39
|
+
color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger";
|
|
40
|
+
focusColor?: "info" | "inverse";
|
|
41
|
+
shape?: "rectangle" | "circle";
|
|
42
|
+
withBackground?: boolean;
|
|
43
|
+
withBorder?: boolean;
|
|
44
|
+
margin?: import("@instructure/emotion").Spacing;
|
|
45
|
+
cursor?: import("@instructure/ui-prop-types").Cursor;
|
|
46
|
+
href?: string;
|
|
47
|
+
onClick?: (event: React.KeyboardEvent<import("@instructure/ui-view").ViewProps> | React.MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
48
48
|
})[];
|
|
49
49
|
static defaultProps: {
|
|
50
50
|
type: string;
|
|
@@ -12,32 +12,32 @@ declare class ToggleButton extends Component<ToggleButtonProps, ToggleButtonStat
|
|
|
12
12
|
renderTooltipContent: React.ReactNode | ((...args: any[]) => any);
|
|
13
13
|
renderIcon: import("@instructure/shared-types").Renderable;
|
|
14
14
|
status: "pressed" | "unpressed";
|
|
15
|
-
as?: import("@instructure/shared-types").AsElementType
|
|
16
|
-
interaction?: "enabled" | "disabled" | "readonly"
|
|
17
|
-
size?: "small" | "medium" | "large"
|
|
18
|
-
elementRef?: (
|
|
19
|
-
onClick?: (
|
|
20
|
-
color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger"
|
|
21
|
-
isShowingTooltip?: boolean
|
|
22
|
-
mountNode?: import("@instructure/ui-position").PositionMountNode
|
|
23
|
-
placement?: import("@instructure/ui-position").PlacementPropValues
|
|
24
|
-
constrain?: import("@instructure/ui-position").PositionConstraint
|
|
15
|
+
as?: import("@instructure/shared-types").AsElementType;
|
|
16
|
+
interaction?: "enabled" | "disabled" | "readonly";
|
|
17
|
+
size?: "small" | "medium" | "large";
|
|
18
|
+
elementRef?: (element: Element | null) => void;
|
|
19
|
+
onClick?: (event: React.KeyboardEvent<import("@instructure/ui-view").ViewProps> | React.MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
20
|
+
color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger";
|
|
21
|
+
isShowingTooltip?: boolean;
|
|
22
|
+
mountNode?: import("@instructure/ui-position").PositionMountNode;
|
|
23
|
+
placement?: import("@instructure/ui-position").PlacementPropValues;
|
|
24
|
+
constrain?: import("@instructure/ui-position").PositionConstraint;
|
|
25
25
|
}>;
|
|
26
26
|
static allowedProps: readonly (keyof {
|
|
27
27
|
screenReaderLabel: string;
|
|
28
28
|
renderTooltipContent: React.ReactNode | ((...args: any[]) => any);
|
|
29
29
|
renderIcon: import("@instructure/shared-types").Renderable;
|
|
30
30
|
status: "pressed" | "unpressed";
|
|
31
|
-
as?: import("@instructure/shared-types").AsElementType
|
|
32
|
-
interaction?: "enabled" | "disabled" | "readonly"
|
|
33
|
-
size?: "small" | "medium" | "large"
|
|
34
|
-
elementRef?: (
|
|
35
|
-
onClick?: (
|
|
36
|
-
color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger"
|
|
37
|
-
isShowingTooltip?: boolean
|
|
38
|
-
mountNode?: import("@instructure/ui-position").PositionMountNode
|
|
39
|
-
placement?: import("@instructure/ui-position").PlacementPropValues
|
|
40
|
-
constrain?: import("@instructure/ui-position").PositionConstraint
|
|
31
|
+
as?: import("@instructure/shared-types").AsElementType;
|
|
32
|
+
interaction?: "enabled" | "disabled" | "readonly";
|
|
33
|
+
size?: "small" | "medium" | "large";
|
|
34
|
+
elementRef?: (element: Element | null) => void;
|
|
35
|
+
onClick?: (event: React.KeyboardEvent<import("@instructure/ui-view").ViewProps> | React.MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
36
|
+
color?: "primary" | "primary-inverse" | "secondary" | "success" | "danger";
|
|
37
|
+
isShowingTooltip?: boolean;
|
|
38
|
+
mountNode?: import("@instructure/ui-position").PositionMountNode;
|
|
39
|
+
placement?: import("@instructure/ui-position").PlacementPropValues;
|
|
40
|
+
constrain?: import("@instructure/ui-position").PositionConstraint;
|
|
41
41
|
})[];
|
|
42
42
|
static defaultProps: {
|
|
43
43
|
size: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ToggleButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAUxC,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEnE;;;;GAIG;AAEH,cACM,YAAa,SAAQ,SAAS,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IACxE,MAAM,CAAC,QAAQ,CAAC,WAAW,kBAAiB;IAE5C,MAAM,CAAC,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ToggleButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAUxC,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEnE;;;;GAIG;AAEH,cACM,YAAa,SAAQ,SAAS,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IACxE,MAAM,CAAC,QAAQ,CAAC,WAAW,kBAAiB;IAE5C,MAAM,CAAC,SAAS;;kDAId,GAAC;;;;;;;;;;;;;OAJyB;IAC5B,MAAM,CAAC,YAAY;;kDAGjB,GAAC;;;;;;;;;;;;;SAH+B;IAClC,MAAM,CAAC,YAAY;;;;;;;;MASlB;gBAEW,KAAK,EAAE,iBAAiB;IAQpC,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAK9B;IAED,IAAI,gBAAgB,YAInB;IAED,MAAM;CAmDP;AAED,OAAO,EAAE,YAAY,EAAE,CAAA;AACvB,eAAe,YAAY,CAAA"}
|