grommet 2.52.0 → 2.54.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/DataChart/DataChart.js +9 -4
- package/components/DataTable/stories/ResizePinned.stories.js +1 -1
- package/components/DataTableColumns/DataTableColumns.js +47 -26
- package/components/DataTableColumns/index.d.ts +1 -0
- package/components/DataTableColumns/propTypes.js +1 -0
- package/components/DataTableColumns/stories/OrderColumns.stories.js +48 -0
- package/components/DataTableColumns/stories/SelectColumns.stories.js +48 -0
- package/components/DateInput/DateInput.js +1 -1
- package/components/Header/stories/Sticky.stories.js +1 -1
- package/components/List/List.js +6 -4
- package/components/Menu/Menu.js +7 -5
- package/components/Tab/Tab.js +1 -1
- package/components/TextInput/TextInput.js +3 -3
- package/es6/components/DataChart/DataChart.js +9 -4
- package/es6/components/DataTable/stories/ResizePinned.stories.js +1 -1
- package/es6/components/DataTableColumns/DataTableColumns.js +47 -26
- package/es6/components/DataTableColumns/index.d.ts +1 -0
- package/es6/components/DataTableColumns/propTypes.js +1 -0
- package/es6/components/DataTableColumns/stories/OrderColumns.stories.js +44 -0
- package/es6/components/DataTableColumns/stories/SelectColumns.stories.js +44 -0
- package/es6/components/DateInput/DateInput.js +1 -1
- package/es6/components/Header/stories/Sticky.stories.js +1 -1
- package/es6/components/List/List.js +6 -4
- package/es6/components/Menu/Menu.js +7 -5
- package/es6/components/Tab/Tab.js +2 -2
- package/es6/components/TextInput/TextInput.js +3 -3
- package/es6/themes/base.d.ts +9 -1
- package/es6/themes/base.js +6 -0
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/package.json +45 -45
- package/themes/base.d.ts +9 -1
- package/themes/base.js +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grommet",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.54.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "es6/index.js",
|
|
6
6
|
"jsnext:main": "es6/index.js",
|
|
@@ -60,67 +60,67 @@
|
|
|
60
60
|
"prop-types": "^15.8.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@babel/cli": "^7.28.
|
|
64
|
-
"@babel/core": "^7.
|
|
65
|
-
"@babel/eslint-parser": "^7.28.
|
|
66
|
-
"@babel/node": "^7.
|
|
63
|
+
"@babel/cli": "^7.28.6",
|
|
64
|
+
"@babel/core": "^7.29.0",
|
|
65
|
+
"@babel/eslint-parser": "^7.28.6",
|
|
66
|
+
"@babel/node": "^7.29.0",
|
|
67
67
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
68
|
-
"@babel/plugin-proposal-do-expressions": "^7.28.
|
|
68
|
+
"@babel/plugin-proposal-do-expressions": "^7.28.6",
|
|
69
69
|
"@babel/plugin-proposal-export-default-from": "^7.27.1",
|
|
70
|
-
"@babel/plugin-proposal-pipeline-operator": "^7.
|
|
71
|
-
"@babel/plugin-transform-class-properties": "^7.
|
|
72
|
-
"@babel/plugin-transform-logical-assignment-operators": "^7.28.
|
|
73
|
-
"@babel/plugin-transform-nullish-coalescing-operator": "^7.
|
|
74
|
-
"@babel/plugin-transform-optional-chaining": "^7.28.
|
|
75
|
-
"@babel/preset-env": "^7.
|
|
70
|
+
"@babel/plugin-proposal-pipeline-operator": "^7.28.6",
|
|
71
|
+
"@babel/plugin-transform-class-properties": "^7.28.6",
|
|
72
|
+
"@babel/plugin-transform-logical-assignment-operators": "^7.28.6",
|
|
73
|
+
"@babel/plugin-transform-nullish-coalescing-operator": "^7.28.6",
|
|
74
|
+
"@babel/plugin-transform-optional-chaining": "^7.28.6",
|
|
75
|
+
"@babel/preset-env": "^7.29.0",
|
|
76
76
|
"@babel/preset-react": "^7.28.5",
|
|
77
|
-
"@chromatic-com/storybook": "^3.2.
|
|
78
|
-
"@eslint/compat": "^2.0.
|
|
79
|
-
"@eslint/eslintrc": "^3.3.
|
|
80
|
-
"@eslint/js": "^9.39.
|
|
81
|
-
"@storybook/addon-a11y": "^8.6.
|
|
82
|
-
"@storybook/addon-storysource": "^8.6.
|
|
83
|
-
"@storybook/addon-toolbars": "^8.6.
|
|
77
|
+
"@chromatic-com/storybook": "^3.2.7",
|
|
78
|
+
"@eslint/compat": "^2.0.2",
|
|
79
|
+
"@eslint/eslintrc": "^3.3.4",
|
|
80
|
+
"@eslint/js": "^9.39.3",
|
|
81
|
+
"@storybook/addon-a11y": "^8.6.17",
|
|
82
|
+
"@storybook/addon-storysource": "^8.6.17",
|
|
83
|
+
"@storybook/addon-toolbars": "^8.6.17",
|
|
84
84
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
|
|
85
|
-
"@storybook/manager-api": "^8.6.
|
|
86
|
-
"@storybook/react": "^8.6.
|
|
87
|
-
"@storybook/react-webpack5": "^8.6.
|
|
88
|
-
"@storybook/source-loader": "^8.6.
|
|
85
|
+
"@storybook/manager-api": "^8.6.17",
|
|
86
|
+
"@storybook/react": "^8.6.17",
|
|
87
|
+
"@storybook/react-webpack5": "^8.6.17",
|
|
88
|
+
"@storybook/source-loader": "^8.6.17",
|
|
89
89
|
"@testing-library/dom": "^10.4.1",
|
|
90
90
|
"@testing-library/jest-dom": "^6.9.1",
|
|
91
|
-
"@testing-library/react": "^16.3.
|
|
91
|
+
"@testing-library/react": "^16.3.2",
|
|
92
92
|
"@testing-library/testcafe": "^5.0.1",
|
|
93
93
|
"@testing-library/user-event": "^14.6.1",
|
|
94
94
|
"@types/jest": "^30.0.0",
|
|
95
95
|
"@types/jest-axe": "^3.5.9",
|
|
96
|
-
"@types/node": "^
|
|
97
|
-
"@types/react": "^19.2.
|
|
96
|
+
"@types/node": "^25.3.0",
|
|
97
|
+
"@types/react": "^19.2.14",
|
|
98
98
|
"@types/react-dom": "^19.2.3",
|
|
99
|
-
"@types/styled-components": "^5.1.
|
|
99
|
+
"@types/styled-components": "^5.1.36",
|
|
100
100
|
"babel-core": "^7.0.0-bridge.0",
|
|
101
101
|
"babel-jest": "^30.2.0",
|
|
102
102
|
"babel-loader": "^10.0.0",
|
|
103
103
|
"babel-plugin-styled-components": "^2.1.4",
|
|
104
104
|
"babel-plugin-transform-imports": "^2.0.0",
|
|
105
105
|
"bundlesize2": "^0.0.35",
|
|
106
|
-
"chromatic": "^13.3.
|
|
106
|
+
"chromatic": "^13.3.5",
|
|
107
107
|
"clean-webpack-plugin": "^4.0.0",
|
|
108
108
|
"copy-webpack-plugin": "^13.0.1",
|
|
109
109
|
"copyfiles": "^2.4.1",
|
|
110
|
-
"core-js": "^3.
|
|
110
|
+
"core-js": "^3.48.0",
|
|
111
111
|
"cross-env": "^10.1.0",
|
|
112
112
|
"del": "^6.1.1",
|
|
113
|
-
"eslint": "^9.39.
|
|
113
|
+
"eslint": "^9.39.3",
|
|
114
114
|
"eslint-config-airbnb": "^19.0.4",
|
|
115
115
|
"eslint-config-prettier": "^10.1.8",
|
|
116
116
|
"eslint-plugin-babel": "^5.3.1",
|
|
117
117
|
"eslint-plugin-import": "^2.32.0",
|
|
118
118
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
119
|
-
"eslint-plugin-prettier": "^5.5.
|
|
119
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
120
120
|
"eslint-plugin-react": "^7.37.5",
|
|
121
|
-
"eslint-plugin-react-hooks": "7.0.
|
|
122
|
-
"eslint-plugin-testing-library": "^7.
|
|
123
|
-
"fs-extra": "^11.3.
|
|
121
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
122
|
+
"eslint-plugin-testing-library": "^7.16.0",
|
|
123
|
+
"fs-extra": "^11.3.3",
|
|
124
124
|
"globals": "^16.5.0",
|
|
125
125
|
"grommet-theme-hpe": "^7.0.2",
|
|
126
126
|
"jest": "^30.2.0",
|
|
@@ -128,30 +128,30 @@
|
|
|
128
128
|
"jest-cli": "^30.2.0",
|
|
129
129
|
"jest-environment-jsdom": "^30.2.0",
|
|
130
130
|
"jest-styled-components": "7.0.5",
|
|
131
|
-
"jsdom": "^27.
|
|
131
|
+
"jsdom": "^27.4.0",
|
|
132
132
|
"postcss": "^8.5.6",
|
|
133
133
|
"pre-commit": "^1.2.2",
|
|
134
134
|
"prettier": "^2.8.8",
|
|
135
135
|
"pretty-quick": "^4.2.2",
|
|
136
|
-
"react": "19.2.
|
|
136
|
+
"react": "^19.2.4",
|
|
137
137
|
"react-dev-utils": "^12.0.1",
|
|
138
|
-
"react-dom": "19.2.
|
|
139
|
-
"react-is": "19.2.
|
|
138
|
+
"react-dom": "^19.2.4",
|
|
139
|
+
"react-is": "^19.2.4",
|
|
140
140
|
"react-shadow": "^20.6.0",
|
|
141
141
|
"regenerator-runtime": "^0.14.1",
|
|
142
|
-
"simple-git": "^3.
|
|
143
|
-
"storybook": "^8.6.
|
|
144
|
-
"styled-components": "^6.
|
|
142
|
+
"simple-git": "^3.32.2",
|
|
143
|
+
"storybook": "^8.6.17",
|
|
144
|
+
"styled-components": "^6.3.11",
|
|
145
145
|
"tarball-extract": "^0.0.6",
|
|
146
|
-
"testcafe": "^3.7.
|
|
146
|
+
"testcafe": "^3.7.4",
|
|
147
147
|
"testcafe-react-selectors": "^5.0.3",
|
|
148
148
|
"testcafe-reporter-xunit": "^2.2.3",
|
|
149
|
-
"ts-jest": "^29.4.
|
|
149
|
+
"ts-jest": "^29.4.6",
|
|
150
150
|
"ts-loader": "^9.5.4",
|
|
151
151
|
"typescript": "^5.9.3",
|
|
152
|
-
"webpack": "^5.
|
|
152
|
+
"webpack": "^5.105.2",
|
|
153
153
|
"webpack-cli": "^6.0.1",
|
|
154
|
-
"webpack-dev-server": "^5.2.
|
|
154
|
+
"webpack-dev-server": "^5.2.3"
|
|
155
155
|
},
|
|
156
156
|
"jest": {
|
|
157
157
|
"transform": {
|
package/themes/base.d.ts
CHANGED
|
@@ -468,6 +468,8 @@ export interface ThemeType {
|
|
|
468
468
|
variant?: string;
|
|
469
469
|
};
|
|
470
470
|
graph?: {
|
|
471
|
+
// remove in v3. Should have been removed in
|
|
472
|
+
// https://github.com/grommet/grommet/pull/3608/
|
|
471
473
|
colors?: GraphColorsType;
|
|
472
474
|
};
|
|
473
475
|
hover?: {
|
|
@@ -886,6 +888,7 @@ export interface ThemeType {
|
|
|
886
888
|
};
|
|
887
889
|
};
|
|
888
890
|
dataChart?: {
|
|
891
|
+
colors?: string[];
|
|
889
892
|
gap?: GapType;
|
|
890
893
|
granularity?: {
|
|
891
894
|
y?: {
|
|
@@ -1422,7 +1425,7 @@ export interface ThemeType {
|
|
|
1422
1425
|
color?: ColorType;
|
|
1423
1426
|
cursor?: string;
|
|
1424
1427
|
};
|
|
1425
|
-
gap
|
|
1428
|
+
gap?: GapType;
|
|
1426
1429
|
pinned?: {
|
|
1427
1430
|
background?: BackgroundType;
|
|
1428
1431
|
icon?: {
|
|
@@ -1471,6 +1474,11 @@ export interface ThemeType {
|
|
|
1471
1474
|
up?: any;
|
|
1472
1475
|
color?: ColorType;
|
|
1473
1476
|
};
|
|
1477
|
+
disabled?: {
|
|
1478
|
+
icons?: {
|
|
1479
|
+
color?: ColorType;
|
|
1480
|
+
};
|
|
1481
|
+
};
|
|
1474
1482
|
};
|
|
1475
1483
|
meter?: {
|
|
1476
1484
|
background?: BackgroundType;
|
package/themes/base.js
CHANGED
|
@@ -1034,6 +1034,7 @@ var generate = exports.generate = function generate(baseSpacing, scale) {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
},
|
|
1036
1036
|
dataChart: {
|
|
1037
|
+
// colors: [],
|
|
1037
1038
|
gap: 'small',
|
|
1038
1039
|
// granularity: {
|
|
1039
1040
|
// y: {},
|
|
@@ -1619,6 +1620,11 @@ var generate = exports.generate = function generate(baseSpacing, scale) {
|
|
|
1619
1620
|
// up: undefined,
|
|
1620
1621
|
// color: { dark: undefined, light: undefined },
|
|
1621
1622
|
}
|
|
1623
|
+
// disabled: {
|
|
1624
|
+
// icons: {
|
|
1625
|
+
// color: undefined,
|
|
1626
|
+
// },
|
|
1627
|
+
// },
|
|
1622
1628
|
},
|
|
1623
1629
|
meter: {
|
|
1624
1630
|
background: {
|