@salutejs/plasma-new-hope 0.186.0-canary.1541.11711445984.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/components/TextField/TextField.js +0 -11
- package/cjs/components/TextField/TextField.js.map +1 -1
- package/cjs/index.css +4 -4
- 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/TextField/TextField.js +1 -12
- 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/TextField/TextField.stories.tsx +0 -1
- 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/TextField/TextField.js +1 -12
- 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/TextField/TextField.stories.tsx +0 -1
- 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/components/TextField/TextField.js +0 -11
- package/es/components/TextField/TextField.js.map +1 -1
- package/es/index.css +4 -4
- 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/TextField/TextField.js +0 -11
- 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/TextField/TextField.stories.tsx +0 -1
- 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/TextField/TextField.js +0 -11
- 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/TextField/TextField.stories.tsx +0 -1
- 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/TextField/TextField.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_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/utils/syntheticEvent.js +0 -56
- package/cjs/utils/syntheticEvent.js.map +0 -1
- package/emotion/cjs/utils/syntheticEvent.js +0 -54
- package/emotion/es/utils/syntheticEvent.js +0 -48
- 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/utils/syntheticEvent.js +0 -51
- package/es/utils/syntheticEvent.js.map +0 -1
- package/styled-components/cjs/utils/syntheticEvent.js +0 -54
- package/styled-components/es/utils/syntheticEvent.js +0 -48
- package/types/utils/syntheticEvent.d.ts +0 -4
- package/types/utils/syntheticEvent.d.ts.map +0 -1
@@ -16,10 +16,10 @@ export var config = {
|
|
16
16
|
light: /*#__PURE__*/css(["", ":var(--on-light-text-primary);", ":var(--on-dark-surface-solid-default);", ":var(--on-dark-text-primary);", ":var(--on-dark-surface-transparent-card);", ":var(--on-dark-text-primary);"], badgeTokens.color, badgeTokens.background, badgeTokens.colorTransparent, badgeTokens.backgroundTransparent, badgeTokens.colorClear)
|
17
17
|
},
|
18
18
|
size: {
|
19
|
-
l: /*#__PURE__*/css(["", ":0.5rem;", ":1.75rem;", ":0.6875rem;", ":0.
|
20
|
-
m: /*#__PURE__*/css(["", ":0.375rem;", ":1.5rem;", ":0.5625rem;", ":0.
|
21
|
-
s: /*#__PURE__*/css(["", ":0.375rem;", ":1.25rem;", ":0.4375rem;", ":0.
|
22
|
-
xs: /*#__PURE__*/css(["", ":0.25rem;", ":1rem;", ":0.25rem;", ":0.
|
19
|
+
l: /*#__PURE__*/css(["", ":0.5rem;", ":1.75rem;", ":0 0.6875rem;", ":0 0.375rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":-0.0625rem;", ":0.25rem;", ":0.25rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
|
20
|
+
m: /*#__PURE__*/css(["", ":0.375rem;", ":1.5rem;", ":0 0.5625rem;", ":0 0.375rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":-0.0625rem;", ":0.1875rem;", ":0.1875rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
|
21
|
+
s: /*#__PURE__*/css(["", ":0.375rem;", ":1.25rem;", ":0 0.4375rem;", ":0 0.25rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight),
|
22
|
+
xs: /*#__PURE__*/css(["", ":0.25rem;", ":1rem;", ":0 0.25rem;", ":0 0.188rem;", ":var(--plasma-typo-body-xxs-font-family);", ":var(--plasma-typo-body-xxs-font-size);", ":var(--plasma-typo-body-xxs-font-style);", ":var(--plasma-typo-body-xxs-font-weight);", ":var(--plasma-typo-body-xxs-letter-spacing);", ":var(--plasma-typo-body-xxs-line-height);", ":-0.0625rem;", ":0.125rem;", ":0.125rem;", ":-0.0625rem;"], badgeTokens.borderRadius, badgeTokens.height, badgeTokens.padding, badgeTokens.paddingIconOnly, badgeTokens.fontFamily, badgeTokens.fontSize, badgeTokens.fontStyle, badgeTokens.fontWeight, badgeTokens.letterSpacing, badgeTokens.lineHeight, badgeTokens.leftContentMarginLeft, badgeTokens.leftContentMarginRight, badgeTokens.rightContentMarginLeft, badgeTokens.rightContentMarginRight)
|
23
23
|
},
|
24
24
|
pilled: {
|
25
25
|
"true": /*#__PURE__*/css(["", ":1.25rem;"], badgeTokens.pilledBorderRadius)
|
@@ -28,7 +28,7 @@ export var config = {
|
|
28
28
|
"true": /*#__PURE__*/css([""])
|
29
29
|
},
|
30
30
|
clear: {
|
31
|
-
"true": /*#__PURE__*/css([""])
|
31
|
+
"true": /*#__PURE__*/css(["", ":var(--surface-clear);"], badgeTokens.backgroundClear)
|
32
32
|
}
|
33
33
|
}
|
34
34
|
};
|
@@ -31,6 +31,10 @@ const meta: Meta<typeof Badge> = {
|
|
31
31
|
control: { type: 'boolean' },
|
32
32
|
if: { arg: 'clear', truthy: false },
|
33
33
|
},
|
34
|
+
text: {
|
35
|
+
control: { type: 'text' },
|
36
|
+
if: { arg: 'enableText', truthy: true },
|
37
|
+
},
|
34
38
|
...disableProps(['contentLeft', 'contentRight']),
|
35
39
|
},
|
36
40
|
};
|
@@ -40,6 +44,7 @@ export default meta;
|
|
40
44
|
type StoryProps = ComponentProps<typeof Badge> & {
|
41
45
|
enableContentLeft: boolean;
|
42
46
|
enableContentRight: boolean;
|
47
|
+
enableText: boolean;
|
43
48
|
};
|
44
49
|
type Story = StoryObj<StoryProps>;
|
45
50
|
|
@@ -60,13 +65,14 @@ export const Default: Story = {
|
|
60
65
|
},
|
61
66
|
enableContentRight: {
|
62
67
|
control: { type: 'boolean' },
|
63
|
-
if: { arg: '
|
68
|
+
if: { arg: 'enableText', truthy: true },
|
64
69
|
},
|
65
70
|
},
|
66
71
|
args: {
|
67
|
-
text: 'Hello',
|
68
72
|
view: 'default',
|
69
73
|
size: 'm',
|
74
|
+
enableText: true,
|
75
|
+
text: 'Hello',
|
70
76
|
enableContentLeft: false,
|
71
77
|
enableContentRight: false,
|
72
78
|
clear: false,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAQ/C,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAIhE,eAAO,MAAM,SAAS,SAAU,UAAU,cAAc,EAAE,cAAc,CAAC,sFAiEnE,CAAC;AAEP,eAAO,MAAM,WAAW;;;mBAnEQ,UAAU,cAAc,EAAE,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;CAgGxE,CAAC"}
|
@@ -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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAKvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;
|
1
|
+
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAKvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI/C,OAAO,KAAK,EAAuC,cAAc,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAoCjH,eAAO,MAAM,IAAI,0CAGhB,CAAC;AAIF,eAAO,MAAM,aAAa,SAAU,UAAU,cAAc,EAAE,kBAAkB,CAAC,4FAmY5E,CAAC;AAEN,eAAO,MAAM,eAAe;;;mBArYQ,UAAU,cAAc,EAAE,kBAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ahF,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 +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,56 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
var createEvent = function createEvent(ref) {
|
6
|
-
if (ref.current) {
|
7
|
-
var event = new Event('change', {
|
8
|
-
bubbles: true
|
9
|
-
});
|
10
|
-
Object.defineProperty(event, 'target', {
|
11
|
-
writable: false,
|
12
|
-
value: ref.current
|
13
|
-
});
|
14
|
-
var syntheticEvent = createSyntheticEvent(event);
|
15
|
-
console.log(syntheticEvent);
|
16
|
-
return syntheticEvent;
|
17
|
-
}
|
18
|
-
return null;
|
19
|
-
};
|
20
|
-
var createSyntheticEvent = function createSyntheticEvent(event) {
|
21
|
-
var _isDefaultPrevented = false;
|
22
|
-
var _isPropagationStopped = false;
|
23
|
-
var preventDefault = function preventDefault() {
|
24
|
-
_isDefaultPrevented = true;
|
25
|
-
event.preventDefault();
|
26
|
-
};
|
27
|
-
var stopPropagation = function stopPropagation() {
|
28
|
-
_isPropagationStopped = true;
|
29
|
-
event.stopPropagation();
|
30
|
-
};
|
31
|
-
return {
|
32
|
-
nativeEvent: event,
|
33
|
-
currentTarget: event.currentTarget,
|
34
|
-
target: event.target,
|
35
|
-
bubbles: event.bubbles,
|
36
|
-
cancelable: event.cancelable,
|
37
|
-
defaultPrevented: event.defaultPrevented,
|
38
|
-
eventPhase: event.eventPhase,
|
39
|
-
isTrusted: event.isTrusted,
|
40
|
-
preventDefault: preventDefault,
|
41
|
-
isDefaultPrevented: function isDefaultPrevented() {
|
42
|
-
return _isDefaultPrevented;
|
43
|
-
},
|
44
|
-
stopPropagation: stopPropagation,
|
45
|
-
isPropagationStopped: function isPropagationStopped() {
|
46
|
-
return _isPropagationStopped;
|
47
|
-
},
|
48
|
-
persist: function persist() {},
|
49
|
-
timeStamp: event.timeStamp,
|
50
|
-
type: event.type
|
51
|
-
};
|
52
|
-
};
|
53
|
-
|
54
|
-
exports.createEvent = createEvent;
|
55
|
-
exports.createSyntheticEvent = createSyntheticEvent;
|
56
|
-
//# sourceMappingURL=syntheticEvent.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"syntheticEvent.js","sources":["../../src/utils/syntheticEvent.ts"],"sourcesContent":["import { RefObject } from 'react';\n\nexport const createEvent = (ref: RefObject<HTMLInputElement>) => {\n if (ref.current) {\n const event = new Event('change', { bubbles: true });\n Object.defineProperty(event, 'target', { writable: false, value: ref.current });\n const syntheticEvent = createSyntheticEvent(event) as React.ChangeEvent<typeof ref.current>;\n console.log(syntheticEvent);\n return syntheticEvent;\n }\n\n return null;\n};\n\nexport const createSyntheticEvent = <T extends Element, E extends Event>(event: E): React.SyntheticEvent<T, E> => {\n let isDefaultPrevented = false;\n let isPropagationStopped = false;\n const preventDefault = () => {\n isDefaultPrevented = true;\n event.preventDefault();\n };\n const stopPropagation = () => {\n isPropagationStopped = true;\n event.stopPropagation();\n };\n return {\n nativeEvent: event,\n currentTarget: event.currentTarget as EventTarget & T,\n target: event.target as EventTarget & T,\n bubbles: event.bubbles,\n cancelable: event.cancelable,\n defaultPrevented: event.defaultPrevented,\n eventPhase: event.eventPhase,\n isTrusted: event.isTrusted,\n preventDefault,\n isDefaultPrevented: () => isDefaultPrevented,\n stopPropagation,\n isPropagationStopped: () => isPropagationStopped,\n persist: () => {},\n timeStamp: event.timeStamp,\n type: event.type,\n };\n};\n"],"names":["createEvent","ref","current","event","Event","bubbles","Object","defineProperty","writable","value","syntheticEvent","createSyntheticEvent","console","log","isDefaultPrevented","isPropagationStopped","preventDefault","stopPropagation","nativeEvent","currentTarget","target","cancelable","defaultPrevented","eventPhase","isTrusted","persist","timeStamp","type"],"mappings":";;;;IAEaA,WAAW,GAAG,SAAdA,WAAWA,CAAIC,GAAgC,EAAK;EAC7D,IAAIA,GAAG,CAACC,OAAO,EAAE;AACb,IAAA,IAAMC,KAAK,GAAG,IAAIC,KAAK,CAAC,QAAQ,EAAE;AAAEC,MAAAA,OAAO,EAAE,IAAA;AAAK,KAAC,CAAC,CAAA;AACpDC,IAAAA,MAAM,CAACC,cAAc,CAACJ,KAAK,EAAE,QAAQ,EAAE;AAAEK,MAAAA,QAAQ,EAAE,KAAK;MAAEC,KAAK,EAAER,GAAG,CAACC,OAAAA;AAAQ,KAAC,CAAC,CAAA;AAC/E,IAAA,IAAMQ,cAAc,GAAGC,oBAAoB,CAACR,KAAK,CAA0C,CAAA;AAC3FS,IAAAA,OAAO,CAACC,GAAG,CAACH,cAAc,CAAC,CAAA;AAC3B,IAAA,OAAOA,cAAc,CAAA;AACzB,GAAA;AAEA,EAAA,OAAO,IAAI,CAAA;AACf,EAAC;IAEYC,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAwCR,KAAQ,EAAiC;EAC9G,IAAIW,mBAAkB,GAAG,KAAK,CAAA;EAC9B,IAAIC,qBAAoB,GAAG,KAAK,CAAA;AAChC,EAAA,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,GAAS;AACzBF,IAAAA,mBAAkB,GAAG,IAAI,CAAA;IACzBX,KAAK,CAACa,cAAc,EAAE,CAAA;GACzB,CAAA;AACD,EAAA,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,GAAS;AAC1BF,IAAAA,qBAAoB,GAAG,IAAI,CAAA;IAC3BZ,KAAK,CAACc,eAAe,EAAE,CAAA;GAC1B,CAAA;EACD,OAAO;AACHC,IAAAA,WAAW,EAAEf,KAAK;IAClBgB,aAAa,EAAEhB,KAAK,CAACgB,aAAgC;IACrDC,MAAM,EAAEjB,KAAK,CAACiB,MAAyB;IACvCf,OAAO,EAAEF,KAAK,CAACE,OAAO;IACtBgB,UAAU,EAAElB,KAAK,CAACkB,UAAU;IAC5BC,gBAAgB,EAAEnB,KAAK,CAACmB,gBAAgB;IACxCC,UAAU,EAAEpB,KAAK,CAACoB,UAAU;IAC5BC,SAAS,EAAErB,KAAK,CAACqB,SAAS;AAC1BR,IAAAA,cAAc,EAAdA,cAAc;IACdF,kBAAkB,EAAE,SAAAA,kBAAA,GAAA;AAAA,MAAA,OAAMA,mBAAkB,CAAA;AAAA,KAAA;AAC5CG,IAAAA,eAAe,EAAfA,eAAe;IACfF,oBAAoB,EAAE,SAAAA,oBAAA,GAAA;AAAA,MAAA,OAAMA,qBAAoB,CAAA;AAAA,KAAA;AAChDU,IAAAA,OAAO,EAAE,SAAAA,OAAA,GAAM,EAAE;IACjBC,SAAS,EAAEvB,KAAK,CAACuB,SAAS;IAC1BC,IAAI,EAAExB,KAAK,CAACwB,IAAAA;GACf,CAAA;AACL;;;;;"}
|
@@ -1,54 +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
|
-
console.log(syntheticEvent);
|
18
|
-
return syntheticEvent;
|
19
|
-
}
|
20
|
-
return null;
|
21
|
-
};
|
22
|
-
var createSyntheticEvent = exports.createSyntheticEvent = function createSyntheticEvent(event) {
|
23
|
-
var _isDefaultPrevented = false;
|
24
|
-
var _isPropagationStopped = false;
|
25
|
-
var preventDefault = function preventDefault() {
|
26
|
-
_isDefaultPrevented = true;
|
27
|
-
event.preventDefault();
|
28
|
-
};
|
29
|
-
var stopPropagation = function stopPropagation() {
|
30
|
-
_isPropagationStopped = true;
|
31
|
-
event.stopPropagation();
|
32
|
-
};
|
33
|
-
return {
|
34
|
-
nativeEvent: event,
|
35
|
-
currentTarget: event.currentTarget,
|
36
|
-
target: event.target,
|
37
|
-
bubbles: event.bubbles,
|
38
|
-
cancelable: event.cancelable,
|
39
|
-
defaultPrevented: event.defaultPrevented,
|
40
|
-
eventPhase: event.eventPhase,
|
41
|
-
isTrusted: event.isTrusted,
|
42
|
-
preventDefault: preventDefault,
|
43
|
-
isDefaultPrevented: function isDefaultPrevented() {
|
44
|
-
return _isDefaultPrevented;
|
45
|
-
},
|
46
|
-
stopPropagation: stopPropagation,
|
47
|
-
isPropagationStopped: function isPropagationStopped() {
|
48
|
-
return _isPropagationStopped;
|
49
|
-
},
|
50
|
-
persist: function persist() {},
|
51
|
-
timeStamp: event.timeStamp,
|
52
|
-
type: event.type
|
53
|
-
};
|
54
|
-
};
|
@@ -1,48 +0,0 @@
|
|
1
|
-
export var createEvent = function createEvent(ref) {
|
2
|
-
if (ref.current) {
|
3
|
-
var event = new Event('change', {
|
4
|
-
bubbles: true
|
5
|
-
});
|
6
|
-
Object.defineProperty(event, 'target', {
|
7
|
-
writable: false,
|
8
|
-
value: ref.current
|
9
|
-
});
|
10
|
-
var syntheticEvent = createSyntheticEvent(event);
|
11
|
-
console.log(syntheticEvent);
|
12
|
-
return syntheticEvent;
|
13
|
-
}
|
14
|
-
return null;
|
15
|
-
};
|
16
|
-
export var createSyntheticEvent = function createSyntheticEvent(event) {
|
17
|
-
var _isDefaultPrevented = false;
|
18
|
-
var _isPropagationStopped = false;
|
19
|
-
var preventDefault = function preventDefault() {
|
20
|
-
_isDefaultPrevented = true;
|
21
|
-
event.preventDefault();
|
22
|
-
};
|
23
|
-
var stopPropagation = function stopPropagation() {
|
24
|
-
_isPropagationStopped = true;
|
25
|
-
event.stopPropagation();
|
26
|
-
};
|
27
|
-
return {
|
28
|
-
nativeEvent: event,
|
29
|
-
currentTarget: event.currentTarget,
|
30
|
-
target: event.target,
|
31
|
-
bubbles: event.bubbles,
|
32
|
-
cancelable: event.cancelable,
|
33
|
-
defaultPrevented: event.defaultPrevented,
|
34
|
-
eventPhase: event.eventPhase,
|
35
|
-
isTrusted: event.isTrusted,
|
36
|
-
preventDefault: preventDefault,
|
37
|
-
isDefaultPrevented: function isDefaultPrevented() {
|
38
|
-
return _isDefaultPrevented;
|
39
|
-
},
|
40
|
-
stopPropagation: stopPropagation,
|
41
|
-
isPropagationStopped: function isPropagationStopped() {
|
42
|
-
return _isPropagationStopped;
|
43
|
-
},
|
44
|
-
persist: function persist() {},
|
45
|
-
timeStamp: event.timeStamp,
|
46
|
-
type: event.type
|
47
|
-
};
|
48
|
-
};
|
@@ -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,51 +0,0 @@
|
|
1
|
-
var createEvent = function createEvent(ref) {
|
2
|
-
if (ref.current) {
|
3
|
-
var event = new Event('change', {
|
4
|
-
bubbles: true
|
5
|
-
});
|
6
|
-
Object.defineProperty(event, 'target', {
|
7
|
-
writable: false,
|
8
|
-
value: ref.current
|
9
|
-
});
|
10
|
-
var syntheticEvent = createSyntheticEvent(event);
|
11
|
-
console.log(syntheticEvent);
|
12
|
-
return syntheticEvent;
|
13
|
-
}
|
14
|
-
return null;
|
15
|
-
};
|
16
|
-
var createSyntheticEvent = function createSyntheticEvent(event) {
|
17
|
-
var _isDefaultPrevented = false;
|
18
|
-
var _isPropagationStopped = false;
|
19
|
-
var preventDefault = function preventDefault() {
|
20
|
-
_isDefaultPrevented = true;
|
21
|
-
event.preventDefault();
|
22
|
-
};
|
23
|
-
var stopPropagation = function stopPropagation() {
|
24
|
-
_isPropagationStopped = true;
|
25
|
-
event.stopPropagation();
|
26
|
-
};
|
27
|
-
return {
|
28
|
-
nativeEvent: event,
|
29
|
-
currentTarget: event.currentTarget,
|
30
|
-
target: event.target,
|
31
|
-
bubbles: event.bubbles,
|
32
|
-
cancelable: event.cancelable,
|
33
|
-
defaultPrevented: event.defaultPrevented,
|
34
|
-
eventPhase: event.eventPhase,
|
35
|
-
isTrusted: event.isTrusted,
|
36
|
-
preventDefault: preventDefault,
|
37
|
-
isDefaultPrevented: function isDefaultPrevented() {
|
38
|
-
return _isDefaultPrevented;
|
39
|
-
},
|
40
|
-
stopPropagation: stopPropagation,
|
41
|
-
isPropagationStopped: function isPropagationStopped() {
|
42
|
-
return _isPropagationStopped;
|
43
|
-
},
|
44
|
-
persist: function persist() {},
|
45
|
-
timeStamp: event.timeStamp,
|
46
|
-
type: event.type
|
47
|
-
};
|
48
|
-
};
|
49
|
-
|
50
|
-
export { createEvent, createSyntheticEvent };
|
51
|
-
//# sourceMappingURL=syntheticEvent.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"syntheticEvent.js","sources":["../../src/utils/syntheticEvent.ts"],"sourcesContent":["import { RefObject } from 'react';\n\nexport const createEvent = (ref: RefObject<HTMLInputElement>) => {\n if (ref.current) {\n const event = new Event('change', { bubbles: true });\n Object.defineProperty(event, 'target', { writable: false, value: ref.current });\n const syntheticEvent = createSyntheticEvent(event) as React.ChangeEvent<typeof ref.current>;\n console.log(syntheticEvent);\n return syntheticEvent;\n }\n\n return null;\n};\n\nexport const createSyntheticEvent = <T extends Element, E extends Event>(event: E): React.SyntheticEvent<T, E> => {\n let isDefaultPrevented = false;\n let isPropagationStopped = false;\n const preventDefault = () => {\n isDefaultPrevented = true;\n event.preventDefault();\n };\n const stopPropagation = () => {\n isPropagationStopped = true;\n event.stopPropagation();\n };\n return {\n nativeEvent: event,\n currentTarget: event.currentTarget as EventTarget & T,\n target: event.target as EventTarget & T,\n bubbles: event.bubbles,\n cancelable: event.cancelable,\n defaultPrevented: event.defaultPrevented,\n eventPhase: event.eventPhase,\n isTrusted: event.isTrusted,\n preventDefault,\n isDefaultPrevented: () => isDefaultPrevented,\n stopPropagation,\n isPropagationStopped: () => isPropagationStopped,\n persist: () => {},\n timeStamp: event.timeStamp,\n type: event.type,\n };\n};\n"],"names":["createEvent","ref","current","event","Event","bubbles","Object","defineProperty","writable","value","syntheticEvent","createSyntheticEvent","console","log","isDefaultPrevented","isPropagationStopped","preventDefault","stopPropagation","nativeEvent","currentTarget","target","cancelable","defaultPrevented","eventPhase","isTrusted","persist","timeStamp","type"],"mappings":"IAEaA,WAAW,GAAG,SAAdA,WAAWA,CAAIC,GAAgC,EAAK;EAC7D,IAAIA,GAAG,CAACC,OAAO,EAAE;AACb,IAAA,IAAMC,KAAK,GAAG,IAAIC,KAAK,CAAC,QAAQ,EAAE;AAAEC,MAAAA,OAAO,EAAE,IAAA;AAAK,KAAC,CAAC,CAAA;AACpDC,IAAAA,MAAM,CAACC,cAAc,CAACJ,KAAK,EAAE,QAAQ,EAAE;AAAEK,MAAAA,QAAQ,EAAE,KAAK;MAAEC,KAAK,EAAER,GAAG,CAACC,OAAAA;AAAQ,KAAC,CAAC,CAAA;AAC/E,IAAA,IAAMQ,cAAc,GAAGC,oBAAoB,CAACR,KAAK,CAA0C,CAAA;AAC3FS,IAAAA,OAAO,CAACC,GAAG,CAACH,cAAc,CAAC,CAAA;AAC3B,IAAA,OAAOA,cAAc,CAAA;AACzB,GAAA;AAEA,EAAA,OAAO,IAAI,CAAA;AACf,EAAC;IAEYC,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAwCR,KAAQ,EAAiC;EAC9G,IAAIW,mBAAkB,GAAG,KAAK,CAAA;EAC9B,IAAIC,qBAAoB,GAAG,KAAK,CAAA;AAChC,EAAA,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,GAAS;AACzBF,IAAAA,mBAAkB,GAAG,IAAI,CAAA;IACzBX,KAAK,CAACa,cAAc,EAAE,CAAA;GACzB,CAAA;AACD,EAAA,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,GAAS;AAC1BF,IAAAA,qBAAoB,GAAG,IAAI,CAAA;IAC3BZ,KAAK,CAACc,eAAe,EAAE,CAAA;GAC1B,CAAA;EACD,OAAO;AACHC,IAAAA,WAAW,EAAEf,KAAK;IAClBgB,aAAa,EAAEhB,KAAK,CAACgB,aAAgC;IACrDC,MAAM,EAAEjB,KAAK,CAACiB,MAAyB;IACvCf,OAAO,EAAEF,KAAK,CAACE,OAAO;IACtBgB,UAAU,EAAElB,KAAK,CAACkB,UAAU;IAC5BC,gBAAgB,EAAEnB,KAAK,CAACmB,gBAAgB;IACxCC,UAAU,EAAEpB,KAAK,CAACoB,UAAU;IAC5BC,SAAS,EAAErB,KAAK,CAACqB,SAAS;AAC1BR,IAAAA,cAAc,EAAdA,cAAc;IACdF,kBAAkB,EAAE,SAAAA,kBAAA,GAAA;AAAA,MAAA,OAAMA,mBAAkB,CAAA;AAAA,KAAA;AAC5CG,IAAAA,eAAe,EAAfA,eAAe;IACfF,oBAAoB,EAAE,SAAAA,oBAAA,GAAA;AAAA,MAAA,OAAMA,qBAAoB,CAAA;AAAA,KAAA;AAChDU,IAAAA,OAAO,EAAE,SAAAA,OAAA,GAAM,EAAE;IACjBC,SAAS,EAAEvB,KAAK,CAACuB,SAAS;IAC1BC,IAAI,EAAExB,KAAK,CAACwB,IAAAA;GACf,CAAA;AACL;;;;"}
|