@spaziodati/atoka-design-system 2.0.72-beta

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 (294) hide show
  1. package/AddableItems/AddableItems.d.ts +72 -0
  2. package/AddableItems/ClickableExcludableItem.d.ts +23 -0
  3. package/AddableItems/ClickableItemList.d.ts +32 -0
  4. package/AddableItems/index.d.ts +1 -0
  5. package/AddableItems/index.js +1046 -0
  6. package/AddableItems/index.js.map +1 -0
  7. package/Alert/Alert.d.ts +37 -0
  8. package/Alert/index.d.ts +1 -0
  9. package/Alert/index.js +319 -0
  10. package/Alert/index.js.map +1 -0
  11. package/Badge/Badge.d.ts +38 -0
  12. package/Badge/index.d.ts +1 -0
  13. package/Badge/index.js +285 -0
  14. package/Badge/index.js.map +1 -0
  15. package/Bs4V3Wrapper/Bs4V3Wrapper.d.ts +7 -0
  16. package/Bs4V3Wrapper/StoryWrapper.d.ts +8 -0
  17. package/Bs4V3Wrapper/index.d.ts +1 -0
  18. package/Bs4V3Wrapper/index.js +251 -0
  19. package/Bs4V3Wrapper/index.js.map +1 -0
  20. package/BubbleChart/BubbleChart.d.ts +33 -0
  21. package/BubbleChart/BubbleChartUI.d.ts +31 -0
  22. package/BubbleChart/index.d.ts +1 -0
  23. package/BubbleChart/index.js +3793 -0
  24. package/BubbleChart/index.js.map +1 -0
  25. package/Button/Button.d.ts +29 -0
  26. package/Button/Button.storiesConfig.d.ts +68 -0
  27. package/Button/index.d.ts +1 -0
  28. package/Button/index.js +323 -0
  29. package/Button/index.js.map +1 -0
  30. package/ButtonDropdown/ButtonDropdown.d.ts +23 -0
  31. package/ButtonDropdown/index.d.ts +2 -0
  32. package/ButtonDropdown/index.js +603 -0
  33. package/ButtonDropdown/index.js.map +1 -0
  34. package/CardsPage/CardsPage.d.ts +12 -0
  35. package/CardsPage/CardsPageActions.d.ts +2 -0
  36. package/CardsPage/CardsPageCards.d.ts +5 -0
  37. package/CardsPage/CardsPageCardsCounter.d.ts +7 -0
  38. package/CardsPage/CardsPageFilters.d.ts +3 -0
  39. package/CardsPage/CardsPageHeader.d.ts +11 -0
  40. package/CardsPage/CardsPageLayoutMode.d.ts +13 -0
  41. package/CardsPage/CardsPageSelectionActions.d.ts +17 -0
  42. package/CardsPage/CardsPageSelectionToggler.d.ts +8 -0
  43. package/CardsPage/CardsPageSorting.d.ts +15 -0
  44. package/CardsPage/CardsPageSubtitle.d.ts +2 -0
  45. package/CardsPage/CardsPageTabContent.d.ts +19 -0
  46. package/CardsPage/CardsPageTabSwitcher.d.ts +3 -0
  47. package/CardsPage/CardsPageTitle.d.ts +2 -0
  48. package/CardsPage/index.d.ts +2 -0
  49. package/CardsPage/index.js +2511 -0
  50. package/CardsPage/index.js.map +1 -0
  51. package/CursorPagination/CursorPagination.d.ts +21 -0
  52. package/CursorPagination/index.d.ts +1 -0
  53. package/CursorPagination/index.js +952 -0
  54. package/CursorPagination/index.js.map +1 -0
  55. package/DatePicker/DatePicker.d.ts +27 -0
  56. package/DatePicker/index.d.ts +1 -0
  57. package/DatePicker/index.js +452 -0
  58. package/DatePicker/index.js.map +1 -0
  59. package/DetailPage/DetailPage.d.ts +18 -0
  60. package/DetailPage/DetailPageBodyContainer.d.ts +2 -0
  61. package/DetailPage/DetailPageBodySection.d.ts +3 -0
  62. package/DetailPage/DetailPageHeaderContainer.d.ts +7 -0
  63. package/DetailPage/DetailPageHeaderUI.d.ts +12 -0
  64. package/DetailPage/DetailPageMenuContainer.d.ts +2 -0
  65. package/DetailPage/DetailPageMenuUI.d.ts +4 -0
  66. package/DetailPage/index.d.ts +1 -0
  67. package/DetailPage/index.js +2066 -0
  68. package/DetailPage/index.js.map +1 -0
  69. package/Dropdown/AtokaDropdownToggles.d.ts +11 -0
  70. package/Dropdown/Dropdown.d.ts +12 -0
  71. package/Dropdown/DropdownMenu.d.ts +7 -0
  72. package/Dropdown/index.d.ts +3 -0
  73. package/Dropdown/index.js +723 -0
  74. package/Dropdown/index.js.map +1 -0
  75. package/EditableString/EditableString.d.ts +42 -0
  76. package/EditableString/index.d.ts +1 -0
  77. package/EditableString/index.js +3321 -0
  78. package/EditableString/index.js.map +1 -0
  79. package/EllipsableContent/EllipsableContent.d.ts +18 -0
  80. package/EllipsableContent/index.d.ts +1 -0
  81. package/EllipsableContent/index.js +784 -0
  82. package/EllipsableContent/index.js.map +1 -0
  83. package/EmptyState/EmptyState.d.ts +12 -0
  84. package/EmptyState/index.d.ts +1 -0
  85. package/EmptyState/index.js +278 -0
  86. package/EmptyState/index.js.map +1 -0
  87. package/Facet/Facet.d.ts +21 -0
  88. package/Facet/FacetHelp.d.ts +28 -0
  89. package/Facet/FacetItemCount.d.ts +7 -0
  90. package/Facet/FacetSubtitle.d.ts +2 -0
  91. package/Facet/index.d.ts +1 -0
  92. package/Facet/index.js +914 -0
  93. package/Facet/index.js.map +1 -0
  94. package/FacetSection/FacetSection.d.ts +21 -0
  95. package/FacetSection/index.d.ts +1 -0
  96. package/FacetSection/index.js +443 -0
  97. package/FacetSection/index.js.map +1 -0
  98. package/FadeAnimation/FadeAnimation.d.ts +14 -0
  99. package/FadeAnimation/index.d.ts +1 -0
  100. package/FadeAnimation/index.js +1228 -0
  101. package/FadeAnimation/index.js.map +1 -0
  102. package/FeedbackButton/FeedbackButton.d.ts +19 -0
  103. package/FeedbackButton/index.d.ts +1 -0
  104. package/FeedbackButton/index.js +398 -0
  105. package/FeedbackButton/index.js.map +1 -0
  106. package/Form/Form.d.ts +23 -0
  107. package/Form/FormCheckbox.d.ts +10 -0
  108. package/Form/FormControl.d.ts +23 -0
  109. package/Form/FormControlFeedBack.d.ts +6 -0
  110. package/Form/FormHelp.d.ts +7 -0
  111. package/Form/FormLabel.d.ts +4 -0
  112. package/Form/FormRadio.d.ts +10 -0
  113. package/Form/index.d.ts +1 -0
  114. package/Form/index.js +450 -0
  115. package/Form/index.js.map +1 -0
  116. package/Funnel/Funnel.d.ts +54 -0
  117. package/Funnel/SVGDataLabel.d.ts +11 -0
  118. package/Funnel/index.d.ts +1 -0
  119. package/Funnel/index.js +3997 -0
  120. package/Funnel/index.js.map +1 -0
  121. package/GridCard/Fixtures.d.ts +3 -0
  122. package/GridCard/GridCard.d.ts +20 -0
  123. package/GridCard/GridCardContent.d.ts +2 -0
  124. package/GridCard/GridCardFooter.d.ts +2 -0
  125. package/GridCard/GridCardHeader.d.ts +14 -0
  126. package/GridCard/GridCardMenu.d.ts +2 -0
  127. package/GridCard/GridCardTags.d.ts +2 -0
  128. package/GridCard/GridCardTitle.d.ts +6 -0
  129. package/GridCard/index.d.ts +1 -0
  130. package/GridCard/index.js +1618 -0
  131. package/GridCard/index.js.map +1 -0
  132. package/HighlightableText/HighlightableText.d.ts +21 -0
  133. package/HighlightableText/index.d.ts +1 -0
  134. package/HighlightableText/index.js +624 -0
  135. package/HighlightableText/index.js.map +1 -0
  136. package/Histogram/Histogram.d.ts +126 -0
  137. package/Histogram/Types.d.ts +19 -0
  138. package/Histogram/index.d.ts +1 -0
  139. package/Histogram/index.js +2359 -0
  140. package/Histogram/index.js.map +1 -0
  141. package/InlineStringEditor/InlineStringEditor.d.ts +49 -0
  142. package/InlineStringEditor/index.d.ts +1 -0
  143. package/InlineStringEditor/index.js +1882 -0
  144. package/InlineStringEditor/index.js.map +1 -0
  145. package/InputGroup/InputGroup.d.ts +16 -0
  146. package/InputGroup/InputGroupText.d.ts +2 -0
  147. package/InputGroup/index.d.ts +1 -0
  148. package/InputGroup/index.js +279 -0
  149. package/InputGroup/index.js.map +1 -0
  150. package/Jumbotron/Jumbotron.d.ts +16 -0
  151. package/Jumbotron/index.d.ts +1 -0
  152. package/Jumbotron/index.js +270 -0
  153. package/Jumbotron/index.js.map +1 -0
  154. package/Map/Map.d.ts +27 -0
  155. package/Map/MapChoropleth.d.ts +31 -0
  156. package/Map/MapControl.d.ts +13 -0
  157. package/Map/MapLegendContent.d.ts +27 -0
  158. package/Map/MapPopup.d.ts +5 -0
  159. package/Map/MapUtils.d.ts +2 -0
  160. package/Map/Types.d.ts +38 -0
  161. package/Map/index.d.ts +2 -0
  162. package/Map/index.js +4810 -0
  163. package/Map/index.js.map +1 -0
  164. package/Modal/Modal.d.ts +32 -0
  165. package/Modal/index.d.ts +1 -0
  166. package/Modal/index.js +743 -0
  167. package/Modal/index.js.map +1 -0
  168. package/Navbar/Navbar.d.ts +42 -0
  169. package/Navbar/NavbarMobileMenuCollapse.d.ts +3 -0
  170. package/Navbar/NavbarMobileMenuToggle.d.ts +3 -0
  171. package/Navbar/NavbarNavigationMenu.d.ts +9 -0
  172. package/Navbar/NavbarNavigationMenuItem.d.ts +9 -0
  173. package/Navbar/NavbarNinjaMenu.d.ts +6 -0
  174. package/Navbar/NavbarNinjaMenuItem.d.ts +6 -0
  175. package/Navbar/NavbarNotificationMenu.d.ts +12 -0
  176. package/Navbar/NavbarNotificationMenuItem.d.ts +8 -0
  177. package/Navbar/NavbarOverlaySearch.d.ts +28 -0
  178. package/Navbar/NavbarOverlaySearchCard.d.ts +9 -0
  179. package/Navbar/NavbarOverlaySearchResults.d.ts +12 -0
  180. package/Navbar/NavbarUserMenu.d.ts +9 -0
  181. package/Navbar/NavbarUserMenuItem.d.ts +6 -0
  182. package/Navbar/index.d.ts +1 -0
  183. package/Navbar/index.js +3521 -0
  184. package/Navbar/index.js.map +1 -0
  185. package/Pagination/Pagination.d.ts +27 -0
  186. package/Pagination/PaginationNext.d.ts +7 -0
  187. package/Pagination/PaginationPrev.d.ts +7 -0
  188. package/Pagination/index.d.ts +1 -0
  189. package/Pagination/index.js +994 -0
  190. package/Pagination/index.js.map +1 -0
  191. package/PieChart/PieChart.d.ts +71 -0
  192. package/PieChart/index.d.ts +1 -0
  193. package/PieChart/index.js +1986 -0
  194. package/PieChart/index.js.map +1 -0
  195. package/PublicFooter/PublicFooter.d.ts +6 -0
  196. package/PublicFooter/index.d.ts +1 -0
  197. package/PublicFooter/index.js +454 -0
  198. package/PublicFooter/index.js.map +1 -0
  199. package/PublicNavbar/PublicNavbar.d.ts +6 -0
  200. package/PublicNavbar/index.d.ts +1 -0
  201. package/PublicNavbar/index.js +255 -0
  202. package/PublicNavbar/index.js.map +1 -0
  203. package/RecordBit/RecordBit.d.ts +14 -0
  204. package/RecordBit/index.d.ts +1 -0
  205. package/RecordBit/index.js +482 -0
  206. package/RecordBit/index.js.map +1 -0
  207. package/ResultItemCard/ResultItemCard.d.ts +19 -0
  208. package/ResultItemCard/ResultItemCardActions.d.ts +3 -0
  209. package/ResultItemCard/ResultItemCardFooter.d.ts +6 -0
  210. package/ResultItemCard/ResultItemCardImage.d.ts +6 -0
  211. package/ResultItemCard/ResultItemCardSubtitle.d.ts +6 -0
  212. package/ResultItemCard/ResultItemCardText.d.ts +7 -0
  213. package/ResultItemCard/ResultItemCardTitle.d.ts +7 -0
  214. package/ResultItemCard/index.d.ts +1 -0
  215. package/ResultItemCard/index.js +1067 -0
  216. package/ResultItemCard/index.js.map +1 -0
  217. package/SelectDropdown/SelectDropdown.d.ts +29 -0
  218. package/SelectDropdown/index.d.ts +1 -0
  219. package/SelectDropdown/index.js +1520 -0
  220. package/SelectDropdown/index.js.map +1 -0
  221. package/Spinner/Spinner.d.ts +32 -0
  222. package/Spinner/index.d.ts +1 -0
  223. package/Spinner/index.js +325 -0
  224. package/Spinner/index.js.map +1 -0
  225. package/StatisticsItemCard/StatisticsItemCard.d.ts +35 -0
  226. package/StatisticsItemCard/index.d.ts +1 -0
  227. package/StatisticsItemCard/index.js +1786 -0
  228. package/StatisticsItemCard/index.js.map +1 -0
  229. package/StatisticsItemNumeric/StatisticsItemNumeric.d.ts +18 -0
  230. package/StatisticsItemNumeric/index.d.ts +1 -0
  231. package/StatisticsItemNumeric/index.js +283 -0
  232. package/StatisticsItemNumeric/index.js.map +1 -0
  233. package/StatisticsLegend/StatisticsLegend.d.ts +35 -0
  234. package/StatisticsLegend/StatisticsLegendItem.d.ts +50 -0
  235. package/StatisticsLegend/StatisticsSVGLegend.d.ts +26 -0
  236. package/StatisticsLegend/helpers.d.ts +19 -0
  237. package/StatisticsLegend/index.d.ts +3 -0
  238. package/StatisticsLegend/index.js +1571 -0
  239. package/StatisticsLegend/index.js.map +1 -0
  240. package/StatisticsTooltip/StatisticsTooltip.d.ts +20 -0
  241. package/StatisticsTooltip/helpers.d.ts +19 -0
  242. package/StatisticsTooltip/index.d.ts +2 -0
  243. package/StatisticsTooltip/index.js +796 -0
  244. package/StatisticsTooltip/index.js.map +1 -0
  245. package/Suggester/CustomOption.d.ts +29 -0
  246. package/Suggester/InputValueContainer.d.ts +11 -0
  247. package/Suggester/Suggester.d.ts +80 -0
  248. package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +6 -0
  249. package/Suggester/index.d.ts +3 -0
  250. package/Suggester/index.js +1126 -0
  251. package/Suggester/index.js.map +1 -0
  252. package/SunBurst/SunBurst.d.ts +61 -0
  253. package/SunBurst/index.d.ts +2 -0
  254. package/SunBurst/index.js +1170 -0
  255. package/SunBurst/index.js.map +1 -0
  256. package/TabSwitcher/TabSwitcher.d.ts +35 -0
  257. package/TabSwitcher/TabSwitcherChoice.d.ts +21 -0
  258. package/TabSwitcher/index.d.ts +1 -0
  259. package/TabSwitcher/index.js +1135 -0
  260. package/TabSwitcher/index.js.map +1 -0
  261. package/Title/Title.d.ts +16 -0
  262. package/Title/index.d.ts +1 -0
  263. package/Title/index.js +302 -0
  264. package/Title/index.js.map +1 -0
  265. package/ToggleButtonGroup/ToggleButton.d.ts +15 -0
  266. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +24 -0
  267. package/ToggleButtonGroup/index.d.ts +1 -0
  268. package/ToggleButtonGroup/index.js +609 -0
  269. package/ToggleButtonGroup/index.js.map +1 -0
  270. package/Tooltip/Tooltip.d.ts +20 -0
  271. package/Tooltip/index.d.ts +1 -0
  272. package/Tooltip/index.js +291 -0
  273. package/Tooltip/index.js.map +1 -0
  274. package/Utils/CommonTypes.d.ts +29 -0
  275. package/Utils/Statistics.d.ts +3 -0
  276. package/Utils/Style.d.ts +5 -0
  277. package/Utils/Text.d.ts +12 -0
  278. package/Utils/Utils.d.ts +12 -0
  279. package/Utils/index.d.ts +5 -0
  280. package/Utils/index.js +3379 -0
  281. package/Utils/index.js.map +1 -0
  282. package/atoka-design-system-2.0.72-beta.min.css +1 -0
  283. package/commonFixtures.d.ts +1 -0
  284. package/index.d.ts +51 -0
  285. package/index.js +15343 -0
  286. package/index.js.map +1 -0
  287. package/package.json +157 -0
  288. package/styles/animations-mixin.less +28 -0
  289. package/styles/atoka-bootstrap-fixed-mixins.less +81 -0
  290. package/styles/atoka-bootstrap-variables.less +70 -0
  291. package/styles/atoka-bs.less +99 -0
  292. package/styles/atoka-namespaced-bs.less +28 -0
  293. package/styles/variables.less +106 -0
  294. package/styles/variant-mixins.less +96 -0
package/package.json ADDED
@@ -0,0 +1,157 @@
1
+ {
2
+ "name": "@spaziodati/atoka-design-system",
3
+ "version": "2.0.72-beta",
4
+ "description": "",
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",
8
+ "imprint-version": "node ./scripts/imprint_version.js",
9
+ "ts-compile": "tsc",
10
+ "build": "rm -rf dist; npm run ts-declaration && npm run ts-bundle && cp -rf ./styles ./dist/styles && cp ./package.json ./dist/package.json",
11
+ "yalc-push": "cd ./dist && npx yalc push && cd ..",
12
+ "ts-declaration": "tsc --emitDeclarationOnly -p tsconfig-prod.json",
13
+ "ts-compile-prod": "tsc -p tsconfig-prod.json",
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",
16
+ "less-lint": "./scripts/less_lint.sh",
17
+ "prettier-write": "prettier --write .",
18
+ "prettier": "prettier --check .",
19
+ "prettier-check-and-fix": "/bin/bash scripts/prettier-check-and-fix.sh",
20
+ "test": "jest -c jest.config.js",
21
+ "test-visual": "jest -c jestVisual.config.js -w 3",
22
+ "release": "/bin/bash scripts/do-release.sh",
23
+ "less-deploy": "s3-deploy 'dist/atoka-design-system*.css' --cwd 'dist/' --filePrefix 'dist/ds' --region eu-west-1 --bucket design-system.atoka.io",
24
+ "deploy": "npm run less-deploy",
25
+ "sync-ds-to-atoka": "npm run build && npm run yalc-push && rm -rf ../atoka-revenge/node_modules/.cache/webpack; mkdir -p ../atoka-revenge/ts/build/ ; cp dist/atoka-design-system*.css ../atoka-revenge/ts/build/atoka-design-system.min.css"
26
+ },
27
+ "pre-commit": [
28
+ "less-lint",
29
+ "ts-lint",
30
+ "prettier-check-and-fix"
31
+ ],
32
+ "keywords": [],
33
+ "author": "Pandas",
34
+ "license": "ISC",
35
+ "peerDependencies": {
36
+ "@fortawesome/fontawesome-pro": "^5.13.0",
37
+ "@fortawesome/fontawesome-svg-core": "^1.2.30",
38
+ "@fortawesome/free-brands-svg-icons": "^5.14.0",
39
+ "@fortawesome/pro-light-svg-icons": "^5.14.0",
40
+ "@fortawesome/pro-regular-svg-icons": "^5.14.0",
41
+ "@fortawesome/react-fontawesome": "^0.1.11",
42
+ "@nivo/axes": "0.72.0",
43
+ "@nivo/bar": "0.72.0",
44
+ "@nivo/circle-packing": "0.72.0",
45
+ "@nivo/core": "0.72.0",
46
+ "@nivo/funnel": "0.72.0",
47
+ "@nivo/pie": "0.72.0",
48
+ "@nivo/sunburst": "0.72.0",
49
+ "react": "^16.14.0",
50
+ "react-bootstrap": "^1.5.2",
51
+ "react-datepicker": "4.6.0",
52
+ "react-dom": "^16.14.0",
53
+ "react-select": "4.3.0",
54
+ "leaflet": "1.7.1",
55
+ "leaflet-image": "0.4.0"
56
+ },
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",
63
+ "@fortawesome/fontawesome-pro": "5.13.0",
64
+ "@fortawesome/fontawesome-svg-core": "1.2.30",
65
+ "@fortawesome/free-brands-svg-icons": "5.14.0",
66
+ "@fortawesome/pro-light-svg-icons": "5.14.0",
67
+ "@fortawesome/pro-regular-svg-icons": "5.14.0",
68
+ "@fortawesome/pro-solid-svg-icons": "5.14.0",
69
+ "@fortawesome/react-fontawesome": "0.1.11",
70
+ "@mdx-js/loader": "1.6.6",
71
+ "@nivo/axes": "0.72.0",
72
+ "@nivo/bar": "0.72.0",
73
+ "@nivo/circle-packing": "0.72.0",
74
+ "@nivo/core": "0.72.0",
75
+ "@nivo/funnel": "0.72.0",
76
+ "@nivo/pie": "0.72.0",
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",
85
+ "@types/classnames": "2.2.10",
86
+ "@types/d3-color": "2.0.1",
87
+ "@types/d3-scale": "^3.2.2",
88
+ "@types/d3-scale-chromatic": "2.0.0",
89
+ "@types/d3-shape": "3.0.2",
90
+ "@types/d3-time": "2.0.0",
91
+ "@types/enzyme": "3.10.8",
92
+ "@types/jest": "26.0.4",
93
+ "@types/jest-image-snapshot": "4.3.0",
94
+ "@types/leaflet": "1.7.0",
95
+ "@types/puppeteer": "3.0.1",
96
+ "@types/react": "16.9.42",
97
+ "@types/react-datepicker": "4.3.4",
98
+ "@types/react-dom": "16.9.9",
99
+ "@types/react-motion": "0.0.29",
100
+ "@types/react-select": "4.0.17",
101
+ "@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",
105
+ "autobind-decorator": "2.4.0",
106
+ "awesome-typescript-loader": "5.2.1",
107
+ "babel-loader": "8.1.0",
108
+ "bootstrap-less-port": "2.3.1",
109
+ "classnames": "2.2.6",
110
+ "css-loader": "3.6.0",
111
+ "css-minimizer-webpack-plugin": "3.3.1",
112
+ "csso-cli": "3.0.0",
113
+ "enzyme": "3.11.0",
114
+ "enzyme-adapter-react-16": "1.15.2",
115
+ "enzyme-to-json": "3.5.0",
116
+ "eslint": "7.4.0",
117
+ "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",
123
+ "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",
128
+ "leaflet": "1.7.1",
129
+ "leaflet-image": "0.4.0",
130
+ "less": "4.1.1",
131
+ "less-loader": "6.2.0",
132
+ "mini-css-extract-plugin": "2.4.5",
133
+ "pre-commit": "1.2.2",
134
+ "prettier": "2.6.0",
135
+ "puppeteer": "3.3.0",
136
+ "react": "16.14.0",
137
+ "react-bootstrap": "1.5.2",
138
+ "react-datepicker": "4.6.0",
139
+ "react-dom": "16.14.0",
140
+ "react-leaflet-v3": "npm:react-leaflet@3.1.0",
141
+ "react-select": "4.3.0",
142
+ "s3-deploy": "1.4.0",
143
+ "start-server-and-test": "1.11.2",
144
+ "story-description-loader": "1.0.0",
145
+ "style-loader": "1.2.1",
146
+ "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",
151
+ "webpack-bundle-analyzer": "4.5.0",
152
+ "webpack-cli": "4.6.0"
153
+ },
154
+ "optionalDependencies": {
155
+ "fsevents": "^2.3.2"
156
+ }
157
+ }
@@ -0,0 +1,28 @@
1
+ @import (reference) 'variables';
2
+
3
+ .fade-in-mixin(@name; @duration; @delay) {
4
+ .@{name}-enter,
5
+ .@{name}-appear {
6
+ opacity: 0.01;
7
+ }
8
+ .@{name}-enter-active,
9
+ .@{name}-appear-active {
10
+ opacity: 1;
11
+
12
+ transition-property: opacity;
13
+ transition-duration: @duration;
14
+ }
15
+ .@{name}-appear-active {
16
+ transition-delay: @delay;
17
+ }
18
+
19
+ .@{name}-exit {
20
+ opacity: 1;
21
+ }
22
+ .@{name}-exit-active {
23
+ opacity: 0.01;
24
+
25
+ transition-property: opacity;
26
+ transition-duration: @duration;
27
+ }
28
+ }
@@ -0,0 +1,81 @@
1
+ #make-grid-columns(@columns: @grid-columns, @gutter: @grid-gutter-width, @breakpoints: @grid-breakpoints) {
2
+ // Common properties for all breakpoints
3
+ // LESS PORT: Unfortunately we have to use an actual selector here in order to be able to
4
+ // `:extend()` it later. This means that the selector is output in the compiled CSS, creating a
5
+ // small disparity between the Less and Sass versions.
6
+ // \%grid-columns {
7
+ // position: relative;
8
+ // width: 100%;
9
+ // padding-right: (@gutter / 2);
10
+ // padding-left: (@gutter / 2);
11
+ // }
12
+
13
+ // ATOKA FIX: :extend(\%grid-column); does not get prefixed, copied its content into them
14
+
15
+ each(map-keys(@breakpoints), #(@breakpoint) {
16
+ @infix: breakpoint-infix(@breakpoint, @breakpoints);
17
+
18
+ // Allow columns to stretch full width below their breakpoints
19
+ each(range(@columns), #(@i) {
20
+ .col@{infix}-@{i} {
21
+ //&:extend(\%grid-column);
22
+ position: relative;
23
+ width: 100%;
24
+ padding-right: (@gutter / 2);
25
+ padding-left: (@gutter / 2);
26
+ }
27
+ });
28
+
29
+ .col@{infix},
30
+ .col@{infix}-auto {
31
+ //&:extend(\%grid-column);
32
+ position: relative;
33
+ width: 100%;
34
+ padding-right: (@gutter / 2);
35
+ padding-left: (@gutter / 2);
36
+ }
37
+
38
+ #media-breakpoint-up(@breakpoint, {
39
+ // Provide basic `.col-{bp}` classes for equal-width flexbox columns
40
+ .col@{infix} {
41
+ flex-basis: 0;
42
+ flex-grow: 1;
43
+ max-width: 100%;
44
+ }
45
+
46
+ each(range(@grid-row-columns), #(@i) {
47
+ .row-cols@{infix}-@{i} {
48
+ #row-cols(@i);
49
+ }
50
+ });
51
+
52
+ .col@{infix}-auto {
53
+ #make-col-auto();
54
+ }
55
+
56
+ each(range(@columns), #(@i) {
57
+ .col@{infix}-@{i} {
58
+ #make-col(@i, @columns);
59
+ }
60
+ });
61
+
62
+ .order@{infix}-first { order: -1; }
63
+
64
+ .order@{infix}-last { order: (@columns + 1); }
65
+
66
+ each(range(0, @columns), #(@i) {
67
+ .order@{infix}-@{i} { order: @i; }
68
+ });
69
+
70
+ // `@columns - 1` because offsetting by the width of an entire row isn￾t possible
71
+ each(range(0, (@columns - 1)), #(@i) {
72
+ & when not (@i = 0),
73
+ (@i = 0) and not (@infix = ~"") {
74
+ .offset@{infix}-@{i} {
75
+ #make-col-offset(@i, @columns);
76
+ }
77
+ }
78
+ });
79
+ });
80
+ });
81
+ }
@@ -0,0 +1,70 @@
1
+ @import (reference) 'variables';
2
+
3
+ /////////////////////////////////////////////////////////////////////////////////////////////////////
4
+ // DO NOT IMPORT THIS FILE IN ATOKA-DS .LESS FILES!
5
+ // If you need some variables in the atoka-ds .less files, just copy them in the styles/variales.less
6
+ // For example @border-radius
7
+ // If you change a variable in variables.less or here, keep in mind to update both the files
8
+ /////////////////////////////////////////////////////////////////////////////////////////////////////
9
+
10
+ // _variables.less
11
+ @border-radius: 2 * @atoka-border-radius;
12
+ @border-radius-sm: @atoka-border-radius;
13
+ @border-radius-lg: 2 * @spacing-unit;
14
+ @modal-content-border-radius: 5px;
15
+
16
+ @font-family-sans-serif: @font-family, 'Helvetica Neue', Helvetica, Arial, sans-serif;
17
+
18
+ @black: #222222;
19
+ @primary: @blue300;
20
+ @secondary: @gray300;
21
+ @warning: @orange;
22
+ // as atoka-variables @red
23
+ @red: #f72200;
24
+
25
+ @link-color: @primary;
26
+
27
+ @body-bg: @gray100;
28
+ @body-color: @black;
29
+
30
+ @enable-shadows: false;
31
+ @enable-gradients: false;
32
+
33
+ // _reboot.less
34
+ @font-weight-base: @font-weight;
35
+
36
+ // _grid_framework.less
37
+ @grid-columns: 24;
38
+ @grid-gutter-width: 4 * @spacing-unit;
39
+ @spacer: 2 * @spacing-unit;
40
+
41
+ // _dropdown.less
42
+ @dropdown-item-padding-x: @spacing-unit * 2;
43
+
44
+ // _card.less
45
+ @card-border-width: 1px;
46
+ @card-border-color: @gray200;
47
+
48
+ // _list-group.less
49
+ @list-group-border-color: @gray200;
50
+
51
+ // font awesome
52
+ @fontawesome-font-family: 'Font Awesome 5 Pro';
53
+ @fontawesome-font-brands: 'Font Awesome 5 Brands';
54
+
55
+ // Typography
56
+ @h1-font-size: 44px;
57
+ @h2-font-size: 34px;
58
+ @h3-font-size: 24px;
59
+ @h4-font-size: 20px;
60
+ @h5-font-size: 16px;
61
+ @h6-font-size: 14px;
62
+ @headings-line-height: 1.5;
63
+
64
+ // Jumbotron
65
+ @jumbotron-padding: 10 * @spacing-unit;
66
+ @jumbotron-color: @black;
67
+ @jumbotron-bg: @white;
68
+
69
+ // h1, h2, ...
70
+ @headings-color: @black;
@@ -0,0 +1,99 @@
1
+ @path: 'bootstrap-less-port/less/'; // Include paths will make this reachable from /node_modules/
2
+
3
+ // List of files to include in /node_modules/bootstrap-less-port/less/bootstrap.less
4
+
5
+ @import '@{path}_functions';
6
+ @import '@{path}_variables';
7
+ @import '@{path}_mixins';
8
+
9
+ @import (reference) 'atoka-bootstrap-variables.less';
10
+ @import (reference) 'atoka-bootstrap-fixed-mixins.less';
11
+
12
+ @import '@{path}_root';
13
+ @import '@{path}_reboot';
14
+ @import '@{path}_type';
15
+ @import '@{path}_images';
16
+ //@import "@{path}_code";
17
+ @import '@{path}_grid';
18
+ @import '@{path}_tables';
19
+ @import '@{path}_forms';
20
+ // @import '@{path}_buttons';
21
+ @import '@{path}_transitions';
22
+ @import '@{path}_dropdown';
23
+ @import '@{path}_button-group';
24
+ @import '@{path}_input-group';
25
+ @import '@{path}_custom-forms';
26
+ @import '@{path}_nav';
27
+ @import '@{path}_navbar';
28
+ @import '@{path}_card';
29
+ //@import "@{path}_breadcrumb";
30
+ @import '@{path}_pagination';
31
+ @import '@{path}_badge';
32
+ @import '@{path}_jumbotron';
33
+ @import '@{path}_alert';
34
+ @import '@{path}_progress';
35
+ @import '@{path}_media';
36
+ @import '@{path}_list-group';
37
+ @import '@{path}_close';
38
+ //@import "@{path}_toasts";
39
+ @import '@{path}_modal';
40
+ @import '@{path}_tooltip';
41
+ @import '@{path}_popover';
42
+ @import '@{path}_carousel';
43
+ //@import "@{path}_spinners";
44
+ @import '@{path}_utilities';
45
+ //@import "@{path}_print";
46
+
47
+ .svg-inline--fa {
48
+ vertical-align: -0.125em;
49
+ }
50
+
51
+ .rounded-md {
52
+ border-radius: @border-radius;
53
+ }
54
+
55
+ span.first-letter-capitalize {
56
+ display: inline-block; // the first-letter does not work on inline elements
57
+ }
58
+ .first-letter-capitalize {
59
+ &::first-letter {
60
+ text-transform: uppercase !important;
61
+ }
62
+ }
63
+
64
+ .cursor-default {
65
+ cursor: default;
66
+ }
67
+ // remove me when we upgrade to bootstrap 5
68
+ .text-decoration-underlined {
69
+ text-decoration: underline !important;
70
+ }
71
+
72
+ .color-gray-400 {
73
+ color: @gray400;
74
+ }
75
+
76
+ // I added the class here because atoka could not find it when it was imported in StatisticsTooltip
77
+ .statistics-tooltip {
78
+ max-width: 200px;
79
+ font-size: @font-size-sm;
80
+
81
+ &.tooltip-background {
82
+ background: white;
83
+ border-radius: 2px;
84
+ box-shadow: rgba(0, 0, 0, 0.25) 0 1px 2px;
85
+ padding: 5px 9px;
86
+ }
87
+
88
+ .tooltip-rectangle {
89
+ min-width: 12px; // we need this in case the title is very long
90
+ width: 12px;
91
+ height: 12px;
92
+ margin-right: @spacing-unit;
93
+ }
94
+
95
+ .label {
96
+ font-weight: 600;
97
+ margin-right: (@spacing-unit / 2);
98
+ }
99
+ }
@@ -0,0 +1,28 @@
1
+ @import (reference) 'variables.less';
2
+ @import 'atoka-bs.less';
3
+
4
+ & {
5
+ // From normalize.less
6
+
7
+ // Previously inside "html {"
8
+ // font-family: sans-serif; // Overridden below
9
+ -ms-text-size-adjust: 100%;
10
+ -webkit-text-size-adjust: 100%;
11
+
12
+ // Previously inside "body {"
13
+ margin: 0;
14
+
15
+ // From scaffolding.less
16
+
17
+ // Previously inside "html {"
18
+ // font-size: 10px; // Overridden below
19
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
20
+
21
+ // Previously inside "body {"
22
+ font-family: @font-family, sans-serif, Arial;
23
+ font-size: @font-size-base;
24
+ line-height: @line-height-base;
25
+ font-weight: @font-weight;
26
+ color: @black;
27
+ background-color: @body-bg;
28
+ }
@@ -0,0 +1,106 @@
1
+ @atoka-border-radius: 2px;
2
+
3
+ @font-family: 'Public Sans';
4
+ @font-weight: 300;
5
+
6
+ @spacing-unit: 8px;
7
+
8
+ @navbar-height: 80px;
9
+
10
+ @navigation-brand-width: 50px;
11
+ @navigation-menu-width: 200px;
12
+
13
+ // COLORS
14
+ // keep those in sync with Style.ts
15
+ @bluestartup: #229cf3;
16
+ @bluepa: #134dfb;
17
+ @blue300: #1f5871;
18
+ @blue300-hover: rgba(@blue300, 0.08);
19
+ @blue200: #185d7d;
20
+ @blue150: #185e7d;
21
+ @blue100: #578ea8;
22
+ @blue75: #8fb7cb;
23
+ @blue50: #afd1e0;
24
+ @blue30: #cbd8e0;
25
+ @blue25: #eef2f5;
26
+
27
+ @orange: #f38522;
28
+
29
+ @yellow: #ffbb00;
30
+
31
+ @pinkbaby: #ff99cc;
32
+
33
+ @red: #f72200;
34
+
35
+ @green: #309b0a;
36
+
37
+ @black: #222222;
38
+ @gray500: #474747;
39
+ @gray400: #717171;
40
+ @gray-border: @gray275;
41
+ @gray350: #999999;
42
+ @gray300: #b0b0b0;
43
+ @gray275: #d7d7d7;
44
+ @gray250: #d2d2d2;
45
+ @gray200: #ebebeb;
46
+ @gray150: #f6f6f6;
47
+ @gray100: #fafafa;
48
+ @white: white;
49
+
50
+ // MEDIA QUERIES
51
+
52
+ @screen-xs: 576px;
53
+ @screen-xs-min: @screen-xs;
54
+ @screen-phone: @screen-xs-min;
55
+
56
+ @screen-sm: 768px;
57
+ @screen-sm-min: @screen-sm;
58
+ @screen-tablet: @screen-sm-min;
59
+
60
+ @screen-md: 992px;
61
+ @screen-md-min: @screen-md;
62
+ @screen-desktop: @screen-md-min;
63
+
64
+ @screen-lg: 1200px;
65
+ @screen-lg-min: @screen-lg;
66
+ @screen-lg-desktop: @screen-lg-min;
67
+
68
+ @top-bar-height: 50px;
69
+ @nav-bar-v3-height: 10 * @spacing-unit;
70
+
71
+ @box-shadow: 1px 1px @spacing-unit 0 rgba(0, 0, 0, 0.16);
72
+ @box-shadow-select-options: 0px 3px 4px rgb(90 90 90 / 15%);
73
+
74
+ @grid-row-columns: 24;
75
+
76
+ @font-size-xxs: 10px;
77
+ @font-size-xs: 11px;
78
+ @font-size-sm: 12px;
79
+ @font-size-normal: 14px;
80
+ @font-size-lg: 16px;
81
+ @font-size-xl: 20px;
82
+ @font-size-xxl: 24px;
83
+
84
+ // BORDERS
85
+ @border-input: 1px solid @gray-border;
86
+
87
+ // BORDER RADIUS
88
+ @border-radius: 2 * @atoka-border-radius;
89
+ @border-radius-sm: @atoka-border-radius;
90
+ @border-radius-lg: 2 * @spacing-unit;
91
+
92
+ // HEIGHTS
93
+ @button-height-sm: 32px;
94
+ @button-height-md: 40px;
95
+ @button-height-lg: 48px;
96
+
97
+ // PADDING CALCULATED SIZES
98
+ @xxs-sm-button-spaces: 3px 6px;
99
+ @xs-sm-button-spaces: 3px 8px;
100
+ @md-button-spaces: 8px 16px;
101
+ @lg-button-spaces: 12px 24px;
102
+
103
+ // PLACEHOLDERS
104
+ @placeholder-color: @gray-border;
105
+
106
+ @input-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
@@ -0,0 +1,96 @@
1
+ @import (reference) 'variables';
2
+
3
+ .variant-primary(@color) {
4
+ background-color: @color;
5
+ border-color: @color;
6
+ color: @white;
7
+
8
+ &:disabled {
9
+ background-color: fade(@color, 48%);
10
+ border-color: transparent;
11
+ }
12
+
13
+ &:hover:not(:disabled) {
14
+ background-color: darken(@color, 12%);
15
+ border-color: darken(@color, 12%);
16
+ }
17
+ }
18
+
19
+ .variant-secondary(@color) {
20
+ // This is necessary to override some style present in atoka revenge.
21
+ &,
22
+ &:not(.disabled):active {
23
+ background: transparent;
24
+ border-color: @color;
25
+ color: @color;
26
+ }
27
+
28
+ &:disabled {
29
+ border-color: fade(@color, 48%);
30
+ color: fade(@color, 48%);
31
+ }
32
+
33
+ &:hover:not(:disabled) {
34
+ border-color: darken(@color, 12%);
35
+ color: darken(@color, 12%);
36
+ // Changing the border width messes up paddings and heights/line-heights
37
+ box-shadow: 0 0 0 1px @color;
38
+ }
39
+ }
40
+
41
+ .variant-primary-white {
42
+ background-color: @white;
43
+ border-color: @white;
44
+ color: @blue300;
45
+
46
+ &:disabled {
47
+ background-color: fade(@white, 48%);
48
+ border-color: transparent;
49
+ }
50
+
51
+ &:hover:not(:disabled) {
52
+ background-color: darken(@white, 12%);
53
+ border-color: darken(@white, 12%);
54
+ }
55
+ }
56
+
57
+ .secondary-variant(@color) {
58
+ border: 1px solid @color;
59
+ color: @color;
60
+ background-color: mix(@color, transparent, 8%);
61
+ }
62
+
63
+ .primary-badge(@color) {
64
+ border: 1px solid @color;
65
+ color: @white;
66
+ background-color: @color;
67
+ }
68
+
69
+ .tertiary-badge(@color) {
70
+ background-color: transparent;
71
+ color: @color;
72
+ }
73
+
74
+ .control-button {
75
+ color: @black;
76
+ background-color: @white;
77
+ box-shadow: 1px 1px (@spacing-unit / 2) 0 rgba(0, 0, 0, 0.16);
78
+ display: flex;
79
+ justify-content: center;
80
+ align-items: center;
81
+ width: @spacing-unit * 3;
82
+ height: @spacing-unit * 3;
83
+ line-height: @spacing-unit * 3;
84
+ font-weight: 100;
85
+ border-radius: 0;
86
+ border: none;
87
+
88
+ &:hover,
89
+ &:focus,
90
+ &.selected {
91
+ outline: none;
92
+ text-decoration: none;
93
+ background-color: @gray200;
94
+ border-color: @gray200;
95
+ }
96
+ }