@mirai/ui 1.1.16 → 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/build/components/Action/Action.js +2 -5
- package/build/components/Action/Action.js.map +1 -1
- package/build/components/Action/Action.stories.js +1 -1
- package/build/components/Action/Action.stories.js.map +1 -1
- package/build/components/Action/__tests__/__snapshots__/Action.test.js.snap +42 -30
- package/build/components/Button/Button.js +4 -6
- package/build/components/Button/Button.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 +17 -4
- package/build/components/InputNumber/InputNumber.js.map +1 -1
- package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +198 -114
- 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 +1 -1
- 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/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/package.json +1 -1
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`component:<InputText> inherit:className 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
5
|
+
<ui_input_text
|
|
6
6
|
class="view inputContainer mirai"
|
|
7
7
|
>
|
|
8
|
-
<
|
|
8
|
+
<ui_view
|
|
9
9
|
class="view row inputBorder"
|
|
10
10
|
>
|
|
11
|
-
<
|
|
11
|
+
<ui_view
|
|
12
12
|
class="view wide content"
|
|
13
13
|
>
|
|
14
14
|
<input
|
|
@@ -17,26 +17,26 @@ exports[`component:<InputText> inherit:className 1`] = `
|
|
|
17
17
|
type="text"
|
|
18
18
|
value=""
|
|
19
19
|
/>
|
|
20
|
-
</
|
|
21
|
-
</
|
|
22
|
-
</
|
|
20
|
+
</ui_view>
|
|
21
|
+
</ui_view>
|
|
22
|
+
</ui_input_text>
|
|
23
23
|
</DocumentFragment>
|
|
24
24
|
`;
|
|
25
25
|
|
|
26
26
|
exports[`component:<InputText> prop:caption 1`] = `
|
|
27
27
|
<DocumentFragment>
|
|
28
|
-
<
|
|
28
|
+
<ui_input_text
|
|
29
29
|
class="view inputContainer"
|
|
30
30
|
>
|
|
31
|
-
<
|
|
31
|
+
<ui_view
|
|
32
32
|
class="view row inputBorder"
|
|
33
33
|
>
|
|
34
|
-
<
|
|
34
|
+
<ui_text
|
|
35
35
|
class="text light action caption"
|
|
36
36
|
>
|
|
37
37
|
caption
|
|
38
|
-
</
|
|
39
|
-
<
|
|
38
|
+
</ui_text>
|
|
39
|
+
<ui_view
|
|
40
40
|
class="view wide content"
|
|
41
41
|
>
|
|
42
42
|
<input
|
|
@@ -45,21 +45,21 @@ exports[`component:<InputText> prop:caption 1`] = `
|
|
|
45
45
|
type="text"
|
|
46
46
|
value=""
|
|
47
47
|
/>
|
|
48
|
-
</
|
|
49
|
-
</
|
|
50
|
-
</
|
|
48
|
+
</ui_view>
|
|
49
|
+
</ui_view>
|
|
50
|
+
</ui_input_text>
|
|
51
51
|
</DocumentFragment>
|
|
52
52
|
`;
|
|
53
53
|
|
|
54
54
|
exports[`component:<InputText> prop:disabled 1`] = `
|
|
55
55
|
<DocumentFragment>
|
|
56
|
-
<
|
|
56
|
+
<ui_input_text
|
|
57
57
|
class="view inputContainer"
|
|
58
58
|
>
|
|
59
|
-
<
|
|
59
|
+
<ui_view
|
|
60
60
|
class="view row inputBorder disabled"
|
|
61
61
|
>
|
|
62
|
-
<
|
|
62
|
+
<ui_view
|
|
63
63
|
class="view wide content"
|
|
64
64
|
>
|
|
65
65
|
<input
|
|
@@ -69,21 +69,21 @@ exports[`component:<InputText> prop:disabled 1`] = `
|
|
|
69
69
|
type="text"
|
|
70
70
|
value=""
|
|
71
71
|
/>
|
|
72
|
-
</
|
|
73
|
-
</
|
|
74
|
-
</
|
|
72
|
+
</ui_view>
|
|
73
|
+
</ui_view>
|
|
74
|
+
</ui_input_text>
|
|
75
75
|
</DocumentFragment>
|
|
76
76
|
`;
|
|
77
77
|
|
|
78
78
|
exports[`component:<InputText> prop:error 1`] = `
|
|
79
79
|
<DocumentFragment>
|
|
80
|
-
<
|
|
80
|
+
<ui_input_text
|
|
81
81
|
class="view inputContainer"
|
|
82
82
|
>
|
|
83
|
-
<
|
|
83
|
+
<ui_view
|
|
84
84
|
class="view row inputBorder error"
|
|
85
85
|
>
|
|
86
|
-
<
|
|
86
|
+
<ui_view
|
|
87
87
|
class="view wide content"
|
|
88
88
|
>
|
|
89
89
|
<input
|
|
@@ -92,8 +92,8 @@ exports[`component:<InputText> prop:error 1`] = `
|
|
|
92
92
|
type="text"
|
|
93
93
|
value=""
|
|
94
94
|
/>
|
|
95
|
-
</
|
|
96
|
-
<
|
|
95
|
+
</ui_view>
|
|
96
|
+
<ui_icon
|
|
97
97
|
class="icon headline-3 icon error"
|
|
98
98
|
>
|
|
99
99
|
<svg
|
|
@@ -113,21 +113,21 @@ exports[`component:<InputText> prop:error 1`] = `
|
|
|
113
113
|
d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
114
114
|
/>
|
|
115
115
|
</svg>
|
|
116
|
-
</
|
|
117
|
-
</
|
|
118
|
-
</
|
|
116
|
+
</ui_icon>
|
|
117
|
+
</ui_view>
|
|
118
|
+
</ui_input_text>
|
|
119
119
|
</DocumentFragment>
|
|
120
120
|
`;
|
|
121
121
|
|
|
122
122
|
exports[`component:<InputText> prop:hint 1`] = `
|
|
123
123
|
<DocumentFragment>
|
|
124
|
-
<
|
|
124
|
+
<ui_input_text
|
|
125
125
|
class="view inputContainer"
|
|
126
126
|
>
|
|
127
|
-
<
|
|
127
|
+
<ui_view
|
|
128
128
|
class="view row inputBorder"
|
|
129
129
|
>
|
|
130
|
-
<
|
|
130
|
+
<ui_view
|
|
131
131
|
class="view wide content"
|
|
132
132
|
>
|
|
133
133
|
<input
|
|
@@ -136,26 +136,26 @@ exports[`component:<InputText> prop:hint 1`] = `
|
|
|
136
136
|
type="text"
|
|
137
137
|
value=""
|
|
138
138
|
/>
|
|
139
|
-
</
|
|
140
|
-
</
|
|
141
|
-
<
|
|
139
|
+
</ui_view>
|
|
140
|
+
</ui_view>
|
|
141
|
+
<ui_text
|
|
142
142
|
class="text small text hint"
|
|
143
143
|
>
|
|
144
144
|
hint
|
|
145
|
-
</
|
|
146
|
-
</
|
|
145
|
+
</ui_text>
|
|
146
|
+
</ui_input_text>
|
|
147
147
|
</DocumentFragment>
|
|
148
148
|
`;
|
|
149
149
|
|
|
150
150
|
exports[`component:<InputText> prop:icon 1`] = `
|
|
151
151
|
<DocumentFragment>
|
|
152
|
-
<
|
|
152
|
+
<ui_input_text
|
|
153
153
|
class="view inputContainer"
|
|
154
154
|
>
|
|
155
|
-
<
|
|
155
|
+
<ui_view
|
|
156
156
|
class="view row inputBorder"
|
|
157
157
|
>
|
|
158
|
-
<
|
|
158
|
+
<ui_icon
|
|
159
159
|
class="icon headline-3 icon left"
|
|
160
160
|
>
|
|
161
161
|
<svg
|
|
@@ -175,8 +175,8 @@ exports[`component:<InputText> prop:icon 1`] = `
|
|
|
175
175
|
d="M12 6a9.77 9.77 0 0 1 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5A9.77 9.77 0 0 1 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z"
|
|
176
176
|
/>
|
|
177
177
|
</svg>
|
|
178
|
-
</
|
|
179
|
-
<
|
|
178
|
+
</ui_icon>
|
|
179
|
+
<ui_view
|
|
180
180
|
class="view wide content"
|
|
181
181
|
>
|
|
182
182
|
<input
|
|
@@ -185,49 +185,51 @@ exports[`component:<InputText> prop:icon 1`] = `
|
|
|
185
185
|
type="text"
|
|
186
186
|
value=""
|
|
187
187
|
/>
|
|
188
|
-
</
|
|
189
|
-
</
|
|
190
|
-
</
|
|
188
|
+
</ui_view>
|
|
189
|
+
</ui_view>
|
|
190
|
+
</ui_input_text>
|
|
191
191
|
</DocumentFragment>
|
|
192
192
|
`;
|
|
193
193
|
|
|
194
194
|
exports[`component:<InputText> prop:label 1`] = `
|
|
195
195
|
<DocumentFragment>
|
|
196
|
-
<
|
|
196
|
+
<ui_input_text
|
|
197
197
|
class="view inputContainer"
|
|
198
198
|
>
|
|
199
|
-
<
|
|
199
|
+
<ui_view
|
|
200
200
|
class="view row inputBorder"
|
|
201
201
|
>
|
|
202
|
-
<
|
|
202
|
+
<ui_view
|
|
203
203
|
class="view wide content"
|
|
204
204
|
>
|
|
205
|
-
<
|
|
205
|
+
<label
|
|
206
206
|
class="text paragraph text label"
|
|
207
|
+
for="input.name"
|
|
207
208
|
>
|
|
208
209
|
label
|
|
209
|
-
</
|
|
210
|
+
</label>
|
|
210
211
|
<input
|
|
211
212
|
class="input input withLabel"
|
|
213
|
+
id="input.name"
|
|
212
214
|
name="name"
|
|
213
215
|
type="text"
|
|
214
216
|
value=""
|
|
215
217
|
/>
|
|
216
|
-
</
|
|
217
|
-
</
|
|
218
|
-
</
|
|
218
|
+
</ui_view>
|
|
219
|
+
</ui_view>
|
|
220
|
+
</ui_input_text>
|
|
219
221
|
</DocumentFragment>
|
|
220
222
|
`;
|
|
221
223
|
|
|
222
224
|
exports[`component:<InputText> prop:markdown 1`] = `
|
|
223
225
|
<DocumentFragment>
|
|
224
|
-
<
|
|
226
|
+
<ui_input_text
|
|
225
227
|
class="view inputContainer"
|
|
226
228
|
>
|
|
227
|
-
<
|
|
229
|
+
<ui_view
|
|
228
230
|
class="view row inputBorder"
|
|
229
231
|
>
|
|
230
|
-
<
|
|
232
|
+
<ui_view
|
|
231
233
|
class="view wide content"
|
|
232
234
|
>
|
|
233
235
|
<input
|
|
@@ -236,11 +238,12 @@ exports[`component:<InputText> prop:markdown 1`] = `
|
|
|
236
238
|
type="text"
|
|
237
239
|
value=""
|
|
238
240
|
/>
|
|
239
|
-
</
|
|
240
|
-
<
|
|
241
|
+
</ui_view>
|
|
242
|
+
<ui_pressable
|
|
241
243
|
class="pressable"
|
|
244
|
+
tabindex="0"
|
|
242
245
|
>
|
|
243
|
-
<
|
|
246
|
+
<ui_icon
|
|
244
247
|
class="icon headline-3 icon disabled"
|
|
245
248
|
>
|
|
246
249
|
<svg
|
|
@@ -256,47 +259,48 @@ exports[`component:<InputText> prop:markdown 1`] = `
|
|
|
256
259
|
d="M 2.875 6 C 1.320313 6 0 7.253906 0 8.8125 L 0 23.1875 C 0 24.746094 1.320313 26 2.875 26 L 29.125 26 C 30.679688 26 32 24.746094 32 23.1875 L 32 8.8125 C 32 7.253906 30.679688 6 29.125 6 Z M 2.875 8 L 29.125 8 C 29.640625 8 30 8.382813 30 8.8125 L 30 23.1875 C 30 23.617188 29.640625 24 29.125 24 L 2.875 24 C 2.359375 24 2 23.617188 2 23.1875 L 2 8.8125 C 2 8.382813 2.359375 8 2.875 8 Z M 5 11 L 5 21 L 8 21 L 8 14.34375 L 11 18.3125 L 14 14.34375 L 14 21 L 17 21 L 17 11 L 14 11 L 11 15 L 8 11 Z M 22 11 L 22 16 L 19 16 L 23.5 21 L 28 16 L 25 16 L 25 11 Z"
|
|
257
260
|
/>
|
|
258
261
|
</svg>
|
|
259
|
-
</
|
|
260
|
-
</
|
|
261
|
-
</
|
|
262
|
-
</
|
|
262
|
+
</ui_icon>
|
|
263
|
+
</ui_pressable>
|
|
264
|
+
</ui_view>
|
|
265
|
+
</ui_input_text>
|
|
263
266
|
</DocumentFragment>
|
|
264
267
|
`;
|
|
265
268
|
|
|
266
269
|
exports[`component:<InputText> prop:multiLine 1`] = `
|
|
267
270
|
<DocumentFragment>
|
|
268
|
-
<
|
|
271
|
+
<ui_input_text
|
|
269
272
|
class="view inputContainer"
|
|
270
273
|
>
|
|
271
|
-
<
|
|
274
|
+
<ui_view
|
|
272
275
|
class="view row inputBorder"
|
|
273
276
|
>
|
|
274
|
-
<
|
|
277
|
+
<ui_view
|
|
275
278
|
class="view wide content"
|
|
276
279
|
>
|
|
277
280
|
<textarea
|
|
278
281
|
class="input input multiLine"
|
|
279
282
|
name="name"
|
|
280
283
|
/>
|
|
281
|
-
</
|
|
282
|
-
</
|
|
283
|
-
</
|
|
284
|
+
</ui_view>
|
|
285
|
+
</ui_view>
|
|
286
|
+
</ui_input_text>
|
|
284
287
|
</DocumentFragment>
|
|
285
288
|
`;
|
|
286
289
|
|
|
287
290
|
exports[`component:<InputText> prop:required & prop:showRequired (true) 1`] = `
|
|
288
291
|
<DocumentFragment>
|
|
289
|
-
<
|
|
292
|
+
<ui_input_text
|
|
290
293
|
class="view inputContainer"
|
|
291
294
|
>
|
|
292
|
-
<
|
|
295
|
+
<ui_view
|
|
293
296
|
class="view row inputBorder"
|
|
294
297
|
>
|
|
295
|
-
<
|
|
298
|
+
<ui_view
|
|
296
299
|
class="view wide content"
|
|
297
300
|
>
|
|
298
|
-
<
|
|
301
|
+
<label
|
|
299
302
|
class="text paragraph text label"
|
|
303
|
+
for="input.name"
|
|
300
304
|
>
|
|
301
305
|
label
|
|
302
306
|
<span
|
|
@@ -304,58 +308,61 @@ exports[`component:<InputText> prop:required & prop:showRequired (true) 1`] = `
|
|
|
304
308
|
>
|
|
305
309
|
*
|
|
306
310
|
</span>
|
|
307
|
-
</
|
|
311
|
+
</label>
|
|
308
312
|
<input
|
|
309
313
|
class="input input withLabel"
|
|
314
|
+
id="input.name"
|
|
310
315
|
name="name"
|
|
311
316
|
required=""
|
|
312
317
|
type="text"
|
|
313
318
|
value=""
|
|
314
319
|
/>
|
|
315
|
-
</
|
|
316
|
-
</
|
|
317
|
-
</
|
|
320
|
+
</ui_view>
|
|
321
|
+
</ui_view>
|
|
322
|
+
</ui_input_text>
|
|
318
323
|
</DocumentFragment>
|
|
319
324
|
`;
|
|
320
325
|
|
|
321
326
|
exports[`component:<InputText> prop:required 1`] = `
|
|
322
327
|
<DocumentFragment>
|
|
323
|
-
<
|
|
328
|
+
<ui_input_text
|
|
324
329
|
class="view inputContainer"
|
|
325
330
|
>
|
|
326
|
-
<
|
|
331
|
+
<ui_view
|
|
327
332
|
class="view row inputBorder"
|
|
328
333
|
>
|
|
329
|
-
<
|
|
334
|
+
<ui_view
|
|
330
335
|
class="view wide content"
|
|
331
336
|
>
|
|
332
|
-
<
|
|
337
|
+
<label
|
|
333
338
|
class="text paragraph text label"
|
|
339
|
+
for="input.name"
|
|
334
340
|
>
|
|
335
341
|
label
|
|
336
|
-
</
|
|
342
|
+
</label>
|
|
337
343
|
<input
|
|
338
344
|
class="input input withLabel"
|
|
345
|
+
id="input.name"
|
|
339
346
|
name="name"
|
|
340
347
|
required=""
|
|
341
348
|
type="text"
|
|
342
349
|
value=""
|
|
343
350
|
/>
|
|
344
|
-
</
|
|
345
|
-
</
|
|
346
|
-
</
|
|
351
|
+
</ui_view>
|
|
352
|
+
</ui_view>
|
|
353
|
+
</ui_input_text>
|
|
347
354
|
</DocumentFragment>
|
|
348
355
|
`;
|
|
349
356
|
|
|
350
357
|
exports[`component:<InputText> prop:showState (false) 1`] = `
|
|
351
358
|
<DocumentFragment>
|
|
352
|
-
<
|
|
359
|
+
<ui_input_text
|
|
353
360
|
class="view inputContainer"
|
|
354
361
|
>
|
|
355
|
-
<
|
|
362
|
+
<ui_view
|
|
356
363
|
class="view row inputBorder error"
|
|
357
364
|
>
|
|
358
|
-
<
|
|
365
|
+
<ui_view
|
|
359
366
|
class="view wide content"
|
|
360
367
|
>
|
|
361
368
|
<input
|
|
@@ -364,8 +371,8 @@ exports[`component:<InputText> prop:showState (false) 1`] = `
|
|
|
364
371
|
type="text"
|
|
365
372
|
value=""
|
|
366
373
|
/>
|
|
367
|
-
</
|
|
368
|
-
<
|
|
374
|
+
</ui_view>
|
|
375
|
+
<ui_icon
|
|
369
376
|
class="icon headline-3 icon error"
|
|
370
377
|
>
|
|
371
378
|
<svg
|
|
@@ -385,21 +392,21 @@ exports[`component:<InputText> prop:showState (false) 1`] = `
|
|
|
385
392
|
d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
386
393
|
/>
|
|
387
394
|
</svg>
|
|
388
|
-
</
|
|
389
|
-
</
|
|
390
|
-
</
|
|
395
|
+
</ui_icon>
|
|
396
|
+
</ui_view>
|
|
397
|
+
</ui_input_text>
|
|
391
398
|
</DocumentFragment>
|
|
392
399
|
`;
|
|
393
400
|
|
|
394
401
|
exports[`component:<InputText> prop:success 1`] = `
|
|
395
402
|
<DocumentFragment>
|
|
396
|
-
<
|
|
403
|
+
<ui_input_text
|
|
397
404
|
class="view inputContainer"
|
|
398
405
|
>
|
|
399
|
-
<
|
|
406
|
+
<ui_view
|
|
400
407
|
class="view row inputBorder"
|
|
401
408
|
>
|
|
402
|
-
<
|
|
409
|
+
<ui_view
|
|
403
410
|
class="view wide content"
|
|
404
411
|
>
|
|
405
412
|
<input
|
|
@@ -408,8 +415,8 @@ exports[`component:<InputText> prop:success 1`] = `
|
|
|
408
415
|
type="text"
|
|
409
416
|
value=""
|
|
410
417
|
/>
|
|
411
|
-
</
|
|
412
|
-
<
|
|
418
|
+
</ui_view>
|
|
419
|
+
<ui_icon
|
|
413
420
|
class="icon headline-3 icon success"
|
|
414
421
|
>
|
|
415
422
|
<svg
|
|
@@ -429,21 +436,21 @@ exports[`component:<InputText> prop:success 1`] = `
|
|
|
429
436
|
d="M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
430
437
|
/>
|
|
431
438
|
</svg>
|
|
432
|
-
</
|
|
433
|
-
</
|
|
434
|
-
</
|
|
439
|
+
</ui_icon>
|
|
440
|
+
</ui_view>
|
|
441
|
+
</ui_input_text>
|
|
435
442
|
</DocumentFragment>
|
|
436
443
|
`;
|
|
437
444
|
|
|
438
445
|
exports[`component:<InputText> prop:type 1`] = `
|
|
439
446
|
<DocumentFragment>
|
|
440
|
-
<
|
|
447
|
+
<ui_input_text
|
|
441
448
|
class="view inputContainer"
|
|
442
449
|
>
|
|
443
|
-
<
|
|
450
|
+
<ui_view
|
|
444
451
|
class="view row inputBorder"
|
|
445
452
|
>
|
|
446
|
-
<
|
|
453
|
+
<ui_view
|
|
447
454
|
class="view wide content"
|
|
448
455
|
>
|
|
449
456
|
<input
|
|
@@ -452,12 +459,12 @@ exports[`component:<InputText> prop:type 1`] = `
|
|
|
452
459
|
type="password"
|
|
453
460
|
value=""
|
|
454
461
|
/>
|
|
455
|
-
</
|
|
456
|
-
<
|
|
462
|
+
</ui_view>
|
|
463
|
+
<ui_pressable
|
|
457
464
|
class="pressable"
|
|
458
465
|
tabindex="-1"
|
|
459
466
|
>
|
|
460
|
-
<
|
|
467
|
+
<ui_icon
|
|
461
468
|
class="icon headline-3 icon password"
|
|
462
469
|
>
|
|
463
470
|
<svg
|
|
@@ -477,22 +484,22 @@ exports[`component:<InputText> prop:type 1`] = `
|
|
|
477
484
|
d="M12 6a9.77 9.77 0 0 1 8.82 5.5 9.647 9.647 0 0 1-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68A11.738 11.738 0 0 0 1 11.5C2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 0 1-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4 1.75 1.75a4.6 4.6 0 0 0-.36 1.78 4.507 4.507 0 0 0 6.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 0 1-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z"
|
|
478
485
|
/>
|
|
479
486
|
</svg>
|
|
480
|
-
</
|
|
481
|
-
</
|
|
482
|
-
</
|
|
483
|
-
</
|
|
487
|
+
</ui_icon>
|
|
488
|
+
</ui_pressable>
|
|
489
|
+
</ui_view>
|
|
490
|
+
</ui_input_text>
|
|
484
491
|
</DocumentFragment>
|
|
485
492
|
`;
|
|
486
493
|
|
|
487
494
|
exports[`component:<InputText> prop:warning 1`] = `
|
|
488
495
|
<DocumentFragment>
|
|
489
|
-
<
|
|
496
|
+
<ui_input_text
|
|
490
497
|
class="view inputContainer"
|
|
491
498
|
>
|
|
492
|
-
<
|
|
499
|
+
<ui_view
|
|
493
500
|
class="view row inputBorder"
|
|
494
501
|
>
|
|
495
|
-
<
|
|
502
|
+
<ui_view
|
|
496
503
|
class="view wide content"
|
|
497
504
|
>
|
|
498
505
|
<input
|
|
@@ -501,8 +508,8 @@ exports[`component:<InputText> prop:warning 1`] = `
|
|
|
501
508
|
type="text"
|
|
502
509
|
value=""
|
|
503
510
|
/>
|
|
504
|
-
</
|
|
505
|
-
<
|
|
511
|
+
</ui_view>
|
|
512
|
+
<ui_icon
|
|
506
513
|
class="icon headline-3 icon warning"
|
|
507
514
|
>
|
|
508
515
|
<svg
|
|
@@ -518,21 +525,21 @@ exports[`component:<InputText> prop:warning 1`] = `
|
|
|
518
525
|
d="M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
519
526
|
/>
|
|
520
527
|
</svg>
|
|
521
|
-
</
|
|
522
|
-
</
|
|
523
|
-
</
|
|
528
|
+
</ui_icon>
|
|
529
|
+
</ui_view>
|
|
530
|
+
</ui_input_text>
|
|
524
531
|
</DocumentFragment>
|
|
525
532
|
`;
|
|
526
533
|
|
|
527
534
|
exports[`component:<InputText> renders 1`] = `
|
|
528
535
|
<DocumentFragment>
|
|
529
|
-
<
|
|
536
|
+
<ui_input_text
|
|
530
537
|
class="view inputContainer"
|
|
531
538
|
>
|
|
532
|
-
<
|
|
539
|
+
<ui_view
|
|
533
540
|
class="view row inputBorder"
|
|
534
541
|
>
|
|
535
|
-
<
|
|
542
|
+
<ui_view
|
|
536
543
|
class="view wide content"
|
|
537
544
|
>
|
|
538
545
|
<input
|
|
@@ -541,21 +548,44 @@ exports[`component:<InputText> renders 1`] = `
|
|
|
541
548
|
type="text"
|
|
542
549
|
value=""
|
|
543
550
|
/>
|
|
544
|
-
</
|
|
545
|
-
</
|
|
546
|
-
</
|
|
551
|
+
</ui_view>
|
|
552
|
+
</ui_view>
|
|
553
|
+
</ui_input_text>
|
|
554
|
+
</DocumentFragment>
|
|
555
|
+
`;
|
|
556
|
+
|
|
557
|
+
exports[`component:<InputText> tag 1`] = `
|
|
558
|
+
<DocumentFragment>
|
|
559
|
+
<ui_tag
|
|
560
|
+
class="view inputContainer"
|
|
561
|
+
>
|
|
562
|
+
<ui_view
|
|
563
|
+
class="view row inputBorder"
|
|
564
|
+
>
|
|
565
|
+
<ui_view
|
|
566
|
+
class="view wide content"
|
|
567
|
+
>
|
|
568
|
+
<input
|
|
569
|
+
class="input input"
|
|
570
|
+
name="name"
|
|
571
|
+
type="text"
|
|
572
|
+
value=""
|
|
573
|
+
/>
|
|
574
|
+
</ui_view>
|
|
575
|
+
</ui_view>
|
|
576
|
+
</ui_tag>
|
|
547
577
|
</DocumentFragment>
|
|
548
578
|
`;
|
|
549
579
|
|
|
550
580
|
exports[`component:<InputText> testId 1`] = `
|
|
551
581
|
<DocumentFragment>
|
|
552
|
-
<
|
|
582
|
+
<ui_input_text
|
|
553
583
|
class="view inputContainer"
|
|
554
584
|
>
|
|
555
|
-
<
|
|
585
|
+
<ui_view
|
|
556
586
|
class="view row inputBorder"
|
|
557
587
|
>
|
|
558
|
-
<
|
|
588
|
+
<ui_view
|
|
559
589
|
class="view wide content"
|
|
560
590
|
>
|
|
561
591
|
<input
|
|
@@ -565,8 +595,8 @@ exports[`component:<InputText> testId 1`] = `
|
|
|
565
595
|
type="text"
|
|
566
596
|
value=""
|
|
567
597
|
/>
|
|
568
|
-
</
|
|
569
|
-
</
|
|
570
|
-
</
|
|
598
|
+
</ui_view>
|
|
599
|
+
</ui_view>
|
|
600
|
+
</ui_input_text>
|
|
571
601
|
</DocumentFragment>
|
|
572
602
|
`;
|
|
@@ -24,6 +24,7 @@ var Label = function Label(_ref) {
|
|
|
24
24
|
value = _ref.value,
|
|
25
25
|
others = _objectWithoutProperties(_ref, _excluded);
|
|
26
26
|
return /*#__PURE__*/_react.default.createElement(_primitives.Text, _extends({}, others, {
|
|
27
|
+
tag: "label",
|
|
27
28
|
className: (0, _helpers.styles)(_InputTextModule.default.text, others.className || _InputTextModule.default.label, disabled && _InputTextModule.default.disabled, focus && _InputTextModule.default.focus, error && _InputTextModule.default.error, (focus || error || value !== undefined && ((value === null || value === void 0 ? void 0 : value.length) > 0 || typeof value === 'number')) && _InputTextModule.default.withValue)
|
|
28
29
|
}), label, required && !disabled && /*#__PURE__*/_react.default.createElement("span", {
|
|
29
30
|
className: _InputTextModule.default.required
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputText.Label.js","names":["Label","disabled","error","focus","label","required","value","others","styles","style","text","className","undefined","length","withValue","displayName","propTypes","PropTypes","bool","string"],"sources":["../../../../src/components/InputText/partials/InputText.Label.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../../helpers';\nimport { Text } from '../../../primitives';\nimport style from '../InputText.module.css';\n\nconst Label = ({ disabled, error, focus, label, required = false, value, ...others }) => (\n <Text\n {...others}\n className={styles(\n style.text,\n others.className || style.label,\n disabled && style.disabled,\n focus && style.focus,\n error && style.error,\n (focus || error || (value !== undefined && (value?.length > 0 || typeof value === 'number'))) && style.withValue,\n )}\n >\n {label}\n {required && !disabled && <span className={style.required}> *</span>}\n </Text>\n);\n\nLabel.displayName = 'Component:InputText.Label';\n\nLabel.propTypes = {\n disabled: PropTypes.bool,\n error: PropTypes.bool,\n focus: PropTypes.bool,\n label: PropTypes.string,\n required: PropTypes.bool,\n value: PropTypes.string,\n};\n\nexport { Label };\n"],"mappings":";;;;;;AAAA;AACA;AAEA;AACA;AACA;AAA4C;AAAA;AAAA;AAAA;AAAA;AAE5C,IAAMA,KAAK,GAAG,SAARA,KAAK;EAAA,IAAMC,QAAQ,QAARA,QAAQ;IAAEC,KAAK,QAALA,KAAK;IAAEC,KAAK,QAALA,KAAK;IAAEC,KAAK,QAALA,KAAK;IAAA,qBAAEC,QAAQ;IAARA,QAAQ,8BAAG,KAAK;IAAEC,KAAK,QAALA,KAAK;IAAKC,MAAM;EAAA,oBAChF,6BAAC,gBAAI,eACCA,MAAM;IACV,SAAS,EAAE,IAAAC,eAAM,EACfC,wBAAK,CAACC,IAAI,EACVH,MAAM,CAACI,SAAS,IAAIF,wBAAK,CAACL,KAAK,EAC/BH,QAAQ,IAAIQ,wBAAK,CAACR,QAAQ,EAC1BE,KAAK,IAAIM,wBAAK,CAACN,KAAK,EACpBD,KAAK,IAAIO,wBAAK,CAACP,KAAK,EACpB,CAACC,KAAK,IAAID,KAAK,IAAKI,KAAK,KAAKM,SAAS,KAAK,CAAAN,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEO,MAAM,IAAG,CAAC,IAAI,OAAOP,KAAK,KAAK,QAAQ,CAAE,KAAKG,wBAAK,CAACK,SAAS;EAChH,IAEDV,KAAK,EACLC,QAAQ,IAAI,CAACJ,QAAQ,iBAAI;IAAM,SAAS,EAAEQ,wBAAK,CAACJ;EAAS,QAAU,CAC/D;AAAA,CACR;AAAC;AAEFL,KAAK,CAACe,WAAW,GAAG,2BAA2B;AAE/Cf,KAAK,CAACgB,SAAS,GAAG;EAChBf,QAAQ,EAAEgB,kBAAS,CAACC,IAAI;EACxBhB,KAAK,EAAEe,kBAAS,CAACC,IAAI;EACrBf,KAAK,EAAEc,kBAAS,CAACC,IAAI;EACrBd,KAAK,EAAEa,kBAAS,CAACE,MAAM;EACvBd,QAAQ,EAAEY,kBAAS,CAACC,IAAI;EACxBZ,KAAK,EAAEW,kBAAS,CAACE;AACnB,CAAC"}
|
|
1
|
+
{"version":3,"file":"InputText.Label.js","names":["Label","disabled","error","focus","label","required","value","others","styles","style","text","className","undefined","length","withValue","displayName","propTypes","PropTypes","bool","string"],"sources":["../../../../src/components/InputText/partials/InputText.Label.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../../helpers';\nimport { Text } from '../../../primitives';\nimport style from '../InputText.module.css';\n\nconst Label = ({ disabled, error, focus, label, required = false, value, ...others }) => (\n <Text\n {...others}\n tag=\"label\"\n className={styles(\n style.text,\n others.className || style.label,\n disabled && style.disabled,\n focus && style.focus,\n error && style.error,\n (focus || error || (value !== undefined && (value?.length > 0 || typeof value === 'number'))) && style.withValue,\n )}\n >\n {label}\n {required && !disabled && <span className={style.required}> *</span>}\n </Text>\n);\n\nLabel.displayName = 'Component:InputText.Label';\n\nLabel.propTypes = {\n disabled: PropTypes.bool,\n error: PropTypes.bool,\n focus: PropTypes.bool,\n label: PropTypes.string,\n required: PropTypes.bool,\n value: PropTypes.string,\n};\n\nexport { Label };\n"],"mappings":";;;;;;AAAA;AACA;AAEA;AACA;AACA;AAA4C;AAAA;AAAA;AAAA;AAAA;AAE5C,IAAMA,KAAK,GAAG,SAARA,KAAK;EAAA,IAAMC,QAAQ,QAARA,QAAQ;IAAEC,KAAK,QAALA,KAAK;IAAEC,KAAK,QAALA,KAAK;IAAEC,KAAK,QAALA,KAAK;IAAA,qBAAEC,QAAQ;IAARA,QAAQ,8BAAG,KAAK;IAAEC,KAAK,QAALA,KAAK;IAAKC,MAAM;EAAA,oBAChF,6BAAC,gBAAI,eACCA,MAAM;IACV,GAAG,EAAC,OAAO;IACX,SAAS,EAAE,IAAAC,eAAM,EACfC,wBAAK,CAACC,IAAI,EACVH,MAAM,CAACI,SAAS,IAAIF,wBAAK,CAACL,KAAK,EAC/BH,QAAQ,IAAIQ,wBAAK,CAACR,QAAQ,EAC1BE,KAAK,IAAIM,wBAAK,CAACN,KAAK,EACpBD,KAAK,IAAIO,wBAAK,CAACP,KAAK,EACpB,CAACC,KAAK,IAAID,KAAK,IAAKI,KAAK,KAAKM,SAAS,KAAK,CAAAN,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEO,MAAM,IAAG,CAAC,IAAI,OAAOP,KAAK,KAAK,QAAQ,CAAE,KAAKG,wBAAK,CAACK,SAAS;EAChH,IAEDV,KAAK,EACLC,QAAQ,IAAI,CAACJ,QAAQ,iBAAI;IAAM,SAAS,EAAEQ,wBAAK,CAACJ;EAAS,QAAU,CAC/D;AAAA,CACR;AAAC;AAEFL,KAAK,CAACe,WAAW,GAAG,2BAA2B;AAE/Cf,KAAK,CAACgB,SAAS,GAAG;EAChBf,QAAQ,EAAEgB,kBAAS,CAACC,IAAI;EACxBhB,KAAK,EAAEe,kBAAS,CAACC,IAAI;EACrBf,KAAK,EAAEc,kBAAS,CAACC,IAAI;EACrBd,KAAK,EAAEa,kBAAS,CAACE,MAAM;EACvBd,QAAQ,EAAEY,kBAAS,CAACC,IAAI;EACxBZ,KAAK,EAAEW,kBAAS,CAACE;AACnB,CAAC"}
|
|
@@ -51,6 +51,7 @@ var Menu = function Menu(_ref) {
|
|
|
51
51
|
}, others, {
|
|
52
52
|
visible: visible,
|
|
53
53
|
role: others.role || 'menu',
|
|
54
|
+
tag: others.tag || 'menu',
|
|
54
55
|
className: (0, _helpers.styles)(_MenuModule.default.menu, visible && _MenuModule.default.visible, others.className)
|
|
55
56
|
}), children, /*#__PURE__*/_react.default.createElement(_primitives.LayerContent, null, renderOptions())) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children, /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
|
|
56
57
|
title: title,
|