@woosmap/ui 4.34.0-beta.0 → 4.34.0-beta.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/package.json +1 -1
- package/src/components/Card/Card.styl +2 -2
- package/src/components/Card/SimpleCard.styl +1 -1
- package/src/components/Demo/skeletondemo.styl +1 -1
- package/src/components/Flash/Flash.styl +7 -7
- package/src/components/Icon/Icon.js +6 -4
- package/src/components/Icon/icon-story.styl +1 -1
- package/src/components/Label/Label.styl +5 -5
- package/src/components/Modal/Modal.styl +1 -1
- package/src/components/ServiceMessage/ServiceMessage.styl +2 -2
- package/src/components/SnackBar/SnackBar.styl +1 -1
- package/src/components/Stepper/Stepper.styl +1 -1
- package/src/styles/console/button.styl +38 -38
- package/src/styles/console/icon.styl +4 -2
- package/src/styles/console/input.styl +1 -1
- package/src/styles/console/mixins.styl +1 -1
- package/src/styles/console/select.styl +3 -3
package/package.json
CHANGED
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
font-size $fontSizeSmall - .1
|
|
192
192
|
margin-top -.5rem
|
|
193
193
|
.icon
|
|
194
|
-
|
|
194
|
+
stroke $logo5
|
|
195
195
|
&__footer
|
|
196
196
|
color $dark40
|
|
197
197
|
&--small
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
.card--traffic &
|
|
273
273
|
background $traffic
|
|
274
274
|
.icon
|
|
275
|
-
|
|
275
|
+
stroke $light
|
|
276
276
|
&__image
|
|
277
277
|
flex-grow 1
|
|
278
278
|
flex-shrink 0
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
min-height $buttonHeight
|
|
12
12
|
padding .9rem $padding
|
|
13
13
|
.icon
|
|
14
|
-
|
|
14
|
+
stroke $secondary
|
|
15
15
|
flex-shrink 0
|
|
16
16
|
&--shadowed
|
|
17
17
|
box-shadow 0 0 1rem $dark8
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
&.flash--inverse
|
|
31
31
|
color $flashSuccess
|
|
32
32
|
.icon
|
|
33
|
-
|
|
33
|
+
stroke $flashSuccess
|
|
34
34
|
|
|
35
35
|
&--tip
|
|
36
36
|
&:not(.flash--inverse)
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
&.flash--inverse
|
|
40
40
|
color $flashTipInverse
|
|
41
41
|
.icon
|
|
42
|
-
|
|
42
|
+
stroke $flashTipInverse
|
|
43
43
|
|
|
44
44
|
&--howto
|
|
45
45
|
&:not(.flash--inverse)
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
&.flash--inverse
|
|
49
49
|
color $flashHowto
|
|
50
50
|
.icon
|
|
51
|
-
|
|
51
|
+
stroke $flashHowto
|
|
52
52
|
|
|
53
53
|
&--warning
|
|
54
54
|
&:not(.flash--inverse)
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
&.flash--inverse
|
|
58
58
|
color $flashWarning
|
|
59
59
|
.icon
|
|
60
|
-
|
|
60
|
+
stroke $flashWarning
|
|
61
61
|
|
|
62
62
|
&--error
|
|
63
63
|
&:not(.flash--inverse)
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
&.flash--inverse
|
|
67
67
|
color $flashError
|
|
68
68
|
.icon
|
|
69
|
-
|
|
69
|
+
stroke $flashError
|
|
70
70
|
|
|
71
71
|
&--info
|
|
72
72
|
&:not(.flash--inverse)
|
|
@@ -75,4 +75,4 @@
|
|
|
75
75
|
&.flash--inverse
|
|
76
76
|
color $flashInfo
|
|
77
77
|
.icon
|
|
78
|
-
|
|
78
|
+
stroke $flashInfo
|
|
@@ -624,12 +624,12 @@ const Icons = {
|
|
|
624
624
|
|
|
625
625
|
class Icon extends Component {
|
|
626
626
|
render() {
|
|
627
|
-
const { icon, size, className, title, testId } = this.props;
|
|
627
|
+
const { icon, size, className, isFill, title, testId } = this.props;
|
|
628
628
|
const IconComponent = Object.keys(Icons).includes(icon) ? Icons[icon] : Woosmap;
|
|
629
|
-
|
|
629
|
+
const classes = cl('icon', { 'btn--fill': isFill }, className);
|
|
630
630
|
return (
|
|
631
631
|
<IconComponent
|
|
632
|
-
className={
|
|
632
|
+
className={classes}
|
|
633
633
|
data-testid={`${testId}-${icon}`}
|
|
634
634
|
width={size}
|
|
635
635
|
height={size}
|
|
@@ -640,16 +640,18 @@ class Icon extends Component {
|
|
|
640
640
|
}
|
|
641
641
|
|
|
642
642
|
Icon.defaultProps = {
|
|
643
|
-
size:
|
|
643
|
+
size: 22,
|
|
644
644
|
className: null,
|
|
645
645
|
title: null,
|
|
646
646
|
testId: 'icon',
|
|
647
|
+
isFill: false,
|
|
647
648
|
};
|
|
648
649
|
|
|
649
650
|
Icon.propTypes = {
|
|
650
651
|
size: PropTypes.number,
|
|
651
652
|
className: PropTypes.string,
|
|
652
653
|
icon: PropTypes.string.isRequired,
|
|
654
|
+
isFill: PropTypes.bool,
|
|
653
655
|
title: PropTypes.string,
|
|
654
656
|
testId: PropTypes.string,
|
|
655
657
|
};
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
margin .2rem 0
|
|
13
13
|
word-break break-all
|
|
14
14
|
.icon
|
|
15
|
-
|
|
15
|
+
stroke $light
|
|
16
16
|
&--round
|
|
17
17
|
br(50)
|
|
18
18
|
sq($buttonHeight)
|
|
@@ -134,10 +134,10 @@
|
|
|
134
134
|
text-shadow none
|
|
135
135
|
.btn
|
|
136
136
|
.icon
|
|
137
|
-
|
|
137
|
+
stroke $secondary70
|
|
138
138
|
&:hover
|
|
139
139
|
.icon
|
|
140
|
-
|
|
140
|
+
stroke $secondary70 !important
|
|
141
141
|
&--white
|
|
142
142
|
background-color $light
|
|
143
143
|
color $secondary
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
border .1rem solid $borderColor
|
|
146
146
|
.btn
|
|
147
147
|
.icon
|
|
148
|
-
|
|
148
|
+
stroke $secondary40
|
|
149
149
|
&:hover
|
|
150
150
|
.icon
|
|
151
|
-
|
|
151
|
+
stroke $secondary40 !important
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
&:hover
|
|
37
37
|
background-color $primary
|
|
38
38
|
.icon
|
|
39
|
-
|
|
39
|
+
stroke $light
|
|
40
40
|
&.btn--loading
|
|
41
41
|
&:hover
|
|
42
42
|
background-color $primary
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
background-color transparent
|
|
47
47
|
border-color $inputBorderColor
|
|
48
48
|
.icon
|
|
49
|
-
|
|
49
|
+
stroke $secondary
|
|
50
50
|
&.btn--important
|
|
51
51
|
&:disabled
|
|
52
52
|
&:hover
|
|
53
53
|
background-color $error
|
|
54
54
|
.icon
|
|
55
|
-
|
|
55
|
+
stroke $light
|
|
56
56
|
&.btn--has-icon
|
|
57
57
|
&:not(.btn--mini):not(.btn--small):not(.btn--large)
|
|
58
58
|
mbi(.4)
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
textShadow()
|
|
67
67
|
color $light
|
|
68
68
|
.icon
|
|
69
|
-
|
|
69
|
+
stroke $light
|
|
70
70
|
trans()
|
|
71
71
|
&.btn--loading:not(.btn--mini):not(.btn--small):not(.btn--large)
|
|
72
72
|
disableHoverEffect()
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
background-color $light
|
|
99
99
|
border .1rem solid $inputBorderColor
|
|
100
100
|
.icon
|
|
101
|
-
|
|
101
|
+
stroke $secondary
|
|
102
102
|
trans()
|
|
103
103
|
&.btn--has-icon
|
|
104
104
|
&:not(.btn--mini):not(.btn--small):not(.btn--large)
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
cursor default
|
|
118
118
|
border-color $inputBorderColor
|
|
119
119
|
.icon
|
|
120
|
-
|
|
120
|
+
stroke $secondary
|
|
121
121
|
&:disabled
|
|
122
122
|
opacity .4
|
|
123
123
|
cursor default
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
color $secondary
|
|
130
130
|
border-color $inputBorderColor
|
|
131
131
|
.icon
|
|
132
|
-
|
|
132
|
+
stroke $secondary
|
|
133
133
|
&--transparent
|
|
134
134
|
btn()
|
|
135
135
|
background-color transparent
|
|
@@ -148,11 +148,11 @@
|
|
|
148
148
|
flex-shrink 0
|
|
149
149
|
&:hover
|
|
150
150
|
.icon
|
|
151
|
-
|
|
151
|
+
stroke $light
|
|
152
152
|
&:hover
|
|
153
153
|
color $secondary
|
|
154
154
|
.icon
|
|
155
|
-
|
|
155
|
+
stroke $light
|
|
156
156
|
&:disabled
|
|
157
157
|
opacity .3
|
|
158
158
|
&:hover
|
|
@@ -160,14 +160,14 @@
|
|
|
160
160
|
color $secondary
|
|
161
161
|
background-color transparent
|
|
162
162
|
.icon
|
|
163
|
-
|
|
163
|
+
stroke $secondary
|
|
164
164
|
&--inverse
|
|
165
165
|
btn()
|
|
166
166
|
background-color transparent
|
|
167
167
|
border .1rem solid $light
|
|
168
168
|
color $light
|
|
169
169
|
.icon
|
|
170
|
-
|
|
170
|
+
stroke $light
|
|
171
171
|
&.btn--has-icon
|
|
172
172
|
&:not(.btn--mini):not(.btn--small):not(.btn--large)
|
|
173
173
|
mbi(.4)
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
border-color $success
|
|
180
180
|
color $light
|
|
181
181
|
.icon
|
|
182
|
-
|
|
182
|
+
stroke $light
|
|
183
183
|
&:disabled
|
|
184
184
|
opacity .3
|
|
185
185
|
&:hover
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
border-color $success
|
|
188
188
|
color $light
|
|
189
189
|
.icon
|
|
190
|
-
|
|
190
|
+
stroke $light
|
|
191
191
|
&--dropdown-item
|
|
192
192
|
flexBtn()
|
|
193
193
|
ellipsis()
|
|
@@ -209,12 +209,12 @@
|
|
|
209
209
|
&--important
|
|
210
210
|
color $error
|
|
211
211
|
.icon
|
|
212
|
-
|
|
212
|
+
stroke $error
|
|
213
213
|
&:disabled
|
|
214
214
|
color $secondary40
|
|
215
215
|
cursor default
|
|
216
216
|
.icon
|
|
217
|
-
|
|
217
|
+
stroke $secondary40
|
|
218
218
|
&:hover
|
|
219
219
|
background-color transparent
|
|
220
220
|
cursor default
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
text-decoration underline
|
|
239
239
|
color $primary
|
|
240
240
|
.icon
|
|
241
|
-
|
|
241
|
+
stroke $primary
|
|
242
242
|
&:disabled
|
|
243
243
|
cursor default
|
|
244
244
|
opacity .3
|
|
@@ -247,15 +247,15 @@
|
|
|
247
247
|
opacity .3
|
|
248
248
|
text-decoration underline
|
|
249
249
|
.icon
|
|
250
|
-
|
|
250
|
+
stroke inherit
|
|
251
251
|
.label &
|
|
252
252
|
&:hover
|
|
253
253
|
.icon
|
|
254
|
-
|
|
254
|
+
stroke $light
|
|
255
255
|
.label.label--white &
|
|
256
256
|
&:hover
|
|
257
257
|
.icon
|
|
258
|
-
|
|
258
|
+
stroke $secondary
|
|
259
259
|
&.btn--icon
|
|
260
260
|
padding 0
|
|
261
261
|
text-decoration none
|
|
@@ -312,13 +312,13 @@
|
|
|
312
312
|
color $primary
|
|
313
313
|
text-decoration none
|
|
314
314
|
.icon
|
|
315
|
-
|
|
315
|
+
stroke $primary
|
|
316
316
|
&:disabled
|
|
317
317
|
&:hover
|
|
318
318
|
color $primary
|
|
319
319
|
text-decoration none
|
|
320
320
|
.icon
|
|
321
|
-
|
|
321
|
+
stroke $primary
|
|
322
322
|
&--link
|
|
323
323
|
&--link-flex
|
|
324
324
|
text-decoration underline
|
|
@@ -326,31 +326,31 @@
|
|
|
326
326
|
color $secondary-medium40
|
|
327
327
|
.icon
|
|
328
328
|
trans()
|
|
329
|
-
|
|
329
|
+
stroke $secondary-medium40
|
|
330
330
|
&:hover
|
|
331
331
|
color $primary
|
|
332
332
|
.icon
|
|
333
|
-
|
|
333
|
+
stroke $primary
|
|
334
334
|
&--link-primary
|
|
335
335
|
color $primary
|
|
336
336
|
.icon
|
|
337
|
-
|
|
337
|
+
stroke $primary
|
|
338
338
|
&:disabled
|
|
339
339
|
&:hover
|
|
340
340
|
color $primary
|
|
341
341
|
text-decoration none
|
|
342
342
|
.icon
|
|
343
|
-
|
|
343
|
+
stroke $primary
|
|
344
344
|
&--link-info
|
|
345
345
|
&--link-flex-info
|
|
346
346
|
color $info
|
|
347
347
|
.icon
|
|
348
|
-
|
|
348
|
+
stroke $info
|
|
349
349
|
&:hover
|
|
350
350
|
color $primary
|
|
351
351
|
text-decoration underline
|
|
352
352
|
.icon
|
|
353
|
-
|
|
353
|
+
stroke $primary
|
|
354
354
|
&--link-info
|
|
355
355
|
&--link-flex-info
|
|
356
356
|
&--link-flex
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
border-color $secondary
|
|
395
395
|
background-color $secondary
|
|
396
396
|
.icon
|
|
397
|
-
|
|
397
|
+
stroke $light
|
|
398
398
|
&:hover
|
|
399
399
|
background-color $secondary
|
|
400
400
|
&--group
|
|
@@ -417,7 +417,7 @@
|
|
|
417
417
|
border-color $secondary
|
|
418
418
|
background-color $secondary
|
|
419
419
|
.icon
|
|
420
|
-
|
|
420
|
+
stroke $light
|
|
421
421
|
&:hover
|
|
422
422
|
background-color $secondary
|
|
423
423
|
&:disabled
|
|
@@ -425,18 +425,18 @@
|
|
|
425
425
|
border-color $secondary-medium15
|
|
426
426
|
color $light70
|
|
427
427
|
.icon
|
|
428
|
-
|
|
428
|
+
stroke $light70
|
|
429
429
|
&:disabled:not(.active)
|
|
430
430
|
color $secondary30
|
|
431
431
|
cursor default
|
|
432
432
|
.icon
|
|
433
|
-
|
|
433
|
+
stroke $secondary30
|
|
434
434
|
&:hover
|
|
435
435
|
border-color $inputBorderColor
|
|
436
436
|
color $secondary30
|
|
437
437
|
background-color transparent
|
|
438
438
|
.icon
|
|
439
|
-
|
|
439
|
+
stroke $secondary30
|
|
440
440
|
&-container
|
|
441
441
|
flexMiddle()
|
|
442
442
|
.btn
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
position relative
|
|
483
483
|
.icon
|
|
484
484
|
flex-shrink 0
|
|
485
|
-
|
|
485
|
+
stroke $secondary-medium60
|
|
486
486
|
display none
|
|
487
487
|
.btn__label
|
|
488
488
|
ellipsis()
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
font-weight 700
|
|
511
511
|
color $tabBtnActive
|
|
512
512
|
.icon
|
|
513
|
-
|
|
513
|
+
stroke $secondary
|
|
514
514
|
&:after
|
|
515
515
|
width 100%
|
|
516
516
|
&:hover
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
color $error
|
|
521
521
|
position relative
|
|
522
522
|
.icon
|
|
523
|
-
|
|
523
|
+
stroke $error
|
|
524
524
|
&:before
|
|
525
525
|
content ''
|
|
526
526
|
position absolute
|
|
@@ -592,18 +592,18 @@
|
|
|
592
592
|
flexAxis()
|
|
593
593
|
sq($sidebarButtonSize)
|
|
594
594
|
.icon
|
|
595
|
-
|
|
595
|
+
stroke $light
|
|
596
596
|
&:hover
|
|
597
597
|
background-color $dark15
|
|
598
598
|
.icon
|
|
599
|
-
|
|
599
|
+
stroke $light
|
|
600
600
|
&.active
|
|
601
601
|
cursor default
|
|
602
602
|
background-color $dark20
|
|
603
603
|
&:hover
|
|
604
604
|
background-color $dark20
|
|
605
605
|
.icon
|
|
606
|
-
|
|
606
|
+
stroke $light
|
|
607
607
|
&--notification
|
|
608
608
|
position relative
|
|
609
609
|
padding 0 .6rem !important
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
stroke $secondary
|
|
4
4
|
stroke-linecap round
|
|
5
5
|
stroke-linejoin round
|
|
6
|
+
stroke-width .12rem
|
|
7
|
+
&:not(.icon--fill)
|
|
8
|
+
fill: none
|
|
6
9
|
&--fill
|
|
7
10
|
stroke-width: 0
|
|
8
11
|
fill $secondary
|
|
9
|
-
|
|
10
|
-
fill: none
|
|
12
|
+
|
|
@@ -29,7 +29,7 @@ select
|
|
|
29
29
|
.select__indicator
|
|
30
30
|
.asyncselect__indicator
|
|
31
31
|
svg
|
|
32
|
-
|
|
32
|
+
stroke $secondary
|
|
33
33
|
&__value-container
|
|
34
34
|
padding-left 1rem !important
|
|
35
35
|
&__single-value
|
|
@@ -40,7 +40,7 @@ select
|
|
|
40
40
|
&-separator
|
|
41
41
|
background-color $secondary-medium25
|
|
42
42
|
svg
|
|
43
|
-
|
|
43
|
+
stroke $secondary-medium25
|
|
44
44
|
&__placeholder
|
|
45
45
|
white-space nowrap
|
|
46
46
|
color $secondary-medium60
|
|
@@ -97,7 +97,7 @@ select
|
|
|
97
97
|
&__remove
|
|
98
98
|
cursor pointer
|
|
99
99
|
svg
|
|
100
|
-
|
|
100
|
+
stroke $light !important
|
|
101
101
|
&--small
|
|
102
102
|
.select
|
|
103
103
|
.asyncselect
|