grommet 2.40.1 → 2.41.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/components/AccordionPanel/AccordionPanel.js +13 -5
- package/components/Button/StyledButtonKind.js +12 -6
- package/components/DataChart/Detail.js +19 -4
- package/components/DataFilter/DataFilter.js +5 -0
- package/components/Drop/DropContainer.js +51 -3
- package/components/FocusedContainer.js +134 -17
- package/components/Grommet/Grommet.js +11 -5
- package/components/MaskedInput/MaskedInput.js +3 -0
- package/components/Menu/Menu.js +3 -3
- package/components/Select/Select.js +22 -15
- package/components/Select/stories/ChildrenRender.js +7 -8
- package/components/SelectMultiple/SelectMultiple.js +8 -6
- package/components/TextInput/TextInput.js +3 -0
- package/contexts/RootsContext.js +23 -5
- package/es6/components/AccordionPanel/AccordionPanel.js +15 -6
- package/es6/components/Button/StyledButtonKind.js +12 -6
- package/es6/components/DataChart/Detail.js +20 -5
- package/es6/components/DataFilter/DataFilter.js +5 -0
- package/es6/components/Drop/DropContainer.js +51 -3
- package/es6/components/FocusedContainer.js +136 -19
- package/es6/components/Grommet/Grommet.js +12 -6
- package/es6/components/MaskedInput/MaskedInput.js +3 -0
- package/es6/components/Menu/Menu.js +3 -3
- package/es6/components/Select/Select.js +22 -15
- package/es6/components/Select/stories/ChildrenRender.js +7 -8
- package/es6/components/SelectMultiple/SelectMultiple.js +8 -6
- package/es6/components/TextInput/TextInput.js +3 -0
- package/es6/contexts/RootsContext.js +20 -3
- package/es6/themes/base.d.ts +1 -0
- package/es6/themes/base.js +1 -0
- package/es6/utils/DOM.js +2 -1
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/package.json +22 -22
- package/themes/base.d.ts +1 -0
- package/themes/base.js +1 -0
- package/utils/DOM.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grommet",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.41.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "es6/index.js",
|
|
6
6
|
"jsnext:main": "es6/index.js",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"prop-types": "^15.8.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@babel/cli": "^7.
|
|
64
|
+
"@babel/cli": "^7.25.6",
|
|
65
65
|
"@babel/core": "^7.25.2",
|
|
66
66
|
"@babel/eslint-parser": "^7.25.1",
|
|
67
67
|
"@babel/node": "^7.25.0",
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
"@babel/plugin-proposal-do-expressions": "^7.24.7",
|
|
70
70
|
"@babel/plugin-proposal-export-default-from": "^7.24.7",
|
|
71
71
|
"@babel/plugin-proposal-pipeline-operator": "^7.24.7",
|
|
72
|
-
"@babel/plugin-transform-class-properties": "^7.
|
|
72
|
+
"@babel/plugin-transform-class-properties": "^7.25.4",
|
|
73
73
|
"@babel/plugin-transform-logical-assignment-operators": "^7.24.7",
|
|
74
74
|
"@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7",
|
|
75
75
|
"@babel/plugin-transform-optional-chaining": "^7.24.8",
|
|
76
|
-
"@babel/preset-env": "^7.25.
|
|
76
|
+
"@babel/preset-env": "^7.25.4",
|
|
77
77
|
"@babel/preset-react": "^7.24.7",
|
|
78
78
|
"@storybook/addon-a11y": "7.0.20",
|
|
79
79
|
"@storybook/addon-storysource": "7.0.20",
|
|
@@ -83,14 +83,14 @@
|
|
|
83
83
|
"@storybook/react-webpack5": "7.0.20",
|
|
84
84
|
"@storybook/source-loader": "7.0.20",
|
|
85
85
|
"@testing-library/dom": "^10.4.0",
|
|
86
|
-
"@testing-library/jest-dom": "^6.
|
|
87
|
-
"@testing-library/react": "^16.0.
|
|
86
|
+
"@testing-library/jest-dom": "^6.5.0",
|
|
87
|
+
"@testing-library/react": "^16.0.1",
|
|
88
88
|
"@testing-library/testcafe": "^5.0.1",
|
|
89
89
|
"@testing-library/user-event": "^14.5.2",
|
|
90
|
-
"@types/jest": "^29.5.
|
|
90
|
+
"@types/jest": "^29.5.13",
|
|
91
91
|
"@types/jest-axe": "^3.5.9",
|
|
92
|
-
"@types/node": "^22.
|
|
93
|
-
"@types/react": "^18.3.
|
|
92
|
+
"@types/node": "^22.5.4",
|
|
93
|
+
"@types/react": "^18.3.5",
|
|
94
94
|
"@types/react-dom": "^18.3.0",
|
|
95
95
|
"@types/styled-components": "^5.1.34",
|
|
96
96
|
"babel-core": "^7.0.0-bridge.0",
|
|
@@ -99,11 +99,11 @@
|
|
|
99
99
|
"babel-plugin-styled-components": "^2.1.4",
|
|
100
100
|
"babel-plugin-transform-imports": "^2.0.0",
|
|
101
101
|
"bundlesize2": "^0.0.31",
|
|
102
|
-
"chromatic": "^11.
|
|
102
|
+
"chromatic": "^11.10.0",
|
|
103
103
|
"clean-webpack-plugin": "^4.0.0",
|
|
104
104
|
"copy-webpack-plugin": "^12.0.2",
|
|
105
105
|
"copyfiles": "^2.4.1",
|
|
106
|
-
"core-js": "^3.38.
|
|
106
|
+
"core-js": "^3.38.1",
|
|
107
107
|
"cross-env": "^7.0.3",
|
|
108
108
|
"del": "^6.1.1",
|
|
109
109
|
"eslint": "^8.57.0",
|
|
@@ -111,20 +111,20 @@
|
|
|
111
111
|
"eslint-config-prettier": "^9.1.0",
|
|
112
112
|
"eslint-plugin-babel": "^5.3.1",
|
|
113
113
|
"eslint-plugin-import": "^2.29.1",
|
|
114
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
114
|
+
"eslint-plugin-jsx-a11y": "^6.10.0",
|
|
115
115
|
"eslint-plugin-prettier": "4.2.1",
|
|
116
116
|
"eslint-plugin-react": "^7.34.3",
|
|
117
117
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
118
118
|
"eslint-plugin-testing-library": "^6.2.2",
|
|
119
119
|
"fs-extra": "^11.2.0",
|
|
120
|
-
"grommet-theme-hpe": "^5.
|
|
120
|
+
"grommet-theme-hpe": "^5.6.0",
|
|
121
121
|
"jest": "^29.7.0",
|
|
122
122
|
"jest-axe": "^9.0.0",
|
|
123
123
|
"jest-cli": "^29.7.0",
|
|
124
124
|
"jest-environment-jsdom": "^29.7.0",
|
|
125
125
|
"jest-styled-components": "7.0.5",
|
|
126
|
-
"jsdom": "^24.1.
|
|
127
|
-
"postcss": "^8.4.
|
|
126
|
+
"jsdom": "^24.1.3",
|
|
127
|
+
"postcss": "^8.4.45",
|
|
128
128
|
"pre-commit": "^1.2.2",
|
|
129
129
|
"prettier": "^2.8.8",
|
|
130
130
|
"pretty-quick": "^3.1.3",
|
|
@@ -134,19 +134,19 @@
|
|
|
134
134
|
"react-is": "^18.3.1",
|
|
135
135
|
"react-shadow": "^20.5.0",
|
|
136
136
|
"regenerator-runtime": "^0.14.1",
|
|
137
|
-
"simple-git": "^3.
|
|
137
|
+
"simple-git": "^3.26.0",
|
|
138
138
|
"storybook": "7.0.20",
|
|
139
|
-
"styled-components": "^6.1.
|
|
139
|
+
"styled-components": "^6.1.13",
|
|
140
140
|
"tarball-extract": "^0.0.6",
|
|
141
141
|
"testcafe": "3.3.0",
|
|
142
142
|
"testcafe-react-selectors": "^5.0.3",
|
|
143
143
|
"testcafe-reporter-xunit": "^2.2.3",
|
|
144
|
-
"ts-jest": "^29.2.
|
|
144
|
+
"ts-jest": "^29.2.5",
|
|
145
145
|
"ts-loader": "^9.5.1",
|
|
146
|
-
"typescript": "^5.
|
|
147
|
-
"webpack": "^5.
|
|
146
|
+
"typescript": "^5.6.2",
|
|
147
|
+
"webpack": "^5.94.0",
|
|
148
148
|
"webpack-cli": "^5.1.4",
|
|
149
|
-
"webpack-dev-server": "^5.0
|
|
149
|
+
"webpack-dev-server": "^5.1.0"
|
|
150
150
|
},
|
|
151
151
|
"jest": {
|
|
152
152
|
"transform": {
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
"bundlesize": [
|
|
209
209
|
{
|
|
210
210
|
"path": "./dist/grommet.min.js",
|
|
211
|
-
"maxSize": "
|
|
211
|
+
"maxSize": "172 kB"
|
|
212
212
|
}
|
|
213
213
|
],
|
|
214
214
|
"keywords": [
|
package/themes/base.d.ts
CHANGED
package/themes/base.js
CHANGED
package/utils/DOM.js
CHANGED
|
@@ -157,7 +157,8 @@ var makeNodeUnfocusable = exports.makeNodeUnfocusable = function makeNodeUnfocus
|
|
|
157
157
|
Array.prototype.filter.call(elements || [], function (element) {
|
|
158
158
|
return element.getAttribute(TABINDEX) !== null;
|
|
159
159
|
}).forEach(function (element) {
|
|
160
|
-
|
|
160
|
+
// if TABINDEX_STATE already exists, it's holding the original value
|
|
161
|
+
if (!element.getAttribute(TABINDEX_STATE)) element.setAttribute(TABINDEX_STATE, element.getAttribute(TABINDEX));
|
|
161
162
|
element.setAttribute(TABINDEX, -1);
|
|
162
163
|
});
|
|
163
164
|
// then, if any element is inherently focusable and not handled above,
|