@hazelcast/ui 1.1.1 → 1.3.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 (260) hide show
  1. package/lib/Alert.d.ts +3 -2
  2. package/lib/Alert.js +23 -22
  3. package/lib/Alert.js.map +1 -1
  4. package/lib/Alert.module.scss +14 -6
  5. package/lib/AutocompleteField.d.ts +2 -1
  6. package/lib/AutocompleteField.js +45 -22
  7. package/lib/AutocompleteField.js.map +1 -1
  8. package/lib/AutocompleteField.module.scss +3 -5
  9. package/lib/AutocompleteFieldFormik.d.ts +2 -1
  10. package/lib/AutocompleteFieldFormik.js +11 -5
  11. package/lib/AutocompleteFieldFormik.js.map +1 -1
  12. package/lib/Button.d.ts +9 -294
  13. package/lib/Button.js +41 -14
  14. package/lib/Button.js.map +1 -1
  15. package/lib/Button.module.scss +120 -87
  16. package/lib/Calendar/Calendar.d.ts +1 -1
  17. package/lib/Calendar/Calendar.js +8 -3
  18. package/lib/Calendar/Calendar.js.map +1 -1
  19. package/lib/Calendar/Calendar.module.scss +134 -123
  20. package/lib/Calendar/components/CalendarHeader.tsx +45 -0
  21. package/lib/Calendar/components/CalendarInput.js +2 -2
  22. package/lib/Calendar/components/CalendarInput.js.map +1 -1
  23. package/lib/Calendar/components/CalendarInput.tsx +50 -0
  24. package/lib/Calendar/components/CalendarTime.js +2 -2
  25. package/lib/Calendar/components/CalendarTime.js.map +1 -1
  26. package/lib/Calendar/components/CalendarTime.module.scss +2 -0
  27. package/lib/Calendar/components/CalendarTime.tsx +117 -0
  28. package/lib/Calendar/helpers/consts.ts +99 -0
  29. package/lib/Card.d.ts +1 -0
  30. package/lib/Card.js +4 -3
  31. package/lib/Card.js.map +1 -1
  32. package/lib/Card.module.scss +16 -4
  33. package/lib/Checkbox.d.ts +2 -2
  34. package/lib/Checkbox.js +7 -4
  35. package/lib/Checkbox.js.map +1 -1
  36. package/lib/Checkbox.module.scss +17 -6
  37. package/lib/CheckboxFormik.d.ts +2 -1
  38. package/lib/CheckboxFormik.js +9 -4
  39. package/lib/CheckboxFormik.js.map +1 -1
  40. package/lib/CodeEditor.d.ts +3 -2
  41. package/lib/CodeEditor.js +4 -3
  42. package/lib/CodeEditor.js.map +1 -1
  43. package/lib/CodeEditor.module.scss +5 -2
  44. package/lib/CodeEditorFormik.js +2 -2
  45. package/lib/CodeEditorFormik.js.map +1 -1
  46. package/lib/Dialog.js +5 -2
  47. package/lib/Dialog.js.map +1 -1
  48. package/lib/Dialog.module.scss +3 -0
  49. package/lib/EmptyState.d.ts +6 -4
  50. package/lib/EmptyState.js +4 -6
  51. package/lib/EmptyState.js.map +1 -1
  52. package/lib/EmptyState.module.scss +1 -1
  53. package/lib/Error.d.ts +3 -0
  54. package/lib/Error.js +2 -1
  55. package/lib/Error.js.map +1 -1
  56. package/lib/FieldHeader.d.ts +20 -0
  57. package/lib/FieldHeader.js +15 -0
  58. package/lib/FieldHeader.js.map +1 -0
  59. package/lib/FieldHeader.module.scss +20 -0
  60. package/lib/Icon.d.ts +2 -35
  61. package/lib/Icon.js +1 -1
  62. package/lib/Icon.js.map +1 -1
  63. package/lib/Icon.module.scss +5 -0
  64. package/lib/IconButton.d.ts +6 -158
  65. package/lib/IconButton.js +3 -3
  66. package/lib/IconButton.js.map +1 -1
  67. package/lib/InteractiveList.d.ts +3 -3
  68. package/lib/InteractiveList.js +2 -3
  69. package/lib/InteractiveList.js.map +1 -1
  70. package/lib/InteractiveList.module.scss +1 -0
  71. package/lib/InteractiveListFormik.js +5 -4
  72. package/lib/InteractiveListFormik.js.map +1 -1
  73. package/lib/Link.d.ts +1 -65
  74. package/lib/Link.js +3 -4
  75. package/lib/Link.js.map +1 -1
  76. package/lib/Link.module.scss +7 -0
  77. package/lib/Loader.js +2 -2
  78. package/lib/Loader.js.map +1 -1
  79. package/lib/Loader.module.scss +10 -1
  80. package/lib/Modal.js +3 -3
  81. package/lib/Modal.js.map +1 -1
  82. package/lib/Modal.module.scss +1 -0
  83. package/lib/Notification.module.scss +1 -0
  84. package/lib/NumberField.d.ts +1 -0
  85. package/lib/NumberField.js +41 -13
  86. package/lib/NumberField.js.map +1 -1
  87. package/lib/NumberField.module.scss +40 -3
  88. package/lib/NumberFieldFormik.d.ts +2 -1
  89. package/lib/NumberFieldFormik.js +7 -4
  90. package/lib/NumberFieldFormik.js.map +1 -1
  91. package/lib/Overlay.d.ts +3 -2
  92. package/lib/Overlay.js +7 -5
  93. package/lib/Overlay.js.map +1 -1
  94. package/lib/Overlay.module.scss +18 -3
  95. package/lib/Pagination.d.ts +0 -3
  96. package/lib/Pagination.js +10 -13
  97. package/lib/Pagination.js.map +1 -1
  98. package/lib/Pagination.module.scss +3 -1
  99. package/lib/PasswordField.js +2 -2
  100. package/lib/PasswordField.js.map +1 -1
  101. package/lib/PasswordFieldFormik.d.ts +2 -1
  102. package/lib/PasswordFieldFormik.js +9 -4
  103. package/lib/PasswordFieldFormik.js.map +1 -1
  104. package/lib/Popover.d.ts +21 -0
  105. package/lib/Popover.js +77 -0
  106. package/lib/Popover.js.map +1 -0
  107. package/lib/Popover.module.scss +12 -0
  108. package/lib/Radio.d.ts +2 -2
  109. package/lib/Radio.js +4 -2
  110. package/lib/Radio.js.map +1 -1
  111. package/lib/Radio.module.scss +3 -0
  112. package/lib/RadioFormik.js +1 -1
  113. package/lib/RadioFormik.js.map +1 -1
  114. package/lib/RadioGroup.js +4 -3
  115. package/lib/RadioGroup.js.map +1 -1
  116. package/lib/RadioGroup.module.scss +1 -4
  117. package/lib/RadioGroupFormik.d.ts +2 -1
  118. package/lib/RadioGroupFormik.js +9 -4
  119. package/lib/RadioGroupFormik.js.map +1 -1
  120. package/lib/SegmentedControl.d.ts +8 -8
  121. package/lib/SegmentedControl.js.map +1 -1
  122. package/lib/SegmentedControl.module.scss +4 -2
  123. package/lib/SegmentedControlFormik.d.ts +4 -4
  124. package/lib/SegmentedControlFormik.js +1 -1
  125. package/lib/SegmentedControlFormik.js.map +1 -1
  126. package/lib/Select/CheckableSelectField.d.ts +34 -0
  127. package/lib/Select/CheckableSelectField.js +65 -0
  128. package/lib/Select/CheckableSelectField.js.map +1 -0
  129. package/lib/Select/CheckableSelectField.module.scss +87 -0
  130. package/lib/Select/CheckableSelectFieldFormik.d.ts +10 -0
  131. package/lib/Select/CheckableSelectFieldFormik.js +19 -0
  132. package/lib/Select/CheckableSelectFieldFormik.js.map +1 -0
  133. package/lib/Select/Common.d.ts +2 -0
  134. package/lib/Select/Common.js +10 -3
  135. package/lib/Select/Common.js.map +1 -1
  136. package/lib/Select/Common.module.scss +2 -0
  137. package/lib/Select/MultiSelectField.d.ts +5 -8
  138. package/lib/Select/MultiSelectField.js +13 -14
  139. package/lib/Select/MultiSelectField.js.map +1 -1
  140. package/lib/Select/MultiSelectField.module.scss +8 -0
  141. package/lib/Select/MultiSelectFieldFormik.d.ts +3 -2
  142. package/lib/Select/MultiSelectFieldFormik.js +11 -5
  143. package/lib/Select/MultiSelectFieldFormik.js.map +1 -1
  144. package/lib/Select/SelectField.d.ts +3 -7
  145. package/lib/Select/SelectField.js +8 -8
  146. package/lib/Select/SelectField.js.map +1 -1
  147. package/lib/Select/SelectField.module.scss +5 -5
  148. package/lib/Select/SelectFieldFormik.d.ts +3 -2
  149. package/lib/Select/SelectFieldFormik.js +10 -4
  150. package/lib/Select/SelectFieldFormik.js.map +1 -1
  151. package/lib/Select/helpers.d.ts +1 -2
  152. package/lib/Select/index.d.ts +7 -5
  153. package/lib/Select/index.js +7 -5
  154. package/lib/Select/index.js.map +1 -1
  155. package/lib/SimpleTable.js +7 -7
  156. package/lib/SimpleTable.js.map +1 -1
  157. package/lib/SimpleTable.module.scss +1 -1
  158. package/lib/Slider.d.ts +6 -5
  159. package/lib/Slider.js +35 -17
  160. package/lib/Slider.js.map +1 -1
  161. package/lib/Slider.module.scss +13 -9
  162. package/lib/SliderFormik.d.ts +1 -1
  163. package/lib/SliderFormik.js +1 -1
  164. package/lib/SliderFormik.js.map +1 -1
  165. package/lib/Table/Cell.module.scss +11 -4
  166. package/lib/Table/EnhancedRenderers.d.ts +0 -7
  167. package/lib/Table/EnhancedRenderers.js +3 -14
  168. package/lib/Table/EnhancedRenderers.js.map +1 -1
  169. package/lib/Table/Header.js +9 -3
  170. package/lib/Table/Header.js.map +1 -1
  171. package/lib/Table/Header.module.scss +29 -35
  172. package/lib/Table/Row.js +2 -7
  173. package/lib/Table/Row.js.map +1 -1
  174. package/lib/Table/Row.module.scss +4 -10
  175. package/lib/Table/Table.d.ts +10 -4
  176. package/lib/Table/Table.js +71 -31
  177. package/lib/Table/Table.js.map +1 -1
  178. package/lib/Table/Table.module.scss +5 -5
  179. package/lib/Tabs/Tab.d.ts +9 -1
  180. package/lib/Tabs/Tab.js +5 -2
  181. package/lib/Tabs/Tab.js.map +1 -1
  182. package/lib/Tabs/Tab.module.scss +5 -1
  183. package/lib/Tabs/TabList.js +2 -1
  184. package/lib/Tabs/TabList.js.map +1 -1
  185. package/lib/Tabs/index.d.ts +4 -4
  186. package/lib/Tabs/index.js +4 -4
  187. package/lib/Tabs/index.js.map +1 -1
  188. package/lib/Terminal.js +3 -3
  189. package/lib/Terminal.js.map +1 -1
  190. package/lib/Terminal.module.scss +1 -0
  191. package/lib/TextArea.d.ts +2 -5
  192. package/lib/TextArea.js +9 -9
  193. package/lib/TextArea.js.map +1 -1
  194. package/lib/TextArea.module.scss +15 -10
  195. package/lib/TextAreaFormik.js +1 -1
  196. package/lib/TextAreaFormik.js.map +1 -1
  197. package/lib/TextField.d.ts +13 -23
  198. package/lib/TextField.js +27 -12
  199. package/lib/TextField.js.map +1 -1
  200. package/lib/TextField.module.scss +36 -38
  201. package/lib/TextFieldFormik.d.ts +4 -2
  202. package/lib/TextFieldFormik.js +15 -4
  203. package/lib/TextFieldFormik.js.map +1 -1
  204. package/lib/TimeField.d.ts +2 -11
  205. package/lib/TimeField.js +8 -7
  206. package/lib/TimeField.js.map +1 -1
  207. package/lib/TimeField.module.scss +6 -6
  208. package/lib/TimeFieldFormik.js +1 -1
  209. package/lib/TimeFieldFormik.js.map +1 -1
  210. package/lib/Toast.js.map +1 -1
  211. package/lib/Toggle.js +4 -3
  212. package/lib/Toggle.js.map +1 -1
  213. package/lib/Toggle.module.scss +23 -19
  214. package/lib/ToggleFormik.js +1 -1
  215. package/lib/ToggleFormik.js.map +1 -1
  216. package/lib/Tooltip.d.ts +9 -2
  217. package/lib/Tooltip.js +87 -27
  218. package/lib/Tooltip.js.map +1 -1
  219. package/lib/Tooltip.module.scss +10 -5
  220. package/lib/TruncatedText.d.ts +6 -3
  221. package/lib/TruncatedText.js +2 -2
  222. package/lib/TruncatedText.js.map +1 -1
  223. package/lib/hooks/index.d.ts +5 -0
  224. package/lib/hooks/index.js +7 -0
  225. package/lib/hooks/index.js.map +1 -0
  226. package/lib/hooks/useIsMounted.d.ts +1 -0
  227. package/lib/hooks/useIsMounted.js +12 -0
  228. package/lib/hooks/useIsMounted.js.map +1 -0
  229. package/lib/hooks/useOnClickOutside.d.ts +8 -0
  230. package/lib/hooks/useOnClickOutside.js +24 -0
  231. package/lib/hooks/useOnClickOutside.js.map +1 -0
  232. package/lib/hooks/useOpenCloseState.d.ts +6 -0
  233. package/lib/hooks/useOpenCloseState.js +14 -0
  234. package/lib/hooks/useOpenCloseState.js.map +1 -0
  235. package/lib/hooks/usePrevious.d.ts +1 -0
  236. package/lib/hooks/usePrevious.js +9 -0
  237. package/lib/hooks/usePrevious.js.map +1 -0
  238. package/lib/hooks/useRefValue.d.ts +1 -0
  239. package/lib/hooks/useRefValue.js +9 -0
  240. package/lib/hooks/useRefValue.js.map +1 -0
  241. package/lib/hooks/useTableCustomizableColumns.d.ts +9 -0
  242. package/lib/hooks/useTableCustomizableColumns.js +23 -0
  243. package/lib/hooks/useTableCustomizableColumns.js.map +1 -0
  244. package/lib/index.d.ts +55 -53
  245. package/lib/index.js +55 -53
  246. package/lib/index.js.map +1 -1
  247. package/lib/utils/test.d.ts +1 -0
  248. package/lib/utils/test.js +8 -0
  249. package/lib/utils/test.js.map +1 -0
  250. package/package.json +57 -50
  251. package/styles/constants/_animations.scss +0 -1
  252. package/styles/constants/_colors.scss +1 -10
  253. package/styles/constants/_sizes.scss +6 -24
  254. package/styles/constants/_typography.scss +21 -10
  255. package/styles/constants/export.module.scss +1 -1
  256. package/styles/fonts.css +14 -65
  257. package/styles/helpers/_a11y.scss +8 -1
  258. package/styles/helpers/_error.scss +17 -0
  259. package/styles/helpers/_index.scss +1 -0
  260. package/styles/helpers/_input.scss +1 -1
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@hazelcast/ui",
3
- "version": "1.1.1",
3
+ "version": "1.3.0",
4
4
  "description": "Hazelcast design system components",
5
5
  "author": "",
6
6
  "homepage": "https://github.com/hazelcast/frontend-shared#readme",
7
7
  "license": "Apache-2.0",
8
8
  "main": "lib/index.js",
9
+ "module": "lib/index.js",
10
+ "sideEffects": false,
9
11
  "directories": {
10
12
  "lib": "lib",
11
13
  "test": "__tests__"
@@ -23,12 +25,13 @@
23
25
  },
24
26
  "scripts": {
25
27
  "compile": "shx rm -f *.tsbuildinfo && shx rm -rf lib && shx mkdir lib && shx cp -r src/* lib && shx rm -rf lib/*.{tsx,ts} && shx rm -rf lib/**/*.{tsx,ts} && tsc -p tsconfig.build.json",
26
- "test": "jest",
28
+ "test": "jest --maxWorkers=50%",
27
29
  "test:watch": "jest --watch",
28
30
  "start": "npm run storybook",
29
31
  "storybook": "start-storybook -p 6006",
30
32
  "build-storybook": "build-storybook",
31
33
  "publish-storybook": "chromatic --storybook-build-dir storybook-static --project-token $CHROMATIC_PROJECT_TOKEN --exit-zero-on-changes",
34
+ "chromatic": "chromatic --project-token=CHROMATIC_PROJECT_TOKEN",
32
35
  "test:visual": "loki --verboseRenderer --requireReference --reactUri file:./storybook-static --chromeFlags='--headless --disable-gpu --hide-scrollbars --no-sandbox --allow-file-access-from-files'",
33
36
  "test:visual:approve": "loki approve",
34
37
  "generate-screenshots": "npm run build-storybook && loki update --reactUri file:./storybook-static --chromeFlags='--headless --disable-gpu --hide-scrollbars --no-sandbox --allow-file-access-from-files'",
@@ -43,68 +46,72 @@
43
46
  "url": "https://github.com/hazelcast/frontend-shared/issues"
44
47
  },
45
48
  "dependencies": {
46
- "@codemirror/basic-setup": "0.18.0",
47
- "@codemirror/legacy-modes": "0.18.0",
48
- "@codemirror/stream-parser": "0.18.2",
49
- "@codemirror/view": "0.18.8",
50
- "@hazelcast/helpers": "^1.1.1",
51
- "@hazelcast/services": "^1.1.1",
52
- "@headlessui/react": "^1.2.0",
53
- "@icons-pack/react-simple-icons": "^3.13.0",
54
- "@popperjs/core": "^2.5.3",
49
+ "@codemirror/basic-setup": "^0.19.1",
50
+ "@codemirror/stream-parser": "^0.19.3",
51
+ "@codemirror/view": "^0.19.35",
52
+ "@hazelcast/helpers": "^1.3.0",
53
+ "@hazelcast/services": "^1.3.0",
54
+ "@headlessui/react": "^1.4.2",
55
+ "@icons-pack/react-simple-icons": "^4.6.1",
56
+ "@popperjs/core": "^2.11.0",
57
+ "@types/react-modal": "^3.13.1",
55
58
  "@types/react-select": "3.0.26",
56
- "@types/react-table": "^7.0.28",
57
- "classnames": "^2.2.6",
58
- "date-fns": "^2.16.1",
59
+ "@types/react-table": "^7.7.9",
60
+ "classnames": "^2.3.1",
61
+ "date-fns": "^2.27.0",
59
62
  "dequal": "^2.0.2",
60
- "formik": "^2.2.0",
61
- "rc-tooltip": "^4.2.3",
62
- "react-datepicker": "^3.4.1",
63
- "react-feather": "^2.0.8",
63
+ "focus-trap-react": "^8.9.0",
64
+ "formik": "^2.2.9",
65
+ "rc-tooltip": "^5.1.1",
66
+ "react-datepicker": "^4.5.0",
67
+ "react-feather": "^2.0.9",
64
68
  "react-merge-refs": "^1.1.0",
65
- "react-modal": "^3.12.1",
69
+ "react-modal": "^3.14.4",
66
70
  "react-popper": "^2.2.3",
67
- "react-resize-aware": "^3.1.0",
71
+ "react-resize-aware": "^3.1.1",
68
72
  "react-select": "^4.1.0",
69
- "react-table": "^7.6.3",
73
+ "react-table": "^7.7.0",
70
74
  "react-uid": "^2.3.1",
71
- "react-use": "^15.3.4",
75
+ "react-use": "^17.3.1",
72
76
  "use-deep-compare": "^1.1.0"
73
77
  },
74
78
  "devDependencies": {
75
- "@hazelcast/test-helpers": "^1.1.1",
76
- "@storybook/addon-docs": "6.1.21",
77
- "@storybook/addons": "6.1.21",
78
- "@storybook/preset-scss": "^1.0.2",
79
- "@storybook/react": "6.1.21",
80
- "@storybook/theming": "6.1.21",
81
- "@types/classnames": "^2.2.10",
82
- "@types/enzyme": "^3.10.8",
79
+ "@codemirror/legacy-modes": "0.19.0",
80
+ "@hazelcast/test-helpers": "^1.3.0",
81
+ "@storybook/addon-docs": "^6.4.9",
82
+ "@storybook/addons": "^6.4.9",
83
+ "@storybook/builder-webpack5": "^6.4.9",
84
+ "@storybook/manager-webpack5": "^6.4.9",
85
+ "@storybook/preset-scss": "^1.0.3",
86
+ "@storybook/react": "^6.4.9",
87
+ "@storybook/theming": "^6.4.9",
88
+ "@types/classnames": "^2.3.1",
89
+ "@types/enzyme": "^3.10.10",
83
90
  "@types/enzyme-adapter-react-16": "^1.0.6",
84
- "@types/react": "^16.14.4",
85
- "@types/react-datepicker": "^3.1.3",
86
- "@types/react-dom": "^16.9.11",
87
- "@types/react-modal": "^3.10.6",
91
+ "@types/jest-axe": "^3.5.3",
92
+ "@types/react": "^16.14.21",
93
+ "@types/react-datepicker": "^4.3.2",
94
+ "@types/react-dom": "^16.9.14",
88
95
  "doiuse": "^4.2.0",
89
96
  "enzyme": "^3.11.0",
90
- "enzyme-adapter-react-16": "^1.15.5",
97
+ "enzyme-adapter-react-16": "^1.15.6",
98
+ "jest-axe": "^5.0.1",
91
99
  "loki": "^0.28.1",
92
- "postcss": "^8.1.1",
93
- "postcss-cli": "^8.1.0",
94
- "postcss-reporter": "^7.0.1",
95
- "postcss-scss": "^3.0.2",
100
+ "postcss": "^8.4.5",
101
+ "postcss-cli": "^9.1.0",
102
+ "postcss-reporter": "^7.0.4",
103
+ "postcss-scss": "^4.0.2",
96
104
  "react": "^16.14.0",
97
105
  "react-dom": "^16.14.0",
98
- "storybook-addon-designs": "5.4.2",
99
- "stylelint": "^13.7.2",
100
- "stylelint-config-prettier": "^8.0.2",
101
- "stylelint-config-standard": "^20.0.0",
102
- "stylelint-scss": "^3.18.0",
103
- "yup": "^0.32.9"
106
+ "storybook-addon-designs": "^6.2.0",
107
+ "stylelint": "^14.1.0",
108
+ "stylelint-config-prettier": "^9.0.3",
109
+ "stylelint-config-standard": "^24.0.0",
110
+ "stylelint-config-standard-scss": "^3.0.0",
111
+ "stylelint-prettier": "^2.0.0",
112
+ "stylelint-scss": "^4.0.1",
113
+ "webpack": "^5.65.0",
114
+ "yup": "^0.32.11"
104
115
  },
105
- "peerDependencies": {
106
- "react": "^16.14.0",
107
- "react-dom": "^16.14.0"
108
- },
109
- "gitHead": "5a0535dc082f67640534d78d666ccc9e720828b4"
116
+ "gitHead": "7cd01422db092f9a01102d2ab48d6c3cfcdb6e70"
110
117
  }
@@ -1,5 +1,4 @@
1
1
  // animation globals
2
2
 
3
3
  $transitionTimeMedium: 0.2s;
4
-
5
4
  $durationLoader: 1.6s;
@@ -2,34 +2,25 @@
2
2
  $colorPrimaryLight: #2d7de4 !default;
3
3
  $colorPrimary: #2160c0 !default;
4
4
  $colorPrimaryDark: #003b87 !default;
5
-
6
5
  $colorNeutralWhite: #fff !default;
7
6
  $colorNeutralLighter: #fafafa !default;
8
7
  $colorNeutralLight: #b7c1cb !default;
9
8
  $colorNeutral: #dbdbdb !default;
10
-
11
9
  $colorSuccessLight: #68c200 !default;
12
10
  $colorSuccess: #008a00 !default;
13
11
  $colorSuccessDark: #005c09 !default;
14
-
15
12
  $colorInfoLight: #cbdbff !default;
16
13
  $colorInfo: #87a7ee !default;
17
14
  $colorInfoDark: #4a71c4 !default;
18
-
19
15
  $colorWarningLight: #f9b721 !default;
20
16
  $colorWarning: #f47027 !default;
21
17
  $colorWarningDark: #ad6200 !default;
22
-
23
18
  $colorErrorLight: #e75851 !default;
24
19
  $colorError: #b00020 !default;
25
20
  $colorErrorDark: #891b15 !default;
26
-
27
21
  $colorText: #041a3b !default;
28
22
  $colorTextSecondary: #707482 !default;
29
23
  $colorTextSubdued: #69707d !default;
30
-
31
24
  $colorOverlayBackground: #f2f5f9 !default;
32
-
33
25
  $colorAccessibilityOutline: #9648bd !default;
34
-
35
- $colorShadow: rgba(53, 61, 73, 0.2) !default;
26
+ $colorShadow: rgb(53 61 73 / 20%) !default;
@@ -4,53 +4,37 @@
4
4
  // Any spacing should be expressed as a multiplier if $grid
5
5
 
6
6
  $grid: 0.25rem !default;
7
-
8
7
  $alertWidth: 350px !default;
9
-
10
8
  $borderRadius: $grid * 1.25 !default;
11
9
  $borderRadiusButtonSmall: $grid * 5 !default;
12
-
13
10
  $borderRadiusToast: 37px !default;
14
-
15
11
  $borderRadiusBadge: 37px !default;
16
-
17
12
  $borderRadiusTimeField: 3px !default;
18
13
 
19
14
  // It does not make sense to express separator width in REMs since we do not need it to scale with the base font size
20
15
  $separatorWidth: 1px !default;
21
-
22
16
  $borderWidth: 1px !default;
23
17
  $borderWidthButton: 1px !default;
24
-
25
18
  $outlineWidth: 2px !default;
26
-
27
19
  $iconStrokeWidth: 1.5px !default;
28
20
  $iconStrokeWidthBold: 3px !default;
29
-
30
21
  $iconSizeSmall: $grid * 4 !default;
31
22
  $iconSizeSmallMedium: $grid * 5 !default;
32
23
  $iconSizeMedium: $grid * 6 !default;
33
24
  $iconSizeLarge: $grid * 10 !default;
34
25
  $iconSizeXLarge: $grid * 12 !default;
35
-
36
26
  $tooltipArrowSize: 6px !default;
37
-
38
27
  $tooltipMaxWidth: 550px !default;
39
-
40
28
  $buttonMaxWidth: 370px !default;
41
-
42
29
  $toastMaxWidth: 580px !default;
43
-
44
30
  $inputHeight: $grid * 10 !default;
45
31
  $inputHeightSmall: $grid * 7.5 !default;
46
-
47
32
  $cardShadowSize: 1px !default;
48
33
  $cardShadowBlur: 4px !default;
49
-
50
34
  $selectMenuShadowSize: 1px !default;
51
35
  $selectMenuShadowBlur: 4px !default;
52
36
 
53
- //Overlay
37
+ // Overlay
54
38
  $overlayContentMaxWidth: 1000px;
55
39
 
56
40
  // Modal
@@ -65,22 +49,20 @@ $dialogMinHeight: 200px !default;
65
49
 
66
50
  // border radius on left/right size of the progress tracker
67
51
  $sliderTrackBorderRadius: $grid * 2;
52
+
68
53
  // height of the track
69
54
  $slideTrackHeight: $grid * 2;
70
55
  $sliderThumbBorderSize: $grid * 1.5; // in rem
71
56
  $sliderThumbHoverBorderSize: 1px;
72
-
73
57
  $sliderThumbShadowSize: 1px;
74
58
  $sliderThumbShadowBlur: $grid;
75
59
  $sliderFillBorderSize: 1px;
76
-
77
- $emptyStateMaxWidth: 960px !important;
78
60
  $emptyStateButtonMinWidthNormal: 120px !default;
79
61
  $emptyStateButtonMinWidthLarge: 140px !default;
80
-
81
62
  $borderRadiusNotification: 3px;
82
63
 
83
64
  // Table column widths
84
- $tableColumnMinWidth: 30;
85
- $tableColumnWidth: 150;
86
- $tableColumnMaxWidth: 200;
65
+ $tableColumnMinWidth: 60;
66
+ $tableColumnWidth: 170;
67
+ $tableColumnMaxWidth: 600;
68
+ $errorHeight: $grid * 4.75;
@@ -1,12 +1,11 @@
1
- $fontFamilyHeading: 'Ubuntu', sans-serif !default;
1
+ $fontFamilyHeading: 'Roboto', 'Helvetica', 'Arial', sans-serif !default;
2
2
  $fontWeightHeadingLight: 300 !default;
3
3
  $fontWeightHeadingRegular: 400 !default;
4
4
  $fontWeightHeadingBold: 500 !default;
5
-
6
- $fontFamilyText: 'Open Sans', sans-serif !default;
5
+ $fontFamilyText: 'Roboto', 'Helvetica', 'Arial', sans-serif !default;
7
6
  $fontWeightTextLight: 300 !default;
8
7
  $fontWeightTextRegular: 400 !default;
9
- $fontWeightTextBold: 600 !default;
8
+ $fontWeightTextBold: 500 !default;
10
9
 
11
10
  // https://www.figma.com/file/8mVm6LTbp2Z0RaWWjTZoft/%F0%9F%90%9DHIVE?node-id=0%3A136
12
11
  $fontSizeH1: 2rem !default;
@@ -18,7 +17,6 @@ $fontSizeBodyNormal: 1rem !default;
18
17
  $fontSizeBodySmall: 0.875rem !default;
19
18
  $fontSizeBodySmaller: 0.75rem !default;
20
19
  $fontSizeBodyTiny: 0.625rem !default;
21
-
22
20
  $letterSpacingH1: 0.25px !default;
23
21
  $letterSpacingH2: 0 !default;
24
22
  $letterSpacingH3: 0.15px !default;
@@ -28,7 +26,6 @@ $letterSpacingBodyNormal: 0.5px !default;
28
26
  $letterSpacingBodySmall: 0.25px !default;
29
27
  $letterSpacingBodySmaller: normal !default;
30
28
  $letterSpacingBodyTiny: normal !default;
31
-
32
29
  $lineHeightH1: normal !default;
33
30
  $lineHeightH2: normal !default;
34
31
  $lineHeightH3: normal !default;
@@ -39,33 +36,37 @@ $lineHeightBodySmaller: normal !default;
39
36
  $lineHeightBodyTiny: normal !default;
40
37
 
41
38
  @function override($override: false) {
42
- @if ($override) {
39
+ @if $override {
43
40
  @return '!important';
44
41
  }
42
+
45
43
  @return '';
46
44
  }
47
45
 
48
46
  @mixin typographyH1($override: false) {
49
- font-family: $fontFamilyHeading #{override($override)}; /* stylelint-disable-line font-family-no-missing-generic-family-keyword */
47
+ font-family: $fontFamilyHeading #{override($override)};
50
48
  font-weight: $fontWeightHeadingBold #{override($override)};
51
49
  font-size: $fontSizeH1 #{override($override)};
52
50
  letter-spacing: $letterSpacingH1 #{override($override)};
53
51
  line-height: $lineHeightH1 #{override($override)};
54
52
  }
53
+
55
54
  @mixin typographyH2($override: false) {
56
- font-family: $fontFamilyHeading #{override($override)}; /* stylelint-disable-line font-family-no-missing-generic-family-keyword */
55
+ font-family: $fontFamilyHeading #{override($override)};
57
56
  font-weight: $fontWeightHeadingBold #{override($override)};
58
57
  font-size: $fontSizeH2 #{override($override)};
59
58
  letter-spacing: $letterSpacingH2 #{override($override)};
60
59
  line-height: $lineHeightH2 #{override($override)};
61
60
  }
61
+
62
62
  @mixin typographyH3($override: false) {
63
- font-family: $fontFamilyHeading #{override($override)}; /* stylelint-disable-line font-family-no-missing-generic-family-keyword */
63
+ font-family: $fontFamilyHeading #{override($override)};
64
64
  font-weight: $fontWeightHeadingBold #{override($override)};
65
65
  font-size: $fontSizeH3 #{override($override)};
66
66
  letter-spacing: $letterSpacingH3 #{override($override)};
67
67
  line-height: $lineHeightH3 #{override($override)};
68
68
  }
69
+
69
70
  @mixin typographyButton($size: 'medium') {
70
71
  font-family: $fontFamilyText;
71
72
  line-height: $lineHeightButton;
@@ -75,23 +76,28 @@ $lineHeightBodyTiny: normal !default;
75
76
  font-size: $fontSizeButton;
76
77
  letter-spacing: $letterSpacingButton;
77
78
  }
79
+
78
80
  @if $size == 'small' {
79
81
  font-weight: $fontWeightTextRegular;
80
82
  font-size: $fontSizeButtonSmall;
81
83
  letter-spacing: $letterSpacingButtonSmall;
82
84
  }
83
85
  }
86
+
84
87
  @mixin typographyBodyWeight($weight: 'regular') {
85
88
  @if $weight == 'regular' {
86
89
  font-weight: $fontWeightTextRegular;
87
90
  }
91
+
88
92
  @if $weight == 'bold' {
89
93
  font-weight: $fontWeightTextBold;
90
94
  }
95
+
91
96
  @if $weight == 'light' {
92
97
  font-weight: $fontWeightTextLight;
93
98
  }
94
99
  }
100
+
95
101
  @mixin typographyBodyNormal($weight: 'regular') {
96
102
  font-family: $fontFamilyText;
97
103
  font-size: $fontSizeBodyNormal;
@@ -100,6 +106,7 @@ $lineHeightBodyTiny: normal !default;
100
106
 
101
107
  @include typographyBodyWeight($weight);
102
108
  }
109
+
103
110
  @mixin typographyBodySmall($weight: 'regular') {
104
111
  font-family: $fontFamilyText;
105
112
  font-size: $fontSizeBodySmall;
@@ -108,6 +115,7 @@ $lineHeightBodyTiny: normal !default;
108
115
 
109
116
  @include typographyBodyWeight($weight);
110
117
  }
118
+
111
119
  @mixin typographyBodySmaller($weight: 'regular') {
112
120
  font-family: $fontFamilyText;
113
121
  font-size: $fontSizeBodySmaller;
@@ -116,6 +124,7 @@ $lineHeightBodyTiny: normal !default;
116
124
 
117
125
  @include typographyBodyWeight($weight);
118
126
  }
127
+
119
128
  @mixin typographyBodyTiny($weight: 'regular') {
120
129
  font-family: $fontFamilyText;
121
130
  font-size: $fontSizeBodyTiny;
@@ -131,9 +140,11 @@ $lineHeightBodyTiny: normal !default;
131
140
  h1 {
132
141
  @include typographyH1($override);
133
142
  }
143
+
134
144
  h2 {
135
145
  @include typographyH2($override);
136
146
  }
147
+
137
148
  h3 {
138
149
  @include typographyH3($override);
139
150
  }
@@ -1,4 +1,4 @@
1
- @use "sass:meta";
1
+ @use 'sass:meta';
2
2
  @use '.' as c;
3
3
 
4
4
  :export {
package/styles/fonts.css CHANGED
@@ -1,77 +1,26 @@
1
- /* Generated with https://google-webfonts-helper.herokuapp.com/fonts */
2
-
3
- /* ubuntu-300 - latin */
1
+ /* roboto-300 - latin */
4
2
  @font-face {
5
- font-family: 'Ubuntu';
3
+ font-family: Roboto;
6
4
  font-style: normal;
7
5
  font-weight: 300;
8
- src: url('../assets/ubuntu-v15-latin-300.eot'); /* IE9 Compat Modes */
9
- src: local('Ubuntu Light'), local('Ubuntu-Light'), url('../assets/ubuntu-v15-latin-300.eot?#iefix') format('embedded-opentype'),
10
- /* IE6-IE8 */ url('../assets/ubuntu-v15-latin-300.woff2') format('woff2'),
11
- /* Super Modern Browsers */ url('../assets/ubuntu-v15-latin-300.woff') format('woff'),
12
- /* Modern Browsers */ url('../assets/ubuntu-v15-latin-300.ttf') format('truetype'),
13
- /* Safari, Android, iOS */ url('../assets/ubuntu-v15-latin-300.svg#Ubuntu') format('svg'); /* Legacy iOS */
14
- }
15
- /* ubuntu-regular - latin */
16
- @font-face {
17
- font-family: 'Ubuntu';
18
- font-style: normal;
19
- font-weight: 400;
20
- src: url('../assets/ubuntu-v15-latin-regular.eot'); /* IE9 Compat Modes */
21
- src: local('Ubuntu Regular'), local('Ubuntu-Regular'), url('../assets/ubuntu-v15-latin-regular.eot?#iefix') format('embedded-opentype'),
22
- /* IE6-IE8 */ url('../assets/ubuntu-v15-latin-regular.woff2') format('woff2'),
23
- /* Super Modern Browsers */ url('../assets/ubuntu-v15-latin-regular.woff') format('woff'),
24
- /* Modern Browsers */ url('../assets/ubuntu-v15-latin-regular.ttf') format('truetype'),
25
- /* Safari, Android, iOS */ url('../assets/ubuntu-v15-latin-regular.svg#Ubuntu') format('svg'); /* Legacy iOS */
26
- }
27
- /* ubuntu-500 - latin */
28
- @font-face {
29
- font-family: 'Ubuntu';
30
- font-style: normal;
31
- font-weight: 500;
32
- src: url('../assets/ubuntu-v15-latin-500.eot'); /* IE9 Compat Modes */
33
- src: local('Ubuntu Medium'), local('Ubuntu-Medium'), url('../assets/ubuntu-v15-latin-500.eot?#iefix') format('embedded-opentype'),
34
- /* IE6-IE8 */ url('../assets/ubuntu-v15-latin-500.woff2') format('woff2'),
35
- /* Super Modern Browsers */ url('../assets/ubuntu-v15-latin-500.woff') format('woff'),
36
- /* Modern Browsers */ url('../assets/ubuntu-v15-latin-500.ttf') format('truetype'),
37
- /* Safari, Android, iOS */ url('../assets/ubuntu-v15-latin-500.svg#Ubuntu') format('svg'); /* Legacy iOS */
6
+ src: url('../fonts/roboto-v27-latin-300.woff2') format('woff2'), url('../fonts/roboto-v27-latin-300.woff') format('woff'),
7
+ url('../fonts/roboto-v27-latin-300.ttf') format('truetype'), url('../fonts/roboto-v27-latin-300.svg#Roboto') format('svg'); /* Legacy iOS */
38
8
  }
39
9
 
40
- /* open-sans-300 - latin */
10
+ /* roboto-regular - latin */
41
11
  @font-face {
42
- font-family: 'Open Sans';
43
- font-style: normal;
44
- font-weight: 300;
45
- src: url('../assets/open-sans-v18-latin-300.eot'); /* IE9 Compat Modes */
46
- src: local('Open Sans Light'), local('OpenSans-Light'), url('../assets/open-sans-v18-latin-300.eot?#iefix') format('embedded-opentype'),
47
- /* IE6-IE8 */ url('../assets/open-sans-v18-latin-300.woff2') format('woff2'),
48
- /* Super Modern Browsers */ url('../assets/open-sans-v18-latin-300.woff') format('woff'),
49
- /* Modern Browsers */ url('../assets/open-sans-v18-latin-300.ttf') format('truetype'),
50
- /* Safari, Android, iOS */ url('../assets/open-sans-v18-latin-300.svg#OpenSans') format('svg'); /* Legacy iOS */
51
- }
52
- /* open-sans-regular - latin */
53
- @font-face {
54
- font-family: 'Open Sans';
12
+ font-family: Roboto;
55
13
  font-style: normal;
56
14
  font-weight: 400;
57
- src: url('../assets/open-sans-v18-latin-regular.eot'); /* IE9 Compat Modes */
58
- src: local('Open Sans Regular'), local('OpenSans-Regular'),
59
- url('../assets/open-sans-v18-latin-regular.eot?#iefix') format('embedded-opentype'),
60
- /* IE6-IE8 */ url('../assets/open-sans-v18-latin-regular.woff2') format('woff2'),
61
- /* Super Modern Browsers */ url('../assets/open-sans-v18-latin-regular.woff') format('woff'),
62
- /* Modern Browsers */ url('../assets/open-sans-v18-latin-regular.ttf') format('truetype'),
63
- /* Safari, Android, iOS */ url('../assets/open-sans-v18-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
15
+ src: url('../fonts/roboto-v27-latin-regular.woff2') format('woff2'), url('../fonts/roboto-v27-latin-regular.woff') format('woff'),
16
+ url('../fonts/roboto-v27-latin-regular.ttf') format('truetype'), url('../fonts/roboto-v27-latin-regular.svg#Roboto') format('svg'); /* Legacy iOS */
64
17
  }
65
- /* open-sans-600 - latin */
18
+
19
+ /* roboto-500 - latin */
66
20
  @font-face {
67
- font-family: 'Open Sans';
21
+ font-family: Roboto;
68
22
  font-style: normal;
69
- font-weight: 600;
70
- src: url('../assets/open-sans-v18-latin-600.eot'); /* IE9 Compat Modes */
71
- src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'),
72
- url('../assets/open-sans-v18-latin-600.eot?#iefix') format('embedded-opentype'),
73
- /* IE6-IE8 */ url('../assets/open-sans-v18-latin-600.woff2') format('woff2'),
74
- /* Super Modern Browsers */ url('../assets/open-sans-v18-latin-600.woff') format('woff'),
75
- /* Modern Browsers */ url('../assets/open-sans-v18-latin-600.ttf') format('truetype'),
76
- /* Safari, Android, iOS */ url('../assets/open-sans-v18-latin-600.svg#OpenSans') format('svg'); /* Legacy iOS */
23
+ font-weight: 500;
24
+ src: url('../fonts/roboto-v27-latin-500.woff2') format('woff2'), url('../fonts/roboto-v27-latin-500.woff') format('woff'),
25
+ url('../fonts/roboto-v27-latin-500.ttf') format('truetype'), url('../fonts/roboto-v27-latin-500.svg#Roboto') format('svg'); /* Legacy iOS */
77
26
  }
@@ -4,9 +4,15 @@
4
4
  box-shadow: inset 0 0 0 c.$outlineWidth c.$colorAccessibilityOutline;
5
5
  }
6
6
 
7
+ @mixin outlineAround {
8
+ box-shadow: 0 0 0 c.$outlineWidth c.$colorAccessibilityOutline;
9
+ }
10
+
7
11
  @mixin outlineFormField {
8
12
  border-color: c.$colorAccessibilityOutline;
9
- // Border is also colored with the a11y color. We need to make the total visible outline width c.$outlineWidth, including the border
13
+
14
+ // Border is also colored with the a11y color. We need to make the total visible outline width c.$outlineWidth,
15
+ // including the border
10
16
  box-shadow: inset 0 0 0 (c.$outlineWidth - c.$borderWidth) c.$colorAccessibilityOutline;
11
17
 
12
18
  // Do not remove outline for high-contrast modes
@@ -25,6 +31,7 @@
25
31
  overflow: hidden;
26
32
  border: 0;
27
33
  white-space: nowrap;
34
+
28
35
  // Without explicit top and left it causes rendering a scrollbar
29
36
  top: 1px;
30
37
  left: 1px;
@@ -0,0 +1,17 @@
1
+ @use '../constants' as c;
2
+
3
+ @mixin withError {
4
+ .withError {
5
+ position: relative;
6
+ padding-bottom: c.$errorHeight + c.$grid;
7
+
8
+ .errorContainer {
9
+ position: absolute;
10
+ bottom: 0;
11
+ left: 0;
12
+ overflow: hidden;
13
+ height: c.$errorHeight;
14
+ width: 100%;
15
+ }
16
+ }
17
+ }
@@ -1,3 +1,4 @@
1
1
  @forward './a11y';
2
2
  @forward './input';
3
3
  @forward './text';
4
+ @forward './error';
@@ -3,7 +3,7 @@
3
3
  /* doiuse-disable css-appearance */
4
4
  appearance: menulist-button;
5
5
  /* doiuse-enable css-appearance */
6
- background-color: rgb(232, 240, 254) !important;
6
+ background-color: rgb(232 240 254) !important;
7
7
  background-image: none !important;
8
8
  color: -internal-light-dark(black, white) !important;
9
9
  }