@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.
- package/lib/Alert.d.ts +3 -2
- package/lib/Alert.js +23 -22
- package/lib/Alert.js.map +1 -1
- package/lib/Alert.module.scss +14 -6
- package/lib/AutocompleteField.d.ts +2 -1
- package/lib/AutocompleteField.js +45 -22
- package/lib/AutocompleteField.js.map +1 -1
- package/lib/AutocompleteField.module.scss +3 -5
- package/lib/AutocompleteFieldFormik.d.ts +2 -1
- package/lib/AutocompleteFieldFormik.js +11 -5
- package/lib/AutocompleteFieldFormik.js.map +1 -1
- package/lib/Button.d.ts +9 -294
- package/lib/Button.js +41 -14
- package/lib/Button.js.map +1 -1
- package/lib/Button.module.scss +120 -87
- package/lib/Calendar/Calendar.d.ts +1 -1
- package/lib/Calendar/Calendar.js +8 -3
- package/lib/Calendar/Calendar.js.map +1 -1
- package/lib/Calendar/Calendar.module.scss +134 -123
- package/lib/Calendar/components/CalendarHeader.tsx +45 -0
- package/lib/Calendar/components/CalendarInput.js +2 -2
- package/lib/Calendar/components/CalendarInput.js.map +1 -1
- package/lib/Calendar/components/CalendarInput.tsx +50 -0
- package/lib/Calendar/components/CalendarTime.js +2 -2
- package/lib/Calendar/components/CalendarTime.js.map +1 -1
- package/lib/Calendar/components/CalendarTime.module.scss +2 -0
- package/lib/Calendar/components/CalendarTime.tsx +117 -0
- package/lib/Calendar/helpers/consts.ts +99 -0
- package/lib/Card.d.ts +1 -0
- package/lib/Card.js +4 -3
- package/lib/Card.js.map +1 -1
- package/lib/Card.module.scss +16 -4
- package/lib/Checkbox.d.ts +2 -2
- package/lib/Checkbox.js +7 -4
- package/lib/Checkbox.js.map +1 -1
- package/lib/Checkbox.module.scss +17 -6
- package/lib/CheckboxFormik.d.ts +2 -1
- package/lib/CheckboxFormik.js +9 -4
- package/lib/CheckboxFormik.js.map +1 -1
- package/lib/CodeEditor.d.ts +3 -2
- package/lib/CodeEditor.js +4 -3
- package/lib/CodeEditor.js.map +1 -1
- package/lib/CodeEditor.module.scss +5 -2
- package/lib/CodeEditorFormik.js +2 -2
- package/lib/CodeEditorFormik.js.map +1 -1
- package/lib/Dialog.js +5 -2
- package/lib/Dialog.js.map +1 -1
- package/lib/Dialog.module.scss +3 -0
- package/lib/EmptyState.d.ts +6 -4
- package/lib/EmptyState.js +4 -6
- package/lib/EmptyState.js.map +1 -1
- package/lib/EmptyState.module.scss +1 -1
- package/lib/Error.d.ts +3 -0
- package/lib/Error.js +2 -1
- package/lib/Error.js.map +1 -1
- package/lib/FieldHeader.d.ts +20 -0
- package/lib/FieldHeader.js +15 -0
- package/lib/FieldHeader.js.map +1 -0
- package/lib/FieldHeader.module.scss +20 -0
- package/lib/Icon.d.ts +2 -35
- package/lib/Icon.js +1 -1
- package/lib/Icon.js.map +1 -1
- package/lib/Icon.module.scss +5 -0
- package/lib/IconButton.d.ts +6 -158
- package/lib/IconButton.js +3 -3
- package/lib/IconButton.js.map +1 -1
- package/lib/InteractiveList.d.ts +3 -3
- package/lib/InteractiveList.js +2 -3
- package/lib/InteractiveList.js.map +1 -1
- package/lib/InteractiveList.module.scss +1 -0
- package/lib/InteractiveListFormik.js +5 -4
- package/lib/InteractiveListFormik.js.map +1 -1
- package/lib/Link.d.ts +1 -65
- package/lib/Link.js +3 -4
- package/lib/Link.js.map +1 -1
- package/lib/Link.module.scss +7 -0
- package/lib/Loader.js +2 -2
- package/lib/Loader.js.map +1 -1
- package/lib/Loader.module.scss +10 -1
- package/lib/Modal.js +3 -3
- package/lib/Modal.js.map +1 -1
- package/lib/Modal.module.scss +1 -0
- package/lib/Notification.module.scss +1 -0
- package/lib/NumberField.d.ts +1 -0
- package/lib/NumberField.js +41 -13
- package/lib/NumberField.js.map +1 -1
- package/lib/NumberField.module.scss +40 -3
- package/lib/NumberFieldFormik.d.ts +2 -1
- package/lib/NumberFieldFormik.js +7 -4
- package/lib/NumberFieldFormik.js.map +1 -1
- package/lib/Overlay.d.ts +3 -2
- package/lib/Overlay.js +7 -5
- package/lib/Overlay.js.map +1 -1
- package/lib/Overlay.module.scss +18 -3
- package/lib/Pagination.d.ts +0 -3
- package/lib/Pagination.js +10 -13
- package/lib/Pagination.js.map +1 -1
- package/lib/Pagination.module.scss +3 -1
- package/lib/PasswordField.js +2 -2
- package/lib/PasswordField.js.map +1 -1
- package/lib/PasswordFieldFormik.d.ts +2 -1
- package/lib/PasswordFieldFormik.js +9 -4
- package/lib/PasswordFieldFormik.js.map +1 -1
- package/lib/Popover.d.ts +21 -0
- package/lib/Popover.js +77 -0
- package/lib/Popover.js.map +1 -0
- package/lib/Popover.module.scss +12 -0
- package/lib/Radio.d.ts +2 -2
- package/lib/Radio.js +4 -2
- package/lib/Radio.js.map +1 -1
- package/lib/Radio.module.scss +3 -0
- package/lib/RadioFormik.js +1 -1
- package/lib/RadioFormik.js.map +1 -1
- package/lib/RadioGroup.js +4 -3
- package/lib/RadioGroup.js.map +1 -1
- package/lib/RadioGroup.module.scss +1 -4
- package/lib/RadioGroupFormik.d.ts +2 -1
- package/lib/RadioGroupFormik.js +9 -4
- package/lib/RadioGroupFormik.js.map +1 -1
- package/lib/SegmentedControl.d.ts +8 -8
- package/lib/SegmentedControl.js.map +1 -1
- package/lib/SegmentedControl.module.scss +4 -2
- package/lib/SegmentedControlFormik.d.ts +4 -4
- package/lib/SegmentedControlFormik.js +1 -1
- package/lib/SegmentedControlFormik.js.map +1 -1
- package/lib/Select/CheckableSelectField.d.ts +34 -0
- package/lib/Select/CheckableSelectField.js +65 -0
- package/lib/Select/CheckableSelectField.js.map +1 -0
- package/lib/Select/CheckableSelectField.module.scss +87 -0
- package/lib/Select/CheckableSelectFieldFormik.d.ts +10 -0
- package/lib/Select/CheckableSelectFieldFormik.js +19 -0
- package/lib/Select/CheckableSelectFieldFormik.js.map +1 -0
- package/lib/Select/Common.d.ts +2 -0
- package/lib/Select/Common.js +10 -3
- package/lib/Select/Common.js.map +1 -1
- package/lib/Select/Common.module.scss +2 -0
- package/lib/Select/MultiSelectField.d.ts +5 -8
- package/lib/Select/MultiSelectField.js +13 -14
- package/lib/Select/MultiSelectField.js.map +1 -1
- package/lib/Select/MultiSelectField.module.scss +8 -0
- package/lib/Select/MultiSelectFieldFormik.d.ts +3 -2
- package/lib/Select/MultiSelectFieldFormik.js +11 -5
- package/lib/Select/MultiSelectFieldFormik.js.map +1 -1
- package/lib/Select/SelectField.d.ts +3 -7
- package/lib/Select/SelectField.js +8 -8
- package/lib/Select/SelectField.js.map +1 -1
- package/lib/Select/SelectField.module.scss +5 -5
- package/lib/Select/SelectFieldFormik.d.ts +3 -2
- package/lib/Select/SelectFieldFormik.js +10 -4
- package/lib/Select/SelectFieldFormik.js.map +1 -1
- package/lib/Select/helpers.d.ts +1 -2
- package/lib/Select/index.d.ts +7 -5
- package/lib/Select/index.js +7 -5
- package/lib/Select/index.js.map +1 -1
- package/lib/SimpleTable.js +7 -7
- package/lib/SimpleTable.js.map +1 -1
- package/lib/SimpleTable.module.scss +1 -1
- package/lib/Slider.d.ts +6 -5
- package/lib/Slider.js +35 -17
- package/lib/Slider.js.map +1 -1
- package/lib/Slider.module.scss +13 -9
- package/lib/SliderFormik.d.ts +1 -1
- package/lib/SliderFormik.js +1 -1
- package/lib/SliderFormik.js.map +1 -1
- package/lib/Table/Cell.module.scss +11 -4
- package/lib/Table/EnhancedRenderers.d.ts +0 -7
- package/lib/Table/EnhancedRenderers.js +3 -14
- package/lib/Table/EnhancedRenderers.js.map +1 -1
- package/lib/Table/Header.js +9 -3
- package/lib/Table/Header.js.map +1 -1
- package/lib/Table/Header.module.scss +29 -35
- package/lib/Table/Row.js +2 -7
- package/lib/Table/Row.js.map +1 -1
- package/lib/Table/Row.module.scss +4 -10
- package/lib/Table/Table.d.ts +10 -4
- package/lib/Table/Table.js +71 -31
- package/lib/Table/Table.js.map +1 -1
- package/lib/Table/Table.module.scss +5 -5
- package/lib/Tabs/Tab.d.ts +9 -1
- package/lib/Tabs/Tab.js +5 -2
- package/lib/Tabs/Tab.js.map +1 -1
- package/lib/Tabs/Tab.module.scss +5 -1
- package/lib/Tabs/TabList.js +2 -1
- package/lib/Tabs/TabList.js.map +1 -1
- package/lib/Tabs/index.d.ts +4 -4
- package/lib/Tabs/index.js +4 -4
- package/lib/Tabs/index.js.map +1 -1
- package/lib/Terminal.js +3 -3
- package/lib/Terminal.js.map +1 -1
- package/lib/Terminal.module.scss +1 -0
- package/lib/TextArea.d.ts +2 -5
- package/lib/TextArea.js +9 -9
- package/lib/TextArea.js.map +1 -1
- package/lib/TextArea.module.scss +15 -10
- package/lib/TextAreaFormik.js +1 -1
- package/lib/TextAreaFormik.js.map +1 -1
- package/lib/TextField.d.ts +13 -23
- package/lib/TextField.js +27 -12
- package/lib/TextField.js.map +1 -1
- package/lib/TextField.module.scss +36 -38
- package/lib/TextFieldFormik.d.ts +4 -2
- package/lib/TextFieldFormik.js +15 -4
- package/lib/TextFieldFormik.js.map +1 -1
- package/lib/TimeField.d.ts +2 -11
- package/lib/TimeField.js +8 -7
- package/lib/TimeField.js.map +1 -1
- package/lib/TimeField.module.scss +6 -6
- package/lib/TimeFieldFormik.js +1 -1
- package/lib/TimeFieldFormik.js.map +1 -1
- package/lib/Toast.js.map +1 -1
- package/lib/Toggle.js +4 -3
- package/lib/Toggle.js.map +1 -1
- package/lib/Toggle.module.scss +23 -19
- package/lib/ToggleFormik.js +1 -1
- package/lib/ToggleFormik.js.map +1 -1
- package/lib/Tooltip.d.ts +9 -2
- package/lib/Tooltip.js +87 -27
- package/lib/Tooltip.js.map +1 -1
- package/lib/Tooltip.module.scss +10 -5
- package/lib/TruncatedText.d.ts +6 -3
- package/lib/TruncatedText.js +2 -2
- package/lib/TruncatedText.js.map +1 -1
- package/lib/hooks/index.d.ts +5 -0
- package/lib/hooks/index.js +7 -0
- package/lib/hooks/index.js.map +1 -0
- package/lib/hooks/useIsMounted.d.ts +1 -0
- package/lib/hooks/useIsMounted.js +12 -0
- package/lib/hooks/useIsMounted.js.map +1 -0
- package/lib/hooks/useOnClickOutside.d.ts +8 -0
- package/lib/hooks/useOnClickOutside.js +24 -0
- package/lib/hooks/useOnClickOutside.js.map +1 -0
- package/lib/hooks/useOpenCloseState.d.ts +6 -0
- package/lib/hooks/useOpenCloseState.js +14 -0
- package/lib/hooks/useOpenCloseState.js.map +1 -0
- package/lib/hooks/usePrevious.d.ts +1 -0
- package/lib/hooks/usePrevious.js +9 -0
- package/lib/hooks/usePrevious.js.map +1 -0
- package/lib/hooks/useRefValue.d.ts +1 -0
- package/lib/hooks/useRefValue.js +9 -0
- package/lib/hooks/useRefValue.js.map +1 -0
- package/lib/hooks/useTableCustomizableColumns.d.ts +9 -0
- package/lib/hooks/useTableCustomizableColumns.js +23 -0
- package/lib/hooks/useTableCustomizableColumns.js.map +1 -0
- package/lib/index.d.ts +55 -53
- package/lib/index.js +55 -53
- package/lib/index.js.map +1 -1
- package/lib/utils/test.d.ts +1 -0
- package/lib/utils/test.js +8 -0
- package/lib/utils/test.js.map +1 -0
- package/package.json +57 -50
- package/styles/constants/_animations.scss +0 -1
- package/styles/constants/_colors.scss +1 -10
- package/styles/constants/_sizes.scss +6 -24
- package/styles/constants/_typography.scss +21 -10
- package/styles/constants/export.module.scss +1 -1
- package/styles/fonts.css +14 -65
- package/styles/helpers/_a11y.scss +8 -1
- package/styles/helpers/_error.scss +17 -0
- package/styles/helpers/_index.scss +1 -0
- 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.
|
|
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.
|
|
47
|
-
"@codemirror/
|
|
48
|
-
"@codemirror/
|
|
49
|
-
"@
|
|
50
|
-
"@hazelcast/
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
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.
|
|
57
|
-
"classnames": "^2.
|
|
58
|
-
"date-fns": "^2.
|
|
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
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"react-
|
|
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.
|
|
69
|
+
"react-modal": "^3.14.4",
|
|
66
70
|
"react-popper": "^2.2.3",
|
|
67
|
-
"react-resize-aware": "^3.1.
|
|
71
|
+
"react-resize-aware": "^3.1.1",
|
|
68
72
|
"react-select": "^4.1.0",
|
|
69
|
-
"react-table": "^7.
|
|
73
|
+
"react-table": "^7.7.0",
|
|
70
74
|
"react-uid": "^2.3.1",
|
|
71
|
-
"react-use": "^
|
|
75
|
+
"react-use": "^17.3.1",
|
|
72
76
|
"use-deep-compare": "^1.1.0"
|
|
73
77
|
},
|
|
74
78
|
"devDependencies": {
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@storybook/
|
|
78
|
-
"@storybook/
|
|
79
|
-
"@storybook/
|
|
80
|
-
"@storybook/
|
|
81
|
-
"@
|
|
82
|
-
"@
|
|
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/
|
|
85
|
-
"@types/react
|
|
86
|
-
"@types/react-
|
|
87
|
-
"@types/react-
|
|
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.
|
|
97
|
+
"enzyme-adapter-react-16": "^1.15.6",
|
|
98
|
+
"jest-axe": "^5.0.1",
|
|
91
99
|
"loki": "^0.28.1",
|
|
92
|
-
"postcss": "^8.
|
|
93
|
-
"postcss-cli": "^
|
|
94
|
-
"postcss-reporter": "^7.0.
|
|
95
|
-
"postcss-scss": "^
|
|
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": "
|
|
99
|
-
"stylelint": "^
|
|
100
|
-
"stylelint-config-prettier": "^
|
|
101
|
-
"stylelint-config-standard": "^
|
|
102
|
-
"stylelint-scss": "^3.
|
|
103
|
-
"
|
|
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
|
-
"
|
|
106
|
-
"react": "^16.14.0",
|
|
107
|
-
"react-dom": "^16.14.0"
|
|
108
|
-
},
|
|
109
|
-
"gitHead": "5a0535dc082f67640534d78d666ccc9e720828b4"
|
|
116
|
+
"gitHead": "7cd01422db092f9a01102d2ab48d6c3cfcdb6e70"
|
|
110
117
|
}
|
|
@@ -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:
|
|
85
|
-
$tableColumnWidth:
|
|
86
|
-
$tableColumnMaxWidth:
|
|
65
|
+
$tableColumnMinWidth: 60;
|
|
66
|
+
$tableColumnWidth: 170;
|
|
67
|
+
$tableColumnMaxWidth: 600;
|
|
68
|
+
$errorHeight: $grid * 4.75;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
$fontFamilyHeading: '
|
|
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:
|
|
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
|
|
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)};
|
|
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)};
|
|
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)};
|
|
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
|
}
|
package/styles/fonts.css
CHANGED
|
@@ -1,77 +1,26 @@
|
|
|
1
|
-
/*
|
|
2
|
-
|
|
3
|
-
/* ubuntu-300 - latin */
|
|
1
|
+
/* roboto-300 - latin */
|
|
4
2
|
@font-face {
|
|
5
|
-
font-family:
|
|
3
|
+
font-family: Roboto;
|
|
6
4
|
font-style: normal;
|
|
7
5
|
font-weight: 300;
|
|
8
|
-
src: url('../
|
|
9
|
-
|
|
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
|
-
/*
|
|
10
|
+
/* roboto-regular - latin */
|
|
41
11
|
@font-face {
|
|
42
|
-
font-family:
|
|
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('../
|
|
58
|
-
|
|
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
|
-
|
|
18
|
+
|
|
19
|
+
/* roboto-500 - latin */
|
|
66
20
|
@font-face {
|
|
67
|
-
font-family:
|
|
21
|
+
font-family: Roboto;
|
|
68
22
|
font-style: normal;
|
|
69
|
-
font-weight:
|
|
70
|
-
src: url('../
|
|
71
|
-
|
|
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
|
-
|
|
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
|
+
}
|
|
@@ -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
|
|
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
|
}
|