@mirai/ui 2.0.6 → 2.0.7
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/build/components/Action/Action.js +1 -2
- package/build/components/Action/Action.js.map +1 -1
- package/build/components/Action/__tests__/__snapshots__/Action.test.js.snap +21 -32
- package/build/components/Button/Button.js +1 -2
- package/build/components/Button/Button.js.map +1 -1
- package/build/components/Button/__tests__/__snapshots__/Button.test.js.snap +17 -28
- package/build/components/Calendar/Calendar.Month.js +1 -0
- package/build/components/Calendar/Calendar.Month.js.map +1 -1
- package/build/components/Calendar/Calendar.Weekdays.js +1 -0
- package/build/components/Calendar/Calendar.Weekdays.js.map +1 -1
- package/build/components/Calendar/Calendar.js +3 -0
- package/build/components/Calendar/Calendar.js.map +1 -1
- package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +18284 -18162
- package/build/components/Form/Form.js +1 -2
- package/build/components/Form/Form.js.map +1 -1
- package/build/components/Form/__tests__/__snapshots__/Form.test.jsx.snap +9 -15
- package/build/components/InputDate/InputDate.js +1 -2
- package/build/components/InputDate/InputDate.js.map +1 -1
- package/build/components/InputDate/__tests__/__snapshots__/InputDate.test.js.snap +42 -67
- package/build/components/InputNumber/InputNumber.js +1 -2
- package/build/components/InputNumber/InputNumber.js.map +1 -1
- package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +114 -183
- package/build/components/InputOption/InputOption.js +3 -3
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +80 -100
- package/build/components/InputPhone/InputPhone.js +10 -5
- package/build/components/InputPhone/InputPhone.js.map +1 -1
- package/build/components/InputPhone/__tests__/__snapshots__/InputPhone.test.js.snap +339 -421
- package/build/components/InputSelect/InputSelect.js +4 -2
- package/build/components/InputSelect/InputSelect.js.map +1 -1
- package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +115 -115
- package/build/components/InputText/InputText.js +4 -3
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +133 -156
- package/build/components/Menu/Menu.js +1 -2
- package/build/components/Menu/Menu.js.map +1 -1
- package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +55 -63
- package/build/components/Modal/Modal.js +10 -7
- package/build/components/Modal/Modal.js.map +1 -1
- package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +72 -86
- package/build/components/Notification/Notification.js +1 -2
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +288 -327
- package/build/components/Progress/Progress.js +2 -3
- package/build/components/Progress/Progress.js.map +1 -1
- package/build/components/Progress/__tests__/__snapshots__/Progress.test.jsx.snap +18 -31
- package/build/components/Slider/Slider.js +8 -5
- package/build/components/Slider/Slider.js.map +1 -1
- package/build/components/Slider/Slider.module.css +3 -3
- package/build/components/Slider/__tests__/__snapshots__/Slider.test.js.snap +349 -464
- package/build/components/Table/Table.Filter.js +1 -0
- package/build/components/Table/Table.Filter.js.map +1 -1
- package/build/components/Table/Table.Row.js +0 -1
- package/build/components/Table/Table.Row.js.map +1 -1
- package/build/components/Table/Table.js +1 -2
- package/build/components/Table/Table.js.map +1 -1
- package/build/components/Table/__tests__/__snapshots__/Table.ColumnFilter.test.js.snap +192 -192
- package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +1092 -1516
- package/build/components/Tooltip/Tooltip.js +1 -2
- package/build/components/Tooltip/Tooltip.js.map +1 -1
- package/build/components/Tooltip/__tests__/__snapshots__/Tooltip.test.jsx.snap +28 -28
- package/build/primitives/Checkbox/Checkbox.js +4 -3
- package/build/primitives/Checkbox/Checkbox.js.map +1 -1
- package/build/primitives/Checkbox/__tests__/__snapshots__/Checkbox.test.js.snap +20 -35
- package/build/primitives/Icon/Icon.js +1 -2
- package/build/primitives/Icon/Icon.js.map +1 -1
- package/build/primitives/Icon/__tests__/__snapshots__/Icon.test.js.snap +82 -108
- package/build/primitives/Input/Input.js +0 -1
- package/build/primitives/Input/Input.js.map +1 -1
- package/build/primitives/Layer/Layer.js +8 -5
- package/build/primitives/Layer/Layer.js.map +1 -1
- package/build/primitives/Layer/__tests__/__snapshots__/Layer.test.js.snap +44 -44
- package/build/primitives/Pressable/Pressable.js +7 -5
- package/build/primitives/Pressable/Pressable.js.map +1 -1
- package/build/primitives/Pressable/__tests__/__snapshots__/Pressable.test.js.snap +11 -11
- package/build/primitives/Primitive/Primitive.constants.js +20 -2
- package/build/primitives/Primitive/Primitive.constants.js.map +1 -1
- package/build/primitives/Primitive/Primitive.js +13 -3
- package/build/primitives/Primitive/Primitive.js.map +1 -1
- package/build/primitives/Primitive/__tests__/__snapshots__/Primitive.test.js.snap +18 -12
- package/build/primitives/Primitive/helpers/getTag.js +3 -24
- package/build/primitives/Primitive/helpers/getTag.js.map +1 -1
- package/build/primitives/Radio/Radio.js +4 -3
- package/build/primitives/Radio/Radio.js.map +1 -1
- package/build/primitives/Radio/__tests__/__snapshots__/Radio.test.js.snap +21 -39
- package/build/primitives/ScrollView/ScrollView.js +8 -4
- package/build/primitives/ScrollView/ScrollView.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.module.css +1 -1
- package/build/primitives/ScrollView/__tests__/__snapshots__/ScrollView.test.js.snap +20 -20
- package/build/primitives/Select/Select.js +1 -2
- package/build/primitives/Select/Select.js.map +1 -1
- package/build/primitives/Select/__tests__/__snapshots__/Select.test.js.snap +0 -35
- package/build/primitives/Switch/Switch.js +1 -2
- package/build/primitives/Switch/Switch.js.map +1 -1
- package/build/primitives/Switch/__tests__/__snapshots__/Switch.test.js.snap +40 -60
- package/build/primitives/Text/Text.js +0 -1
- package/build/primitives/Text/Text.js.map +1 -1
- package/build/primitives/Text/Text.module.css +0 -4
- package/build/primitives/Text/__tests__/__snapshots__/Text.test.js.snap +62 -62
- package/build/primitives/View/View.js +5 -3
- package/build/primitives/View/View.js.map +1 -1
- package/build/primitives/View/__tests__/__snapshots__/View.test.js.snap +10 -10
- package/build/primitives/index.js +64 -0
- package/build/primitives/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -26,8 +26,7 @@ var Switch = function Switch(_ref) {
|
|
|
26
26
|
onChange && onChange(!checked, event);
|
|
27
27
|
};
|
|
28
28
|
return /*#__PURE__*/_react.default.createElement(_Primitive.Primitive, _extends({}, others, {
|
|
29
|
-
|
|
30
|
-
tag: others.tag || 'switch',
|
|
29
|
+
tag: "switch",
|
|
31
30
|
onClick: !disabled ? handleChange : undefined,
|
|
32
31
|
className: (0, _helpers.styles)(_SwitchModule.default.switch, others.className)
|
|
33
32
|
}), /*#__PURE__*/_react.default.createElement(_Primitive.Primitive, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","names":["Switch","checked","disabled","error","name","onChange","others","handleChange","event","
|
|
1
|
+
{"version":3,"file":"Switch.js","names":["Switch","checked","disabled","error","name","onChange","others","handleChange","event","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 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: PropT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B,kBAAS,CAACC,IAAI;EACvBjB,QAAQ,EAAEgB,kBAAS,CAACC,IAAI;EACxBhB,KAAK,EAAEe,kBAAS,CAACC,IAAI;EACrBf,IAAI,EAAEc,kBAAS,CAACE,MAAM,CAACC,UAAU;EACjChB,QAAQ,EAAEa,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,80 +94,60 @@ 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
|
-
</
|
|
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>
|
|
143
|
+
</ui-primitive>
|
|
144
|
+
</ui-switch>
|
|
165
145
|
</DocumentFragment>
|
|
166
146
|
`;
|
|
167
147
|
|
|
168
148
|
exports[`primitive:<Switch> testId 1`] = `
|
|
169
149
|
<DocumentFragment>
|
|
170
|
-
<
|
|
150
|
+
<ui-switch
|
|
171
151
|
class="switch"
|
|
172
152
|
data-testid="mirai"
|
|
173
153
|
>
|
|
@@ -175,13 +155,13 @@ exports[`primitive:<Switch> testId 1`] = `
|
|
|
175
155
|
name="name"
|
|
176
156
|
type="checkbox"
|
|
177
157
|
/>
|
|
178
|
-
<
|
|
158
|
+
<ui-primitive
|
|
179
159
|
class="area"
|
|
180
160
|
>
|
|
181
|
-
<
|
|
161
|
+
<ui-primitive
|
|
182
162
|
class="toggle"
|
|
183
163
|
/>
|
|
184
|
-
</
|
|
185
|
-
</
|
|
164
|
+
</ui-primitive>
|
|
165
|
+
</ui-switch>
|
|
186
166
|
</DocumentFragment>
|
|
187
167
|
`;
|
|
@@ -51,7 +51,6 @@ var Text = function Text(_ref) {
|
|
|
51
51
|
wide = _ref.wide,
|
|
52
52
|
others = _objectWithoutProperties(_ref, _excluded);
|
|
53
53
|
return /*#__PURE__*/_react.default.createElement(_Primitive.Primitive, _objectSpread(_objectSpread({}, others), {}, {
|
|
54
|
-
role: others.role || 'text',
|
|
55
54
|
tag: tag,
|
|
56
55
|
className: (0, _helpers.styles)(_TextModule.default.text, bold && _TextModule.default.bold, medium && !bold && _TextModule.default.medium, brand && _TextModule.default.brand, capitalize && _TextModule.default.capitalize, (0, _helpers2.color)({
|
|
57
56
|
accent: accent,
|
|
@@ -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","medium","small","success","tag","tiny","underline","upperCase","warning","wide","others","React","createElement","Primitive","
|
|
1
|
+
{"version":3,"file":"Text.js","names":["Text","accent","accentLight","accentDark","action","bold","brand","capitalize","children","dark","error","headline","info","level","light","markdown","medium","small","success","tag","tiny","underline","upperCase","warning","wide","others","React","createElement","Primitive","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 medium = false,\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 tag,\n className: styles(\n style.text,\n bold && style.bold,\n medium && !bold && style.medium,\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 medium: 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":";;;;;;;AAAA;AACA;AAEA;AACA;AACA;AACA;AAAsC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEtC,IAAMA,IAAI,GAAG,SAAPA,IAAI;EAAA,IACRC,MAAM,QAANA,MAAM;IACNC,WAAW,QAAXA,WAAW;IACXC,UAAU,QAAVA,UAAU;IACVC,MAAM,QAANA,MAAM;IACNC,IAAI,QAAJA,IAAI;IACJC,KAAK,QAALA,KAAK;IACLC,UAAU,QAAVA,UAAU;IACVC,QAAQ,QAARA,QAAQ;IACRC,IAAI,QAAJA,IAAI;IACJC,KAAK,QAALA,KAAK;IACLC,QAAQ,QAARA,QAAQ;IACRC,IAAI,QAAJA,IAAI;IAAA,kBACJC,KAAK;IAALA,KAAK,2BAAG,CAAC;IACTC,KAAK,QAALA,KAAK;IAAA,qBACLC,QAAQ;IAARA,QAAQ,8BAAG,IAAI;IAAA,mBACfC,MAAM;IAANA,MAAM,4BAAG,KAAK;IACdC,KAAK,QAALA,KAAK;IACLC,OAAO,QAAPA,OAAO;IAAA,gBACPC,GAAG;IAAHA,GAAG,yBAAG,MAAM;IACZC,IAAI,QAAJA,IAAI;IACJC,SAAS,QAATA,SAAS;IACTC,SAAS,QAATA,SAAS;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="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:medium 1`] = `
|
|
214
214
|
<DocumentFragment>
|
|
215
|
-
<
|
|
215
|
+
<ui-text
|
|
216
216
|
class="text medium paragraph"
|
|
217
217
|
>
|
|
218
218
|
Lorem Ipsum
|
|
219
|
-
</
|
|
219
|
+
</ui-text>
|
|
220
220
|
</DocumentFragment>
|
|
221
221
|
`;
|
|
222
222
|
|
|
223
223
|
exports[`primitive:<Text> prop:small 1`] = `
|
|
224
224
|
<DocumentFragment>
|
|
225
|
-
<
|
|
225
|
+
<ui-text
|
|
226
226
|
class="text small"
|
|
227
227
|
>
|
|
228
228
|
Lorem Ipsum
|
|
229
|
-
</
|
|
229
|
+
</ui-text>
|
|
230
230
|
</DocumentFragment>
|
|
231
231
|
`;
|
|
232
232
|
|
|
233
233
|
exports[`primitive:<Text> prop:tiny 1`] = `
|
|
234
234
|
<DocumentFragment>
|
|
235
|
-
<
|
|
235
|
+
<ui-text
|
|
236
236
|
class="text tiny"
|
|
237
237
|
>
|
|
238
238
|
Lorem Ipsum
|
|
239
|
-
</
|
|
239
|
+
</ui-text>
|
|
240
240
|
</DocumentFragment>
|
|
241
241
|
`;
|
|
242
242
|
|
|
243
243
|
exports[`primitive:<Text> prop:underline 1`] = `
|
|
244
244
|
<DocumentFragment>
|
|
245
|
-
<
|
|
245
|
+
<ui-text
|
|
246
246
|
class="text paragraph underline"
|
|
247
247
|
>
|
|
248
248
|
Lorem Ipsum
|
|
249
|
-
</
|
|
249
|
+
</ui-text>
|
|
250
250
|
</DocumentFragment>
|
|
251
251
|
`;
|
|
252
252
|
|
|
253
253
|
exports[`primitive:<Text> prop:upperCase 1`] = `
|
|
254
254
|
<DocumentFragment>
|
|
255
|
-
<
|
|
255
|
+
<ui-text
|
|
256
256
|
class="text paragraph upperCase"
|
|
257
257
|
>
|
|
258
258
|
Lorem Ipsum
|
|
259
|
-
</
|
|
259
|
+
</ui-text>
|
|
260
260
|
</DocumentFragment>
|
|
261
261
|
`;
|
|
262
262
|
|
|
263
263
|
exports[`primitive:<Text> prop:wide 1`] = `
|
|
264
264
|
<DocumentFragment>
|
|
265
|
-
<
|
|
265
|
+
<ui-text
|
|
266
266
|
class="text paragraph wide"
|
|
267
267
|
>
|
|
268
268
|
Lorem Ipsum
|
|
269
|
-
</
|
|
269
|
+
</ui-text>
|
|
270
270
|
</DocumentFragment>
|
|
271
271
|
`;
|
|
272
272
|
|
|
273
273
|
exports[`primitive:<Text> renders 1`] = `
|
|
274
274
|
<DocumentFragment>
|
|
275
|
-
<
|
|
275
|
+
<ui-text
|
|
276
276
|
class="text paragraph"
|
|
277
277
|
>
|
|
278
278
|
Lorem Ipsum
|
|
279
|
-
</
|
|
279
|
+
</ui-text>
|
|
280
280
|
</DocumentFragment>
|
|
281
281
|
`;
|
|
282
282
|
|
|
283
283
|
exports[`primitive:<Text> tag 1`] = `
|
|
284
284
|
<DocumentFragment>
|
|
285
|
-
<
|
|
285
|
+
<ui-tag
|
|
286
286
|
class="text paragraph"
|
|
287
287
|
>
|
|
288
288
|
Lorem Ipsum
|
|
289
|
-
</
|
|
289
|
+
</ui-tag>
|
|
290
290
|
</DocumentFragment>
|
|
291
291
|
`;
|
|
292
292
|
|
|
293
293
|
exports[`primitive:<Text> testId 1`] = `
|
|
294
294
|
<DocumentFragment>
|
|
295
|
-
<
|
|
295
|
+
<ui-text
|
|
296
296
|
class="text paragraph"
|
|
297
297
|
data-testid="mirai"
|
|
298
298
|
>
|
|
299
299
|
Lorem Ipsum
|
|
300
|
-
</
|
|
300
|
+
</ui-text>
|
|
301
301
|
</DocumentFragment>
|
|
302
302
|
`;
|