@mirai/ui 1.0.54 → 1.0.55
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 +6 -7
- package/build/components/Button/Button.js +4 -4
- package/build/components/Button/Button.js.map +1 -1
- package/build/components/Button/Button.module.css +17 -11
- package/build/components/Button/Button.stories.js +1 -1
- package/build/components/Button/Button.stories.js.map +1 -1
- package/build/components/Button/__tests__/__snapshots__/Button.test.js.snap +4 -4
- package/build/components/Calendar/Calendar.Month.js +6 -1
- package/build/components/Calendar/Calendar.Month.js.map +1 -1
- package/build/components/Calendar/Calendar.stories.js +54 -0
- package/build/components/Calendar/Calendar.stories.js.map +1 -0
- package/build/components/Calendar/__tests__/__snapshots__/Calendar.test.jsx.snap +216 -216
- package/build/components/InputNumber/InputNumber.js +4 -3
- package/build/components/InputNumber/InputNumber.js.map +1 -1
- package/build/components/InputNumber/__tests__/__snapshots__/InputNumber.test.js.snap +73 -73
- package/build/components/InputOption/InputOption.js +1 -1
- package/build/components/InputOption/InputOption.js.map +1 -1
- package/build/components/InputOption/InputOption.module.css +1 -1
- package/build/components/InputOption/__tests__/__snapshots__/InputOption.test.js.snap +2 -2
- package/build/components/InputSelect/__tests__/__snapshots__/InputSelect.test.js.snap +7 -7
- package/build/components/InputText/InputText.js +1 -1
- package/build/components/InputText/InputText.js.map +1 -1
- package/build/components/InputText/InputText.module.css +6 -6
- package/build/components/InputText/__tests__/__snapshots__/InputText.test.js.snap +2 -2
- package/build/components/Menu/__tests__/__snapshots__/Menu.test.jsx.snap +3 -3
- package/build/components/Modal/Modal.module.css +2 -2
- package/build/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +6 -6
- package/build/components/Notification/Notification.js +19 -23
- package/build/components/Notification/Notification.js.map +1 -1
- package/build/components/Notification/Notification.module.css +23 -28
- package/build/components/Notification/__tests__/__snapshots__/Notification.test.js.snap +82 -127
- package/build/components/Table/__tests__/__snapshots__/Table.test.js.snap +25 -25
- package/build/primitives/Icon/Icon.js +13 -4
- package/build/primitives/Icon/Icon.js.map +1 -1
- package/build/primitives/Icon/Icon.module.css +49 -8
- package/build/primitives/Icon/__tests__/__snapshots__/Icon.test.js.snap +5 -5
- package/build/primitives/Text/Text.js +6 -5
- package/build/primitives/Text/Text.js.map +1 -1
- package/build/primitives/Text/Text.module.css +21 -8
- package/build/primitives/Text/__tests__/__snapshots__/Text.test.js.snap +40 -10
- package/build/theme/default.theme.css +19 -3
- package/package.json +1 -1
|
@@ -51,16 +51,17 @@ var InputNumber = function InputNumber(_ref) {
|
|
|
51
51
|
}), /*#__PURE__*/_react.default.createElement(_primitives.View, {
|
|
52
52
|
className: _InputNumberModule.default.texts
|
|
53
53
|
}, label && /*#__PURE__*/_react.default.createElement(_primitives.Text, {
|
|
54
|
-
|
|
54
|
+
headline: true,
|
|
55
|
+
level: 4,
|
|
55
56
|
className: disabled && _InputNumberModule.default.disabled
|
|
56
57
|
}, label), hint && /*#__PURE__*/_react.default.createElement(_primitives.Text, {
|
|
57
58
|
small: true,
|
|
58
59
|
className: (0, _helpers.styles)(_InputNumberModule.default.hint, disabled && _InputNumberModule.default.disabled)
|
|
59
60
|
}, hint)), /*#__PURE__*/_react.default.createElement(_Button.Button, {
|
|
60
61
|
disabled: disabled || value <= min,
|
|
61
|
-
outlined: true,
|
|
62
62
|
preventDefault: true,
|
|
63
63
|
rounded: rounded,
|
|
64
|
+
secondary: true,
|
|
64
65
|
squared: true,
|
|
65
66
|
onPress: function onPress() {
|
|
66
67
|
return onChange(value - step, name);
|
|
@@ -72,9 +73,9 @@ var InputNumber = function InputNumber(_ref) {
|
|
|
72
73
|
className: _InputNumberModule.default.value
|
|
73
74
|
}, typeof value === 'number' ? value : min), /*#__PURE__*/_react.default.createElement(_Button.Button, {
|
|
74
75
|
disabled: disabled || value >= max,
|
|
75
|
-
outlined: true,
|
|
76
76
|
preventDefault: true,
|
|
77
77
|
rounded: rounded,
|
|
78
|
+
secondary: true,
|
|
78
79
|
squared: true,
|
|
79
80
|
onPress: function onPress() {
|
|
80
81
|
return onChange(value + step, name);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputNumber.js","names":["InputNumber","disabled","hint","label","max","min","name","rounded","step","value","onChange","others","style","inputNumber","className","texts","propTypes","PropTypes","bool","oneOfType","string","array","number","isRequired","func"],"sources":["../../../src/components/InputNumber/InputNumber.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Icon, Text, View } from '../../primitives';\nimport { Button } from '../Button';\nimport style from './InputNumber.module.css';\n\nexport const InputNumber = ({\n disabled,\n hint,\n label,\n max,\n min = 0,\n name,\n rounded = true,\n step = 1,\n value = 0,\n onChange = () => {},\n ...others\n}) => (\n <View {...others} row className={styles(style.inputNumber, others.className)}>\n <View className={style.texts}>\n {label && (\n <Text
|
|
1
|
+
{"version":3,"file":"InputNumber.js","names":["InputNumber","disabled","hint","label","max","min","name","rounded","step","value","onChange","others","style","inputNumber","className","texts","propTypes","PropTypes","bool","oneOfType","string","array","number","isRequired","func"],"sources":["../../../src/components/InputNumber/InputNumber.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Icon, Text, View } from '../../primitives';\nimport { Button } from '../Button';\nimport style from './InputNumber.module.css';\n\nexport const InputNumber = ({\n disabled,\n hint,\n label,\n max,\n min = 0,\n name,\n rounded = true,\n step = 1,\n value = 0,\n onChange = () => {},\n ...others\n}) => (\n <View {...others} row className={styles(style.inputNumber, others.className)}>\n <View className={style.texts}>\n {label && (\n <Text headline level={4} className={disabled && style.disabled}>\n {label}\n </Text>\n )}\n {hint && (\n <Text small className={styles(style.hint, disabled && style.disabled)}>\n {hint}\n </Text>\n )}\n </View>\n <Button\n disabled={disabled || value <= min}\n preventDefault\n rounded={rounded}\n secondary\n squared\n onPress={() => onChange(value - step, name)}\n >\n <Icon name=\"Minus\" />\n </Button>\n <Text headline className={style.value}>\n {typeof value === 'number' ? value : min}\n </Text>\n <Button\n disabled={disabled || value >= max}\n preventDefault\n rounded={rounded}\n secondary\n squared\n onPress={() => onChange(value + step, name)}\n >\n <Icon name=\"Plus\" />\n </Button>\n </View>\n);\n\nInputNumber.propTypes = {\n disabled: PropTypes.bool,\n hint: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),\n label: PropTypes.string,\n max: PropTypes.number,\n min: PropTypes.number,\n name: PropTypes.string.isRequired,\n rounded: PropTypes.bool,\n step: PropTypes.number,\n value: PropTypes.number,\n onChange: PropTypes.func,\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAEO,IAAMA,WAAW,GAAG,SAAdA,WAAc;EAAA,IACzBC,QADyB,QACzBA,QADyB;EAAA,IAEzBC,IAFyB,QAEzBA,IAFyB;EAAA,IAGzBC,KAHyB,QAGzBA,KAHyB;EAAA,IAIzBC,GAJyB,QAIzBA,GAJyB;EAAA,oBAKzBC,GALyB;EAAA,IAKzBA,GALyB,yBAKnB,CALmB;EAAA,IAMzBC,IANyB,QAMzBA,IANyB;EAAA,wBAOzBC,OAPyB;EAAA,IAOzBA,OAPyB,6BAOf,IAPe;EAAA,qBAQzBC,IARyB;EAAA,IAQzBA,IARyB,0BAQlB,CARkB;EAAA,sBASzBC,KATyB;EAAA,IASzBA,KATyB,2BASjB,CATiB;EAAA,yBAUzBC,QAVyB;EAAA,IAUzBA,QAVyB,8BAUd,YAAM,CAAE,CAVM;EAAA,IAWtBC,MAXsB;;EAAA,oBAazB,6BAAC,gBAAD,eAAUA,MAAV;IAAkB,GAAG,MAArB;IAAsB,SAAS,EAAE,qBAAOC,2BAAMC,WAAb,EAA0BF,MAAM,CAACG,SAAjC;EAAjC,iBACE,6BAAC,gBAAD;IAAM,SAAS,EAAEF,2BAAMG;EAAvB,GACGZ,KAAK,iBACJ,6BAAC,gBAAD;IAAM,QAAQ,MAAd;IAAe,KAAK,EA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hB,GAAG,EAAEa,mBAAUK,MAJO;EAKtBjB,GAAG,EAAEY,mBAAUK,MALO;EAMtBhB,IAAI,EAAEW,mBAAUG,MAAV,CAAiBG,UAND;EAOtBhB,OAAO,EAAEU,mBAAUC,IAPG;EAQtBV,IAAI,EAAES,mBAAUK,MARM;EAStBb,KAAK,EAAEQ,mBAAUK,MATK;EAUtBZ,QAAQ,EAAEO,mBAAUO;AAVE,CAAxB"}
|
|
@@ -9,11 +9,11 @@ exports[`component:<InputNumber> inherit:className 1`] = `
|
|
|
9
9
|
class="view texts"
|
|
10
10
|
/>
|
|
11
11
|
<button
|
|
12
|
-
class="pressable button rounded squared
|
|
12
|
+
class="pressable button rounded squared secondary disabled"
|
|
13
13
|
disabled=""
|
|
14
14
|
>
|
|
15
15
|
<span
|
|
16
|
-
class="icon"
|
|
16
|
+
class="icon paragraph"
|
|
17
17
|
>
|
|
18
18
|
<svg
|
|
19
19
|
fill="none"
|
|
@@ -35,16 +35,16 @@ exports[`component:<InputNumber> inherit:className 1`] = `
|
|
|
35
35
|
</svg>
|
|
36
36
|
</span>
|
|
37
37
|
</button>
|
|
38
|
-
<
|
|
39
|
-
class="text headline value"
|
|
38
|
+
<h3
|
|
39
|
+
class="text headline-3 value"
|
|
40
40
|
>
|
|
41
41
|
0
|
|
42
|
-
</
|
|
42
|
+
</h3>
|
|
43
43
|
<button
|
|
44
|
-
class="pressable button rounded squared
|
|
44
|
+
class="pressable button rounded squared secondary"
|
|
45
45
|
>
|
|
46
46
|
<span
|
|
47
|
-
class="icon"
|
|
47
|
+
class="icon paragraph"
|
|
48
48
|
>
|
|
49
49
|
<svg
|
|
50
50
|
fill="none"
|
|
@@ -85,11 +85,11 @@ exports[`component:<InputNumber> prop:disabled 1`] = `
|
|
|
85
85
|
class="view texts"
|
|
86
86
|
/>
|
|
87
87
|
<button
|
|
88
|
-
class="pressable button rounded squared
|
|
88
|
+
class="pressable button rounded squared secondary disabled"
|
|
89
89
|
disabled=""
|
|
90
90
|
>
|
|
91
91
|
<span
|
|
92
|
-
class="icon"
|
|
92
|
+
class="icon paragraph"
|
|
93
93
|
>
|
|
94
94
|
<svg
|
|
95
95
|
fill="none"
|
|
@@ -111,17 +111,17 @@ exports[`component:<InputNumber> prop:disabled 1`] = `
|
|
|
111
111
|
</svg>
|
|
112
112
|
</span>
|
|
113
113
|
</button>
|
|
114
|
-
<
|
|
115
|
-
class="text headline value"
|
|
114
|
+
<h3
|
|
115
|
+
class="text headline-3 value"
|
|
116
116
|
>
|
|
117
117
|
0
|
|
118
|
-
</
|
|
118
|
+
</h3>
|
|
119
119
|
<button
|
|
120
|
-
class="pressable button rounded squared
|
|
120
|
+
class="pressable button rounded squared secondary disabled"
|
|
121
121
|
disabled=""
|
|
122
122
|
>
|
|
123
123
|
<span
|
|
124
|
-
class="icon"
|
|
124
|
+
class="icon paragraph"
|
|
125
125
|
>
|
|
126
126
|
<svg
|
|
127
127
|
fill="none"
|
|
@@ -168,11 +168,11 @@ exports[`component:<InputNumber> prop:hint 1`] = `
|
|
|
168
168
|
</span>
|
|
169
169
|
</div>
|
|
170
170
|
<button
|
|
171
|
-
class="pressable button rounded squared
|
|
171
|
+
class="pressable button rounded squared secondary disabled"
|
|
172
172
|
disabled=""
|
|
173
173
|
>
|
|
174
174
|
<span
|
|
175
|
-
class="icon"
|
|
175
|
+
class="icon paragraph"
|
|
176
176
|
>
|
|
177
177
|
<svg
|
|
178
178
|
fill="none"
|
|
@@ -194,16 +194,16 @@ exports[`component:<InputNumber> prop:hint 1`] = `
|
|
|
194
194
|
</svg>
|
|
195
195
|
</span>
|
|
196
196
|
</button>
|
|
197
|
-
<
|
|
198
|
-
class="text headline value"
|
|
197
|
+
<h3
|
|
198
|
+
class="text headline-3 value"
|
|
199
199
|
>
|
|
200
200
|
0
|
|
201
|
-
</
|
|
201
|
+
</h3>
|
|
202
202
|
<button
|
|
203
|
-
class="pressable button rounded squared
|
|
203
|
+
class="pressable button rounded squared secondary"
|
|
204
204
|
>
|
|
205
205
|
<span
|
|
206
|
-
class="icon"
|
|
206
|
+
class="icon paragraph"
|
|
207
207
|
>
|
|
208
208
|
<svg
|
|
209
209
|
fill="none"
|
|
@@ -243,18 +243,18 @@ exports[`component:<InputNumber> prop:label 1`] = `
|
|
|
243
243
|
<div
|
|
244
244
|
class="view texts"
|
|
245
245
|
>
|
|
246
|
-
<
|
|
247
|
-
class="text
|
|
246
|
+
<h4
|
|
247
|
+
class="text headline-4"
|
|
248
248
|
>
|
|
249
249
|
label
|
|
250
|
-
</
|
|
250
|
+
</h4>
|
|
251
251
|
</div>
|
|
252
252
|
<button
|
|
253
|
-
class="pressable button rounded squared
|
|
253
|
+
class="pressable button rounded squared secondary disabled"
|
|
254
254
|
disabled=""
|
|
255
255
|
>
|
|
256
256
|
<span
|
|
257
|
-
class="icon"
|
|
257
|
+
class="icon paragraph"
|
|
258
258
|
>
|
|
259
259
|
<svg
|
|
260
260
|
fill="none"
|
|
@@ -276,16 +276,16 @@ exports[`component:<InputNumber> prop:label 1`] = `
|
|
|
276
276
|
</svg>
|
|
277
277
|
</span>
|
|
278
278
|
</button>
|
|
279
|
-
<
|
|
280
|
-
class="text headline value"
|
|
279
|
+
<h3
|
|
280
|
+
class="text headline-3 value"
|
|
281
281
|
>
|
|
282
282
|
0
|
|
283
|
-
</
|
|
283
|
+
</h3>
|
|
284
284
|
<button
|
|
285
|
-
class="pressable button rounded squared
|
|
285
|
+
class="pressable button rounded squared secondary"
|
|
286
286
|
>
|
|
287
287
|
<span
|
|
288
|
-
class="icon"
|
|
288
|
+
class="icon paragraph"
|
|
289
289
|
>
|
|
290
290
|
<svg
|
|
291
291
|
fill="none"
|
|
@@ -326,10 +326,10 @@ exports[`component:<InputNumber> prop:max 1`] = `
|
|
|
326
326
|
class="view texts"
|
|
327
327
|
/>
|
|
328
328
|
<button
|
|
329
|
-
class="pressable button rounded squared
|
|
329
|
+
class="pressable button rounded squared secondary"
|
|
330
330
|
>
|
|
331
331
|
<span
|
|
332
|
-
class="icon"
|
|
332
|
+
class="icon paragraph"
|
|
333
333
|
>
|
|
334
334
|
<svg
|
|
335
335
|
fill="none"
|
|
@@ -351,17 +351,17 @@ exports[`component:<InputNumber> prop:max 1`] = `
|
|
|
351
351
|
</svg>
|
|
352
352
|
</span>
|
|
353
353
|
</button>
|
|
354
|
-
<
|
|
355
|
-
class="text headline value"
|
|
354
|
+
<h3
|
|
355
|
+
class="text headline-3 value"
|
|
356
356
|
>
|
|
357
357
|
10
|
|
358
|
-
</
|
|
358
|
+
</h3>
|
|
359
359
|
<button
|
|
360
|
-
class="pressable button rounded squared
|
|
360
|
+
class="pressable button rounded squared secondary disabled"
|
|
361
361
|
disabled=""
|
|
362
362
|
>
|
|
363
363
|
<span
|
|
364
|
-
class="icon"
|
|
364
|
+
class="icon paragraph"
|
|
365
365
|
>
|
|
366
366
|
<svg
|
|
367
367
|
fill="none"
|
|
@@ -402,11 +402,11 @@ exports[`component:<InputNumber> prop:min 1`] = `
|
|
|
402
402
|
class="view texts"
|
|
403
403
|
/>
|
|
404
404
|
<button
|
|
405
|
-
class="pressable button rounded squared
|
|
405
|
+
class="pressable button rounded squared secondary disabled"
|
|
406
406
|
disabled=""
|
|
407
407
|
>
|
|
408
408
|
<span
|
|
409
|
-
class="icon"
|
|
409
|
+
class="icon paragraph"
|
|
410
410
|
>
|
|
411
411
|
<svg
|
|
412
412
|
fill="none"
|
|
@@ -428,16 +428,16 @@ exports[`component:<InputNumber> prop:min 1`] = `
|
|
|
428
428
|
</svg>
|
|
429
429
|
</span>
|
|
430
430
|
</button>
|
|
431
|
-
<
|
|
432
|
-
class="text headline value"
|
|
431
|
+
<h3
|
|
432
|
+
class="text headline-3 value"
|
|
433
433
|
>
|
|
434
434
|
10
|
|
435
|
-
</
|
|
435
|
+
</h3>
|
|
436
436
|
<button
|
|
437
|
-
class="pressable button rounded squared
|
|
437
|
+
class="pressable button rounded squared secondary"
|
|
438
438
|
>
|
|
439
439
|
<span
|
|
440
|
-
class="icon"
|
|
440
|
+
class="icon paragraph"
|
|
441
441
|
>
|
|
442
442
|
<svg
|
|
443
443
|
fill="none"
|
|
@@ -478,10 +478,10 @@ exports[`component:<InputNumber> prop:rounded 1`] = `
|
|
|
478
478
|
class="view texts"
|
|
479
479
|
/>
|
|
480
480
|
<button
|
|
481
|
-
class="pressable button rounded squared
|
|
481
|
+
class="pressable button rounded squared secondary"
|
|
482
482
|
>
|
|
483
483
|
<span
|
|
484
|
-
class="icon"
|
|
484
|
+
class="icon paragraph"
|
|
485
485
|
>
|
|
486
486
|
<svg
|
|
487
487
|
fill="none"
|
|
@@ -503,16 +503,16 @@ exports[`component:<InputNumber> prop:rounded 1`] = `
|
|
|
503
503
|
</svg>
|
|
504
504
|
</span>
|
|
505
505
|
</button>
|
|
506
|
-
<
|
|
507
|
-
class="text headline value"
|
|
506
|
+
<h3
|
|
507
|
+
class="text headline-3 value"
|
|
508
508
|
>
|
|
509
509
|
10
|
|
510
|
-
</
|
|
510
|
+
</h3>
|
|
511
511
|
<button
|
|
512
|
-
class="pressable button rounded squared
|
|
512
|
+
class="pressable button rounded squared secondary"
|
|
513
513
|
>
|
|
514
514
|
<span
|
|
515
|
-
class="icon"
|
|
515
|
+
class="icon paragraph"
|
|
516
516
|
>
|
|
517
517
|
<svg
|
|
518
518
|
fill="none"
|
|
@@ -553,10 +553,10 @@ exports[`component:<InputNumber> prop:value 1`] = `
|
|
|
553
553
|
class="view texts"
|
|
554
554
|
/>
|
|
555
555
|
<button
|
|
556
|
-
class="pressable button rounded squared
|
|
556
|
+
class="pressable button rounded squared secondary"
|
|
557
557
|
>
|
|
558
558
|
<span
|
|
559
|
-
class="icon"
|
|
559
|
+
class="icon paragraph"
|
|
560
560
|
>
|
|
561
561
|
<svg
|
|
562
562
|
fill="none"
|
|
@@ -578,16 +578,16 @@ exports[`component:<InputNumber> prop:value 1`] = `
|
|
|
578
578
|
</svg>
|
|
579
579
|
</span>
|
|
580
580
|
</button>
|
|
581
|
-
<
|
|
582
|
-
class="text headline value"
|
|
581
|
+
<h3
|
|
582
|
+
class="text headline-3 value"
|
|
583
583
|
>
|
|
584
584
|
10
|
|
585
|
-
</
|
|
585
|
+
</h3>
|
|
586
586
|
<button
|
|
587
|
-
class="pressable button rounded squared
|
|
587
|
+
class="pressable button rounded squared secondary"
|
|
588
588
|
>
|
|
589
589
|
<span
|
|
590
|
-
class="icon"
|
|
590
|
+
class="icon paragraph"
|
|
591
591
|
>
|
|
592
592
|
<svg
|
|
593
593
|
fill="none"
|
|
@@ -628,11 +628,11 @@ exports[`component:<InputNumber> renders 1`] = `
|
|
|
628
628
|
class="view texts"
|
|
629
629
|
/>
|
|
630
630
|
<button
|
|
631
|
-
class="pressable button rounded squared
|
|
631
|
+
class="pressable button rounded squared secondary disabled"
|
|
632
632
|
disabled=""
|
|
633
633
|
>
|
|
634
634
|
<span
|
|
635
|
-
class="icon"
|
|
635
|
+
class="icon paragraph"
|
|
636
636
|
>
|
|
637
637
|
<svg
|
|
638
638
|
fill="none"
|
|
@@ -654,16 +654,16 @@ exports[`component:<InputNumber> renders 1`] = `
|
|
|
654
654
|
</svg>
|
|
655
655
|
</span>
|
|
656
656
|
</button>
|
|
657
|
-
<
|
|
658
|
-
class="text headline value"
|
|
657
|
+
<h3
|
|
658
|
+
class="text headline-3 value"
|
|
659
659
|
>
|
|
660
660
|
0
|
|
661
|
-
</
|
|
661
|
+
</h3>
|
|
662
662
|
<button
|
|
663
|
-
class="pressable button rounded squared
|
|
663
|
+
class="pressable button rounded squared secondary"
|
|
664
664
|
>
|
|
665
665
|
<span
|
|
666
|
-
class="icon"
|
|
666
|
+
class="icon paragraph"
|
|
667
667
|
>
|
|
668
668
|
<svg
|
|
669
669
|
fill="none"
|
|
@@ -705,11 +705,11 @@ exports[`component:<InputNumber> testID 1`] = `
|
|
|
705
705
|
class="view texts"
|
|
706
706
|
/>
|
|
707
707
|
<button
|
|
708
|
-
class="pressable button rounded squared
|
|
708
|
+
class="pressable button rounded squared secondary disabled"
|
|
709
709
|
disabled=""
|
|
710
710
|
>
|
|
711
711
|
<span
|
|
712
|
-
class="icon"
|
|
712
|
+
class="icon paragraph"
|
|
713
713
|
>
|
|
714
714
|
<svg
|
|
715
715
|
fill="none"
|
|
@@ -731,16 +731,16 @@ exports[`component:<InputNumber> testID 1`] = `
|
|
|
731
731
|
</svg>
|
|
732
732
|
</span>
|
|
733
733
|
</button>
|
|
734
|
-
<
|
|
735
|
-
class="text headline value"
|
|
734
|
+
<h3
|
|
735
|
+
class="text headline-3 value"
|
|
736
736
|
>
|
|
737
737
|
0
|
|
738
|
-
</
|
|
738
|
+
</h3>
|
|
739
739
|
<button
|
|
740
|
-
class="pressable button rounded squared
|
|
740
|
+
class="pressable button rounded squared secondary"
|
|
741
741
|
>
|
|
742
742
|
<span
|
|
743
|
-
class="icon"
|
|
743
|
+
class="icon paragraph"
|
|
744
744
|
>
|
|
745
745
|
<svg
|
|
746
746
|
fill="none"
|
|
@@ -59,7 +59,7 @@ var InputOption = function InputOption(_ref) {
|
|
|
59
59
|
value: value
|
|
60
60
|
}, type === _InputOption.CHECKBOX && checked ? /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
|
|
61
61
|
name: "Check",
|
|
62
|
-
className:
|
|
62
|
+
className: _InputOptionModule.default.icon
|
|
63
63
|
}) : undefined), label && /*#__PURE__*/_react.default.createElement(_primitives.Text, {
|
|
64
64
|
className: (0, _helpers.styles)(_InputOptionModule.default.label, disabled && _InputOptionModule.default.disabled)
|
|
65
65
|
}, label));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputOption.js","names":["InputOption","checked","disabled","label","name","reverse","type","CHECKBOX","value","onChange","others","Primitive","Checkbox","RADIO","Radio","Switch","handleChange","event","SWITCH","includes","style","inputOption","className","icon","undefined","displayName","propTypes","PropTypes","bool","string","isRequired","oneOf","func"],"sources":["../../../src/components/InputOption/InputOption.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Checkbox, Icon, Pressable, Radio, Switch, Text } from '../../primitives';\nimport { CHECKBOX, RADIO, SWITCH } from './InputOption.constants';\nimport style from './InputOption.module.css';\n\nconst InputOption = ({\n checked,\n disabled,\n label,\n name,\n reverse,\n type = CHECKBOX,\n value = '',\n onChange = () => {},\n ...others\n}) => {\n const Primitive = type === CHECKBOX ? Checkbox : type === RADIO ? Radio : Switch;\n\n const handleChange = (event) => {\n onChange([CHECKBOX, SWITCH].includes(type) ? !checked : value, event);\n };\n\n return (\n <Pressable\n {...others}\n type=\"button\"\n className={styles(style.inputOption, reverse && style.reverse, others.className)}\n onPress={handleChange}\n >\n <Primitive checked={checked} disabled={disabled} name={name} type={type} value={value}>\n {type === CHECKBOX && checked ? <Icon name=\"Check\" className={
|
|
1
|
+
{"version":3,"file":"InputOption.js","names":["InputOption","checked","disabled","label","name","reverse","type","CHECKBOX","value","onChange","others","Primitive","Checkbox","RADIO","Radio","Switch","handleChange","event","SWITCH","includes","style","inputOption","className","icon","undefined","displayName","propTypes","PropTypes","bool","string","isRequired","oneOf","func"],"sources":["../../../src/components/InputOption/InputOption.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { styles } from '../../helpers';\nimport { Checkbox, Icon, Pressable, Radio, Switch, Text } from '../../primitives';\nimport { CHECKBOX, RADIO, SWITCH } from './InputOption.constants';\nimport style from './InputOption.module.css';\n\nconst InputOption = ({\n checked,\n disabled,\n label,\n name,\n reverse,\n type = CHECKBOX,\n value = '',\n onChange = () => {},\n ...others\n}) => {\n const Primitive = type === CHECKBOX ? Checkbox : type === RADIO ? Radio : Switch;\n\n const handleChange = (event) => {\n onChange([CHECKBOX, SWITCH].includes(type) ? !checked : value, event);\n };\n\n return (\n <Pressable\n {...others}\n type=\"button\"\n className={styles(style.inputOption, reverse && style.reverse, others.className)}\n onPress={handleChange}\n >\n <Primitive checked={checked} disabled={disabled} name={name} type={type} value={value}>\n {type === CHECKBOX && checked ? <Icon name=\"Check\" className={style.icon} /> : undefined}\n </Primitive>\n {label && <Text className={styles(style.label, disabled && style.disabled)}>{label}</Text>}\n </Pressable>\n );\n};\n\nInputOption.displayName = 'Component:InputOption';\n\nInputOption.propTypes = {\n checked: PropTypes.bool,\n disabled: PropTypes.bool,\n label: PropTypes.string,\n name: PropTypes.string.isRequired,\n reverse: PropTypes.bool,\n type: PropTypes.oneOf([CHECKBOX, RADIO, SWITCH]),\n value: PropTypes.string,\n onChange: PropTypes.func,\n};\n\nexport { InputOption };\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAEA,IAAMA,WAAW,GAAG,SAAdA,WAAc,OAUd;EAAA,IATJC,OASI,QATJA,OASI;EAAA,IARJC,QAQI,QARJA,QAQI;EAAA,IAPJC,KAOI,QAPJA,KAOI;EAAA,IANJC,IAMI,QANJA,IAMI;EAAA,IALJC,OAKI,QALJA,OAKI;EAAA,qBAJJC,IAII;EAAA,IAJJA,IAII,0BAJGC,qBAIH;EAAA,sBAHJC,KAGI;EAAA,IAHJA,KAGI,2BAHI,EAGJ;EAAA,yBAFJC,QAEI;EAAA,IAFJA,QAEI,8BAFO,YAAM,CAAE,CAEf;EAAA,IADDC,MACC;;EACJ,IAAMC,SAAS,GAAGL,IAAI,KAAKC,qBAAT,GAAoBK,oBAApB,GAA+BN,IAAI,KAAKO,kBAAT,GAAiBC,iBAAjB,GAAyBC,kBAA1E;;EAEA,IAAMC,YAAY,GAAG,SAAfA,YAAe,CAACC,KAAD,EAAW;IAC9BR,QAAQ,CAAC,CAACF,qBAAD,EAAWW,mBAAX,EAAmBC,QAAnB,CAA4Bb,IAA5B,IAAoC,CAACL,OAArC,GAA+CO,KAAhD,EAAuDS,KAAvD,CAAR;EACD,CAFD;;EAIA,oBACE,6BAAC,qBAAD,eACMP,MADN;IAEE,IAAI,EAAC,QAFP;IAGE,SAAS,EAAE,qBAAOU,2BAAMC,WAAb,EAA0BhB,OAAO,IAAIe,2BAAMf,OAA3C,EAAoDK,MAAM,CAACY,SAA3D,CAHb;IAIE,OAAO,EAAEN;EAJX,iBAME,6BAAC,SAAD;IAAW,OAAO,EAAEf,OAApB;IAA6B,QAAQ,EAAEC,QAAvC;IAAiD,IAAI,EAAEE,IAAvD;IAA6D,IAAI,EAAEE,IAAnE;IAAyE,KAAK,EAAEE;EAAhF,GACGF,IAAI,KAAKC,qBAAT,IAAqBN,OAArB,gBAA+B,6BAAC,gBAAD;IAAM,IAAI,EAAC,OAAX;IAAmB,SAAS,EAAEmB,2BAAMG;EAApC,EAA/B,GAA8EC,SADjF,CANF,EASGrB,KAAK,iBAAI,6BAAC,gBAAD;IAAM,SAAS,EAAE,qBAAOiB,2BAAMjB,KAAb,EAAoBD,QAAQ,IAAIkB,2BAAMlB,QAAtC;EAAjB,GAAmEC,KAAnE,CATZ,CADF;AAaD,CA9BD;;;AAgCAH,WAAW,CAACyB,WAAZ,GAA0B,uBAA1B;AAEAzB,WAAW,CAAC0B,SAAZ,GAAwB;EACtBzB,OAAO,EAAE0B,mBAAUC,IADG;EAEtB1B,QAAQ,EAAEyB,mBAAUC,IAFE;EAGtBzB,KAAK,EAAEwB,mBAAUE,MAHK;EAItBzB,IAAI,EAAEuB,mBAAUE,MAAV,CAAiBC,UAJD;EAKtBzB,OAAO,EAAEsB,mBAAUC,IALG;EAMtBtB,IAAI,EAAEqB,mBAAUI,KAAV,CAAgB,CAACxB,qBAAD,EAAWM,kBAAX,EAAkBK,mBAAlB,CAAhB,CANgB;EAOtBV,KAAK,EAAEmB,mBAAUE,MAPK;EAQtBpB,QAAQ,EAAEkB,mBAAUK;AARE,CAAxB"}
|
|
@@ -38,7 +38,7 @@ exports[`primitive:<InputOption> prop:checked && disabled 1`] = `
|
|
|
38
38
|
value=""
|
|
39
39
|
/>
|
|
40
40
|
<span
|
|
41
|
-
class="icon icon"
|
|
41
|
+
class="icon paragraph icon"
|
|
42
42
|
>
|
|
43
43
|
<svg
|
|
44
44
|
fill="none"
|
|
@@ -78,7 +78,7 @@ exports[`primitive:<InputOption> prop:checked 1`] = `
|
|
|
78
78
|
value=""
|
|
79
79
|
/>
|
|
80
80
|
<span
|
|
81
|
-
class="icon icon"
|
|
81
|
+
class="icon paragraph icon"
|
|
82
82
|
>
|
|
83
83
|
<svg
|
|
84
84
|
fill="none"
|
|
@@ -39,7 +39,7 @@ exports[`component:<InputSelect> inherit:className 1`] = `
|
|
|
39
39
|
</option>
|
|
40
40
|
</select>
|
|
41
41
|
<span
|
|
42
|
-
class="icon icon right"
|
|
42
|
+
class="icon paragraph icon right"
|
|
43
43
|
>
|
|
44
44
|
<svg
|
|
45
45
|
fill="none"
|
|
@@ -145,7 +145,7 @@ exports[`component:<InputSelect> prop:error 1`] = `
|
|
|
145
145
|
</option>
|
|
146
146
|
</select>
|
|
147
147
|
<span
|
|
148
|
-
class="icon icon right"
|
|
148
|
+
class="icon paragraph icon right"
|
|
149
149
|
>
|
|
150
150
|
<svg
|
|
151
151
|
fill="none"
|
|
@@ -207,7 +207,7 @@ exports[`component:<InputSelect> prop:hint 1`] = `
|
|
|
207
207
|
</option>
|
|
208
208
|
</select>
|
|
209
209
|
<span
|
|
210
|
-
class="icon icon right"
|
|
210
|
+
class="icon paragraph icon right"
|
|
211
211
|
>
|
|
212
212
|
<svg
|
|
213
213
|
fill="none"
|
|
@@ -279,7 +279,7 @@ exports[`component:<InputSelect> prop:label 1`] = `
|
|
|
279
279
|
</option>
|
|
280
280
|
</select>
|
|
281
281
|
<span
|
|
282
|
-
class="icon icon right"
|
|
282
|
+
class="icon paragraph icon right"
|
|
283
283
|
>
|
|
284
284
|
<svg
|
|
285
285
|
fill="none"
|
|
@@ -341,7 +341,7 @@ exports[`component:<InputSelect> prop:label 2`] = `
|
|
|
341
341
|
</option>
|
|
342
342
|
</select>
|
|
343
343
|
<span
|
|
344
|
-
class="icon icon right"
|
|
344
|
+
class="icon paragraph icon right"
|
|
345
345
|
>
|
|
346
346
|
<svg
|
|
347
347
|
fill="none"
|
|
@@ -403,7 +403,7 @@ exports[`component:<InputSelect> renders 1`] = `
|
|
|
403
403
|
</option>
|
|
404
404
|
</select>
|
|
405
405
|
<span
|
|
406
|
-
class="icon icon right"
|
|
406
|
+
class="icon paragraph icon right"
|
|
407
407
|
>
|
|
408
408
|
<svg
|
|
409
409
|
fill="none"
|
|
@@ -466,7 +466,7 @@ exports[`component:<InputSelect> testID 1`] = `
|
|
|
466
466
|
</option>
|
|
467
467
|
</select>
|
|
468
468
|
<span
|
|
469
|
-
class="icon icon right"
|
|
469
|
+
class="icon paragraph icon right"
|
|
470
470
|
>
|
|
471
471
|
<svg
|
|
472
472
|
fill="none"
|
|
@@ -100,7 +100,7 @@ var InputText = function InputText(_ref) {
|
|
|
100
100
|
className: (0, _helpers.styles)(_InputTextModule.default.inputBorder, disabled && _InputTextModule.default.disabled, error && _InputTextModule.default.error, focus && !error && _InputTextModule.default.focus)
|
|
101
101
|
}, icon && /*#__PURE__*/_react.default.createElement(_primitives.Icon, {
|
|
102
102
|
name: icon,
|
|
103
|
-
className:
|
|
103
|
+
className: (0, _helpers.styles)(_InputTextModule.default.icon, _InputTextModule.default.left, disabled && _InputTextModule.default.disabled)
|
|
104
104
|
}), /*#__PURE__*/_react.default.createElement(_primitives.Input, _extends({}, others, {
|
|
105
105
|
disabled: disabled,
|
|
106
106
|
type: !is.password || password ? type : 'text',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputText.js","names":["InputText","disabled","error","hint","icon","label","type","onChange","onEnter","onLeave","others","focus","setFocus","password","setPassword","handleChange","value","event","handleEnter","handleLeave","has","undefined","length","is","style","inputContainer","className","text","withIcon","inputBorder","left","input","iconLeft","pressable","displayName","propTypes","PropTypes","bool","string","multiLine","name","isRequired","func"],"sources":["../../../src/components/InputText/InputText.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { styles } from '../../helpers';\nimport { Icon, Input, Pressable, Text, View } from '../../primitives';\nimport style from './InputText.module.css';\n\nconst InputText = ({\n disabled,\n error,\n hint,\n icon,\n label,\n type,\n onChange = () => {},\n onEnter = () => {},\n onLeave = () => {},\n ...others\n}) => {\n const [focus, setFocus] = useState(false);\n const [password, setPassword] = useState(true);\n\n const handleChange = (value, event) => {\n onChange(value, event);\n };\n\n const handleEnter = (event) => {\n setFocus(true);\n onEnter(event);\n };\n\n const handleLeave = () => {\n setFocus(false);\n onLeave(event);\n };\n\n const has = {\n value: others.value !== undefined && others.value?.length > 0,\n };\n const is = { password: type === 'password' };\n\n return (\n <View className={styles(style.inputContainer, others.className)} style={others.style}>\n {label && (\n <Text\n className={styles(\n style.text,\n style.label,\n disabled && style.disabled,\n focus && style.focus,\n error && style.error,\n icon && style.withIcon,\n (focus || error || has.value) && style.value,\n )}\n >\n {label}\n </Text>\n )}\n\n <View\n row\n className={styles(\n style.inputBorder,\n disabled && style.disabled,\n error && style.error,\n focus && !error && style.focus,\n )}\n >\n {icon && <Icon name={icon} className={
|
|
1
|
+
{"version":3,"file":"InputText.js","names":["InputText","disabled","error","hint","icon","label","type","onChange","onEnter","onLeave","others","focus","setFocus","password","setPassword","handleChange","value","event","handleEnter","handleLeave","has","undefined","length","is","style","inputContainer","className","text","withIcon","inputBorder","left","input","iconLeft","pressable","displayName","propTypes","PropTypes","bool","string","multiLine","name","isRequired","func"],"sources":["../../../src/components/InputText/InputText.jsx"],"sourcesContent":["import PropTypes from 'prop-types';\nimport React, { useState } from 'react';\n\nimport { styles } from '../../helpers';\nimport { Icon, Input, Pressable, Text, View } from '../../primitives';\nimport style from './InputText.module.css';\n\nconst InputText = ({\n disabled,\n error,\n hint,\n icon,\n label,\n type,\n onChange = () => {},\n onEnter = () => {},\n onLeave = () => {},\n ...others\n}) => {\n const [focus, setFocus] = useState(false);\n const [password, setPassword] = useState(true);\n\n const handleChange = (value, event) => {\n onChange(value, event);\n };\n\n const handleEnter = (event) => {\n setFocus(true);\n onEnter(event);\n };\n\n const handleLeave = () => {\n setFocus(false);\n onLeave(event);\n };\n\n const has = {\n value: others.value !== undefined && others.value?.length > 0,\n };\n const is = { password: type === 'password' };\n\n return (\n <View className={styles(style.inputContainer, others.className)} style={others.style}>\n {label && (\n <Text\n className={styles(\n style.text,\n style.label,\n disabled && style.disabled,\n focus && style.focus,\n error && style.error,\n icon && style.withIcon,\n (focus || error || has.value) && style.value,\n )}\n >\n {label}\n </Text>\n )}\n\n <View\n row\n className={styles(\n style.inputBorder,\n disabled && style.disabled,\n error && style.error,\n focus && !error && style.focus,\n )}\n >\n {icon && <Icon name={icon} className={styles(style.icon, style.left, disabled && style.disabled)} />}\n <Input\n {...others}\n disabled={disabled}\n type={!is.password || password ? type : 'text'}\n value={others.value || ''}\n className={styles(style.input, icon && style.iconLeft)}\n style={undefined}\n onChange={handleChange}\n onEnter={handleEnter}\n onLeave={handleLeave}\n />\n {is.password && !disabled && (\n <Pressable tabIndex={-1} type=\"button\" className={style.pressable} onPress={() => setPassword(!password)}>\n <Icon name={password ? 'EyeClose' : 'EyeOpen'} />\n </Pressable>\n )}\n </View>\n\n {hint && (\n <Text small className={styles(style.text, style.hint, disabled && style.disabled, error && style.error)}>\n {hint}\n </Text>\n )}\n </View>\n );\n};\n\nInputText.displayName = 'Component:InputText';\n\nInputText.propTypes = {\n disabled: PropTypes.bool,\n error: PropTypes.bool,\n hint: PropTypes.string,\n icon: PropTypes.string,\n label: PropTypes.string,\n multiLine: PropTypes.bool,\n name: PropTypes.string.isRequired,\n type: PropTypes.string,\n onChange: PropTypes.func,\n onEnter: PropTypes.func,\n onLeave: PropTypes.func,\n};\n\nexport { InputText };\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,SAAS,GAAG,SAAZA,SAAY,OAWZ;EAAA;;EAAA,IAVJC,QAUI,QAVJA,QAUI;EAAA,IATJC,KASI,QATJA,KASI;EAAA,IARJC,IAQI,QARJA,IAQI;EAAA,IA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QAA9B;IAAuC,SAAS,EAAEuB,yBAAMS,SAAxD;IAAmE,OAAO,EAAE;MAAA,OAAMnB,WAAW,CAAC,CAACD,QAAF,CAAjB;IAAA;EAA5E,gBACE,6BAAC,gBAAD;IAAM,IAAI,EAAEA,QAAQ,GAAG,UAAH,GAAgB;EAApC,EADF,CAtBJ,CAjBF,EA6CGV,IAAI,iBACH,6BAAC,gBAAD;IAAM,KAAK,MAAX;IAAY,SAAS,EAAE,qBAAOqB,yBAAMG,IAAb,EAAmBH,yBAAMrB,IAAzB,EAA+BF,QAAQ,IAAIuB,yBAAMvB,QAAjD,EAA2DC,KAAK,IAAIsB,yBAAMtB,KAA1E;EAAvB,GACGC,IADH,CA9CJ,CADF;AAqDD,CAvFD;;;AAyFAH,SAAS,CAACkC,WAAV,GAAwB,qBAAxB;AAEAlC,SAAS,CAACmC,SAAV,GAAsB;EACpBlC,QAAQ,EAAEmC,mBAAUC,IADA;EAEpBnC,KAAK,EAAEkC,mBAAUC,IAFG;EAGpBlC,IAAI,EAAEiC,mBAAUE,MAHI;EAIpBlC,IAAI,EAAEgC,mBAAUE,MAJI;EAKpBjC,KAAK,EAAE+B,mBAAUE,MALG;EAMpBC,SAAS,EAAEH,mBAAUC,IAND;EAOpBG,IAAI,EAAEJ,mBAAUE,MAAV,CAAiBG,UAPH;EAQpBnC,IAAI,EAAE8B,mBAAUE,MARI;EASpB/B,QAAQ,EAAE6B,mBAAUM,IATA;EAUpBlC,OAAO,EAAE4B,mBAAUM,IAVC;EAWpBjC,OAAO,EAAE2B,mBAAUM;AAXC,CAAtB"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
--mirai-ui-input-text-disabled: var(--mirai-ui-content-border);
|
|
4
4
|
--mirai-ui-input-text-error: var(--mirai-ui-error);
|
|
5
5
|
--mirai-ui-input-text-focus: var(--mirai-ui-accent);
|
|
6
|
-
--mirai-ui-input-text-icon: var(--mirai-ui-
|
|
6
|
+
--mirai-ui-input-text-icon: var(--mirai-ui-font-size-headline-4);
|
|
7
7
|
--mirai-ui-input-text-padding-x: var(--mirai-ui-space-S);
|
|
8
8
|
--mirai-ui-input-text-padding-y: var(--mirai-ui-space-S);
|
|
9
9
|
--mirai-ui-input-text-radius: var(--mirai-ui-border-radius);
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
|
|
36
36
|
.icon {
|
|
37
37
|
color: var(--mirai-ui-input-disabled);
|
|
38
|
-
line-height: var(--mirai-ui-input-text-icon);
|
|
39
|
-
height: var(--mirai-ui-input-text-icon);
|
|
40
|
-
width: var(--mirai-ui-input-text-icon);
|
|
41
38
|
font-size: var(--mirai-ui-input-text-icon);
|
|
39
|
+
height: var(--mirai-ui-input-text-icon);
|
|
40
|
+
line-height: var(--mirai-ui-input-text-icon);
|
|
42
41
|
pointer-events: none;
|
|
43
42
|
position: absolute;
|
|
43
|
+
width: var(--mirai-ui-input-text-icon);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.icon.left {
|
|
@@ -101,7 +101,6 @@
|
|
|
101
101
|
|
|
102
102
|
.label.withIcon:not(.value) {
|
|
103
103
|
background-color: transparent;
|
|
104
|
-
/* left: calc(var(--mirai-ui-input-text-icon) + var(--mirai-ui-input-text-padding-x)); */
|
|
105
104
|
left: calc(var(--mirai-ui-input-text-icon) + calc(var(--mirai-ui-input-text-padding-x) / 2));
|
|
106
105
|
}
|
|
107
106
|
|
|
@@ -122,7 +121,8 @@
|
|
|
122
121
|
color: var(--mirai-ui-input-disabled);
|
|
123
122
|
}
|
|
124
123
|
|
|
125
|
-
.text.disabled
|
|
124
|
+
.text.disabled,
|
|
125
|
+
.icon.disabled {
|
|
126
126
|
color: var(--mirai-ui-input-text-disabled);
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -91,7 +91,7 @@ exports[`component:<InputText> prop:icon 1`] = `
|
|
|
91
91
|
class="view row inputBorder"
|
|
92
92
|
>
|
|
93
93
|
<span
|
|
94
|
-
class="icon icon left"
|
|
94
|
+
class="icon paragraph icon left"
|
|
95
95
|
>
|
|
96
96
|
<svg
|
|
97
97
|
fill="none"
|
|
@@ -187,7 +187,7 @@ exports[`component:<InputText> prop:type 1`] = `
|
|
|
187
187
|
type="button"
|
|
188
188
|
>
|
|
189
189
|
<span
|
|
190
|
-
class="icon"
|
|
190
|
+
class="icon paragraph"
|
|
191
191
|
>
|
|
192
192
|
<svg
|
|
193
193
|
fill="none"
|