@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.
Files changed (116) hide show
  1. package/AddableItems/index.js +145 -141
  2. package/AddableItems/index.js.map +1 -1
  3. package/Alert/index.js +6 -4
  4. package/Alert/index.js.map +1 -1
  5. package/Badge/index.js +4 -4
  6. package/Badge/index.js.map +1 -1
  7. package/Bs4V3Wrapper/index.js +6 -4
  8. package/Bs4V3Wrapper/index.js.map +1 -1
  9. package/BubbleChart/index.js +1729 -2098
  10. package/BubbleChart/index.js.map +1 -1
  11. package/Button/Button.storiesConfig.d.ts +0 -10
  12. package/Button/index.js +9 -7
  13. package/Button/index.js.map +1 -1
  14. package/ButtonDropdown/index.js +131 -133
  15. package/ButtonDropdown/index.js.map +1 -1
  16. package/CardsPage/index.js +227 -233
  17. package/CardsPage/index.js.map +1 -1
  18. package/CursorPagination/index.js +132 -136
  19. package/CursorPagination/index.js.map +1 -1
  20. package/DatePicker/index.js +123 -126
  21. package/DatePicker/index.js.map +1 -1
  22. package/DetailPage/index.js +1353 -1429
  23. package/DetailPage/index.js.map +1 -1
  24. package/Dropdown/index.js +133 -133
  25. package/Dropdown/index.js.map +1 -1
  26. package/EditableString/index.js +2400 -2483
  27. package/EditableString/index.js.map +1 -1
  28. package/EllipsableContent/index.js +14 -12
  29. package/EllipsableContent/index.js.map +1 -1
  30. package/EmptyState/index.js +6 -4
  31. package/EmptyState/index.js.map +1 -1
  32. package/Facet/index.js +149 -144
  33. package/Facet/index.js.map +1 -1
  34. package/FacetSection/index.js +15 -11
  35. package/FacetSection/index.js.map +1 -1
  36. package/FadeAnimation/index.js +660 -731
  37. package/FadeAnimation/index.js.map +1 -1
  38. package/FeedbackButton/index.js +10 -8
  39. package/FeedbackButton/index.js.map +1 -1
  40. package/Form/index.js +7 -7
  41. package/Form/index.js.map +1 -1
  42. package/Funnel/index.js +2854 -3227
  43. package/Funnel/index.js.map +1 -1
  44. package/GridCard/index.js +162 -154
  45. package/GridCard/index.js.map +1 -1
  46. package/HighlightableText/index.js +138 -137
  47. package/HighlightableText/index.js.map +1 -1
  48. package/Histogram/index.js +1168 -1180
  49. package/Histogram/index.js.map +1 -1
  50. package/InlineStringEditor/index.js +183 -203
  51. package/InlineStringEditor/index.js.map +1 -1
  52. package/InputGroup/index.js +3 -3
  53. package/InputGroup/index.js.map +1 -1
  54. package/Jumbotron/index.js +7 -5
  55. package/Jumbotron/index.js.map +1 -1
  56. package/Map/Map.d.ts +3 -3
  57. package/Map/Types.d.ts +2 -2
  58. package/Map/index.js +4200 -3823
  59. package/Map/index.js.map +1 -1
  60. package/Modal/index.js +12 -10
  61. package/Modal/index.js.map +1 -1
  62. package/Navbar/index.js +2426 -2517
  63. package/Navbar/index.js.map +1 -1
  64. package/Pagination/index.js +132 -136
  65. package/Pagination/index.js.map +1 -1
  66. package/PieChart/index.js +204 -219
  67. package/PieChart/index.js.map +1 -1
  68. package/PublicFooter/index.js +14 -10
  69. package/PublicFooter/index.js.map +1 -1
  70. package/PublicNavbar/index.js +6 -4
  71. package/PublicNavbar/index.js.map +1 -1
  72. package/README.md +5 -2
  73. package/RecordBit/index.js +15 -11
  74. package/RecordBit/index.js.map +1 -1
  75. package/ResultItemCard/index.js +25 -19
  76. package/ResultItemCard/index.js.map +1 -1
  77. package/SelectDropdown/index.js +171 -185
  78. package/SelectDropdown/index.js.map +1 -1
  79. package/Spinner/index.js +6 -4
  80. package/Spinner/index.js.map +1 -1
  81. package/StatisticsItemCard/index.js +170 -160
  82. package/StatisticsItemCard/index.js.map +1 -1
  83. package/StatisticsItemNumeric/index.js +6 -4
  84. package/StatisticsItemNumeric/index.js.map +1 -1
  85. package/StatisticsLegend/index.js +173 -189
  86. package/StatisticsLegend/index.js.map +1 -1
  87. package/StatisticsTooltip/index.js +15 -15
  88. package/StatisticsTooltip/index.js.map +1 -1
  89. package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +1 -1
  90. package/Suggester/index.js +160 -160
  91. package/Suggester/index.js.map +1 -1
  92. package/SunBurst/index.js +140 -144
  93. package/SunBurst/index.js.map +1 -1
  94. package/TabSwitcher/index.js +144 -144
  95. package/TabSwitcher/index.js.map +1 -1
  96. package/Title/index.js +8 -6
  97. package/Title/index.js.map +1 -1
  98. package/Toasts/Toast.d.ts +41 -0
  99. package/Toasts/ToastContainer.d.ts +4 -0
  100. package/Toasts/ToastHeader.d.ts +7 -0
  101. package/Toasts/index.d.ts +2 -0
  102. package/Toasts/index.js +2285 -0
  103. package/Toasts/index.js.map +1 -0
  104. package/ToggleButtonGroup/index.js +128 -130
  105. package/ToggleButtonGroup/index.js.map +1 -1
  106. package/Tooltip/index.js +3 -3
  107. package/Tooltip/index.js.map +1 -1
  108. package/Utils/index.js +1049 -1426
  109. package/Utils/index.js.map +1 -1
  110. package/{atoka-design-system-2.1.2.min.css → atoka-design-system-2.1.5.min.css} +1 -1
  111. package/index.d.ts +1 -0
  112. package/index.js +13126 -11649
  113. package/index.js.map +1 -1
  114. package/package.json +48 -40
  115. package/styles/atoka-bs.less +1 -1
  116. 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.2",
3
+ "version": "2.1.5",
4
4
  "description": "",
5
5
  "scripts": {
6
- "storybook": "start-storybook -p 6006 -s public --quiet",
7
- "deploy-storybook": "npm run imprint-version && build-storybook -s public -c .storybook -o .out --quiet && s3-deploy '.out/**' --cwd '.out/' --region eu-west-1 --bucket design-system.atoka.io",
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": "WEBPACK_PACKAGE=webpack-5 npx webpack --config webpack.conf.js",
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.10.4",
59
- "@babel/plugin-transform-runtime": "7.14.5",
60
- "@babel/plugin-transform-typescript": "7.16.1",
61
- "@babel/preset-env": "7.14.4",
62
- "@babel/runtime": "7.14.6",
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
- "@react-leaflet/core": "1.0.2",
79
- "@storybook/addon-actions": "6.3.6",
80
- "@storybook/addon-controls": "6.3.7",
81
- "@storybook/addon-docs": "6.3.6",
82
- "@storybook/addon-links": "6.3.6",
83
- "@storybook/addons": "6.3.6",
84
- "@storybook/react": "6.3.6",
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": "3.6.0",
103
- "@typescript-eslint/eslint-plugin-tslint": "4.10.0",
104
- "@typescript-eslint/parser": "3.6.0",
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
- "awesome-typescript-loader": "5.2.1",
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": "7.4.0",
119
+ "eslint": "8.17.0",
117
120
  "eslint-config-prettier": "8.3.0",
118
- "eslint-plugin-import": "2.22.1",
119
- "eslint-plugin-jsdoc": "30.7.8",
120
- "eslint-plugin-prefer-arrow": "1.2.2",
121
- "eslint-plugin-react": "7.20.3",
122
- "eslint-plugin-react-hooks": "4.2.0",
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": "26.1.0",
125
- "jest-circus": "26.6.3",
126
- "jest-image-snapshot": "4.5.0",
127
- "jest-puppeteer": "4.4.0",
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": "4.1.1",
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-v3": "npm:react-leaflet@3.1.0",
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": "26.1.1",
148
- "typescript": "3.9.6",
149
- "webpack": "4.46.0",
150
- "webpack-5": "npm:webpack@5.65.0",
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
  }
@@ -35,7 +35,7 @@
35
35
  @import '@{path}_media';
36
36
  @import '@{path}_list-group';
37
37
  @import '@{path}_close';
38
- //@import "@{path}_toasts";
38
+ @import '@{path}_toasts';
39
39
  @import '@{path}_modal';
40
40
  @import '@{path}_tooltip';
41
41
  @import '@{path}_popover';
@@ -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;