@woosmap/ui 3.32.0 → 3.36.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 (37) hide show
  1. package/.storybook/preview.js +2 -2
  2. package/package.json +2 -2
  3. package/src/{styles/next-website → components/Demo}/MerchantDemo.styl +0 -0
  4. package/src/{styles/next-website/demo.styl → components/Demo/skeletondemo.styl} +12 -35
  5. package/src/styles/console/button.styl +5 -13
  6. package/src/styles/console/colors.styl +44 -43
  7. package/src/styles/console/fonts.styl +1 -1
  8. package/src/styles/console/mixins.styl +3 -0
  9. package/src/styles/console/tab.styl +51 -1
  10. package/src/styles/console/variables.styl +12 -0
  11. package/src/styles/style-console.styl +7 -10
  12. package/src/styles/style-website.styl +8 -9
  13. package/src/styles/website/button.styl +416 -128
  14. package/src/styles/website/card.styl +302 -0
  15. package/src/styles/website/colors.styl +279 -46
  16. package/src/styles/website/dropdown.styl +123 -0
  17. package/src/styles/website/fonts.styl +1 -1
  18. package/src/styles/website/input.styl +7 -7
  19. package/src/styles/website/mixins.styl +192 -4
  20. package/src/styles/website/popover.styl +8 -0
  21. package/src/styles/website/select.styl +47 -25
  22. package/src/styles/website/tab.styl +5 -4
  23. package/src/styles/website/variables.styl +111 -28
  24. package/src/styles/console/skeletondemo.styl +0 -588
  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/dropdown.styl +0 -82
  28. package/src/styles/next-website/font.styl +0 -1
  29. package/src/styles/next-website/input.styl +0 -138
  30. package/src/styles/next-website/mixins.styl +0 -128
  31. package/src/styles/next-website/select.styl +0 -113
  32. package/src/styles/next-website/tab.styl +0 -41
  33. package/src/styles/next-website/variables.styl +0 -120
  34. package/src/styles/style-next-website.styl +0 -26
  35. package/src/styles/website/MerchantDemo.styl +0 -203
  36. package/src/styles/website/skeletondemo.styl +0 -540
  37. package/src/styles/website/style.styl +0 -2
@@ -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
@@ -1,41 +0,0 @@
1
- $tabPadding = 2rem
2
- .tab
3
- height 100%
4
- pre
5
- code
6
- margin 0 !important
7
- padding 0 !important
8
- background-color transparent !important
9
- width 100%
10
- &__header
11
- background linear-gradient(90deg, $tabHeader 77%, $tabHeader2 100%)
12
- padding 0 $tabPadding
13
- flex-shrink 0
14
- flexSpread()
15
- &__buttons
16
- flexMiddle()
17
- mbi(3)
18
- fullw()
19
- position relative
20
- li
21
- min-width 0
22
- &__content
23
- background-color $tabContent
24
- display none
25
- padding $tabPadding + .5
26
- line-height 1.2
27
- height 30.6rem
28
- max-height 30.6rem
29
- &.active
30
- display flex
31
- height 100%
32
- @media screen and (max-width 670px)
33
- .tab
34
- &__header
35
- padding 0 1.2rem
36
- &__buttons
37
- mbi(1)
38
- .btn
39
- font-size 70%
40
- &__content
41
- padding $tabPadding - .5
@@ -1,120 +0,0 @@
1
- $fontFamily = "Poppins", arial, sans-serif
2
- $fontFamily2 = 'Roboto Mono', monospace
3
- $fontSize = 1.8rem
4
- $lineHeight = $fontSize * 2 - .8
5
- $fontSizeSmall = $fontSize - .2
6
- $fontSizeMini = $fontSize - .4
7
- $fontSizeNano = $fontSize - .6
8
- $fontWeight = 400
9
- $fontSizeHeader = 1.3rem
10
- $fontSizeFooter = 1.6rem
11
-
12
- //new version of demos
13
- $demofilterWidth = 27.4rem
14
- $fontSizeDemo = 1.3rem
15
- $demoPadding = 1.6rem
16
- $demoBr = .3rem
17
- $inputFontSizeDemo = 1.1rem
18
- $inputDemoHeight = 3rem
19
- $footerDemoHeight = 4rem
20
-
21
-
22
- $title = 4.6rem
23
- $title2 = 4rem
24
- $title3 = 3.6rem
25
- $title4 = 3rem
26
- $title5 = 2.6rem
27
- $title6 = 2rem
28
-
29
- $borderRadius = .6rem
30
-
31
-
32
- // Layout
33
- $wrapperWidth = 125rem
34
- $headerHeight = 6.7rem
35
- $headerBannerHeight = 5.2rem
36
- $sectionPadding = 18.5rem
37
- $topRainbowHeight = 3.8rem
38
- $gutter2c = 3rem
39
- $quoteIcon = 46rem
40
- $quoteIconPosition = ( - $quoteIcon / 2 - $sectionPadding - 2 )
41
-
42
- $col2 = 58rem
43
- $col3 = 31.5rem
44
- $col4 = 22rem
45
-
46
- // card articles
47
- $cardHeaderHeight = 21rem
48
- $cardFontSize = 1.6rem
49
- $cardTitle = 1.8rem
50
- $cardTitleLineHeight = 2.6rem
51
- $cardLineHeight = $cardFontSize * 2 - 1
52
- $cardPadding = 2rem
53
-
54
- // Buttons & Inputs
55
-
56
- $padding = 2rem
57
- $contentPadding = 2.8rem
58
-
59
-
60
-
61
- $sidebarButtonSize = 5rem
62
-
63
- $buttonHeight = 3.8rem
64
- $buttonPadding = 0 $padding 0 $padding
65
- $buttonFontSize = $fontSize
66
- $buttonLineHeight = $fontSize * 2
67
-
68
- $buttonHeightSmall = $buttonHeight - .6
69
- $buttonPaddingSmall = 0 $padding - .1 0 $padding - .1
70
- $buttonFontSizeSmall = $fontSize - .1
71
- $buttonLineHeightSmall = $buttonFontSizeSmall * 2
72
-
73
- $buttonHeightMini = $buttonHeight - 1
74
- $buttonPaddingMini = 0 $padding - .4 0 $padding - .4
75
- $buttonFontSizeMini = $fontSizeSmall
76
- $buttonLineHeightMini = $buttonFontSizeMini * 2
77
-
78
- $buttonHeightNano = $buttonHeight - 1.4
79
- $buttonPaddingNano = 0 $padding - .4 0 $padding - .4
80
- $buttonFontSizeNano = $fontSize - .3
81
- $buttonLineHeightNano = $buttonFontSizeNano * 2
82
-
83
- $buttonHeightLarge = $buttonHeight + 1.2
84
- $buttonPaddingLarge = 0 $padding + .6 0 $padding + .6
85
- $buttonFontSizeLarge = $fontSize - .2
86
- $buttonLineHeightLarge = $buttonFontSizeLarge * 2
87
-
88
-
89
- $inputMinWidth = 16rem
90
-
91
- $inputHeight = $buttonHeight
92
- $inputPadding = 0 $padding .2rem $padding
93
- $inputFontSize = $fontSize
94
- $inputLineHeight = $buttonLineHeight
95
-
96
- $inputHeightSmall = $buttonHeightSmall
97
- $inputPaddingSmall = 0 $padding - .1 .2rem $padding - .1
98
- $inputFontSizeSmall = $buttonFontSizeSmall
99
- $inputLineHeightSmall = $buttonLineHeightSmall
100
-
101
- $inputHeightLarge = $buttonHeightLarge
102
- $inputPaddingLarge = 0 $padding + .4 .2rem $padding + .4
103
- $inputFontSizeLarge = $buttonFontSizeLarge
104
- $inputLineHeightLarge = $buttonLineHeightLarge
105
-
106
- // tabs
107
-
108
- $tabBtnHeight = $buttonHeight
109
- $tabBtnPillHeight = $buttonHeight
110
-
111
-
112
- // panel
113
- $panelWidth = 36rem
114
- $panelpadding = 2.4rem
115
- $contentHeaderHeight = 7.8rem
116
- $panelHeaderHeight = $contentHeaderHeight
117
-
118
- // modal
119
- $modalWidth = 70rem
120
- $modalPadding = 2.4rem
@@ -1,26 +0,0 @@
1
- // Common styles - Don't change order
2
- @import "./commons/reset.styl"
3
-
4
- // Specicif style - Do not change order
5
- @import "./next-website/font.styl"
6
- @import "./next-website/variables.styl"
7
- @import "./next-website/colors.styl"
8
-
9
- @import "./commons/__all.styl"
10
- @import "./commons/flags.styl"
11
-
12
- @import "./next-website/mixins.styl"
13
-
14
- @import "./next-website/button.styl"
15
- @import "./next-website/input.styl"
16
- @import "./next-website/select.styl"
17
- @import "./next-website/tab.styl"
18
-
19
-
20
- // Style of all components
21
- @import "../components/**/*.styl"
22
-
23
- // Additional style for UI components
24
- @import "./next-website/MerchantDemo.styl"
25
- @import "./next-website/demo.styl"
26
- @import "./next-website/dropdown.styl"