@woosmap/ui 3.29.0 → 3.33.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.
Files changed (36) hide show
  1. package/.storybook/preview.js +2 -2
  2. package/package.json +2 -2
  3. package/src/components/Dropdown/Dropdown.js +1 -1
  4. package/src/components/Icon/Icon.js +6 -0
  5. package/src/icons/care.svg +1 -0
  6. package/src/icons/elephant.svg +1 -0
  7. package/src/icons/speed.svg +1 -0
  8. package/src/styles/console/variables.styl +12 -54
  9. package/src/styles/style-console.styl +7 -6
  10. package/src/styles/style-website.styl +13 -9
  11. package/src/styles/website/MerchantDemo.styl +73 -54
  12. package/src/styles/website/button.styl +390 -140
  13. package/src/styles/website/card.styl +302 -0
  14. package/src/styles/website/colors.styl +279 -46
  15. package/src/styles/website/dropdown.styl +123 -0
  16. package/src/styles/website/fonts.styl +1 -1
  17. package/src/styles/website/input.styl +7 -7
  18. package/src/styles/website/mixins.styl +192 -4
  19. package/src/styles/website/popover.styl +8 -0
  20. package/src/styles/website/select.styl +47 -25
  21. package/src/styles/website/skeletondemo.styl +246 -521
  22. package/src/styles/website/tab.styl +5 -2
  23. package/src/styles/website/variables.styl +111 -28
  24. package/src/styles/next-website/MerchantDemo.styl +0 -222
  25. package/src/styles/next-website/button.styl +0 -416
  26. package/src/styles/next-website/colors.styl +0 -287
  27. package/src/styles/next-website/demo.styl +0 -264
  28. package/src/styles/next-website/dropdown.styl +0 -82
  29. package/src/styles/next-website/font.styl +0 -1
  30. package/src/styles/next-website/input.styl +0 -138
  31. package/src/styles/next-website/mixins.styl +0 -128
  32. package/src/styles/next-website/select.styl +0 -113
  33. package/src/styles/next-website/tab.styl +0 -41
  34. package/src/styles/next-website/variables.styl +0 -120
  35. package/src/styles/style-next-website.styl +0 -26
  36. package/src/styles/website/style.styl +0 -2
@@ -0,0 +1,123 @@
1
+ .dropdown
2
+ &__menu
3
+ &.s
4
+ top 3.7rem
5
+ &__section
6
+ padding 1.6rem
7
+ width 24rem
8
+ &__item
9
+ font-size 1.3rem
10
+ line-height 2.4rem
11
+ display flex
12
+ flex-direction column
13
+ align-items flex-start
14
+ justify-content center
15
+ flex-shrink 0
16
+ border-radius $borderRadius !important
17
+ height auto
18
+ min-height $buttonHeight + .6rem
19
+ > :not(.btn):not(.popover__child)
20
+ min-height $buttonHeight + .6rem
21
+ trans()
22
+ padding 0 1.2rem 0 .6rem
23
+ text-decoration none
24
+ flex-shrink 0
25
+ cursor pointer
26
+ &:hover
27
+ background-color $dark2 !important
28
+ color $dark !important
29
+ .dropdown__menu__item
30
+ &__icon
31
+ background-color $logo4 !important
32
+ .icon
33
+ fill $light !important
34
+ &.search
35
+ background $searchDark !important
36
+ &.localities
37
+ background $localitiesDark !important
38
+ &.address
39
+ background $addressDark !important
40
+ &.multisearch
41
+ background $multiSearchDark !important
42
+ &.geolocation
43
+ background $geolocationDark !important
44
+ &.merchant
45
+ background $merchantDark !important
46
+ &.storelocator
47
+ background $storeLocatorDark !important
48
+ &.geofencing
49
+ background $geofencingDark !important
50
+ &.connectors
51
+ background $connectorsDark !important
52
+ &.distance
53
+ background $distanceDark !important
54
+ &.traffic
55
+ background $trafficDark !important
56
+ &.map
57
+ background $mapDark !important
58
+ &.mapping
59
+ background $mappingDark !important
60
+ &.showcases
61
+ background $showcasesDark !important
62
+ &__desc
63
+ color $dark !important
64
+ &__icon
65
+ br()
66
+ sq(3.2)
67
+ trans()
68
+ display flex
69
+ align-items center
70
+ justify-content center
71
+ flex-shrink 0
72
+ background $logo2
73
+ margin-right 1rem
74
+
75
+ .icon
76
+ fill #fff !important
77
+ &__container
78
+ width 100%
79
+ min-width 0
80
+ ellipsis()
81
+ &__name
82
+ font-weight 600
83
+ &__desc
84
+ color $category
85
+ .category
86
+ flex-shrink 0
87
+ margin-top 2rem
88
+ .dropdown.wide
89
+ position unset
90
+ .dropdown
91
+ &__container
92
+ position absolute
93
+ top 4rem
94
+ left 0
95
+ width 100%
96
+ display flex
97
+ align-items flex-start
98
+ justify-content center
99
+ &__menu
100
+ width 100%
101
+ max-width $wrapperReducedWidth
102
+ position relative
103
+ left auto !important
104
+ right auto !important
105
+ top auto !important
106
+ bottom auto !important
107
+ transform unset !important
108
+ margin-top 3rem !important
109
+ flex-wrap wrap
110
+ &__section
111
+ flex-shrink 1
112
+ width 20rem
113
+ margin 0 1rem 3rem 1rem
114
+ padding 0
115
+ &--section
116
+ padding 1.6rem 2rem 2rem 2rem
117
+ &__item
118
+ &__title
119
+ font-size 1.1rem
120
+ text-transform uppercase
121
+ color $category
122
+ font-weight 600
123
+ padding 0 0 0 .6rem
@@ -1 +1 @@
1
- @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap');
1
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;0,500;1,600;1,700;1,900&family=Roboto+Mono&display=swap');
@@ -1,7 +1,6 @@
1
- input
2
- font()
3
1
  .input
4
2
  width 100%
3
+ font-size 1.3rem
5
4
  &__container
6
5
  position relative
7
6
  &__label
@@ -19,7 +18,7 @@ input
19
18
  margin .5rem 0 .5rem 0
20
19
  &--iconed
21
20
  .icon
22
- fill $inputBorderColor
21
+ fill $inputDemoBorderColor
23
22
  position absolute
24
23
  left 1rem
25
24
  top .7rem
@@ -77,11 +76,13 @@ input
77
76
  padding 0
78
77
  &:not([type=button]):not([type=checkbox]):not([type=radio])
79
78
  br()
80
- placeHolderColor($placeHolderColor)
79
+ placeholder($inputDemoPlaceholderColor)
80
+ inputFont()
81
+ font-size 1.3rem
81
82
  min-width $inputMinWidth
82
83
  width 100%
83
- background-color $light
84
- border .1rem solid $inputBorderColor
84
+ background-color $inputDemoBgColor
85
+ border .1rem solid $inputDemoBorderColor
85
86
  .mini &
86
87
  max-width 6rem
87
88
  min-width 6rem
@@ -130,7 +131,6 @@ input
130
131
  all revert
131
132
  cursor pointer
132
133
  line-height revert
133
- sq(2)
134
134
  &[type=number]
135
135
  -moz-appearance textfield
136
136
  input::-webkit-outer-spin-button
@@ -1,19 +1,54 @@
1
- sq($size = 4)
1
+ f1()
2
+ font-size $title
3
+ font-weight 700
4
+ line-height $title * 1.3
5
+ margin-bottom 4rem
6
+ f2()
7
+ font-weight 700
8
+ font-size $title2
9
+ line-height $title2 * 1.4
10
+ margin-bottom 4rem
11
+ f3()
12
+ font-weight 700
13
+ font-size $title3
14
+ line-height $title3 * 1.3
15
+ margin-bottom 4rem
16
+ f4()
17
+ font-weight 700
18
+ font-size $title4
19
+ line-height $title4 * 1.3
20
+ margin-bottom 4rem
21
+ f5()
22
+ font-weight 700
23
+ font-size $title5
24
+ line-height $title5 * 1.3
25
+ margin-bottom 4rem
26
+ f6()
27
+ font-weight 700
28
+ font-size $title6
29
+ line-height $title6 * 1.3
30
+ margin-bottom 4rem
31
+
32
+ // Make square
33
+ sq($size = $buttonHeight)
2
34
  $size = unit($size, rem)
3
35
  width $size
4
36
  height $size
5
37
 
6
- mbi($a = 1.4)
38
+ // It gives a margin right to all children except the last one.
39
+ mbi($a = 1.8)
7
40
  $a = unit($a, rem)
8
41
  > :not(:last-child)
9
42
  margin-right $a
10
43
 
11
- mbib($a = 1.4)
44
+ // It gives a margin bottom to all children except the last one.
45
+ mbib($a = 3)
12
46
  $a = unit($a, rem)
13
47
  > :not(:last-child)
14
48
  margin-bottom $a
15
49
 
16
- br($a = .6)
50
+ // Gives a border-radius : e. g. : br(3) = border-radius 3rem
51
+ br($a = $borderRadius)
17
52
  if ($a >= 50) {
18
53
  $a = unit($a, '%');
19
54
  } else {
@@ -21,6 +56,159 @@ br($a = .6)
21
56
  }
22
57
  border-radius $a
23
58
 
59
+
60
+ // Border and shadow style of dropdowns
61
+ box()
62
+ br()
63
+ border()
64
+ box-shadow 0 2rem 2rem $dark10
65
+
66
+
67
+ // Buttons mixins
68
+
69
+ hover()
70
+ &:hover
71
+ background-color $buttonHover
72
+ color $light
73
+ .icon
74
+ fill $light
24
75
  focus()
25
76
  &:focus-visible
26
77
  box-shadow 0 0 .1rem .2rem $focus
78
+ z-index 1
79
+ trans()
80
+ transition all .3s
81
+
82
+ btn()
83
+ br()
84
+ flexBtn()
85
+ buttonFont()
86
+ hover()
87
+ focus()
88
+ trans()
89
+ white-space nowrap
90
+
91
+ flexBtn()
92
+ flex-shrink 0
93
+ display inline-flex
94
+ align-items center
95
+ justify-content flex-start
96
+
97
+ buttonFont()
98
+ height $buttonHeight
99
+ font-size $buttonFontSize
100
+ line-height $buttonLineHeight
101
+ padding $buttonPadding
102
+
103
+ buttonSmall()
104
+ height $buttonHeightSmall
105
+ font-size $buttonFontSizeSmall
106
+ line-height $buttonLineHeightSmall
107
+ padding $buttonPaddingSmall
108
+ &.btn--no-label
109
+ &.btn--link
110
+ &.btn--link-primary
111
+ &.btn--link-info
112
+ &.btn--link-flex
113
+ height auto
114
+ line-height unset
115
+
116
+ buttonLarge()
117
+ height $buttonHeightLarge
118
+ font-size $buttonFontSizeLarge
119
+ line-height $buttonLineHeightLarge
120
+ padding $buttonPaddingLarge
121
+ &.btn--no-label
122
+ &.btn--link
123
+ &.btn--link-primary
124
+ &.btn--link-info
125
+ &.btn--link-flex
126
+ height auto
127
+ line-height unset
128
+
129
+ fullw()
130
+ width 100%
131
+ min-width 0
132
+ fullh()
133
+ height 100%
134
+ min-height 0
135
+ fullwh()
136
+ height 100%
137
+ width 100%
138
+ min-width 0
139
+ min-height 0
140
+
141
+ inputFont()
142
+ font-family $fontFamily2
143
+
144
+ wrapper()
145
+ trans()
146
+ margin 0 auto
147
+ padding 0 $padding * 3
148
+ max-width $wrapperWidth
149
+ width 100%
150
+
151
+ textShadow($c = $dark30)
152
+ text-shadow .1rem .1rem .1rem $c
153
+
154
+ tilt()
155
+ transform skewY(-2deg)
156
+
157
+ rainbow()
158
+ background $primary
159
+ background linear-gradient(45deg, $coloredGradient1 0%, $coloredGradient2 50%, $coloredGradient3 100%)
160
+ rainbowInverse()
161
+ background $primary
162
+ background linear-gradient(45deg, $coloredGradient3 0%, $coloredGradient2 50%, $coloredGradient1 100%)
163
+
164
+ darkgradient()
165
+ background $darkGradient2
166
+ background radial-gradient(circle, $darkGradient2 0%, $darkGradient1 40%, #252525 100%)
167
+
168
+ dark()
169
+ background $darkGradient1
170
+
171
+ light()
172
+ background $light
173
+
174
+ color1()
175
+ background $logo1
176
+ // background radial-gradient(circle, $logo1 0%, $logo1Dark 100%)
177
+
178
+ color2()
179
+ background $logo2
180
+ // background radial-gradient(circle, $logo2 0%, $logo2Dark 100%)
181
+
182
+ color3()
183
+ background $logo3
184
+ // background radial-gradient(circle, $logo3 0%, $logo3Dark 100%)
185
+
186
+ color4()
187
+ background $logo4
188
+ // background radial-gradient(circle, $logo4 0%, $logo4Dark 100%)
189
+
190
+ color5()
191
+ background $logo5
192
+ // background radial-gradient(circle, $logo5 0%, $logo5Dark 100%)
193
+
194
+ color6()
195
+ background $logo6
196
+ // background radial-gradient(circle, $logo6 0%, $logo6Dark 100%)
197
+
198
+ color7()
199
+ background $logo7
200
+ // background radial-gradient(circle, $logo7 0%, $logo7Dark 100%)
201
+
202
+ color8()
203
+ background $logo8
204
+ // background radial-gradient(circle, $logo8 0%, $logo8Dark 100%)
205
+
206
+ placeholder($c)
207
+ &::-webkit-input-placeholder
208
+ color $c
209
+ &:-moz-placeholder
210
+ color $c
211
+ &::-moz-placeholder
212
+ color $c
213
+ &:-ms-input-placeholder
214
+ color $c
@@ -0,0 +1,8 @@
1
+ .popover
2
+ &__content
3
+ max-width 46rem
4
+ max-height 40rem
5
+ overflow-y auto
6
+ padding 0
7
+ border .1rem solid $borderColor
8
+ box-shadow 0 1rem 2rem $borderColor
@@ -1,87 +1,109 @@
1
- select
2
- font()
3
1
  .asyncselect__control--is-focused .asyncselect__single-value
4
2
  display none
5
3
 
6
4
  .select
7
5
  line-height initial
8
6
  width 100%
9
- .asyncselect
10
7
  .select
8
+ .asyncselect
11
9
  &__label
12
10
  margin-bottom 1rem
13
11
  display block
14
- font-size $inputFontSize
15
12
  &__error
16
- color $error
17
- margin-top 1rem
18
13
  display block
14
+ margin-top 1rem
15
+ color $error
19
16
  &__control
20
- min-width $formItemsHeightMinWidth
21
- min-height 4.4rem !important
17
+ inputFont()
18
+ font-size 1.3rem
19
+ min-width $inputMinWidth
20
+ min-height $inputHeight !important
21
+ border-radius .6rem !important
22
+ background-color $inputBgColor !important
22
23
  &:not(.select__control--is-focused):not(.asyncselect__control--is-focused)
23
24
  border-color $inputBorderColor !important
24
25
  .error > &
25
26
  border-color $error !important
26
27
  &--is-focused
27
- box-shadow 0 0 0 .1rem $primary !important
28
- border-color $primary !important
28
+ border-color $secondary !important
29
+ box-shadow none !important
30
+ .select__indicator
31
+ .asyncselect__indicator
32
+ svg
33
+ fill $secondary
29
34
  &__value-container
30
35
  padding-left 1rem !important
36
+ &__single-value
37
+ color $secondary !important
31
38
  &__indicator
32
39
  padding-left 1rem !important
33
40
  padding-right 1rem !important
41
+ &-separator
42
+ background-color $activeColor
43
+ svg
44
+ fill $activeColor
34
45
  &__placeholder
35
46
  white-space nowrap
36
- font-size $inputFontSize
47
+ color $placeHolderColor
48
+ &__option
49
+ &__multi-value
50
+ inputFont()
51
+ font-size 1.3rem !important
52
+ color $activeColorDark !important
53
+ .flag
54
+ margin 0 0 0 .6rem
55
+ width 2.2rem
56
+ height 1.5rem
37
57
  &__option
38
58
  display flex !important
39
59
  align-items center
60
+ color $secondary !important
40
61
  mbi()
62
+ &--is-disabled
63
+ color $secondary40 !important
41
64
  &--is-selected
42
- background-color $primary !important
65
+ color $light !important
66
+ background-color #819cb9 !important
43
67
  &.select__option--is-focused
44
- background-color $primary !important
68
+ color $light !important
69
+ background-color #819cb9 !important
45
70
  &--is-focused:not(.select__option--is-selected)
46
- background-color $primary-light !important
47
- &.select__option--is-selected
48
- background-color $primary !important
71
+ background-color #cddbeb !important
72
+ color $secondary !important
49
73
  &__multi-value
50
- background-color $primary-light !important
74
+ background-color $primary !important
51
75
  border-radius .4rem !important
52
76
  flexMiddle()
77
+ &--is-disabled
78
+ opacity .6
53
79
  &__label
54
80
  &__remove
55
81
  border-radius .4rem !important
56
82
  background-color transparent !important
57
83
  padding .5rem !important
58
84
  &__label
59
- font-size $inputFontSize- .2 !important
60
85
  padding-right .2rem !important
86
+ color $light !important
61
87
  &__remove
62
88
  cursor pointer
63
- .flag
64
- margin-left .4rem
65
- &--is-disabled
66
- opacity .6
89
+ svg
90
+ fill $light !important
67
91
  &--small
68
92
  .select
69
93
  .asyncselect
70
94
  &__control
71
95
  min-width 18rem
72
96
  min-height $inputHeightSmall !important
73
- font-size $inputFontSizeSmall !important
74
97
  &__indicator
75
98
  padding .2rem .6rem !important
76
99
  &__option
77
100
  &__multi-value
78
- font-size $inputFontSizeSmall !important
101
+ background-color $light
79
102
  .flag
80
103
  margin 0 0 0 .6rem
81
104
  width 2.2rem
82
105
  height 1.5rem
83
106
  &__label
84
- font-size $inputFontSizeSmall !important
85
107
  padding 0 0 0 1rem !important
86
108
  line-height 1.2
87
109
  &__option