@spaziodati/atoka-design-system 2.1.2 → 2.1.5
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/AddableItems/index.js +145 -141
- package/AddableItems/index.js.map +1 -1
- package/Alert/index.js +6 -4
- package/Alert/index.js.map +1 -1
- package/Badge/index.js +4 -4
- package/Badge/index.js.map +1 -1
- package/Bs4V3Wrapper/index.js +6 -4
- package/Bs4V3Wrapper/index.js.map +1 -1
- package/BubbleChart/index.js +1729 -2098
- package/BubbleChart/index.js.map +1 -1
- package/Button/Button.storiesConfig.d.ts +0 -10
- package/Button/index.js +9 -7
- package/Button/index.js.map +1 -1
- package/ButtonDropdown/index.js +131 -133
- package/ButtonDropdown/index.js.map +1 -1
- package/CardsPage/index.js +227 -233
- package/CardsPage/index.js.map +1 -1
- package/CursorPagination/index.js +132 -136
- package/CursorPagination/index.js.map +1 -1
- package/DatePicker/index.js +123 -126
- package/DatePicker/index.js.map +1 -1
- package/DetailPage/index.js +1353 -1429
- package/DetailPage/index.js.map +1 -1
- package/Dropdown/index.js +133 -133
- package/Dropdown/index.js.map +1 -1
- package/EditableString/index.js +2400 -2483
- package/EditableString/index.js.map +1 -1
- package/EllipsableContent/index.js +14 -12
- package/EllipsableContent/index.js.map +1 -1
- package/EmptyState/index.js +6 -4
- package/EmptyState/index.js.map +1 -1
- package/Facet/index.js +149 -144
- package/Facet/index.js.map +1 -1
- package/FacetSection/index.js +15 -11
- package/FacetSection/index.js.map +1 -1
- package/FadeAnimation/index.js +660 -731
- package/FadeAnimation/index.js.map +1 -1
- package/FeedbackButton/index.js +10 -8
- package/FeedbackButton/index.js.map +1 -1
- package/Form/index.js +7 -7
- package/Form/index.js.map +1 -1
- package/Funnel/index.js +2854 -3227
- package/Funnel/index.js.map +1 -1
- package/GridCard/index.js +162 -154
- package/GridCard/index.js.map +1 -1
- package/HighlightableText/index.js +138 -137
- package/HighlightableText/index.js.map +1 -1
- package/Histogram/index.js +1168 -1180
- package/Histogram/index.js.map +1 -1
- package/InlineStringEditor/index.js +183 -203
- package/InlineStringEditor/index.js.map +1 -1
- package/InputGroup/index.js +3 -3
- package/InputGroup/index.js.map +1 -1
- package/Jumbotron/index.js +7 -5
- package/Jumbotron/index.js.map +1 -1
- package/Map/Map.d.ts +3 -3
- package/Map/Types.d.ts +2 -2
- package/Map/index.js +4200 -3823
- package/Map/index.js.map +1 -1
- package/Modal/index.js +12 -10
- package/Modal/index.js.map +1 -1
- package/Navbar/index.js +2426 -2517
- package/Navbar/index.js.map +1 -1
- package/Pagination/index.js +132 -136
- package/Pagination/index.js.map +1 -1
- package/PieChart/index.js +204 -219
- package/PieChart/index.js.map +1 -1
- package/PublicFooter/index.js +14 -10
- package/PublicFooter/index.js.map +1 -1
- package/PublicNavbar/index.js +6 -4
- package/PublicNavbar/index.js.map +1 -1
- package/README.md +5 -2
- package/RecordBit/index.js +15 -11
- package/RecordBit/index.js.map +1 -1
- package/ResultItemCard/index.js +25 -19
- package/ResultItemCard/index.js.map +1 -1
- package/SelectDropdown/index.js +171 -185
- package/SelectDropdown/index.js.map +1 -1
- package/Spinner/index.js +6 -4
- package/Spinner/index.js.map +1 -1
- package/StatisticsItemCard/index.js +170 -160
- package/StatisticsItemCard/index.js.map +1 -1
- package/StatisticsItemNumeric/index.js +6 -4
- package/StatisticsItemNumeric/index.js.map +1 -1
- package/StatisticsLegend/index.js +173 -189
- package/StatisticsLegend/index.js.map +1 -1
- package/StatisticsTooltip/index.js +15 -15
- package/StatisticsTooltip/index.js.map +1 -1
- package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +1 -1
- package/Suggester/index.js +160 -160
- package/Suggester/index.js.map +1 -1
- package/SunBurst/index.js +140 -144
- package/SunBurst/index.js.map +1 -1
- package/TabSwitcher/index.js +144 -144
- package/TabSwitcher/index.js.map +1 -1
- package/Title/index.js +8 -6
- package/Title/index.js.map +1 -1
- package/Toasts/Toast.d.ts +41 -0
- package/Toasts/ToastContainer.d.ts +4 -0
- package/Toasts/ToastHeader.d.ts +7 -0
- package/Toasts/index.d.ts +2 -0
- package/Toasts/index.js +2285 -0
- package/Toasts/index.js.map +1 -0
- package/ToggleButtonGroup/index.js +128 -130
- package/ToggleButtonGroup/index.js.map +1 -1
- package/Tooltip/index.js +3 -3
- package/Tooltip/index.js.map +1 -1
- package/Utils/index.js +1049 -1426
- package/Utils/index.js.map +1 -1
- package/{atoka-design-system-2.1.2.min.css → atoka-design-system-2.1.5.min.css} +1 -1
- package/index.d.ts +1 -0
- package/index.js +13126 -11649
- package/index.js.map +1 -1
- package/package.json +48 -40
- package/styles/atoka-bs.less +1 -1
- package/styles/variant-mixins.less +7 -7
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spaziodati/atoka-design-system",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"storybook": "start-storybook -p 6006
|
|
7
|
-
"deploy-storybook": "npm run imprint-version && build-storybook -
|
|
6
|
+
"storybook": "start-storybook -p 6006 --quiet",
|
|
7
|
+
"deploy-storybook": "npm run imprint-version && build-storybook -c .storybook -o .out --quiet && s3-deploy '.out/**' --cwd '.out/' --region eu-west-1 --bucket design-system.atoka.io",
|
|
8
8
|
"imprint-version": "node ./scripts/imprint_version.js",
|
|
9
9
|
"ts-compile": "tsc",
|
|
10
10
|
"build": "rm -rf dist; npm run ts-declaration && npm run ts-bundle && cp -rf ./styles ./dist/styles && cp ./package.json ./dist/package.json",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"ts-declaration": "tsc --emitDeclarationOnly -p tsconfig-prod.json",
|
|
13
13
|
"ts-compile-prod": "tsc -p tsconfig-prod.json",
|
|
14
14
|
"ts-lint": "eslint './src' --ext ts --ext tsx --ext js --ext jsx --max-warnings 0",
|
|
15
|
-
"ts-bundle": "
|
|
15
|
+
"ts-bundle": "npx webpack --config webpack.conf.js",
|
|
16
16
|
"less-lint": "./scripts/less_lint.sh",
|
|
17
17
|
"prettier-write": "prettier --write .",
|
|
18
18
|
"prettier": "prettier --check .",
|
|
@@ -46,20 +46,20 @@
|
|
|
46
46
|
"@nivo/funnel": "0.72.0",
|
|
47
47
|
"@nivo/pie": "0.72.0",
|
|
48
48
|
"@nivo/sunburst": "0.72.0",
|
|
49
|
+
"leaflet": "1.7.1",
|
|
50
|
+
"leaflet-image": "0.4.0",
|
|
49
51
|
"react": "^16.14.0",
|
|
50
52
|
"react-bootstrap": "^1.5.2",
|
|
51
53
|
"react-datepicker": "4.6.0",
|
|
52
54
|
"react-dom": "^16.14.0",
|
|
53
|
-
"react-select": "4.3.0"
|
|
54
|
-
"leaflet": "1.7.1",
|
|
55
|
-
"leaflet-image": "0.4.0"
|
|
55
|
+
"react-select": "4.3.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@babel/core": "7.
|
|
59
|
-
"@babel/plugin-transform-runtime": "7.
|
|
60
|
-
"@babel/plugin-transform-typescript": "7.
|
|
61
|
-
"@babel/preset-env": "7.
|
|
62
|
-
"@babel/runtime": "7.
|
|
58
|
+
"@babel/core": "7.18.2",
|
|
59
|
+
"@babel/plugin-transform-runtime": "7.18.2",
|
|
60
|
+
"@babel/plugin-transform-typescript": "7.18.4",
|
|
61
|
+
"@babel/preset-env": "7.18.2",
|
|
62
|
+
"@babel/runtime": "7.18.3",
|
|
63
63
|
"@fortawesome/fontawesome-pro": "5.13.0",
|
|
64
64
|
"@fortawesome/fontawesome-svg-core": "1.2.30",
|
|
65
65
|
"@fortawesome/free-brands-svg-icons": "5.14.0",
|
|
@@ -75,13 +75,14 @@
|
|
|
75
75
|
"@nivo/funnel": "0.72.0",
|
|
76
76
|
"@nivo/pie": "0.72.0",
|
|
77
77
|
"@nivo/sunburst": "0.72.0",
|
|
78
|
-
"@
|
|
79
|
-
"@storybook/addon-
|
|
80
|
-
"@storybook/addon-
|
|
81
|
-
"@storybook/addon-
|
|
82
|
-
"@storybook/
|
|
83
|
-
"@storybook/
|
|
84
|
-
"@storybook/
|
|
78
|
+
"@storybook/addon-actions": "6.5.8",
|
|
79
|
+
"@storybook/addon-controls": "6.5.8",
|
|
80
|
+
"@storybook/addon-docs": "6.5.8",
|
|
81
|
+
"@storybook/addon-links": "6.5.8",
|
|
82
|
+
"@storybook/addons": "6.5.8",
|
|
83
|
+
"@storybook/builder-webpack5": "^6.5.8",
|
|
84
|
+
"@storybook/manager-webpack5": "^6.5.8",
|
|
85
|
+
"@storybook/react": "6.5.8",
|
|
85
86
|
"@types/classnames": "2.2.10",
|
|
86
87
|
"@types/d3-color": "2.0.1",
|
|
87
88
|
"@types/d3-scale": "^3.2.2",
|
|
@@ -96,38 +97,41 @@
|
|
|
96
97
|
"@types/react": "16.9.42",
|
|
97
98
|
"@types/react-datepicker": "4.3.4",
|
|
98
99
|
"@types/react-dom": "16.9.9",
|
|
100
|
+
"@types/react-leaflet-v2": "npm:@types/react-leaflet@2.8.2",
|
|
99
101
|
"@types/react-motion": "0.0.29",
|
|
100
102
|
"@types/react-select": "4.0.17",
|
|
101
103
|
"@types/storybook__addon-info": "5.2.4",
|
|
102
|
-
"@typescript-eslint/eslint-plugin": "
|
|
103
|
-
"@typescript-eslint/eslint-plugin-tslint": "
|
|
104
|
-
"@typescript-eslint/parser": "
|
|
104
|
+
"@typescript-eslint/eslint-plugin": "5.27.1",
|
|
105
|
+
"@typescript-eslint/eslint-plugin-tslint": "5.27.1",
|
|
106
|
+
"@typescript-eslint/parser": "5.27.1",
|
|
105
107
|
"autobind-decorator": "2.4.0",
|
|
106
|
-
"
|
|
107
|
-
"babel-loader": "8.1.0",
|
|
108
|
+
"babel-loader": "8.2.5",
|
|
108
109
|
"bootstrap-less-port": "2.3.1",
|
|
110
|
+
"cheerio": "1.0.0-rc.3",
|
|
109
111
|
"classnames": "2.2.6",
|
|
110
112
|
"css-loader": "3.6.0",
|
|
111
113
|
"css-minimizer-webpack-plugin": "3.3.1",
|
|
112
114
|
"csso-cli": "3.0.0",
|
|
115
|
+
"dotenv-webpack": "7.1.0",
|
|
113
116
|
"enzyme": "3.11.0",
|
|
114
117
|
"enzyme-adapter-react-16": "1.15.2",
|
|
115
118
|
"enzyme-to-json": "3.5.0",
|
|
116
|
-
"eslint": "
|
|
119
|
+
"eslint": "8.17.0",
|
|
117
120
|
"eslint-config-prettier": "8.3.0",
|
|
118
|
-
"eslint-plugin-import": "2.
|
|
119
|
-
"eslint-plugin-jsdoc": "
|
|
120
|
-
"eslint-plugin-prefer-arrow": "1.2.
|
|
121
|
-
"eslint-plugin-react": "7.
|
|
122
|
-
"eslint-plugin-react-hooks": "4.
|
|
121
|
+
"eslint-plugin-import": "2.26.0",
|
|
122
|
+
"eslint-plugin-jsdoc": "39.3.2",
|
|
123
|
+
"eslint-plugin-prefer-arrow": "1.2.3",
|
|
124
|
+
"eslint-plugin-react": "7.30.0",
|
|
125
|
+
"eslint-plugin-react-hooks": "4.5.0",
|
|
123
126
|
"file-loader": "6.2.0",
|
|
124
|
-
"jest": "
|
|
125
|
-
"jest-circus": "
|
|
126
|
-
"jest-
|
|
127
|
-
"jest-
|
|
127
|
+
"jest": "28.1.1",
|
|
128
|
+
"jest-circus": "28.1.1",
|
|
129
|
+
"jest-environment-jsdom": "28.1.1",
|
|
130
|
+
"jest-image-snapshot": "5.1.0",
|
|
131
|
+
"jest-puppeteer": "6.1.0",
|
|
128
132
|
"leaflet": "1.7.1",
|
|
129
133
|
"leaflet-image": "0.4.0",
|
|
130
|
-
"less": "
|
|
134
|
+
"less": "3.13.1",
|
|
131
135
|
"less-loader": "6.2.0",
|
|
132
136
|
"mini-css-extract-plugin": "2.4.5",
|
|
133
137
|
"pre-commit": "1.2.2",
|
|
@@ -137,21 +141,25 @@
|
|
|
137
141
|
"react-bootstrap": "1.5.2",
|
|
138
142
|
"react-datepicker": "4.6.0",
|
|
139
143
|
"react-dom": "16.14.0",
|
|
140
|
-
"react-leaflet-
|
|
144
|
+
"react-leaflet-v2": "npm:react-leaflet@2.8.0",
|
|
141
145
|
"react-select": "4.3.0",
|
|
146
|
+
"react-transition-group": "4.4.2",
|
|
142
147
|
"s3-deploy": "1.4.0",
|
|
143
148
|
"start-server-and-test": "1.11.2",
|
|
144
149
|
"story-description-loader": "1.0.0",
|
|
145
150
|
"style-loader": "1.2.1",
|
|
146
151
|
"ts-dedent": "2.2.0",
|
|
147
|
-
"ts-jest": "
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"webpack
|
|
152
|
+
"ts-jest": "28.0.4",
|
|
153
|
+
"ts-loader": "9.3.0",
|
|
154
|
+
"typescript": "4.7.3",
|
|
155
|
+
"webpack": "5.65.0",
|
|
151
156
|
"webpack-bundle-analyzer": "4.5.0",
|
|
152
157
|
"webpack-cli": "4.6.0"
|
|
153
158
|
},
|
|
154
159
|
"optionalDependencies": {
|
|
155
160
|
"fsevents": "^2.3.2"
|
|
161
|
+
},
|
|
162
|
+
"resolutions": {
|
|
163
|
+
"@storybook/react/webpack": "^5"
|
|
156
164
|
}
|
|
157
165
|
}
|
package/styles/atoka-bs.less
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.variant-secondary(@color) {
|
|
19
|
+
.button-variant-secondary(@color) {
|
|
20
20
|
// This is necessary to override some style present in atoka revenge.
|
|
21
21
|
&,
|
|
22
22
|
&:not(.disabled):active {
|
|
@@ -38,6 +38,12 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
.variant-secondary(@color) {
|
|
42
|
+
border: 1px solid @color;
|
|
43
|
+
color: @color;
|
|
44
|
+
background-color: mix(@color, white, 8%);
|
|
45
|
+
}
|
|
46
|
+
|
|
41
47
|
.variant-primary-white {
|
|
42
48
|
background-color: @white;
|
|
43
49
|
border-color: @white;
|
|
@@ -54,12 +60,6 @@
|
|
|
54
60
|
}
|
|
55
61
|
}
|
|
56
62
|
|
|
57
|
-
.secondary-variant(@color) {
|
|
58
|
-
border: 1px solid @color;
|
|
59
|
-
color: @color;
|
|
60
|
-
background-color: mix(@color, transparent, 8%);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
63
|
.primary-badge(@color) {
|
|
64
64
|
border: 1px solid @color;
|
|
65
65
|
color: @white;
|