@woosmap/ui 4.223.1 → 4.224.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/.eslintrc +0 -10
- package/.storybook/main.js +0 -7
- package/package.json +113 -109
- package/src/components/Card/SimpleCard.styl +2 -2
- package/src/components/Map/marker.styl +2 -2
- package/src/components/UseCase/UseCase.styl +8 -8
- package/src/styles/commons/flags.styl +1 -1
- package/src/styles/console/button.styl +3 -3
package/.eslintrc
CHANGED
package/.storybook/main.js
CHANGED
|
@@ -92,13 +92,6 @@ module.exports = {
|
|
|
92
92
|
},
|
|
93
93
|
);
|
|
94
94
|
|
|
95
|
-
// Ajout de l'alias '@' pour src
|
|
96
|
-
config.resolve = config.resolve || {};
|
|
97
|
-
config.resolve.alias = {
|
|
98
|
-
...(config.resolve.alias || {}),
|
|
99
|
-
'@': path.resolve(__dirname, '../src'),
|
|
100
|
-
};
|
|
101
|
-
|
|
102
95
|
return config;
|
|
103
96
|
},
|
|
104
97
|
|
package/package.json
CHANGED
|
@@ -1,111 +1,115 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
2
|
+
"name": "@woosmap/ui",
|
|
3
|
+
"version": "4.224.0",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/WebGeoServices/ui.git"
|
|
7
|
+
},
|
|
8
|
+
"main": "src/index.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./src/index.js",
|
|
11
|
+
"./src/website": "./src/website.js",
|
|
12
|
+
"./src/styles/style-website.styl": "./src/styles/style-website.styl",
|
|
13
|
+
"./src/styles/style-console.styl": "./src/styles/style-console.styl"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@mapbox/polyline": "^1.2.1",
|
|
17
|
+
"axios": "0.28.1",
|
|
18
|
+
"classnames": "^2.5.1",
|
|
19
|
+
"framer-motion": "^11.3.28",
|
|
20
|
+
"google-map-react": "^2.2.1",
|
|
21
|
+
"i18next": "^23.14.0",
|
|
22
|
+
"moment": "^2.30.1",
|
|
23
|
+
"numeral": "^2.0.6",
|
|
24
|
+
"perfect-scrollbar": "^1.5.5",
|
|
25
|
+
"prop-types": "^15.8.1",
|
|
26
|
+
"react": "^18.3.1",
|
|
27
|
+
"react-datetime": "^3.2.0",
|
|
28
|
+
"react-dom": "^18.3.1",
|
|
29
|
+
"react-laag": "^2.0.5",
|
|
30
|
+
"react-select": "^5.10.0",
|
|
31
|
+
"react-slider": "^2.0.6",
|
|
32
|
+
"react-syntax-highlighter": "^15.5.0",
|
|
33
|
+
"resize-observer-polyfill": "^1.5.1",
|
|
34
|
+
"zxcvbn": "^4.4.2"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"start": "yarn stylus-dev && yarn storybook:dev",
|
|
38
|
+
"stylus": "stylus ./src/styles/style-console.styl -o dist/styles/dev",
|
|
39
|
+
"stylus-dev": "stylus ./src/styles/style-console.styl -o dist/styles/dev && stylus ./src/styles/style-stories.styl -o dist/styles/dev",
|
|
40
|
+
"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",
|
|
41
|
+
"build-css": "stylus ./src/styles/style-console.styl -o dist && stylus ./src/styles/style-stories.styl -o dist",
|
|
42
|
+
"test": "react-scripts test",
|
|
43
|
+
"test:generate-output": "react-scripts test --json --outputFile=./.storybook/jest-test-results.json --silent",
|
|
44
|
+
"prestorybook:dev": "clear && echo \"DOING FIRST TEST RUN\" && CI=true npm run test:generate-output",
|
|
45
|
+
"storybook:dev": "clear && concurrently -k \"npm run storybook\" \"npm run test:generate-output\"",
|
|
46
|
+
"storybook": "storybook dev -p 9009 public -h localhost",
|
|
47
|
+
"build-storybook": "storybook build -s public",
|
|
48
|
+
"icons": "svgo -f ./src/icons --config ./svgo-config.js",
|
|
49
|
+
"deploy-storybook": "storybook-to-ghpages",
|
|
50
|
+
"publish-npm": "yarn version --minor && npm publish --access=public",
|
|
51
|
+
"extract": "babel -f .babelrc 'src/components/**/*.{js,jsx,ts,tsx}'",
|
|
52
|
+
"coverage": "react-scripts test --coverage --silent --ci --coverageReporters=text --coverageReporters=text-summary --watchAll=false --collectCoverageFrom=!src/**/*.stories.js --collectCoverageFrom=!src/**/*.json ",
|
|
53
|
+
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,md}\"",
|
|
54
|
+
"format:check": "prettier --check \"src/**/*.{js,jsx,ts,tsx,json,css,md}\"",
|
|
55
|
+
"lint": "eslint src --ext .js,.jsx --fix",
|
|
56
|
+
"lint:check": "eslint src --ext .js,.jsx"
|
|
57
|
+
},
|
|
58
|
+
"eslintConfig": {
|
|
59
|
+
"extends": [
|
|
60
|
+
"react-app",
|
|
61
|
+
"react-app/jest"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"browserslist": {
|
|
65
|
+
"production": [
|
|
66
|
+
">0.2%",
|
|
67
|
+
"not dead",
|
|
68
|
+
"not op_mini all"
|
|
69
|
+
],
|
|
70
|
+
"development": [
|
|
71
|
+
"last 1 chrome version",
|
|
72
|
+
"last 1 firefox version",
|
|
73
|
+
"last 1 safari version"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@babel/cli": "^7.24.8",
|
|
78
|
+
"@babel/core": "^7.25.2",
|
|
79
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
80
|
+
"@babel/preset-env": "^7.25.4",
|
|
81
|
+
"@babel/preset-react": "^7.24.7",
|
|
82
|
+
"@emotion/is-prop-valid": "^1.3.0",
|
|
83
|
+
"@storybook/addon-actions": "^8.3.1",
|
|
84
|
+
"@storybook/addon-essentials": "^8.3.1",
|
|
85
|
+
"@storybook/addon-jest": "^8.3.1",
|
|
86
|
+
"@storybook/addon-links": "^8.3.1",
|
|
87
|
+
"@storybook/addon-styling-webpack": "^1.0.0",
|
|
88
|
+
"@storybook/node-logger": "^8.3.1",
|
|
89
|
+
"@storybook/preset-create-react-app": "^8.3.1",
|
|
90
|
+
"@storybook/react": "^8.3.1",
|
|
91
|
+
"@storybook/react-webpack5": "^8.3.1",
|
|
92
|
+
"@storybook/storybook-deployer": "^2.8.16",
|
|
93
|
+
"@testing-library/jest-dom": "^5.17.0",
|
|
94
|
+
"@testing-library/react": "^13.4.0",
|
|
95
|
+
"@testing-library/user-event": "^14.5.2",
|
|
96
|
+
"babel-plugin-i18next-extract": "^0.10.0",
|
|
97
|
+
"babel-plugin-transform-dynamic-import": "^2.1.0",
|
|
98
|
+
"concurrently": "^8.2.2",
|
|
99
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
100
|
+
"eslint-config-prettier": "^9.1.0",
|
|
101
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
102
|
+
"eslint-plugin-sonarjs": "^1.0.4",
|
|
103
|
+
"jest-google-maps-mock": "^1.0.7",
|
|
104
|
+
"prettier": "^3.3.3",
|
|
105
|
+
"react-scripts": "5.0.1",
|
|
106
|
+
"rimraf": "^6.0.1",
|
|
107
|
+
"storybook": "^8.3.1",
|
|
108
|
+
"stylus": "^0.63.0",
|
|
109
|
+
"stylus-loader": "^8.1.0",
|
|
110
|
+
"svgo": "^3.3.2"
|
|
111
|
+
},
|
|
112
|
+
"resolutions": {
|
|
113
|
+
"nwsapi": "2.2.13"
|
|
114
|
+
}
|
|
111
115
|
}
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
box-shadow inset 0 0 .1rem $dark60
|
|
31
31
|
.row-inactive &
|
|
32
32
|
&.disabled
|
|
33
|
-
background #fff url('
|
|
33
|
+
background #fff url('../../images/texture.png')
|
|
34
34
|
color $secondary60
|
|
35
35
|
&.active
|
|
36
|
-
background $primary6 url('
|
|
36
|
+
background $primary6 url('../../images/texture.png')
|
|
37
37
|
&__title
|
|
38
38
|
ellipsis()
|
|
39
39
|
font-weight 600
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
height 4.6rem
|
|
5
5
|
left calc(50% - 1.5rem)
|
|
6
6
|
top calc(50% - 4.1rem)
|
|
7
|
-
background url('
|
|
7
|
+
background url('../../images/marker.png') no-repeat
|
|
8
8
|
background-size 100%
|
|
9
9
|
text-align center
|
|
10
10
|
&--alt
|
|
11
|
-
background url('
|
|
11
|
+
background url('../../images/marker-alt.png') no-repeat
|
|
12
12
|
background-size 100%
|
|
@@ -37,28 +37,28 @@
|
|
|
37
37
|
&__story
|
|
38
38
|
&--storeLocator
|
|
39
39
|
.use-case__image
|
|
40
|
-
background-image url('
|
|
40
|
+
background-image url('../../images/usecases/store-locator.png')
|
|
41
41
|
&--productLocator
|
|
42
42
|
.use-case__image
|
|
43
|
-
background-image url('
|
|
43
|
+
background-image url('../../images/usecases/product-locator.png')
|
|
44
44
|
&--addressAutocomplete
|
|
45
45
|
.use-case__image
|
|
46
|
-
background-image url('
|
|
46
|
+
background-image url('../../images/usecases/address-autocomplete.png')
|
|
47
47
|
&--ecommerceCheckout
|
|
48
48
|
.use-case__image
|
|
49
|
-
background-image url('
|
|
49
|
+
background-image url('../../images/usecases/ecommerce-checkout.png')
|
|
50
50
|
&--fleetTracking
|
|
51
51
|
.use-case__image
|
|
52
|
-
background-image url('
|
|
52
|
+
background-image url('../../images/usecases/fleet-tracking.png')
|
|
53
53
|
&--geocoding
|
|
54
54
|
.use-case__image
|
|
55
|
-
background-image url('
|
|
55
|
+
background-image url('../../images/usecases/geocoding.png')
|
|
56
56
|
&--indoor
|
|
57
57
|
.use-case__image
|
|
58
|
-
background-image url('
|
|
58
|
+
background-image url('../../images/usecases/indoor.png')
|
|
59
59
|
&--products
|
|
60
60
|
.use-case__image
|
|
61
|
-
background-image url('
|
|
61
|
+
background-image url('../../images/usecases/products.png')
|
|
62
62
|
&__header
|
|
63
63
|
font-size $title
|
|
64
64
|
font-weight 600
|
|
@@ -511,7 +511,7 @@
|
|
|
511
511
|
content unset
|
|
512
512
|
&.active
|
|
513
513
|
color $secondary
|
|
514
|
-
background-image url('
|
|
514
|
+
background-image url('../../images/texture.png')
|
|
515
515
|
&:after
|
|
516
516
|
content ''
|
|
517
517
|
display block
|
|
@@ -554,7 +554,7 @@
|
|
|
554
554
|
&:after
|
|
555
555
|
background $error
|
|
556
556
|
focus()
|
|
557
|
-
|
|
557
|
+
|
|
558
558
|
&--pills
|
|
559
559
|
br()
|
|
560
560
|
flexBtn()
|
|
@@ -582,7 +582,7 @@
|
|
|
582
582
|
color $secondary-medium40
|
|
583
583
|
&.active
|
|
584
584
|
color $secondary
|
|
585
|
-
background-image url('
|
|
585
|
+
background-image url('../../images/texture.png')
|
|
586
586
|
&--action
|
|
587
587
|
br(2)
|
|
588
588
|
inputFont()
|