grommet 2.33.1 → 2.33.2
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/components/Anchor/Anchor.js +2 -2
- package/components/Anchor/StyledAnchor.js +6 -6
- package/components/Box/Box.js +1 -1
- package/components/Button/Button.js +8 -8
- package/components/Button/StyledButtonKind.js +5 -5
- package/components/Calendar/Calendar.js +3 -3
- package/components/CheckBox/StyledCheckBox.js +8 -8
- package/components/Data/DataForm.js +15 -10
- package/components/Data/stories/Infinite.js +2 -2
- package/components/Data/stories/SpaceX.js +1 -1
- package/components/Data/stories/StarWars.js +1 -1
- package/components/DataChart/DataChart.js +4 -4
- package/components/DataChart/Detail.js +1 -1
- package/components/DataFilter/DataFilter.js +3 -3
- package/components/DataTable/Header.js +1 -1
- package/components/DataTable/buildState.js +8 -8
- package/components/DateInput/DateInput.js +1 -1
- package/components/DateInput/utils.js +2 -2
- package/components/Drop/DropContainer.js +2 -2
- package/components/FileInput/utils/formatBytes.js +2 -2
- package/components/FormField/FormField.js +1 -1
- package/components/Header/Header.js +4 -4
- package/components/Layer/Layer.js +4 -2
- package/components/List/List.js +5 -5
- package/components/MaskedInput/MaskedInput.js +2 -1
- package/components/Menu/Menu.js +7 -3
- package/components/NameValueList/NameValueList.js +2 -2
- package/components/NameValuePair/NameValuePair.js +2 -2
- package/components/Notification/Notification.js +3 -3
- package/components/RangeInput/StyledRangeInput.js +4 -4
- package/components/Select/EmptySearchOption.js +3 -3
- package/components/Select/StyledSelect.js +4 -4
- package/components/SelectMultiple/SelectMultiple.js +4 -4
- package/components/SelectMultiple/SelectMultipleContainer.js +1 -1
- package/components/Skeleton/Skeleton.js +1 -1
- package/components/Skeleton/StyledSkeleton.js +2 -2
- package/components/Tag/Tag.js +5 -5
- package/components/TextArea/StyledTextArea.js +1 -1
- package/components/ThumbsRating/ThumbsRating.js +6 -6
- package/components/Video/Video.js +2 -2
- package/contexts/AnalyticsContext/AnalyticsContext.js +2 -2
- package/es6/components/Anchor/Anchor.js +2 -2
- package/es6/components/Anchor/StyledAnchor.js +6 -6
- package/es6/components/Box/Box.js +1 -1
- package/es6/components/Button/Button.js +8 -8
- package/es6/components/Button/StyledButtonKind.js +5 -5
- package/es6/components/Calendar/Calendar.js +3 -3
- package/es6/components/CheckBox/StyledCheckBox.js +8 -8
- package/es6/components/Data/DataForm.js +15 -10
- package/es6/components/Data/stories/Infinite.js +2 -2
- package/es6/components/Data/stories/SpaceX.js +1 -1
- package/es6/components/Data/stories/StarWars.js +1 -1
- package/es6/components/DataChart/DataChart.js +4 -4
- package/es6/components/DataChart/Detail.js +1 -1
- package/es6/components/DataFilter/DataFilter.js +3 -3
- package/es6/components/DataTable/Header.js +1 -1
- package/es6/components/DataTable/buildState.js +8 -8
- package/es6/components/DateInput/DateInput.js +1 -1
- package/es6/components/DateInput/utils.js +2 -2
- package/es6/components/Drop/DropContainer.js +2 -2
- package/es6/components/FileInput/utils/formatBytes.js +2 -2
- package/es6/components/FormField/FormField.js +1 -1
- package/es6/components/Header/Header.js +4 -4
- package/es6/components/Layer/Layer.js +4 -2
- package/es6/components/List/List.js +5 -5
- package/es6/components/MaskedInput/MaskedInput.js +2 -1
- package/es6/components/Menu/Menu.js +7 -3
- package/es6/components/NameValueList/NameValueList.js +2 -2
- package/es6/components/NameValuePair/NameValuePair.js +2 -2
- package/es6/components/Notification/Notification.js +3 -3
- package/es6/components/RangeInput/StyledRangeInput.js +4 -4
- package/es6/components/Select/EmptySearchOption.js +3 -3
- package/es6/components/Select/StyledSelect.js +4 -4
- package/es6/components/SelectMultiple/SelectMultiple.js +4 -4
- package/es6/components/SelectMultiple/SelectMultipleContainer.js +1 -1
- package/es6/components/Skeleton/Skeleton.js +1 -1
- package/es6/components/Skeleton/StyledSkeleton.js +2 -2
- package/es6/components/Tag/Tag.js +5 -5
- package/es6/components/TextArea/StyledTextArea.js +1 -1
- package/es6/components/ThumbsRating/ThumbsRating.js +6 -6
- package/es6/components/Video/Video.js +2 -2
- package/es6/contexts/AnalyticsContext/AnalyticsContext.js +2 -2
- package/es6/utils/background.js +4 -4
- package/es6/utils/styles.js +2 -2
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/package.json +22 -22
- package/utils/background.js +4 -4
- package/utils/styles.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grommet",
|
|
3
|
-
"version": "2.33.
|
|
3
|
+
"version": "2.33.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "es6/index.js",
|
|
6
6
|
"jsnext:main": "es6/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": "^16.6.1 || ^17.0.0 || ^18.0.0",
|
|
53
53
|
"react-dom": "^16.6.1 || ^17.0.0 || ^18.0.0",
|
|
54
|
-
"styled-components": "
|
|
54
|
+
"styled-components": "^5.1.0"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"grommet-icons": "^4.10.0",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"prop-types": "^15.8.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@babel/cli": "^7.22.
|
|
64
|
-
"@babel/core": "^7.22.
|
|
65
|
-
"@babel/eslint-parser": "^7.22.
|
|
66
|
-
"@babel/node": "^7.22.
|
|
63
|
+
"@babel/cli": "^7.22.9",
|
|
64
|
+
"@babel/core": "^7.22.9",
|
|
65
|
+
"@babel/eslint-parser": "^7.22.9",
|
|
66
|
+
"@babel/node": "^7.22.6",
|
|
67
67
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
68
68
|
"@babel/plugin-proposal-do-expressions": "^7.22.5",
|
|
69
69
|
"@babel/plugin-proposal-export-default-from": "^7.22.5",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
72
72
|
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
73
73
|
"@babel/plugin-proposal-pipeline-operator": "^7.22.5",
|
|
74
|
-
"@babel/preset-env": "^7.22.
|
|
74
|
+
"@babel/preset-env": "^7.22.9",
|
|
75
75
|
"@babel/preset-react": "^7.22.5",
|
|
76
76
|
"@storybook/addon-a11y": "7.0.20",
|
|
77
77
|
"@storybook/addon-storysource": "7.0.20",
|
|
@@ -81,46 +81,46 @@
|
|
|
81
81
|
"@storybook/react-webpack5": "7.0.20",
|
|
82
82
|
"@storybook/source-loader": "7.0.20",
|
|
83
83
|
"@testing-library/dom": "9.3.0",
|
|
84
|
-
"@testing-library/jest-dom": "^5.
|
|
84
|
+
"@testing-library/jest-dom": "^5.17.0",
|
|
85
85
|
"@testing-library/react": "^14.0.0",
|
|
86
86
|
"@testing-library/testcafe": "^5.0.0",
|
|
87
87
|
"@testing-library/user-event": "^14.4.3",
|
|
88
|
-
"@types/jest": "^29.5.
|
|
88
|
+
"@types/jest": "^29.5.3",
|
|
89
89
|
"@types/jest-axe": "^3.5.5",
|
|
90
|
-
"@types/node": "^20.
|
|
91
|
-
"@types/react": "^18.2.
|
|
92
|
-
"@types/react-dom": "^18.2.
|
|
90
|
+
"@types/node": "^20.4.4",
|
|
91
|
+
"@types/react": "^18.2.15",
|
|
92
|
+
"@types/react-dom": "^18.2.7",
|
|
93
93
|
"@types/styled-components": "^5.1.26",
|
|
94
94
|
"babel-core": "^7.0.0-bridge.0",
|
|
95
|
-
"babel-jest": "^29.
|
|
96
|
-
"babel-loader": "^9.1.
|
|
95
|
+
"babel-jest": "^29.6.1",
|
|
96
|
+
"babel-loader": "^9.1.3",
|
|
97
97
|
"babel-plugin-styled-components": "2.0.6",
|
|
98
98
|
"babel-plugin-transform-imports": "^2.0.0",
|
|
99
99
|
"bundlesize2": "^0.0.31",
|
|
100
|
-
"chromatic": "6.
|
|
100
|
+
"chromatic": "^6.20.0",
|
|
101
101
|
"clean-webpack-plugin": "^4.0.0",
|
|
102
102
|
"copy-webpack-plugin": "^11.0.0",
|
|
103
103
|
"copyfiles": "^2.4.1",
|
|
104
|
-
"core-js": "^3.31.
|
|
104
|
+
"core-js": "^3.31.1",
|
|
105
105
|
"cross-env": "^7.0.3",
|
|
106
106
|
"del": "^6.1.1",
|
|
107
107
|
"elliptic": "^6.5.4",
|
|
108
|
-
"eslint": "^8.
|
|
108
|
+
"eslint": "^8.45.0",
|
|
109
109
|
"eslint-config-airbnb": "^19.0.4",
|
|
110
110
|
"eslint-config-prettier": "^8.8.0",
|
|
111
111
|
"eslint-plugin-babel": "^5.3.1",
|
|
112
112
|
"eslint-plugin-import": "^2.27.5",
|
|
113
113
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
114
114
|
"eslint-plugin-prettier": "^4.2.1",
|
|
115
|
-
"eslint-plugin-react": "^7.
|
|
115
|
+
"eslint-plugin-react": "^7.33.0",
|
|
116
116
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
117
117
|
"eslint-plugin-testing-library": "^5.11.0",
|
|
118
118
|
"fs-extra": "^11.1.1",
|
|
119
119
|
"grommet-theme-hpe": "^5.0.3",
|
|
120
|
-
"jest": "^29.
|
|
120
|
+
"jest": "^29.6.1",
|
|
121
121
|
"jest-axe": "^7.0.1",
|
|
122
|
-
"jest-cli": "^29.
|
|
123
|
-
"jest-environment-jsdom": "^29.
|
|
122
|
+
"jest-cli": "^29.6.1",
|
|
123
|
+
"jest-environment-jsdom": "^29.6.1",
|
|
124
124
|
"jest-styled-components": "7.0.5",
|
|
125
125
|
"jsdom": "^21.1.2",
|
|
126
126
|
"postcss": "^8.4.24",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"storybook": "7.0.20",
|
|
139
139
|
"styled-components": "5.3.9",
|
|
140
140
|
"tarball-extract": "^0.0.6",
|
|
141
|
-
"testcafe": "^
|
|
141
|
+
"testcafe": "^3.0.1",
|
|
142
142
|
"testcafe-react-selectors": "^5.0.3",
|
|
143
143
|
"testcafe-reporter-xunit": "^2.2.2",
|
|
144
144
|
"ts-jest": "^29.1.0",
|
package/utils/background.js
CHANGED
|
@@ -41,11 +41,11 @@ var normalizeBackgroundColor = function normalizeBackgroundColor(backgroundArg,
|
|
|
41
41
|
var normalizeBackgroundImage = function normalizeBackgroundImage(background, theme) {
|
|
42
42
|
var result;
|
|
43
43
|
if (background.image) {
|
|
44
|
-
var _theme$global$backgro3, _theme$global$backgro4
|
|
45
|
-
result = normalizeBackground(background.dark ? (_theme$global$backgro3 = theme.global.backgrounds) == null
|
|
44
|
+
var _theme$global$backgro3, _theme$global$backgro4;
|
|
45
|
+
result = normalizeBackground(background.dark ? (_theme$global$backgro3 = theme.global.backgrounds) == null || (_theme$global$backgro3 = _theme$global$backgro3[background.image]) == null ? void 0 : _theme$global$backgro3.dark : (_theme$global$backgro4 = theme.global.backgrounds) == null ? void 0 : _theme$global$backgro4[background.image], theme) || background.image;
|
|
46
46
|
} else {
|
|
47
|
-
var _theme$global$
|
|
48
|
-
var normalized = normalizeBackground((_theme$global$
|
|
47
|
+
var _theme$global$backgro5;
|
|
48
|
+
var normalized = normalizeBackground((_theme$global$backgro5 = theme.global.backgrounds) == null ? void 0 : _theme$global$backgro5[background], theme);
|
|
49
49
|
result = typeof normalized === 'object' ? normalizeBackgroundImage(normalized, theme) : normalized;
|
|
50
50
|
}
|
|
51
51
|
return result;
|
package/utils/styles.js
CHANGED
|
@@ -263,8 +263,8 @@ var inputStyle = (0, _styledComponents.css)(["box-sizing:border-box;", " font-fa
|
|
|
263
263
|
// to ensure there is reasonable space between the icon and value or placeholder
|
|
264
264
|
exports.inputStyle = inputStyle;
|
|
265
265
|
var inputPadForIcon = (0, _styledComponents.css)(["", ""], function (props) {
|
|
266
|
-
var _props$theme, _props$theme$icon
|
|
267
|
-
var pad = (_props$theme = props.theme) != null && (_props$theme
|
|
266
|
+
var _props$theme, _props$theme$icon;
|
|
267
|
+
var pad = (_props$theme = props.theme) != null && (_props$theme = _props$theme.icon) != null && _props$theme.matchSize ? (0, _mixins.parseMetricToNum)((_props$theme$icon = props.theme.icon) == null || (_props$theme$icon = _props$theme$icon.size) == null ? void 0 : _props$theme$icon[(props == null ? void 0 : props.size) || 'medium']) + (0, _mixins.parseMetricToNum)(props.theme.global.edgeSize.medium) + "px" : props.theme.global.edgeSize.large;
|
|
268
268
|
return props.reverse ? "padding-right: " + pad + ";" : "padding-left: " + pad + ";";
|
|
269
269
|
});
|
|
270
270
|
exports.inputPadForIcon = inputPadForIcon;
|