grommet 2.31.0 → 2.32.1
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/Accordion/Accordion.js +4 -2
- package/components/Accordion/index.d.ts +1 -0
- package/components/Accordion/propTypes.js +1 -0
- package/components/AccordionPanel/AccordionPanel.js +2 -1
- package/components/Box/Box.js +14 -4
- package/components/Box/stories/Border.js +15 -1
- package/components/Button/BusyAnimation.js +51 -0
- package/components/Button/Button.js +64 -4
- package/components/Button/StyledButton.js +4 -2
- package/components/Button/StyledButtonKind.js +8 -4
- package/components/Button/index.d.ts +7 -0
- package/components/Button/propTypes.js +6 -0
- package/components/Button/stories/Busy.js +45 -0
- package/components/Calendar/stories/Dual.js +4 -6
- package/components/Chart/Chart.js +113 -57
- package/components/Chart/index.d.ts +3 -0
- package/components/Chart/propTypes.js +1 -0
- package/components/Chart/stories/Layout.js +6 -3
- package/components/Chart/stories/Pattern.js +1 -0
- package/components/Chart/stories/Vertical.js +41 -0
- package/components/Chart/utils.js +57 -10
- package/components/Data/Data.js +2 -1
- package/components/Data/DataForm.js +6 -2
- package/components/Data/filter.js +12 -1
- package/components/Data/stories/Complex.js +63 -6
- package/components/Data/stories/Inline.js +19 -2
- package/components/DataFilter/DataFilter.js +37 -22
- package/components/DataFilters/DataFilters.js +13 -10
- package/components/DataTable/Body.js +16 -13
- package/components/DataTable/DataTable.js +4 -1
- package/components/DataTable/GroupedBody.js +2 -1
- package/components/DataTable/Header.js +1 -0
- package/components/DataTable/buildState.js +13 -11
- package/components/DataTable/stories/Controlled.js +2 -1
- package/components/DataTable/stories/ControlledGrouped.js +2 -1
- package/components/DataTable/stories/CustomThemed/Custom.js +0 -1
- package/components/DataTable/stories/CustomThemed/Fill.js +2 -1
- package/components/DataTable/stories/GroupedOnSelect.js +2 -1
- package/components/DataTable/stories/NoPrimary.js +0 -1
- package/components/DataTable/stories/OnUpdate.js +2 -1
- package/components/DataTable/stories/Served.js +2 -1
- package/components/DataTable/stories/Tunable.js +2 -1
- package/components/DataTable/stories/rowDetails.js +2 -1
- package/components/DataTableColumns/DataTableColumns.js +5 -0
- package/components/DataTableColumns/stories/Simple.js +4 -3
- package/components/DataTableGroupBy/DataTableGroupBy.js +67 -0
- package/components/DataTableGroupBy/README.md +2 -0
- package/components/DataTableGroupBy/index.d.ts +20 -0
- package/components/DataTableGroupBy/index.js +6 -0
- package/components/DataTableGroupBy/propTypes.js +17 -0
- package/components/DataTableGroupBy/stories/Simple.js +50 -0
- package/components/DateInput/DateInput.js +1 -1
- package/components/Drop/DropContainer.js +5 -4
- package/components/DropButton/DropButton.js +2 -2
- package/components/FileInput/FileInput.js +82 -53
- package/components/Form/Form.js +95 -44
- package/components/Form/stories/TriggerValidationUsingFormField.js +109 -0
- package/components/FormField/FormField.js +4 -2
- package/components/FormField/index.d.ts +1 -0
- package/components/FormField/propTypes.js +2 -1
- package/components/Grid/stories/CustomThemed/Responsive.js +0 -1
- package/components/InfiniteScroll/InfiniteScroll.js +1 -0
- package/components/Layer/Layer.js +1 -1
- package/components/Layer/LayerContainer.js +2 -2
- package/components/List/index.d.ts +2 -2
- package/components/NameValueList/NameValueList.js +1 -1
- package/components/RadioButtonGroup/RadioButtonGroup.js +19 -4
- package/components/RadioButtonGroup/stories/typescript/Simple.tsx +6 -4
- package/components/SelectMultiple/SelectMultiple.js +13 -10
- package/components/SelectMultiple/SelectMultipleValue.js +1 -1
- package/components/Tip/stories/HeaderActions.js +0 -1
- package/components/index.d.ts +3 -1
- package/components/index.js +6 -0
- package/contexts/DataContext.js +2 -1
- package/es6/components/Accordion/Accordion.js +4 -2
- package/es6/components/Accordion/index.d.ts +1 -0
- package/es6/components/Accordion/propTypes.js +1 -0
- package/es6/components/AccordionPanel/AccordionPanel.js +2 -1
- package/es6/components/Box/Box.js +14 -4
- package/es6/components/Box/stories/Border.js +15 -1
- package/es6/components/Button/BusyAnimation.js +41 -0
- package/es6/components/Button/Button.js +64 -5
- package/es6/components/Button/StyledButton.js +4 -2
- package/es6/components/Button/StyledButtonKind.js +8 -4
- package/es6/components/Button/index.d.ts +7 -0
- package/es6/components/Button/propTypes.js +6 -0
- package/es6/components/Button/stories/Busy.js +37 -0
- package/es6/components/Calendar/stories/Dual.js +4 -6
- package/es6/components/Chart/Chart.js +113 -57
- package/es6/components/Chart/index.d.ts +3 -0
- package/es6/components/Chart/propTypes.js +1 -0
- package/es6/components/Chart/stories/Layout.js +6 -3
- package/es6/components/Chart/stories/Pattern.js +1 -0
- package/es6/components/Chart/stories/Vertical.js +35 -0
- package/es6/components/Chart/utils.js +57 -10
- package/es6/components/Data/Data.js +2 -1
- package/es6/components/Data/DataForm.js +4 -1
- package/es6/components/Data/filter.js +12 -1
- package/es6/components/Data/stories/Complex.js +64 -7
- package/es6/components/Data/stories/Inline.js +20 -3
- package/es6/components/DataFilter/DataFilter.js +37 -22
- package/es6/components/DataFilters/DataFilters.js +13 -10
- package/es6/components/DataTable/Body.js +15 -13
- package/es6/components/DataTable/DataTable.js +4 -1
- package/es6/components/DataTable/GroupedBody.js +2 -1
- package/es6/components/DataTable/buildState.js +13 -11
- package/es6/components/DataTableColumns/DataTableColumns.js +5 -0
- package/es6/components/DataTableColumns/stories/Simple.js +5 -4
- package/es6/components/DataTableGroupBy/DataTableGroupBy.js +60 -0
- package/es6/components/DataTableGroupBy/README.md +2 -0
- package/es6/components/DataTableGroupBy/index.d.ts +20 -0
- package/es6/components/DataTableGroupBy/index.js +1 -0
- package/es6/components/DataTableGroupBy/propTypes.js +11 -0
- package/es6/components/DataTableGroupBy/stories/Simple.js +45 -0
- package/es6/components/DateInput/DateInput.js +1 -1
- package/es6/components/Drop/DropContainer.js +5 -4
- package/es6/components/DropButton/DropButton.js +2 -2
- package/es6/components/FileInput/FileInput.js +83 -53
- package/es6/components/Form/Form.js +95 -44
- package/es6/components/Form/stories/TriggerValidationUsingFormField.js +102 -0
- package/es6/components/FormField/FormField.js +4 -2
- package/es6/components/FormField/index.d.ts +1 -0
- package/es6/components/FormField/propTypes.js +2 -1
- package/es6/components/InfiniteScroll/InfiniteScroll.js +1 -0
- package/es6/components/Layer/Layer.js +1 -1
- package/es6/components/Layer/LayerContainer.js +2 -2
- package/es6/components/List/index.d.ts +2 -2
- package/es6/components/NameValueList/NameValueList.js +1 -1
- package/es6/components/RadioButtonGroup/RadioButtonGroup.js +19 -4
- package/es6/components/RadioButtonGroup/stories/typescript/Simple.tsx +6 -4
- package/es6/components/SelectMultiple/SelectMultiple.js +13 -10
- package/es6/components/SelectMultiple/SelectMultipleValue.js +1 -1
- package/es6/components/index.d.ts +3 -1
- package/es6/components/index.js +1 -0
- package/es6/contexts/DataContext.js +2 -1
- package/es6/index.d.ts +12 -0
- package/es6/index.js +2 -0
- package/es6/languages/default.json +15 -2
- package/es6/themes/base.js +1 -1
- package/es6/utils/index.d.ts +1 -1
- package/es6/utils/refs.js +1 -1
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/index.d.ts +12 -0
- package/index.js +1 -0
- package/languages/default.json +15 -2
- package/package.json +46 -45
- package/themes/base.js +1 -1
- package/utils/index.d.ts +1 -1
- package/utils/refs.js +1 -1
|
@@ -205,6 +205,7 @@ var InfiniteScroll = function InfiniteScroll(_ref) {
|
|
|
205
205
|
while (replace && i <= lastPage) {
|
|
206
206
|
if (!pageHeights[i] && pageHeights[i] !== pageHeights[0]) {
|
|
207
207
|
if (!nextPageHeights) nextPageHeights = [].concat(pageHeights || []);
|
|
208
|
+
// set to first page height
|
|
208
209
|
var _nextPageHeights = nextPageHeights;
|
|
209
210
|
nextPageHeights[i] = _nextPageHeights[0];
|
|
210
211
|
}
|
|
@@ -54,7 +54,7 @@ var Layer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
54
54
|
}
|
|
55
55
|
setTimeout(function () {
|
|
56
56
|
// we add the id and query here so the unit tests work
|
|
57
|
-
var clone = containerTarget
|
|
57
|
+
var clone = containerTarget.getRootNode().getElementById('layerClone');
|
|
58
58
|
if (clone) {
|
|
59
59
|
containerTarget.removeChild(clone);
|
|
60
60
|
layerContainer.remove();
|
|
@@ -104,8 +104,8 @@ var LayerContainer = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
104
104
|
var onClickDocument = function onClickDocument(event) {
|
|
105
105
|
// determine which portal id the target is in, if any
|
|
106
106
|
var clickedPortalId = null;
|
|
107
|
-
var node =
|
|
108
|
-
while (clickedPortalId === null && node !== document && node
|
|
107
|
+
var node = event.composed && event.composedPath()[0] || event.target;
|
|
108
|
+
while (clickedPortalId === null && node && node !== document && !(node instanceof ShadowRoot)) {
|
|
109
109
|
// check if user click occurred within the layer
|
|
110
110
|
var attr = node.getAttribute('data-g-portal-id');
|
|
111
111
|
if (attr !== null && attr !== '') clickedPortalId = parseInt(attr, 10);
|
|
@@ -43,7 +43,7 @@ export interface ListProps<ListItemType> {
|
|
|
43
43
|
| string[]
|
|
44
44
|
| { light: string | string[]; dark: string | string[] };
|
|
45
45
|
border?: BorderType;
|
|
46
|
-
children?:
|
|
46
|
+
children?: (...args: any[]) => any;
|
|
47
47
|
data?: ListItemType[];
|
|
48
48
|
disabled?: string[];
|
|
49
49
|
gridArea?: GridAreaType;
|
|
@@ -69,7 +69,7 @@ export interface ListProps<ListItemType> {
|
|
|
69
69
|
action?: (item: ListItemType, index: number) => void;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
type ulProps = JSX.IntrinsicElements['ul']
|
|
72
|
+
type ulProps = Omit<JSX.IntrinsicElements['ul'], 'children'>;
|
|
73
73
|
|
|
74
74
|
export interface ListExtendedProps<ListItemType>
|
|
75
75
|
extends ListProps<ListItemType>,
|
|
@@ -47,9 +47,9 @@ var NameValueList = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
47
47
|
}, /*#__PURE__*/React.createElement(Grid, _extends({
|
|
48
48
|
as: "dl",
|
|
49
49
|
ref: ref,
|
|
50
|
+
align: align,
|
|
50
51
|
columns: columns,
|
|
51
52
|
gap: gap,
|
|
52
|
-
fill: layout === 'grid',
|
|
53
53
|
margin: "none" // override browser default margin for dl
|
|
54
54
|
}, rest)));
|
|
55
55
|
});
|
|
@@ -17,7 +17,7 @@ var RadioButtonGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
17
17
|
_ref$focusIndicator = _ref.focusIndicator,
|
|
18
18
|
focusIndicator = _ref$focusIndicator === void 0 ? true : _ref$focusIndicator,
|
|
19
19
|
name = _ref.name,
|
|
20
|
-
|
|
20
|
+
onChange = _ref.onChange,
|
|
21
21
|
optionsProp = _ref.options,
|
|
22
22
|
valueProp = _ref.value,
|
|
23
23
|
gap = _ref.gap,
|
|
@@ -40,7 +40,7 @@ var RadioButtonGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
40
40
|
var _formContext$useFormI = formContext.useFormInput({
|
|
41
41
|
name: name,
|
|
42
42
|
value: valueProp,
|
|
43
|
-
initialValue: defaultValue
|
|
43
|
+
initialValue: defaultValue != null ? defaultValue : ''
|
|
44
44
|
}),
|
|
45
45
|
value = _formContext$useFormI[0],
|
|
46
46
|
setValue = _formContext$useFormI[1];
|
|
@@ -90,6 +90,18 @@ var RadioButtonGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
90
90
|
setFocus(true);
|
|
91
91
|
}, 1);
|
|
92
92
|
};
|
|
93
|
+
var onRadioButtonChange = function onRadioButtonChange(event, optionValue) {
|
|
94
|
+
setValue(optionValue);
|
|
95
|
+
if (onChange) {
|
|
96
|
+
event.persist(); // extract from React synthetic event pool
|
|
97
|
+
// event.target.value gives value as a string which needs to be
|
|
98
|
+
// manually typecasted according to the type of original option value.
|
|
99
|
+
// return the original option value attached with the event.
|
|
100
|
+
var adjustedEvent = event;
|
|
101
|
+
adjustedEvent.value = optionValue;
|
|
102
|
+
onChange(adjustedEvent);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
93
105
|
var onBlur = function onBlur() {
|
|
94
106
|
return setFocus(false);
|
|
95
107
|
};
|
|
@@ -116,6 +128,10 @@ var RadioButtonGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
116
128
|
// when nothing has been selected, show focus
|
|
117
129
|
// on the first radiobutton
|
|
118
130
|
value === '' && index === 0;
|
|
131
|
+
if (optionRest.checked) {
|
|
132
|
+
console.warn( // eslint-disable-next-line max-len
|
|
133
|
+
"'checked' prop of an individual RadioButton shouldn't be used in a RadioButtonGroup component. Use the RadioButtonGroup 'value' prop instead.");
|
|
134
|
+
}
|
|
119
135
|
return /*#__PURE__*/React.createElement(RadioButton, _extends({
|
|
120
136
|
ref: function ref(aRef) {
|
|
121
137
|
optionRefs.current[index] = aRef;
|
|
@@ -138,8 +154,7 @@ var RadioButtonGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
138
154
|
onFocus: onFocus,
|
|
139
155
|
onBlur: onBlur,
|
|
140
156
|
onChange: function onChange(event) {
|
|
141
|
-
|
|
142
|
-
if (_onChange) _onChange(event);
|
|
157
|
+
return onRadioButtonChange(event, optionValue);
|
|
143
158
|
},
|
|
144
159
|
tabIndex: focusable ? '0' : '-1' // necessary for Firefox
|
|
145
160
|
}, optionRest), children ? function (state) {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
1
|
+
import React, { ChangeEvent, useState } from 'react';
|
|
2
2
|
|
|
3
3
|
import { Box, RadioButtonGroup } from 'grommet';
|
|
4
4
|
|
|
5
|
+
type EventWithValueProp = ChangeEvent<HTMLInputElement> & {value: string | number};
|
|
6
|
+
|
|
5
7
|
export const Simple = () => {
|
|
6
8
|
const postMethods = [
|
|
7
9
|
{ label: 'FTP', value: 'FTP' },
|
|
@@ -16,8 +18,8 @@ export const Simple = () => {
|
|
|
16
18
|
];
|
|
17
19
|
|
|
18
20
|
// Type arguments can only be used in TypeScript files.
|
|
19
|
-
// Remove <string |
|
|
20
|
-
const [value, setValue] = useState<string |
|
|
21
|
+
// Remove <string | number> if you are not using Typescript.
|
|
22
|
+
const [value, setValue] = useState<string | number>(postMethods[0].value);
|
|
21
23
|
|
|
22
24
|
return (
|
|
23
25
|
<Box align="center" pad="large">
|
|
@@ -25,7 +27,7 @@ export const Simple = () => {
|
|
|
25
27
|
name="radio"
|
|
26
28
|
options={postMethods}
|
|
27
29
|
value={value}
|
|
28
|
-
onChange={(event) => setValue(event.
|
|
30
|
+
onChange={(event: EventWithValueProp) => setValue(event.value)}
|
|
29
31
|
/>
|
|
30
32
|
</Box>
|
|
31
33
|
);
|
|
@@ -38,7 +38,7 @@ var SelectMultiple = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
38
38
|
defaultValue = _ref.defaultValue,
|
|
39
39
|
disabled = _ref.disabled,
|
|
40
40
|
disabledKey = _ref.disabledKey,
|
|
41
|
-
|
|
41
|
+
dropAlignProp = _ref.dropAlign,
|
|
42
42
|
dropHeight = _ref.dropHeight,
|
|
43
43
|
dropProps = _ref.dropProps,
|
|
44
44
|
dropTarget = _ref.dropTarget,
|
|
@@ -86,6 +86,16 @@ var SelectMultiple = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
86
86
|
var selectBoxRef = useRef();
|
|
87
87
|
var dropButtonRef = useForwardedRef(ref);
|
|
88
88
|
var usingKeyboard = useKeyboard();
|
|
89
|
+
var dropAlign = useMemo(function () {
|
|
90
|
+
return dropAlignProp || (showSelectedInline ? {
|
|
91
|
+
top: 'top',
|
|
92
|
+
right: 'right',
|
|
93
|
+
left: 'left'
|
|
94
|
+
} : {
|
|
95
|
+
top: 'bottom',
|
|
96
|
+
left: 'left'
|
|
97
|
+
});
|
|
98
|
+
}, [dropAlignProp, showSelectedInline]);
|
|
89
99
|
|
|
90
100
|
// value is used for what we receive in valueProp and the basis for
|
|
91
101
|
// what we send with onChange
|
|
@@ -349,11 +359,7 @@ var SelectMultiple = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
349
359
|
fill: "horizontal",
|
|
350
360
|
alignSelf: "start"
|
|
351
361
|
}, dropButtonProps, {
|
|
352
|
-
dropAlign: dropAlign
|
|
353
|
-
top: 'top',
|
|
354
|
-
right: 'right',
|
|
355
|
-
left: 'left'
|
|
356
|
-
},
|
|
362
|
+
dropAlign: dropAlign,
|
|
357
363
|
dropTarget: dropTarget || selectBoxRef.current
|
|
358
364
|
}), selectValue || displayLabelKey ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
359
365
|
direction: "row"
|
|
@@ -396,10 +402,7 @@ var SelectMultiple = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
396
402
|
}, rest)), displaySelectIcon)), !open && (value == null ? void 0 : value.length) > 0 && (selectValue || displayLabelKey))) : /*#__PURE__*/React.createElement(Box, {
|
|
397
403
|
width: width
|
|
398
404
|
}, /*#__PURE__*/React.createElement(StyledSelectDropButton, _extends({}, dropButtonProps, {
|
|
399
|
-
dropAlign: dropAlign
|
|
400
|
-
top: 'bottom',
|
|
401
|
-
left: 'left'
|
|
402
|
-
},
|
|
405
|
+
dropAlign: dropAlign,
|
|
403
406
|
dropTarget: dropTarget,
|
|
404
407
|
alignSelf: alignSelf,
|
|
405
408
|
tabIndex: "0"
|
|
@@ -54,7 +54,7 @@ var SelectMultipleValue = function SelectMultipleValue(_ref) {
|
|
|
54
54
|
onSelectChange(event, {
|
|
55
55
|
option: optionValue,
|
|
56
56
|
value: intermediate.filter(function (v) {
|
|
57
|
-
return typeof v === 'object' ? applyKey(v, valueKey || labelKey)
|
|
57
|
+
return typeof v === 'object' ? applyKey(v, valueKey || labelKey) !== applyKey(optionValue, valueKey || labelKey) : v !== optionValue;
|
|
58
58
|
})
|
|
59
59
|
});
|
|
60
60
|
if (valueIndex !== intermediate.length - 1) {
|
|
@@ -25,6 +25,7 @@ export * from './DataSort';
|
|
|
25
25
|
export * from './DataSummary';
|
|
26
26
|
export * from './DataTable';
|
|
27
27
|
export * from './DataTableColumns';
|
|
28
|
+
export * from './DataTableGroupBy';
|
|
28
29
|
export * from './DataView';
|
|
29
30
|
export * from './DateInput';
|
|
30
31
|
export * from './Diagram';
|
|
@@ -84,7 +85,8 @@ export * from './Tag';
|
|
|
84
85
|
export * from './Text';
|
|
85
86
|
export * from './TextArea';
|
|
86
87
|
export * from './TextInput';
|
|
87
|
-
export * from './Tip';
|
|
88
88
|
export * from './ThumbsRating';
|
|
89
|
+
export * from './Tip';
|
|
90
|
+
export * from './Toolbar';
|
|
89
91
|
export * from './Video';
|
|
90
92
|
export * from './WorldMap';
|
package/es6/components/index.js
CHANGED
|
@@ -25,6 +25,7 @@ export * from './DataSort';
|
|
|
25
25
|
export * from './DataSummary';
|
|
26
26
|
export * from './DataTable';
|
|
27
27
|
export * from './DataTableColumns';
|
|
28
|
+
export * from './DataTableGroupBy';
|
|
28
29
|
export * from './DataView';
|
|
29
30
|
export * from './DateInput';
|
|
30
31
|
export * from './Diagram';
|
package/es6/index.d.ts
CHANGED
|
@@ -10,13 +10,23 @@ export * from './components/Card';
|
|
|
10
10
|
export * from './components/CardBody';
|
|
11
11
|
export * from './components/CardFooter';
|
|
12
12
|
export * from './components/CardHeader';
|
|
13
|
+
export * from './components/Cards';
|
|
13
14
|
export * from './components/Chart';
|
|
14
15
|
export * from './components/CheckBox';
|
|
15
16
|
export * from './components/CheckBoxGroup';
|
|
16
17
|
export * from './components/Clock';
|
|
17
18
|
export * from './components/Collapsible';
|
|
19
|
+
export * from './components/Data';
|
|
18
20
|
export * from './components/DataChart';
|
|
21
|
+
export * from './components/DataFilter';
|
|
22
|
+
export * from './components/DataFilters';
|
|
23
|
+
export * from './components/DataSearch';
|
|
24
|
+
export * from './components/DataSort';
|
|
25
|
+
export * from './components/DataSummary';
|
|
19
26
|
export * from './components/DataTable';
|
|
27
|
+
export * from './components/DataTableColumns';
|
|
28
|
+
export * from './components/DataTableGroupBy';
|
|
29
|
+
export * from './components/DataView';
|
|
20
30
|
export * from './components/DateInput';
|
|
21
31
|
export * from './components/Diagram';
|
|
22
32
|
export * from './components/Distribution';
|
|
@@ -58,6 +68,7 @@ export * from './components/RoutedButton';
|
|
|
58
68
|
export * from './components/Select';
|
|
59
69
|
export * from './components/SelectMultiple';
|
|
60
70
|
export * from './components/Sidebar';
|
|
71
|
+
export * from './components/Skeleton';
|
|
61
72
|
export * from './components/SkipLink';
|
|
62
73
|
export * from './components/SkipLinks';
|
|
63
74
|
export * from './components/SkipLinkTarget';
|
|
@@ -78,6 +89,7 @@ export * from './components/TextArea';
|
|
|
78
89
|
export * from './components/TextInput';
|
|
79
90
|
export * from './components/ThumbsRating';
|
|
80
91
|
export * from './components/Tip';
|
|
92
|
+
export * from './components/Toolbar';
|
|
81
93
|
export * from './components/Video';
|
|
82
94
|
export * from './components/WorldMap';
|
|
83
95
|
export * from './contexts/AnnounceContext';
|
package/es6/index.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
+
"button": {
|
|
3
|
+
"busy": "button is in a busy state",
|
|
4
|
+
"success": "button action succeeded"
|
|
5
|
+
},
|
|
2
6
|
"calendar": {
|
|
3
7
|
"previousMove": "Moved to {date}",
|
|
4
8
|
"previous": "Go to {date}",
|
|
@@ -18,7 +22,11 @@
|
|
|
18
22
|
"dataFilters": {
|
|
19
23
|
"clear": "Clear filters",
|
|
20
24
|
"heading": "Filters",
|
|
21
|
-
"open": "Open filters"
|
|
25
|
+
"open": "Open filters",
|
|
26
|
+
"openSet": {
|
|
27
|
+
"singular": "Open filters, {number} filter applied",
|
|
28
|
+
"plural": "Open filters, {number} filters applied"
|
|
29
|
+
}
|
|
22
30
|
},
|
|
23
31
|
"dataForm": {
|
|
24
32
|
"reset": "Undo changes",
|
|
@@ -43,7 +51,12 @@
|
|
|
43
51
|
"dataTableColumns": {
|
|
44
52
|
"open": "Open column selector",
|
|
45
53
|
"order": "Order columns",
|
|
46
|
-
"select": "Select columns"
|
|
54
|
+
"select": "Select columns",
|
|
55
|
+
"tip": "Manage columns"
|
|
56
|
+
},
|
|
57
|
+
"dataTableGroupBy": {
|
|
58
|
+
"clear": "Clear group",
|
|
59
|
+
"label": "Group by"
|
|
47
60
|
},
|
|
48
61
|
"dataView": {
|
|
49
62
|
"label": "View"
|
package/es6/themes/base.js
CHANGED
|
@@ -29,7 +29,7 @@ var accentColors = ['#6FFFB0', '#FD6FFF', '#81FCED', '#FFCA58'];
|
|
|
29
29
|
var neutralColors = ['#00873D', '#3D138D', '#00739D', '#A2423D'];
|
|
30
30
|
var statusColors = {
|
|
31
31
|
critical: '#FF4040',
|
|
32
|
-
error: '#
|
|
32
|
+
error: '#B30000',
|
|
33
33
|
warning: '#FFAA15',
|
|
34
34
|
ok: '#00C781',
|
|
35
35
|
unknown: '#CCCCCC',
|
package/es6/utils/index.d.ts
CHANGED