grommet 2.23.0 → 2.24.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/Anchor/Anchor.js +2 -3
- package/components/CheckBoxGroup/index.d.ts +1 -3
- package/components/DataTable/stories/SpaceX.js +6 -4
- package/components/DataTable/stories/SpaceXUngrouped.js +4 -2
- package/components/Drop/DropContainer.js +6 -2
- package/components/FileInput/index.d.ts +6 -1
- package/components/Form/stories/HelpAndError.js +1 -1
- package/components/Grid/index.d.ts +6 -2
- package/components/Layer/Layer.js +1 -1
- package/components/Layer/LayerContainer.js +6 -2
- package/components/List/List.js +103 -40
- package/components/List/index.d.ts +3 -1
- package/components/List/propTypes.js +3 -1
- package/components/List/stories/Disabled.js +33 -0
- package/components/Notification/Notification.js +17 -8
- package/components/Notification/index.d.ts +1 -0
- package/components/Notification/propTypes.js +1 -0
- package/components/PageHeader/PageHeader.js +80 -0
- package/components/PageHeader/index.d.ts +26 -0
- package/components/PageHeader/index.js +8 -0
- package/components/PageHeader/propTypes.js +30 -0
- package/components/PageHeader/stories/Custom.js +47 -0
- package/components/PageHeader/stories/MultipleActions.js +79 -0
- package/components/PageHeader/stories/Responsive.js +37 -0
- package/components/PageHeader/stories/Simple.js +36 -0
- package/components/RadioButtonGroup/index.d.ts +2 -1
- package/components/Select/Select.js +0 -2
- package/components/Select/SelectContainer.js +9 -0
- package/components/Table/StyledTable.js +1 -1
- package/components/TextInput/TextInput.js +32 -3
- package/components/TextInput/stories/DefaultSuggestion.js +1 -0
- package/components/TextInput/stories/Suggestions.js +1 -0
- package/components/Tip/Tip.js +18 -6
- package/components/Video/Video.js +100 -46
- package/components/Video/index.d.ts +1 -0
- package/components/Video/propTypes.js +1 -1
- package/components/Video/stories/typescript/ControlsBelow.tsx +6 -2
- package/components/index.d.ts +1 -0
- package/components/index.js +8 -0
- package/es6/components/Anchor/Anchor.js +2 -3
- package/es6/components/CheckBoxGroup/index.d.ts +1 -3
- package/es6/components/DataTable/stories/SpaceX.js +6 -4
- package/es6/components/DataTable/stories/SpaceXUngrouped.js +4 -2
- package/es6/components/Drop/DropContainer.js +4 -2
- package/es6/components/FileInput/index.d.ts +6 -1
- package/es6/components/Form/stories/HelpAndError.js +1 -1
- package/es6/components/Grid/index.d.ts +6 -2
- package/es6/components/Layer/Layer.js +1 -1
- package/es6/components/Layer/LayerContainer.js +4 -2
- package/es6/components/List/List.js +104 -41
- package/es6/components/List/index.d.ts +3 -1
- package/es6/components/List/propTypes.js +3 -1
- package/es6/components/List/stories/Disabled.js +20 -0
- package/es6/components/Notification/Notification.js +17 -8
- package/es6/components/Notification/index.d.ts +1 -0
- package/es6/components/Notification/propTypes.js +1 -0
- package/es6/components/PageHeader/PageHeader.js +63 -0
- package/es6/components/PageHeader/index.d.ts +26 -0
- package/es6/components/PageHeader/index.js +1 -0
- package/es6/components/PageHeader/propTypes.js +19 -0
- package/es6/components/PageHeader/stories/Custom.js +32 -0
- package/es6/components/PageHeader/stories/MultipleActions.js +63 -0
- package/es6/components/PageHeader/stories/Responsive.js +25 -0
- package/es6/components/PageHeader/stories/Simple.js +24 -0
- package/es6/components/RadioButtonGroup/index.d.ts +2 -1
- package/es6/components/Select/Select.js +0 -2
- package/es6/components/Select/SelectContainer.js +9 -0
- package/es6/components/Table/StyledTable.js +1 -1
- package/es6/components/TextInput/TextInput.js +32 -3
- package/es6/components/TextInput/stories/DefaultSuggestion.js +1 -0
- package/es6/components/TextInput/stories/Suggestions.js +1 -0
- package/es6/components/Tip/Tip.js +18 -6
- package/es6/components/Video/Video.js +99 -46
- package/es6/components/Video/index.d.ts +1 -0
- package/es6/components/Video/propTypes.js +1 -1
- package/es6/components/Video/stories/typescript/ControlsBelow.tsx +6 -2
- package/es6/components/index.d.ts +1 -0
- package/es6/components/index.js +1 -0
- package/es6/languages/default.json +4 -1
- package/es6/themes/base.d.ts +47 -7
- package/es6/themes/base.js +72 -1
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/languages/default.json +4 -1
- package/package.json +30 -26
- package/themes/base.d.ts +47 -7
- package/themes/base.js +73 -1
package/es6/themes/base.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import { Actions } from 'grommet-icons/icons/Actions';
|
|
4
|
+
import { AssistListening } from 'grommet-icons/icons/AssistListening';
|
|
4
5
|
import { CircleInformation } from 'grommet-icons/icons/CircleInformation';
|
|
5
6
|
import { ClosedCaption } from 'grommet-icons/icons/ClosedCaption';
|
|
6
7
|
import { Expand } from 'grommet-icons/icons/Expand';
|
|
@@ -391,6 +392,7 @@ export var generate = function generate(baseSpacing, scale) {
|
|
|
391
392
|
dark: 'accent-1',
|
|
392
393
|
light: 'brand'
|
|
393
394
|
},
|
|
395
|
+
gap: 'small',
|
|
394
396
|
hover: {
|
|
395
397
|
textDecoration: 'underline' // fontWeight: undefined,
|
|
396
398
|
// extend: undefined,
|
|
@@ -1110,6 +1112,10 @@ export var generate = function generate(baseSpacing, scale) {
|
|
|
1110
1112
|
item: {
|
|
1111
1113
|
// background: undefined,
|
|
1112
1114
|
border: 'horizontal',
|
|
1115
|
+
disabled: {
|
|
1116
|
+
color: 'status-disabled',
|
|
1117
|
+
cursor: 'default'
|
|
1118
|
+
},
|
|
1113
1119
|
pad: {
|
|
1114
1120
|
horizontal: 'medium',
|
|
1115
1121
|
vertical: 'small'
|
|
@@ -1376,6 +1382,70 @@ export var generate = function generate(baseSpacing, scale) {
|
|
|
1376
1382
|
}
|
|
1377
1383
|
}
|
|
1378
1384
|
},
|
|
1385
|
+
pageHeader: {
|
|
1386
|
+
actions: {
|
|
1387
|
+
// any box props
|
|
1388
|
+
align: 'end'
|
|
1389
|
+
},
|
|
1390
|
+
pad: {
|
|
1391
|
+
top: 'large',
|
|
1392
|
+
bottom: 'medium'
|
|
1393
|
+
},
|
|
1394
|
+
parent: {
|
|
1395
|
+
// any box props
|
|
1396
|
+
align: 'start'
|
|
1397
|
+
},
|
|
1398
|
+
responsive: {
|
|
1399
|
+
actions: {
|
|
1400
|
+
// any box props
|
|
1401
|
+
align: 'start',
|
|
1402
|
+
pad: {
|
|
1403
|
+
top: 'small'
|
|
1404
|
+
}
|
|
1405
|
+
},
|
|
1406
|
+
areas: [['parent'], ['title'], ['subtitle'], ['actions']],
|
|
1407
|
+
breakpoints: ['small'],
|
|
1408
|
+
columns: ['auto'],
|
|
1409
|
+
rows: ['auto'] // gap: undefined,
|
|
1410
|
+
|
|
1411
|
+
},
|
|
1412
|
+
subtitle: {
|
|
1413
|
+
// any paragraph props
|
|
1414
|
+
margin: 'none'
|
|
1415
|
+
},
|
|
1416
|
+
title: {
|
|
1417
|
+
// any heading props
|
|
1418
|
+
margin: 'none',
|
|
1419
|
+
fill: true
|
|
1420
|
+
},
|
|
1421
|
+
small: {
|
|
1422
|
+
areas: [['parent', 'parent'], ['title', 'actions'], ['subtitle', 'actions']],
|
|
1423
|
+
columns: [['small', 'flex'], 'auto'],
|
|
1424
|
+
rows: ['auto', 'auto', 'auto'],
|
|
1425
|
+
gap: {
|
|
1426
|
+
row: 'xsmall',
|
|
1427
|
+
column: 'large'
|
|
1428
|
+
}
|
|
1429
|
+
},
|
|
1430
|
+
medium: {
|
|
1431
|
+
areas: [['parent', 'parent'], ['title', 'actions'], ['subtitle', 'actions']],
|
|
1432
|
+
columns: [['medium', 'flex'], 'auto'],
|
|
1433
|
+
rows: ['auto', 'auto', 'auto'],
|
|
1434
|
+
gap: {
|
|
1435
|
+
row: 'xsmall',
|
|
1436
|
+
column: 'medium'
|
|
1437
|
+
}
|
|
1438
|
+
},
|
|
1439
|
+
large: {
|
|
1440
|
+
areas: [['parent', 'parent'], ['title', 'actions'], ['subtitle', 'actions']],
|
|
1441
|
+
columns: [['medium', 'flex'], 'auto'],
|
|
1442
|
+
rows: ['auto', 'auto', 'auto'],
|
|
1443
|
+
gap: {
|
|
1444
|
+
row: 'xsmall',
|
|
1445
|
+
column: 'large'
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
},
|
|
1379
1449
|
pagination: {
|
|
1380
1450
|
button: {
|
|
1381
1451
|
active: {
|
|
@@ -1833,7 +1903,8 @@ export var generate = function generate(baseSpacing, scale) {
|
|
|
1833
1903
|
pause: Pause,
|
|
1834
1904
|
play: Play,
|
|
1835
1905
|
reduceVolume: VolumeLow,
|
|
1836
|
-
volume: Volume
|
|
1906
|
+
volume: Volume,
|
|
1907
|
+
description: AssistListening // color: { dark: undefined, light: undefined },
|
|
1837
1908
|
|
|
1838
1909
|
},
|
|
1839
1910
|
scrubber: {
|