grommet 2.48.0 → 2.50.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 +3 -6
- package/components/Anchor/StyledAnchor.js +1 -1
- package/components/Box/StyledBox.js +1 -1
- package/components/Button/BusyAnimation.js +5 -1
- package/components/Button/Button.js +3 -1
- package/components/Calendar/Calendar.js +7 -10
- package/components/Cards/Cards.js +3 -4
- package/components/Chart/Chart.js +11 -9
- package/components/Chart/calcs.js +21 -13
- package/components/CheckBox/CheckBox.js +1 -1
- package/components/CheckBoxGroup/CheckBoxGroup.js +2 -3
- package/components/Data/Data.js +5 -1
- package/components/Data/DataForm.js +6 -4
- package/components/Data/stories/Infinite.stories.js +10 -15
- package/components/Data/stories/OnSelect.stories.js +10 -15
- package/components/Data/stories/SpaceX.stories.js +10 -15
- package/components/Data/stories/StarWars.stories.js +6 -8
- package/components/DataChart/DataChart.js +14 -12
- package/components/DataChart/Detail.js +2 -2
- package/components/DataChart/Legend.js +8 -9
- package/components/DataChart/utils.js +15 -8
- package/components/DataFilter/DataFilter.js +10 -9
- package/components/DataFilters/DataFilters.js +9 -10
- package/components/DataSearch/DataSearch.js +5 -4
- package/components/DataSort/DataSort.js +4 -3
- package/components/DataSummary/DataSummary.js +6 -6
- package/components/DataTable/ExpanderCell.js +6 -3
- package/components/DataTable/Footer.js +6 -3
- package/components/DataTable/Header.js +6 -3
- package/components/DataTable/Resizer.js +22 -8
- package/components/DataTable/Searcher.js +5 -7
- package/components/DataTable/stories/ResizePinned.stories.js +321 -0
- package/components/DataTable/stories/SpaceX.stories.js +15 -16
- package/components/DataTable/stories/SpaceXUngrouped.stories.js +7 -7
- package/components/DataTable/stories/rowDetails.stories.js +6 -8
- package/components/DataTableColumns/DataTableColumns.js +24 -22
- package/components/DateInput/DateInput.js +7 -6
- package/components/Distribution/Distribution.js +8 -5
- package/components/FileInput/FileInput.js +41 -36
- package/components/Footer/Footer.js +5 -1
- package/components/Header/Header.js +2 -2
- package/components/Layer/Layer.js +10 -5
- package/components/Layer/StyledLayer.js +2 -2
- package/components/List/List.js +5 -4
- package/components/MaskedInput/MaskedInput.js +6 -1
- package/components/Menu/Menu.js +13 -1
- package/components/Meter/Bar.js +38 -17
- package/components/Meter/Circle.js +31 -46
- package/components/Meter/stories/Circle.stories.js +6 -8
- package/components/Meter/utils.js +15 -1
- package/components/Nav/Nav.js +5 -1
- package/components/Notification/Notification.js +6 -8
- package/components/Pagination/Pagination.js +5 -10
- package/components/Pagination/PaginationStep.js +2 -1
- package/components/Paragraph/ParagraphSkeleton.js +2 -1
- package/components/RadioButton/RadioButton.js +1 -1
- package/components/RadioButtonGroup/RadioButtonGroup.js +2 -2
- package/components/RangeSelector/RangeSelector.js +2 -6
- package/components/Select/SelectContainer.js +2 -1
- package/components/SelectMultiple/SelectMultipleContainer.js +8 -4
- package/components/SelectMultiple/SelectMultipleValue.js +5 -7
- package/components/SelectMultiple/SelectionSummary.js +7 -8
- package/components/Sidebar/Sidebar.js +6 -3
- package/components/Spinner/Spinner.js +7 -4
- package/components/StarRating/StarRating.js +8 -5
- package/components/Tab/Tab.js +2 -1
- package/components/Table/StyledTable.js +2 -2
- package/components/Tabs/Tabs.js +8 -12
- package/components/Tag/StyledTag.js +9 -1
- package/components/TextInput/CopyButton.js +3 -2
- package/components/TextInput/TextInput.js +5 -0
- package/components/ThumbsRating/ThumbsRating.js +15 -10
- package/components/Toolbar/Toolbar.js +15 -11
- package/components/Video/Video.js +3 -5
- package/es6/components/AccordionPanel/AccordionPanel.js +3 -6
- package/es6/components/Anchor/StyledAnchor.js +2 -2
- package/es6/components/Box/StyledBox.js +1 -1
- package/es6/components/Button/BusyAnimation.js +5 -1
- package/es6/components/Button/Button.js +3 -1
- package/es6/components/Calendar/Calendar.js +7 -10
- package/es6/components/Cards/Cards.js +3 -4
- package/es6/components/Chart/Chart.js +11 -9
- package/es6/components/Chart/calcs.js +21 -13
- package/es6/components/CheckBox/CheckBox.js +1 -1
- package/es6/components/CheckBoxGroup/CheckBoxGroup.js +2 -3
- package/es6/components/Data/Data.js +5 -1
- package/es6/components/Data/DataForm.js +6 -4
- package/es6/components/Data/stories/Infinite.stories.js +10 -15
- package/es6/components/Data/stories/OnSelect.stories.js +10 -15
- package/es6/components/Data/stories/SpaceX.stories.js +10 -15
- package/es6/components/Data/stories/StarWars.stories.js +6 -8
- package/es6/components/DataChart/DataChart.js +14 -12
- package/es6/components/DataChart/Detail.js +2 -2
- package/es6/components/DataChart/Legend.js +8 -9
- package/es6/components/DataChart/utils.js +15 -8
- package/es6/components/DataFilter/DataFilter.js +10 -9
- package/es6/components/DataFilters/DataFilters.js +9 -10
- package/es6/components/DataSearch/DataSearch.js +5 -4
- package/es6/components/DataSort/DataSort.js +4 -3
- package/es6/components/DataSummary/DataSummary.js +6 -6
- package/es6/components/DataTable/ExpanderCell.js +4 -1
- package/es6/components/DataTable/Footer.js +4 -1
- package/es6/components/DataTable/Header.js +6 -3
- package/es6/components/DataTable/Resizer.js +22 -8
- package/es6/components/DataTable/Searcher.js +5 -7
- package/es6/components/DataTable/stories/ResizePinned.stories.js +316 -0
- package/es6/components/DataTable/stories/SpaceX.stories.js +15 -16
- package/es6/components/DataTable/stories/SpaceXUngrouped.stories.js +7 -7
- package/es6/components/DataTable/stories/rowDetails.stories.js +6 -8
- package/es6/components/DataTableColumns/DataTableColumns.js +23 -21
- package/es6/components/DateInput/DateInput.js +6 -5
- package/es6/components/Distribution/Distribution.js +8 -5
- package/es6/components/FileInput/FileInput.js +42 -37
- package/es6/components/Footer/Footer.js +5 -1
- package/es6/components/Header/Header.js +2 -2
- package/es6/components/Layer/Layer.js +10 -5
- package/es6/components/Layer/StyledLayer.js +3 -3
- package/es6/components/List/List.js +5 -4
- package/es6/components/MaskedInput/MaskedInput.js +6 -1
- package/es6/components/Menu/Menu.js +13 -1
- package/es6/components/Meter/Bar.js +39 -18
- package/es6/components/Meter/Circle.js +33 -48
- package/es6/components/Meter/stories/Circle.stories.js +7 -9
- package/es6/components/Meter/utils.js +14 -0
- package/es6/components/Nav/Nav.js +5 -1
- package/es6/components/Notification/Notification.js +6 -8
- package/es6/components/Pagination/Pagination.js +5 -10
- package/es6/components/Pagination/PaginationStep.js +2 -1
- package/es6/components/Paragraph/ParagraphSkeleton.js +2 -1
- package/es6/components/RadioButton/RadioButton.js +1 -1
- package/es6/components/RadioButtonGroup/RadioButtonGroup.js +2 -2
- package/es6/components/RangeSelector/RangeSelector.js +2 -6
- package/es6/components/Select/SelectContainer.js +2 -1
- package/es6/components/SelectMultiple/SelectMultipleContainer.js +8 -4
- package/es6/components/SelectMultiple/SelectMultipleValue.js +5 -7
- package/es6/components/SelectMultiple/SelectionSummary.js +7 -8
- package/es6/components/Sidebar/Sidebar.js +6 -3
- package/es6/components/Spinner/Spinner.js +6 -3
- package/es6/components/StarRating/StarRating.js +8 -5
- package/es6/components/Tab/Tab.js +2 -1
- package/es6/components/Table/StyledTable.js +2 -2
- package/es6/components/Tabs/Tabs.js +8 -12
- package/es6/components/Tag/StyledTag.js +10 -2
- package/es6/components/TextInput/CopyButton.js +3 -2
- package/es6/components/TextInput/TextInput.js +5 -0
- package/es6/components/ThumbsRating/ThumbsRating.js +15 -10
- package/es6/components/Toolbar/Toolbar.js +15 -11
- package/es6/components/Video/Video.js +3 -5
- package/es6/themes/base.d.ts +284 -4
- package/es6/themes/base.js +369 -21
- package/es6/utils/graphics.js +123 -0
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/package.json +46 -46
- package/themes/base.d.ts +284 -4
- package/themes/base.js +369 -21
- package/utils/graphics.js +124 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grommet",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.50.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "es6/index.js",
|
|
6
6
|
"jsnext:main": "es6/index.js",
|
|
@@ -60,98 +60,98 @@
|
|
|
60
60
|
"prop-types": "^15.8.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@babel/cli": "^7.
|
|
64
|
-
"@babel/core": "^7.
|
|
65
|
-
"@babel/eslint-parser": "^7.
|
|
66
|
-
"@babel/node": "^7.
|
|
63
|
+
"@babel/cli": "^7.28.0",
|
|
64
|
+
"@babel/core": "^7.28.0",
|
|
65
|
+
"@babel/eslint-parser": "^7.28.0",
|
|
66
|
+
"@babel/node": "^7.28.0",
|
|
67
67
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
68
|
-
"@babel/plugin-proposal-do-expressions": "^7.
|
|
68
|
+
"@babel/plugin-proposal-do-expressions": "^7.28.1",
|
|
69
69
|
"@babel/plugin-proposal-export-default-from": "^7.27.1",
|
|
70
70
|
"@babel/plugin-proposal-pipeline-operator": "^7.27.1",
|
|
71
71
|
"@babel/plugin-transform-class-properties": "^7.27.1",
|
|
72
72
|
"@babel/plugin-transform-logical-assignment-operators": "^7.27.1",
|
|
73
73
|
"@babel/plugin-transform-nullish-coalescing-operator": "^7.27.1",
|
|
74
74
|
"@babel/plugin-transform-optional-chaining": "^7.27.1",
|
|
75
|
-
"@babel/preset-env": "^7.
|
|
75
|
+
"@babel/preset-env": "^7.28.0",
|
|
76
76
|
"@babel/preset-react": "^7.27.1",
|
|
77
77
|
"@chromatic-com/storybook": "^3.2.6",
|
|
78
78
|
"@eslint/compat": "^1.2.9",
|
|
79
79
|
"@eslint/eslintrc": "^3.3.1",
|
|
80
|
-
"@eslint/js": "^9.
|
|
81
|
-
"@storybook/addon-a11y": "^8.6.
|
|
82
|
-
"@storybook/addon-storysource": "^8.6.
|
|
83
|
-
"@storybook/addon-toolbars": "^8.6.
|
|
80
|
+
"@eslint/js": "^9.32.0",
|
|
81
|
+
"@storybook/addon-a11y": "^8.6.14",
|
|
82
|
+
"@storybook/addon-storysource": "^8.6.14",
|
|
83
|
+
"@storybook/addon-toolbars": "^8.6.14",
|
|
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.
|
|
89
|
-
"@testing-library/dom": "^10.4.
|
|
90
|
-
"@testing-library/jest-dom": "^6.6.
|
|
85
|
+
"@storybook/manager-api": "^8.6.14",
|
|
86
|
+
"@storybook/react": "^8.6.14",
|
|
87
|
+
"@storybook/react-webpack5": "^8.6.14",
|
|
88
|
+
"@storybook/source-loader": "^8.6.14",
|
|
89
|
+
"@testing-library/dom": "^10.4.1",
|
|
90
|
+
"@testing-library/jest-dom": "^6.6.4",
|
|
91
91
|
"@testing-library/react": "^16.3.0",
|
|
92
92
|
"@testing-library/testcafe": "^5.0.1",
|
|
93
93
|
"@testing-library/user-event": "^14.6.1",
|
|
94
|
-
"@types/jest": "^
|
|
94
|
+
"@types/jest": "^30.0.0",
|
|
95
95
|
"@types/jest-axe": "^3.5.9",
|
|
96
|
-
"@types/node": "^
|
|
97
|
-
"@types/react": "^19.1.
|
|
98
|
-
"@types/react-dom": "^19.1.
|
|
96
|
+
"@types/node": "^24.1.0",
|
|
97
|
+
"@types/react": "^19.1.9",
|
|
98
|
+
"@types/react-dom": "^19.1.7",
|
|
99
99
|
"@types/styled-components": "^5.1.34",
|
|
100
100
|
"babel-core": "^7.0.0-bridge.0",
|
|
101
|
-
"babel-jest": "^
|
|
102
|
-
"babel-loader": "^
|
|
101
|
+
"babel-jest": "^30.1.2",
|
|
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
|
-
"bundlesize2": "^0.0.
|
|
106
|
-
"chromatic": "^
|
|
105
|
+
"bundlesize2": "^0.0.35",
|
|
106
|
+
"chromatic": "^13.1.2",
|
|
107
107
|
"clean-webpack-plugin": "^4.0.0",
|
|
108
108
|
"copy-webpack-plugin": "^12.0.2",
|
|
109
109
|
"copyfiles": "^2.4.1",
|
|
110
|
-
"core-js": "^3.
|
|
110
|
+
"core-js": "^3.44.0",
|
|
111
111
|
"cross-env": "^7.0.3",
|
|
112
112
|
"del": "^6.1.1",
|
|
113
|
-
"eslint": "^9.
|
|
113
|
+
"eslint": "^9.32.0",
|
|
114
114
|
"eslint-config-airbnb": "^19.0.4",
|
|
115
|
-
"eslint-config-prettier": "^10.1.
|
|
115
|
+
"eslint-config-prettier": "^10.1.8",
|
|
116
116
|
"eslint-plugin-babel": "^5.3.1",
|
|
117
|
-
"eslint-plugin-import": "^2.
|
|
117
|
+
"eslint-plugin-import": "^2.32.0",
|
|
118
118
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
119
|
-
"eslint-plugin-prettier": "^5.
|
|
119
|
+
"eslint-plugin-prettier": "^5.5.3",
|
|
120
120
|
"eslint-plugin-react": "^7.37.5",
|
|
121
121
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
122
|
-
"eslint-plugin-testing-library": "^7.
|
|
122
|
+
"eslint-plugin-testing-library": "^7.6.3",
|
|
123
123
|
"fs-extra": "^11.3.0",
|
|
124
|
-
"globals": "^16.
|
|
125
|
-
"grommet-theme-hpe": "^
|
|
126
|
-
"jest": "^
|
|
124
|
+
"globals": "^16.3.0",
|
|
125
|
+
"grommet-theme-hpe": "^7.0.1",
|
|
126
|
+
"jest": "^30.1.3",
|
|
127
127
|
"jest-axe": "^10.0.0",
|
|
128
|
-
"jest-cli": "^
|
|
129
|
-
"jest-environment-jsdom": "^
|
|
128
|
+
"jest-cli": "^30.1.3",
|
|
129
|
+
"jest-environment-jsdom": "^30.1.2",
|
|
130
130
|
"jest-styled-components": "7.0.5",
|
|
131
131
|
"jsdom": "^26.1.0",
|
|
132
|
-
"postcss": "^8.5.
|
|
132
|
+
"postcss": "^8.5.6",
|
|
133
133
|
"pre-commit": "^1.2.2",
|
|
134
134
|
"prettier": "^2.8.8",
|
|
135
|
-
"pretty-quick": "^
|
|
136
|
-
"react": "19.1.
|
|
135
|
+
"pretty-quick": "^4.2.2",
|
|
136
|
+
"react": "19.1.1",
|
|
137
137
|
"react-dev-utils": "^12.0.1",
|
|
138
|
-
"react-dom": "19.1.
|
|
139
|
-
"react-is": "19.1.
|
|
138
|
+
"react-dom": "19.1.1",
|
|
139
|
+
"react-is": "19.1.1",
|
|
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.1.
|
|
142
|
+
"simple-git": "^3.28.0",
|
|
143
|
+
"storybook": "^8.6.14",
|
|
144
|
+
"styled-components": "^6.1.19",
|
|
145
145
|
"tarball-extract": "^0.0.6",
|
|
146
146
|
"testcafe": "^3.7.2",
|
|
147
147
|
"testcafe-react-selectors": "^5.0.3",
|
|
148
148
|
"testcafe-reporter-xunit": "^2.2.3",
|
|
149
|
-
"ts-jest": "^29.
|
|
149
|
+
"ts-jest": "^29.4.0",
|
|
150
150
|
"ts-loader": "^9.5.2",
|
|
151
151
|
"typescript": "^5.8.3",
|
|
152
152
|
"webpack": "^5.97.1",
|
|
153
153
|
"webpack-cli": "^6.0.1",
|
|
154
|
-
"webpack-dev-server": "^5.2.
|
|
154
|
+
"webpack-dev-server": "^5.2.2"
|
|
155
155
|
},
|
|
156
156
|
"jest": {
|
|
157
157
|
"transform": {
|
package/themes/base.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ import {
|
|
|
28
28
|
SkeletonColorsType,
|
|
29
29
|
AlignSelfType,
|
|
30
30
|
AlignType,
|
|
31
|
+
WidthType,
|
|
32
|
+
HeightType,
|
|
31
33
|
} from '../utils';
|
|
32
34
|
|
|
33
35
|
import { AnchorProps } from '../components/Anchor/index';
|
|
@@ -183,6 +185,12 @@ interface ButtonType {
|
|
|
183
185
|
};
|
|
184
186
|
};
|
|
185
187
|
};
|
|
188
|
+
busy?: {
|
|
189
|
+
gap?: GapType;
|
|
190
|
+
icons?: {
|
|
191
|
+
success?: React.ReactNode | Icon;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
186
194
|
gap?: GapType;
|
|
187
195
|
background?: BackgroundType;
|
|
188
196
|
border?: {
|
|
@@ -508,6 +516,20 @@ export interface ThemeType {
|
|
|
508
516
|
};
|
|
509
517
|
};
|
|
510
518
|
accordion?: {
|
|
519
|
+
icon?: {
|
|
520
|
+
container?: {
|
|
521
|
+
pad?: {
|
|
522
|
+
horizontal?: string;
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
label?: {
|
|
527
|
+
container?: {
|
|
528
|
+
pad?: {
|
|
529
|
+
horizontal?: string;
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
};
|
|
511
533
|
panel?: {
|
|
512
534
|
border?: BorderType;
|
|
513
535
|
};
|
|
@@ -541,6 +563,9 @@ export interface ThemeType {
|
|
|
541
563
|
icon?: {
|
|
542
564
|
color?: ColorType;
|
|
543
565
|
};
|
|
566
|
+
iconOnly?: {
|
|
567
|
+
pad?: PadType;
|
|
568
|
+
};
|
|
544
569
|
textDecoration?: string;
|
|
545
570
|
size?: {
|
|
546
571
|
medium?: {
|
|
@@ -583,6 +608,9 @@ export interface ThemeType {
|
|
|
583
608
|
extend?: ExtendType;
|
|
584
609
|
};
|
|
585
610
|
box?: {
|
|
611
|
+
border?: {
|
|
612
|
+
offset?: string;
|
|
613
|
+
};
|
|
586
614
|
extend?: ExtendType;
|
|
587
615
|
responsiveBreakpoint?: string;
|
|
588
616
|
};
|
|
@@ -636,7 +664,13 @@ export interface ThemeType {
|
|
|
636
664
|
round?: RoundType;
|
|
637
665
|
};
|
|
638
666
|
};
|
|
639
|
-
title?: TextProps
|
|
667
|
+
title?: TextProps & {
|
|
668
|
+
container?: {
|
|
669
|
+
pad?: {
|
|
670
|
+
horizontal?: string;
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
};
|
|
640
674
|
fontSize?: string;
|
|
641
675
|
lineHeight?: number;
|
|
642
676
|
daySize?: string;
|
|
@@ -655,7 +689,13 @@ export interface ThemeType {
|
|
|
655
689
|
round?: RoundType;
|
|
656
690
|
};
|
|
657
691
|
};
|
|
658
|
-
title?: TextProps
|
|
692
|
+
title?: TextProps & {
|
|
693
|
+
container?: {
|
|
694
|
+
pad?: {
|
|
695
|
+
horizontal?: string;
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
};
|
|
659
699
|
fontSize?: string;
|
|
660
700
|
lineHeight?: number;
|
|
661
701
|
daySize?: string;
|
|
@@ -674,7 +714,13 @@ export interface ThemeType {
|
|
|
674
714
|
round?: RoundType;
|
|
675
715
|
};
|
|
676
716
|
};
|
|
677
|
-
title?: TextProps
|
|
717
|
+
title?: TextProps & {
|
|
718
|
+
container?: {
|
|
719
|
+
pad?: {
|
|
720
|
+
horizontal?: string;
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
};
|
|
678
724
|
fontSize?: string;
|
|
679
725
|
lineHeight?: number;
|
|
680
726
|
daySize?: string;
|
|
@@ -705,6 +751,10 @@ export interface ThemeType {
|
|
|
705
751
|
};
|
|
706
752
|
cards?: {
|
|
707
753
|
container?: BoxProps;
|
|
754
|
+
grid?: {
|
|
755
|
+
columns?: GridColumnsType;
|
|
756
|
+
gap?: GridGapType;
|
|
757
|
+
};
|
|
708
758
|
};
|
|
709
759
|
carousel?: {
|
|
710
760
|
animation?: {
|
|
@@ -725,6 +775,9 @@ export interface ThemeType {
|
|
|
725
775
|
chart?: {
|
|
726
776
|
color?: ColorType;
|
|
727
777
|
extend?: ExtendType;
|
|
778
|
+
height?: string;
|
|
779
|
+
thickness?: PadType;
|
|
780
|
+
width?: string;
|
|
728
781
|
};
|
|
729
782
|
checkBox?: {
|
|
730
783
|
border?: {
|
|
@@ -821,12 +874,106 @@ export interface ThemeType {
|
|
|
821
874
|
button?: {
|
|
822
875
|
kind?: string;
|
|
823
876
|
};
|
|
877
|
+
drop?: {
|
|
878
|
+
pad?: PadType;
|
|
879
|
+
};
|
|
880
|
+
};
|
|
881
|
+
dataChart?: {
|
|
882
|
+
gap?: GapType;
|
|
883
|
+
granularity?: {
|
|
884
|
+
y?: {
|
|
885
|
+
[key: string]: {
|
|
886
|
+
fine: number;
|
|
887
|
+
medium: number;
|
|
888
|
+
};
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
detail?: {
|
|
892
|
+
gap?: GridGapType;
|
|
893
|
+
pad?: PadType;
|
|
894
|
+
};
|
|
895
|
+
halfPad?: {
|
|
896
|
+
[key: string]: string;
|
|
897
|
+
};
|
|
898
|
+
legend?: {
|
|
899
|
+
margin?: MarginType;
|
|
900
|
+
gap?: GapType;
|
|
901
|
+
item?: {
|
|
902
|
+
gap?: GapType;
|
|
903
|
+
pad?: PadType;
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
orderedSizes?: string[];
|
|
907
|
+
size?: {
|
|
908
|
+
height?: string;
|
|
909
|
+
};
|
|
910
|
+
thickness?: {
|
|
911
|
+
veryDense?: string;
|
|
912
|
+
dense?: string;
|
|
913
|
+
heavy?: string;
|
|
914
|
+
moderate?: string;
|
|
915
|
+
light?: string;
|
|
916
|
+
sparse?: string;
|
|
917
|
+
};
|
|
918
|
+
thicknessPad?: {
|
|
919
|
+
xlarge?: PadType;
|
|
920
|
+
large?: PadType;
|
|
921
|
+
medium?: PadType;
|
|
922
|
+
small?: PadType;
|
|
923
|
+
xsmall?: PadType;
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
|
+
dataFilter?: {
|
|
927
|
+
rangeSelector?: {
|
|
928
|
+
size?: string;
|
|
929
|
+
round?: string;
|
|
930
|
+
};
|
|
931
|
+
selectMultiple?: {
|
|
932
|
+
dropHeight?: string;
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
dataFilters?: {
|
|
936
|
+
icons?: {
|
|
937
|
+
close?: React.ReactNode | Icon;
|
|
938
|
+
filter?: React.ReactNode | Icon;
|
|
939
|
+
};
|
|
940
|
+
footer?: {
|
|
941
|
+
actions?: {
|
|
942
|
+
margin?: MarginType;
|
|
943
|
+
gap?: GapType;
|
|
944
|
+
};
|
|
945
|
+
};
|
|
946
|
+
clearControl?: {
|
|
947
|
+
margin?: MarginType;
|
|
948
|
+
};
|
|
949
|
+
pad?: PadType;
|
|
950
|
+
width?: WidthType;
|
|
951
|
+
};
|
|
952
|
+
dataSearch?: {
|
|
953
|
+
icons?: {
|
|
954
|
+
search?: React.ReactNode | Icon;
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
dataSort?: {
|
|
958
|
+
icons?: {
|
|
959
|
+
control?: React.ReactNode | Icon;
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
dataSummary?: {
|
|
963
|
+
margin?: MarginType;
|
|
964
|
+
separator?: {
|
|
965
|
+
margin?: MarginType;
|
|
966
|
+
};
|
|
824
967
|
};
|
|
825
968
|
dateInput?: {
|
|
969
|
+
button?: {
|
|
970
|
+
margin?: string;
|
|
971
|
+
};
|
|
826
972
|
container?: {
|
|
827
973
|
round?: RoundType;
|
|
828
974
|
};
|
|
829
975
|
icon?: {
|
|
976
|
+
calendar?: React.ReactNode | Icon;
|
|
830
977
|
size?: string;
|
|
831
978
|
};
|
|
832
979
|
};
|
|
@@ -841,6 +988,9 @@ export interface ThemeType {
|
|
|
841
988
|
};
|
|
842
989
|
};
|
|
843
990
|
container?: BoxProps;
|
|
991
|
+
expand?: {
|
|
992
|
+
size?: string;
|
|
993
|
+
};
|
|
844
994
|
header?: {
|
|
845
995
|
background?: BackgroundType;
|
|
846
996
|
border?: BorderType;
|
|
@@ -877,6 +1027,9 @@ export interface ThemeType {
|
|
|
877
1027
|
contract?: any;
|
|
878
1028
|
descending?: any;
|
|
879
1029
|
expand?: any;
|
|
1030
|
+
resizeDecrease?: React.ReactNode | Icon;
|
|
1031
|
+
resizeIncrease?: React.ReactNode | Icon;
|
|
1032
|
+
search?: React.ReactNode | Icon;
|
|
880
1033
|
sortable?: any;
|
|
881
1034
|
};
|
|
882
1035
|
pinned?: {
|
|
@@ -905,10 +1058,39 @@ export interface ThemeType {
|
|
|
905
1058
|
size: string;
|
|
906
1059
|
};
|
|
907
1060
|
};
|
|
1061
|
+
padding?: {
|
|
1062
|
+
vertical?: string;
|
|
1063
|
+
};
|
|
908
1064
|
};
|
|
909
1065
|
primary?: {
|
|
910
1066
|
weight?: string;
|
|
911
1067
|
};
|
|
1068
|
+
search?: {
|
|
1069
|
+
pad?: PadType;
|
|
1070
|
+
text?: {
|
|
1071
|
+
pad?: PadType;
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
1074
|
+
sort?: {
|
|
1075
|
+
gap?: GapType;
|
|
1076
|
+
};
|
|
1077
|
+
};
|
|
1078
|
+
dataTableColumns?: {
|
|
1079
|
+
icons?: {
|
|
1080
|
+
control?: React.ReactNode | Icon;
|
|
1081
|
+
pinned?: React.ReactNode | Icon;
|
|
1082
|
+
search?: React.ReactNode | Icon;
|
|
1083
|
+
};
|
|
1084
|
+
tabs?: {
|
|
1085
|
+
pad?: PadType;
|
|
1086
|
+
};
|
|
1087
|
+
selectColumns?: {
|
|
1088
|
+
pad?: PadType;
|
|
1089
|
+
gap?: GapType;
|
|
1090
|
+
};
|
|
1091
|
+
orderColumns?: {
|
|
1092
|
+
pad?: PadType;
|
|
1093
|
+
};
|
|
912
1094
|
};
|
|
913
1095
|
diagram?: {
|
|
914
1096
|
extend?: ExtendType;
|
|
@@ -916,11 +1098,17 @@ export interface ThemeType {
|
|
|
916
1098
|
color?: ColorType;
|
|
917
1099
|
};
|
|
918
1100
|
};
|
|
1101
|
+
distribution?: {
|
|
1102
|
+
gap?: GapType;
|
|
1103
|
+
};
|
|
919
1104
|
drop?: {
|
|
920
1105
|
extend?: ExtendType;
|
|
921
1106
|
maxHeight?: string;
|
|
922
1107
|
};
|
|
923
1108
|
fileInput?: {
|
|
1109
|
+
anchor?: {
|
|
1110
|
+
margin?: MarginType;
|
|
1111
|
+
};
|
|
924
1112
|
background?: BackgroundType;
|
|
925
1113
|
border?: BorderType;
|
|
926
1114
|
dragOver?: {
|
|
@@ -937,6 +1125,7 @@ export interface ThemeType {
|
|
|
937
1125
|
pad?: PadType;
|
|
938
1126
|
};
|
|
939
1127
|
icons?: {
|
|
1128
|
+
error?: React.ReactNode | Icon;
|
|
940
1129
|
remove?: any;
|
|
941
1130
|
};
|
|
942
1131
|
label?: TextProps & { extend?: ExtendType };
|
|
@@ -945,6 +1134,9 @@ export interface ThemeType {
|
|
|
945
1134
|
pad?: PadType;
|
|
946
1135
|
round?: RoundType;
|
|
947
1136
|
};
|
|
1137
|
+
footer?: {
|
|
1138
|
+
gap?: GapType;
|
|
1139
|
+
};
|
|
948
1140
|
formField?: {
|
|
949
1141
|
border?: BorderType & {
|
|
950
1142
|
error?: {
|
|
@@ -1032,6 +1224,7 @@ export interface ThemeType {
|
|
|
1032
1224
|
sticky?: {
|
|
1033
1225
|
zIndex?: string;
|
|
1034
1226
|
};
|
|
1227
|
+
gap?: GapType;
|
|
1035
1228
|
};
|
|
1036
1229
|
heading?: {
|
|
1037
1230
|
color?: ColorType;
|
|
@@ -1200,6 +1393,7 @@ export interface ThemeType {
|
|
|
1200
1393
|
intelligentRounding?: boolean;
|
|
1201
1394
|
};
|
|
1202
1395
|
container?: {
|
|
1396
|
+
height?: HeightType;
|
|
1203
1397
|
elevation?: ElevationType;
|
|
1204
1398
|
extend?: ExtendType;
|
|
1205
1399
|
zIndex?: string;
|
|
@@ -1221,6 +1415,7 @@ export interface ThemeType {
|
|
|
1221
1415
|
color?: ColorType;
|
|
1222
1416
|
cursor?: string;
|
|
1223
1417
|
};
|
|
1418
|
+
gap: GapType;
|
|
1224
1419
|
pinned?: {
|
|
1225
1420
|
background?: BackgroundType;
|
|
1226
1421
|
icon?: {
|
|
@@ -1274,11 +1469,16 @@ export interface ThemeType {
|
|
|
1274
1469
|
color?: ColorType;
|
|
1275
1470
|
colors?: GraphColorsType;
|
|
1276
1471
|
extend?: ExtendType;
|
|
1472
|
+
gap?: GapType;
|
|
1473
|
+
};
|
|
1474
|
+
nav?: {
|
|
1475
|
+
gap?: GapType;
|
|
1277
1476
|
};
|
|
1278
1477
|
notification?: {
|
|
1279
1478
|
actions?: AnchorProps;
|
|
1280
1479
|
container?: BoxProps;
|
|
1281
1480
|
direction?: 'column' | 'row';
|
|
1481
|
+
gap?: GapType;
|
|
1282
1482
|
global?: {
|
|
1283
1483
|
direction?: 'column' | 'row';
|
|
1284
1484
|
container?: BoxProps;
|
|
@@ -1292,7 +1492,7 @@ export interface ThemeType {
|
|
|
1292
1492
|
iconContainer?: BoxProps;
|
|
1293
1493
|
textContainer?: BoxProps;
|
|
1294
1494
|
title?: TextProps;
|
|
1295
|
-
message?: TextProps & { fill?: boolean };
|
|
1495
|
+
message?: TextProps & { fill?: boolean; text?: { margin?: MarginType } };
|
|
1296
1496
|
close?: {
|
|
1297
1497
|
icon?: React.ReactNode | Icon;
|
|
1298
1498
|
color?: ColorType;
|
|
@@ -1551,6 +1751,11 @@ export interface ThemeType {
|
|
|
1551
1751
|
next?: React.ReactNode | Icon;
|
|
1552
1752
|
previous?: React.ReactNode | Icon;
|
|
1553
1753
|
};
|
|
1754
|
+
step?: {
|
|
1755
|
+
container?: {
|
|
1756
|
+
gap?: GapType;
|
|
1757
|
+
};
|
|
1758
|
+
};
|
|
1554
1759
|
};
|
|
1555
1760
|
paragraph?: {
|
|
1556
1761
|
extend?: ExtendType;
|
|
@@ -1579,6 +1784,9 @@ export interface ThemeType {
|
|
|
1579
1784
|
height?: string;
|
|
1580
1785
|
maxWidth?: string;
|
|
1581
1786
|
};
|
|
1787
|
+
skeleton?: {
|
|
1788
|
+
gap?: GapType;
|
|
1789
|
+
};
|
|
1582
1790
|
};
|
|
1583
1791
|
radioButton?: {
|
|
1584
1792
|
extend?: ExtendType;
|
|
@@ -1693,6 +1901,9 @@ export interface ThemeType {
|
|
|
1693
1901
|
type?: string;
|
|
1694
1902
|
size?: EdgeSizeType | string;
|
|
1695
1903
|
};
|
|
1904
|
+
label?: {
|
|
1905
|
+
margin?: MarginType;
|
|
1906
|
+
};
|
|
1696
1907
|
};
|
|
1697
1908
|
select?: {
|
|
1698
1909
|
background?: BackgroundType;
|
|
@@ -1725,15 +1936,42 @@ export interface ThemeType {
|
|
|
1725
1936
|
container?: PropsOf<typeof Box>;
|
|
1726
1937
|
text?: PropsOf<typeof Text>;
|
|
1727
1938
|
};
|
|
1939
|
+
search?: {
|
|
1940
|
+
pad?: PadType;
|
|
1941
|
+
};
|
|
1728
1942
|
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/37506
|
|
1729
1943
|
searchInput?: ReactComponentElement<any>;
|
|
1730
1944
|
step?: number;
|
|
1731
1945
|
};
|
|
1732
1946
|
selectMultiple?: {
|
|
1947
|
+
help?: {
|
|
1948
|
+
container?: {
|
|
1949
|
+
pad: PadType;
|
|
1950
|
+
};
|
|
1951
|
+
};
|
|
1733
1952
|
maxInline?: number;
|
|
1734
1953
|
listbox?: {
|
|
1735
1954
|
extend?: ExtendType;
|
|
1736
1955
|
};
|
|
1956
|
+
option?: {
|
|
1957
|
+
pad?: PadType;
|
|
1958
|
+
};
|
|
1959
|
+
search?: {
|
|
1960
|
+
pad?: PadType;
|
|
1961
|
+
};
|
|
1962
|
+
showMore?: {
|
|
1963
|
+
pad?: PadType;
|
|
1964
|
+
};
|
|
1965
|
+
summary?: {
|
|
1966
|
+
pad?: PadType;
|
|
1967
|
+
showSelectedInline?: {
|
|
1968
|
+
pad: PadType;
|
|
1969
|
+
};
|
|
1970
|
+
};
|
|
1971
|
+
};
|
|
1972
|
+
sidebar?: {
|
|
1973
|
+
gap?: GapType;
|
|
1974
|
+
pad?: PadType;
|
|
1737
1975
|
};
|
|
1738
1976
|
skeleton?: BoxProps & { colors?: SkeletonColorsType; extend?: ExtendType };
|
|
1739
1977
|
skipLinks?: {
|
|
@@ -1747,6 +1985,7 @@ export interface ThemeType {
|
|
|
1747
1985
|
| { color?: ColorType }
|
|
1748
1986
|
| { size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | string };
|
|
1749
1987
|
icon?: React.ReactNode | Icon;
|
|
1988
|
+
responsive?: boolean;
|
|
1750
1989
|
size?: {
|
|
1751
1990
|
xsmall?: string;
|
|
1752
1991
|
small?: string;
|
|
@@ -1757,11 +1996,21 @@ export interface ThemeType {
|
|
|
1757
1996
|
};
|
|
1758
1997
|
starRating?: {
|
|
1759
1998
|
color?: ColorType;
|
|
1999
|
+
icons?: {
|
|
2000
|
+
selected?: React.ReactNode | Icon;
|
|
2001
|
+
unselected?: React.ReactNode | Icon;
|
|
2002
|
+
};
|
|
1760
2003
|
};
|
|
1761
2004
|
thumbsRating?: {
|
|
1762
2005
|
dislike?: {
|
|
1763
2006
|
color?: ColorType;
|
|
1764
2007
|
};
|
|
2008
|
+
icons?: {
|
|
2009
|
+
dislike?: React.ReactNode | Icon;
|
|
2010
|
+
dislikeSelected?: React.ReactNode | Icon;
|
|
2011
|
+
like?: React.ReactNode | Icon;
|
|
2012
|
+
likeSelected?: React.ReactNode | Icon;
|
|
2013
|
+
};
|
|
1765
2014
|
like?: {
|
|
1766
2015
|
color?: ColorType;
|
|
1767
2016
|
};
|
|
@@ -1792,6 +2041,7 @@ export interface ThemeType {
|
|
|
1792
2041
|
color?: ColorType;
|
|
1793
2042
|
};
|
|
1794
2043
|
extend?: ExtendType;
|
|
2044
|
+
gap?: GapType;
|
|
1795
2045
|
hover?: {
|
|
1796
2046
|
background?: BackgroundType;
|
|
1797
2047
|
color?: ColorType;
|
|
@@ -1814,6 +2064,14 @@ export interface ThemeType {
|
|
|
1814
2064
|
color?: ColorType;
|
|
1815
2065
|
};
|
|
1816
2066
|
extend?: ExtendType;
|
|
2067
|
+
nextButton?: {
|
|
2068
|
+
icon?: React.ReactNode | Icon;
|
|
2069
|
+
pad?: PadType;
|
|
2070
|
+
};
|
|
2071
|
+
previousButton?: {
|
|
2072
|
+
icon?: React.ReactNode | Icon;
|
|
2073
|
+
pad?: PadType;
|
|
2074
|
+
};
|
|
1817
2075
|
};
|
|
1818
2076
|
panel?: {
|
|
1819
2077
|
extend?: ExtendType;
|
|
@@ -1825,6 +2083,9 @@ export interface ThemeType {
|
|
|
1825
2083
|
};
|
|
1826
2084
|
};
|
|
1827
2085
|
table?: {
|
|
2086
|
+
caption?: {
|
|
2087
|
+
margin?: MarginType;
|
|
2088
|
+
};
|
|
1828
2089
|
header?: {
|
|
1829
2090
|
background?: BackgroundType;
|
|
1830
2091
|
extend?: ExtendType;
|
|
@@ -1860,6 +2121,10 @@ export interface ThemeType {
|
|
|
1860
2121
|
tag?: {
|
|
1861
2122
|
background?: BackgroundType;
|
|
1862
2123
|
border?: BorderType;
|
|
2124
|
+
hover?: {
|
|
2125
|
+
background?: BackgroundType;
|
|
2126
|
+
border?: BorderType;
|
|
2127
|
+
};
|
|
1863
2128
|
round?: RoundType;
|
|
1864
2129
|
name?: TextProps;
|
|
1865
2130
|
pad?: PadType;
|
|
@@ -1976,6 +2241,9 @@ export interface ThemeType {
|
|
|
1976
2241
|
container?: {
|
|
1977
2242
|
extend?: ExtendType;
|
|
1978
2243
|
};
|
|
2244
|
+
icons?: {
|
|
2245
|
+
copy?: React.ReactNode | Icon;
|
|
2246
|
+
};
|
|
1979
2247
|
placeholder?: {
|
|
1980
2248
|
extend?: ExtendType;
|
|
1981
2249
|
};
|
|
@@ -2005,6 +2273,12 @@ export interface ThemeType {
|
|
|
2005
2273
|
}
|
|
2006
2274
|
| boolean;
|
|
2007
2275
|
};
|
|
2276
|
+
toolbar?: {
|
|
2277
|
+
small: {
|
|
2278
|
+
gap?: GapType;
|
|
2279
|
+
};
|
|
2280
|
+
gap?: GapType;
|
|
2281
|
+
};
|
|
2008
2282
|
video?: {
|
|
2009
2283
|
captions?: {
|
|
2010
2284
|
background?: BackgroundType;
|
|
@@ -2028,6 +2302,12 @@ export interface ThemeType {
|
|
|
2028
2302
|
track?: {
|
|
2029
2303
|
color?: ColorType;
|
|
2030
2304
|
};
|
|
2305
|
+
thickness?: string;
|
|
2306
|
+
};
|
|
2307
|
+
time?: {
|
|
2308
|
+
container?: {
|
|
2309
|
+
pad?: PadType;
|
|
2310
|
+
};
|
|
2031
2311
|
};
|
|
2032
2312
|
};
|
|
2033
2313
|
worldMap?: {
|