grommet 2.29.0 → 2.30.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 +9 -3
- package/components/Anchor/StyledAnchor.js +6 -3
- package/components/Button/Button.js +10 -14
- package/components/Button/StyledButtonKind.js +21 -9
- package/components/Calendar/Calendar.js +80 -71
- package/components/Data/Data.js +48 -26
- package/components/Data/DataForm.js +203 -48
- package/components/Data/filter.js +17 -6
- package/components/Data/index.d.ts +12 -7
- package/components/Data/index.js +6 -2
- package/components/Data/propTypes.js +3 -2
- package/components/Data/stories/Cards.js +1 -1
- package/components/Data/stories/Complex.js +84 -0
- package/components/Data/stories/Controlled.js +1 -1
- package/components/Data/stories/DataTable.js +11 -4
- package/components/Data/stories/Infinite.js +53 -57
- package/components/Data/stories/Inline.js +7 -2
- package/components/Data/stories/List.js +1 -1
- package/components/Data/stories/Simple.js +1 -1
- package/components/Data/stories/SpaceX.js +114 -140
- package/components/Data/stories/StarWars.js +127 -0
- package/components/Data/stories/Views.js +56 -0
- package/components/DataFilter/DataFilter.js +33 -42
- package/components/DataFilter/stories/Simple.js +7 -4
- package/components/DataFilters/DataFilters.js +117 -40
- package/components/DataFilters/index.d.ts +1 -0
- package/components/DataFilters/propTypes.js +2 -1
- package/components/DataFilters/stories/Drop.js +7 -4
- package/components/DataFilters/stories/Inline.js +24 -6
- package/components/DataFilters/stories/Layer.js +46 -0
- package/components/DataFilters/stories/Simple.js +7 -4
- package/components/DataSearch/DataSearch.js +70 -13
- package/components/DataSearch/index.d.ts +10 -1
- package/components/DataSearch/propTypes.js +6 -1
- package/components/DataSearch/stories/Drop.js +42 -0
- package/components/DataSearch/stories/Responsive.js +42 -0
- package/components/DataSearch/stories/Simple.js +5 -2
- package/components/DataSort/DataSort.js +67 -18
- package/components/DataSort/index.d.ts +4 -8
- package/components/DataSort/propTypes.js +9 -2
- package/components/DataSort/stories/Drop.js +41 -0
- package/components/DataSort/stories/Simple.js +9 -5
- package/components/DataSummary/DataSummary.js +4 -4
- package/components/DataSummary/index.d.ts +1 -1
- package/components/DataSummary/propTypes.js +2 -2
- package/components/DataSummary/stories/Simple.js +7 -4
- package/components/DataTable/Cell.js +1 -1
- package/components/DataTable/DataTable.js +23 -9
- package/components/DataTable/GroupedBody.js +1 -0
- package/components/DataTable/Resizer.js +1 -3
- package/components/DataTable/StyledDataTable.js +2 -2
- package/components/DataTable/index.d.ts +23 -6
- package/components/DataTable/stories/SpaceX.js +72 -76
- package/components/DataTable/stories/SpaceXUngrouped.js +33 -35
- package/components/DataTableColumns/DataTableColumns.js +226 -0
- package/components/DataTableColumns/README.md +2 -0
- package/components/DataTableColumns/index.d.ts +10 -0
- package/components/DataTableColumns/index.js +6 -0
- package/components/DataTableColumns/propTypes.js +18 -0
- package/components/DataTableColumns/stories/Simple.js +51 -0
- package/components/DataView/DataView.js +73 -0
- package/components/DataView/README.md +2 -0
- package/components/DataView/index.d.ts +15 -0
- package/components/DataView/index.js +6 -0
- package/components/DataView/propTypes.js +10 -0
- package/components/DataView/stories/Simple.js +51 -0
- package/components/DateInput/utils.js +1 -3
- package/components/Distribution/Distribution.js +1 -1
- package/components/Drop/DropContainer.js +56 -100
- package/components/Drop/stories/Overflow.js +1 -0
- package/components/DropButton/DropButton.js +1 -1
- package/components/Form/stories/Controlled.js +11 -2
- package/components/Form/stories/ControlledInput.js +13 -2
- package/components/Form/stories/ControlledInputLazy.js +13 -2
- package/components/Form/stories/ControlledLazy.js +13 -2
- package/components/Form/stories/FieldWithChildren.js +13 -2
- package/components/Form/stories/FieldWithComponentProp.js +17 -1
- package/components/Form/stories/Uncontrolled.js +15 -2
- package/components/Form/stories/ValidateOnBlur.js +18 -0
- package/components/Form/stories/ValidateOnChange.js +6 -0
- package/components/Form/stories/ValidateOnMount.js +4 -0
- package/components/Form/stories/typescript/TypedForm.tsx +25 -3
- package/components/FormField/FormField.js +15 -4
- package/components/Layer/LayerContainer.js +2 -3
- package/components/Layer/PortalContext.js +1 -1
- package/components/Layer/StyledLayer.js +3 -1
- package/components/Layer/stories/Form.js +54 -28
- package/components/List/List.js +1 -8
- package/components/Pagination/Pagination.js +27 -8
- package/components/Paragraph/Paragraph.js +18 -6
- package/components/Select/utils.js +1 -1
- package/components/Skeleton/stories/GridContainer.js +1 -3
- package/components/Tabs/Tabs.js +2 -1
- package/components/Text/Text.js +9 -1
- package/components/Text/TextContext.js +8 -0
- package/components/TextInput/StyledTextInput.js +3 -1
- package/components/TextInput/TextInput.js +4 -2
- package/components/TextInput/index.d.ts +3 -1
- package/components/TextInput/propTypes.js +3 -1
- package/components/Toolbar/stories/Simple.js +1 -1
- package/components/Video/Video.js +4 -8
- package/components/WorldMap/WorldMap.js +18 -17
- package/components/index.d.ts +2 -0
- package/components/index.js +18 -6
- package/es6/components/Anchor/Anchor.js +9 -3
- package/es6/components/Anchor/StyledAnchor.js +6 -3
- package/es6/components/Button/Button.js +10 -14
- package/es6/components/Button/StyledButtonKind.js +21 -9
- package/es6/components/Calendar/Calendar.js +80 -71
- package/es6/components/Data/Data.js +48 -26
- package/es6/components/Data/DataForm.js +199 -51
- package/es6/components/Data/filter.js +17 -6
- package/es6/components/Data/index.d.ts +12 -7
- package/es6/components/Data/index.js +1 -1
- package/es6/components/Data/propTypes.js +3 -2
- package/es6/components/Data/stories/Cards.js +1 -1
- package/es6/components/Data/stories/Complex.js +78 -0
- package/es6/components/Data/stories/Controlled.js +1 -1
- package/es6/components/Data/stories/DataTable.js +12 -5
- package/es6/components/Data/stories/Infinite.js +53 -57
- package/es6/components/Data/stories/Inline.js +7 -2
- package/es6/components/Data/stories/List.js +1 -1
- package/es6/components/Data/stories/Simple.js +1 -1
- package/es6/components/Data/stories/SpaceX.js +114 -140
- package/es6/components/Data/stories/StarWars.js +121 -0
- package/es6/components/Data/stories/Views.js +50 -0
- package/es6/components/DataFilter/DataFilter.js +33 -42
- package/es6/components/DataFilter/stories/Simple.js +8 -5
- package/es6/components/DataFilters/DataFilters.js +118 -41
- package/es6/components/DataFilters/index.d.ts +1 -0
- package/es6/components/DataFilters/propTypes.js +2 -1
- package/es6/components/DataFilters/stories/Drop.js +8 -5
- package/es6/components/DataFilters/stories/Inline.js +25 -7
- package/es6/components/DataFilters/stories/Layer.js +40 -0
- package/es6/components/DataFilters/stories/Simple.js +8 -5
- package/es6/components/DataSearch/DataSearch.js +71 -14
- package/es6/components/DataSearch/index.d.ts +10 -1
- package/es6/components/DataSearch/propTypes.js +5 -1
- package/es6/components/DataSearch/stories/Drop.js +36 -0
- package/es6/components/DataSearch/stories/Responsive.js +36 -0
- package/es6/components/DataSearch/stories/Simple.js +6 -3
- package/es6/components/DataSort/DataSort.js +67 -18
- package/es6/components/DataSort/index.d.ts +4 -8
- package/es6/components/DataSort/propTypes.js +8 -2
- package/es6/components/DataSort/stories/Drop.js +35 -0
- package/es6/components/DataSort/stories/Simple.js +10 -6
- package/es6/components/DataSummary/DataSummary.js +4 -4
- package/es6/components/DataSummary/index.d.ts +1 -1
- package/es6/components/DataSummary/propTypes.js +2 -2
- package/es6/components/DataSummary/stories/Simple.js +8 -5
- package/es6/components/DataTable/Cell.js +2 -2
- package/es6/components/DataTable/DataTable.js +23 -9
- package/es6/components/DataTable/GroupedBody.js +1 -0
- package/es6/components/DataTable/Resizer.js +1 -3
- package/es6/components/DataTable/StyledDataTable.js +2 -2
- package/es6/components/DataTable/index.d.ts +23 -6
- package/es6/components/DataTable/stories/SpaceX.js +72 -76
- package/es6/components/DataTable/stories/SpaceXUngrouped.js +33 -35
- package/es6/components/DataTableColumns/DataTableColumns.js +219 -0
- package/es6/components/DataTableColumns/README.md +2 -0
- package/es6/components/DataTableColumns/index.d.ts +10 -0
- package/es6/components/DataTableColumns/index.js +1 -0
- package/es6/components/DataTableColumns/propTypes.js +12 -0
- package/es6/components/DataTableColumns/stories/Simple.js +46 -0
- package/es6/components/DataView/DataView.js +66 -0
- package/es6/components/DataView/README.md +2 -0
- package/es6/components/DataView/index.d.ts +15 -0
- package/es6/components/DataView/index.js +1 -0
- package/es6/components/DataView/propTypes.js +5 -0
- package/es6/components/DataView/stories/Simple.js +45 -0
- package/es6/components/DateInput/utils.js +1 -3
- package/es6/components/Distribution/Distribution.js +1 -1
- package/es6/components/Drop/DropContainer.js +58 -102
- package/es6/components/Drop/stories/Overflow.js +1 -0
- package/es6/components/DropButton/DropButton.js +1 -1
- package/es6/components/Form/stories/Controlled.js +11 -2
- package/es6/components/Form/stories/ControlledInput.js +13 -2
- package/es6/components/Form/stories/ControlledInputLazy.js +13 -2
- package/es6/components/Form/stories/ControlledLazy.js +13 -2
- package/es6/components/Form/stories/FieldWithChildren.js +13 -2
- package/es6/components/Form/stories/FieldWithComponentProp.js +17 -1
- package/es6/components/Form/stories/Uncontrolled.js +15 -2
- package/es6/components/Form/stories/ValidateOnBlur.js +19 -1
- package/es6/components/Form/stories/ValidateOnChange.js +6 -0
- package/es6/components/Form/stories/ValidateOnMount.js +4 -0
- package/es6/components/Form/stories/typescript/TypedForm.tsx +25 -3
- package/es6/components/FormField/FormField.js +15 -4
- package/es6/components/Layer/LayerContainer.js +2 -3
- package/es6/components/Layer/PortalContext.js +1 -1
- package/es6/components/Layer/StyledLayer.js +3 -1
- package/es6/components/Layer/stories/Form.js +56 -29
- package/es6/components/List/List.js +1 -8
- package/es6/components/Pagination/Pagination.js +27 -8
- package/es6/components/Paragraph/Paragraph.js +19 -7
- package/es6/components/Select/utils.js +1 -1
- package/es6/components/Skeleton/stories/GridContainer.js +1 -3
- package/es6/components/Tabs/Tabs.js +2 -1
- package/es6/components/Text/Text.js +10 -2
- package/es6/components/Text/TextContext.js +2 -0
- package/es6/components/TextInput/StyledTextInput.js +4 -2
- package/es6/components/TextInput/TextInput.js +4 -2
- package/es6/components/TextInput/index.d.ts +3 -1
- package/es6/components/TextInput/propTypes.js +3 -1
- package/es6/components/Toolbar/stories/Simple.js +1 -1
- package/es6/components/Video/Video.js +4 -8
- package/es6/components/WorldMap/WorldMap.js +18 -17
- package/es6/components/index.d.ts +2 -0
- package/es6/components/index.js +3 -1
- package/es6/languages/default.json +14 -4
- package/es6/themes/base.d.ts +31 -0
- package/es6/themes/base.js +31 -1
- package/es6/utils/DOM.js +17 -0
- package/es6/utils/PortalContext.js +1 -1
- package/es6/utils/background.js +9 -1
- package/es6/utils/colors.js +2 -2
- package/es6/utils/general-prop-types.js +1 -1
- package/es6/utils/index.d.ts +7 -1
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/languages/default.json +14 -4
- package/package.json +42 -40
- package/themes/base.d.ts +31 -0
- package/themes/base.js +31 -1
- package/utils/DOM.js +20 -2
- package/utils/PortalContext.js +1 -1
- package/utils/background.js +8 -0
- package/utils/colors.js +3 -1
- package/utils/general-prop-types.js +1 -1
- package/utils/index.d.ts +7 -1
|
@@ -4,6 +4,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
4
4
|
import React, { forwardRef, useContext, useEffect, useState } from 'react';
|
|
5
5
|
import styled, { ThemeContext } from 'styled-components';
|
|
6
6
|
import { defaultProps } from '../../default-props';
|
|
7
|
+
import { DataContext } from '../../contexts/DataContext';
|
|
7
8
|
import { Box } from '../Box';
|
|
8
9
|
import { Nav } from '../Nav';
|
|
9
10
|
import { PageControl } from './PageControl';
|
|
@@ -22,6 +23,7 @@ var getPageIndices = function getPageIndices(begin, end) {
|
|
|
22
23
|
return indices;
|
|
23
24
|
};
|
|
24
25
|
var Pagination = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
26
|
+
var _ref2;
|
|
25
27
|
var a11yTitle = _ref.a11yTitle,
|
|
26
28
|
ariaLabel = _ref['aria-label'],
|
|
27
29
|
numberItems = _ref.numberItems,
|
|
@@ -32,19 +34,33 @@ var Pagination = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
32
34
|
onChange = _ref.onChange,
|
|
33
35
|
pageProp = _ref.page,
|
|
34
36
|
size = _ref.size,
|
|
35
|
-
|
|
36
|
-
step = _ref$step === void 0 ? 10 : _ref$step,
|
|
37
|
+
stepProp = _ref.step,
|
|
37
38
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
38
39
|
var theme = useContext(ThemeContext) || defaultProps.theme;
|
|
40
|
+
var _useContext = useContext(DataContext),
|
|
41
|
+
onView = _useContext.onView,
|
|
42
|
+
filteredTotal = _useContext.filteredTotal,
|
|
43
|
+
view = _useContext.view;
|
|
44
|
+
var step = stepProp || (view == null ? void 0 : view.step) || 10;
|
|
45
|
+
var total = (_ref2 = numberItems != null ? numberItems : filteredTotal) != null ? _ref2 : 0;
|
|
46
|
+
var page = pageProp || (view == null ? void 0 : view.page) || 1;
|
|
39
47
|
|
|
40
48
|
/* Calculate total number pages */
|
|
41
|
-
var totalPages = Math.ceil(
|
|
42
|
-
var _useState = useState(Math.min(
|
|
49
|
+
var totalPages = Math.ceil(total / step);
|
|
50
|
+
var _useState = useState(Math.min(page, totalPages) || 1),
|
|
43
51
|
activePage = _useState[0],
|
|
44
52
|
setActivePage = _useState[1];
|
|
45
53
|
useEffect(function () {
|
|
46
|
-
setActivePage(
|
|
47
|
-
}, [
|
|
54
|
+
return setActivePage(page);
|
|
55
|
+
}, [page]);
|
|
56
|
+
useEffect(function () {
|
|
57
|
+
// if we are getting the step or page from outside the view,
|
|
58
|
+
// update the Data's view in case it needs to filter.
|
|
59
|
+
if (onView && ((view == null ? void 0 : view.step) !== step || (view == null ? void 0 : view.page) !== page)) onView(_extends({}, view, {
|
|
60
|
+
page: page,
|
|
61
|
+
step: step
|
|
62
|
+
}));
|
|
63
|
+
}, [onView, page, step, view]);
|
|
48
64
|
|
|
49
65
|
/* Define page indices to display */
|
|
50
66
|
var beginPages = getPageIndices(1, Math.min(numberEdgePages, totalPages));
|
|
@@ -78,6 +94,9 @@ var Pagination = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
78
94
|
};
|
|
79
95
|
var handleClick = function handleClick(event, nextPage) {
|
|
80
96
|
setActivePage(nextPage);
|
|
97
|
+
if (onView) onView(_extends({}, view, {
|
|
98
|
+
page: nextPage
|
|
99
|
+
}));
|
|
81
100
|
if (onChange) {
|
|
82
101
|
event.persist();
|
|
83
102
|
var adjustedEvent = event;
|
|
@@ -100,7 +119,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
100
119
|
next: {
|
|
101
120
|
// https://a11y-style-guide.com/style-guide/section-navigation.html#kssref-navigation-pagination
|
|
102
121
|
'aria-disabled': activePage === totalPages ? 'true' : undefined,
|
|
103
|
-
disabled: activePage === totalPages || !
|
|
122
|
+
disabled: activePage === totalPages || !total,
|
|
104
123
|
icon: /*#__PURE__*/React.createElement(NextIcon, {
|
|
105
124
|
color: iconColor
|
|
106
125
|
}),
|
|
@@ -112,7 +131,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
112
131
|
},
|
|
113
132
|
previous: {
|
|
114
133
|
'aria-disabled': activePage === 1 ? 'true' : undefined,
|
|
115
|
-
disabled: activePage === 1 || !
|
|
134
|
+
disabled: activePage === 1 || !total,
|
|
116
135
|
icon: /*#__PURE__*/React.createElement(PreviousIcon, {
|
|
117
136
|
color: iconColor
|
|
118
137
|
}),
|
|
@@ -1,27 +1,39 @@
|
|
|
1
|
-
var _excluded = ["color", "fill"];
|
|
1
|
+
var _excluded = ["children", "color", "fill", "size"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
3
3
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
|
-
import React, { forwardRef } from 'react';
|
|
4
|
+
import React, { forwardRef, useMemo } from 'react';
|
|
5
5
|
import { StyledParagraph } from './StyledParagraph';
|
|
6
6
|
import { ParagraphPropTypes } from './propTypes';
|
|
7
7
|
import { useSkeleton } from '../Skeleton';
|
|
8
8
|
import { ParagraphSkeleton } from './ParagraphSkeleton';
|
|
9
|
+
import { TextContext } from '../Text/TextContext';
|
|
9
10
|
var Paragraph = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
10
|
-
var
|
|
11
|
+
var children = _ref.children,
|
|
12
|
+
color = _ref.color,
|
|
11
13
|
fill = _ref.fill,
|
|
14
|
+
size = _ref.size,
|
|
12
15
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
13
16
|
var skeleton = useSkeleton();
|
|
17
|
+
var textContextValue = useMemo(function () {
|
|
18
|
+
return {
|
|
19
|
+
size: size
|
|
20
|
+
};
|
|
21
|
+
}, [size]);
|
|
14
22
|
if (skeleton) {
|
|
15
23
|
return /*#__PURE__*/React.createElement(ParagraphSkeleton, _extends({
|
|
16
24
|
ref: ref,
|
|
17
|
-
fill: fill
|
|
18
|
-
|
|
25
|
+
fill: fill,
|
|
26
|
+
size: size
|
|
27
|
+
}, rest), children);
|
|
19
28
|
}
|
|
20
29
|
return /*#__PURE__*/React.createElement(StyledParagraph, _extends({
|
|
21
30
|
ref: ref,
|
|
22
31
|
colorProp: color,
|
|
23
|
-
fillProp: fill
|
|
24
|
-
|
|
32
|
+
fillProp: fill,
|
|
33
|
+
size: size
|
|
34
|
+
}, rest), /*#__PURE__*/React.createElement(TextContext.Provider, {
|
|
35
|
+
value: textContextValue
|
|
36
|
+
}, children));
|
|
25
37
|
});
|
|
26
38
|
Paragraph.displayName = 'Paragraph';
|
|
27
39
|
Paragraph.prototype = ParagraphPropTypes;
|
|
@@ -4,7 +4,7 @@ export var applyKey = function applyKey(option, key) {
|
|
|
4
4
|
if (option === undefined || option === null) return undefined;
|
|
5
5
|
if (typeof key === 'object') return applyKey(option, key.key);
|
|
6
6
|
if (typeof key === 'function') return key(option);
|
|
7
|
-
if (key !== undefined) return option[key];
|
|
7
|
+
if (key !== undefined && typeof option === 'object') return option[key];
|
|
8
8
|
if (typeof option === 'object' && Object.keys(option)) return option[Object.keys(option)[0]];
|
|
9
9
|
return option;
|
|
10
10
|
};
|
|
@@ -5,9 +5,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
5
5
|
import { Box, Button, Card, Grid, Image, Text } from 'grommet';
|
|
6
6
|
import { FormAdd } from "grommet-icons/es6/icons/FormAdd";
|
|
7
7
|
var labels = [];
|
|
8
|
-
for (var i = 0; i < 10; i += 1)
|
|
9
|
-
labels.push("Item " + i);
|
|
10
|
-
}
|
|
8
|
+
for (var i = 0; i < 10; i += 1) labels.push("Item " + i);
|
|
11
9
|
var skeleton = {
|
|
12
10
|
message: {
|
|
13
11
|
start: 'Loading',
|
|
@@ -17,6 +17,7 @@ import { MessageContext } from '../../contexts/MessageContext';
|
|
|
17
17
|
import { TabsPropTypes } from './propTypes';
|
|
18
18
|
import { useAnalytics } from '../../contexts/AnalyticsContext/AnalyticsContext';
|
|
19
19
|
var Tabs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
20
|
+
var _theme$tabs$header;
|
|
20
21
|
var alignControls = _ref.alignControls,
|
|
21
22
|
children = _ref.children,
|
|
22
23
|
flex = _ref.flex,
|
|
@@ -268,6 +269,7 @@ var Tabs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
268
269
|
}, rest, {
|
|
269
270
|
background: theme.tabs.background
|
|
270
271
|
}), /*#__PURE__*/React.createElement(Box, _extends({
|
|
272
|
+
alignSelf: alignControls || ((_theme$tabs$header = theme.tabs.header) == null ? void 0 : _theme$tabs$header.alignSelf),
|
|
271
273
|
role: "tablist",
|
|
272
274
|
flex: false,
|
|
273
275
|
direction: overflow ? 'row' : 'column'
|
|
@@ -292,7 +294,6 @@ var Tabs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
292
294
|
as: Box,
|
|
293
295
|
direction: "row",
|
|
294
296
|
justify: overflow ? 'start' : justify,
|
|
295
|
-
alignSelf: alignControls,
|
|
296
297
|
flex: !!overflow,
|
|
297
298
|
wrap: false,
|
|
298
299
|
overflow: overflow ? 'hidden' : 'visible',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "color", "tag", "as", "tip", "a11yTitle", "truncate", "size", "skeleton"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
3
3
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
|
-
import React, { forwardRef, useState } from 'react';
|
|
4
|
+
import React, { forwardRef, useMemo, useState } from 'react';
|
|
5
5
|
import { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';
|
|
6
6
|
import { StyledText } from './StyledText';
|
|
7
7
|
import { Tip } from '../Tip';
|
|
@@ -9,6 +9,7 @@ import { useForwardedRef } from '../../utils';
|
|
|
9
9
|
import { TextPropTypes } from './propTypes';
|
|
10
10
|
import { useSkeleton } from '../Skeleton';
|
|
11
11
|
import { TextSkeleton } from './TextSkeleton';
|
|
12
|
+
import { TextContext } from './TextContext';
|
|
12
13
|
var Text = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
13
14
|
var children = _ref.children,
|
|
14
15
|
color = _ref.color,
|
|
@@ -25,6 +26,11 @@ var Text = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
25
26
|
var _useState = useState(false),
|
|
26
27
|
textTruncated = _useState[0],
|
|
27
28
|
setTextTruncated = _useState[1];
|
|
29
|
+
var textContextValue = useMemo(function () {
|
|
30
|
+
return {
|
|
31
|
+
size: size
|
|
32
|
+
};
|
|
33
|
+
}, [size]);
|
|
28
34
|
var skeleton = useSkeleton();
|
|
29
35
|
useLayoutEffect(function () {
|
|
30
36
|
var updateTip = function updateTip() {
|
|
@@ -54,7 +60,9 @@ var Text = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
54
60
|
size: size
|
|
55
61
|
}, rest, {
|
|
56
62
|
ref: textRef
|
|
57
|
-
}),
|
|
63
|
+
}), /*#__PURE__*/React.createElement(TextContext.Provider, {
|
|
64
|
+
value: textContextValue
|
|
65
|
+
}, children));
|
|
58
66
|
if (tipProp || textTruncated) {
|
|
59
67
|
// place the text content in a tip if truncate === 'tip'
|
|
60
68
|
// and the text has been truncated
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { disabledStyle, getInputPadBySide, inputStyle, parseMetricToNum, plainInputStyle, textAlignStyle } from '../../utils';
|
|
2
|
+
import { disabledStyle, getInputPadBySide, inputStyle, parseMetricToNum, plainInputStyle, textAlignStyle, widthStyle } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
4
|
var getPlainStyle = function getPlainStyle(plain) {
|
|
5
5
|
if (plain === 'full') {
|
|
@@ -10,7 +10,7 @@ var getPlainStyle = function getPlainStyle(plain) {
|
|
|
10
10
|
var StyledTextInput = styled.input.withConfig({
|
|
11
11
|
displayName: "StyledTextInput",
|
|
12
12
|
componentId: "sc-1x30a0s-0"
|
|
13
|
-
})(["", " ", " ", " ", " ", " ", ";"], inputStyle, function (props) {
|
|
13
|
+
})(["", " ", " ", " ", " ", " ", " ", ";"], inputStyle, function (props) {
|
|
14
14
|
return getPlainStyle(props.plain);
|
|
15
15
|
}, function (props) {
|
|
16
16
|
return props.icon && (props.reverse ? "padding-right: " + props.theme.global.edgeSize.large + ";" : "padding-left: " + props.theme.global.edgeSize.large + ";");
|
|
@@ -18,6 +18,8 @@ var StyledTextInput = styled.input.withConfig({
|
|
|
18
18
|
return props.disabled && disabledStyle(props.theme.textInput.disabled && props.theme.textInput.disabled.opacity);
|
|
19
19
|
}, function (props) {
|
|
20
20
|
return props.textAlign && textAlignStyle;
|
|
21
|
+
}, function (props) {
|
|
22
|
+
return props.widthProp && widthStyle(props.widthProp, props.theme);
|
|
21
23
|
}, function (props) {
|
|
22
24
|
return props.theme.textInput && props.theme.textInput.extend;
|
|
23
25
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["a11yTitle", "defaultSuggestion", "defaultValue", "dropAlign", "dropHeight", "dropTarget", "dropProps", "focusIndicator", "icon", "id", "messages", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "onSelect", "onSuggestionSelect", "onSuggestionsClose", "onSuggestionsOpen", "placeholder", "plain", "readOnly", "reverse", "suggestions", "textAlign", "value"];
|
|
1
|
+
var _excluded = ["a11yTitle", "defaultSuggestion", "defaultValue", "dropAlign", "dropHeight", "dropTarget", "dropProps", "focusIndicator", "icon", "id", "messages", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "onSelect", "onSuggestionSelect", "onSuggestionsClose", "onSuggestionsOpen", "placeholder", "plain", "readOnly", "reverse", "suggestions", "textAlign", "value", "width"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
3
3
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
4
4
|
import React, { forwardRef, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
@@ -71,6 +71,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
71
71
|
suggestions = _ref.suggestions,
|
|
72
72
|
textAlign = _ref.textAlign,
|
|
73
73
|
valueProp = _ref.value,
|
|
74
|
+
widthProp = _ref.width,
|
|
74
75
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
75
76
|
var theme = useContext(ThemeContext) || defaultProps.theme;
|
|
76
77
|
var _useContext = useContext(MessageContext),
|
|
@@ -363,7 +364,8 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
363
364
|
reverse: reverse,
|
|
364
365
|
focus: focus,
|
|
365
366
|
focusIndicator: focusIndicator,
|
|
366
|
-
textAlign: textAlign
|
|
367
|
+
textAlign: textAlign,
|
|
368
|
+
widthProp: widthProp
|
|
367
369
|
}, rest, extraProps, comboboxProps, {
|
|
368
370
|
defaultValue: renderLabel(defaultValue),
|
|
369
371
|
value: renderLabel(value),
|
|
@@ -4,13 +4,14 @@ import {
|
|
|
4
4
|
Omit,
|
|
5
5
|
PlaceHolderType,
|
|
6
6
|
TextAlignType,
|
|
7
|
+
WidthType,
|
|
7
8
|
} from '../../utils';
|
|
8
9
|
import { DropType } from '../Drop';
|
|
9
10
|
|
|
10
11
|
export interface TextInputProps
|
|
11
12
|
extends Omit<
|
|
12
13
|
JSX.IntrinsicElements['input'],
|
|
13
|
-
'onSelect' | 'size' | 'placeholder'
|
|
14
|
+
'onSelect' | 'size' | 'placeholder' | 'width'
|
|
14
15
|
> {
|
|
15
16
|
a11yTitle?: A11yTitleType;
|
|
16
17
|
dropAlign?: {
|
|
@@ -50,6 +51,7 @@ export interface TextInputProps
|
|
|
50
51
|
suggestions?: ({ label?: React.ReactNode; value?: any } | string)[];
|
|
51
52
|
textAlign?: TextAlignType;
|
|
52
53
|
value?: string | number;
|
|
54
|
+
width?: WidthType;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
declare const TextInput: React.FC<TextInputProps>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
+
import { widthPropType } from '../../utils/general-prop-types';
|
|
2
3
|
var PropType = {};
|
|
3
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
4
5
|
PropType = {
|
|
@@ -38,7 +39,8 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
38
39
|
value: PropTypes.any // this is intentional any
|
|
39
40
|
}), PropTypes.string])),
|
|
40
41
|
textAlign: PropTypes.oneOf(['start', 'center', 'end']),
|
|
41
|
-
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
42
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
43
|
+
width: widthPropType
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
export var TextInputPropTypes = PropType;
|
|
@@ -173,7 +173,7 @@ var Video = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
173
173
|
var nextCaptions = [];
|
|
174
174
|
var set = false;
|
|
175
175
|
// iterate through all of the tracks provided
|
|
176
|
-
var _loop = function _loop(
|
|
176
|
+
var _loop = function _loop() {
|
|
177
177
|
var track = textTracks[i];
|
|
178
178
|
var active = track.mode === 'showing';
|
|
179
179
|
var getActiveTrack = function getActiveTrack(currentVideoTime) {
|
|
@@ -218,7 +218,7 @@ var Video = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
220
|
for (var i = 0; i < textTracks.length; i += 1) {
|
|
221
|
-
_loop(
|
|
221
|
+
_loop();
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
}, [activeTrack, announce, announceAudioDescription, captions, height, videoRef, width]);
|
|
@@ -258,9 +258,7 @@ var Video = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
258
258
|
}, [videoRef]);
|
|
259
259
|
var showCaptions = useCallback(function (index) {
|
|
260
260
|
var textTracks = videoRef.current.textTracks;
|
|
261
|
-
for (var i = 0; i < textTracks.length; i += 1)
|
|
262
|
-
textTracks[i].mode = i === index ? 'showing' : 'hidden';
|
|
263
|
-
}
|
|
261
|
+
for (var i = 0; i < textTracks.length; i += 1) textTracks[i].mode = i === index ? 'showing' : 'hidden';
|
|
264
262
|
}, [videoRef]);
|
|
265
263
|
var fullscreen = useCallback(function () {
|
|
266
264
|
var video = videoRef.current;
|
|
@@ -404,9 +402,7 @@ var Video = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
404
402
|
return undefined;
|
|
405
403
|
}
|
|
406
404
|
if (item === 'captions' && typeof buttonProps[item] === 'object') {
|
|
407
|
-
for (var i = 0; i < buttonProps[item].length; i += 1)
|
|
408
|
-
controlsMenuItems.push(buttonProps[item][i]);
|
|
409
|
-
}
|
|
405
|
+
for (var i = 0; i < buttonProps[item].length; i += 1) controlsMenuItems.push(buttonProps[item][i]);
|
|
410
406
|
return undefined;
|
|
411
407
|
}
|
|
412
408
|
if (item === 'descriptions') {
|
|
@@ -112,9 +112,7 @@ var buildContinent = function buildContinent(_ref3) {
|
|
|
112
112
|
var dots = dotsProp.map(function (segment) {
|
|
113
113
|
var count = segment[2];
|
|
114
114
|
var spots = [];
|
|
115
|
-
for (var i = 0; i < count; i += 1)
|
|
116
|
-
spots.push('h0');
|
|
117
|
-
}
|
|
115
|
+
for (var i = 0; i < count; i += 1) spots.push('h0');
|
|
118
116
|
var dotCommands = spots.join(' m10,0 ');
|
|
119
117
|
var x = FACTOR * (origin[0] + segment[0] + 1);
|
|
120
118
|
var y = FACTOR * (origin[1] + segment[1] + 1);
|
|
@@ -219,6 +217,11 @@ var WorldMap = /*#__PURE__*/forwardRef(function (_ref5, ref) {
|
|
|
219
217
|
var _React$useState2 = React.useState([]),
|
|
220
218
|
places = _React$useState2[0],
|
|
221
219
|
setPlaces = _React$useState2[1];
|
|
220
|
+
|
|
221
|
+
// targets are used for the Drops associated with places content
|
|
222
|
+
var _React$useState3 = React.useState([]),
|
|
223
|
+
targets = _React$useState3[0],
|
|
224
|
+
setTargets = _React$useState3[1];
|
|
222
225
|
React.useEffect(function () {
|
|
223
226
|
if (placesProp) {
|
|
224
227
|
setPlaces(placesProp.map(function (_ref6) {
|
|
@@ -231,25 +234,23 @@ var WorldMap = /*#__PURE__*/forwardRef(function (_ref5, ref) {
|
|
|
231
234
|
}, place);
|
|
232
235
|
}));
|
|
233
236
|
} else setPlaces([]);
|
|
237
|
+
return function () {
|
|
238
|
+
setTargets([]);
|
|
239
|
+
};
|
|
234
240
|
}, [placesProp, world]);
|
|
235
|
-
var _React$useState3 = React.useState(),
|
|
236
|
-
over = _React$useState3[0],
|
|
237
|
-
setOver = _React$useState3[1];
|
|
238
241
|
var _React$useState4 = React.useState(),
|
|
239
|
-
|
|
240
|
-
|
|
242
|
+
over = _React$useState4[0],
|
|
243
|
+
setOver = _React$useState4[1];
|
|
241
244
|
var _React$useState5 = React.useState(),
|
|
242
|
-
|
|
243
|
-
|
|
245
|
+
activeCoords = _React$useState5[0],
|
|
246
|
+
setActiveCoords = _React$useState5[1];
|
|
244
247
|
var _React$useState6 = React.useState(),
|
|
245
|
-
|
|
246
|
-
|
|
248
|
+
activeContinent = _React$useState6[0],
|
|
249
|
+
setActiveContinent = _React$useState6[1];
|
|
250
|
+
var _React$useState7 = React.useState(),
|
|
251
|
+
activePlace = _React$useState7[0],
|
|
252
|
+
setActivePlace = _React$useState7[1];
|
|
247
253
|
var containerRef = React.useRef();
|
|
248
|
-
|
|
249
|
-
// targets are used for the Drops associated with places content
|
|
250
|
-
var _React$useState7 = React.useState([]),
|
|
251
|
-
targets = _React$useState7[0],
|
|
252
|
-
setTargets = _React$useState7[1];
|
|
253
254
|
var placeRef = React.useCallback(function (node, index) {
|
|
254
255
|
setTargets(function (prevTargets) {
|
|
255
256
|
if (!prevTargets[index]) {
|
|
@@ -24,6 +24,8 @@ export * from './DataSearch';
|
|
|
24
24
|
export * from './DataSort';
|
|
25
25
|
export * from './DataSummary';
|
|
26
26
|
export * from './DataTable';
|
|
27
|
+
export * from './DataTableColumns';
|
|
28
|
+
export * from './DataView';
|
|
27
29
|
export * from './DateInput';
|
|
28
30
|
export * from './Diagram';
|
|
29
31
|
export * from './Distribution';
|
package/es6/components/index.js
CHANGED
|
@@ -20,10 +20,12 @@ export * from './Data';
|
|
|
20
20
|
export * from './DataChart';
|
|
21
21
|
export * from './DataFilter';
|
|
22
22
|
export * from './DataFilters';
|
|
23
|
-
export * from './DataTable';
|
|
24
23
|
export * from './DataSearch';
|
|
25
24
|
export * from './DataSort';
|
|
26
25
|
export * from './DataSummary';
|
|
26
|
+
export * from './DataTable';
|
|
27
|
+
export * from './DataTableColumns';
|
|
28
|
+
export * from './DataView';
|
|
27
29
|
export * from './DateInput';
|
|
28
30
|
export * from './Diagram';
|
|
29
31
|
export * from './Distribution';
|
|
@@ -25,19 +25,29 @@
|
|
|
25
25
|
"submit": "Apply filters"
|
|
26
26
|
},
|
|
27
27
|
"dataSearch": {
|
|
28
|
-
"label": "Search
|
|
28
|
+
"label": "Search",
|
|
29
|
+
"open": "Open search"
|
|
29
30
|
},
|
|
30
31
|
"dataSort": {
|
|
31
32
|
"ascending": "Ascending",
|
|
32
33
|
"by": "Sort by",
|
|
33
34
|
"descending": "Descending",
|
|
34
|
-
"direction": "Sort direction"
|
|
35
|
+
"direction": "Sort direction",
|
|
36
|
+
"open": "Open sort"
|
|
35
37
|
},
|
|
36
38
|
"dataSummary": {
|
|
37
|
-
"filtered": "{
|
|
38
|
-
"filteredSingle": "{
|
|
39
|
+
"filtered": "{filteredTotal} results of {total} items",
|
|
40
|
+
"filteredSingle": "{filteredTotal} result of {total} items",
|
|
39
41
|
"total": "{total} items"
|
|
40
42
|
},
|
|
43
|
+
"dataTableColumns": {
|
|
44
|
+
"open": "Open column selector",
|
|
45
|
+
"order": "Order columns",
|
|
46
|
+
"select": "Select columns"
|
|
47
|
+
},
|
|
48
|
+
"dataView": {
|
|
49
|
+
"label": "View"
|
|
50
|
+
},
|
|
41
51
|
"fileInput": {
|
|
42
52
|
"browse": "browse",
|
|
43
53
|
"dropPrompt": "Drop file here or",
|
package/es6/themes/base.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
PropsOf,
|
|
26
26
|
AlignContentType,
|
|
27
27
|
SkeletonColorsType,
|
|
28
|
+
AlignSelfType,
|
|
28
29
|
} from '../utils';
|
|
29
30
|
|
|
30
31
|
import { AnchorProps } from '../components/Anchor/index';
|
|
@@ -147,7 +148,9 @@ interface ButtonKindType {
|
|
|
147
148
|
}
|
|
148
149
|
| boolean;
|
|
149
150
|
color?: ColorType;
|
|
151
|
+
direction?: DirectionType;
|
|
150
152
|
font?: {
|
|
153
|
+
size?: string;
|
|
151
154
|
weight?: number | string;
|
|
152
155
|
};
|
|
153
156
|
icon?: React.ReactNode | Icon;
|
|
@@ -223,6 +226,9 @@ interface ButtonType {
|
|
|
223
226
|
vertical?: string;
|
|
224
227
|
horizontal?: string;
|
|
225
228
|
};
|
|
229
|
+
iconOnly?: {
|
|
230
|
+
pad?: string | { horizontal?: string; vertical?: string };
|
|
231
|
+
};
|
|
226
232
|
};
|
|
227
233
|
medium?: {
|
|
228
234
|
border?: {
|
|
@@ -232,6 +238,9 @@ interface ButtonType {
|
|
|
232
238
|
vertical?: string;
|
|
233
239
|
horizontal?: string;
|
|
234
240
|
};
|
|
241
|
+
iconOnly?: {
|
|
242
|
+
pad?: string | { horizontal?: string; vertical?: string };
|
|
243
|
+
};
|
|
235
244
|
};
|
|
236
245
|
large?: {
|
|
237
246
|
border?: {
|
|
@@ -241,6 +250,9 @@ interface ButtonType {
|
|
|
241
250
|
vertical?: string;
|
|
242
251
|
horizontal?: string;
|
|
243
252
|
};
|
|
253
|
+
iconOnly?: {
|
|
254
|
+
pad?: string | { horizontal?: string; vertical?: string };
|
|
255
|
+
};
|
|
244
256
|
};
|
|
245
257
|
};
|
|
246
258
|
skeleton?: SkeletonProps;
|
|
@@ -480,6 +492,20 @@ export interface ThemeType {
|
|
|
480
492
|
textDecoration?: string;
|
|
481
493
|
};
|
|
482
494
|
textDecoration?: string;
|
|
495
|
+
size?: {
|
|
496
|
+
medium?: {
|
|
497
|
+
color?: ColorType;
|
|
498
|
+
fontWeight?: number;
|
|
499
|
+
textDecoration?: string;
|
|
500
|
+
};
|
|
501
|
+
[x: string]:
|
|
502
|
+
| {
|
|
503
|
+
color?: ColorType;
|
|
504
|
+
fontWeight?: number;
|
|
505
|
+
textDecoration?: string;
|
|
506
|
+
}
|
|
507
|
+
| undefined;
|
|
508
|
+
};
|
|
483
509
|
};
|
|
484
510
|
avatar?: {
|
|
485
511
|
size?: {
|
|
@@ -515,18 +541,21 @@ export interface ThemeType {
|
|
|
515
541
|
};
|
|
516
542
|
extend?: ExtendType;
|
|
517
543
|
small?: {
|
|
544
|
+
title?: TextProps;
|
|
518
545
|
fontSize?: string;
|
|
519
546
|
lineHeight?: number;
|
|
520
547
|
daySize?: string;
|
|
521
548
|
slideDuration?: string;
|
|
522
549
|
};
|
|
523
550
|
medium?: {
|
|
551
|
+
title?: TextProps;
|
|
524
552
|
fontSize?: string;
|
|
525
553
|
lineHeight?: number;
|
|
526
554
|
daySize?: string;
|
|
527
555
|
slideDuration?: string;
|
|
528
556
|
};
|
|
529
557
|
large?: {
|
|
558
|
+
title?: TextProps;
|
|
530
559
|
fontSize?: string;
|
|
531
560
|
lineHeight?: number;
|
|
532
561
|
daySize?: string;
|
|
@@ -1021,6 +1050,7 @@ export interface ThemeType {
|
|
|
1021
1050
|
extend?: ExtendType;
|
|
1022
1051
|
overlay?: {
|
|
1023
1052
|
background?: BackgroundType;
|
|
1053
|
+
backdropFilter?: string;
|
|
1024
1054
|
};
|
|
1025
1055
|
responsiveBreakpoint?: string;
|
|
1026
1056
|
zIndex?: string;
|
|
@@ -1483,6 +1513,7 @@ export interface ThemeType {
|
|
|
1483
1513
|
extend?: ExtendType;
|
|
1484
1514
|
gap?: GapType;
|
|
1485
1515
|
header?: {
|
|
1516
|
+
alignSelf?: AlignSelfType;
|
|
1486
1517
|
background?: BackgroundType;
|
|
1487
1518
|
border?: {
|
|
1488
1519
|
side?: string;
|