@woosmap/ui 2.40.0 → 2.44.0
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/Button/Button.js +4 -0
- package/src/components/Button/Button.stories.js +1 -1
- package/src/components/Button/Button.test.js +3 -3
- package/src/components/Button/ButtonGroup.js +4 -1
- package/src/components/Button/ButtonSwitch.js +4 -2
- package/src/components/Button/ButtonWithDropdown.js +22 -8
- package/src/components/Button/ButtonWithDropdown.test.js +35 -0
- package/src/components/Card/Card.js +5 -0
- package/src/components/Card/Card.test.js +3 -3
- package/src/components/Card/SimpleCard.js +25 -5
- package/src/components/Card/SimpleCard.test.js +2 -2
- package/src/components/CopyClipboardButton/CopyClipboardButton.js +4 -1
- package/src/components/CopyClipboardButton/CopyToClipboard.test.js +2 -2
- package/src/components/Demo/DistanceDemo.js +2 -1
- package/src/components/Demo/GeolocationDemo.js +9 -12
- package/src/components/Demo/LocalitiesAddressDemo.js +2 -1
- package/src/components/Demo/LocalitiesDemo.js +2 -2
- package/src/components/Demo/SearchDemo.js +3 -1
- package/src/components/Dropdown/Dropdown.js +30 -5
- package/src/components/Dropdown/Dropdown.test.js +2 -2
- package/src/components/DynamicTag/DynamicTag.js +8 -4
- package/src/components/Flash/Flash.js +4 -1
- package/src/components/Icon/Icon.js +45 -21
- package/src/components/Icon/Icon.test.js +4 -4
- package/src/components/InfoMessage/InfoMessage.js +5 -2
- package/src/components/InfoMessage/InfoMessage.test.js +2 -2
- package/src/components/Input/Input.test.js +26 -0
- package/src/components/Label/Label.js +18 -3
- package/src/components/Label/Label.styl +1 -1
- package/src/components/Map/drawOnMap.js +40 -0
- package/src/components/Modal/ConfirmationModal.js +4 -1
- package/src/components/Modal/Modal.js +13 -6
- package/src/components/Modal/Modal.test.js +3 -3
- package/src/components/Panel/Panel.js +5 -3
- package/src/components/Panel/Panel.test.js +2 -2
- package/src/components/Popover/ConfirmationPopover.js +5 -3
- package/src/components/ScrollBar/ScrollBar.js +4 -1
- package/src/components/ScrollBar/ScrollBar.test.js +2 -2
- package/src/components/ServiceMessage/ServiceMessage.js +8 -4
- package/src/components/SnackBar/SnackBar.test.js +2 -2
- package/src/components/Tab/Tab.js +6 -3
- package/src/components/Tab/Tab.test.js +9 -9
- package/src/components/Tooltip/Tooltip.js +4 -2
- package/src/components/Tooltip/Tooltip.test.js +4 -4
- package/src/components/withFormValidation/withFormValidation.test.js +1 -5
- package/src/icons/autocomplete.svg +1 -0
- package/src/icons/buildings.svg +1 -0
- package/src/icons/github.svg +1 -0
- package/src/icons/position.svg +1 -0
- package/src/icons/quote.svg +1 -0
- package/src/icons/save-money.svg +1 -0
- package/src/icons/world.svg +1 -0
- package/src/images/marker-dot.svg +15 -0
- package/src/styles/console/button.styl +69 -43
- package/src/styles/console/mixins.styl +2 -2
- package/src/styles/style-next-website.styl +25 -0
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
flex-shrink 0
|
|
6
6
|
&.active
|
|
7
7
|
cursor default
|
|
8
|
+
&:disabled
|
|
9
|
+
&:not(.btn--group)
|
|
10
|
+
cursor default
|
|
11
|
+
opacity .3
|
|
12
|
+
box-shadow none
|
|
13
|
+
&:hover
|
|
14
|
+
opacity .3
|
|
8
15
|
&--icon
|
|
9
16
|
&:not(.btn--link):not(.btn--link-primary):not(.btn--link-info):not(.btn--link-flex):not(.btn--link-flex-info):not(.btn--group):not(.btn--sidebar-link)
|
|
10
17
|
sq()
|
|
@@ -27,14 +34,15 @@
|
|
|
27
34
|
&.btn--primary
|
|
28
35
|
&:disabled
|
|
29
36
|
&:hover
|
|
30
|
-
color $primary
|
|
31
37
|
background-color $primary
|
|
32
38
|
.icon
|
|
33
39
|
fill $light
|
|
40
|
+
&.btn--loading
|
|
41
|
+
&:hover
|
|
42
|
+
background-color $primary
|
|
34
43
|
&.btn--secondary
|
|
35
44
|
&:disabled
|
|
36
45
|
&:hover
|
|
37
|
-
color $secondary
|
|
38
46
|
background-color transparent
|
|
39
47
|
border-color $inputBorderColor
|
|
40
48
|
.icon
|
|
@@ -42,7 +50,6 @@
|
|
|
42
50
|
&.btn--important
|
|
43
51
|
&:disabled
|
|
44
52
|
&:hover
|
|
45
|
-
color $light
|
|
46
53
|
background-color $error
|
|
47
54
|
.icon
|
|
48
55
|
fill $light
|
|
@@ -73,22 +80,18 @@
|
|
|
73
80
|
flex-shrink 0
|
|
74
81
|
.icon
|
|
75
82
|
flex-shrink 0
|
|
76
|
-
&:disabled
|
|
77
|
-
cursor default
|
|
78
|
-
opacity .3
|
|
79
|
-
box-shadow none
|
|
80
|
-
&:hover
|
|
81
|
-
opacity .3
|
|
82
83
|
&--primary
|
|
83
84
|
background-color $primary
|
|
84
|
-
&:
|
|
85
|
-
&:
|
|
86
|
-
|
|
85
|
+
&:not(.btn--group):not(.btn--switch)
|
|
86
|
+
&:disabled
|
|
87
|
+
&:hover
|
|
88
|
+
background-color $primary
|
|
87
89
|
&--important
|
|
88
90
|
background-color $error
|
|
89
|
-
&:
|
|
90
|
-
&:
|
|
91
|
-
|
|
91
|
+
&:not(.btn--group):not(.btn--switch)
|
|
92
|
+
&:disabled
|
|
93
|
+
&:hover
|
|
94
|
+
background-color $error
|
|
92
95
|
&--secondary
|
|
93
96
|
btn()
|
|
94
97
|
color $secondary
|
|
@@ -106,23 +109,27 @@
|
|
|
106
109
|
flex-shrink 0
|
|
107
110
|
&:hover
|
|
108
111
|
border-color $success
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
&.btn--loading
|
|
113
|
+
&:not(.btn--group):not(.btn--switch)
|
|
114
|
+
&:hover
|
|
115
|
+
background-color transparent
|
|
116
|
+
color $secondary
|
|
117
|
+
cursor default
|
|
118
|
+
border-color $inputBorderColor
|
|
119
|
+
.icon
|
|
120
|
+
fill $secondary
|
|
116
121
|
&:disabled
|
|
117
122
|
opacity .4
|
|
118
123
|
cursor default
|
|
119
|
-
&:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
&:not(.btn--group):not(.btn--switch)
|
|
125
|
+
&:disabled
|
|
126
|
+
&:hover
|
|
127
|
+
opacity .4
|
|
128
|
+
background-color transparent
|
|
129
|
+
color $secondary
|
|
130
|
+
border-color $inputBorderColor
|
|
131
|
+
.icon
|
|
132
|
+
fill $secondary
|
|
126
133
|
&--transparent
|
|
127
134
|
btn()
|
|
128
135
|
background-color transparent
|
|
@@ -339,8 +346,8 @@
|
|
|
339
346
|
&:not(.btn--icon):not(.btn--mini):not(.btn--small):not(.btn--large):not(.btn--sidebar-link)
|
|
340
347
|
padding-left $padding - .4
|
|
341
348
|
&:hover
|
|
342
|
-
|
|
343
|
-
|
|
349
|
+
&.btn--important
|
|
350
|
+
background-color $error
|
|
344
351
|
.icon
|
|
345
352
|
sq(2.2)
|
|
346
353
|
&--switch
|
|
@@ -378,6 +385,34 @@
|
|
|
378
385
|
flex-shrink 0
|
|
379
386
|
.icon
|
|
380
387
|
flex-shrink 0
|
|
388
|
+
&:hover
|
|
389
|
+
color $secondary
|
|
390
|
+
background-color $primary10
|
|
391
|
+
&.active
|
|
392
|
+
color $light
|
|
393
|
+
border-color $secondary
|
|
394
|
+
background-color $secondary
|
|
395
|
+
.icon
|
|
396
|
+
fill $light
|
|
397
|
+
&:hover
|
|
398
|
+
background-color $secondary
|
|
399
|
+
&:disabled
|
|
400
|
+
background-color $secondary60
|
|
401
|
+
border-color $secondary-medium15
|
|
402
|
+
color $light70
|
|
403
|
+
.icon
|
|
404
|
+
fill $light70
|
|
405
|
+
&:disabled:not(.active)
|
|
406
|
+
color $secondary30
|
|
407
|
+
cursor default
|
|
408
|
+
.icon
|
|
409
|
+
fill $secondary30
|
|
410
|
+
&:hover
|
|
411
|
+
border-color $inputBorderColor
|
|
412
|
+
color $secondary30
|
|
413
|
+
background-color transparent
|
|
414
|
+
.icon
|
|
415
|
+
fill $secondary30
|
|
381
416
|
&-container
|
|
382
417
|
flexMiddle()
|
|
383
418
|
.btn
|
|
@@ -390,17 +425,6 @@
|
|
|
390
425
|
&:last-child
|
|
391
426
|
border-radius 0 $borderRadius $borderRadius 0
|
|
392
427
|
border-width .1rem
|
|
393
|
-
&:hover
|
|
394
|
-
color $secondary
|
|
395
|
-
background-color $primary10
|
|
396
|
-
&.active
|
|
397
|
-
color $light
|
|
398
|
-
border-color $secondary
|
|
399
|
-
background-color $secondary
|
|
400
|
-
.icon
|
|
401
|
-
fill $light
|
|
402
|
-
&:hover
|
|
403
|
-
background-color $secondary
|
|
404
428
|
&--light
|
|
405
429
|
.btn
|
|
406
430
|
&.active
|
|
@@ -422,6 +446,8 @@
|
|
|
422
446
|
.btn
|
|
423
447
|
border-radius 0 $borderRadius $borderRadius 0
|
|
424
448
|
border-width .1rem .1rem .1rem 0
|
|
449
|
+
|
|
450
|
+
|
|
425
451
|
&--tab
|
|
426
452
|
fullw()
|
|
427
453
|
display inline-flex
|
|
@@ -487,7 +513,7 @@
|
|
|
487
513
|
&--pills
|
|
488
514
|
br()
|
|
489
515
|
flexBtn()
|
|
490
|
-
|
|
516
|
+
buttonFont()
|
|
491
517
|
focus()
|
|
492
518
|
trans()
|
|
493
519
|
fullw()
|
|
@@ -62,7 +62,7 @@ btn()
|
|
|
62
62
|
br()
|
|
63
63
|
flexBtn()
|
|
64
64
|
trans()
|
|
65
|
-
|
|
65
|
+
buttonFont()
|
|
66
66
|
hover()
|
|
67
67
|
focus()
|
|
68
68
|
white-space nowrap
|
|
@@ -73,7 +73,7 @@ flexBtn()
|
|
|
73
73
|
align-items center
|
|
74
74
|
justify-content flex-start
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
buttonFont()
|
|
77
77
|
height $buttonHeight
|
|
78
78
|
font-size $buttonFontSize
|
|
79
79
|
line-height $buttonLineHeight
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Common styles - Don't change order
|
|
2
|
+
@import "./commons/reset.styl"
|
|
3
|
+
|
|
4
|
+
// Specicif style - Do not change order
|
|
5
|
+
// @import "./next-website/mixins.styl"
|
|
6
|
+
// @import "./next-website/fonts.styl"
|
|
7
|
+
// @import "./next-website/variables.styl"
|
|
8
|
+
// @import "./next-website/colors.styl"
|
|
9
|
+
|
|
10
|
+
@import "./commons/__all.styl"
|
|
11
|
+
@import "./commons/flags.styl"
|
|
12
|
+
|
|
13
|
+
// @import "./next-website/button.styl"
|
|
14
|
+
// @import "./next-website/input.styl"
|
|
15
|
+
// @import "./next-website/select.styl"
|
|
16
|
+
// @import "./next-website/tab.sty l"
|
|
17
|
+
|
|
18
|
+
//demos
|
|
19
|
+
// @import "./next-website/MerchantDemo.styl"
|
|
20
|
+
// @import "./next-website/skeletonDemo.styl"
|
|
21
|
+
|
|
22
|
+
// @import "./next-website/style.styl"
|
|
23
|
+
|
|
24
|
+
// Style of all components
|
|
25
|
+
@import "../components/**/*.styl"
|