grommet 2.25.3 → 2.27.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/all/stories/AllComponents.js +19 -126
- package/components/Accordion/stories/CustomHeader.js +3 -1
- package/components/Avatar/Avatar.js +22 -9
- package/components/Box/stories/BackgroundThemed.js +54 -0
- package/components/Box/stories/CustomThemed/ThemedBackground.tsx +176 -0
- package/components/Calendar/Calendar.js +2 -1
- package/components/CheckBox/StyledCheckBox.js +9 -5
- package/components/CheckBoxGroup/CheckBoxGroup.js +3 -2
- package/components/CheckBoxGroup/index.d.ts +2 -1
- package/components/CheckBoxGroup/propTypes.js +1 -0
- package/components/DataChart/Detail.js +3 -1
- package/components/DataTable/index.d.ts +6 -6
- package/components/DateInput/DateInput.js +1 -1
- package/components/Diagram/Diagram.js +2 -1
- package/components/Drop/stories/Inline.js +1 -1
- package/components/Drop/stories/Overflow.js +1 -1
- package/components/Drop/stories/Plain.js +1 -1
- package/components/Drop/stories/Simple.js +1 -1
- package/components/Drop/stories/Styled.js +1 -1
- package/components/FormField/FormField.js +1 -1
- package/components/Heading/Heading.js +31 -2
- package/components/Heading/StyledHeading.js +1 -1
- package/components/Heading/index.d.ts +1 -0
- package/components/Heading/propTypes.js +1 -0
- package/components/Heading/stories/All.js +4 -1
- package/components/List/List.js +125 -41
- package/components/List/index.d.ts +1 -0
- package/components/List/propTypes.js +1 -0
- package/components/List/stories/Order.js +1 -0
- package/components/List/stories/Pinned.js +37 -0
- package/components/List/stories/Selection.js +1 -0
- package/components/List/stories/onClickItem.js +1 -0
- package/components/Notification/Notification.js +2 -2
- package/components/Notification/index.d.ts +1 -1
- package/components/Notification/propTypes.js +1 -1
- package/components/Notification/stories/CustomThemed/ThemedNotification.tsx +2 -2
- package/components/RadioButton/README.md +1 -279
- package/components/RadioButton/RadioButton.js +1 -0
- package/components/Select/DefaultSelectTextInput.js +43 -0
- package/components/Select/EmptySearchOption.js +34 -0
- package/components/Select/Select.js +38 -99
- package/components/Select/SelectContainer.js +20 -60
- package/components/Select/StyledSelect.js +58 -2
- package/components/Select/index.d.ts +11 -9
- package/components/Select/propTypes.js +44 -40
- package/components/Select/utils.js +129 -3
- package/components/SelectMultiple/README.md +2 -0
- package/components/SelectMultiple/SelectMultiple.js +476 -0
- package/components/SelectMultiple/SelectMultipleContainer.js +483 -0
- package/components/SelectMultiple/SelectMultipleValue.js +163 -0
- package/components/SelectMultiple/SelectionSummary.js +104 -0
- package/components/SelectMultiple/index.d.ts +21 -0
- package/components/SelectMultiple/index.js +8 -0
- package/components/SelectMultiple/propTypes.js +28 -0
- package/components/SelectMultiple/stories/Default.js +76 -0
- package/components/SelectMultiple/stories/Disabled.js +84 -0
- package/components/SelectMultiple/stories/FormField.js +66 -0
- package/components/SelectMultiple/stories/Limited.js +68 -0
- package/components/SelectMultiple/stories/LongList.js +76 -0
- package/components/SelectMultiple/stories/ObjectOptions.js +104 -0
- package/components/SelectMultiple/stories/ShowSelectedInline.js +76 -0
- package/components/SelectMultiple/stories/typescript/Children.tsx +106 -0
- package/components/Sidebar/stories/Labels.js +4 -1
- package/components/TextArea/stories/NonResizable.js +1 -0
- package/components/TextArea/stories/Simple.js +1 -0
- package/components/index.d.ts +1 -0
- package/components/index.js +8 -0
- package/es6/all/stories/AllComponents.js +21 -121
- package/es6/components/Accordion/stories/CustomHeader.js +3 -1
- package/es6/components/Avatar/Avatar.js +21 -9
- package/es6/components/Box/stories/BackgroundThemed.js +39 -0
- package/es6/components/Box/stories/CustomThemed/ThemedBackground.tsx +176 -0
- package/es6/components/Calendar/Calendar.js +2 -1
- package/es6/components/CheckBox/StyledCheckBox.js +9 -5
- package/es6/components/CheckBoxGroup/CheckBoxGroup.js +3 -2
- package/es6/components/CheckBoxGroup/index.d.ts +2 -1
- package/es6/components/CheckBoxGroup/propTypes.js +1 -0
- package/es6/components/DataChart/Detail.js +3 -1
- package/es6/components/DataTable/index.d.ts +6 -6
- package/es6/components/DateInput/DateInput.js +1 -1
- package/es6/components/Diagram/Diagram.js +2 -1
- package/es6/components/Drop/stories/Inline.js +1 -1
- package/es6/components/Drop/stories/Overflow.js +1 -1
- package/es6/components/Drop/stories/Plain.js +1 -1
- package/es6/components/Drop/stories/Simple.js +1 -1
- package/es6/components/Drop/stories/Styled.js +1 -1
- package/es6/components/FormField/FormField.js +1 -1
- package/es6/components/Heading/Heading.js +30 -3
- package/es6/components/Heading/StyledHeading.js +1 -1
- package/es6/components/Heading/index.d.ts +1 -0
- package/es6/components/Heading/propTypes.js +1 -0
- package/es6/components/Heading/stories/All.js +4 -1
- package/es6/components/List/List.js +126 -42
- package/es6/components/List/index.d.ts +1 -0
- package/es6/components/List/propTypes.js +1 -0
- package/es6/components/List/stories/Order.js +1 -0
- package/es6/components/List/stories/Pinned.js +22 -0
- package/es6/components/List/stories/Selection.js +1 -0
- package/es6/components/List/stories/onClickItem.js +1 -0
- package/es6/components/Notification/Notification.js +2 -2
- package/es6/components/Notification/index.d.ts +1 -1
- package/es6/components/Notification/propTypes.js +1 -1
- package/es6/components/Notification/stories/CustomThemed/ThemedNotification.tsx +2 -2
- package/es6/components/RadioButton/README.md +1 -279
- package/es6/components/RadioButton/RadioButton.js +1 -0
- package/es6/components/Select/DefaultSelectTextInput.js +31 -0
- package/es6/components/Select/EmptySearchOption.js +21 -0
- package/es6/components/Select/Select.js +34 -93
- package/es6/components/Select/SelectContainer.js +20 -59
- package/es6/components/Select/StyledSelect.js +45 -1
- package/es6/components/Select/index.d.ts +11 -9
- package/es6/components/Select/propTypes.js +41 -39
- package/es6/components/Select/utils.js +95 -1
- package/es6/components/SelectMultiple/README.md +2 -0
- package/es6/components/SelectMultiple/SelectMultiple.js +447 -0
- package/es6/components/SelectMultiple/SelectMultipleContainer.js +455 -0
- package/es6/components/SelectMultiple/SelectMultipleValue.js +149 -0
- package/es6/components/SelectMultiple/SelectionSummary.js +91 -0
- package/es6/components/SelectMultiple/index.d.ts +21 -0
- package/es6/components/SelectMultiple/index.js +1 -0
- package/es6/components/SelectMultiple/propTypes.js +18 -0
- package/es6/components/SelectMultiple/stories/Default.js +60 -0
- package/es6/components/SelectMultiple/stories/Disabled.js +68 -0
- package/es6/components/SelectMultiple/stories/FormField.js +50 -0
- package/es6/components/SelectMultiple/stories/Limited.js +53 -0
- package/es6/components/SelectMultiple/stories/LongList.js +63 -0
- package/es6/components/SelectMultiple/stories/ObjectOptions.js +88 -0
- package/es6/components/SelectMultiple/stories/ShowSelectedInline.js +61 -0
- package/es6/components/SelectMultiple/stories/typescript/Children.tsx +106 -0
- package/es6/components/Sidebar/stories/Labels.js +4 -1
- package/es6/components/TextArea/stories/NonResizable.js +1 -0
- package/es6/components/TextArea/stories/Simple.js +1 -0
- package/es6/components/index.d.ts +1 -0
- package/es6/components/index.js +1 -0
- package/es6/index.d.ts +1 -0
- package/es6/themes/base.d.ts +16 -5
- package/es6/themes/base.js +60 -39
- package/es6/themes/grommet.js +15 -0
- package/es6/themes/hacktoberfest2022.js +129 -0
- package/es6/themes/index.js +2 -1
- package/es6/utils/background.js +65 -12
- package/es6/utils/general-prop-types.js +2 -0
- package/es6/utils/index.d.ts +2 -0
- package/es6/utils/styles.js +3 -1
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +44 -41
- package/themes/base.d.ts +16 -5
- package/themes/base.js +61 -39
- package/themes/grommet.js +15 -0
- package/themes/hacktoberfest2022.js +137 -0
- package/themes/index.js +6 -2
- package/tools/grommet-babel-preset-es2015.js +1 -12
- package/tools/pack.js +1 -94
- package/tools/release-stable.js +1 -27
- package/utils/background.js +64 -12
- package/utils/general-prop-types.js +2 -0
- package/utils/index.d.ts +2 -0
- package/utils/styles.js +3 -1
package/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export * from './components/RangeSelector';
|
|
|
56
56
|
export * from './components/RoutedAnchor';
|
|
57
57
|
export * from './components/RoutedButton';
|
|
58
58
|
export * from './components/Select';
|
|
59
|
+
export * from './components/SelectMultiple';
|
|
59
60
|
export * from './components/Sidebar';
|
|
60
61
|
export * from './components/SkipLink';
|
|
61
62
|
export * from './components/SkipLinks';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grommet",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.27.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "es6/index.js",
|
|
6
6
|
"jsnext:main": "es6/index.js",
|
|
@@ -33,10 +33,11 @@
|
|
|
33
33
|
"lint": "eslint src",
|
|
34
34
|
"lint-fix": "eslint src --fix",
|
|
35
35
|
"test": "jest --runInBand && yarn test-timezones",
|
|
36
|
+
"test-simple": "jest --runInBand",
|
|
36
37
|
"test-update": "jest --updateSnapshot && yarn test-timezones",
|
|
37
38
|
"test-watch": "jest --watchAll",
|
|
38
39
|
"test-bundlesize": "bundlesize",
|
|
39
|
-
"test-timezones": "TZ=Australia/Brisbane yarn test-calendar-dateinput --coverage=false && TZ=America/Los_Angeles yarn test-calendar-dateinput --coverage=false && TZ=Europe/Madrid yarn test-calendar-dateinput --coverage=false",
|
|
40
|
+
"test-timezones": "cross-env TZ=Australia/Brisbane yarn test-calendar-dateinput --coverage=false && cross-env TZ=America/Los_Angeles yarn test-calendar-dateinput --coverage=false && cross-env TZ=Europe/Madrid yarn test-calendar-dateinput --coverage=false",
|
|
40
41
|
"test-calendar-dateinput": "jest ./src/js/components/Calendar/__tests__/Calendar-test.tsx ./src/js/components/DateInput/__tests__/DateInput-test.tsx",
|
|
41
42
|
"pack": "babel-node ./tools/pack",
|
|
42
43
|
"storybook": "cross-env NODE_ENV=development start-storybook -p 9001 -c storybook",
|
|
@@ -58,8 +59,8 @@
|
|
|
58
59
|
"prop-types": "^15.8.1"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
|
-
"@babel/cli": "^7.
|
|
62
|
-
"@babel/core": "^7.
|
|
62
|
+
"@babel/cli": "^7.19.3",
|
|
63
|
+
"@babel/core": "^7.19.3",
|
|
63
64
|
"@babel/eslint-parser": "^7.18.9",
|
|
64
65
|
"@babel/node": "^7.18.9",
|
|
65
66
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
@@ -69,40 +70,42 @@
|
|
|
69
70
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
|
|
70
71
|
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
|
|
71
72
|
"@babel/plugin-proposal-pipeline-operator": "^7.18.9",
|
|
72
|
-
"@babel/preset-env": "^7.
|
|
73
|
+
"@babel/preset-env": "^7.19.3",
|
|
73
74
|
"@babel/preset-react": "^7.18.6",
|
|
74
|
-
"@storybook/addon-a11y": "6.
|
|
75
|
-
"@storybook/addon-storysource": "6.
|
|
76
|
-
"@storybook/addon-toolbars": "6.
|
|
77
|
-
"@storybook/addons": "6.
|
|
78
|
-
"@storybook/
|
|
79
|
-
"@storybook/
|
|
80
|
-
"@
|
|
75
|
+
"@storybook/addon-a11y": "^6.5.12",
|
|
76
|
+
"@storybook/addon-storysource": "^6.5.12",
|
|
77
|
+
"@storybook/addon-toolbars": "^6.5.12",
|
|
78
|
+
"@storybook/addons": "^6.5.12",
|
|
79
|
+
"@storybook/builder-webpack5": "^6.5.12",
|
|
80
|
+
"@storybook/manager-webpack5": "^6.5.12",
|
|
81
|
+
"@storybook/react": "^6.5.12",
|
|
82
|
+
"@storybook/source-loader": "^6.5.12",
|
|
83
|
+
"@testing-library/dom": "^8.17.1",
|
|
81
84
|
"@testing-library/jest-dom": "^5.16.4",
|
|
82
85
|
"@testing-library/react": "^13.3.0",
|
|
83
86
|
"@testing-library/testcafe": "^4.4.1",
|
|
84
|
-
"@testing-library/user-event": "14.
|
|
85
|
-
"@types/jest": "^
|
|
86
|
-
"@types/jest-axe": "^3.5.
|
|
87
|
-
"@types/node": "^18.
|
|
88
|
-
"@types/react": "^18.0.
|
|
87
|
+
"@testing-library/user-event": "^14.4.3",
|
|
88
|
+
"@types/jest": "^29.1.0",
|
|
89
|
+
"@types/jest-axe": "^3.5.5",
|
|
90
|
+
"@types/node": "^18.7.23",
|
|
91
|
+
"@types/react": "^18.0.21",
|
|
89
92
|
"@types/react-dom": "^18.0.6",
|
|
90
93
|
"@types/styled-components": "^5.1.25",
|
|
91
94
|
"babel-core": "^7.0.0-bridge.0",
|
|
92
|
-
"babel-jest": "
|
|
95
|
+
"babel-jest": "29.1.0",
|
|
93
96
|
"babel-loader": "^8.2.5",
|
|
94
97
|
"babel-plugin-styled-components": "2.0.6",
|
|
95
98
|
"babel-plugin-transform-imports": "^2.0.0",
|
|
96
99
|
"bundlesize2": "^0.0.31",
|
|
97
|
-
"chromatic": "^6.
|
|
100
|
+
"chromatic": "^6.10.1",
|
|
98
101
|
"clean-webpack-plugin": "^4.0.0",
|
|
99
|
-
"copy-webpack-plugin": "^
|
|
102
|
+
"copy-webpack-plugin": "^11.0.0",
|
|
100
103
|
"copyfiles": "^2.4.1",
|
|
101
|
-
"core-js": "^3.
|
|
104
|
+
"core-js": "^3.25.3",
|
|
102
105
|
"cross-env": "^7.0.3",
|
|
103
106
|
"del": "^6.1.1",
|
|
104
107
|
"elliptic": "^6.5.4",
|
|
105
|
-
"eslint": "^8.
|
|
108
|
+
"eslint": "^8.24.0",
|
|
106
109
|
"eslint-config-airbnb": "^19.0.4",
|
|
107
110
|
"eslint-config-prettier": "^8.5.0",
|
|
108
111
|
"eslint-plugin-babel": "^5.3.1",
|
|
@@ -111,16 +114,16 @@
|
|
|
111
114
|
"eslint-plugin-prettier": "^4.1.0",
|
|
112
115
|
"eslint-plugin-react": "^7.30.1",
|
|
113
116
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
114
|
-
"eslint-plugin-testing-library": "^5.
|
|
117
|
+
"eslint-plugin-testing-library": "^5.7.0",
|
|
115
118
|
"fs-extra": "^10.1.0",
|
|
116
119
|
"grommet-theme-aruba": "^0.1.2",
|
|
117
120
|
"grommet-theme-dxc": "^0.1.2",
|
|
118
121
|
"grommet-theme-hp": "^0.1.2",
|
|
119
122
|
"grommet-theme-hpe": "^3.2.1",
|
|
120
|
-
"jest": "
|
|
123
|
+
"jest": "29.1.1",
|
|
121
124
|
"jest-axe": "^6.0.0",
|
|
122
|
-
"jest-cli": "
|
|
123
|
-
"jest-environment-jsdom": "
|
|
125
|
+
"jest-cli": "29.1.1",
|
|
126
|
+
"jest-environment-jsdom": "29.1.1",
|
|
124
127
|
"jest-styled-components": "7.0.5",
|
|
125
128
|
"jsdom": "^20.0.0",
|
|
126
129
|
"postcss": "^8.4.14",
|
|
@@ -134,25 +137,25 @@
|
|
|
134
137
|
"regenerator-runtime": "^0.13.9",
|
|
135
138
|
"require-reload": "^0.2.2",
|
|
136
139
|
"simple-git": "^3.10.0",
|
|
137
|
-
"styled-components": "^5.3.
|
|
140
|
+
"styled-components": "^5.3.6",
|
|
138
141
|
"tarball-extract": "^0.0.6",
|
|
139
|
-
"testcafe": "^2.0.
|
|
142
|
+
"testcafe": "^2.0.1",
|
|
140
143
|
"testcafe-react-selectors": "^5.0.2",
|
|
141
|
-
"ts-jest": "^
|
|
142
|
-
"ts-loader": "^
|
|
143
|
-
"typescript": "^4.
|
|
144
|
-
"webpack": "^
|
|
145
|
-
"webpack-cli": "^4.
|
|
146
|
-
"webpack-dev-server": "^4.
|
|
144
|
+
"ts-jest": "^29.0.3",
|
|
145
|
+
"ts-loader": "^9.4.1",
|
|
146
|
+
"typescript": "^4.8.4",
|
|
147
|
+
"webpack": "^5.74.0",
|
|
148
|
+
"webpack-cli": "^4.10.0",
|
|
149
|
+
"webpack-dev-server": "^4.11.0"
|
|
147
150
|
},
|
|
148
151
|
"jest": {
|
|
149
|
-
"globals": {
|
|
150
|
-
"ts-jest": {
|
|
151
|
-
"tsconfig": "tsconfig.tests.json"
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
152
|
"transform": {
|
|
155
|
-
"^.+\\.tsx?$":
|
|
153
|
+
"^.+\\.tsx?$": [
|
|
154
|
+
"ts-jest",
|
|
155
|
+
{
|
|
156
|
+
"tsconfig": "tsconfig.tests.json"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
156
159
|
"^.+\\.jsx?$": "babel-jest"
|
|
157
160
|
},
|
|
158
161
|
"collectCoverage": true,
|
|
@@ -202,7 +205,7 @@
|
|
|
202
205
|
"bundlesize": [
|
|
203
206
|
{
|
|
204
207
|
"path": "./dist/grommet.min.js",
|
|
205
|
-
"maxSize": "
|
|
208
|
+
"maxSize": "143 kB"
|
|
206
209
|
}
|
|
207
210
|
],
|
|
208
211
|
"keywords": [
|
package/themes/base.d.ts
CHANGED
|
@@ -278,6 +278,9 @@ export interface ThemeType {
|
|
|
278
278
|
duration?: string;
|
|
279
279
|
};
|
|
280
280
|
};
|
|
281
|
+
backgrounds?: {
|
|
282
|
+
[x: string]: BackgroundType | { dark?: string; light?: string };
|
|
283
|
+
};
|
|
281
284
|
borderSize?: {
|
|
282
285
|
xsmall?: string;
|
|
283
286
|
small?: string;
|
|
@@ -392,6 +395,7 @@ export interface ThemeType {
|
|
|
392
395
|
maxWidth?: string;
|
|
393
396
|
size?: string;
|
|
394
397
|
weight?: number | string;
|
|
398
|
+
variant?: string;
|
|
395
399
|
};
|
|
396
400
|
graph?: {
|
|
397
401
|
colors?: GraphColorsType;
|
|
@@ -591,13 +595,14 @@ export interface ThemeType {
|
|
|
591
595
|
background?: {
|
|
592
596
|
color?: ColorType;
|
|
593
597
|
};
|
|
598
|
+
extend?: ExtendType;
|
|
594
599
|
};
|
|
595
600
|
icon?: {
|
|
596
601
|
size?: string;
|
|
597
602
|
extend?: ExtendType;
|
|
598
603
|
};
|
|
599
604
|
icons?: {
|
|
600
|
-
checked?:
|
|
605
|
+
checked?: React.ReactNode | Icon;
|
|
601
606
|
indeterminate?: any;
|
|
602
607
|
};
|
|
603
608
|
pad?: PadType;
|
|
@@ -659,6 +664,9 @@ export interface ThemeType {
|
|
|
659
664
|
baseline?: number;
|
|
660
665
|
};
|
|
661
666
|
dateInput?: {
|
|
667
|
+
container?: {
|
|
668
|
+
round?: RoundType;
|
|
669
|
+
};
|
|
662
670
|
icon?: {
|
|
663
671
|
size?: string;
|
|
664
672
|
};
|
|
@@ -782,8 +790,8 @@ export interface ThemeType {
|
|
|
782
790
|
margin?: MarginType;
|
|
783
791
|
pad?: PadType;
|
|
784
792
|
};
|
|
785
|
-
checkBox
|
|
786
|
-
pad
|
|
793
|
+
checkBox?: {
|
|
794
|
+
pad?: PadType;
|
|
787
795
|
};
|
|
788
796
|
disabled?: {
|
|
789
797
|
background?: BackgroundType;
|
|
@@ -1289,7 +1297,7 @@ export interface ThemeType {
|
|
|
1289
1297
|
size?: string;
|
|
1290
1298
|
};
|
|
1291
1299
|
icons?: {
|
|
1292
|
-
circle?:
|
|
1300
|
+
circle?: React.ReactNode | Icon;
|
|
1293
1301
|
};
|
|
1294
1302
|
gap?: string;
|
|
1295
1303
|
size?: string;
|
|
@@ -1395,6 +1403,9 @@ export interface ThemeType {
|
|
|
1395
1403
|
searchInput?: ReactComponentElement<any>;
|
|
1396
1404
|
step?: number;
|
|
1397
1405
|
};
|
|
1406
|
+
selectMultiple?: {
|
|
1407
|
+
maxInline?: number;
|
|
1408
|
+
};
|
|
1398
1409
|
skipLinks?: {
|
|
1399
1410
|
position?: LayerPositionType;
|
|
1400
1411
|
container?: BoxProps;
|
|
@@ -1644,7 +1655,7 @@ export interface ThemeType {
|
|
|
1644
1655
|
};
|
|
1645
1656
|
scrubber?: {
|
|
1646
1657
|
color?: ColorType;
|
|
1647
|
-
interval
|
|
1658
|
+
interval?: number;
|
|
1648
1659
|
track?: {
|
|
1649
1660
|
color?: ColorType;
|
|
1650
1661
|
};
|
package/themes/base.js
CHANGED
|
@@ -29,6 +29,8 @@ var _Pause = require("grommet-icons/icons/Pause");
|
|
|
29
29
|
|
|
30
30
|
var _Play = require("grommet-icons/icons/Play");
|
|
31
31
|
|
|
32
|
+
var _FormPin = require("grommet-icons/icons/FormPin");
|
|
33
|
+
|
|
32
34
|
var _Previous = require("grommet-icons/icons/Previous");
|
|
33
35
|
|
|
34
36
|
var _StatusCriticalSmall = require("grommet-icons/icons/StatusCriticalSmall");
|
|
@@ -184,6 +186,7 @@ var generate = function generate(baseSpacing, scale) {
|
|
|
184
186
|
duration: '0.1s'
|
|
185
187
|
}
|
|
186
188
|
},
|
|
189
|
+
// backgrounds: undefined,
|
|
187
190
|
borderSize: {
|
|
188
191
|
xsmall: '1px',
|
|
189
192
|
small: '2px',
|
|
@@ -738,6 +741,7 @@ var generate = function generate(baseSpacing, scale) {
|
|
|
738
741
|
light: 'black'
|
|
739
742
|
}
|
|
740
743
|
} // background: undefined,
|
|
744
|
+
// extend: undefined,
|
|
741
745
|
|
|
742
746
|
},
|
|
743
747
|
icon: {// size: undefined,
|
|
@@ -840,9 +844,13 @@ var generate = function generate(baseSpacing, scale) {
|
|
|
840
844
|
minSpeed: 200,
|
|
841
845
|
baseline: 500
|
|
842
846
|
},
|
|
843
|
-
dateInput: {
|
|
847
|
+
dateInput: {
|
|
848
|
+
container: {
|
|
849
|
+
round: 'xxsmall'
|
|
850
|
+
} // icon: {
|
|
844
851
|
// size: undefined,
|
|
845
852
|
// },
|
|
853
|
+
|
|
846
854
|
},
|
|
847
855
|
dataTable: {
|
|
848
856
|
// body: {
|
|
@@ -1163,6 +1171,13 @@ var generate = function generate(baseSpacing, scale) {
|
|
|
1163
1171
|
color: 'status-disabled',
|
|
1164
1172
|
cursor: 'default'
|
|
1165
1173
|
},
|
|
1174
|
+
pinned: {
|
|
1175
|
+
background: 'background-contrast',
|
|
1176
|
+
icon: {
|
|
1177
|
+
size: 'medium',
|
|
1178
|
+
pad: 'small'
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1166
1181
|
pad: {
|
|
1167
1182
|
horizontal: 'medium',
|
|
1168
1183
|
vertical: 'small'
|
|
@@ -1171,7 +1186,8 @@ var generate = function generate(baseSpacing, scale) {
|
|
|
1171
1186
|
},
|
|
1172
1187
|
icons: {
|
|
1173
1188
|
down: _FormDown.FormDown,
|
|
1174
|
-
up: _FormUp.FormUp
|
|
1189
|
+
up: _FormUp.FormUp,
|
|
1190
|
+
pin: _FormPin.FormPin
|
|
1175
1191
|
} // extend: undefined,
|
|
1176
1192
|
|
|
1177
1193
|
},
|
|
@@ -1257,6 +1273,7 @@ var generate = function generate(baseSpacing, scale) {
|
|
|
1257
1273
|
direction: 'column',
|
|
1258
1274
|
container: {
|
|
1259
1275
|
// any box props
|
|
1276
|
+
round: 'xsmall',
|
|
1260
1277
|
pad: {
|
|
1261
1278
|
horizontal: 'small',
|
|
1262
1279
|
vertical: 'xsmall'
|
|
@@ -1269,6 +1286,7 @@ var generate = function generate(baseSpacing, scale) {
|
|
|
1269
1286
|
direction: 'row',
|
|
1270
1287
|
container: {
|
|
1271
1288
|
// any box props
|
|
1289
|
+
round: 'none',
|
|
1272
1290
|
pad: {
|
|
1273
1291
|
horizontal: 'large',
|
|
1274
1292
|
vertical: 'xsmall'
|
|
@@ -1280,7 +1298,6 @@ var generate = function generate(baseSpacing, scale) {
|
|
|
1280
1298
|
container: {
|
|
1281
1299
|
// any box props
|
|
1282
1300
|
elevation: 'medium',
|
|
1283
|
-
round: 'xsmall',
|
|
1284
1301
|
width: 'medium'
|
|
1285
1302
|
},
|
|
1286
1303
|
layer: {
|
|
@@ -1313,58 +1330,60 @@ var generate = function generate(baseSpacing, scale) {
|
|
|
1313
1330
|
},
|
|
1314
1331
|
critical: {
|
|
1315
1332
|
icon: _StatusCriticalSmall.StatusCriticalSmall,
|
|
1316
|
-
|
|
1333
|
+
background: {
|
|
1334
|
+
color: 'status-critical',
|
|
1335
|
+
opacity: 'weak'
|
|
1336
|
+
},
|
|
1317
1337
|
color: 'status-critical',
|
|
1318
|
-
global: {
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
}
|
|
1323
|
-
} // toast: {},
|
|
1324
|
-
|
|
1338
|
+
// global: {},
|
|
1339
|
+
toast: {
|
|
1340
|
+
background: 'background-front'
|
|
1341
|
+
}
|
|
1325
1342
|
},
|
|
1326
1343
|
warning: {
|
|
1327
1344
|
icon: _StatusWarningSmall.StatusWarningSmall,
|
|
1328
|
-
|
|
1345
|
+
background: {
|
|
1346
|
+
color: 'status-warning',
|
|
1347
|
+
opacity: 'weak'
|
|
1348
|
+
},
|
|
1329
1349
|
color: 'status-warning',
|
|
1330
|
-
global: {
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
}
|
|
1335
|
-
} // toast: {},
|
|
1336
|
-
|
|
1350
|
+
// global: {},
|
|
1351
|
+
toast: {
|
|
1352
|
+
background: 'background-front'
|
|
1353
|
+
}
|
|
1337
1354
|
},
|
|
1338
1355
|
normal: {
|
|
1339
1356
|
icon: _StatusGoodSmall.StatusGoodSmall,
|
|
1340
|
-
|
|
1357
|
+
background: {
|
|
1358
|
+
color: 'status-ok',
|
|
1359
|
+
opacity: 'weak'
|
|
1360
|
+
},
|
|
1341
1361
|
color: 'status-ok',
|
|
1342
|
-
global: {
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
}
|
|
1347
|
-
} // toast: {},
|
|
1348
|
-
|
|
1362
|
+
// global: {},
|
|
1363
|
+
toast: {
|
|
1364
|
+
background: 'background-front'
|
|
1365
|
+
}
|
|
1349
1366
|
},
|
|
1350
1367
|
info: {
|
|
1351
1368
|
icon: _CircleInformation.CircleInformation,
|
|
1352
|
-
|
|
1353
|
-
color: 'text-strong'
|
|
1354
|
-
//
|
|
1355
|
-
|
|
1369
|
+
background: 'background-contrast',
|
|
1370
|
+
color: 'text-strong',
|
|
1371
|
+
// global: {},
|
|
1372
|
+
toast: {
|
|
1373
|
+
background: 'background-front'
|
|
1374
|
+
}
|
|
1356
1375
|
},
|
|
1357
1376
|
unknown: {
|
|
1358
1377
|
icon: _StatusUnknownSmall.StatusUnknownSmall,
|
|
1359
|
-
|
|
1378
|
+
background: {
|
|
1379
|
+
color: 'status-unknown',
|
|
1380
|
+
opacity: 'weak'
|
|
1381
|
+
},
|
|
1360
1382
|
color: 'status-unknown',
|
|
1361
|
-
global: {
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
}
|
|
1366
|
-
} // toast: {},
|
|
1367
|
-
|
|
1383
|
+
// global: {},
|
|
1384
|
+
toast: {
|
|
1385
|
+
background: 'background-front'
|
|
1386
|
+
}
|
|
1368
1387
|
},
|
|
1369
1388
|
// deprecate "undefined" in v3
|
|
1370
1389
|
// and if undefined, no icon
|
|
@@ -1761,6 +1780,9 @@ var generate = function generate(baseSpacing, scale) {
|
|
|
1761
1780
|
// searchInput: undefined,
|
|
1762
1781
|
step: 20
|
|
1763
1782
|
},
|
|
1783
|
+
selectMultiple: {
|
|
1784
|
+
maxInline: 5
|
|
1785
|
+
},
|
|
1764
1786
|
skipLinks: {
|
|
1765
1787
|
position: 'top',
|
|
1766
1788
|
container: {
|
package/themes/grommet.js
CHANGED
|
@@ -15,6 +15,21 @@ var grommet = (0, _object.deepFreeze)({
|
|
|
15
15
|
dark: '#000000'
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
+
backgrounds: {
|
|
19
|
+
stack: {
|
|
20
|
+
color: 'light-1',
|
|
21
|
+
image: "url(https://v2.grommet.io/img/stak-hurrah.svg)"
|
|
22
|
+
},
|
|
23
|
+
'gradient-purple-blue': {
|
|
24
|
+
color: 'neutral-3',
|
|
25
|
+
image: "linear-gradient(\n #3D138D 0%, /* neutral-2 */\n #00739D 100% /* neutral-3 */\n );",
|
|
26
|
+
rotate: 145
|
|
27
|
+
},
|
|
28
|
+
'gradient-purple-gold': {
|
|
29
|
+
color: 'neutral-2',
|
|
30
|
+
image: "linear-gradient(\n #3D138D 0%, /* neutral-2 */\n #EB0F79 75%,\n #FFCA58 100% /* accent-4 */\n );"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
18
33
|
font: {
|
|
19
34
|
family: "-apple-system,\n BlinkMacSystemFont, \n \"Segoe UI\", \n Roboto, \n Oxygen, \n Ubuntu, \n Cantarell, \n \"Fira Sans\", \n \"Droid Sans\", \n \"Helvetica Neue\", \n Arial, sans-serif, \n \"Apple Color Emoji\", \n \"Segoe UI Emoji\", \n \"Segoe UI Symbol\""
|
|
20
35
|
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.hacktoberfest2022 = void 0;
|
|
5
|
+
|
|
6
|
+
var _styledComponents = require("styled-components");
|
|
7
|
+
|
|
8
|
+
var _object = require("../utils/object");
|
|
9
|
+
|
|
10
|
+
var hacktoberfest2022 = (0, _object.deepFreeze)({
|
|
11
|
+
defaultMode: 'dark',
|
|
12
|
+
global: {
|
|
13
|
+
colors: {
|
|
14
|
+
background: '#160F1D',
|
|
15
|
+
'background-back': '#000000',
|
|
16
|
+
'background-front': '#160F1D',
|
|
17
|
+
'text-strong': '#FFFFFF',
|
|
18
|
+
text: '#E4E1E6',
|
|
19
|
+
'text-weak': '#76717A',
|
|
20
|
+
grey: '#AFACB2',
|
|
21
|
+
lime: '#C6FC60',
|
|
22
|
+
pink: '#D856A7',
|
|
23
|
+
purple: '#7C7EF4',
|
|
24
|
+
teal: '#73DAFB',
|
|
25
|
+
yellow: '#EDD063',
|
|
26
|
+
darkPurple: '#291E40',
|
|
27
|
+
active: 'purple',
|
|
28
|
+
focus: '#233670',
|
|
29
|
+
brand: 'lime',
|
|
30
|
+
control: 'teal',
|
|
31
|
+
'graph-0': 'yellow',
|
|
32
|
+
'graph-1': 'purple',
|
|
33
|
+
'graph-2': 'teal',
|
|
34
|
+
'graph-3': 'pink',
|
|
35
|
+
'graph-4': 'lime',
|
|
36
|
+
// clear unused colors
|
|
37
|
+
icon: undefined,
|
|
38
|
+
'accent-1': undefined,
|
|
39
|
+
'accent-2': undefined,
|
|
40
|
+
'accent-3': undefined,
|
|
41
|
+
'accent-4': undefined,
|
|
42
|
+
'neutral-1': undefined,
|
|
43
|
+
'neutral-2': undefined,
|
|
44
|
+
'neutral-3': undefined,
|
|
45
|
+
'neutral-4': undefined,
|
|
46
|
+
'neutral-5': undefined,
|
|
47
|
+
'light-1': undefined,
|
|
48
|
+
'light-2': undefined,
|
|
49
|
+
'light-3': undefined,
|
|
50
|
+
'light-4': undefined,
|
|
51
|
+
'light-5': undefined,
|
|
52
|
+
'light-6': undefined,
|
|
53
|
+
'dark-1': undefined,
|
|
54
|
+
'dark-2': undefined,
|
|
55
|
+
'dark-3': undefined,
|
|
56
|
+
'dark-4': undefined,
|
|
57
|
+
'dark-5': undefined,
|
|
58
|
+
'dark-6': undefined
|
|
59
|
+
},
|
|
60
|
+
backgrounds: {
|
|
61
|
+
'gradient-purple-teal': {
|
|
62
|
+
image: "linear-gradient(\n #7C7EF4 0%,\n #73DAFB 100%\n );"
|
|
63
|
+
},
|
|
64
|
+
'gradient-teal-purple': {
|
|
65
|
+
image: "linear-gradient(\n #73DAFB 0%,\n #7C7EF4 100%\n );"
|
|
66
|
+
},
|
|
67
|
+
'gradient-yellow-teal-purple': {
|
|
68
|
+
image: "linear-gradient(\n #EDD063 0%,\n #73DAFB 50%,\n #7C7EF4 100%\n );",
|
|
69
|
+
rotate: 90
|
|
70
|
+
},
|
|
71
|
+
'gradient-yellow-teal': {
|
|
72
|
+
image: "linear-gradient(\n #EDD063 0%,\n #73DAFB 100%\n );",
|
|
73
|
+
rotate: 90
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
focus: {
|
|
77
|
+
shadow: {
|
|
78
|
+
color: 'focus',
|
|
79
|
+
size: '3px'
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
font: {
|
|
83
|
+
family: '"JetBrains Mono", monospace',
|
|
84
|
+
face: "/* latin */\n@font-face {\n font-family: 'JetBrains Mono';\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.gstatic.com/s/jetbrainsmono/v13/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTOlOTk6OThhvA.woff) format('woff');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
grommet: {
|
|
88
|
+
extend: (0, _styledComponents.css)(["text-transform:uppercase;"])
|
|
89
|
+
},
|
|
90
|
+
anchor: {
|
|
91
|
+
color: 'text',
|
|
92
|
+
hover: {
|
|
93
|
+
color: 'text-strong'
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
button: {
|
|
97
|
+
border: {
|
|
98
|
+
width: '0px',
|
|
99
|
+
radius: '0px'
|
|
100
|
+
},
|
|
101
|
+
padding: {
|
|
102
|
+
horizontal: '20px',
|
|
103
|
+
vertical: '10px'
|
|
104
|
+
},
|
|
105
|
+
color: 'text-strong',
|
|
106
|
+
size: {
|
|
107
|
+
small: {
|
|
108
|
+
pad: {
|
|
109
|
+
horizontal: '16px',
|
|
110
|
+
vertical: '8px'
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
medium: {
|
|
114
|
+
pad: {
|
|
115
|
+
horizontal: '20px',
|
|
116
|
+
vertical: '10px'
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"default": {
|
|
121
|
+
color: 'text-strong'
|
|
122
|
+
},
|
|
123
|
+
primary: {
|
|
124
|
+
border: false,
|
|
125
|
+
background: 'gradient-yellow-teal-purple',
|
|
126
|
+
color: 'text'
|
|
127
|
+
},
|
|
128
|
+
hover: {
|
|
129
|
+
border: false
|
|
130
|
+
},
|
|
131
|
+
extend: (0, _styledComponents.css)(["clip-path:polygon( 12px 0px,100% 0px,100% 72%,calc(100% - 12px) 100%,0px 100%,0px 12px );text-transform:uppercase;&:focus{clip-path:none;}"])
|
|
132
|
+
},
|
|
133
|
+
heading: {
|
|
134
|
+
extend: (0, _styledComponents.css)(["text-shadow:rgba(255,215,77,0.6) -1px -1px 6px,rgba(124,127,255,0.6) 1px 1px 6px;"])
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
exports.hacktoberfest2022 = hacktoberfest2022;
|
package/themes/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
|
-
exports.grommet = exports.generate = exports.dark = exports.base = void 0;
|
|
4
|
+
exports.hacktoberfest2022 = exports.grommet = exports.generate = exports.dark = exports.base = void 0;
|
|
5
5
|
|
|
6
6
|
var _base = require("./base");
|
|
7
7
|
|
|
@@ -14,4 +14,8 @@ exports.grommet = _grommet.grommet;
|
|
|
14
14
|
|
|
15
15
|
var _dark = require("./dark");
|
|
16
16
|
|
|
17
|
-
exports.dark = _dark.dark;
|
|
17
|
+
exports.dark = _dark.dark;
|
|
18
|
+
|
|
19
|
+
var _hacktoberfest = require("./hacktoberfest2022");
|
|
20
|
+
|
|
21
|
+
exports.hacktoberfest2022 = _hacktoberfest.hacktoberfest2022;
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
const ENV
|
|
2
|
-
|
|
3
|
-
module.exports = function () {
|
|
4
|
-
return {
|
|
5
|
-
presets: [
|
|
6
|
-
['@babel/preset-env', {
|
|
7
|
-
loose: true,
|
|
8
|
-
modules: ENV === 'es6' ? false : 'commonjs',
|
|
9
|
-
}],
|
|
10
|
-
],
|
|
11
|
-
};
|
|
12
|
-
};
|
|
1
|
+
const ENV=process.env.BABEL_ENV;module.exports=function(){return{presets:[["@babel/preset-env",{loose:!0,modules:"es6"!==ENV&&"commonjs"}]]}};
|