@salutejs/plasma-new-hope 0.186.0-canary.1542.11716355955.0 → 0.186.0-canary.1546.11723696357.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Badge/Badge.css +4 -4
- package/cjs/components/Badge/Badge.js +16 -4
- package/cjs/components/Badge/Badge.js.map +1 -1
- package/cjs/components/Badge/Badge.tokens.js +10 -5
- package/cjs/components/Badge/Badge.tokens.js.map +1 -1
- package/cjs/components/Badge/variations/_clear/base.js +1 -1
- package/cjs/components/Badge/variations/_clear/base.js.map +1 -1
- package/cjs/components/Badge/variations/_clear/base_wiboj8.css +1 -0
- package/cjs/components/Badge/variations/_size/base.js +1 -1
- package/cjs/components/Badge/variations/_size/base.js.map +1 -1
- package/{es/components/Badge/variations/_size/base_to0y5x.css → cjs/components/Badge/variations/_size/base_rn38n6.css} +1 -1
- package/cjs/components/Badge/variations/_transparent/base.js +1 -1
- package/cjs/components/Badge/variations/_transparent/base.js.map +1 -1
- package/cjs/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
- package/cjs/components/Badge/variations/_view/base.js +1 -1
- package/cjs/components/Badge/variations/_view/base.js.map +1 -1
- package/cjs/components/Badge/variations/_view/base_j3xzf3.css +1 -0
- package/cjs/index.css +4 -4
- package/cjs/index.js +0 -2
- package/cjs/index.js.map +1 -1
- package/emotion/cjs/components/Badge/Badge.js +21 -4
- package/emotion/cjs/components/Badge/Badge.tokens.js +10 -6
- package/emotion/cjs/components/Badge/variations/_clear/base.js +1 -1
- package/emotion/cjs/components/Badge/variations/_size/base.js +2 -1
- package/emotion/cjs/components/Badge/variations/_transparent/base.js +1 -1
- package/emotion/cjs/components/Badge/variations/_view/base.js +1 -1
- package/emotion/cjs/components/Combobox/ComboboxNew/index.js +1 -8
- package/emotion/cjs/components/Combobox/index.js +0 -6
- package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +14 -14
- package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.js +2 -7
- package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +4 -62
- package/emotion/cjs/examples/plasma_web/components/Badge/Badge.config.js +14 -14
- package/emotion/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
- package/emotion/es/components/Badge/Badge.js +23 -5
- package/emotion/es/components/Badge/Badge.tokens.js +9 -5
- package/emotion/es/components/Badge/variations/_clear/base.js +2 -2
- package/emotion/es/components/Badge/variations/_size/base.js +3 -2
- package/emotion/es/components/Badge/variations/_transparent/base.js +2 -2
- package/emotion/es/components/Badge/variations/_view/base.js +2 -2
- package/emotion/es/components/Combobox/ComboboxNew/index.js +1 -2
- package/emotion/es/components/Combobox/index.js +1 -1
- package/emotion/es/examples/plasma_b2c/components/Badge/Badge.config.js +14 -14
- package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
- package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.js +2 -7
- package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +4 -62
- package/emotion/es/examples/plasma_web/components/Badge/Badge.config.js +14 -14
- package/emotion/es/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
- package/es/components/Badge/Badge.css +4 -4
- package/es/components/Badge/Badge.js +19 -7
- package/es/components/Badge/Badge.js.map +1 -1
- package/es/components/Badge/Badge.tokens.js +10 -6
- package/es/components/Badge/Badge.tokens.js.map +1 -1
- package/es/components/Badge/variations/_clear/base.js +1 -1
- package/es/components/Badge/variations/_clear/base.js.map +1 -1
- package/es/components/Badge/variations/_clear/base_wiboj8.css +1 -0
- package/es/components/Badge/variations/_size/base.js +1 -1
- package/es/components/Badge/variations/_size/base.js.map +1 -1
- package/{cjs/components/Badge/variations/_size/base_to0y5x.css → es/components/Badge/variations/_size/base_rn38n6.css} +1 -1
- package/es/components/Badge/variations/_transparent/base.js +1 -1
- package/es/components/Badge/variations/_transparent/base.js.map +1 -1
- package/es/components/Badge/variations/_transparent/base_aapqhz.css +1 -0
- package/es/components/Badge/variations/_view/base.js +1 -1
- package/es/components/Badge/variations/_view/base.js.map +1 -1
- package/es/components/Badge/variations/_view/base_j3xzf3.css +1 -0
- package/es/index.css +4 -4
- package/es/index.js +0 -1
- package/es/index.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/Badge/Badge.js +21 -4
- package/styled-components/cjs/components/Badge/Badge.tokens.js +10 -6
- package/styled-components/cjs/components/Badge/variations/_clear/base.js +1 -1
- package/styled-components/cjs/components/Badge/variations/_size/base.js +2 -1
- package/styled-components/cjs/components/Badge/variations/_transparent/base.js +1 -1
- package/styled-components/cjs/components/Badge/variations/_view/base.js +1 -1
- package/styled-components/cjs/components/Combobox/ComboboxNew/index.js +1 -8
- package/styled-components/cjs/components/Combobox/index.js +0 -6
- package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
- package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.js +2 -7
- package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +4 -62
- package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.config.js +5 -5
- package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
- package/styled-components/es/components/Badge/Badge.js +23 -5
- package/styled-components/es/components/Badge/Badge.tokens.js +9 -5
- package/styled-components/es/components/Badge/variations/_clear/base.js +2 -2
- package/styled-components/es/components/Badge/variations/_size/base.js +3 -2
- package/styled-components/es/components/Badge/variations/_transparent/base.js +2 -2
- package/styled-components/es/components/Badge/variations/_view/base.js +2 -2
- package/styled-components/es/components/Combobox/ComboboxNew/index.js +1 -2
- package/styled-components/es/components/Combobox/index.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.config.js +5 -5
- package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +8 -2
- package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.js +2 -7
- package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +4 -62
- package/styled-components/es/examples/plasma_web/components/Badge/Badge.config.js +5 -5
- package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +8 -2
- package/types/components/Badge/Badge.d.ts.map +1 -1
- package/types/components/Badge/Badge.tokens.d.ts +8 -4
- package/types/components/Badge/Badge.tokens.d.ts.map +1 -1
- package/types/components/Badge/Badge.types.d.ts +18 -5
- package/types/components/Badge/Badge.types.d.ts.map +1 -1
- package/types/components/Badge/variations/_clear/base.d.ts.map +1 -1
- package/types/components/Badge/variations/_size/base.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +0 -21
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/index.d.ts +0 -1
- package/types/components/Combobox/ComboboxNew/index.d.ts.map +1 -1
- package/types/components/Combobox/index.d.ts +1 -1
- package/types/components/Combobox/index.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Badge/Badge.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Badge/Badge.d.ts +58 -4
- package/types/examples/plasma_b2c/components/Badge/Badge.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +2 -3
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Badge/Badge.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Badge/Badge.d.ts +58 -4
- package/types/examples/plasma_web/components/Badge/Badge.d.ts.map +1 -1
- package/cjs/components/Badge/variations/_clear/base_oopyb7.css +0 -1
- package/cjs/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
- package/cjs/components/Badge/variations/_view/base_qlxank.css +0 -1
- package/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js +0 -22
- package/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js.map +0 -1
- package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js +0 -21
- package/emotion/cjs/components/Combobox/ComboboxNew/utils/getForm.js +0 -90
- package/emotion/cjs/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -53
- package/emotion/es/components/Combobox/ComboboxNew/Combobox.boundler.js +0 -14
- package/emotion/es/components/Combobox/ComboboxNew/utils/getForm.js +0 -83
- package/emotion/es/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -47
- package/es/components/Badge/variations/_clear/base_oopyb7.css +0 -1
- package/es/components/Badge/variations/_transparent/base_1l6036y.css +0 -1
- package/es/components/Badge/variations/_view/base_qlxank.css +0 -1
- package/es/components/Combobox/ComboboxNew/Combobox.boundler.js +0 -18
- package/es/components/Combobox/ComboboxNew/Combobox.boundler.js.map +0 -1
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.boundler.js +0 -21
- package/styled-components/cjs/components/Combobox/ComboboxNew/utils/getForm.js +0 -90
- package/styled-components/cjs/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -53
- package/styled-components/es/components/Combobox/ComboboxNew/Combobox.boundler.js +0 -14
- package/styled-components/es/components/Combobox/ComboboxNew/utils/getForm.js +0 -83
- package/styled-components/es/components/Combobox/ComboboxNew/utils/syntheticEvent.js +0 -47
- package/types/components/Combobox/ComboboxNew/Combobox.boundler.d.ts +0 -4
- package/types/components/Combobox/ComboboxNew/Combobox.boundler.d.ts.map +0 -1
- package/types/components/Combobox/ComboboxNew/utils/getForm.d.ts +0 -4
- package/types/components/Combobox/ComboboxNew/utils/getForm.d.ts.map +0 -1
- package/types/components/Combobox/ComboboxNew/utils/syntheticEvent.d.ts +0 -4
- package/types/components/Combobox/ComboboxNew/utils/syntheticEvent.d.ts.map +0 -1
@@ -2,6 +2,11 @@ export declare const classes: {
|
|
2
2
|
badgePilled: string;
|
3
3
|
badgeTransparent: string;
|
4
4
|
badgeClear: string;
|
5
|
+
iconOnly: string;
|
6
|
+
};
|
7
|
+
export declare const privateTokens: {
|
8
|
+
customBackground: string;
|
9
|
+
customColor: string;
|
5
10
|
};
|
6
11
|
export declare const tokens: {
|
7
12
|
background: string;
|
@@ -9,13 +14,12 @@ export declare const tokens: {
|
|
9
14
|
backgroundTransparent: string;
|
10
15
|
colorTransparent: string;
|
11
16
|
colorClear: string;
|
17
|
+
backgroundClear: string;
|
12
18
|
borderRadius: string;
|
13
19
|
pilledBorderRadius: string;
|
14
20
|
height: string;
|
15
|
-
|
16
|
-
|
17
|
-
paddingBottom: string;
|
18
|
-
paddingLeft: string;
|
21
|
+
padding: string;
|
22
|
+
paddingIconOnly: string;
|
19
23
|
fontFamily: string;
|
20
24
|
fontSize: string;
|
21
25
|
fontStyle: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Badge.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO
|
1
|
+
{"version":3,"file":"Badge.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;CAKnB,CAAC;AAEF,eAAO,MAAM,aAAa;;;CAGzB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;CAyBlB,CAAC"}
|
@@ -45,19 +45,32 @@ declare type ClearViewProps = {
|
|
45
45
|
*/
|
46
46
|
clear?: false;
|
47
47
|
};
|
48
|
+
declare type IconContentProps = {
|
49
|
+
/**
|
50
|
+
* Слот для контента слева, например `Icon`
|
51
|
+
*/
|
52
|
+
contentLeft?: ReactNode;
|
53
|
+
/**
|
54
|
+
* Слот для контента справа, например `Icon`
|
55
|
+
*/
|
56
|
+
contentRight?: never;
|
57
|
+
} | {
|
58
|
+
contentLeft?: never;
|
59
|
+
contentRight?: ReactNode;
|
60
|
+
};
|
48
61
|
declare type CustomBadgeProps = {
|
49
62
|
/**
|
50
63
|
* Текстовая надпись
|
51
64
|
*/
|
52
65
|
text?: string;
|
53
66
|
/**
|
54
|
-
*
|
67
|
+
* Пользовательский цвет текста и иконок
|
55
68
|
*/
|
56
|
-
|
69
|
+
customColor?: string;
|
57
70
|
/**
|
58
|
-
*
|
71
|
+
* Пользовательский цвет фона
|
59
72
|
*/
|
60
|
-
|
73
|
+
customBackgroundColor?: string;
|
61
74
|
/**
|
62
75
|
* Размер Badge
|
63
76
|
* @default
|
@@ -70,7 +83,7 @@ declare type CustomBadgeProps = {
|
|
70
83
|
* default
|
71
84
|
*/
|
72
85
|
view?: string;
|
73
|
-
} & PropsWithChildren;
|
86
|
+
} & IconContentProps & PropsWithChildren;
|
74
87
|
export declare type BadgeProps = HTMLAttributes<HTMLDivElement> & CustomBadgeProps & ClearViewProps;
|
75
88
|
export declare type BadgeRootProps = HTMLAttributes<HTMLDivElement> & CustomBadgeProps & {
|
76
89
|
pilled?: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Badge.types.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1E,aAAK,cAAc,GACb;IACI;;;;OAIG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC;CACvB,GACD;IACI;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB,GACD;IACI;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AAER,aAAK,gBAAgB,GAAG;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,
|
1
|
+
{"version":3,"file":"Badge.types.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1E,aAAK,cAAc,GACb;IACI;;;;OAIG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC;CACvB,GACD;IACI;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB,GACD;IACI;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AAER,aAAK,gBAAgB,GACf;IACI;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC;CACxB,GACD;IACI,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,YAAY,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AAER,aAAK,gBAAgB,GAAG;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,gBAAgB,GAChB,iBAAiB,CAAC;AAEtB,oBAAY,UAAU,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,gBAAgB,GAAG,cAAc,CAAC;AAC5F,oBAAY,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC,GACvD,gBAAgB,GAAG;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Badge/variations/_clear/base.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Badge/variations/_clear/base.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI,0CAKhB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Badge/variations/_size/base.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Badge/variations/_size/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CAqBhB,CAAC"}
|
@@ -177,26 +177,5 @@ export declare type ItemContext = {
|
|
177
177
|
valueToItemMap: ValueToItemMapType;
|
178
178
|
treeId: string;
|
179
179
|
};
|
180
|
-
declare type ComboboxFormBaseProps = {
|
181
|
-
onChange?: (event: React.ChangeEvent<HTMLSelectElement> | null) => void;
|
182
|
-
defaultValue?: string;
|
183
|
-
multiple?: false;
|
184
|
-
} | {
|
185
|
-
onChange?: (event: React.ChangeEvent<HTMLSelectElement> | null) => void;
|
186
|
-
defaultValue?: string[];
|
187
|
-
multiple?: true;
|
188
|
-
};
|
189
|
-
export declare type ComboboxFormProps = Omit<ComboboxProps, 'onChange' | 'defaultValue' | 'multiple'> & ComboboxFormBaseProps;
|
190
|
-
export declare type ComboboxBoundlerProps = {
|
191
|
-
base: React.FC<ComboboxProps>;
|
192
|
-
baseForm: React.FC<ComboboxFormPropsAll>;
|
193
|
-
};
|
194
|
-
export declare type ComboboxFormPropsAll = ComboboxFormProps & {
|
195
|
-
formType: true;
|
196
|
-
};
|
197
|
-
export declare type ComboboxPropsAll = ComboboxProps & {
|
198
|
-
formType: false;
|
199
|
-
};
|
200
|
-
export declare type ComboboxBoundlerPropsComponent = ComboboxFormPropsAll | ComboboxPropsAll;
|
201
180
|
export {};
|
202
181
|
//# sourceMappingURL=Combobox.types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Combobox.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAErF,aAAK,SAAS,GACR,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,CAAC;AAEjB,aAAK,aAAa,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,IAC9C;IACI,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CA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CAAC,IAAI,EAAE,qBAAqB,EAAE,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACzF,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACxC,cAAc,EAAE,kBAAkB,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
@@ -2,5 +2,4 @@ export { comboboxConfig, comboboxRoot } from './Combobox';
|
|
2
2
|
export { tokens as comboboxTokens } from './Combobox.tokens';
|
3
3
|
export type { ComboboxProps } from './Combobox.types';
|
4
4
|
export type { ItemOption } from './ui/Inner/ui/Item/Item.types';
|
5
|
-
export { boundCombobox } from './Combobox.boundler';
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE7D,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,YAAY,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/ComboboxNew/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAE7D,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,YAAY,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export { comboboxRoot as comboboxOldRoot, comboboxConfig as comboboxOldConfig, comboboxDividerRoot, comboboxDividerConfig, comboboxFooterRoot, comboboxFooterConfig, comboboxGroupRoot, comboboxGroupConfig, comboboxHeaderRoot, comboboxHeaderConfig, comboboxItemRoot, comboboxItemConfig, ComboboxTarget, comboboxClasses as comboboxOldClasses, comboboxTokens as comboboxOldTokens, } from './ComboboxOld';
|
2
2
|
export type { ComboboxProps as ComboboxOldProps } from './ComboboxOld';
|
3
|
-
export { comboboxTokens as comboboxNewTokens, comboboxRoot as comboboxNewRoot, comboboxConfig as comboboxNewConfig,
|
3
|
+
export { comboboxTokens as comboboxNewTokens, comboboxRoot as comboboxNewRoot, comboboxConfig as comboboxNewConfig, } from './ComboboxNew';
|
4
4
|
export type { ItemOption, ComboboxProps } from './ComboboxNew';
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,IAAI,eAAe,EAC/B,cAAc,IAAI,iBAAiB,EACnC,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,eAAe,IAAI,kBAAkB,EACrC,cAAc,IAAI,iBAAiB,GACtC,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,EACH,cAAc,IAAI,iBAAiB,EACnC,YAAY,IAAI,eAAe,EAC/B,cAAc,IAAI,iBAAiB,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,IAAI,eAAe,EAC/B,cAAc,IAAI,iBAAiB,EACnC,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,eAAe,IAAI,kBAAkB,EACrC,cAAc,IAAI,iBAAiB,GACtC,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,EACH,cAAc,IAAI,iBAAiB,EACnC,YAAY,IAAI,eAAe,EAC/B,cAAc,IAAI,iBAAiB,GACtC,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Badge.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Badge/Badge.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"Badge.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Badge/Badge.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmKlB,CAAC"}
|
@@ -26,10 +26,13 @@ export declare const Badge: import("react").FunctionComponent<import("../../../.
|
|
26
26
|
};
|
27
27
|
}> & ((import("react").HTMLAttributes<HTMLDivElement> & {
|
28
28
|
text?: string | undefined;
|
29
|
-
|
30
|
-
|
29
|
+
customColor?: string | undefined;
|
30
|
+
customBackgroundColor?: string | undefined;
|
31
31
|
size?: string | undefined;
|
32
32
|
view?: string | undefined;
|
33
|
+
} & {
|
34
|
+
contentLeft?: import("react").ReactNode;
|
35
|
+
contentRight?: undefined;
|
33
36
|
} & {
|
34
37
|
children?: import("react").ReactNode;
|
35
38
|
} & {
|
@@ -38,10 +41,13 @@ export declare const Badge: import("react").FunctionComponent<import("../../../.
|
|
38
41
|
transparent?: false | undefined;
|
39
42
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
40
43
|
text?: string | undefined;
|
41
|
-
|
42
|
-
|
44
|
+
customColor?: string | undefined;
|
45
|
+
customBackgroundColor?: string | undefined;
|
43
46
|
size?: string | undefined;
|
44
47
|
view?: string | undefined;
|
48
|
+
} & {
|
49
|
+
contentLeft?: import("react").ReactNode;
|
50
|
+
contentRight?: undefined;
|
45
51
|
} & {
|
46
52
|
children?: import("react").ReactNode;
|
47
53
|
} & {
|
@@ -50,10 +56,58 @@ export declare const Badge: import("react").FunctionComponent<import("../../../.
|
|
50
56
|
clear?: false | undefined;
|
51
57
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
52
58
|
text?: string | undefined;
|
59
|
+
customColor?: string | undefined;
|
60
|
+
customBackgroundColor?: string | undefined;
|
61
|
+
size?: string | undefined;
|
62
|
+
view?: string | undefined;
|
63
|
+
} & {
|
53
64
|
contentLeft?: import("react").ReactNode;
|
65
|
+
contentRight?: undefined;
|
66
|
+
} & {
|
67
|
+
children?: import("react").ReactNode;
|
68
|
+
} & {
|
69
|
+
pilled?: boolean | undefined;
|
70
|
+
transparent?: true | undefined;
|
71
|
+
clear?: false | undefined;
|
72
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
73
|
+
text?: string | undefined;
|
74
|
+
customColor?: string | undefined;
|
75
|
+
customBackgroundColor?: string | undefined;
|
76
|
+
size?: string | undefined;
|
77
|
+
view?: string | undefined;
|
78
|
+
} & {
|
79
|
+
contentLeft?: undefined;
|
54
80
|
contentRight?: import("react").ReactNode;
|
81
|
+
} & {
|
82
|
+
children?: import("react").ReactNode;
|
83
|
+
} & {
|
84
|
+
clear?: true | undefined;
|
85
|
+
pilled?: false | undefined;
|
86
|
+
transparent?: false | undefined;
|
87
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
88
|
+
text?: string | undefined;
|
89
|
+
customColor?: string | undefined;
|
90
|
+
customBackgroundColor?: string | undefined;
|
91
|
+
size?: string | undefined;
|
92
|
+
view?: string | undefined;
|
93
|
+
} & {
|
94
|
+
contentLeft?: undefined;
|
95
|
+
contentRight?: import("react").ReactNode;
|
96
|
+
} & {
|
97
|
+
children?: import("react").ReactNode;
|
98
|
+
} & {
|
99
|
+
pilled?: true | undefined;
|
100
|
+
transparent?: boolean | undefined;
|
101
|
+
clear?: false | undefined;
|
102
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
103
|
+
text?: string | undefined;
|
104
|
+
customColor?: string | undefined;
|
105
|
+
customBackgroundColor?: string | undefined;
|
55
106
|
size?: string | undefined;
|
56
107
|
view?: string | undefined;
|
108
|
+
} & {
|
109
|
+
contentLeft?: undefined;
|
110
|
+
contentRight?: import("react").ReactNode;
|
57
111
|
} & {
|
58
112
|
children?: import("react").ReactNode;
|
59
113
|
} & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Badge/Badge.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,KAAK
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Badge/Badge.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAA0B,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { ForwardedRef, ComponentProps, ReactElement
|
1
|
+
import type { ForwardedRef, ComponentProps, ReactElement } from 'react';
|
2
2
|
import type { ComboboxProps, ItemOption } from '../../../../components/Combobox';
|
3
3
|
import { config } from './Combobox.config';
|
4
4
|
declare const ComboboxComponent: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
|
@@ -917,6 +917,5 @@ declare const Combobox: <T extends ItemOption>(props: Omit<ComboboxProps<T>, "vi
|
|
917
917
|
} & Omit<import("react").ButtonHTMLAttributes<HTMLInputElement>, "onChange" | "value"> & import("react").RefAttributes<HTMLInputElement>)), "view" | "disabled" | "readOnly" | "size" | "labelPlacement"> & {
|
918
918
|
ref?: ForwardedRef<HTMLInputElement> | undefined;
|
919
919
|
}) => ReactElement | null;
|
920
|
-
|
921
|
-
export { Combobox, ComboboxWithForm };
|
920
|
+
export { Combobox };
|
922
921
|
//# sourceMappingURL=Combobox.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Combobox/Combobox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,
|
1
|
+
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Combobox/Combobox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAIxE,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAEjF,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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1 @@
|
|
1
|
-
{"version":3,"file":"Badge.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Badge/Badge.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"Badge.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Badge/Badge.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmKlB,CAAC"}
|
@@ -26,10 +26,13 @@ export declare const Badge: import("react").FunctionComponent<import("../../../.
|
|
26
26
|
};
|
27
27
|
}> & ((import("react").HTMLAttributes<HTMLDivElement> & {
|
28
28
|
text?: string | undefined;
|
29
|
-
|
30
|
-
|
29
|
+
customColor?: string | undefined;
|
30
|
+
customBackgroundColor?: string | undefined;
|
31
31
|
size?: string | undefined;
|
32
32
|
view?: string | undefined;
|
33
|
+
} & {
|
34
|
+
contentLeft?: import("react").ReactNode;
|
35
|
+
contentRight?: undefined;
|
33
36
|
} & {
|
34
37
|
children?: import("react").ReactNode;
|
35
38
|
} & {
|
@@ -38,10 +41,13 @@ export declare const Badge: import("react").FunctionComponent<import("../../../.
|
|
38
41
|
transparent?: false | undefined;
|
39
42
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
40
43
|
text?: string | undefined;
|
41
|
-
|
42
|
-
|
44
|
+
customColor?: string | undefined;
|
45
|
+
customBackgroundColor?: string | undefined;
|
43
46
|
size?: string | undefined;
|
44
47
|
view?: string | undefined;
|
48
|
+
} & {
|
49
|
+
contentLeft?: import("react").ReactNode;
|
50
|
+
contentRight?: undefined;
|
45
51
|
} & {
|
46
52
|
children?: import("react").ReactNode;
|
47
53
|
} & {
|
@@ -50,10 +56,58 @@ export declare const Badge: import("react").FunctionComponent<import("../../../.
|
|
50
56
|
clear?: false | undefined;
|
51
57
|
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
52
58
|
text?: string | undefined;
|
59
|
+
customColor?: string | undefined;
|
60
|
+
customBackgroundColor?: string | undefined;
|
61
|
+
size?: string | undefined;
|
62
|
+
view?: string | undefined;
|
63
|
+
} & {
|
53
64
|
contentLeft?: import("react").ReactNode;
|
65
|
+
contentRight?: undefined;
|
66
|
+
} & {
|
67
|
+
children?: import("react").ReactNode;
|
68
|
+
} & {
|
69
|
+
pilled?: boolean | undefined;
|
70
|
+
transparent?: true | undefined;
|
71
|
+
clear?: false | undefined;
|
72
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
73
|
+
text?: string | undefined;
|
74
|
+
customColor?: string | undefined;
|
75
|
+
customBackgroundColor?: string | undefined;
|
76
|
+
size?: string | undefined;
|
77
|
+
view?: string | undefined;
|
78
|
+
} & {
|
79
|
+
contentLeft?: undefined;
|
54
80
|
contentRight?: import("react").ReactNode;
|
81
|
+
} & {
|
82
|
+
children?: import("react").ReactNode;
|
83
|
+
} & {
|
84
|
+
clear?: true | undefined;
|
85
|
+
pilled?: false | undefined;
|
86
|
+
transparent?: false | undefined;
|
87
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
88
|
+
text?: string | undefined;
|
89
|
+
customColor?: string | undefined;
|
90
|
+
customBackgroundColor?: string | undefined;
|
91
|
+
size?: string | undefined;
|
92
|
+
view?: string | undefined;
|
93
|
+
} & {
|
94
|
+
contentLeft?: undefined;
|
95
|
+
contentRight?: import("react").ReactNode;
|
96
|
+
} & {
|
97
|
+
children?: import("react").ReactNode;
|
98
|
+
} & {
|
99
|
+
pilled?: true | undefined;
|
100
|
+
transparent?: boolean | undefined;
|
101
|
+
clear?: false | undefined;
|
102
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (import("react").HTMLAttributes<HTMLDivElement> & {
|
103
|
+
text?: string | undefined;
|
104
|
+
customColor?: string | undefined;
|
105
|
+
customBackgroundColor?: string | undefined;
|
55
106
|
size?: string | undefined;
|
56
107
|
view?: string | undefined;
|
108
|
+
} & {
|
109
|
+
contentLeft?: undefined;
|
110
|
+
contentRight?: import("react").ReactNode;
|
57
111
|
} & {
|
58
112
|
children?: import("react").ReactNode;
|
59
113
|
} & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Badge/Badge.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,KAAK
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Badge/Badge.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAA0B,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
.b1e1wuvi.badge-clear{color:var(--plasma-badge-color-clear);background-color:transparent;padding:0;}
|
@@ -1 +0,0 @@
|
|
1
|
-
.binquhc.badge-transparent{color:var(--plasma-badge-color-transparent);background-color:var(--plasma-badge-background-transparent);}
|
@@ -1 +0,0 @@
|
|
1
|
-
.b5zny0e{color:var(--plasma-badge-color);background-color:var(--plasma-badge-background);}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
var React = require('react');
|
6
|
-
|
7
|
-
var boundCombobox = function boundCombobox(_ref) {
|
8
|
-
var ComboboxBase = _ref.base,
|
9
|
-
ComboboxBaseForm = _ref.baseForm;
|
10
|
-
return function (rest) {
|
11
|
-
if (rest.formType) {
|
12
|
-
return /*#__PURE__*/React.createElement(ComboboxBaseForm, rest);
|
13
|
-
}
|
14
|
-
if (!rest.formType) {
|
15
|
-
return /*#__PURE__*/React.createElement(ComboboxBase, rest);
|
16
|
-
}
|
17
|
-
return null;
|
18
|
-
};
|
19
|
-
};
|
20
|
-
|
21
|
-
exports.boundCombobox = boundCombobox;
|
22
|
-
//# sourceMappingURL=Combobox.boundler.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Combobox.boundler.js","sources":["../../../../src/components/Combobox/ComboboxNew/Combobox.boundler.tsx"],"sourcesContent":["import React from 'react';\n\nimport { ComboboxBoundlerProps, ComboboxBoundlerPropsComponent } from './Combobox.types';\n\nexport const boundCombobox: (args: ComboboxBoundlerProps) => React.FC<ComboboxBoundlerPropsComponent> = ({\n base: ComboboxBase,\n baseForm: ComboboxBaseForm,\n}) => (rest) => {\n if (rest.formType) {\n return <ComboboxBaseForm {...rest} />;\n }\n\n if (!rest.formType) {\n return <ComboboxBase {...rest} />;\n }\n\n return null;\n};\n"],"names":["boundCombobox","_ref","ComboboxBase","base","ComboboxBaseForm","baseForm","rest","formType","React","createElement"],"mappings":";;;;;;IAIaA,aAAwF,GAAG,SAA3FA,aAAwFA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAC3FC,YAAY,GAAAD,IAAA,CAAlBE,IAAI;IACMC,gBAAgB,GAAAH,IAAA,CAA1BI,QAAQ,CAAA;EAAA,OACN,UAACC,IAAI,EAAK;IACZ,IAAIA,IAAI,CAACC,QAAQ,EAAE;AACf,MAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACL,gBAAgB,EAAKE,IAAO,CAAC,CAAA;AACzC,KAAA;AAEA,IAAA,IAAI,CAACA,IAAI,CAACC,QAAQ,EAAE;AAChB,MAAA,oBAAOC,KAAA,CAAAC,aAAA,CAACP,YAAY,EAAKI,IAAO,CAAC,CAAA;AACrC,KAAA;AAEA,IAAA,OAAO,IAAI,CAAA;GACd,CAAA;AAAA;;;;"}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.boundCombobox = void 0;
|
7
|
-
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
9
|
-
var boundCombobox = exports.boundCombobox = function boundCombobox(_ref) {
|
10
|
-
var ComboboxBase = _ref.base,
|
11
|
-
ComboboxBaseForm = _ref.baseForm;
|
12
|
-
return function (rest) {
|
13
|
-
if (rest.formType) {
|
14
|
-
return /*#__PURE__*/_react["default"].createElement(ComboboxBaseForm, rest);
|
15
|
-
}
|
16
|
-
if (!rest.formType) {
|
17
|
-
return /*#__PURE__*/_react["default"].createElement(ComboboxBase, rest);
|
18
|
-
}
|
19
|
-
return null;
|
20
|
-
};
|
21
|
-
};
|
@@ -1,90 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
5
|
-
value: true
|
6
|
-
});
|
7
|
-
exports.getFormComponentGenerator = void 0;
|
8
|
-
var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
|
9
|
-
var _syntheticEvent = /*#__PURE__*/require("./syntheticEvent");
|
10
|
-
var _excluded = ["onChange", "component"],
|
11
|
-
_excluded2 = ["onChange", "component"]; // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
12
|
-
// @ts-nocheck
|
13
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
15
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
16
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
17
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
18
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
19
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
20
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
21
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
22
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
23
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
24
|
-
var SingleForm = function SingleForm(args) {
|
25
|
-
var onChange = args.onChange,
|
26
|
-
Component = args.component,
|
27
|
-
rest = _objectWithoutProperties(args, _excluded);
|
28
|
-
var _useState = (0, _react.useState)(),
|
29
|
-
_useState2 = _slicedToArray(_useState, 2),
|
30
|
-
value = _useState2[0],
|
31
|
-
setValue = _useState2[1];
|
32
|
-
var selectRef = (0, _react.useRef)(null);
|
33
|
-
var handleChange = function handleChange(value) {
|
34
|
-
setValue(value);
|
35
|
-
};
|
36
|
-
(0, _react.useEffect)(function () {
|
37
|
-
var event = (0, _syntheticEvent.createEvent)(selectRef);
|
38
|
-
onChange && onChange(event);
|
39
|
-
}, [value]);
|
40
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("select", {
|
41
|
-
ref: selectRef,
|
42
|
-
value: value,
|
43
|
-
hidden: true
|
44
|
-
}, /*#__PURE__*/_react["default"].createElement("option", {
|
45
|
-
value: value
|
46
|
-
}, value)), /*#__PURE__*/_react["default"].createElement(Component, _extends({}, rest, {
|
47
|
-
value: value,
|
48
|
-
onChange: handleChange
|
49
|
-
})));
|
50
|
-
};
|
51
|
-
var MultipleForm = function MultipleForm(args) {
|
52
|
-
var onChange = args.onChange,
|
53
|
-
Component = args.component,
|
54
|
-
rest = _objectWithoutProperties(args, _excluded2);
|
55
|
-
var _useState3 = (0, _react.useState)([]),
|
56
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
57
|
-
values = _useState4[0],
|
58
|
-
setValues = _useState4[1];
|
59
|
-
var selectRef = (0, _react.useRef)(null);
|
60
|
-
var handleChange = function handleChange(value) {
|
61
|
-
setValues(value);
|
62
|
-
};
|
63
|
-
(0, _react.useEffect)(function () {
|
64
|
-
var event = (0, _syntheticEvent.createEvent)(selectRef);
|
65
|
-
onChange && onChange(event);
|
66
|
-
}, [values]);
|
67
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("select", {
|
68
|
-
ref: selectRef,
|
69
|
-
value: values,
|
70
|
-
multiple: true,
|
71
|
-
hidden: true
|
72
|
-
}, values.map(function (value) {
|
73
|
-
return /*#__PURE__*/_react["default"].createElement("option", {
|
74
|
-
key: value,
|
75
|
-
value: value
|
76
|
-
}, value);
|
77
|
-
})), /*#__PURE__*/_react["default"].createElement(Component, _extends({}, rest, {
|
78
|
-
value: values,
|
79
|
-
onChange: handleChange
|
80
|
-
})));
|
81
|
-
};
|
82
|
-
var getFormComponentGenerator = exports.getFormComponentGenerator = function getFormComponentGenerator(Component) {
|
83
|
-
return function (args) {
|
84
|
-
return args.multiple ? /*#__PURE__*/_react["default"].createElement(MultipleForm, _extends({}, args, {
|
85
|
-
component: Component
|
86
|
-
})) : /*#__PURE__*/_react["default"].createElement(SingleForm, _extends({}, args, {
|
87
|
-
component: Component
|
88
|
-
}));
|
89
|
-
};
|
90
|
-
};
|
@@ -1,53 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.createSyntheticEvent = exports.createEvent = void 0;
|
7
|
-
var createEvent = exports.createEvent = function createEvent(ref) {
|
8
|
-
if (ref.current) {
|
9
|
-
var event = new Event('change', {
|
10
|
-
bubbles: true
|
11
|
-
});
|
12
|
-
Object.defineProperty(event, 'target', {
|
13
|
-
writable: false,
|
14
|
-
value: ref.current
|
15
|
-
});
|
16
|
-
var syntheticEvent = createSyntheticEvent(event);
|
17
|
-
return syntheticEvent;
|
18
|
-
}
|
19
|
-
return null;
|
20
|
-
};
|
21
|
-
var createSyntheticEvent = exports.createSyntheticEvent = function createSyntheticEvent(event) {
|
22
|
-
var _isDefaultPrevented = false;
|
23
|
-
var _isPropagationStopped = false;
|
24
|
-
var preventDefault = function preventDefault() {
|
25
|
-
_isDefaultPrevented = true;
|
26
|
-
event.preventDefault();
|
27
|
-
};
|
28
|
-
var stopPropagation = function stopPropagation() {
|
29
|
-
_isPropagationStopped = true;
|
30
|
-
event.stopPropagation();
|
31
|
-
};
|
32
|
-
return {
|
33
|
-
nativeEvent: event,
|
34
|
-
currentTarget: event.currentTarget,
|
35
|
-
target: event.target,
|
36
|
-
bubbles: event.bubbles,
|
37
|
-
cancelable: event.cancelable,
|
38
|
-
defaultPrevented: event.defaultPrevented,
|
39
|
-
eventPhase: event.eventPhase,
|
40
|
-
isTrusted: event.isTrusted,
|
41
|
-
preventDefault: preventDefault,
|
42
|
-
isDefaultPrevented: function isDefaultPrevented() {
|
43
|
-
return _isDefaultPrevented;
|
44
|
-
},
|
45
|
-
stopPropagation: stopPropagation,
|
46
|
-
isPropagationStopped: function isPropagationStopped() {
|
47
|
-
return _isPropagationStopped;
|
48
|
-
},
|
49
|
-
persist: function persist() {},
|
50
|
-
timeStamp: event.timeStamp,
|
51
|
-
type: event.type
|
52
|
-
};
|
53
|
-
};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
export var boundCombobox = function boundCombobox(_ref) {
|
3
|
-
var ComboboxBase = _ref.base,
|
4
|
-
ComboboxBaseForm = _ref.baseForm;
|
5
|
-
return function (rest) {
|
6
|
-
if (rest.formType) {
|
7
|
-
return /*#__PURE__*/React.createElement(ComboboxBaseForm, rest);
|
8
|
-
}
|
9
|
-
if (!rest.formType) {
|
10
|
-
return /*#__PURE__*/React.createElement(ComboboxBase, rest);
|
11
|
-
}
|
12
|
-
return null;
|
13
|
-
};
|
14
|
-
};
|