@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.34.0-beta.0",
3
+ "version": "4.34.0-beta.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -191,7 +191,7 @@
191
191
  font-size $fontSizeSmall - .1
192
192
  margin-top -.5rem
193
193
  .icon
194
- fill $logo5
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
- fill $light
275
+ stroke $light
276
276
  &__image
277
277
  flex-grow 1
278
278
  flex-shrink 0
@@ -61,7 +61,7 @@
61
61
  position absolute
62
62
  right 1rem
63
63
  top 1.3rem
64
- fill $favorite
64
+ stroke $favorite
65
65
  .inline &
66
66
  sq(1.8)
67
67
  position unset
@@ -155,7 +155,7 @@
155
155
  padding-left .5rem !important
156
156
  padding-right .5rem !important
157
157
  svg
158
- fill $activeColor
158
+ stroke $activeColor
159
159
  &__indicator-separator
160
160
  background-color $activeColor
161
161
  &__multi-value
@@ -11,7 +11,7 @@
11
11
  min-height $buttonHeight
12
12
  padding .9rem $padding
13
13
  .icon
14
- fill $secondary
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
- fill $flashSuccess
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
- fill $flashTipInverse
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
- fill $flashHowto
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
- fill $flashWarning
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
- fill $flashError
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
- fill $flashInfo
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={cl('icon', 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: 24,
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
  };
@@ -24,6 +24,6 @@
24
24
  stroke-linejoin round
25
25
  &--fill
26
26
  stroke-width: 0
27
- fill $secondary
27
+ stroke $secondary
28
28
  &:not(.icon--social-github):not(.icon--social-linkedin):not(.icon--social-facefook):not(.icon--big-commerce):not(.icon--fill)
29
29
  fill: none
@@ -12,7 +12,7 @@
12
12
  margin .2rem 0
13
13
  word-break break-all
14
14
  .icon
15
- fill $light
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
- fill $secondary70
137
+ stroke $secondary70
138
138
  &:hover
139
139
  .icon
140
- fill $secondary70 !important
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
- fill $secondary40
148
+ stroke $secondary40
149
149
  &:hover
150
150
  .icon
151
- fill $secondary40 !important
151
+ stroke $secondary40 !important
@@ -57,7 +57,7 @@
57
57
  right 2rem
58
58
  cursor pointer
59
59
  .icon
60
- fill $light
60
+ stroke $light
61
61
  &__footer
62
62
  &__header
63
63
  padding 1.8rem 2.4rem
@@ -20,10 +20,10 @@
20
20
  background-color $info
21
21
  .btn
22
22
  .icon
23
- fill $light
23
+ stroke $light
24
24
  &:hover
25
25
  .icon
26
- fill $success2
26
+ stroke $success2
27
27
  &__text
28
28
  textShadow()
29
29
  font-size $fontSize + .1
@@ -22,7 +22,7 @@
22
22
  &--info
23
23
  background-color $info
24
24
  .icon
25
- fill $light
25
+ stroke $light
26
26
  &__text
27
27
  textShadow()
28
28
  font-size $fontSize + .1
@@ -1,5 +1,5 @@
1
1
  .stepper
2
2
  flexMiddle()
3
3
  &--current
4
- fill $primary
4
+ stroke $primary
5
5
 
@@ -36,7 +36,7 @@
36
36
  &:hover
37
37
  background-color $primary
38
38
  .icon
39
- fill $light
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
- fill $secondary
49
+ stroke $secondary
50
50
  &.btn--important
51
51
  &:disabled
52
52
  &:hover
53
53
  background-color $error
54
54
  .icon
55
- fill $light
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
- fill $light
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
- fill $secondary
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
- fill $secondary
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
- fill $secondary
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
- fill $light
151
+ stroke $light
152
152
  &:hover
153
153
  color $secondary
154
154
  .icon
155
- fill $light
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
- fill $secondary
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
- fill $light
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
- fill $light
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
- fill $light
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
- fill $error
212
+ stroke $error
213
213
  &:disabled
214
214
  color $secondary40
215
215
  cursor default
216
216
  .icon
217
- fill $secondary40
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
- fill $primary
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
- fill inherit
250
+ stroke inherit
251
251
  .label &
252
252
  &:hover
253
253
  .icon
254
- fill $light
254
+ stroke $light
255
255
  .label.label--white &
256
256
  &:hover
257
257
  .icon
258
- fill $secondary
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
- fill $primary
315
+ stroke $primary
316
316
  &:disabled
317
317
  &:hover
318
318
  color $primary
319
319
  text-decoration none
320
320
  .icon
321
- fill $primary
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
- fill $secondary-medium40
329
+ stroke $secondary-medium40
330
330
  &:hover
331
331
  color $primary
332
332
  .icon
333
- fill $primary
333
+ stroke $primary
334
334
  &--link-primary
335
335
  color $primary
336
336
  .icon
337
- fill $primary
337
+ stroke $primary
338
338
  &:disabled
339
339
  &:hover
340
340
  color $primary
341
341
  text-decoration none
342
342
  .icon
343
- fill $primary
343
+ stroke $primary
344
344
  &--link-info
345
345
  &--link-flex-info
346
346
  color $info
347
347
  .icon
348
- fill $info
348
+ stroke $info
349
349
  &:hover
350
350
  color $primary
351
351
  text-decoration underline
352
352
  .icon
353
- fill $primary
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
- fill $light
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
- fill $light
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
- fill $light70
428
+ stroke $light70
429
429
  &:disabled:not(.active)
430
430
  color $secondary30
431
431
  cursor default
432
432
  .icon
433
- fill $secondary30
433
+ stroke $secondary30
434
434
  &:hover
435
435
  border-color $inputBorderColor
436
436
  color $secondary30
437
437
  background-color transparent
438
438
  .icon
439
- fill $secondary30
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
- fill $secondary-medium60
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
- fill $secondary
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
- fill $error
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
- fill $light
595
+ stroke $light
596
596
  &:hover
597
597
  background-color $dark15
598
598
  .icon
599
- fill $light
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
- fill $light
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
- &:not(.icon--social-github):not(.icon--social-linkedin):not(.icon--social-facefook):not(.icon--big-commerce):not(.icon--fill)
10
- fill: none
12
+
@@ -19,7 +19,7 @@ input
19
19
  margin .5rem 0 .5rem 0
20
20
  &--iconed
21
21
  .icon
22
- fill $inputBorderColor
22
+ stroke $inputBorderColor
23
23
  position absolute
24
24
  left 1rem
25
25
  top .7rem
@@ -51,7 +51,7 @@ hover()
51
51
  background-color $buttonHover
52
52
  color $light
53
53
  .icon
54
- fill $light
54
+ stroke $light
55
55
  disableHoverEffect()
56
56
  &:hover
57
57
  background-color $primary
@@ -29,7 +29,7 @@ select
29
29
  .select__indicator
30
30
  .asyncselect__indicator
31
31
  svg
32
- fill $secondary
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
- fill $secondary-medium25
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
- fill $light !important
100
+ stroke $light !important
101
101
  &--small
102
102
  .select
103
103
  .asyncselect