@woosmap/ui 3.30.0 → 3.34.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 (31) 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/styles/style-console.styl +7 -6
  5. package/src/styles/style-website.styl +13 -9
  6. package/src/styles/website/MerchantDemo.styl +73 -54
  7. package/src/styles/website/button.styl +390 -140
  8. package/src/styles/website/card.styl +302 -0
  9. package/src/styles/website/colors.styl +279 -46
  10. package/src/styles/website/dropdown.styl +123 -0
  11. package/src/styles/website/fonts.styl +1 -1
  12. package/src/styles/website/input.styl +7 -7
  13. package/src/styles/website/mixins.styl +192 -4
  14. package/src/styles/website/popover.styl +8 -0
  15. package/src/styles/website/select.styl +47 -25
  16. package/src/styles/website/skeletondemo.styl +246 -521
  17. package/src/styles/website/tab.styl +5 -2
  18. package/src/styles/website/variables.styl +111 -28
  19. package/src/styles/next-website/MerchantDemo.styl +0 -222
  20. package/src/styles/next-website/button.styl +0 -416
  21. package/src/styles/next-website/colors.styl +0 -287
  22. package/src/styles/next-website/demo.styl +0 -264
  23. package/src/styles/next-website/dropdown.styl +0 -82
  24. package/src/styles/next-website/font.styl +0 -1
  25. package/src/styles/next-website/input.styl +0 -138
  26. package/src/styles/next-website/mixins.styl +0 -128
  27. package/src/styles/next-website/select.styl +0 -113
  28. package/src/styles/next-website/tab.styl +0 -41
  29. package/src/styles/next-website/variables.styl +0 -120
  30. package/src/styles/style-next-website.styl +0 -26
  31. package/src/styles/website/style.styl +0 -2
@@ -1,264 +0,0 @@
1
-
2
- .demo
3
- fullwh()
4
- margin auto
5
- color $secondary
6
- .title
7
- font-size $title3
8
- pre
9
- code
10
- font-size $fontSizeDemo - .1
11
- &__header
12
- fullw()
13
- position relative
14
- &__content
15
- fullw()
16
- br()
17
- font-size $fontSizeDemo
18
- overflow hidden
19
- position relative
20
- // box-shadow 0 0 3rem rgba($logo2, .15)
21
- box-shadow 0 .3rem 1rem rgba($secondary, .15)
22
- &__showcase
23
- &__data
24
- display flex
25
- &__filters
26
- border-right .1rem solid rgba($secondary, .1)
27
- padding $demoPadding + .4 $demoPadding
28
- width $demofilterWidth
29
- background-color $light// rgba($logo2, .82)
30
- padding-bottom 2.6rem
31
- mbib(1.6)
32
- &__data
33
- max-height 45rem
34
- border-top .1rem solid rgba($secondary, .1)
35
- &__showcase
36
- min-height 50rem
37
- max-height 71rem
38
- &__map
39
- display flex
40
- align-items center
41
- justify-content center
42
- flex-grow 1
43
- background-color $light
44
- .map
45
- width 100%
46
- height 100%
47
- background-color $inputDemoBgColor
48
- &__results
49
- width $demofilterWidth
50
- display flex
51
- flex-direction column
52
- border-right .1rem solid rgba($secondary, .1)
53
- flex-shrink 0
54
- &__header
55
- display flex
56
- align-items center
57
- flex-shrink 0
58
- font-size $fontSizeDemo - .1
59
- padding 0 $demoPadding
60
- height $footerDemoHeight
61
- background-color $inputDemoBgColor
62
- font-weight 600
63
- &__content
64
- font-weight 400
65
- color $textColor
66
- padding $demoPadding
67
-
68
- background-color $light
69
- overflow-y auto
70
- &__code
71
- font()
72
- width 100%
73
- &__header
74
- display flex
75
- align-items center
76
- flex-shrink 0
77
- padding 0 2.6rem
78
- height $demoResultHeaders
79
- background-color rgba($logo2, .82)
80
- &__content
81
- padding 2.6rem
82
- background-color #fff
83
- height 100%
84
-
85
- &__input-container
86
- mbib(.6)
87
- &__label
88
- font-weight 500
89
- margin-bottom .6rem
90
-
91
- input
92
- &:not([type=button]):not([type=checkbox]):not([type=radio]):not([type=textarea])
93
- inputFont()
94
- br($demoBr)
95
- background-color $inputDemoBgColor !important
96
- border-color $inputDemoBorderColor
97
- font-size $inputFontSizeDemo !important
98
- height $inputDemoHeight
99
- padding 0 1rem 0 1rem
100
- .mbi
101
- mbi(.6)
102
- .input
103
- &__label
104
- inputFont()
105
- font-size $inputFontSizeDemo !important
106
- .select
107
- .asyncselect
108
- &__control
109
- inputFont()
110
- font-size $inputFontSizeDemo !important
111
- border-radius $demoBr !important
112
- background-color $inputDemoBgColor !important
113
- min-height $inputDemoHeight !important
114
- height auto !important
115
- &:not(.select__control--is-focused):not(.asyncselect__control--is-focused)
116
- border-color $inputDemoBorderColor !important
117
- .css-g1d714-ValueContainer
118
- .css-tlfecz-indicatorContainer
119
- padding 0
120
- .css-g1d714-ValueContainer
121
- height 100%
122
- .css-tlfecz-indicatorContainer
123
- cursor pointer
124
- &__input
125
- input
126
- height auto !important
127
- &__placeholder
128
- color $inputDemoPlaceholderColor
129
- &__dropdown-indicator
130
- &__clear-indicator
131
- padding 0
132
- &__value-container
133
- padding-left .6rem !important
134
- &__indicator
135
- padding-left .5rem !important
136
- padding-right .5rem !important
137
- svg
138
- fill $activeColor
139
- &__indicator-separator
140
- background-color $activeColor
141
- &__multi-value
142
- background-color $activeColorDark !important
143
- &__label
144
- inputFont() !important
145
- height 2.1rem
146
- line-height 1.1rem
147
- font-size $inputFontSizeDemo - .1 !important
148
- &__remove
149
- padding .2rem !important
150
-
151
- .flag
152
- width 1.6rem
153
- height 1.1rem
154
- &__option
155
- padding .6rem
156
- .flag
157
- margin 0 .6rem 0 0
158
- &--is-selected
159
- color $light !important
160
- background-color #819cb9 !important
161
- &.select__option--is-focused
162
- color $light !important
163
- background-color #819cb9 !important
164
- &--is-focused:not(.select__option--is-selected)
165
- background-color #cddbeb !important
166
- color $secondary !important
167
-
168
- &__filters
169
- .btn
170
- br(.2)
171
- font-size $inputFontSizeDemo !important
172
- line-height 2.2rem
173
- padding 0 .8rem
174
- height $inputDemoHeight
175
- inputFont()
176
- border-color $inputDemoBorderColor
177
- .active
178
- &--primary
179
- background-color $activeColor
180
- border-color $activeColor
181
- &--group
182
- height 2.8rem
183
- &-container
184
- color $inputDemoBgColor
185
- .btn
186
- &:first-child
187
- border-radius 2rem 0 0 2rem
188
- &:last-child
189
- border-radius 0 2rem 2rem 0
190
- &--light
191
- .btn.active
192
- background-color $activeColorDark
193
- border-color $activeColorDark
194
- color $inputDemoBgColor
195
- &.language
196
- &.transportation
197
- mbi(.6)
198
- .btn
199
- br(.3)
200
- border 0
201
- height 2.2rem
202
- padding .4rem
203
- &.active
204
- background-color $light
205
- box-shadow 0 0 .1rem .1rem $activeColorDark
206
- .flag
207
- width 2.4rem
208
- height 1.6rem
209
- &.transportation
210
- .btn
211
- height 2.8rem
212
- img
213
- max-width 2.4rem
214
- &__code
215
- .tab
216
- &__header
217
- height $footerDemoHeight
218
- background-color $inputDemoBgColor
219
- &__content
220
- padding $demoPadding
221
- overflow auto
222
- max-height 40rem
223
- .btn
224
- font-size $fontSizeDemo
225
- &--tab
226
- position relative
227
- font-size $fontSizeDemo - .1
228
- color rgba($secondary, .4)
229
- &.active
230
- font-weight 600
231
- color $secondary
232
- &--action
233
- br(2)
234
- inputFont()
235
- padding 0 1rem
236
- font-size $inputFontSizeDemo !important
237
- border .1rem solid $activeColor
238
- color darken($activeColor, 20%)
239
- &--address
240
- &__formcontainer
241
- mbib(.9)
242
- .input
243
- &__label
244
- margin-bottom .2rem
245
-
246
- @media screen and (max-width 769px)
247
- .demo__showcase
248
- max-height 100%
249
- min-height auto
250
- @media screen and (max-width 696px)
251
- .demo
252
- &__data
253
- &__showcase
254
- flex-direction column
255
- max-height 100%
256
- &__results
257
- &__filters
258
- width auto
259
- border-bottom .1rem solid rgba($secondary, .1)
260
- border-right 0
261
- &__map
262
- height 32rem
263
- .demo--merchant &
264
- height auto
@@ -1,82 +0,0 @@
1
- .dropdown
2
- position unset
3
- &__container
4
- position absolute
5
- top 6rem
6
- left 0
7
- width 100%
8
- display flex
9
- align-items flex-start
10
- justify-content center
11
- &__menu
12
- width 97%
13
- max-width 102.2rem
14
- padding 1.6rem 2rem 2rem 2rem
15
- position relative
16
- left auto !important
17
- right auto !important
18
- top auto !important
19
- bottom auto !important
20
- transform unset !important
21
- margin-top 0 !important
22
- &__section
23
- flex-shrink 1
24
- max-width 22.5rem
25
- min-width 18rem
26
- width 100%
27
- margin 0 1rem
28
- &__item
29
- font-size 1.3rem
30
- line-height 2.4rem
31
- display flex
32
- flex-direction column
33
- align-items flex-start
34
- justify-content center
35
- flex-shrink 0
36
- border-radius $borderRadius !important
37
- height auto
38
- min-height $buttonHeight + .6rem
39
- > :not(.btn):not(.popover__child)
40
- min-height $buttonHeight + .6rem
41
- trans()
42
- padding 0 1.2rem 0 .6rem
43
- text-decoration none
44
- flex-shrink 0
45
- cursor pointer
46
- &:hover
47
- background-color $dark2
48
- color $dark
49
- .dropdown__menu__item
50
- &__icon
51
- background-color $logo4
52
- &__desc
53
- color $dark
54
- &__icon
55
- br()
56
- sq(3.2)
57
- trans()
58
- display flex
59
- align-items center
60
- justify-content center
61
- flex-shrink 0
62
- background $logo2
63
- margin-right 1rem
64
- .icon
65
- fill #fff !important
66
- &__container
67
- display flex
68
- flex-direction column
69
- flex-shrink 0
70
- &__title
71
- font-size 1.1rem
72
- text-transform uppercase
73
- color $category
74
- font-weight 600
75
- padding 0 1.2rem 0 .6rem
76
- &__name
77
- font-weight 600
78
- &__desc
79
- color $category
80
- .category
81
- flex-shrink 0
82
- margin-top 2rem
@@ -1 +0,0 @@
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,138 +0,0 @@
1
- .input
2
- width 100%
3
- &__container
4
- position relative
5
- inputFont()
6
- font-size 1.3rem
7
- &__label
8
- display block
9
- margin-bottom 1rem
10
- .input--large &
11
- margin-bottom 1rem
12
- font-size $inputFontSizeLarge
13
- .input--small &
14
- margin-bottom .6rem
15
- font-size $inputFontSizeSmall
16
- &__error
17
- color $error
18
- display block
19
- margin .5rem 0 .5rem 0
20
- &--iconed
21
- .icon
22
- fill $inputBorderColor
23
- position absolute
24
- left 1rem
25
- top .7rem
26
- &.input--large
27
- .icon
28
- left 1.2rem
29
- top 1rem
30
- &.input--filter
31
- .icon
32
- left -.4rem
33
- top .7rem
34
- &.input--large
35
- .icon
36
- left -.4rem
37
- top 1.1rem
38
- &.input--small
39
- .icon
40
- left -.4rem
41
- top .3rem
42
- &.input--small
43
- .icon
44
- left .8rem
45
- top .4rem
46
- &--checkbox
47
- &--radio
48
- position relative
49
- .input__label
50
- cursor pointer
51
- &--disabled
52
- .input
53
- &__item
54
- &__label
55
- cursor default !important
56
- opacity .4
57
- &__line
58
- .input--checkbox &
59
- .input--radio &
60
- display flex
61
- align-items center
62
- line-height 1
63
- .input__label
64
- order 1
65
- margin 0 0 0 1rem
66
- &__item
67
- &:not([type=button]):not([type=checkbox]):not([type=radio]):not([type=textarea])
68
- height $inputHeight
69
- padding $inputPadding
70
- .input--large &
71
- height $inputHeightLarge
72
- padding $inputPaddingLarge
73
- .input--small &
74
- height $inputHeightSmall
75
- padding $inputPaddingSmall
76
- .input--filter &
77
- padding 0
78
- &:not([type=button]):not([type=checkbox]):not([type=radio])
79
- br()
80
- placeHolderColor($placeHolderColor)
81
- min-width $inputMinWidth
82
- width 100%
83
- background-color $light
84
- border .1rem solid $inputBorderColor
85
- .mini &
86
- max-width 6rem
87
- min-width 6rem
88
- text-align center
89
- .input--filter &
90
- br(0)
91
- border-width 0 0 .1rem 0
92
- background-color transparent
93
- &:focus
94
- border-color $secondary
95
- .input--iconed &
96
- padding-left 4rem
97
- .input--large &
98
- font-size $inputFontSizeLarge
99
- line-height $inputLineHeightLarge
100
- .input--iconed.input--large &
101
- padding-left 4.6rem
102
- .input--filter.input--iconed &
103
- padding-left 2.6rem
104
- padding-bottom 0
105
- .input--filter.input--iconed.input--large &
106
- padding-left 2.8rem
107
- padding-bottom 0
108
- .input--filter.input--iconed.input--small &
109
- padding-left 2.4rem
110
- padding-bottom .4rem
111
- .input--small &
112
- font-size $inputFontSizeSmall
113
- min-width $inputHeightSmall
114
- .input--iconed.input--small &
115
- padding-left 3.4rem
116
- .input--noborder &
117
- border 0
118
- &.error
119
- border-color $error
120
- &:focus
121
- border-color $secondary
122
-
123
- &[type=textarea]
124
- padding round($padding / 1.7) $padding
125
- height $inputHeight * 2
126
- &[type=radio]
127
- all revert
128
- cursor pointer
129
- &[type=checkbox]
130
- all revert
131
- cursor pointer
132
- line-height revert
133
- &[type=number]
134
- -moz-appearance textfield
135
- input::-webkit-outer-spin-button
136
- input::-webkit-inner-spin-button
137
- -webkit-appearance none
138
- margin 0
@@ -1,128 +0,0 @@
1
- // Make square
2
- sq($size = $buttonHeight)
3
- $size = unit($size, rem)
4
- width $size
5
- height $size
6
-
7
- // It gives a margin right to all children except the last one.
8
- mbi($a = 1.8)
9
- $a = unit($a, rem)
10
- > :not(:last-child)
11
- margin-right $a
12
-
13
- // It gives a margin bottom to all children except the last one.
14
- mbib($a = 3)
15
- $a = unit($a, rem)
16
- > :not(:last-child)
17
- margin-bottom $a
18
-
19
- // Gives a border-radius : e. g. : br(3) = border-radius 3rem
20
- br($a = $borderRadius)
21
- if ($a >= 50) {
22
- $a = unit($a, '%');
23
- } else {
24
- $a = unit($a, rem);
25
- }
26
- border-radius $a
27
-
28
- // Border and shadow style of dropdowns
29
- box()
30
- br()
31
- box-shadow 0 2rem 2rem $dark10
32
- border .1rem solid $borderColor
33
-
34
- // Buttons mixins
35
-
36
- hover()
37
- &:hover
38
- background-color $buttonHover
39
- color $light
40
- .icon
41
- fill $light
42
- focus()
43
- &:focus-visible
44
- box-shadow 0 0 .1rem .2rem $focus
45
- z-index 1
46
- trans()
47
- transition all .3s
48
-
49
- inputFont()
50
- font-family $fontFamily2
51
- btn()
52
- br()
53
- flexBtn()
54
- buttonFont()
55
- hover()
56
- focus()
57
- trans()
58
- white-space nowrap
59
-
60
- flexBtn()
61
- flex-shrink 0
62
- display inline-flex
63
- align-items center
64
- justify-content flex-start
65
-
66
- buttonFont()
67
- height $buttonHeight
68
- font-size $buttonFontSize
69
- line-height $buttonLineHeight
70
- padding $buttonPadding
71
-
72
- buttonSmall()
73
- height $buttonHeightSmall
74
- font-size $buttonFontSizeSmall
75
- line-height $buttonLineHeightSmall
76
- padding $buttonPaddingSmall
77
- &.btn--no-label
78
- &.btn--link
79
- &.btn--link-primary
80
- &.btn--link-info
81
- &.btn--link-flex
82
- height auto
83
- line-height unset
84
-
85
- buttonLarge()
86
- height $buttonHeightLarge
87
- font-size $buttonFontSizeLarge
88
- line-height $buttonLineHeightLarge
89
- padding $buttonPaddingLarge
90
- &.btn--no-label
91
- &.btn--link
92
- &.btn--link-primary
93
- &.btn--link-info
94
- &.btn--link-flex
95
- height auto
96
- line-height unset
97
-
98
- fullw()
99
- width 100%
100
- min-width 0
101
- fullh()
102
- height 100%
103
- min-height 0
104
- fullwh()
105
- height 100%
106
- width 100%
107
- min-width 0
108
- min-height 0
109
-
110
- wrapper()
111
- margin 0 auto
112
- padding 0 $padding
113
- max-width $wrapperWidth
114
- width 100%
115
-
116
- textShadow($c = $dark30)
117
- text-shadow .1rem .1rem .1rem $c
118
- rainbow()
119
- background $primary
120
- background linear-gradient(45deg, $coloredGradient1 0%, $coloredGradient2 50%, $coloredGradient3 100%)
121
- rainbowInverse()
122
- background $primary
123
- background linear-gradient(45deg, $coloredGradient3 0%, $coloredGradient2 50%, $coloredGradient1 100%)
124
- darkness()
125
- background $darkGradient2
126
- background radial-gradient(circle, $darkGradient2 0%, $darkGradient1 40%, #252525 100%)
127
- tilt()
128
- transform skewY(-2deg)
@@ -1,113 +0,0 @@
1
- .asyncselect__control--is-focused .asyncselect__single-value
2
- display none
3
-
4
- .select
5
- line-height initial
6
- width 100%
7
- .select
8
- .asyncselect
9
- &__label
10
- margin-bottom 1rem
11
- display block
12
- &__error
13
- display block
14
- margin-top 1rem
15
- color $error
16
- &__control
17
- inputFont()
18
- font-size 1.3rem
19
- min-width $inputMinWidth
20
- min-height $inputHeight !important
21
- border-radius .6rem !important
22
- &:not(.select__control--is-focused):not(.asyncselect__control--is-focused)
23
- border-color $inputBorderColor !important
24
- .error > &
25
- border-color $error !important
26
- &--is-focused
27
- border-color $inputBorderColor !important
28
- box-shadow none !important
29
- .select__indicator
30
- .asyncselect__indicator
31
- svg
32
- fill $secondary
33
- &__value-container
34
- padding-left 1rem !important
35
- &__single-value
36
- color $secondary !important
37
- &__indicator
38
- padding-left 1rem !important
39
- padding-right 1rem !important
40
- &-separator
41
- background-color $secondary-medium25
42
- svg
43
- fill $secondary-medium25
44
- &__placeholder
45
- white-space nowrap
46
- color $secondary-medium60
47
- &__option
48
- &__multi-value
49
- .flag
50
- margin 0 0 0 .6rem
51
- width 2.2rem
52
- height 1.5rem
53
- &__option
54
- display flex !important
55
- align-items center
56
- color $secondary !important
57
- mbi()
58
- &--is-disabled
59
- color $secondary40 !important
60
- &--is-selected
61
- color $light !important
62
- background-color $primary !important
63
- &.select__option--is-focused
64
- color $light !important
65
- background-color $primary !important
66
- &--is-focused:not(.select__option--is-selected)
67
- background-color $primary15 !important
68
- color $secondary !important
69
- &__multi-value
70
- background-color $primary !important
71
- border-radius .4rem !important
72
- flexMiddle()
73
- &--is-disabled
74
- opacity .6
75
- &__label
76
- &__remove
77
- border-radius .4rem !important
78
- background-color transparent !important
79
- padding .5rem !important
80
- &__label
81
- font-size $inputFontSize - .2 !important
82
- padding-right .2rem !important
83
- color $light !important
84
- &__remove
85
- cursor pointer
86
- svg
87
- fill $light !important
88
- &--small
89
- .select
90
- .asyncselect
91
- &__control
92
- min-width 18rem
93
- min-height $inputHeightSmall !important
94
- font-size $inputFontSizeSmall !important
95
- &__indicator
96
- padding .2rem .6rem !important
97
- &__option
98
- &__multi-value
99
- background-color $light
100
- font-size $inputFontSizeSmall !important
101
- .flag
102
- margin 0 0 0 .6rem
103
- width 2.2rem
104
- height 1.5rem
105
- &__label
106
- font-size $inputFontSizeSmall !important
107
- padding 0 0 0 1rem !important
108
- line-height 1.2
109
- &__option
110
- .flag
111
- margin 0 1rem 0 0
112
- &__value-container
113
- padding 0 0 0 .7rem !important