@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
@@ -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.36.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",
@@ -3,6 +3,7 @@
3
3
  fullwh()
4
4
  margin auto
5
5
  color $secondary
6
+ line-height 2.2rem
6
7
  .title
7
8
  font-size $title3
8
9
  pre
@@ -22,6 +23,7 @@
22
23
  &__showcase
23
24
  &__data
24
25
  display flex
26
+ background-color $light
25
27
  &__filters
26
28
  border-right .1rem solid rgba($secondary, .1)
27
29
  padding $demoPadding + .4 $demoPadding
@@ -46,6 +48,7 @@
46
48
  height 100%
47
49
  background-color $inputDemoBgColor
48
50
  &__results
51
+ inputFont()
49
52
  width $demofilterWidth
50
53
  display flex
51
54
  flex-direction column
@@ -64,28 +67,17 @@
64
67
  font-weight 400
65
68
  color $textColor
66
69
  padding $demoPadding
67
-
68
70
  background-color $light
69
71
  overflow-y auto
70
72
  &__code
71
- font()
73
+ inputFont()
72
74
  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
75
  &__input-container
86
76
  mbib(.6)
87
77
  &__label
88
- font-weight 500
78
+ inputFont()
79
+ font-size $inputFontSizeDemo
80
+ font-weight 600
89
81
  margin-bottom .6rem
90
82
 
91
83
  input
@@ -183,6 +175,7 @@
183
175
  &-container
184
176
  color $inputDemoBgColor
185
177
  .btn
178
+ padding 0 1.1rem
186
179
  &:first-child
187
180
  border-radius 2rem 0 0 2rem
188
181
  &:last-child
@@ -196,7 +189,7 @@
196
189
  &.transportation
197
190
  mbi(.6)
198
191
  .btn
199
- br(.3)
192
+ border-radius .3rem !important
200
193
  border 0
201
194
  height 2.2rem
202
195
  padding .4rem
@@ -220,29 +213,13 @@
220
213
  padding $demoPadding
221
214
  overflow auto
222
215
  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
216
  &--address
240
217
  &__formcontainer
241
- mbib(.9)
242
218
  .input
243
219
  &__label
244
- margin-bottom .2rem
245
-
220
+ margin-bottom .4rem
221
+ &__line
222
+ margin-bottom 1rem
246
223
  @media screen and (max-width 769px)
247
224
  .demo__showcase
248
225
  max-height 100%
@@ -559,21 +559,13 @@
559
559
  color $secondary
560
560
  background-image url('../../images/texture.png')
561
561
  &--action
562
- br()
562
+ br(2)
563
+ inputFont()
563
564
  trans()
564
- flexBtn()
565
- height auto
566
- font-size 1.1rem
567
- letter-spacing 0.1rem
568
- line-height 1
569
- margin-left auto
570
- background-color $light
571
- border 0.1rem solid $secondary-light
572
565
  padding 0 1rem
573
- height 2.4rem
574
- color $secondary
575
- transition 0.3s all
576
- text-transform uppercase
566
+ font-size $inputFontSizeDemo !important
567
+ border .1rem solid $activeColor
568
+ color darken($activeColor, 20%)
577
569
  &:hover
578
570
  &.copied
579
571
  background-color $success
@@ -1,6 +1,16 @@
1
1
  // Texts & Components
2
2
  $textColor = $secondary
3
3
 
4
+
5
+ $activeColor = #7f98b3
6
+ $activeColorDark = #4c657e
7
+
8
+ //new version of demos
9
+ $inputDemoBgColor = #f6f7f8
10
+ $inputDemoBorderColor = #bcc4d7
11
+ $inputDemoPlaceholderColor = #818ca5
12
+
13
+
4
14
  // Main colors
5
15
 
6
16
  $primary = rgba(85, 134, 255, 1) // 5586F8
@@ -272,56 +282,43 @@ $light1 = rgba(255, 255, 255, .01)
272
282
 
273
283
  // Products
274
284
 
275
- $localitiesDark = rgba(0, 152, 220, 1) // #00b0ff
276
- $localities = rgba(0, 176, 255, 1) // #00B0FF
277
- $localities10 = rgba(0, 176, 255, .1)
285
+ $search = #388aff
286
+ $search10 = rgba($search, .1)
287
+ $searchDark = #0D63DD
278
288
 
279
- $geolocationDark = rgba(1, 175, 73, 1) // #01af49
280
- $geolocation = rgba(0, 200, 83, 1) // #00c853
281
- $geolocation10 = rgba(0, 200, 83, .1)
282
-
283
- $distanceDark = rgba(255, 115, 0, 1) // #FF7300
284
- $distance = rgba(255, 145, 0, 1) // #FF9100
285
- $distance10 = rgba(255, 145, 0, .1)
286
-
287
- $storesDark = rgba(37, 109, 212, 1) // #256dd4
288
- $stores = rgba(56, 138, 255, 1) // #388aff
289
- $stores10 = rgba(56, 138, 255, .1)
290
-
291
- $addressDark = rgba(59, 179, 195, 1) // #38b3c3
292
- $address = rgba(77, 208, 255, 1) // #4dd0ff
293
- $address10 = rgba(77, 208, 255, .1)
289
+ $localities = #009DFF
290
+ $localities10 = rgba($localities, .1)
291
+ $localitiesDark = #0085D8
294
292
 
295
- $mapDark = rgba(134, 106, 96, 1) // #866a60
296
- $map = rgba(161, 136, 127, 1) // #A1887F
297
- $map10 = rgba(161, 136, 127, .1)
293
+ $address = #4AC6F2
294
+ $address10 = rgba($address, .1)
295
+ $addressDark = #0D9ED1
298
296
 
299
- $merchantDark = rgba(81, 107, 119, 1) // #516b77
300
- $merchant = rgba(120, 144, 156, 1) // #78909C
301
- $merchant10 = rgba(120, 144, 156, .1)
297
+ $multiSearch = #688FCE
298
+ $multiSearch10 = rgba($multiSearch, .1)
299
+ $multiSearchDark = #3A68B2
302
300
 
303
- $trafficDark = rgba(2165, 46, 111, 1)// #D82E6F
304
- $traffic = rgba(255, 124, 129, 1) // #ff7c81
305
- $traffic10 = rgba(255, 124, 129, .1)
301
+ $geolocation = #506BDE
302
+ $geolocation10 = rgba($geolocation, .1)
303
+ $geolocationDark = #1F40CC
306
304
 
307
305
 
308
- // Products
306
+ $merchant = #7F8A98
307
+ $merchant10 = rgba($merchant, .1)
308
+ $merchantDark = #4F5D6E
309
309
 
310
- $stores = #388aff
311
- $stores10 = rgba($stores, .1)
312
- $storesDark = #0D63DD
310
+ $storeLocator = #82A1A7
311
+ $storeLocator10 = rgba($storeLocator, .1)
312
+ $storeLocatorDark = #546D72
313
313
 
314
- $localities = #009DFF
315
- $localities10 = rgba($localities, .1)
316
- $localitiesDark = #0085D8
314
+ $geofencing = #939AB1
315
+ $geofencing10 = rgba($geofencing, .1)
316
+ $geofencingDark = #59617C
317
317
 
318
- $geolocation = #506BDE
319
- $geolocation10 = rgba($geolocation, .1)
320
- $geolocationDark = #1F40CC
318
+ $connectors = #A193BC
319
+ $connectors10 = rgba($connectors, .1)
320
+ $connectorsDark = #6C5E88
321
321
 
322
- $address = #4AC6F2
323
- $address10 = rgba($address, .1)
324
- $addressDark = #0D9ED1
325
322
 
326
323
  $distance = #FF8A65
327
324
  $distance10 = rgba($distance, .1)
@@ -331,12 +328,16 @@ $traffic = #FF6565
331
328
  $traffic10 = rgba($traffic, .1)
332
329
  $trafficDark = #E04B4B
333
330
 
331
+
334
332
  $map = #A1887F
335
333
  $map10 = rgba($map, .1)
336
334
  $mapDark = #906455
337
335
 
338
- $merchant = #08A278
339
- $merchant10 = rgba($merchant, .1)
340
- $merchantDark = #008863
336
+ $mapping = #B9715A
337
+ $mapping10 = rgba($mapping, .1)
338
+ $mappingDark = #96503A
341
339
 
342
340
 
341
+ $showcases = #68668E
342
+ $showcases10 = rgba($showcases, .1)
343
+ $showcasesDark = #444177
@@ -1 +1 @@
1
- @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
1
+ @import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;1,100;1,300;1,400;1,700family=Roboto+Mono:wght@400;600&display=swap');
@@ -25,6 +25,9 @@ br($a = $borderRadius)
25
25
  }
26
26
  border-radius $a
27
27
 
28
+ inputFont()
29
+ font-family $fontFamily2
30
+
28
31
  // Border and shadow style of dropdowns
29
32
  box()
30
33
  br()
@@ -39,9 +39,59 @@
39
39
  .tab__content
40
40
  padding $buttonPadding
41
41
  margin-top $buttonPadding
42
+
43
+
44
+ .demo__code
45
+ $tabPadding = 2rem
46
+ .tab
47
+ height 100%
48
+ pre
49
+ code
50
+ margin 0 !important
51
+ padding 0 !important
52
+ background-color transparent !important
53
+ width 100%
54
+ &__header
55
+ padding 0 $tabPadding
56
+ flex-shrink 0
57
+ display flex
58
+ align-items center
59
+ justify-content space-between
60
+ &__buttons
61
+ display flex
62
+ align-items center
63
+ mbi(3)
64
+ fullw()
65
+ position relative
66
+ li
67
+ min-width 0
68
+ .btn--tab
69
+ height auto
70
+ font-size $fontSizeDemo - .1
71
+ &:after
72
+ top 2.7rem
73
+ &__content
74
+ line-height 1.2
75
+ margin 0
76
+ padding 1.6rem
77
+ overflow auto
78
+ max-height 40rem
79
+ &.active
80
+ display flex
81
+ height 100%
42
82
  @media screen and (max-width 720px)
43
83
  .tab
44
84
  &__header
45
85
  &__buttons
46
86
  mbi(0)
47
-
87
+ @media screen and (max-width 670px)
88
+ .demo__code
89
+ .tab
90
+ &__header
91
+ padding 0 1.2rem
92
+ &__buttons
93
+ mbi(1)
94
+ .btn
95
+ font-size 70%
96
+ &__content
97
+ padding $tabPadding - .5
@@ -1,4 +1,6 @@
1
1
  $fontFamily = "Lato", arial, sans-serif
2
+ $fontFamily2 = 'Roboto Mono', monospace
3
+
2
4
  $fontSize = 1.4rem
3
5
  $fontSizeSmall = $fontSize - .2
4
6
  $fontSizeMini = $fontSize - .4
@@ -14,6 +16,16 @@ $title6 = $fontSize
14
16
 
15
17
  $borderRadius = .6rem
16
18
 
19
+
20
+ //new version of demos
21
+ $demofilterWidth = 27.4rem
22
+ $fontSizeDemo = 1.3rem
23
+ $demoPadding = 1.6rem
24
+ $demoBr = .3rem
25
+ $inputFontSizeDemo = 1.1rem
26
+ $inputDemoHeight = 3rem
27
+ $footerDemoHeight = 4rem
28
+
17
29
  // Buttons & Inputs
18
30
 
19
31
  $padding = 1.2rem
@@ -9,17 +9,14 @@
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
-
19
- //demos
20
- @import "./console/MerchantDemo.styl"
21
- @import "./console/skeletondemo.styl"
22
13
 
23
14
 
24
15
  // Style of all components
25
- @import "../components/**/*.styl"
16
+ @import "../components/**/*.styl"
17
+
18
+ // Console override
19
+ @import "./console/button.styl"
20
+ @import "./console/input.styl"
21
+ @import "./console/select.styl"
22
+ @import "./console/tab.styl"
@@ -10,16 +10,15 @@
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
+
13
18
  @import "./website/button.styl"
14
19
  @import "./website/input.styl"
15
20
  @import "./website/select.styl"
16
21
  @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"
22
+ @import "./website/dropdown.styl"
23
+ @import "./website/popover.styl"
24
+ @import "./website/card.styl"