@mirai/ui 1.1.16 → 2.0.2
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 +15608 -15576
- 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 +28 -10
- 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 +485 -349
- 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 +890 -444
- 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 +79 -30
- package/build/primitives/ScrollView/ScrollView.js.map +1 -1
- package/build/primitives/ScrollView/ScrollView.module.css +53 -7
- package/build/primitives/ScrollView/ScrollView.stories.js +7 -6
- package/build/primitives/ScrollView/ScrollView.stories.js.map +1 -1
- package/build/primitives/ScrollView/__tests__/__snapshots__/ScrollView.test.js.snap +33 -33
- 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,23 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`component:<Modal> Mobile environment prop:onClose 1`] = `
|
|
4
4
|
<DocumentFragment>
|
|
5
|
-
<
|
|
5
|
+
<ui_modal_overflow
|
|
6
6
|
class="pressable container overflow visible"
|
|
7
7
|
data-testid="mirai-onClose-overflow"
|
|
8
8
|
style="height: 768px;"
|
|
9
|
+
tabindex="0"
|
|
9
10
|
>
|
|
10
|
-
<
|
|
11
|
+
<ui_view
|
|
11
12
|
class="view fit modal calcWidth visible"
|
|
12
13
|
data-testid="mirai-onClose"
|
|
13
14
|
>
|
|
14
|
-
<
|
|
15
|
+
<ui_view
|
|
15
16
|
class="view row header hideBack"
|
|
16
17
|
>
|
|
17
18
|
<button
|
|
18
19
|
class="pressable button small squared transparent button"
|
|
19
20
|
data-testid="mirai-onClose-button-close"
|
|
21
|
+
tabindex="0"
|
|
20
22
|
>
|
|
21
|
-
<
|
|
23
|
+
<ui_icon
|
|
22
24
|
class="icon headline-3 icon"
|
|
23
25
|
>
|
|
24
26
|
<svg
|
|
@@ -39,47 +41,50 @@ exports[`component:<Modal> Mobile environment prop:onClose 1`] = `
|
|
|
39
41
|
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
40
42
|
/>
|
|
41
43
|
</svg>
|
|
42
|
-
</
|
|
44
|
+
</ui_icon>
|
|
43
45
|
</button>
|
|
44
|
-
</
|
|
45
|
-
</
|
|
46
|
-
</
|
|
46
|
+
</ui_view>
|
|
47
|
+
</ui_view>
|
|
48
|
+
</ui_modal_overflow>
|
|
47
49
|
</DocumentFragment>
|
|
48
50
|
`;
|
|
49
51
|
|
|
50
52
|
exports[`component:<Modal> Mobile environment prop:visible 1`] = `
|
|
51
53
|
<DocumentFragment>
|
|
52
|
-
<
|
|
54
|
+
<ui_modal_overflow
|
|
53
55
|
class="pressable container overflow visible"
|
|
54
56
|
style="height: 768px;"
|
|
57
|
+
tabindex="0"
|
|
55
58
|
>
|
|
56
|
-
<
|
|
59
|
+
<ui_view
|
|
57
60
|
class="view fit modal calcWidth visible"
|
|
58
61
|
/>
|
|
59
|
-
</
|
|
62
|
+
</ui_modal_overflow>
|
|
60
63
|
</DocumentFragment>
|
|
61
64
|
`;
|
|
62
65
|
|
|
63
66
|
exports[`component:<Modal> inherit:className 1`] = `
|
|
64
67
|
<DocumentFragment>
|
|
65
|
-
<
|
|
68
|
+
<ui_modal_overflow
|
|
66
69
|
class="pressable container overflow"
|
|
67
70
|
style="height: 768px;"
|
|
71
|
+
tabindex="0"
|
|
68
72
|
>
|
|
69
|
-
<
|
|
73
|
+
<ui_view
|
|
70
74
|
class="view fit modal calcWidth mirai"
|
|
71
75
|
/>
|
|
72
|
-
</
|
|
76
|
+
</ui_modal_overflow>
|
|
73
77
|
</DocumentFragment>
|
|
74
78
|
`;
|
|
75
79
|
|
|
76
80
|
exports[`component:<Modal> prop:children 1`] = `
|
|
77
81
|
<DocumentFragment>
|
|
78
|
-
<
|
|
82
|
+
<ui_modal_overflow
|
|
79
83
|
class="pressable container overflow"
|
|
80
84
|
style="height: 768px;"
|
|
85
|
+
tabindex="0"
|
|
81
86
|
>
|
|
82
|
-
<
|
|
87
|
+
<ui_view
|
|
83
88
|
class="view fit modal calcWidth"
|
|
84
89
|
>
|
|
85
90
|
<span
|
|
@@ -87,56 +92,60 @@ exports[`component:<Modal> prop:children 1`] = `
|
|
|
87
92
|
>
|
|
88
93
|
children
|
|
89
94
|
</span>
|
|
90
|
-
</
|
|
91
|
-
</
|
|
95
|
+
</ui_view>
|
|
96
|
+
</ui_modal_overflow>
|
|
92
97
|
</DocumentFragment>
|
|
93
98
|
`;
|
|
94
99
|
|
|
95
100
|
exports[`component:<Modal> prop:fit 1`] = `
|
|
96
101
|
<DocumentFragment>
|
|
97
|
-
<
|
|
102
|
+
<ui_modal_overflow
|
|
98
103
|
class="pressable container overflow"
|
|
99
104
|
style="height: 768px;"
|
|
105
|
+
tabindex="0"
|
|
100
106
|
>
|
|
101
|
-
<
|
|
107
|
+
<ui_view
|
|
102
108
|
class="view fit modal"
|
|
103
109
|
/>
|
|
104
|
-
</
|
|
110
|
+
</ui_modal_overflow>
|
|
105
111
|
</DocumentFragment>
|
|
106
112
|
`;
|
|
107
113
|
|
|
108
114
|
exports[`component:<Modal> prop:mobileBehavior 1`] = `
|
|
109
115
|
<DocumentFragment>
|
|
110
|
-
<
|
|
116
|
+
<ui_modal_overflow
|
|
111
117
|
class="pressable container overflow"
|
|
112
118
|
style="height: 768px;"
|
|
119
|
+
tabindex="0"
|
|
113
120
|
>
|
|
114
|
-
<
|
|
121
|
+
<ui_view
|
|
115
122
|
class="view fit modal calcWidth"
|
|
116
123
|
/>
|
|
117
|
-
</
|
|
124
|
+
</ui_modal_overflow>
|
|
118
125
|
</DocumentFragment>
|
|
119
126
|
`;
|
|
120
127
|
|
|
121
128
|
exports[`component:<Modal> prop:onBack 1`] = `
|
|
122
129
|
<DocumentFragment>
|
|
123
|
-
<
|
|
130
|
+
<ui_modal_overflow
|
|
124
131
|
class="pressable container overflow visible"
|
|
125
132
|
data-testid="mirai-onBack-overflow"
|
|
126
133
|
style="height: 768px;"
|
|
134
|
+
tabindex="0"
|
|
127
135
|
>
|
|
128
|
-
<
|
|
136
|
+
<ui_view
|
|
129
137
|
class="view fit modal calcWidth visible"
|
|
130
138
|
data-testid="mirai-onBack"
|
|
131
139
|
>
|
|
132
|
-
<
|
|
140
|
+
<ui_view
|
|
133
141
|
class="view row header hideClose"
|
|
134
142
|
>
|
|
135
143
|
<button
|
|
136
144
|
class="pressable button small squared transparent"
|
|
137
145
|
data-testid="mirai-onBack-button-back"
|
|
146
|
+
tabindex="0"
|
|
138
147
|
>
|
|
139
|
-
<
|
|
148
|
+
<ui_icon
|
|
140
149
|
class="icon headline-3 icon"
|
|
141
150
|
>
|
|
142
151
|
<svg
|
|
@@ -156,33 +165,35 @@ exports[`component:<Modal> prop:onBack 1`] = `
|
|
|
156
165
|
d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"
|
|
157
166
|
/>
|
|
158
167
|
</svg>
|
|
159
|
-
</
|
|
168
|
+
</ui_icon>
|
|
160
169
|
</button>
|
|
161
|
-
</
|
|
162
|
-
</
|
|
163
|
-
</
|
|
170
|
+
</ui_view>
|
|
171
|
+
</ui_view>
|
|
172
|
+
</ui_modal_overflow>
|
|
164
173
|
</DocumentFragment>
|
|
165
174
|
`;
|
|
166
175
|
|
|
167
176
|
exports[`component:<Modal> prop:onClose 1`] = `
|
|
168
177
|
<DocumentFragment>
|
|
169
|
-
<
|
|
178
|
+
<ui_modal_overflow
|
|
170
179
|
class="pressable container overflow visible"
|
|
171
180
|
data-testid="mirai-onClose-overflow"
|
|
172
181
|
style="height: 768px;"
|
|
182
|
+
tabindex="0"
|
|
173
183
|
>
|
|
174
|
-
<
|
|
184
|
+
<ui_view
|
|
175
185
|
class="view fit modal calcWidth visible"
|
|
176
186
|
data-testid="mirai-onClose"
|
|
177
187
|
>
|
|
178
|
-
<
|
|
188
|
+
<ui_view
|
|
179
189
|
class="view row header hideBack"
|
|
180
190
|
>
|
|
181
191
|
<button
|
|
182
192
|
class="pressable button small squared transparent button"
|
|
183
193
|
data-testid="mirai-onClose-button-close"
|
|
194
|
+
tabindex="0"
|
|
184
195
|
>
|
|
185
|
-
<
|
|
196
|
+
<ui_icon
|
|
186
197
|
class="icon headline-3 icon"
|
|
187
198
|
>
|
|
188
199
|
<svg
|
|
@@ -203,141 +214,164 @@ exports[`component:<Modal> prop:onClose 1`] = `
|
|
|
203
214
|
d="M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z"
|
|
204
215
|
/>
|
|
205
216
|
</svg>
|
|
206
|
-
</
|
|
217
|
+
</ui_icon>
|
|
207
218
|
</button>
|
|
208
|
-
</
|
|
209
|
-
</
|
|
210
|
-
</
|
|
219
|
+
</ui_view>
|
|
220
|
+
</ui_view>
|
|
221
|
+
</ui_modal_overflow>
|
|
211
222
|
</DocumentFragment>
|
|
212
223
|
`;
|
|
213
224
|
|
|
214
225
|
exports[`component:<Modal> prop:onOverflow 1`] = `
|
|
215
226
|
<DocumentFragment>
|
|
216
|
-
<
|
|
227
|
+
<ui_modal_overflow
|
|
217
228
|
class="pressable container overflow visible onOverflow"
|
|
218
229
|
data-testid="mirai-onOverflow-overflow"
|
|
219
230
|
style="height: 768px;"
|
|
231
|
+
tabindex="0"
|
|
220
232
|
>
|
|
221
|
-
<
|
|
233
|
+
<ui_view
|
|
222
234
|
class="view fit modal calcWidth visible"
|
|
223
235
|
data-testid="mirai-onOverflow"
|
|
224
236
|
/>
|
|
225
|
-
</
|
|
237
|
+
</ui_modal_overflow>
|
|
226
238
|
</DocumentFragment>
|
|
227
239
|
`;
|
|
228
240
|
|
|
229
241
|
exports[`component:<Modal> prop:portal 1`] = `
|
|
230
242
|
<DocumentFragment>
|
|
231
|
-
<
|
|
243
|
+
<ui_modal_overflow
|
|
232
244
|
class="pressable container overflow"
|
|
233
245
|
style="height: 768px;"
|
|
246
|
+
tabindex="0"
|
|
234
247
|
>
|
|
235
|
-
<
|
|
248
|
+
<ui_view
|
|
236
249
|
class="view fit modal calcWidth"
|
|
237
250
|
/>
|
|
238
|
-
</
|
|
251
|
+
</ui_modal_overflow>
|
|
239
252
|
</DocumentFragment>
|
|
240
253
|
`;
|
|
241
254
|
|
|
242
255
|
exports[`component:<Modal> prop:title 1`] = `
|
|
243
256
|
<DocumentFragment>
|
|
244
|
-
<
|
|
257
|
+
<ui_modal_overflow
|
|
245
258
|
class="pressable container overflow"
|
|
246
259
|
style="height: 768px;"
|
|
260
|
+
tabindex="0"
|
|
247
261
|
>
|
|
248
|
-
<
|
|
262
|
+
<ui_view
|
|
249
263
|
class="view fit modal calcWidth"
|
|
250
264
|
>
|
|
251
|
-
<
|
|
265
|
+
<ui_view
|
|
252
266
|
class="view row header hideBack hideClose"
|
|
253
267
|
>
|
|
254
|
-
<
|
|
268
|
+
<ui_text
|
|
255
269
|
class="text paragraph title"
|
|
256
270
|
>
|
|
257
271
|
Modal
|
|
258
|
-
</
|
|
259
|
-
</
|
|
260
|
-
</
|
|
261
|
-
</
|
|
272
|
+
</ui_text>
|
|
273
|
+
</ui_view>
|
|
274
|
+
</ui_view>
|
|
275
|
+
</ui_modal_overflow>
|
|
262
276
|
</DocumentFragment>
|
|
263
277
|
`;
|
|
264
278
|
|
|
265
279
|
exports[`component:<Modal> prop:visible & prop:blur 1`] = `
|
|
266
280
|
<DocumentFragment>
|
|
267
|
-
<
|
|
281
|
+
<ui_modal_overflow
|
|
268
282
|
class="pressable container overflow blur visible"
|
|
269
283
|
style="height: 768px;"
|
|
284
|
+
tabindex="0"
|
|
270
285
|
>
|
|
271
|
-
<
|
|
286
|
+
<ui_view
|
|
272
287
|
class="view fit modal calcWidth visible"
|
|
273
288
|
/>
|
|
274
|
-
</
|
|
289
|
+
</ui_modal_overflow>
|
|
275
290
|
</DocumentFragment>
|
|
276
291
|
`;
|
|
277
292
|
|
|
278
293
|
exports[`component:<Modal> prop:visible & prop:onOverflow 1`] = `
|
|
279
294
|
<DocumentFragment>
|
|
280
|
-
<
|
|
295
|
+
<ui_modal_overflow
|
|
281
296
|
class="pressable container overflow visible onOverflow"
|
|
282
297
|
style="height: 768px;"
|
|
298
|
+
tabindex="0"
|
|
283
299
|
>
|
|
284
|
-
<
|
|
300
|
+
<ui_view
|
|
285
301
|
class="view fit modal calcWidth visible"
|
|
286
302
|
/>
|
|
287
|
-
</
|
|
303
|
+
</ui_modal_overflow>
|
|
288
304
|
</DocumentFragment>
|
|
289
305
|
`;
|
|
290
306
|
|
|
291
307
|
exports[`component:<Modal> prop:visible & prop:overflow (false) 1`] = `
|
|
292
308
|
<DocumentFragment>
|
|
293
|
-
<
|
|
309
|
+
<ui_modal_overflow
|
|
294
310
|
class="pressable container visible"
|
|
295
311
|
style="height: 768px;"
|
|
312
|
+
tabindex="0"
|
|
296
313
|
>
|
|
297
|
-
<
|
|
314
|
+
<ui_view
|
|
298
315
|
class="view fit modal calcWidth visible"
|
|
299
316
|
/>
|
|
300
|
-
</
|
|
317
|
+
</ui_modal_overflow>
|
|
301
318
|
</DocumentFragment>
|
|
302
319
|
`;
|
|
303
320
|
|
|
304
321
|
exports[`component:<Modal> prop:visible renders 1`] = `
|
|
305
322
|
<DocumentFragment>
|
|
306
|
-
<
|
|
323
|
+
<ui_modal_overflow
|
|
307
324
|
class="pressable container overflow visible"
|
|
308
325
|
style="height: 768px;"
|
|
326
|
+
tabindex="0"
|
|
309
327
|
>
|
|
310
|
-
<
|
|
328
|
+
<ui_view
|
|
311
329
|
class="view fit modal calcWidth visible"
|
|
312
330
|
/>
|
|
313
|
-
</
|
|
331
|
+
</ui_modal_overflow>
|
|
314
332
|
</DocumentFragment>
|
|
315
333
|
`;
|
|
316
334
|
|
|
317
335
|
exports[`component:<Modal> renders 1`] = `
|
|
318
336
|
<DocumentFragment>
|
|
319
|
-
<
|
|
337
|
+
<ui_modal_overflow
|
|
320
338
|
class="pressable container overflow"
|
|
321
339
|
style="height: 768px;"
|
|
340
|
+
tabindex="0"
|
|
322
341
|
>
|
|
323
|
-
<
|
|
342
|
+
<ui_view
|
|
324
343
|
class="view fit modal calcWidth"
|
|
325
344
|
/>
|
|
326
|
-
</
|
|
345
|
+
</ui_modal_overflow>
|
|
346
|
+
</DocumentFragment>
|
|
347
|
+
`;
|
|
348
|
+
|
|
349
|
+
exports[`component:<Modal> tag 1`] = `
|
|
350
|
+
<DocumentFragment>
|
|
351
|
+
<ui_tag_overflow
|
|
352
|
+
class="pressable container overflow"
|
|
353
|
+
style="height: 768px;"
|
|
354
|
+
tabindex="0"
|
|
355
|
+
>
|
|
356
|
+
<ui_tag
|
|
357
|
+
class="view fit modal calcWidth"
|
|
358
|
+
/>
|
|
359
|
+
</ui_tag_overflow>
|
|
327
360
|
</DocumentFragment>
|
|
328
361
|
`;
|
|
329
362
|
|
|
330
363
|
exports[`component:<Modal> testId 1`] = `
|
|
331
364
|
<DocumentFragment>
|
|
332
|
-
<
|
|
365
|
+
<ui_modal_overflow
|
|
333
366
|
class="pressable container overflow"
|
|
334
367
|
data-testid="mirai-overflow"
|
|
335
368
|
style="height: 768px;"
|
|
369
|
+
tabindex="0"
|
|
336
370
|
>
|
|
337
|
-
<
|
|
371
|
+
<ui_view
|
|
338
372
|
class="view fit modal calcWidth"
|
|
339
373
|
data-testid="mirai"
|
|
340
374
|
/>
|
|
341
|
-
</
|
|
375
|
+
</ui_modal_overflow>
|
|
342
376
|
</DocumentFragment>
|
|
343
377
|
`;
|
|
@@ -32,6 +32,7 @@ var Notification = function Notification(_ref) {
|
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement(_primitives.View, _extends({}, others, {
|
|
33
33
|
row: true,
|
|
34
34
|
role: others.role || 'notification',
|
|
35
|
+
tag: others.tag || 'notification',
|
|
35
36
|
className: (0, _helpers.styles)(_NotificationModule.default.notification, contrast ? _NotificationModule.default.contrast : error ? _NotificationModule.default.error : warning ? _NotificationModule.default.warning : success ? _NotificationModule.default.success : info ? _NotificationModule.default.info : undefined, inline ? _NotificationModule.default.inline : _NotificationModule.default.outlined, large ? _NotificationModule.default.large : small ? _NotificationModule.default.small : undefined, wide && _NotificationModule.default.wide, others.className)
|
|
36
37
|
}), /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
|
|
37
38
|
headline: large,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Notification.js","names":["Notification","children","contrast","error","info","inline","large","small","success","title","warning","wide","onClose","others","role","styles","style","notification","undefined","outlined","className","getIconState","texts","testId","ICON","CLOSE","displayName","propTypes","PropTypes","any","isRequired","bool","string","func"],"sources":["../../../src/components/Notification/Notification.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { getIconState, styles } from '../../helpers';\nimport { Icon, ICON, Pressable, Text, View } from '../../primitives';\nimport style from './Notification.module.css';\n\nconst Notification = ({\n children,\n contrast,\n error,\n info,\n inline = false,\n large,\n small,\n success,\n title,\n warning,\n wide,\n onClose,\n ...others\n}) => (\n <View\n {...others}\n row\n role={others.role || 'notification'}\n className={styles(\n style.notification,\n contrast\n ? style.contrast\n : error\n ? style.error\n : warning\n ? style.warning\n : success\n ? style.success\n : info\n ? style.info\n : undefined,\n inline ? style.inline : style.outlined,\n large ? style.large : small ? style.small : undefined,\n wide && style.wide,\n others.className,\n )}\n >\n <Icon headline={large} paragraph={small} level={large ? 1 : 3} value={getIconState({ error, success, warning })} />\n\n <View className={style.texts}>\n {title && (\n <Text action={small} bold headline={large}>\n {title}\n </Text>\n )}\n {children && (\n <Text action={!small && !large} small={small}>\n {children}\n </Text>\n )}\n </View>\n\n {!inline && !large && onClose && (\n <Pressable onPress={onClose} testId={others.testId ? `${others.testId}-button-close` : undefined}>\n <Icon headline={large} paragraph={small} level={large ? 1 : 3} value={ICON.CLOSE} />\n </Pressable>\n )}\n </View>\n);\n\nNotification.displayName = 'Component:Notification';\n\nNotification.propTypes = {\n children: PropTypes.any.isRequired,\n contrast: PropTypes.bool,\n error: PropTypes.bool,\n info: PropTypes.bool,\n inline: PropTypes.bool,\n large: PropTypes.bool,\n small: PropTypes.bool,\n success: PropTypes.bool,\n title: PropTypes.string,\n warning: PropTypes.bool,\n wide: PropTypes.bool,\n onClose: PropTypes.func,\n};\n\nexport { Notification };\n"],"mappings":";;;;;;AAAA;AACA;AAEA;AACA;AACA;AAA8C;AAAA;AAAA;AAAA;AAAA;AAE9C,IAAMA,YAAY,GAAG,SAAfA,YAAY;EAAA,IAChBC,QAAQ,QAARA,QAAQ;IACRC,QAAQ,QAARA,QAAQ;IACRC,KAAK,QAALA,KAAK;IACLC,IAAI,QAAJA,IAAI;IAAA,mBACJC,MAAM;IAANA,MAAM,4BAAG,KAAK;IACdC,KAAK,QAALA,KAAK;IACLC,KAAK,QAALA,KAAK;IACLC,OAAO,QAAPA,OAAO;IACPC,KAAK,QAALA,KAAK;IACLC,OAAO,QAAPA,OAAO;IACPC,IAAI,QAAJA,IAAI;IACJC,OAAO,QAAPA,OAAO;IACJC,MAAM;EAAA,oBAET,6BAAC,gBAAI,eACCA,MAAM;IACV,GAAG;IACH,IAAI,EAAEA,MAAM,CAACC,IAAI,IAAI,cAAe;IACpC,SAAS,EAAE,IAAAC,eAAM,EACfC,2BAAK,CAACC,YAAY,
|
|
1
|
+
{"version":3,"file":"Notification.js","names":["Notification","children","contrast","error","info","inline","large","small","success","title","warning","wide","onClose","others","role","tag","styles","style","notification","undefined","outlined","className","getIconState","texts","testId","ICON","CLOSE","displayName","propTypes","PropTypes","any","isRequired","bool","string","func"],"sources":["../../../src/components/Notification/Notification.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { getIconState, styles } from '../../helpers';\nimport { Icon, ICON, Pressable, Text, View } from '../../primitives';\nimport style from './Notification.module.css';\n\nconst Notification = ({\n children,\n contrast,\n error,\n info,\n inline = false,\n large,\n small,\n success,\n title,\n warning,\n wide,\n onClose,\n ...others\n}) => (\n <View\n {...others}\n row\n role={others.role || 'notification'}\n tag={others.tag || 'notification'}\n className={styles(\n style.notification,\n contrast\n ? style.contrast\n : error\n ? style.error\n : warning\n ? style.warning\n : success\n ? style.success\n : info\n ? style.info\n : undefined,\n inline ? style.inline : style.outlined,\n large ? style.large : small ? style.small : undefined,\n wide && style.wide,\n others.className,\n )}\n >\n <Icon headline={large} paragraph={small} level={large ? 1 : 3} value={getIconState({ error, success, warning })} />\n\n <View className={style.texts}>\n {title && (\n <Text action={small} bold headline={large}>\n {title}\n </Text>\n )}\n {children && (\n <Text action={!small && !large} small={small}>\n {children}\n </Text>\n )}\n </View>\n\n {!inline && !large && onClose && (\n <Pressable onPress={onClose} testId={others.testId ? `${others.testId}-button-close` : undefined}>\n <Icon headline={large} paragraph={small} level={large ? 1 : 3} value={ICON.CLOSE} />\n </Pressable>\n )}\n </View>\n);\n\nNotification.displayName = 'Component:Notification';\n\nNotification.propTypes = {\n children: PropTypes.any.isRequired,\n contrast: PropTypes.bool,\n error: PropTypes.bool,\n info: PropTypes.bool,\n inline: PropTypes.bool,\n large: PropTypes.bool,\n small: PropTypes.bool,\n success: PropTypes.bool,\n title: PropTypes.string,\n warning: PropTypes.bool,\n wide: PropTypes.bool,\n onClose: PropTypes.func,\n};\n\nexport { Notification };\n"],"mappings":"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"}
|