@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.
@@ -36,12 +36,12 @@ let isConsoleStyle = false;
36
36
 
37
37
 
38
38
  if (mode === 'prod') {
39
- import('../src/styles/style-next-website.styl');
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-next-website.styl').then((websiteStylLoaded) => {
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.32.0",
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-next-website.styl -o dist && stylus ./src/styles/style-console.styl -o dist && stylus ./src/styles/style-stories.styl -o dist",
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
- //demos
19
- @import "./website/MerchantDemo.styl"
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
- height 58.2rem
5
- overflow hidden
6
- flex-grow 1
15
+ margin 3rem
7
16
  &__mobilecontainer
8
17
  position relative
9
- height 100%
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
- color $light
15
- font-size 1.7rem
25
+ font-size 1.2rem
16
26
  font-weight 600
17
- margin 1rem 0 2rem 0
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
- height 52.9rem
43
+ position relative
34
44
  &__header
35
- padding 1.6rem
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 1.2rem
54
+ max-height .8rem
46
55
  &__nav
47
- margin-top 2rem
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 3.2rem
63
+ max-width 2.4rem
54
64
  &__back
55
- max-width 1.4rem
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 -1.2rem
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
- height 100%
71
- overflow auto
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
- border .1rem solid $dark20
76
- background-color $dark3
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 #C8C8C7
88
- font-size 1.4rem
89
- margin-bottom 1.6rem
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(1)
114
+ br(.6)
99
115
  trans()
116
+ background-color $light
117
+ font-size 1.3rem
100
118
  cursor pointer
101
- height 6.2rem
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 1.2rem
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(4.6)
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(4.6)
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 #7E7F7F
190
+ color #a1a1a1
170
191
  font-size 1.2rem
192
+ line-height 1.4rem
171
193
  &__price
172
- font-weight 600
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 660px)
206
+ @media screen and (max-width 760px)
184
207
  .merchant
185
208
  &__mobilewrapper
186
- margin-right 0 !important
187
- @media screen and (max-width 370px)
209
+ margin 0 1rem
210
+ @media screen and (max-width 660px)
188
211
  .merchant
189
- &__mobilewrapper
190
- width 100%
191
- &__mobilecontainer
192
- width 100%
193
- &__title
194
- color #454545
195
- &__mobile__section__transaction
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
- &__mobile__section__transaction__info__logo
200
- &__mobile__section__transaction__info__logo img
201
- sq(3.6)
202
-
220
+ &__wrapper
221
+ zoom .45
203
222