@instructure/ui-buttons 10.26.1 → 11.0.0
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 +24 -1
- package/es/BaseButton/index.js +9 -6
- package/es/BaseButton/props.js +1 -26
- package/es/Button/index.js +6 -6
- package/es/Button/props.js +1 -20
- package/es/CloseButton/index.js +12 -8
- package/es/CloseButton/props.js +1 -18
- package/es/CondensedButton/index.js +6 -6
- package/es/CondensedButton/props.js +1 -17
- package/es/IconButton/index.js +7 -6
- package/es/IconButton/props.js +1 -21
- package/es/ToggleButton/index.js +10 -6
- package/es/ToggleButton/props.js +1 -19
- package/lib/BaseButton/index.js +8 -5
- package/lib/BaseButton/props.js +1 -27
- package/lib/Button/index.js +5 -5
- package/lib/Button/props.js +1 -21
- package/lib/CloseButton/index.js +11 -7
- package/lib/CloseButton/props.js +1 -19
- package/lib/CondensedButton/index.js +5 -5
- package/lib/CondensedButton/props.js +1 -18
- package/lib/IconButton/index.js +6 -5
- package/lib/IconButton/props.js +1 -22
- package/lib/ToggleButton/index.js +10 -5
- package/lib/ToggleButton/props.js +1 -20
- package/package.json +20 -23
- package/src/BaseButton/index.tsx +7 -4
- package/src/BaseButton/props.ts +3 -40
- package/src/Button/index.tsx +6 -5
- package/src/Button/props.ts +2 -33
- package/src/CloseButton/index.tsx +6 -6
- package/src/CloseButton/props.ts +3 -25
- package/src/CondensedButton/index.tsx +2 -4
- package/src/CondensedButton/props.ts +3 -22
- package/src/IconButton/index.tsx +3 -4
- package/src/IconButton/props.ts +2 -33
- package/src/ToggleButton/index.tsx +2 -5
- package/src/ToggleButton/props.ts +2 -31
- package/tsconfig.build.json +0 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/BaseButton/index.d.ts +1 -2
- package/types/BaseButton/index.d.ts.map +1 -1
- package/types/BaseButton/props.d.ts +3 -4
- package/types/BaseButton/props.d.ts.map +1 -1
- package/types/Button/index.d.ts +1 -19
- package/types/Button/index.d.ts.map +1 -1
- package/types/Button/props.d.ts +3 -4
- package/types/Button/props.d.ts.map +1 -1
- package/types/CloseButton/index.d.ts +1 -17
- package/types/CloseButton/index.d.ts.map +1 -1
- package/types/CloseButton/props.d.ts +3 -4
- package/types/CloseButton/props.d.ts.map +1 -1
- package/types/CondensedButton/index.d.ts +1 -16
- package/types/CondensedButton/index.d.ts.map +1 -1
- package/types/CondensedButton/props.d.ts +3 -4
- package/types/CondensedButton/props.d.ts.map +1 -1
- package/types/IconButton/index.d.ts +1 -20
- package/types/IconButton/index.d.ts.map +1 -1
- package/types/IconButton/props.d.ts +3 -4
- package/types/IconButton/props.d.ts.map +1 -1
- package/types/ToggleButton/index.d.ts +0 -16
- package/types/ToggleButton/index.d.ts.map +1 -1
- package/types/ToggleButton/props.d.ts +2 -3
- package/types/ToggleButton/props.d.ts.map +1 -1
|
@@ -8,7 +8,6 @@ category: components/utilities
|
|
|
8
8
|
**/
|
|
9
9
|
declare class BaseButton extends Component<BaseButtonProps> {
|
|
10
10
|
static readonly componentId = "BaseButton";
|
|
11
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof import("./props").BaseButtonOwnProps>;
|
|
12
11
|
static allowedProps: readonly (keyof import("./props").BaseButtonOwnProps)[];
|
|
13
12
|
static defaultProps: {
|
|
14
13
|
readonly type: "button";
|
|
@@ -30,7 +29,7 @@ declare class BaseButton extends Component<BaseButtonProps> {
|
|
|
30
29
|
componentDidUpdate(): void;
|
|
31
30
|
get makeStylesVariables(): BaseButtonStyleProps;
|
|
32
31
|
get hasOnlyIconVisible(): boolean;
|
|
33
|
-
get elementType(): import("react").ComponentClass<any, any> | import("react").
|
|
32
|
+
get elementType(): import("react").ComponentClass<any, any> | import("react").ComponentClass<Readonly<BaseButtonProps>, any> | import("react").FunctionComponent<Readonly<BaseButtonProps>> | NonNullable<import("@instructure/shared-types").AsElementType | undefined>;
|
|
34
33
|
get interaction(): import("@instructure/ui-react-utils").InteractionType;
|
|
35
34
|
get isDisabled(): boolean;
|
|
36
35
|
get isReadOnly(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/BaseButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/BaseButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAYjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAarD,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAEpE;;;;GAIG;AAEH,cACM,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACjD,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAe;IAE1C,MAAM,CAAC,YAAY,0DAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;MAeT;IAEV,GAAG,EAAE,WAAW,GAAG,IAAI,CAAO;IAE9B,iBAAiB;IAIjB,kBAAkB;IAIlB,IAAI,mBAAmB,IAAI,oBAAoB,CAM9C;IAED,IAAI,kBAAkB,YAGrB;IAED,IAAI,WAAW,0PAEd;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,GAAI,IAAI,WAAW,GAAG,IAAI,UAQzC;IAED,WAAW,GAAI,OAAO,KAAK,CAAC,UAAU,CAAC,SAAS,GAAG,OAAO,CAAC,UAa1D;IAED,aAAa,GAAI,OAAO,KAAK,CAAC,aAAa,CAAC,SAAS,GAAG,OAAO,CAAC,UA0B/D;IAED,cAAc;IAgCd,MAAM;CAqFP;AAED,OAAO,EAAE,UAAU,EAAE,CAAA;AACrB,eAAe,UAAU,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { InteractionType } from '@instructure/ui-react-utils';
|
|
3
3
|
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
|
-
import type { ToProp, AsElementType, BaseButtonTheme, OtherHTMLAttributes
|
|
5
|
-
import type { Cursor } from '@instructure/
|
|
4
|
+
import type { ToProp, AsElementType, BaseButtonTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
5
|
+
import type { Cursor } from '@instructure/shared-types';
|
|
6
6
|
import type { ViewProps } from '@instructure/ui-view';
|
|
7
7
|
import { Renderable } from '@instructure/shared-types';
|
|
8
8
|
type BaseButtonOwnProps = {
|
|
@@ -112,8 +112,7 @@ type PropKeys = keyof BaseButtonOwnProps;
|
|
|
112
112
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
113
113
|
type BaseButtonProps = BaseButtonOwnProps & WithStyleProps<BaseButtonTheme, BaseButtonStyle> & OtherHTMLAttributes<BaseButtonOwnProps> & ToProp;
|
|
114
114
|
type BaseButtonStyle = ComponentStyle<'baseButton' | 'content' | 'children' | 'iconSVG' | 'childrenLayout' | 'iconOnly' | 'iconWrapper' | 'childrenWrapper'>;
|
|
115
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
116
115
|
declare const allowedProps: AllowedPropKeys;
|
|
117
116
|
export type { BaseButtonProps, BaseButtonOwnProps, BaseButtonStyleProps, BaseButtonStyle };
|
|
118
|
-
export {
|
|
117
|
+
export { allowedProps };
|
|
119
118
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/BaseButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/BaseButton/props.ts"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CAAA;AACD,QAAA,MAAM,YAAY,EAAE,eAsBnB,CAAA;AAED,YAAY,EACV,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EAChB,CAAA;AACD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
package/types/Button/index.d.ts
CHANGED
|
@@ -8,24 +8,6 @@ category: components
|
|
|
8
8
|
**/
|
|
9
9
|
declare class Button extends Component<ButtonProps> {
|
|
10
10
|
static readonly componentId = "Button";
|
|
11
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
12
|
-
children?: React.ReactNode;
|
|
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" | "ai-primary" | "ai-secondary";
|
|
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
|
-
renderIcon?: React.ReactNode | (() => React.ReactNode);
|
|
27
|
-
onClick?: (event: React.KeyboardEvent<import("@instructure/ui-view").ViewProps> | React.MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
28
|
-
}>;
|
|
29
11
|
static allowedProps: readonly (keyof {
|
|
30
12
|
children?: React.ReactNode;
|
|
31
13
|
type?: "button" | "submit" | "reset";
|
|
@@ -39,7 +21,7 @@ declare class Button extends Component<ButtonProps> {
|
|
|
39
21
|
textAlign?: "start" | "center";
|
|
40
22
|
withBackground?: boolean;
|
|
41
23
|
margin?: import("@instructure/emotion").Spacing;
|
|
42
|
-
cursor?: import("@instructure/
|
|
24
|
+
cursor?: import("@instructure/shared-types").Cursor;
|
|
43
25
|
href?: string;
|
|
44
26
|
renderIcon?: React.ReactNode | (() => React.ReactNode);
|
|
45
27
|
onClick?: (event: React.KeyboardEvent<import("@instructure/ui-view").ViewProps> | React.MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Button/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Button/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOjC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAE1C;;;;GAIG;AAEH,cACM,MAAO,SAAQ,SAAS,CAAC,WAAW,CAAC;IACzC,MAAM,CAAC,QAAQ,CAAC,WAAW,YAAW;IAEtC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;;MAYlB;IAED,gBAAgB,EAAE,UAAU,GAAG,IAAI,CAAO;IAE1C,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,IAAI,OAAO,mBAEV;IAED,KAAK;IAIL,gBAAgB,GAAI,IAAI,OAAO,GAAG,IAAI,UAQrC;IAED,eAAe,GAAI,WAAW,UAAU,GAAG,IAAI,UAE9C;IAED,MAAM;CAgDP;AAED,eAAe,MAAM,CAAA;AACrB,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
package/types/Button/props.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Spacing, WithStyleProps } from '@instructure/emotion';
|
|
3
|
-
import type { ToProp, AsElementType,
|
|
4
|
-
import type { Cursor } from '@instructure/
|
|
3
|
+
import type { ToProp, AsElementType, BaseButtonTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
4
|
+
import type { Cursor } from '@instructure/shared-types';
|
|
5
5
|
import type { ViewProps } from '@instructure/ui-view';
|
|
6
6
|
type ButtonOwnProps = {
|
|
7
7
|
/**
|
|
@@ -76,8 +76,7 @@ type ButtonOwnProps = {
|
|
|
76
76
|
type PropKeys = keyof ButtonOwnProps;
|
|
77
77
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
78
78
|
type ButtonProps = ButtonOwnProps & WithStyleProps<BaseButtonTheme, null> & OtherHTMLAttributes<ButtonOwnProps> & ToProp;
|
|
79
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
80
79
|
declare const allowedProps: AllowedPropKeys;
|
|
81
80
|
export type { ButtonProps };
|
|
82
|
-
export {
|
|
81
|
+
export { allowedProps };
|
|
83
82
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Button/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Button/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,KAAK,EACV,MAAM,EACN,aAAa,EACb,eAAe,EACf,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,KAAK,cAAc,GAAG;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS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Q,CAAC,CAAC,CAAA;AAEhD,KAAK,WAAW,GAAG,cAAc,GAC/B,cAAc,CAAC,eAAe,EAAE,IAAI,CAAC,GACrC,mBAAmB,CAAC,cAAc,CAAC,GACnC,MAAM,CAAA;AACR,QAAA,MAAM,YAAY,EAAE,eAiBnB,CAAA;AAED,YAAY,EAAE,WAAW,EAAE,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -7,22 +7,6 @@ category: components
|
|
|
7
7
|
**/
|
|
8
8
|
declare class CloseButton extends Component<CloseButtonProps> {
|
|
9
9
|
static readonly componentId = "CloseButton";
|
|
10
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
11
|
-
screenReaderLabel: React.ReactNode;
|
|
12
|
-
color?: "primary" | "primary-inverse";
|
|
13
|
-
interaction?: "enabled" | "disabled" | "readonly";
|
|
14
|
-
elementRef?: (element: Element | null) => void;
|
|
15
|
-
size?: "small" | "medium" | "large";
|
|
16
|
-
onClick?: (event: React.KeyboardEvent<import("@instructure/ui-view").ViewProps> | React.MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
17
|
-
margin?: import("@instructure/emotion").Spacing;
|
|
18
|
-
placement?: "start" | "end" | "static";
|
|
19
|
-
offset?: "none" | "x-small" | "small" | "medium";
|
|
20
|
-
type?: "button" | "submit" | "reset";
|
|
21
|
-
as?: import("@instructure/shared-types").AsElementType;
|
|
22
|
-
href?: string;
|
|
23
|
-
cursor?: import("@instructure/ui-prop-types").Cursor;
|
|
24
|
-
tabIndex?: number;
|
|
25
|
-
}>;
|
|
26
10
|
static allowedProps: readonly (keyof {
|
|
27
11
|
screenReaderLabel: React.ReactNode;
|
|
28
12
|
color?: "primary" | "primary-inverse";
|
|
@@ -36,7 +20,7 @@ declare class CloseButton extends Component<CloseButtonProps> {
|
|
|
36
20
|
type?: "button" | "submit" | "reset";
|
|
37
21
|
as?: import("@instructure/shared-types").AsElementType;
|
|
38
22
|
href?: string;
|
|
39
|
-
cursor?: import("@instructure/
|
|
23
|
+
cursor?: import("@instructure/shared-types").Cursor;
|
|
40
24
|
tabIndex?: number;
|
|
41
25
|
})[];
|
|
42
26
|
static defaultProps: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/CloseButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/CloseButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAajC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C;;;;GAIG;AACH,cACM,WAAY,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IACnD,MAAM,CAAC,QAAQ,CAAC,WAAW,iBAAgB;IAE3C,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;MAUlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAK9B;IAED,iBAAiB;IAIjB,kBAAkB;IAIlB,IAAI,WAAW,0DAEd;IAED,IAAI,KAAK,gDAIR;IAED,MAAM;CAgDP;AAED,eAAe,WAAW,CAAA;AAC1B,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
-
import type { ToProp, AsElementType, CloseButtonTheme, OtherHTMLAttributes
|
|
4
|
-
import type { Cursor } from '@instructure/
|
|
3
|
+
import type { ToProp, AsElementType, CloseButtonTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
4
|
+
import type { Cursor } from '@instructure/shared-types';
|
|
5
5
|
import type { ViewProps } from '@instructure/ui-view';
|
|
6
6
|
type CloseButtonOwnProps = {
|
|
7
7
|
/**
|
|
@@ -71,8 +71,7 @@ type PropKeys = keyof CloseButtonOwnProps;
|
|
|
71
71
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
72
72
|
type CloseButtonProps = CloseButtonOwnProps & WithStyleProps<CloseButtonTheme, CloseButtonStyle> & OtherHTMLAttributes<CloseButtonOwnProps> & ToProp;
|
|
73
73
|
type CloseButtonStyle = ComponentStyle<'closeButton'>;
|
|
74
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
75
74
|
declare const allowedProps: AllowedPropKeys;
|
|
76
75
|
export type { CloseButtonProps, CloseButtonStyle };
|
|
77
|
-
export {
|
|
76
|
+
export { allowedProps };
|
|
78
77
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/CloseButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/CloseButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACV,MAAM,EACN,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,KAAK,mBAAmB,GAAG;IACzB;;OAEG;IACH,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAA;IAElC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,iBAAiB,CAAA;IAErC;;OAEG;IACH,WAAW,CAAC,E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B,EAAE,gBAAgB,EAAE,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -8,21 +8,6 @@ category: components
|
|
|
8
8
|
**/
|
|
9
9
|
declare class CondensedButton extends Component<CondensedButtonProps> {
|
|
10
10
|
static readonly componentId = "CondensedButton";
|
|
11
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
12
|
-
children?: React.ReactNode;
|
|
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
|
-
renderIcon?: React.ReactNode | (() => React.ReactNode);
|
|
23
|
-
onClick?: (event: React.KeyboardEvent<import("@instructure/ui-view").ViewProps> | React.MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
24
|
-
display?: "inline-block" | "block";
|
|
25
|
-
}>;
|
|
26
11
|
static allowedProps: readonly (keyof {
|
|
27
12
|
children?: React.ReactNode;
|
|
28
13
|
type?: "button" | "submit" | "reset";
|
|
@@ -32,7 +17,7 @@ declare class CondensedButton extends Component<CondensedButtonProps> {
|
|
|
32
17
|
interaction?: "enabled" | "disabled" | "readonly";
|
|
33
18
|
color?: "primary" | "primary-inverse" | "secondary";
|
|
34
19
|
margin?: import("@instructure/emotion").Spacing;
|
|
35
|
-
cursor?: import("@instructure/
|
|
20
|
+
cursor?: import("@instructure/shared-types").Cursor;
|
|
36
21
|
href?: string;
|
|
37
22
|
renderIcon?: React.ReactNode | (() => React.ReactNode);
|
|
38
23
|
onClick?: (event: React.KeyboardEvent<import("@instructure/ui-view").ViewProps> | React.MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/CondensedButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/CondensedButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOjC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAEnD;;;;GAIG;AAEH,cACM,eAAgB,SAAQ,SAAS,CAAC,oBAAoB,CAAC;IAC3D,MAAM,CAAC,QAAQ,CAAC,WAAW,qBAAoB;IAE/C,MAAM,CAAC,YAAY;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;MAUlB;IAED,WAAW,EAAE,UAAU,GAAG,IAAI,CAAO;IAErC,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAQ9B;IAED,IAAI,OAAO,mBAEV;IAED,KAAK;IAIL,MAAM;CA8CP;AAED,eAAe,eAAe,CAAA;AAC9B,OAAO,EAAE,eAAe,EAAE,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Spacing, WithStyleProps } from '@instructure/emotion';
|
|
3
|
-
import type { ToProp, AsElementType, BaseButtonTheme, OtherHTMLAttributes
|
|
4
|
-
import type { Cursor } from '@instructure/
|
|
3
|
+
import type { ToProp, AsElementType, BaseButtonTheme, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
4
|
+
import type { Cursor } from '@instructure/shared-types';
|
|
5
5
|
import type { ViewProps } from '@instructure/ui-view';
|
|
6
6
|
type CondensedButtonOwnProps = {
|
|
7
7
|
/**
|
|
@@ -63,8 +63,7 @@ type CondensedButtonOwnProps = {
|
|
|
63
63
|
type PropKeys = keyof CondensedButtonOwnProps;
|
|
64
64
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
65
65
|
type CondensedButtonProps = CondensedButtonOwnProps & WithStyleProps<BaseButtonTheme, null> & OtherHTMLAttributes<CondensedButtonOwnProps> & ToProp;
|
|
66
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
67
66
|
declare const allowedProps: AllowedPropKeys;
|
|
68
67
|
export type { CondensedButtonProps };
|
|
69
|
-
export {
|
|
68
|
+
export { allowedProps };
|
|
70
69
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/CondensedButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/CondensedButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,KAAK,EACV,MAAM,EACN,aAAa,EACb,eAAe,EACf,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,KAAK,uBAAuB,GAAG;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;IAEpC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IAEnC;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAE9C;;OAEG;IACH,EAAE,CAAC,EAAE,aAAa,CAAA;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAA;IAEjD;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,iBAAiB,GAAG,WAAW,CAAA;IAEnD;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,MAAM,KAAK,CAAC,SAAS,CAAC,CAAA;IAEtD;;OAEG;IACH,OAAO,CAAC,EAAE,CACR,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,KAChE,IAAI,CAAA;IAET;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAA;CACnC,CAAA;AAED,KAAK,QAAQ,GAAG,MAAM,uBAAuB,CAAA;AAE7C,KAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,KAAK,oBAAoB,GAAG,uBAAuB,GACjD,cAAc,CAAC,eAAe,EAAE,IAAI,CAAC,GACrC,mBAAmB,CAAC,uBAAuB,CAAC,GAC5C,MAAM,CAAA;AAER,QAAA,MAAM,YAAY,EAAE,eAcnB,CAAA;AAED,YAAY,EAAE,oBAAoB,EAAE,CAAA;AACpC,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -8,25 +8,6 @@ category: components
|
|
|
8
8
|
**/
|
|
9
9
|
declare class IconButton extends Component<IconButtonProps> {
|
|
10
10
|
static readonly componentId = "IconButton";
|
|
11
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
12
|
-
children?: import("@instructure/shared-types").Renderable;
|
|
13
|
-
renderIcon?: import("@instructure/shared-types").Renderable;
|
|
14
|
-
screenReaderLabel: import("react").ReactNode;
|
|
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" | "ai-primary" | "ai-secondary";
|
|
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
|
-
}>;
|
|
30
11
|
static allowedProps: readonly (keyof {
|
|
31
12
|
children?: import("@instructure/shared-types").Renderable;
|
|
32
13
|
renderIcon?: import("@instructure/shared-types").Renderable;
|
|
@@ -42,7 +23,7 @@ declare class IconButton extends Component<IconButtonProps> {
|
|
|
42
23
|
withBackground?: boolean;
|
|
43
24
|
withBorder?: boolean;
|
|
44
25
|
margin?: import("@instructure/emotion").Spacing;
|
|
45
|
-
cursor?: import("@instructure/
|
|
26
|
+
cursor?: import("@instructure/shared-types").Cursor;
|
|
46
27
|
href?: string;
|
|
47
28
|
onClick?: (event: React.KeyboardEvent<import("@instructure/ui-view").ViewProps> | React.MouseEvent<import("@instructure/ui-view").ViewProps>) => void;
|
|
48
29
|
})[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/IconButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AASjC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C;;;;GAIG;AAGH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/IconButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AASjC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C;;;;GAIG;AAGH,cACM,UAAW,SAAQ,SAAS,CAAC,eAAe,CAAC;IACjD,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAe;IAE1C,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;;MAYlB;IAED,WAAW,EAAE,UAAU,GAAG,IAAI,CAAO;IAErC,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAQ9B;IAED,IAAI,OAAO,mBAEV;IAED,KAAK;IAIL,MAAM;CAkDP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import type { Spacing, WithStyleProps } from '@instructure/emotion';
|
|
3
|
-
import type { ToProp, AsElementType,
|
|
4
|
-
import type { Cursor } from '@instructure/
|
|
3
|
+
import type { ToProp, AsElementType, BaseButtonTheme, OtherHTMLAttributes, Renderable } from '@instructure/shared-types';
|
|
4
|
+
import type { Cursor } from '@instructure/shared-types';
|
|
5
5
|
import type { ViewProps } from '@instructure/ui-view';
|
|
6
6
|
type IconButtonOwnProps = {
|
|
7
7
|
/**
|
|
@@ -79,8 +79,7 @@ type IconButtonOwnProps = {
|
|
|
79
79
|
type PropKeys = keyof IconButtonOwnProps;
|
|
80
80
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
81
81
|
type IconButtonProps = IconButtonOwnProps & WithStyleProps<BaseButtonTheme, null> & OtherHTMLAttributes<IconButtonOwnProps> & ToProp;
|
|
82
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
83
82
|
declare const allowedProps: AllowedPropKeys;
|
|
84
83
|
export type { IconButtonProps };
|
|
85
|
-
export {
|
|
84
|
+
export { allowedProps };
|
|
86
85
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/IconButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/IconButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,KAAK,EACV,MAAM,EACN,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,UAAU,EACX,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,KAAK,kBAAkB,GAAG;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAA;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IAEvB;;OAEG;IACH,iBAAiB,EAAE,SAAS,CAAA;IAE5B;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,G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AkBnB,CAAA;AAED,YAAY,EAAE,eAAe,EAAE,CAAA;AAC/B,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -7,22 +7,6 @@ category: components
|
|
|
7
7
|
**/
|
|
8
8
|
declare class ToggleButton extends Component<ToggleButtonProps, ToggleButtonState> {
|
|
9
9
|
static readonly componentId = "ToggleButton";
|
|
10
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
11
|
-
screenReaderLabel: string;
|
|
12
|
-
renderTooltipContent: React.ReactNode | ((...args: any[]) => any);
|
|
13
|
-
renderIcon: import("@instructure/shared-types").Renderable;
|
|
14
|
-
status: "pressed" | "unpressed";
|
|
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
|
-
}>;
|
|
26
10
|
static allowedProps: readonly (keyof {
|
|
27
11
|
screenReaderLabel: string;
|
|
28
12
|
renderTooltipContent: React.ReactNode | ((...args: any[]) => any);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ToggleButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ToggleButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEnE;;;;GAIG;AAEH,cAAM,YAAa,SAAQ,SAAS,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IACxE,MAAM,CAAC,QAAQ,CAAC,WAAW,kBAAiB;IAE5C,MAAM,CAAC,YAAY;;kDAGjB,GAAA;;;;;;;;;;;;;SAHgC;IAClC,MAAM,CAAC,YAAY;;;;;;;;MASlB;gBAEW,KAAK,EAAE,iBAAiB;IAQpC,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAK9B;IAED,IAAI,gBAAgB,YAInB;IAED,MAAM;CAoDP;AAED,OAAO,EAAE,YAAY,EAAE,CAAA;AACvB,eAAe,YAAY,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { AsElementType, OtherHTMLAttributes
|
|
2
|
+
import type { AsElementType, OtherHTMLAttributes } from '@instructure/shared-types';
|
|
3
3
|
import type { PlacementPropValues, PositionConstraint, PositionMountNode } from '@instructure/ui-position';
|
|
4
4
|
import type { ViewProps } from '@instructure/ui-view';
|
|
5
5
|
import { Renderable } from '@instructure/shared-types';
|
|
@@ -69,8 +69,7 @@ type ToggleButtonProps = ToggleButtonOwnProps & OtherHTMLAttributes<ToggleButton
|
|
|
69
69
|
type ToggleButtonState = {
|
|
70
70
|
isShowingTooltip: boolean;
|
|
71
71
|
};
|
|
72
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
73
72
|
declare const allowedProps: AllowedPropKeys;
|
|
74
73
|
export type { ToggleButtonProps, ToggleButtonState };
|
|
75
|
-
export {
|
|
74
|
+
export { allowedProps };
|
|
76
75
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ToggleButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/ToggleButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD,KAAK,oBAAoB,GAAG;IAC1B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IAEzB;;OAEG;IACH,oBAAoB,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IAEjE;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IAEtB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,WAAW,CAAA;IAE/B;;OAEG;IACH,EAAE,CAAC,EAAE,aAAa,CAAA;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAA;IAEjD;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IAEnC;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,KAAK,IAAI,CAAA;IAE9C;;OAEG;IACH,OAAO,CAAC,EAAE,CACR,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,KAChE,IAAI,CAAA;IAET;;OAEG;IACH,KAAK,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