@mirai/ui 1.1.15 → 2.0.1
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/README.md +5 -4
- package/build/components/Action/Action.js +7 -10
- package/build/components/Action/Action.js.map +1 -1
- package/build/components/Action/Action.module.css +3 -11
- package/build/components/Action/Action.stories.js +3 -3
- package/build/components/Action/Action.stories.js.map +1 -1
- package/build/components/Action/__tests__/__snapshots__/Action.test.js.snap +46 -54
- package/build/components/Button/Button.js +4 -6
- package/build/components/Button/Button.js.map +1 -1
- package/build/components/Button/Button.module.css +29 -12
- package/build/components/Button/Button.stories.js +17 -9
- package/build/components/Button/Button.stories.js.map +1 -1
- package/build/components/Button/__tests__/__snapshots__/Button.test.js.snap +38 -27
- package/build/components/Calendar/Calendar.js +1 -1
- package/build/components/Calendar/Calendar.js.map +1 -1
- package/build/components/Calendar/Calendar.module.css +5 -5
- package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +15576 -15544
- package/build/components/Form/Form.js +2 -5
- package/build/components/Form/Form.js.map +1 -1
- package/build/components/Form/__tests__/__snapshots__/Form.test.jsx.snap +14 -12
- package/build/components/InputDate/InputDate.js +1 -0
- package/build/components/InputDate/InputDate.js.map +1 -1
- package/build/components/InputDate/__tests__/__snapshots__/InputDate.test.js.snap +67 -42
- package/build/components/InputNumber/InputNumber.js +19 -4
- package/build/components/InputNumber/InputNumber.js.map +1 -1
- package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +222 -138
- package/build/components/InputOption/InputOption.js +6 -2
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +114 -75
- package/build/components/InputPhone/InputPhone.js +8 -1
- package/build/components/InputPhone/InputPhone.js.map +1 -1
- package/build/components/InputPhone/InputPhone.module.css +1 -1
- package/build/components/InputPhone/__tests__/__snapshots__/InputPhone.test.js.snap +448 -354
- package/build/components/InputSelect/InputSelect.js +10 -1
- package/build/components/InputSelect/InputSelect.js.map +1 -1
- package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +118 -112
- package/build/components/InputText/InputText.js +6 -2
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +160 -130
- package/build/components/InputText/partials/InputText.Label.js +1 -0
- package/build/components/InputText/partials/InputText.Label.js.map +1 -1
- package/build/components/Menu/Menu.js +1 -0
- package/build/components/Menu/Menu.js.map +1 -1
- package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +76 -55
- package/build/components/Modal/Modal.js +20 -6
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +106 -72
- package/build/components/Notification/Notification.js +1 -0
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +328 -288
- package/build/components/Progress/Progress.js +1 -0
- package/build/components/Progress/Progress.js.map +1 -1
- package/build/components/Progress/__tests__/__snapshots__/Progress.test.jsx.snap +31 -18
- package/build/components/Slider/Slider.js +3 -2
- package/build/components/Slider/Slider.js.map +1 -1
- package/build/components/Slider/Slider.module.css +4 -4
- package/build/components/Slider/__tests__/__snapshots__/Slider.test.js.snap +475 -339
- package/build/components/Table/Table.js +2 -4
- package/build/components/Table/Table.js.map +1 -1
- package/build/components/Table/__tests__/__snapshots__/Table.ColumnFilter.test.js.snap +222 -192
- package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +878 -432
- package/build/components/Tooltip/Tooltip.js +3 -4
- package/build/components/Tooltip/Tooltip.js.map +1 -1
- package/build/components/Tooltip/__tests__/__snapshots__/Tooltip.test.jsx.snap +38 -28
- package/build/primitives/Checkbox/Checkbox.js +1 -0
- package/build/primitives/Checkbox/Checkbox.js.map +1 -1
- package/build/primitives/Checkbox/__tests__/__snapshots__/Checkbox.test.js.snap +35 -20
- package/build/primitives/Icon/Icon.js +1 -1
- package/build/primitives/Icon/Icon.js.map +1 -1
- package/build/primitives/Icon/__tests__/__snapshots__/Icon.test.js.snap +108 -82
- package/build/primitives/Input/Input.js +3 -5
- package/build/primitives/Input/Input.js.map +1 -1
- package/build/primitives/Input/__tests__/__snapshots__/Input.test.js.snap +2 -0
- package/build/primitives/Layer/Layer.js +2 -1
- package/build/primitives/Layer/Layer.js.map +1 -1
- package/build/primitives/Layer/__tests__/__snapshots__/Layer.test.js.snap +60 -42
- package/build/primitives/Pressable/Pressable.constants.js +1 -1
- package/build/primitives/Pressable/Pressable.constants.js.map +1 -1
- package/build/primitives/Pressable/Pressable.js +7 -6
- package/build/primitives/Pressable/Pressable.js.map +1 -1
- package/build/primitives/Pressable/__tests__/__snapshots__/Pressable.test.js.snap +16 -12
- package/build/primitives/Primitive/Primitive.constants.js +1 -1
- package/build/primitives/Primitive/Primitive.constants.js.map +1 -1
- package/build/primitives/Primitive/Primitive.js +2 -2
- package/build/primitives/Primitive/Primitive.js.map +1 -1
- package/build/primitives/Primitive/__tests__/__snapshots__/Primitive.test.js.snap +12 -12
- package/build/primitives/Primitive/helpers/getTag.js +35 -0
- package/build/primitives/Primitive/helpers/getTag.js.map +1 -0
- package/build/primitives/Primitive/helpers/index.js +11 -0
- package/build/primitives/Primitive/helpers/index.js.map +1 -1
- package/build/primitives/Radio/Radio.js +1 -1
- package/build/primitives/Radio/Radio.js.map +1 -1
- package/build/primitives/Radio/__tests__/__snapshots__/Radio.test.js.snap +39 -21
- package/build/primitives/ScrollView/ScrollView.js +2 -5
- package/build/primitives/ScrollView/ScrollView.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.stories.js +6 -5
- package/build/primitives/ScrollView/ScrollView.stories.js.map +1 -1
- package/build/primitives/ScrollView/__tests__/__snapshots__/ScrollView.test.js.snap +24 -24
- package/build/primitives/Select/Select.js +7 -4
- package/build/primitives/Select/Select.js.map +1 -1
- package/build/primitives/Select/__tests__/__snapshots__/Select.test.js.snap +35 -0
- package/build/primitives/Switch/Switch.js +1 -1
- package/build/primitives/Switch/Switch.js.map +1 -1
- package/build/primitives/Switch/__tests__/__snapshots__/Switch.test.js.snap +60 -40
- package/build/primitives/Text/Text.js +4 -3
- package/build/primitives/Text/Text.js.map +1 -1
- package/build/primitives/Text/__tests__/__snapshots__/Text.test.js.snap +68 -68
- package/build/primitives/Text/helpers/parseMarkdown.js +3 -1
- package/build/primitives/Text/helpers/parseMarkdown.js.map +1 -1
- package/build/primitives/View/View.js +2 -5
- package/build/primitives/View/View.js.map +1 -1
- package/build/primitives/View/__tests__/__snapshots__/View.test.js.snap +15 -15
- package/build/theme/default.theme.css +10 -6
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ var Switch = function Switch(_ref) {
|
|
|
27
27
|
};
|
|
28
28
|
return /*#__PURE__*/_react.default.createElement(_Primitive.Primitive, _extends({}, others, {
|
|
29
29
|
role: others.role || 'switch',
|
|
30
|
+
tag: others.tag || 'switch',
|
|
30
31
|
onClick: !disabled ? handleChange : undefined,
|
|
31
32
|
className: (0, _helpers.styles)(_SwitchModule.default.switch, others.className)
|
|
32
33
|
}), /*#__PURE__*/_react.default.createElement(_Primitive.Primitive, {
|
|
@@ -39,7 +40,6 @@ var Switch = function Switch(_ref) {
|
|
|
39
40
|
}), /*#__PURE__*/_react.default.createElement(_Primitive.Primitive, {
|
|
40
41
|
className: (0, _helpers.styles)(_SwitchModule.default.area, error && !checked && !disabled && _SwitchModule.default.error)
|
|
41
42
|
}, /*#__PURE__*/_react.default.createElement(_Primitive.Primitive, {
|
|
42
|
-
tag: "span",
|
|
43
43
|
className: _SwitchModule.default.toggle
|
|
44
44
|
})));
|
|
45
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","names":["Switch","checked","disabled","error","name","onChange","others","handleChange","event","role","undefined","styles","style","switch","className","area","toggle","displayName","propTypes","PropTypes","bool","string","isRequired","func"],"sources":["../../../src/primitives/Switch/Switch.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Primitive } from '../Primitive';\nimport style from './Switch.module.css';\n\nconst Switch = ({ checked = false, disabled, error, name, onChange, ...others }) => {\n const handleChange = (event) => {\n onChange && onChange(!checked, event);\n };\n\n return (\n <Primitive\n {...others}\n role={others.role || 'switch'}\n onClick={!disabled ? handleChange : undefined}\n className={styles(style.switch, others.className)}\n >\n <Primitive checked={checked} disabled={disabled} name={name} tag=\"input\" type=\"checkbox\" onChange={() => {}} />\n <Primitive className={styles(style.area, error && !checked && !disabled && style.error)}>\n <Primitive
|
|
1
|
+
{"version":3,"file":"Switch.js","names":["Switch","checked","disabled","error","name","onChange","others","handleChange","event","role","tag","undefined","styles","style","switch","className","area","toggle","displayName","propTypes","PropTypes","bool","string","isRequired","func"],"sources":["../../../src/primitives/Switch/Switch.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Primitive } from '../Primitive';\nimport style from './Switch.module.css';\n\nconst Switch = ({ checked = false, disabled, error, name, onChange, ...others }) => {\n const handleChange = (event) => {\n onChange && onChange(!checked, event);\n };\n\n return (\n <Primitive\n {...others}\n role={others.role || 'switch'}\n tag={others.tag || 'switch'}\n onClick={!disabled ? handleChange : undefined}\n className={styles(style.switch, others.className)}\n >\n <Primitive checked={checked} disabled={disabled} name={name} tag=\"input\" type=\"checkbox\" onChange={() => {}} />\n <Primitive className={styles(style.area, error && !checked && !disabled && style.error)}>\n <Primitive className={style.toggle} />\n </Primitive>\n </Primitive>\n );\n};\n\nSwitch.displayName = 'Primitive:Switch';\n\nSwitch.propTypes = {\n checked: PropTypes.bool,\n disabled: PropTypes.bool,\n error: PropTypes.bool,\n name: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n};\n\nexport { Switch };\n"],"mappings":";;;;;;AAAA;AACA;AAEA;AACA;AACA;AAAwC;AAAA;AAAA;AAAA;AAAA;AAExC,IAAMA,MAAM,GAAG,SAATA,MAAM,OAAwE;EAAA,wBAAlEC,OAAO;IAAPA,OAAO,6BAAG,KAAK;IAAEC,QAAQ,QAARA,QAAQ;IAAEC,KAAK,QAALA,KAAK;IAAEC,IAAI,QAAJA,IAAI;IAAEC,QAAQ,QAARA,QAAQ;IAAKC,MAAM;EAC3E,IAAMC,YAAY,GAAG,SAAfA,YAAY,CAAIC,KAAK,EAAK;IAC9BH,QAAQ,IAAIA,QAAQ,CAAC,CAACJ,OAAO,EAAEO,KAAK,CAAC;EACvC,CAAC;EAED,oBACE,6BAAC,oBAAS,eACJF,MAAM;IACV,IAAI,EAAEA,MAAM,CAACG,IAAI,IAAI,QAAS;IAC9B,GAAG,EAAEH,MAAM,CAACI,GAAG,IAAI,QAAS;IAC5B,OAAO,EAAE,CAACR,QAAQ,GAAGK,YAAY,GAAGI,SAAU;IAC9C,SAAS,EAAE,IAAAC,eAAM,EAACC,qBAAK,CAACC,MAAM,EAAER,MAAM,CAACS,SAAS;EAAE,iBAElD,6BAAC,oBAAS;IAAC,OAAO,EAAEd,OAAQ;IAAC,QAAQ,EAAEC,QAAS;IAAC,IAAI,EAAEE,IAAK;IAAC,GAAG,EAAC,OAAO;IAAC,IAAI,EAAC,UAAU;IAAC,QAAQ,EAAE,oBAAM,CAAC;EAAE,EAAG,eAC/G,6BAAC,oBAAS;IAAC,SAAS,EAAE,IAAAQ,eAAM,EAACC,qBAAK,CAACG,IAAI,EAAEb,KAAK,IAAI,CAACF,OAAO,IAAI,CAACC,QAAQ,IAAIW,qBAAK,CAACV,KAAK;EAAE,gBACtF,6BAAC,oBAAS;IAAC,SAAS,EAAEU,qBAAK,CAACI;EAAO,EAAG,CAC5B,CACF;AAEhB,CAAC;AAAC;AAEFjB,MAAM,CAACkB,WAAW,GAAG,kBAAkB;AAEvClB,MAAM,CAACmB,SAAS,GAAG;EACjBlB,OAAO,EAAEmB,kBAAS,CAACC,IAAI;EACvBnB,QAAQ,EAAEkB,kBAAS,CAACC,IAAI;EACxBlB,KAAK,EAAEiB,kBAAS,CAACC,IAAI;EACrBjB,IAAI,EAAEgB,kBAAS,CAACE,MAAM,CAACC,UAAU;EACjClB,QAAQ,EAAEe,kBAAS,CAACI;AACtB,CAAC"}
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`primitive:<Switch> inherit:className 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
5
|
+
<ui_switch
|
|
6
6
|
class="switch mirai"
|
|
7
7
|
>
|
|
8
8
|
<input
|
|
9
9
|
name="name"
|
|
10
10
|
type="checkbox"
|
|
11
11
|
/>
|
|
12
|
-
<
|
|
12
|
+
<ui_primitive
|
|
13
13
|
class="area"
|
|
14
14
|
>
|
|
15
|
-
<
|
|
15
|
+
<ui_primitive
|
|
16
16
|
class="toggle"
|
|
17
17
|
/>
|
|
18
|
-
</
|
|
19
|
-
</
|
|
18
|
+
</ui_primitive>
|
|
19
|
+
</ui_switch>
|
|
20
20
|
</DocumentFragment>
|
|
21
21
|
`;
|
|
22
22
|
|
|
23
23
|
exports[`primitive:<Switch> prop:checked && disabled 1`] = `
|
|
24
24
|
<DocumentFragment>
|
|
25
|
-
<
|
|
25
|
+
<ui_switch
|
|
26
26
|
class="switch"
|
|
27
27
|
>
|
|
28
28
|
<input
|
|
@@ -31,20 +31,20 @@ exports[`primitive:<Switch> prop:checked && disabled 1`] = `
|
|
|
31
31
|
name="name"
|
|
32
32
|
type="checkbox"
|
|
33
33
|
/>
|
|
34
|
-
<
|
|
34
|
+
<ui_primitive
|
|
35
35
|
class="area"
|
|
36
36
|
>
|
|
37
|
-
<
|
|
37
|
+
<ui_primitive
|
|
38
38
|
class="toggle"
|
|
39
39
|
/>
|
|
40
|
-
</
|
|
41
|
-
</
|
|
40
|
+
</ui_primitive>
|
|
41
|
+
</ui_switch>
|
|
42
42
|
</DocumentFragment>
|
|
43
43
|
`;
|
|
44
44
|
|
|
45
45
|
exports[`primitive:<Switch> prop:checked 1`] = `
|
|
46
46
|
<DocumentFragment>
|
|
47
|
-
<
|
|
47
|
+
<ui_switch
|
|
48
48
|
class="switch"
|
|
49
49
|
>
|
|
50
50
|
<input
|
|
@@ -52,20 +52,20 @@ exports[`primitive:<Switch> prop:checked 1`] = `
|
|
|
52
52
|
name="name"
|
|
53
53
|
type="checkbox"
|
|
54
54
|
/>
|
|
55
|
-
<
|
|
55
|
+
<ui_primitive
|
|
56
56
|
class="area"
|
|
57
57
|
>
|
|
58
|
-
<
|
|
58
|
+
<ui_primitive
|
|
59
59
|
class="toggle"
|
|
60
60
|
/>
|
|
61
|
-
</
|
|
62
|
-
</
|
|
61
|
+
</ui_primitive>
|
|
62
|
+
</ui_switch>
|
|
63
63
|
</DocumentFragment>
|
|
64
64
|
`;
|
|
65
65
|
|
|
66
66
|
exports[`primitive:<Switch> prop:disabled 1`] = `
|
|
67
67
|
<DocumentFragment>
|
|
68
|
-
<
|
|
68
|
+
<ui_switch
|
|
69
69
|
class="switch"
|
|
70
70
|
>
|
|
71
71
|
<input
|
|
@@ -73,20 +73,20 @@ exports[`primitive:<Switch> prop:disabled 1`] = `
|
|
|
73
73
|
name="name"
|
|
74
74
|
type="checkbox"
|
|
75
75
|
/>
|
|
76
|
-
<
|
|
76
|
+
<ui_primitive
|
|
77
77
|
class="area"
|
|
78
78
|
>
|
|
79
|
-
<
|
|
79
|
+
<ui_primitive
|
|
80
80
|
class="toggle"
|
|
81
81
|
/>
|
|
82
|
-
</
|
|
83
|
-
</
|
|
82
|
+
</ui_primitive>
|
|
83
|
+
</ui_switch>
|
|
84
84
|
</DocumentFragment>
|
|
85
85
|
`;
|
|
86
86
|
|
|
87
87
|
exports[`primitive:<Switch> prop:error && disabled 1`] = `
|
|
88
88
|
<DocumentFragment>
|
|
89
|
-
<
|
|
89
|
+
<ui_switch
|
|
90
90
|
class="switch"
|
|
91
91
|
>
|
|
92
92
|
<input
|
|
@@ -94,60 +94,80 @@ exports[`primitive:<Switch> prop:error && disabled 1`] = `
|
|
|
94
94
|
name="name"
|
|
95
95
|
type="checkbox"
|
|
96
96
|
/>
|
|
97
|
-
<
|
|
97
|
+
<ui_primitive
|
|
98
98
|
class="area"
|
|
99
99
|
>
|
|
100
|
-
<
|
|
100
|
+
<ui_primitive
|
|
101
101
|
class="toggle"
|
|
102
102
|
/>
|
|
103
|
-
</
|
|
104
|
-
</
|
|
103
|
+
</ui_primitive>
|
|
104
|
+
</ui_switch>
|
|
105
105
|
</DocumentFragment>
|
|
106
106
|
`;
|
|
107
107
|
|
|
108
108
|
exports[`primitive:<Switch> prop:error 1`] = `
|
|
109
109
|
<DocumentFragment>
|
|
110
|
-
<
|
|
110
|
+
<ui_switch
|
|
111
111
|
class="switch"
|
|
112
112
|
>
|
|
113
113
|
<input
|
|
114
114
|
name="name"
|
|
115
115
|
type="checkbox"
|
|
116
116
|
/>
|
|
117
|
-
<
|
|
117
|
+
<ui_primitive
|
|
118
118
|
class="area error"
|
|
119
119
|
>
|
|
120
|
-
<
|
|
120
|
+
<ui_primitive
|
|
121
121
|
class="toggle"
|
|
122
122
|
/>
|
|
123
|
-
</
|
|
124
|
-
</
|
|
123
|
+
</ui_primitive>
|
|
124
|
+
</ui_switch>
|
|
125
125
|
</DocumentFragment>
|
|
126
126
|
`;
|
|
127
127
|
|
|
128
128
|
exports[`primitive:<Switch> render 1`] = `
|
|
129
129
|
<DocumentFragment>
|
|
130
|
-
<
|
|
130
|
+
<ui_switch
|
|
131
131
|
class="switch"
|
|
132
132
|
>
|
|
133
133
|
<input
|
|
134
134
|
name="name"
|
|
135
135
|
type="checkbox"
|
|
136
136
|
/>
|
|
137
|
-
<
|
|
137
|
+
<ui_primitive
|
|
138
138
|
class="area"
|
|
139
139
|
>
|
|
140
|
-
<
|
|
140
|
+
<ui_primitive
|
|
141
141
|
class="toggle"
|
|
142
142
|
/>
|
|
143
|
-
</
|
|
144
|
-
</
|
|
143
|
+
</ui_primitive>
|
|
144
|
+
</ui_switch>
|
|
145
|
+
</DocumentFragment>
|
|
146
|
+
`;
|
|
147
|
+
|
|
148
|
+
exports[`primitive:<Switch> tag 1`] = `
|
|
149
|
+
<DocumentFragment>
|
|
150
|
+
<ui_tag
|
|
151
|
+
class="switch"
|
|
152
|
+
>
|
|
153
|
+
<input
|
|
154
|
+
name="name"
|
|
155
|
+
type="checkbox"
|
|
156
|
+
/>
|
|
157
|
+
<ui_primitive
|
|
158
|
+
class="area"
|
|
159
|
+
>
|
|
160
|
+
<ui_primitive
|
|
161
|
+
class="toggle"
|
|
162
|
+
/>
|
|
163
|
+
</ui_primitive>
|
|
164
|
+
</ui_tag>
|
|
145
165
|
</DocumentFragment>
|
|
146
166
|
`;
|
|
147
167
|
|
|
148
168
|
exports[`primitive:<Switch> testId 1`] = `
|
|
149
169
|
<DocumentFragment>
|
|
150
|
-
<
|
|
170
|
+
<ui_switch
|
|
151
171
|
class="switch"
|
|
152
172
|
data-testid="mirai"
|
|
153
173
|
>
|
|
@@ -155,13 +175,13 @@ exports[`primitive:<Switch> testId 1`] = `
|
|
|
155
175
|
name="name"
|
|
156
176
|
type="checkbox"
|
|
157
177
|
/>
|
|
158
|
-
<
|
|
178
|
+
<ui_primitive
|
|
159
179
|
class="area"
|
|
160
180
|
>
|
|
161
|
-
<
|
|
181
|
+
<ui_primitive
|
|
162
182
|
class="toggle"
|
|
163
183
|
/>
|
|
164
|
-
</
|
|
165
|
-
</
|
|
184
|
+
</ui_primitive>
|
|
185
|
+
</ui_switch>
|
|
166
186
|
</DocumentFragment>
|
|
167
187
|
`;
|
|
@@ -40,7 +40,8 @@ var Text = function Text(_ref) {
|
|
|
40
40
|
markdown = _ref$markdown === void 0 ? true : _ref$markdown,
|
|
41
41
|
small = _ref.small,
|
|
42
42
|
success = _ref.success,
|
|
43
|
-
tag = _ref.tag,
|
|
43
|
+
_ref$tag = _ref.tag,
|
|
44
|
+
tag = _ref$tag === void 0 ? 'text' : _ref$tag,
|
|
44
45
|
tiny = _ref.tiny,
|
|
45
46
|
underline = _ref.underline,
|
|
46
47
|
upperCase = _ref.upperCase,
|
|
@@ -49,7 +50,7 @@ var Text = function Text(_ref) {
|
|
|
49
50
|
others = _objectWithoutProperties(_ref, _excluded);
|
|
50
51
|
return /*#__PURE__*/_react.default.createElement(_Primitive.Primitive, _objectSpread(_objectSpread({}, others), {}, {
|
|
51
52
|
role: others.role || 'text',
|
|
52
|
-
tag: tag
|
|
53
|
+
tag: tag,
|
|
53
54
|
className: (0, _helpers.styles)(_TextModule.default.text, bold && _TextModule.default.bold, brand && _TextModule.default.brand, capitalize && _TextModule.default.capitalize, (0, _helpers2.color)({
|
|
54
55
|
accent: accent,
|
|
55
56
|
accentDark: accentDark,
|
|
@@ -61,7 +62,7 @@ var Text = function Text(_ref) {
|
|
|
61
62
|
success: success,
|
|
62
63
|
warning: warning
|
|
63
64
|
}), headline ? _TextModule.default["headline-".concat(level)] : action ? _TextModule.default.action : small ? _TextModule.default.small : tiny ? _TextModule.default.tiny : _TextModule.default.paragraph, underline && _TextModule.default.underline, upperCase && _TextModule.default.upperCase, wide && _TextModule.default.wide, others.className)
|
|
64
|
-
}), markdown ? (0, _helpers2.parseMarkdown)(children) : children);
|
|
65
|
+
}), markdown ? (0, _helpers2.parseMarkdown)(children, tag) : children);
|
|
65
66
|
};
|
|
66
67
|
exports.Text = Text;
|
|
67
68
|
Text.displayName = 'Primitive:Text';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","names":["Text","accent","accentLight","accentDark","action","bold","brand","capitalize","children","dark","error","headline","info","level","light","markdown","small","success","tag","tiny","underline","upperCase","warning","wide","others","React","createElement","Primitive","role","className","styles","style","text","color","paragraph","parseMarkdown","displayName","propTypes","PropTypes","bool","oneOfType","string","number","array"],"sources":["../../../src/primitives/Text/Text.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Primitive } from '../Primitive';\nimport { color, parseMarkdown } from './helpers';\nimport style from './Text.module.css';\n\nconst Text = ({\n accent,\n accentLight,\n accentDark,\n action,\n bold,\n brand,\n capitalize,\n children,\n dark,\n error,\n headline,\n info,\n level = 3,\n light,\n markdown = true,\n small,\n success,\n tag,\n tiny,\n underline,\n upperCase,\n warning,\n wide,\n ...others\n}) =>\n React.createElement(\n Primitive,\n {\n ...others,\n role: others.role || 'text',\n tag
|
|
1
|
+
{"version":3,"file":"Text.js","names":["Text","accent","accentLight","accentDark","action","bold","brand","capitalize","children","dark","error","headline","info","level","light","markdown","small","success","tag","tiny","underline","upperCase","warning","wide","others","React","createElement","Primitive","role","className","styles","style","text","color","paragraph","parseMarkdown","displayName","propTypes","PropTypes","bool","oneOfType","string","number","array"],"sources":["../../../src/primitives/Text/Text.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Primitive } from '../Primitive';\nimport { color, parseMarkdown } from './helpers';\nimport style from './Text.module.css';\n\nconst Text = ({\n accent,\n accentLight,\n accentDark,\n action,\n bold,\n brand,\n capitalize,\n children,\n dark,\n error,\n headline,\n info,\n level = 3,\n light,\n markdown = true,\n small,\n success,\n tag = 'text',\n tiny,\n underline,\n upperCase,\n warning,\n wide,\n ...others\n}) =>\n React.createElement(\n Primitive,\n {\n ...others,\n role: others.role || 'text',\n tag,\n className: styles(\n style.text,\n bold && style.bold,\n brand && style.brand,\n capitalize && style.capitalize,\n color({ accent, accentDark, accentLight, dark, error, info, light, success, warning }),\n headline\n ? style[`headline-${level}`]\n : action\n ? style.action\n : small\n ? style.small\n : tiny\n ? style.tiny\n : style.paragraph,\n underline && style.underline,\n upperCase && style.upperCase,\n wide && style.wide,\n others.className,\n ),\n },\n markdown ? parseMarkdown(children, tag) : children,\n );\n\nText.displayName = 'Primitive:Text';\n\nText.propTypes = {\n accent: PropTypes.bool,\n accentLight: PropTypes.bool,\n accentDark: PropTypes.bool,\n action: PropTypes.bool,\n bold: PropTypes.bool,\n brand: PropTypes.bool,\n capitalize: PropTypes.bool,\n children: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),\n dark: PropTypes.bool,\n error: PropTypes.bool,\n headline: PropTypes.bool,\n info: PropTypes.bool,\n level: PropTypes.number,\n light: PropTypes.bool,\n markdown: PropTypes.bool,\n small: PropTypes.bool,\n success: PropTypes.bool,\n tag: PropTypes.string,\n tiny: PropTypes.bool,\n underline: PropTypes.bool,\n upperCase: PropTypes.bool,\n warning: PropTypes.bool,\n wide: PropTypes.bool,\n};\n\nexport { Text };\n"],"mappings":"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"}
|
|
@@ -2,291 +2,291 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`primitive:<Text> color prop:accent 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
5
|
+
<ui_text
|
|
6
6
|
class="text accent paragraph"
|
|
7
7
|
>
|
|
8
8
|
Lorem Ipsum
|
|
9
|
-
</
|
|
9
|
+
</ui_text>
|
|
10
10
|
</DocumentFragment>
|
|
11
11
|
`;
|
|
12
12
|
|
|
13
13
|
exports[`primitive:<Text> color prop:accentDark 1`] = `
|
|
14
14
|
<DocumentFragment>
|
|
15
|
-
<
|
|
15
|
+
<ui_text
|
|
16
16
|
class="text accentDark paragraph"
|
|
17
17
|
>
|
|
18
18
|
Lorem Ipsum
|
|
19
|
-
</
|
|
19
|
+
</ui_text>
|
|
20
20
|
</DocumentFragment>
|
|
21
21
|
`;
|
|
22
22
|
|
|
23
23
|
exports[`primitive:<Text> color prop:accentLight 1`] = `
|
|
24
24
|
<DocumentFragment>
|
|
25
|
-
<
|
|
25
|
+
<ui_text
|
|
26
26
|
class="text accentLight paragraph"
|
|
27
27
|
>
|
|
28
28
|
Lorem Ipsum
|
|
29
|
-
</
|
|
29
|
+
</ui_text>
|
|
30
30
|
</DocumentFragment>
|
|
31
31
|
`;
|
|
32
32
|
|
|
33
33
|
exports[`primitive:<Text> color prop:dark 1`] = `
|
|
34
34
|
<DocumentFragment>
|
|
35
|
-
<
|
|
35
|
+
<ui_text
|
|
36
36
|
class="text dark paragraph"
|
|
37
37
|
>
|
|
38
38
|
Lorem Ipsum
|
|
39
|
-
</
|
|
39
|
+
</ui_text>
|
|
40
40
|
</DocumentFragment>
|
|
41
41
|
`;
|
|
42
42
|
|
|
43
43
|
exports[`primitive:<Text> color prop:error 1`] = `
|
|
44
44
|
<DocumentFragment>
|
|
45
|
-
<
|
|
45
|
+
<ui_text
|
|
46
46
|
class="text error paragraph"
|
|
47
47
|
>
|
|
48
48
|
Lorem Ipsum
|
|
49
|
-
</
|
|
49
|
+
</ui_text>
|
|
50
50
|
</DocumentFragment>
|
|
51
51
|
`;
|
|
52
52
|
|
|
53
53
|
exports[`primitive:<Text> color prop:info 1`] = `
|
|
54
54
|
<DocumentFragment>
|
|
55
|
-
<
|
|
55
|
+
<ui_text
|
|
56
56
|
class="text info paragraph"
|
|
57
57
|
>
|
|
58
58
|
Lorem Ipsum
|
|
59
|
-
</
|
|
59
|
+
</ui_text>
|
|
60
60
|
</DocumentFragment>
|
|
61
61
|
`;
|
|
62
62
|
|
|
63
63
|
exports[`primitive:<Text> color prop:light 1`] = `
|
|
64
64
|
<DocumentFragment>
|
|
65
|
-
<
|
|
65
|
+
<ui_text
|
|
66
66
|
class="text light paragraph"
|
|
67
67
|
>
|
|
68
68
|
Lorem Ipsum
|
|
69
|
-
</
|
|
69
|
+
</ui_text>
|
|
70
70
|
</DocumentFragment>
|
|
71
71
|
`;
|
|
72
72
|
|
|
73
73
|
exports[`primitive:<Text> color prop:success 1`] = `
|
|
74
74
|
<DocumentFragment>
|
|
75
|
-
<
|
|
75
|
+
<ui_text
|
|
76
76
|
class="text success paragraph"
|
|
77
77
|
>
|
|
78
78
|
Lorem Ipsum
|
|
79
|
-
</
|
|
79
|
+
</ui_text>
|
|
80
80
|
</DocumentFragment>
|
|
81
81
|
`;
|
|
82
82
|
|
|
83
83
|
exports[`primitive:<Text> color prop:warning 1`] = `
|
|
84
84
|
<DocumentFragment>
|
|
85
|
-
<
|
|
85
|
+
<ui_text
|
|
86
86
|
class="text warning paragraph"
|
|
87
87
|
>
|
|
88
88
|
Lorem Ipsum
|
|
89
|
-
</
|
|
89
|
+
</ui_text>
|
|
90
90
|
</DocumentFragment>
|
|
91
91
|
`;
|
|
92
92
|
|
|
93
93
|
exports[`primitive:<Text> inherit:className 1`] = `
|
|
94
94
|
<DocumentFragment>
|
|
95
|
-
<
|
|
95
|
+
<ui_text
|
|
96
96
|
class="text paragraph mirai"
|
|
97
97
|
>
|
|
98
98
|
Lorem Ipsum
|
|
99
|
-
</
|
|
99
|
+
</ui_text>
|
|
100
100
|
</DocumentFragment>
|
|
101
101
|
`;
|
|
102
102
|
|
|
103
103
|
exports[`primitive:<Text> prop:action 1`] = `
|
|
104
104
|
<DocumentFragment>
|
|
105
|
-
<
|
|
105
|
+
<ui_text
|
|
106
106
|
class="text action"
|
|
107
107
|
>
|
|
108
108
|
Lorem Ipsum
|
|
109
|
-
</
|
|
109
|
+
</ui_text>
|
|
110
110
|
</DocumentFragment>
|
|
111
111
|
`;
|
|
112
112
|
|
|
113
113
|
exports[`primitive:<Text> prop:bold 1`] = `
|
|
114
114
|
<DocumentFragment>
|
|
115
|
-
<
|
|
115
|
+
<ui_text
|
|
116
116
|
class="text bold paragraph"
|
|
117
117
|
>
|
|
118
118
|
Lorem Ipsum
|
|
119
|
-
</
|
|
119
|
+
</ui_text>
|
|
120
120
|
</DocumentFragment>
|
|
121
121
|
`;
|
|
122
122
|
|
|
123
123
|
exports[`primitive:<Text> prop:brand 1`] = `
|
|
124
124
|
<DocumentFragment>
|
|
125
|
-
<
|
|
125
|
+
<ui_text
|
|
126
126
|
class="text brand paragraph"
|
|
127
127
|
>
|
|
128
128
|
Lorem Ipsum
|
|
129
|
-
</
|
|
129
|
+
</ui_text>
|
|
130
130
|
</DocumentFragment>
|
|
131
131
|
`;
|
|
132
132
|
|
|
133
133
|
exports[`primitive:<Text> prop:capitalize 1`] = `
|
|
134
134
|
<DocumentFragment>
|
|
135
|
-
<
|
|
135
|
+
<ui_text
|
|
136
136
|
class="text capitalize paragraph"
|
|
137
137
|
>
|
|
138
138
|
Lorem Ipsum
|
|
139
|
-
</
|
|
139
|
+
</ui_text>
|
|
140
140
|
</DocumentFragment>
|
|
141
141
|
`;
|
|
142
142
|
|
|
143
143
|
exports[`primitive:<Text> prop:headline & level:1 1`] = `
|
|
144
144
|
<DocumentFragment>
|
|
145
|
-
<
|
|
145
|
+
<ui_text
|
|
146
146
|
class="text headline-1"
|
|
147
147
|
>
|
|
148
148
|
Lorem Ipsum
|
|
149
|
-
</
|
|
149
|
+
</ui_text>
|
|
150
150
|
</DocumentFragment>
|
|
151
151
|
`;
|
|
152
152
|
|
|
153
153
|
exports[`primitive:<Text> prop:headline & level:2 1`] = `
|
|
154
154
|
<DocumentFragment>
|
|
155
|
-
<
|
|
155
|
+
<ui_text
|
|
156
156
|
class="text headline-2"
|
|
157
157
|
>
|
|
158
158
|
Lorem Ipsum
|
|
159
|
-
</
|
|
159
|
+
</ui_text>
|
|
160
160
|
</DocumentFragment>
|
|
161
161
|
`;
|
|
162
162
|
|
|
163
163
|
exports[`primitive:<Text> prop:headline & level:3 1`] = `
|
|
164
164
|
<DocumentFragment>
|
|
165
|
-
<
|
|
165
|
+
<ui_text
|
|
166
166
|
class="text headline-3"
|
|
167
167
|
>
|
|
168
168
|
Lorem Ipsum
|
|
169
|
-
</
|
|
169
|
+
</ui_text>
|
|
170
170
|
</DocumentFragment>
|
|
171
171
|
`;
|
|
172
172
|
|
|
173
173
|
exports[`primitive:<Text> prop:headline & level:4 1`] = `
|
|
174
174
|
<DocumentFragment>
|
|
175
|
-
<
|
|
175
|
+
<ui_text
|
|
176
176
|
class="text headline-4"
|
|
177
177
|
>
|
|
178
178
|
Lorem Ipsum
|
|
179
|
-
</
|
|
179
|
+
</ui_text>
|
|
180
180
|
</DocumentFragment>
|
|
181
181
|
`;
|
|
182
182
|
|
|
183
183
|
exports[`primitive:<Text> prop:headline 1`] = `
|
|
184
184
|
<DocumentFragment>
|
|
185
|
-
<
|
|
185
|
+
<ui_text
|
|
186
186
|
class="text headline-3"
|
|
187
187
|
>
|
|
188
188
|
Lorem Ipsum
|
|
189
|
-
</
|
|
189
|
+
</ui_text>
|
|
190
190
|
</DocumentFragment>
|
|
191
191
|
`;
|
|
192
192
|
|
|
193
193
|
exports[`primitive:<Text> prop:markdown 1`] = `
|
|
194
194
|
<DocumentFragment>
|
|
195
|
-
<
|
|
195
|
+
<ui_text
|
|
196
196
|
class="text paragraph"
|
|
197
197
|
>
|
|
198
|
-
<
|
|
198
|
+
<ui_text
|
|
199
199
|
style="font-style: italic;"
|
|
200
200
|
>
|
|
201
201
|
Lorem
|
|
202
|
-
</
|
|
202
|
+
</ui_text>
|
|
203
203
|
|
|
204
|
-
<
|
|
204
|
+
<ui_text
|
|
205
205
|
style="text-decoration: underline;"
|
|
206
206
|
>
|
|
207
207
|
Ipsum
|
|
208
|
-
</
|
|
209
|
-
</
|
|
208
|
+
</ui_text>
|
|
209
|
+
</ui_text>
|
|
210
210
|
</DocumentFragment>
|
|
211
211
|
`;
|
|
212
212
|
|
|
213
213
|
exports[`primitive:<Text> prop:small 1`] = `
|
|
214
214
|
<DocumentFragment>
|
|
215
|
-
<
|
|
215
|
+
<ui_text
|
|
216
216
|
class="text small"
|
|
217
217
|
>
|
|
218
218
|
Lorem Ipsum
|
|
219
|
-
</
|
|
220
|
-
</DocumentFragment>
|
|
221
|
-
`;
|
|
222
|
-
|
|
223
|
-
exports[`primitive:<Text> prop:tag 1`] = `
|
|
224
|
-
<DocumentFragment>
|
|
225
|
-
<p
|
|
226
|
-
class="text paragraph"
|
|
227
|
-
>
|
|
228
|
-
Lorem Ipsum
|
|
229
|
-
</p>
|
|
219
|
+
</ui_text>
|
|
230
220
|
</DocumentFragment>
|
|
231
221
|
`;
|
|
232
222
|
|
|
233
223
|
exports[`primitive:<Text> prop:tiny 1`] = `
|
|
234
224
|
<DocumentFragment>
|
|
235
|
-
<
|
|
225
|
+
<ui_text
|
|
236
226
|
class="text tiny"
|
|
237
227
|
>
|
|
238
228
|
Lorem Ipsum
|
|
239
|
-
</
|
|
229
|
+
</ui_text>
|
|
240
230
|
</DocumentFragment>
|
|
241
231
|
`;
|
|
242
232
|
|
|
243
233
|
exports[`primitive:<Text> prop:underline 1`] = `
|
|
244
234
|
<DocumentFragment>
|
|
245
|
-
<
|
|
235
|
+
<ui_text
|
|
246
236
|
class="text paragraph underline"
|
|
247
237
|
>
|
|
248
238
|
Lorem Ipsum
|
|
249
|
-
</
|
|
239
|
+
</ui_text>
|
|
250
240
|
</DocumentFragment>
|
|
251
241
|
`;
|
|
252
242
|
|
|
253
243
|
exports[`primitive:<Text> prop:upperCase 1`] = `
|
|
254
244
|
<DocumentFragment>
|
|
255
|
-
<
|
|
245
|
+
<ui_text
|
|
256
246
|
class="text paragraph upperCase"
|
|
257
247
|
>
|
|
258
248
|
Lorem Ipsum
|
|
259
|
-
</
|
|
249
|
+
</ui_text>
|
|
260
250
|
</DocumentFragment>
|
|
261
251
|
`;
|
|
262
252
|
|
|
263
253
|
exports[`primitive:<Text> prop:wide 1`] = `
|
|
264
254
|
<DocumentFragment>
|
|
265
|
-
<
|
|
255
|
+
<ui_text
|
|
266
256
|
class="text paragraph wide"
|
|
267
257
|
>
|
|
268
258
|
Lorem Ipsum
|
|
269
|
-
</
|
|
259
|
+
</ui_text>
|
|
270
260
|
</DocumentFragment>
|
|
271
261
|
`;
|
|
272
262
|
|
|
273
263
|
exports[`primitive:<Text> renders 1`] = `
|
|
274
264
|
<DocumentFragment>
|
|
275
|
-
<
|
|
265
|
+
<ui_text
|
|
266
|
+
class="text paragraph"
|
|
267
|
+
>
|
|
268
|
+
Lorem Ipsum
|
|
269
|
+
</ui_text>
|
|
270
|
+
</DocumentFragment>
|
|
271
|
+
`;
|
|
272
|
+
|
|
273
|
+
exports[`primitive:<Text> tag 1`] = `
|
|
274
|
+
<DocumentFragment>
|
|
275
|
+
<ui_tag
|
|
276
276
|
class="text paragraph"
|
|
277
277
|
>
|
|
278
278
|
Lorem Ipsum
|
|
279
|
-
</
|
|
279
|
+
</ui_tag>
|
|
280
280
|
</DocumentFragment>
|
|
281
281
|
`;
|
|
282
282
|
|
|
283
283
|
exports[`primitive:<Text> testId 1`] = `
|
|
284
284
|
<DocumentFragment>
|
|
285
|
-
<
|
|
285
|
+
<ui_text
|
|
286
286
|
class="text paragraph"
|
|
287
287
|
data-testid="mirai"
|
|
288
288
|
>
|
|
289
289
|
Lorem Ipsum
|
|
290
|
-
</
|
|
290
|
+
</ui_text>
|
|
291
291
|
</DocumentFragment>
|
|
292
292
|
`;
|