@sentropic/design-system-vue 0.5.0 → 0.7.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/dist/Avatar.d.ts +85 -0
- package/dist/Avatar.d.ts.map +1 -0
- package/dist/Avatar.js +36 -0
- package/dist/Avatar.js.map +1 -0
- package/dist/AvatarGroup.d.ts +53 -0
- package/dist/AvatarGroup.d.ts.map +1 -0
- package/dist/AvatarGroup.js +37 -0
- package/dist/AvatarGroup.js.map +1 -0
- package/dist/BarChart.d.ts +1 -1
- package/dist/Button.d.ts +1 -1
- package/dist/ButtonGroup.d.ts +75 -0
- package/dist/ButtonGroup.d.ts.map +1 -0
- package/dist/ButtonGroup.js +36 -0
- package/dist/ButtonGroup.js.map +1 -0
- package/dist/CheckboxGroup.d.ts +111 -0
- package/dist/CheckboxGroup.d.ts.map +1 -0
- package/dist/CheckboxGroup.js +59 -0
- package/dist/CheckboxGroup.js.map +1 -0
- package/dist/Col.d.ts +87 -0
- package/dist/Col.d.ts.map +1 -0
- package/dist/Col.js +60 -0
- package/dist/Col.js.map +1 -0
- package/dist/Collapsible.d.ts +61 -0
- package/dist/Collapsible.d.ts.map +1 -0
- package/dist/Collapsible.js +72 -0
- package/dist/Collapsible.js.map +1 -0
- package/dist/Container.d.ts +51 -0
- package/dist/Container.d.ts.map +1 -0
- package/dist/Container.js +18 -0
- package/dist/Container.js.map +1 -0
- package/dist/DataTable.d.ts +1 -1
- package/dist/Divider.d.ts +63 -0
- package/dist/Divider.d.ts.map +1 -0
- package/dist/Divider.js +46 -0
- package/dist/Divider.js.map +1 -0
- package/dist/Flex.d.ts +97 -0
- package/dist/Flex.d.ts.map +1 -0
- package/dist/Flex.js +81 -0
- package/dist/Flex.js.map +1 -0
- package/dist/Footer.d.ts +1 -1
- package/dist/Hidden.d.ts +52 -0
- package/dist/Hidden.d.ts.map +1 -0
- package/dist/Hidden.js +18 -0
- package/dist/Hidden.js.map +1 -0
- package/dist/IconButton.d.ts +1 -1
- package/dist/Inline.d.ts +71 -0
- package/dist/Inline.d.ts.map +1 -0
- package/dist/Inline.js +27 -0
- package/dist/Inline.js.map +1 -0
- package/dist/MediaContent.d.ts +1 -1
- package/dist/OverflowMenu.d.ts +1 -1
- package/dist/RadioGroup.d.ts +109 -0
- package/dist/RadioGroup.d.ts.map +1 -0
- package/dist/RadioGroup.js +58 -0
- package/dist/RadioGroup.js.map +1 -0
- package/dist/Row.d.ts +71 -0
- package/dist/Row.d.ts.map +1 -0
- package/dist/Row.js +33 -0
- package/dist/Row.js.map +1 -0
- package/dist/Stack.d.ts +61 -0
- package/dist/Stack.d.ts.map +1 -0
- package/dist/Stack.js +25 -0
- package/dist/Stack.js.map +1 -0
- package/dist/Stepper.d.ts +89 -0
- package/dist/Stepper.d.ts.map +1 -0
- package/dist/Stepper.js +91 -0
- package/dist/Stepper.js.map +1 -0
- package/dist/Typography.d.ts +85 -0
- package/dist/Typography.d.ts.map +1 -0
- package/dist/Typography.js +36 -0
- package/dist/Typography.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/styles.css +857 -0
- package/package.json +1 -1
package/dist/Hidden.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export type HiddenBreakpoint = "sm" | "md" | "lg" | "xl";
|
|
2
|
+
export type HiddenProps = {
|
|
3
|
+
/** Hide when viewport is narrower than this breakpoint. */
|
|
4
|
+
below?: HiddenBreakpoint;
|
|
5
|
+
/** Hide when viewport is at or wider than this breakpoint. */
|
|
6
|
+
above?: HiddenBreakpoint;
|
|
7
|
+
as?: string;
|
|
8
|
+
class?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const Hidden: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
11
|
+
below: {
|
|
12
|
+
type: () => HiddenBreakpoint;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
|
+
above: {
|
|
16
|
+
type: () => HiddenBreakpoint;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
as: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
class: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
27
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
below: {
|
|
31
|
+
type: () => HiddenBreakpoint;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
above: {
|
|
35
|
+
type: () => HiddenBreakpoint;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
as: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
class: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: undefined;
|
|
45
|
+
};
|
|
46
|
+
}>> & Readonly<{}>, {
|
|
47
|
+
class: string;
|
|
48
|
+
above: HiddenBreakpoint;
|
|
49
|
+
below: HiddenBreakpoint;
|
|
50
|
+
as: string;
|
|
51
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
52
|
+
//# sourceMappingURL=Hidden.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hidden.d.ts","sourceRoot":"","sources":["../src/Hidden.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG;IACxB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,MAAM;;cAGU,MAAM,gBAAgB;;;;cACtB,MAAM,gBAAgB;;;;;;;;;;;;;;;cADtB,MAAM,gBAAgB;;;;cACtB,MAAM,gBAAgB;;;;;;;;;;;;;;;;4EAoBjD,CAAC"}
|
package/dist/Hidden.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineComponent, h } from "vue";
|
|
2
|
+
import { classNames } from "./classNames.js";
|
|
3
|
+
export const Hidden = defineComponent({
|
|
4
|
+
name: "Hidden",
|
|
5
|
+
props: {
|
|
6
|
+
below: { type: String, default: undefined },
|
|
7
|
+
above: { type: String, default: undefined },
|
|
8
|
+
as: { type: String, default: "div" },
|
|
9
|
+
class: { type: String, default: undefined },
|
|
10
|
+
},
|
|
11
|
+
setup(props, { slots, attrs }) {
|
|
12
|
+
return () => h(props.as, {
|
|
13
|
+
...attrs,
|
|
14
|
+
class: classNames("st-hidden", props.below && `st-hidden--below-${props.below}`, props.above && `st-hidden--above-${props.above}`, props.class),
|
|
15
|
+
}, slots.default?.());
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=Hidden.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hidden.js","sourceRoot":"","sources":["../src/Hidden.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAa7C,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC;IACpC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE;QACL,KAAK,EAAE,EAAE,IAAI,EAAE,MAAgC,EAAE,OAAO,EAAE,SAAS,EAAE;QACrE,KAAK,EAAE,EAAE,IAAI,EAAE,MAAgC,EAAE,OAAO,EAAE,SAAS,EAAE;QACrE,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;QACpC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE;KAC5C;IACD,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;QAC3B,OAAO,GAAG,EAAE,CACV,CAAC,CACC,KAAK,CAAC,EAAE,EACR;YACE,GAAG,KAAK;YACR,KAAK,EAAE,UAAU,CACf,WAAW,EACX,KAAK,CAAC,KAAK,IAAI,oBAAoB,KAAK,CAAC,KAAK,EAAE,EAChD,KAAK,CAAC,KAAK,IAAI,oBAAoB,KAAK,CAAC,KAAK,EAAE,EAChD,KAAK,CAAC,KAAK,CACZ;SACF,EACD,KAAK,CAAC,OAAO,EAAE,EAAE,CAClB,CAAC;IACN,CAAC;CACF,CAAC,CAAC"}
|
package/dist/IconButton.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export declare const IconButton: import("vue").DefineComponent<import("vue").Ext
|
|
|
55
55
|
type: "button" | "reset" | "submit";
|
|
56
56
|
class: string;
|
|
57
57
|
disabled: boolean;
|
|
58
|
-
variant: IconButtonVariant;
|
|
59
58
|
size: IconButtonSize;
|
|
59
|
+
variant: IconButtonVariant;
|
|
60
60
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
61
61
|
//# sourceMappingURL=IconButton.d.ts.map
|
package/dist/Inline.d.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { FlexAlign, FlexJustify } from "./Flex.js";
|
|
2
|
+
export type InlineProps = {
|
|
3
|
+
/** Spacing scale step (0..12) mapped to `--st-spacing-*`. */
|
|
4
|
+
gap?: number;
|
|
5
|
+
align?: FlexAlign;
|
|
6
|
+
justify?: FlexJustify;
|
|
7
|
+
wrap?: boolean;
|
|
8
|
+
as?: string;
|
|
9
|
+
class?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const Inline: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
|
+
gap: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
align: {
|
|
17
|
+
type: () => FlexAlign;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
20
|
+
justify: {
|
|
21
|
+
type: () => FlexJustify;
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
wrap: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
as: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
class: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
36
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
+
gap: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
43
|
+
align: {
|
|
44
|
+
type: () => FlexAlign;
|
|
45
|
+
default: undefined;
|
|
46
|
+
};
|
|
47
|
+
justify: {
|
|
48
|
+
type: () => FlexJustify;
|
|
49
|
+
default: undefined;
|
|
50
|
+
};
|
|
51
|
+
wrap: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
as: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
class: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: undefined;
|
|
62
|
+
};
|
|
63
|
+
}>> & Readonly<{}>, {
|
|
64
|
+
class: string;
|
|
65
|
+
wrap: boolean;
|
|
66
|
+
justify: FlexJustify;
|
|
67
|
+
gap: number;
|
|
68
|
+
as: string;
|
|
69
|
+
align: FlexAlign;
|
|
70
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
71
|
+
//# sourceMappingURL=Inline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Inline.d.ts","sourceRoot":"","sources":["../src/Inline.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG;IACxB,6DAA6D;IAC7D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;cAIU,MAAM,SAAS;;;;cACb,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;cADnB,MAAM,SAAS;;;;cACb,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;4EAsB9C,CAAC"}
|
package/dist/Inline.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent, h } from "vue";
|
|
2
|
+
import { classNames } from "./classNames.js";
|
|
3
|
+
import { Flex } from "./Flex.js";
|
|
4
|
+
export const Inline = defineComponent({
|
|
5
|
+
name: "Inline",
|
|
6
|
+
props: {
|
|
7
|
+
gap: { type: Number, default: undefined },
|
|
8
|
+
align: { type: String, default: undefined },
|
|
9
|
+
justify: { type: String, default: undefined },
|
|
10
|
+
wrap: { type: Boolean, default: true },
|
|
11
|
+
as: { type: String, default: "div" },
|
|
12
|
+
class: { type: String, default: undefined },
|
|
13
|
+
},
|
|
14
|
+
setup(props, { slots, attrs }) {
|
|
15
|
+
return () => h(Flex, {
|
|
16
|
+
...attrs,
|
|
17
|
+
as: props.as,
|
|
18
|
+
gap: props.gap,
|
|
19
|
+
align: props.align,
|
|
20
|
+
justify: props.justify,
|
|
21
|
+
wrap: props.wrap,
|
|
22
|
+
direction: "row",
|
|
23
|
+
class: classNames("st-inline", props.class),
|
|
24
|
+
}, slots.default ? { default: () => slots.default?.() } : undefined);
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=Inline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Inline.js","sourceRoot":"","sources":["../src/Inline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAajC,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC;IACpC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE;QACL,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE;QACzC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAyB,EAAE,OAAO,EAAE,SAAS,EAAE;QAC9D,OAAO,EAAE,EAAE,IAAI,EAAE,MAA2B,EAAE,OAAO,EAAE,SAAS,EAAE;QAClE,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;QACtC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE;QACpC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE;KAC5C;IACD,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE;QAC3B,OAAO,GAAG,EAAE,CACV,CAAC,CACC,IAAI,EACJ;YACE,GAAG,KAAK;YACR,EAAE,EAAE,KAAK,CAAC,EAAE;YACZ,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,SAAS,EAAE,KAAK;YAChB,KAAK,EAAE,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC;SAC5C,EACD,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CACjE,CAAC;IACN,CAAC;CACF,CAAC,CAAC"}
|
package/dist/MediaContent.d.ts
CHANGED
|
@@ -117,12 +117,12 @@ export declare const MediaContent: import("vue").DefineComponent<import("vue").E
|
|
|
117
117
|
class: string;
|
|
118
118
|
caption: string;
|
|
119
119
|
title: string;
|
|
120
|
+
aspectRatio: string;
|
|
120
121
|
byline: string;
|
|
121
122
|
media: string;
|
|
122
123
|
mediaAlt: string;
|
|
123
124
|
mediaKind: MediaKind;
|
|
124
125
|
mediaControls: boolean;
|
|
125
|
-
aspectRatio: string;
|
|
126
126
|
mediaCaptions: string;
|
|
127
127
|
mediaCaptionsLabel: string;
|
|
128
128
|
mediaCaptionsLang: string;
|
package/dist/OverflowMenu.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export declare const OverflowMenu: import("vue").DefineComponent<import("vue").E
|
|
|
67
67
|
open: boolean;
|
|
68
68
|
class: string;
|
|
69
69
|
label: string;
|
|
70
|
-
placement: OverflowMenuPlacement;
|
|
71
70
|
dense: boolean;
|
|
71
|
+
placement: OverflowMenuPlacement;
|
|
72
72
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
73
73
|
//# sourceMappingURL=OverflowMenu.d.ts.map
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
export interface RadioGroupOption {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
helperText?: string;
|
|
7
|
+
}
|
|
8
|
+
export type RadioGroupProps = {
|
|
9
|
+
legend: string;
|
|
10
|
+
/** Valeur sélectionnée (contrôlée). */
|
|
11
|
+
value?: string;
|
|
12
|
+
onChange?: (value: string) => void;
|
|
13
|
+
orientation?: "vertical" | "horizontal";
|
|
14
|
+
/** Nom partagé garantissant l'exclusivité radio. Requis. */
|
|
15
|
+
name: string;
|
|
16
|
+
options?: RadioGroupOption[];
|
|
17
|
+
helperText?: string;
|
|
18
|
+
/** Désactive le groupe entier. */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
class?: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const RadioGroup: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
23
|
+
legend: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
value: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: undefined;
|
|
30
|
+
};
|
|
31
|
+
onChange: {
|
|
32
|
+
type: PropType<(value: string) => void>;
|
|
33
|
+
default: undefined;
|
|
34
|
+
};
|
|
35
|
+
orientation: {
|
|
36
|
+
type: () => "vertical" | "horizontal";
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
name: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
options: {
|
|
44
|
+
type: PropType<RadioGroupOption[]>;
|
|
45
|
+
default: () => never[];
|
|
46
|
+
};
|
|
47
|
+
helperText: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: undefined;
|
|
50
|
+
};
|
|
51
|
+
disabled: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
class: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
59
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
legend: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
required: true;
|
|
65
|
+
};
|
|
66
|
+
value: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: undefined;
|
|
69
|
+
};
|
|
70
|
+
onChange: {
|
|
71
|
+
type: PropType<(value: string) => void>;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
orientation: {
|
|
75
|
+
type: () => "vertical" | "horizontal";
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
name: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
required: true;
|
|
81
|
+
};
|
|
82
|
+
options: {
|
|
83
|
+
type: PropType<RadioGroupOption[]>;
|
|
84
|
+
default: () => never[];
|
|
85
|
+
};
|
|
86
|
+
helperText: {
|
|
87
|
+
type: StringConstructor;
|
|
88
|
+
default: undefined;
|
|
89
|
+
};
|
|
90
|
+
disabled: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
class: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: undefined;
|
|
97
|
+
};
|
|
98
|
+
}>> & Readonly<{
|
|
99
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
100
|
+
}>, {
|
|
101
|
+
class: string;
|
|
102
|
+
onChange: (value: string) => void;
|
|
103
|
+
disabled: boolean;
|
|
104
|
+
orientation: "horizontal" | "vertical";
|
|
105
|
+
value: string;
|
|
106
|
+
helperText: string;
|
|
107
|
+
options: RadioGroupOption[];
|
|
108
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
109
|
+
//# sourceMappingURL=RadioGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../src/RadioGroup.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAIpC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;cAMC,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;;;;cAInC,MAAM,UAAU,GAAG,YAAY;;;;;;;;cAKhC,QAAQ,CAAC,gBAAgB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;cATzB,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;;;;cAInC,MAAM,UAAU,GAAG,YAAY;;;;;;;;cAKhC,QAAQ,CAAC,gBAAgB,EAAE,CAAC;;;;;;;;;;;;;;;;;;;sBATR,MAAM,KAAK,IAAI;;;;;;4EAyDtD,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent, h } from "vue";
|
|
2
|
+
import { classNames } from "./classNames.js";
|
|
3
|
+
import { Radio } from "./Radio.js";
|
|
4
|
+
export const RadioGroup = defineComponent({
|
|
5
|
+
name: "RadioGroup",
|
|
6
|
+
props: {
|
|
7
|
+
legend: { type: String, required: true },
|
|
8
|
+
value: { type: String, default: undefined },
|
|
9
|
+
onChange: {
|
|
10
|
+
type: Function,
|
|
11
|
+
default: undefined,
|
|
12
|
+
},
|
|
13
|
+
orientation: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "vertical",
|
|
16
|
+
},
|
|
17
|
+
name: { type: String, required: true },
|
|
18
|
+
options: {
|
|
19
|
+
type: Array,
|
|
20
|
+
default: () => [],
|
|
21
|
+
},
|
|
22
|
+
helperText: { type: String, default: undefined },
|
|
23
|
+
disabled: { type: Boolean, default: false },
|
|
24
|
+
class: { type: String, default: undefined },
|
|
25
|
+
},
|
|
26
|
+
emits: ["change"],
|
|
27
|
+
setup(props, { slots, attrs, emit }) {
|
|
28
|
+
function select(optionValue) {
|
|
29
|
+
if (optionValue === props.value)
|
|
30
|
+
return;
|
|
31
|
+
props.onChange?.(optionValue);
|
|
32
|
+
emit("change", optionValue);
|
|
33
|
+
}
|
|
34
|
+
return () => {
|
|
35
|
+
const classes = classNames("st-radioGroup", `st-radioGroup--${props.orientation}`, props.class);
|
|
36
|
+
return h("fieldset", { ...attrs, class: classes, disabled: props.disabled }, [
|
|
37
|
+
h("legend", { class: "st-radioGroup__legend" }, props.legend),
|
|
38
|
+
props.helperText
|
|
39
|
+
? h("p", { class: "st-radioGroup__help" }, props.helperText)
|
|
40
|
+
: null,
|
|
41
|
+
h("div", { class: "st-radioGroup__options" }, [
|
|
42
|
+
...props.options.map((option) => h(Radio, {
|
|
43
|
+
key: option.value,
|
|
44
|
+
label: option.label,
|
|
45
|
+
helperText: option.helperText,
|
|
46
|
+
name: props.name,
|
|
47
|
+
value: option.value,
|
|
48
|
+
checked: props.value === option.value,
|
|
49
|
+
disabled: option.disabled,
|
|
50
|
+
onChange: () => select(option.value),
|
|
51
|
+
})),
|
|
52
|
+
slots.default?.(),
|
|
53
|
+
]),
|
|
54
|
+
]);
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=RadioGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.js","sourceRoot":"","sources":["../src/RadioGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAwBnC,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC;IACxC,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE;QACL,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;QACxC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE;QAC3C,QAAQ,EAAE;YACR,IAAI,EAAE,QAA6C;YACnD,OAAO,EAAE,SAAS;SACnB;QACD,WAAW,EAAE;YACX,IAAI,EAAE,MAAyC;YAC/C,OAAO,EAAE,UAAU;SACpB;QACD,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;QACtC,OAAO,EAAE;YACP,IAAI,EAAE,KAAqC;YAC3C,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE;SAClB;QACD,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE;QAChD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UAAU,EAAE,MAAM,CAAC,UAAU;wBAC7B,IAAI,EAAE,KAAK,CAAC,IAAI;wBAChB,KAAK,EAAE,MAAM,CAAC,KAAK;wBACnB,OAAO,EAAE,KAAK,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK;wBACrC,QAAQ,EAAE,MAAM,CAAC,QAAQ;wBACzB,QAAQ,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;qBACrC,CAAC,CACH;oBACD,KAAK,CAAC,OAAO,EAAE,EAAE;iBAClB,CAAC;aACH,CACF,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/dist/Row.d.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { FlexAlign, FlexJustify } from "./Flex.js";
|
|
2
|
+
export type RowProps = {
|
|
3
|
+
/** Spacing scale step (0..12) used for the column gutter. */
|
|
4
|
+
gutter?: number;
|
|
5
|
+
align?: FlexAlign;
|
|
6
|
+
justify?: FlexJustify;
|
|
7
|
+
wrap?: boolean;
|
|
8
|
+
as?: string;
|
|
9
|
+
class?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const Row: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
|
+
gutter: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
align: {
|
|
17
|
+
type: () => FlexAlign;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
20
|
+
justify: {
|
|
21
|
+
type: () => FlexJustify;
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
wrap: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
as: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
class: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
36
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
|
+
gutter: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
default: number;
|
|
42
|
+
};
|
|
43
|
+
align: {
|
|
44
|
+
type: () => FlexAlign;
|
|
45
|
+
default: undefined;
|
|
46
|
+
};
|
|
47
|
+
justify: {
|
|
48
|
+
type: () => FlexJustify;
|
|
49
|
+
default: undefined;
|
|
50
|
+
};
|
|
51
|
+
wrap: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
as: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
class: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: undefined;
|
|
62
|
+
};
|
|
63
|
+
}>> & Readonly<{}>, {
|
|
64
|
+
class: string;
|
|
65
|
+
wrap: boolean;
|
|
66
|
+
justify: FlexJustify;
|
|
67
|
+
as: string;
|
|
68
|
+
align: FlexAlign;
|
|
69
|
+
gutter: number;
|
|
70
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
71
|
+
//# sourceMappingURL=Row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../src/Row.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,MAAM,QAAQ,GAAG;IACrB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,GAAG;;;;;;cAIa,MAAM,SAAS;;;;cACb,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;cADnB,MAAM,SAAS;;;;cACb,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;4EA2B9C,CAAC"}
|
package/dist/Row.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent, h } from "vue";
|
|
2
|
+
import { classNames } from "./classNames.js";
|
|
3
|
+
import { spacingToken, alignValue, justifyValue } from "./Flex.js";
|
|
4
|
+
export const Row = defineComponent({
|
|
5
|
+
name: "Row",
|
|
6
|
+
props: {
|
|
7
|
+
gutter: { type: Number, default: 4 },
|
|
8
|
+
align: { type: String, default: undefined },
|
|
9
|
+
justify: { type: String, default: undefined },
|
|
10
|
+
wrap: { type: Boolean, default: true },
|
|
11
|
+
as: { type: String, default: "div" },
|
|
12
|
+
class: { type: String, default: undefined },
|
|
13
|
+
},
|
|
14
|
+
setup(props, { slots, attrs }) {
|
|
15
|
+
return () => {
|
|
16
|
+
const gap = spacingToken(props.gutter) ?? "0";
|
|
17
|
+
const style = {
|
|
18
|
+
flexWrap: props.wrap ? "wrap" : "nowrap",
|
|
19
|
+
alignItems: alignValue(props.align),
|
|
20
|
+
justifyContent: justifyValue(props.justify),
|
|
21
|
+
gap,
|
|
22
|
+
"--st-row-gutter": gap,
|
|
23
|
+
...attrs.style,
|
|
24
|
+
};
|
|
25
|
+
return h(props.as, {
|
|
26
|
+
...attrs,
|
|
27
|
+
class: classNames("st-row", props.class),
|
|
28
|
+
style,
|
|
29
|
+
}, slots.default?.());
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=Row.js.map
|
package/dist/Row.js.map
ADDED
|
@@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ACtB,GAAI,KAAK,CAAC,KAAmC;aAC7B,CAAC;YACnB,OAAO,CAAC,CACN,KAAK,CAAC,EAAE,EACR;gBACE,GAAG,KAAK;gBACR,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC;gBACxC,KAAK;aACN,EACD,KAAK,CAAC,OAAO,EAAE,EAAE,CAClB,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/dist/Stack.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { FlexAlign, FlexJustify } from "./Flex.js";
|
|
2
|
+
export type StackProps = {
|
|
3
|
+
/** Spacing scale step (0..12) mapped to `--st-spacing-*`. */
|
|
4
|
+
gap?: number;
|
|
5
|
+
align?: FlexAlign;
|
|
6
|
+
justify?: FlexJustify;
|
|
7
|
+
as?: string;
|
|
8
|
+
class?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const Stack: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
11
|
+
gap: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
|
+
align: {
|
|
16
|
+
type: () => FlexAlign;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
justify: {
|
|
20
|
+
type: () => FlexJustify;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
as: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
class: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: undefined;
|
|
30
|
+
};
|
|
31
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
gap: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
align: {
|
|
39
|
+
type: () => FlexAlign;
|
|
40
|
+
default: undefined;
|
|
41
|
+
};
|
|
42
|
+
justify: {
|
|
43
|
+
type: () => FlexJustify;
|
|
44
|
+
default: undefined;
|
|
45
|
+
};
|
|
46
|
+
as: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
class: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
54
|
+
}>> & Readonly<{}>, {
|
|
55
|
+
class: string;
|
|
56
|
+
justify: FlexJustify;
|
|
57
|
+
gap: number;
|
|
58
|
+
as: string;
|
|
59
|
+
align: FlexAlign;
|
|
60
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
61
|
+
//# sourceMappingURL=Stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../src/Stack.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG;IACvB,6DAA6D;IAC7D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;cAIW,MAAM,SAAS;;;;cACb,MAAM,WAAW;;;;;;;;;;;;;;;;;;;cADnB,MAAM,SAAS;;;;cACb,MAAM,WAAW;;;;;;;;;;;;;;;;;4EAoB9C,CAAC"}
|
package/dist/Stack.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent, h } from "vue";
|
|
2
|
+
import { classNames } from "./classNames.js";
|
|
3
|
+
import { Flex } from "./Flex.js";
|
|
4
|
+
export const Stack = defineComponent({
|
|
5
|
+
name: "Stack",
|
|
6
|
+
props: {
|
|
7
|
+
gap: { type: Number, default: undefined },
|
|
8
|
+
align: { type: String, default: undefined },
|
|
9
|
+
justify: { type: String, default: undefined },
|
|
10
|
+
as: { type: String, default: "div" },
|
|
11
|
+
class: { type: String, default: undefined },
|
|
12
|
+
},
|
|
13
|
+
setup(props, { slots, attrs }) {
|
|
14
|
+
return () => h(Flex, {
|
|
15
|
+
...attrs,
|
|
16
|
+
as: props.as,
|
|
17
|
+
gap: props.gap,
|
|
18
|
+
align: props.align,
|
|
19
|
+
justify: props.justify,
|
|
20
|
+
direction: "column",
|
|
21
|
+
class: classNames("st-stack", props.class),
|
|
22
|
+
}, slots.default ? { default: () => slots.default?.() } : undefined);
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=Stack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.js","sourceRoot":"","sources":["../src/Stack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAYjC,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAC;IACnC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACL,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE;QACzC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAyB,EAAE,OAAO,EAAE,SAAS,EAAE;QAC9D,OAAO,EAAE,EAAE,IAAI,EAAE,MAA2B,EAAE,OAAO,EAAE,SAAS,EAAE;QAClE,EAAE,EAAE,EAAE,IAAI,EAAE,M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