@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,540 +1,265 @@
1
- // Vars
2
- $mapWidth = 40rem
3
- $mapWidthSmall = 40rem
4
- $mapHeight = 36rem
5
- $bigMapHeight = 59.5rem
6
1
 
7
- // Overall style
8
2
  .demo
9
- position relative
10
- height 100%
11
- margin-bottom 6rem
12
- .map
13
- height 100%
14
- width 100%
15
- .overlay
16
- br(1)
17
- position absolute
18
- top 0
19
- left 0
20
- z-index 10
21
- width 100%
22
- height 100%
23
- background-color $light70
24
- cursor not-allowed
25
- &--merchant
26
- .tab__content
27
- height 57rem
28
- max-height 57rem
29
- .demo__label
30
- white-space normal
31
- &--localities
32
- .tab__content
33
- height 55rem
34
- max-height 55rem
35
- &--map
36
- .tab__content
37
- height 49.6rem
38
- max-height 49.6rem
39
- &--localities
40
- &--uk
41
- .tab__content
42
- height 44.2rem
43
- max-height 44.2rem
44
- &__formcontainer
45
- width 100%
46
- height 100%
47
- position relative
48
- padding 1.6rem 2.6rem 3rem 2.6rem
49
- mbib(2)
50
- .input
51
- &__item
52
- min-width 16rem !important
53
- &--fr
54
- .tab__content
55
- height 37.2rem
56
- max-height 37.2rem
57
- &__formcontainer
58
- width 100%
59
- height 100%
60
- position relative
61
- padding 1.6rem 2.6rem 3rem 2.6rem
62
- mbib(2)
63
- .input
64
- &__item
65
- min-width 16rem !important
66
- &--address
67
- &--localitiesaddress
68
- &__formcontainer
69
- width 100%
70
- height 100%
71
- mbib(2)
72
- position relative
73
- padding 1.6rem 2.6rem 3rem 2.6rem
74
- .tab__content
75
- height 54.1rem
76
- max-height 54.1rem
77
- .demo__map
78
- height 59.5rem
79
-
80
- &--map
81
- .demo__map
82
- width 55rem
83
- height 55rem
84
-
3
+ fullwh()
4
+ margin auto
5
+ color $secondary
6
+ .title
7
+ font-size $title3
8
+ pre
9
+ code
10
+ font-size $fontSizeDemo - .1
85
11
  &__header
86
- margin-left auto
87
- margin-right auto
88
- margin-bottom 4rem
89
- &__title
90
- font-size 34px
91
- font-weight 600
92
- margin-bottom 3rem
93
- mbi(3)
94
- &--mini
95
- font-weight 600
96
- img
97
- display block
98
- &__desc
99
- font-size 2rem
100
- font-weight 400
101
- line-height 3.2rem
102
- margin-bottom 3rem
103
- &__list
104
- margin-left 60px
105
- li
106
- list-style disc
107
- list-style-position inside
108
- margin 5px 0 5px 0
109
- a
110
- color $primary
111
- font-weight 600
112
- cursor pointer
113
- p
114
- margin-bottom 20px
115
- &__cost
116
- display block
117
- margin-bottom 1rem
118
- color $dark40
119
- font-size 1.3rem
120
- line-height 1.3
121
- font-weight 400
122
- &__label
123
- font-weight 600
124
- font-size 2rem
125
- white-space nowrap
126
- .demo--merchant &
127
- .demo--geolocation &
128
- color black
129
- flexMiddle()
130
- mbi()
131
- width 100%
132
- white-space normal
133
- img
134
- width 4rem
135
- &--wide
136
- width 35rem
137
- .demo--merchant &
138
- width 100%
139
- &--filter
140
- white-space nowrap
141
- font-weight 400
142
- font-size 1.6rem
143
- line-height 1.4
12
+ fullw()
13
+ position relative
144
14
  &__content
145
- display flex
146
- align-items stretch
147
- br(1)
15
+ fullw()
16
+ br()
17
+ font-size $fontSizeDemo
148
18
  overflow hidden
149
- border .1rem solid $dark10
150
- &-wrapper
151
- padding 3rem
152
- br(1)
153
- // border .1rem solid $demoWrapperBorder
154
- background $demoWrapper
155
- // background radial-gradient(circle, $demoWrapper 0, $demoWrapper2 100% )
156
- box-shadow inset 0 0 30rem $demoWrapper2
157
- &-header
158
- flexMiddle()
159
- .demo--search &
160
- .demo--distance &
161
- .demo--address &
162
- .demo--localitiesaddress &
163
- .demo--localities &
164
- margin-bottom 1rem
165
- .demo__input-container
166
- margin-bottom 2rem
167
- .demo--address &
168
- .demo--localitiesaddress &
169
- .demo--localities &
170
- mbi(4)
171
- flex-wrap nowrap
172
- > :nth-child(2)
173
- width 100%
174
-
175
- &-footer
176
- &-header
177
- margin-bottom 3rem
178
- mbi(2rem)
179
- position relative
180
- z-index 20
181
- flex-wrap wrap
182
- flex-shrink 0
183
- &-footer
184
- margin-bottom 1rem
185
- flexSpread()
186
- z-index 15
187
- .demo__input-container
188
- margin-bottom 2rem
189
- .demo--distance &
190
- .demo--address &
191
- .demo--localitiesaddress &
192
- justify-content flex-start
193
- .demo--search &
194
- margin-bottom 3rem
195
- .demo__input-container
196
- margin-bottom 0rem
197
- .demo--address &
198
- .demo--localitiesaddress &
199
- mbi(4)
200
- :nth-child(2)
201
- .select
202
- min-width 18rem
203
- width 100%
204
- .demo__label--filter
205
- width auto !important
206
- .demo--map &
207
- justify-content flex-start
208
- mbi(4)
209
- .demo__label--filter
210
- font-weight 600
211
-
212
- &__input-container
213
- flexMiddle()
214
- mbi(2)
215
- &--inline
216
- width 100%
217
- flexMiddle()
218
- mbi(2)
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
+ background-color $light
26
+ &__filters
27
+ border-right .1rem solid rgba($secondary, .1)
28
+ padding $demoPadding + .4 $demoPadding
29
+ width $demofilterWidth
30
+ background-color $light// rgba($logo2, .82)
31
+ padding-bottom 2.6rem
32
+ mbib(1.6)
33
+ &__data
34
+ max-height 45rem
35
+ border-top .1rem solid rgba($secondary, .1)
36
+ &__showcase
37
+ min-height 50rem
38
+ max-height 71rem
219
39
  &__map
220
- overflow hidden
221
- flex-shrink 0
222
- width 50rem
223
- height $mapHeight
224
- z-index 1
225
- &--small
226
- width $mapWidthSmall
227
- button
228
- &:focus
229
- box-shadow 0 0 0 .1rem $focus
230
- .demo--localities &
231
- height $bigMapHeight
232
- &__results
233
- background $result
234
- width 30rem
235
- flex-shrink 0
236
- max-height $mapHeight
237
- box-shadow 0 0 1rem $dark15
238
- z-index 2
239
- .demo--localities &
240
- max-height unset
241
- .demo--localities--uk &
242
- width 50rem
243
- max-height unset
244
- .demo--localities--fr &
245
- width 50rem
246
- max-height unset
247
- .demo--merchant &
40
+ display flex
41
+ align-items center
42
+ justify-content center
43
+ flex-grow 1
44
+ background-color $light
45
+ .map
248
46
  width 100%
249
47
  height 100%
250
- max-height unset
251
- max-width 100%
252
- flexMiddle()
253
- padding 2rem
254
- mbi(2)
255
- background-color transparent
256
- box-shadow none
257
- .demo--address &
258
- .demo--localitiesaddress &
259
- width 34rem
48
+ background-color $inputDemoBgColor
49
+ &__results
50
+ width $demofilterWidth
51
+ display flex
52
+ flex-direction column
53
+ border-right .1rem solid rgba($secondary, .1)
54
+ flex-shrink 0
260
55
  &__header
261
- background $tabHeader
262
- background linear-gradient(90deg, $tabHeader2 15%, $tabHeader 100%)
263
- padding 0 2rem
264
- height $tabBtnHeight + 1
265
- font-size 90%
266
- font-weight 400
267
- flexMiddle()
268
- mbi(2)
269
- text-transform uppercase
270
- color $tabBtnActive
271
- .demo--localities--uk &
272
- .demo--localities--fr &
273
- .demo--address &
274
- .demo--localitiesaddress &
275
- display none
276
- &__leftcontent
277
- position relative
278
- .demo--merchant &
279
- background-color #454545
56
+ display flex
57
+ align-items center
58
+ flex-shrink 0
59
+ font-size $fontSizeDemo - .1
60
+ padding 0 $demoPadding
61
+ height $footerDemoHeight
62
+ background-color $inputDemoBgColor
63
+ font-weight 600
280
64
  &__content
281
- position relative
282
- padding 2rem
65
+ font-weight 400
66
+ color $textColor
67
+ padding $demoPadding
68
+
69
+ background-color $light
283
70
  overflow-y auto
71
+ &__code
72
+ font()
73
+ width 100%
74
+ &__header
75
+ display flex
76
+ align-items center
77
+ flex-shrink 0
78
+ padding 0 2.6rem
79
+ height $demoResultHeaders
80
+ background-color rgba($logo2, .82)
81
+ &__content
82
+ padding 2.6rem
83
+ background-color #fff
284
84
  height 100%
285
- min-height 20rem
286
- ul
287
- line-height 1.6
288
- mbib(1)
289
- .demo--localities--uk &
290
- .demo--localities--fr &
291
- .demo--address &
292
- .demo--localitiesaddress &
293
- padding 0
294
- font-size 1.5rem
295
- mbib(2)
296
- background-color #f3f9fd
297
- .demo--address &
298
- .demo--localitiesaddress &
299
- .demo--localities &
300
- height auto
301
- .localities-matched
302
- background-color $resultMatch
303
- &__item
304
- &:not(:last-child)
305
- margin-bottom 1.4rem
306
- &__api
307
- overflow hidden
308
- width 40rem
309
- flex-grow 1
310
- min-height $mapHeight
311
- background-color $tabContent
312
- box-shadow 0 0 1rem $dark15
313
- z-index 2
314
- min-width 0// To fit to Docs container
315
- &__footer
316
- mbib(2)
317
- input[type=text]
318
- .select__control
319
- .asyncselect__control
320
- min-width 22rem
321
- .demo--localities--uk &
322
- .demo--localities--fr &
323
- min-width 16rem
324
- &__input-container
325
- position relative
326
- .demo--localities--uk &
327
- .demo--localities--fr &
328
- width 100%
329
- .select
330
- width 100%
331
85
 
332
- // Responsiveness
333
- @media screen and (max-width 1090px)
334
- .demo
335
- &__results
336
- width 23rem
337
- &__map
338
- width 36rem
86
+ &__input-container
87
+ mbib(.6)
88
+ &__label
89
+ font-weight 500
90
+ margin-bottom .6rem
339
91
 
340
- @media screen and (max-width 999px)
341
- .demo
342
- &__header
343
- &__results
344
- &__map
345
- &__api
346
- &__footer
347
- &__input-container
348
- &__label
349
- &__label--filter
350
- .select
351
- .asyncselect-container
352
- width 100% !important
353
- &__content
354
- flexCol()
355
- align-items center
356
- &-footer
357
- .demo--distance &
358
- .demo--address &
359
- .demo--localitiesaddress &
360
- .demo--map &
361
- margin-bottom 0
362
- .demo
363
- &__label--filter
364
- margin-bottom 0
365
- mbi()
366
- &__input-container
367
- flex-direction row
368
- align-items center
369
- width auto !important
370
- margin-bottom 3rem
371
- .demo--search &
372
- .demo
373
- &__input-container
374
- flex-direction row
375
- align-items center
376
- width auto
377
- &__label--filter
378
- margin-bottom 0
379
- &-header
380
- .demo--address &
381
- .demo--localitiesaddress &
382
- flex-wrap wrap
383
- .demo--geolocation &
384
- margin-bottom 2rem
385
- .demo
386
- &__label
387
- margin-bottom 0
388
- .demo--distance &
389
- .demo--address &
390
- .demo--localitiesaddress &
391
- .demo--search &
392
- .demo--map &
393
- .demo
394
- &__input-container
395
- margin-right 0
396
- &__input-container
397
- align-items flex-start
398
- flex-direction column
399
- &__label
400
- margin-right 0 !important
401
- &__label--filter
92
+ input
93
+ &:not([type=button]):not([type=checkbox]):not([type=radio]):not([type=textarea])
94
+ inputFont()
95
+ br($demoBr)
96
+ background-color $inputDemoBgColor !important
97
+ border-color $inputDemoBorderColor
98
+ font-size $inputFontSizeDemo !important
99
+ height $inputDemoHeight
100
+ padding 0 1rem 0 1rem
101
+ .mbi
102
+ mbi(.6)
103
+ .input
402
104
  &__label
403
- margin-bottom 2rem
404
- input[type=text]
405
- .select__control
406
- .asyncselect__control
407
- min-width 100%
408
- &__results
409
- .demo--merchant &
410
- width auto
411
- flex-wrap wrap
412
- align-items flex-start
413
- justify-content center
414
- > :first-child
415
- margin-bottom 2rem
416
-
417
- &__leftcontent
418
- .demo--merchant &
419
- width 100%
420
- flexAxis()
421
- @media screen and (max-width 960px)
422
- .demo
423
- &__results
105
+ inputFont()
106
+ font-size $inputFontSizeDemo !important
107
+ .select
108
+ .asyncselect
109
+ &__control
110
+ inputFont()
111
+ font-size $inputFontSizeDemo !important
112
+ border-radius $demoBr !important
113
+ background-color $inputDemoBgColor !important
114
+ min-height $inputDemoHeight !important
115
+ height auto !important
116
+ &:not(.select__control--is-focused):not(.asyncselect__control--is-focused)
117
+ border-color $inputDemoBorderColor !important
118
+ .css-g1d714-ValueContainer
119
+ .css-tlfecz-indicatorContainer
120
+ padding 0
121
+ .css-g1d714-ValueContainer
122
+ height 100%
123
+ .css-tlfecz-indicatorContainer
124
+ cursor pointer
125
+ &__input
126
+ input
127
+ height auto !important
128
+ &__placeholder
129
+ color $inputDemoPlaceholderColor
130
+ &__dropdown-indicator
131
+ &__clear-indicator
132
+ padding 0
133
+ &__value-container
134
+ padding-left .6rem !important
135
+ &__indicator
136
+ padding-left .5rem !important
137
+ padding-right .5rem !important
138
+ svg
139
+ fill $activeColor
140
+ &__indicator-separator
141
+ background-color $activeColor
142
+ &__multi-value
143
+ background-color $activeColorDark !important
144
+ &__label
145
+ inputFont() !important
146
+ height 2.1rem
147
+ line-height 1.1rem
148
+ font-size $inputFontSizeDemo - .1 !important
149
+ &__remove
150
+ padding .2rem !important
151
+
152
+ .flag
153
+ width 1.6rem
154
+ height 1.1rem
155
+ &__option
156
+ padding .6rem
157
+ .flag
158
+ margin 0 .6rem 0 0
159
+ &--is-selected
160
+ color $light !important
161
+ background-color #819cb9 !important
162
+ &.select__option--is-focused
163
+ color $light !important
164
+ background-color #819cb9 !important
165
+ &--is-focused:not(.select__option--is-selected)
166
+ background-color #cddbeb !important
167
+ color $secondary !important
168
+
169
+ &__filters
170
+ .btn
171
+ br(.2)
172
+ font-size $inputFontSizeDemo !important
173
+ line-height 2.2rem
174
+ padding 0 .8rem
175
+ height $inputDemoHeight
176
+ inputFont()
177
+ border-color $inputDemoBorderColor
178
+ .active
179
+ &--primary
180
+ background-color $activeColor
181
+ border-color $activeColor
182
+ &--group
183
+ height 2.8rem
184
+ &-container
185
+ color $inputDemoBgColor
186
+ .btn
187
+ &:first-child
188
+ border-radius 2rem 0 0 2rem
189
+ &:last-child
190
+ border-radius 0 2rem 2rem 0
191
+ &--light
192
+ .btn.active
193
+ background-color $activeColorDark
194
+ border-color $activeColorDark
195
+ color $inputDemoBgColor
196
+ &.language
197
+ &.transportation
198
+ mbi(.6)
199
+ .btn
200
+ br(.3)
201
+ border 0
202
+ height 2.2rem
203
+ padding .4rem
204
+ &.active
205
+ background-color $light
206
+ box-shadow 0 0 .1rem .1rem $activeColorDark
207
+ .flag
208
+ width 2.4rem
209
+ height 1.6rem
210
+ &.transportation
211
+ .btn
212
+ height 2.8rem
213
+ img
214
+ max-width 2.4rem
215
+ &__code
216
+ .tab
217
+ &__header
218
+ height $footerDemoHeight
219
+ background-color $inputDemoBgColor
424
220
  &__content
425
- padding $tabPadding - .5
426
-
427
- @media screen and (max-width 720px)
428
- .demo
429
- &__title
430
- font-size 3rem
431
- &__desc
432
- font-size 1.75rem
433
- &__content
434
- &-wrapper
435
- padding 1.8rem
436
- &-footer
437
- flex-direction column
438
- .demo--distance &
439
- .demo--address &
440
- .demo--localitiesaddress &
441
- .demo--map &
442
- flex-direction row
443
- &__results
444
- .demo--merchant &
445
- width 100%
446
- justify-content center
447
- @media screen and (max-width 670px)
221
+ padding $demoPadding
222
+ overflow auto
223
+ max-height 40rem
224
+ .btn
225
+ font-size $fontSizeDemo
226
+ &--tab
227
+ position relative
228
+ font-size $fontSizeDemo - .1
229
+ color rgba($secondary, .4)
230
+ &.active
231
+ font-weight 600
232
+ color $secondary
233
+ &--action
234
+ br(2)
235
+ inputFont()
236
+ padding 0 1rem
237
+ font-size $inputFontSizeDemo !important
238
+ border .1rem solid $activeColor
239
+ color darken($activeColor, 20%)
240
+ &--address
241
+ &__formcontainer
242
+ .input
243
+ &__label
244
+ margin-bottom .4rem
245
+ &__line
246
+ margin-bottom 1rem
247
+ @media screen and (max-width 769px)
248
+ .demo__showcase
249
+ max-height 100%
250
+ min-height auto
251
+ @media screen and (max-width 696px)
448
252
  .demo
449
- pre
450
- code
451
- .btn--tab
452
- font-size 85%
253
+ &__data
254
+ &__showcase
255
+ flex-direction column
256
+ max-height 100%
453
257
  &__results
454
- font-size 90%
455
- &__label
456
- &__label--filter
457
- font-size 90%
458
- .asyncselect__single-value
459
- .input__item
460
- font-size $inputFontSize - .2
258
+ &__filters
259
+ width auto
260
+ border-bottom .1rem solid rgba($secondary, .1)
261
+ border-right 0
262
+ &__map
263
+ height 32rem
461
264
  .demo--merchant &
462
- justify-content center
463
- &.demo--localities
464
- .demo
465
- &__content-header
466
- flex-direction column
467
- &__input-container
468
- margin-right 0
469
- @media screen and (max-width 440px)
470
- .demo
471
- &.demo--distance
472
- &.demo--address
473
- &.demo--localitiesaddress
474
- &.demo--map
475
- .demo__input-container
476
- &:nth-child(3)
477
- flex-direction column
478
- .demo__label--filter
479
- margin 0 0 2rem 0
480
- &.demo--geolocation
481
- .demo__label
482
- font-size 1.6rem
483
- &.demo--distance
484
- &.demo--localities
485
- &.demo--localities--uk
486
- &.demo--address
487
- &.demo--localitiesaddress
488
- .flag
489
- width 2rem
490
- height 1.4rem
491
- .demo__input-container--inline
492
- flex-direction column
493
- .select
494
- margin 0 0 2rem 0
495
- &.demo--localities--uk
496
- &.demo--address
497
- &.demo--localitiesaddress
498
- .demo__input-container--inline
499
- .input
500
- margin 0 0 2rem 0
501
- &.demo--search
502
- .demo
503
- &__content
504
- &-footer
505
- flex-direction row
506
- &__label--filter
507
- margin-bottom 2rem
508
- &__input-container
509
- align-items flex-start
510
- justify-content flex-start
511
- flex-direction column
512
- &.demo--merchant
513
- .demo__results
514
- padding 2rem 0
515
- &.demo--map
516
- .btn--group-container
517
- .btn
518
- font-size 1.4rem
519
- height 3.6rem
520
- padding 0 .8rem
521
- &__desc
522
- &__list
523
- margin-left 20px
524
- @media screen and (max-width 370px)
525
- .demo
526
- &.demo--merchant
527
- .demo
528
- &__label
529
- margin-bottom 0
530
- &__results
531
- padding 0 0 2rem 0
532
- &__leftcontent
533
- background-color transparent
534
- &__content
535
- border 0
536
- @media screen and (max-width 320px)
537
- .demo
538
- .btn--group-container
539
- .btn.btn--small.btn--group
540
- padding 0 .6rem
265
+ height auto