@woosmap/ui 3.32.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.
- package/.storybook/preview.js +2 -2
- package/package.json +2 -2
- package/src/styles/style-console.styl +7 -6
- package/src/styles/style-website.styl +13 -9
- package/src/styles/website/MerchantDemo.styl +73 -54
- package/src/styles/website/button.styl +390 -140
- package/src/styles/website/card.styl +302 -0
- package/src/styles/website/colors.styl +279 -46
- package/src/styles/website/dropdown.styl +123 -0
- package/src/styles/website/fonts.styl +1 -1
- package/src/styles/website/input.styl +7 -7
- package/src/styles/website/mixins.styl +192 -4
- package/src/styles/website/popover.styl +8 -0
- package/src/styles/website/select.styl +47 -25
- package/src/styles/website/skeletondemo.styl +246 -521
- package/src/styles/website/tab.styl +5 -2
- package/src/styles/website/variables.styl +111 -28
- package/src/styles/next-website/MerchantDemo.styl +0 -222
- package/src/styles/next-website/button.styl +0 -416
- package/src/styles/next-website/colors.styl +0 -287
- package/src/styles/next-website/demo.styl +0 -264
- package/src/styles/next-website/dropdown.styl +0 -82
- package/src/styles/next-website/font.styl +0 -1
- package/src/styles/next-website/input.styl +0 -138
- package/src/styles/next-website/mixins.styl +0 -128
- package/src/styles/next-website/select.styl +0 -113
- package/src/styles/next-website/tab.styl +0 -41
- package/src/styles/next-website/variables.styl +0 -120
- package/src/styles/style-next-website.styl +0 -26
- package/src/styles/website/style.styl +0 -2
package/.storybook/preview.js
CHANGED
|
@@ -36,12 +36,12 @@ let isConsoleStyle = false;
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
if (mode === 'prod') {
|
|
39
|
-
import('../src/styles/style-
|
|
39
|
+
import('../src/styles/style-website.styl');
|
|
40
40
|
import('../src/styles/style-stories.styl');
|
|
41
41
|
} else {
|
|
42
42
|
import('../src/styles/style-stories.styl').then((storiesStyl) => {
|
|
43
43
|
import('../src/styles/style-console.styl').then((consoleStylLoaded) => {
|
|
44
|
-
import('../src/styles/style-
|
|
44
|
+
import('../src/styles/style-website.styl').then((websiteStylLoaded) => {
|
|
45
45
|
const storeGlobals = sessionStorage.getItem('@storybook/preview/store');
|
|
46
46
|
const globalTheme = storeGlobals ? JSON.parse(storeGlobals).globals.theme : null;
|
|
47
47
|
const defaultStyle = urlParams.get('theme')|| globalTheme || "Website theme";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@woosmap/ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.33.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/WebGeoServices/ui.git"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"scripts": {
|
|
29
29
|
"start": "yarn storybook:dev",
|
|
30
30
|
"build": "rimraf dist && NODE_ENV=production babel src --out-dir dist --copy-files --no-copy-ignored --ignore '**/*.stories.js,**/*.test.js,**/*.styl' && yarn build-css",
|
|
31
|
-
"build-css": "stylus ./src/styles/style-
|
|
31
|
+
"build-css": "stylus ./src/styles/style-website.styl -o dist && stylus ./src/styles/style-console.styl -o dist && stylus ./src/styles/style-stories.styl -o dist",
|
|
32
32
|
"test": "react-scripts test",
|
|
33
33
|
"test:generate-output": "react-scripts test --json --outputFile=./.storybook/jest-test-results.json --silent",
|
|
34
34
|
"prestorybook:dev": "clear && echo \"DOING FIRST TEST RUN\" && CI=true npm run test:generate-output",
|
|
@@ -9,12 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
@import "./commons/__all.styl"
|
|
11
11
|
@import "./commons/flags.styl"
|
|
12
|
-
|
|
13
12
|
@import "./console/icon.styl"
|
|
14
|
-
@import "./console/button.styl"
|
|
15
|
-
@import "./console/input.styl"
|
|
16
|
-
@import "./console/select.styl"
|
|
17
|
-
@import "./console/tab.styl"
|
|
18
13
|
|
|
19
14
|
//demos
|
|
20
15
|
@import "./console/MerchantDemo.styl"
|
|
@@ -22,4 +17,10 @@
|
|
|
22
17
|
|
|
23
18
|
|
|
24
19
|
// Style of all components
|
|
25
|
-
@import "../components/**/*.styl"
|
|
20
|
+
@import "../components/**/*.styl"
|
|
21
|
+
|
|
22
|
+
// Console override
|
|
23
|
+
@import "./console/button.styl"
|
|
24
|
+
@import "./console/input.styl"
|
|
25
|
+
@import "./console/select.styl"
|
|
26
|
+
@import "./console/tab.styl"
|
|
@@ -10,16 +10,20 @@
|
|
|
10
10
|
@import "./commons/__all.styl"
|
|
11
11
|
@import "./commons/flags.styl"
|
|
12
12
|
|
|
13
|
+
|
|
14
|
+
// Style of all components
|
|
15
|
+
@import "../components/**/*.styl"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
//Website style override
|
|
19
|
+
|
|
20
|
+
@import "./website/skeletonDemo.styl"
|
|
21
|
+
@import "./website/MerchantDemo.styl"
|
|
22
|
+
|
|
13
23
|
@import "./website/button.styl"
|
|
14
24
|
@import "./website/input.styl"
|
|
15
25
|
@import "./website/select.styl"
|
|
16
26
|
@import "./website/tab.styl"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
@import "./website/
|
|
20
|
-
@import "./website/skeletonDemo.styl"
|
|
21
|
-
|
|
22
|
-
@import "./website/style.styl"
|
|
23
|
-
|
|
24
|
-
// Style of all components
|
|
25
|
-
@import "../components/**/*.styl"
|
|
27
|
+
@import "./website/dropdown.styl"
|
|
28
|
+
@import "./website/popover.styl"
|
|
29
|
+
@import "./website/card.styl"
|
|
@@ -1,25 +1,35 @@
|
|
|
1
1
|
.merchant
|
|
2
|
+
&__wrapper
|
|
3
|
+
trans()
|
|
4
|
+
display flex
|
|
5
|
+
justify-content center
|
|
6
|
+
align-items center
|
|
7
|
+
height 100%
|
|
8
|
+
width 100%
|
|
9
|
+
zoom .9
|
|
10
|
+
padding 2rem
|
|
11
|
+
background-color #d5eaff
|
|
2
12
|
&__mobilewrapper
|
|
13
|
+
trans()
|
|
3
14
|
position relative
|
|
4
|
-
|
|
5
|
-
overflow hidden
|
|
6
|
-
flex-grow 1
|
|
15
|
+
margin 3rem
|
|
7
16
|
&__mobilecontainer
|
|
8
17
|
position relative
|
|
9
|
-
height
|
|
18
|
+
height 51.9rem
|
|
10
19
|
width 28rem
|
|
11
20
|
margin auto
|
|
21
|
+
box-shadow 0 0 .4rem .1rem rgba($secondary, .1)
|
|
22
|
+
br(1)
|
|
12
23
|
&__title
|
|
13
24
|
text-align center
|
|
14
|
-
|
|
15
|
-
font-size 1.7rem
|
|
25
|
+
font-size 1.2rem
|
|
16
26
|
font-weight 600
|
|
17
|
-
margin
|
|
27
|
+
margin 0 0 1rem 0
|
|
18
28
|
&__mobile
|
|
29
|
+
br(1)
|
|
30
|
+
font-size 1.3rem
|
|
19
31
|
width 100%
|
|
20
|
-
height 52.9rem
|
|
21
32
|
background-color $light
|
|
22
|
-
br(2)
|
|
23
33
|
overflow hidden
|
|
24
34
|
&--dirty
|
|
25
35
|
&--details--dirty
|
|
@@ -30,63 +40,69 @@
|
|
|
30
40
|
.merchant__mobile__header
|
|
31
41
|
background #4F70FF
|
|
32
42
|
&--details
|
|
33
|
-
|
|
43
|
+
position relative
|
|
34
44
|
&__header
|
|
35
|
-
padding 1.
|
|
45
|
+
padding 1.1rem
|
|
36
46
|
color #fff
|
|
37
47
|
text-transform uppercase
|
|
38
|
-
font-size 1.7rem
|
|
39
48
|
font-weight 600
|
|
40
49
|
&__nav
|
|
41
50
|
&__icons
|
|
42
51
|
flexSpread()
|
|
43
52
|
&__icons
|
|
44
53
|
img
|
|
45
|
-
max-height
|
|
54
|
+
max-height .8rem
|
|
46
55
|
&__nav
|
|
47
|
-
|
|
56
|
+
font-weight 700
|
|
57
|
+
margin-top 1.4rem
|
|
48
58
|
position relative
|
|
49
59
|
.merchant__mobile--details &
|
|
50
60
|
.merchant__mobile--details--dirty &
|
|
51
61
|
flexAxis()
|
|
52
62
|
&__avatar
|
|
53
|
-
max-width
|
|
63
|
+
max-width 2.4rem
|
|
54
64
|
&__back
|
|
55
|
-
max-width
|
|
65
|
+
max-width 1rem
|
|
56
66
|
opacity 0
|
|
57
67
|
.merchant__mobile--details &
|
|
58
68
|
.merchant__mobile--details--dirty &
|
|
59
69
|
opacity 1
|
|
60
70
|
&__button
|
|
71
|
+
sq(3)
|
|
61
72
|
position absolute
|
|
62
73
|
background-color transparent
|
|
63
|
-
left
|
|
74
|
+
left -.6rem
|
|
75
|
+
padding 0
|
|
76
|
+
display flex
|
|
77
|
+
align-items center
|
|
78
|
+
justify-content center
|
|
79
|
+
flex-shrink 0
|
|
64
80
|
&:hover
|
|
65
81
|
background-color $dark30
|
|
66
82
|
|
|
67
83
|
&__section
|
|
68
|
-
font-size 1.5rem
|
|
69
84
|
padding 1.4rem 2rem
|
|
70
|
-
|
|
71
|
-
|
|
85
|
+
background-color #f5f5f5
|
|
86
|
+
border-radius 0 0 1rem 1rem
|
|
87
|
+
height 45rem
|
|
88
|
+
.merchant__mobile--clean &
|
|
89
|
+
background-color #f3f7ff
|
|
72
90
|
.merchant__mobile--details &
|
|
91
|
+
background-color $light
|
|
73
92
|
padding 0
|
|
74
93
|
.merchant__mobile--details--dirty &
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
margin 2rem
|
|
78
|
-
br(1)
|
|
79
|
-
height auto
|
|
80
|
-
overflow hidden
|
|
94
|
+
background-color $light
|
|
95
|
+
padding 2rem
|
|
81
96
|
&__map
|
|
82
97
|
overflow hidden
|
|
83
98
|
height 20rem
|
|
84
99
|
&__no-map
|
|
85
100
|
height 6rem
|
|
86
101
|
&__date
|
|
87
|
-
color #
|
|
88
|
-
|
|
89
|
-
|
|
102
|
+
color #b7b7b7
|
|
103
|
+
margin-bottom .6rem
|
|
104
|
+
.merchant__mobile--clean &
|
|
105
|
+
color #8697b1
|
|
90
106
|
.merchant__mobile--details &
|
|
91
107
|
.merchant__mobile--details--dirty &
|
|
92
108
|
text-align center
|
|
@@ -95,16 +111,19 @@
|
|
|
95
111
|
margin 0 0 2rem 0
|
|
96
112
|
&__transaction
|
|
97
113
|
flexSpread()
|
|
98
|
-
br(
|
|
114
|
+
br(.6)
|
|
99
115
|
trans()
|
|
116
|
+
background-color $light
|
|
117
|
+
font-size 1.3rem
|
|
100
118
|
cursor pointer
|
|
101
|
-
height
|
|
102
|
-
padding .8rem
|
|
103
|
-
box-shadow 0 0 1rem $dark10
|
|
119
|
+
height 4.8rem
|
|
120
|
+
padding 0 .8rem
|
|
121
|
+
box-shadow 0 0 .3rem .1rem $dark10
|
|
104
122
|
width 100%
|
|
105
|
-
margin-bottom
|
|
123
|
+
margin-bottom .8rem
|
|
106
124
|
&:hover
|
|
107
125
|
background-color #666767
|
|
126
|
+
transform translateX(.5rem)
|
|
108
127
|
.merchant__mobile--clean &
|
|
109
128
|
background-color #4F70FF
|
|
110
129
|
.merchant__mobile__section__transaction
|
|
@@ -135,7 +154,7 @@
|
|
|
135
154
|
color#999
|
|
136
155
|
text-align center
|
|
137
156
|
&__logo
|
|
138
|
-
sq(
|
|
157
|
+
sq(3)
|
|
139
158
|
br(50)
|
|
140
159
|
position relative
|
|
141
160
|
margin-right 1.2rem
|
|
@@ -146,7 +165,7 @@
|
|
|
146
165
|
img
|
|
147
166
|
ellipsis()
|
|
148
167
|
br(50)
|
|
149
|
-
sq(
|
|
168
|
+
sq(3)
|
|
150
169
|
background #fff
|
|
151
170
|
border .1rem solid #f1f1f1
|
|
152
171
|
box-shadow 0 0 .6rem $dark10
|
|
@@ -161,15 +180,19 @@
|
|
|
161
180
|
&__name
|
|
162
181
|
ellipsis()
|
|
163
182
|
font-weight 500
|
|
183
|
+
line-height 1.6rem
|
|
184
|
+
margin-bottom .3rem
|
|
164
185
|
.merchant__mobile--details &
|
|
165
186
|
.merchant__mobile--details--dirty &
|
|
166
187
|
text-align center
|
|
167
188
|
font-size 2rem
|
|
168
189
|
&__date
|
|
169
|
-
color #
|
|
190
|
+
color #a1a1a1
|
|
170
191
|
font-size 1.2rem
|
|
192
|
+
line-height 1.4rem
|
|
171
193
|
&__price
|
|
172
|
-
font-weight
|
|
194
|
+
font-weight 700
|
|
195
|
+
font-size 1.5rem
|
|
173
196
|
.merchant__mobile--details &
|
|
174
197
|
.merchant__mobile--details--dirty &
|
|
175
198
|
margin-top 1rem
|
|
@@ -180,24 +203,20 @@
|
|
|
180
203
|
.merchant__mobile--details--dirty &
|
|
181
204
|
font-size 3.5rem
|
|
182
205
|
|
|
183
|
-
@media screen and (max-width
|
|
206
|
+
@media screen and (max-width 760px)
|
|
184
207
|
.merchant
|
|
185
208
|
&__mobilewrapper
|
|
186
|
-
margin
|
|
187
|
-
@media screen and (max-width
|
|
209
|
+
margin 0 1rem
|
|
210
|
+
@media screen and (max-width 660px)
|
|
188
211
|
.merchant
|
|
189
|
-
&
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
font-size 85%
|
|
197
|
-
@media screen and (max-width 350px)
|
|
212
|
+
&__wrapper
|
|
213
|
+
zoom .7
|
|
214
|
+
@media screen and (max-width 469px)
|
|
215
|
+
.merchant
|
|
216
|
+
&__wrapper
|
|
217
|
+
zoom .6
|
|
218
|
+
@media screen and (max-width 400px)
|
|
198
219
|
.merchant
|
|
199
|
-
&
|
|
200
|
-
|
|
201
|
-
sq(3.6)
|
|
202
|
-
|
|
220
|
+
&__wrapper
|
|
221
|
+
zoom .45
|
|
203
222
|
|