grommet 2.42.0 → 2.44.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 +7 -2
- package/all/stories/Colors.js +6 -6
- package/components/Accordion/stories/CustomThemed/Rich.tsx +1 -1
- package/components/Box/stories/Background.js +5 -11
- package/components/Button/stories/CustomThemed/Typescript.tsx +1 -1
- package/components/Button/stories/Kind.js +6 -10
- package/components/Calendar/Calendar.js +21 -11
- package/components/Calendar/StyledCalendar.js +6 -5
- package/components/Calendar/index.d.ts +1 -0
- package/components/Calendar/propTypes.js +1 -0
- package/components/Calendar/stories/DaylightSavings.js +1 -1
- package/components/Calendar/stories/HeaderLevel.js +36 -0
- package/components/Calendar/stories/ShowAdjacentDays.js +3 -2
- package/components/Card/stories/CustomThemed/Clickable.js +2 -2
- package/components/Card/stories/CustomThemed/Stacked.js +2 -2
- package/components/Card/stories/CustomThemed/Themed.js +4 -4
- package/components/Card/stories/Simple.js +2 -2
- package/components/Cards/stories/Children.js +2 -2
- package/components/CheckBox/stories/CustomThemed/Custom.js +1 -1
- package/components/Data/stories/Cards.js +3 -2
- package/components/Data/stories/Properties.js +3 -2
- package/components/DataChart/Detail.js +55 -25
- package/components/DataChart/Legend.js +1 -0
- package/components/DataTable/Body.js +16 -2
- package/components/DataTable/stories/CustomThemed/Fill.js +1 -0
- package/components/Drop/stories/CustomThemed/Lazy.js +4 -4
- package/components/Drop/stories/CustomThemed/Themed.js +1 -1
- package/components/Form/stories/AggregateValidation.js +5 -2
- package/components/Form/stories/ArrayOfFormFields.js +19 -6
- package/components/Form/stories/Controlled.js +8 -1
- package/components/Form/stories/ControlledInput.js +8 -1
- package/components/Form/stories/ControlledInputLazy.js +5 -1
- package/components/Form/stories/ControlledLazy.js +5 -1
- package/components/Form/stories/CustomThemed/Custom.js +17 -1
- package/components/Form/stories/CustomThemed/FieldSpacingOptions.js +36 -36
- package/components/Form/stories/CustomThemed/RequiredLabel.js +3 -0
- package/components/Form/stories/CustomThemed/Themed.js +2 -2
- package/components/Form/stories/DynamicFields.js +9 -2
- package/components/Form/stories/FieldWithChildren.js +6 -1
- package/components/Form/stories/TriggerValidationUsingFormField.js +18 -6
- package/components/Form/stories/Uncontrolled.js +6 -1
- package/components/Form/stories/ValidateOnBlur.js +10 -3
- package/components/Form/stories/ValidateOnChange.js +11 -5
- package/components/Form/stories/ValidateOnMount.js +11 -4
- package/components/Form/stories/typescript/TypedForm.tsx +39 -45
- package/components/FormField/FormField.js +9 -2
- package/components/FormField/stories/CustomThemed/Custom.tsx +1 -1
- package/components/FormField/stories/ThresholdValidation.js +5 -1
- package/components/Grid/stories/AreasPropAlternative.js +4 -1
- package/components/Grommet/index.d.ts +23 -1
- package/components/Grommet/propTypes.js +22 -0
- package/components/Grommet/stories/Theme.js +1 -1
- package/components/Grommet/stories/Vars.js +2 -2
- package/components/Layer/LayerContainer.js +3 -14
- package/components/List/List.js +27 -3
- package/components/List/stories/RenderedList.js +1 -1
- package/components/Meter/Meter.js +36 -17
- package/components/Meter/index.d.ts +18 -0
- package/components/Meter/propTypes.js +18 -0
- package/components/Nav/stories/CustomThemed/JustifySidebar.js +1 -1
- package/components/Notification/stories/CustomThemed/ThemedNotification.tsx +2 -1
- package/components/PageHeader/stories/Level.js +2 -2
- package/components/PageHeader/stories/Size.js +3 -2
- package/components/Pagination/stories/CustomThemed/Custom.tsx +8 -2
- package/components/Pagination/stories/NumberEdgePages.js +2 -0
- package/components/Pagination/stories/NumberMiddlePages.js +2 -0
- package/components/Pagination/stories/Simple.js +4 -2
- package/components/Pagination/stories/Size.js +3 -0
- package/components/Pagination/stories/Steps.js +3 -0
- package/components/RadioButton/RadioButton.js +14 -3
- package/components/RadioButton/stories/Children.js +16 -3
- package/components/RadioButtonGroup/stories/Children.js +13 -1
- package/components/Skeleton/stories/CustomThemed/Custom.js +2 -0
- package/components/Skeleton/stories/GridContainer.js +1 -1
- package/components/Skeleton/stories/Group.js +1 -1
- package/components/Skeleton/stories/Individual.js +1 -2
- package/components/Skeleton/stories/Simple.js +1 -0
- package/components/SkipLinks/stories/CustomThemed/Themed.js +1 -1
- package/components/StarRating/StarRating.js +17 -3
- package/components/Tabs/Tabs.js +1 -1
- package/components/Tabs/stories/CustomThemed/Custom.js +3 -3
- package/components/Tabs/stories/Scrollable.js +2 -1
- package/components/TextArea/stories/CustomThemed/Themed.js +1 -0
- package/components/TextInput/TextInput.js +7 -2
- package/components/TextInput/stories/Simple.js +1 -6
- package/components/ThumbsRating/ThumbsRating.js +20 -5
- package/es6/all/stories/AllComponents.js +7 -2
- package/es6/all/stories/Colors.js +6 -6
- package/es6/components/Accordion/stories/CustomThemed/Rich.tsx +1 -1
- package/es6/components/Box/stories/Background.js +5 -11
- package/es6/components/Button/stories/CustomThemed/Typescript.tsx +1 -1
- package/es6/components/Button/stories/Kind.js +6 -10
- package/es6/components/Calendar/Calendar.js +21 -11
- package/es6/components/Calendar/StyledCalendar.js +6 -5
- package/es6/components/Calendar/index.d.ts +1 -0
- package/es6/components/Calendar/propTypes.js +1 -0
- package/es6/components/Calendar/stories/DaylightSavings.js +2 -2
- package/es6/components/Calendar/stories/HeaderLevel.js +30 -0
- package/es6/components/Calendar/stories/ShowAdjacentDays.js +3 -2
- package/es6/components/Card/stories/CustomThemed/Clickable.js +3 -3
- package/es6/components/Card/stories/CustomThemed/Stacked.js +3 -3
- package/es6/components/Card/stories/CustomThemed/Themed.js +5 -5
- package/es6/components/Card/stories/Simple.js +3 -3
- package/es6/components/Cards/stories/Children.js +3 -3
- package/es6/components/CheckBox/stories/CustomThemed/Custom.js +1 -1
- package/es6/components/Data/stories/Cards.js +4 -3
- package/es6/components/Data/stories/Properties.js +4 -3
- package/es6/components/DataChart/Detail.js +55 -25
- package/es6/components/DataChart/Legend.js +1 -0
- package/es6/components/DataTable/Body.js +18 -4
- package/es6/components/DataTable/stories/CustomThemed/Fill.js +1 -0
- package/es6/components/Drop/stories/CustomThemed/Lazy.js +4 -4
- package/es6/components/Drop/stories/CustomThemed/Themed.js +1 -1
- package/es6/components/Form/stories/AggregateValidation.js +5 -2
- package/es6/components/Form/stories/ArrayOfFormFields.js +20 -7
- package/es6/components/Form/stories/Controlled.js +8 -1
- package/es6/components/Form/stories/ControlledInput.js +8 -1
- package/es6/components/Form/stories/ControlledInputLazy.js +5 -1
- package/es6/components/Form/stories/ControlledLazy.js +5 -1
- package/es6/components/Form/stories/CustomThemed/Custom.js +17 -1
- package/es6/components/Form/stories/CustomThemed/FieldSpacingOptions.js +36 -36
- package/es6/components/Form/stories/CustomThemed/RequiredLabel.js +3 -0
- package/es6/components/Form/stories/CustomThemed/Themed.js +2 -2
- package/es6/components/Form/stories/DynamicFields.js +9 -2
- package/es6/components/Form/stories/FieldWithChildren.js +6 -1
- package/es6/components/Form/stories/TriggerValidationUsingFormField.js +19 -7
- package/es6/components/Form/stories/Uncontrolled.js +6 -1
- package/es6/components/Form/stories/ValidateOnBlur.js +10 -3
- package/es6/components/Form/stories/ValidateOnChange.js +12 -6
- package/es6/components/Form/stories/ValidateOnMount.js +11 -4
- package/es6/components/Form/stories/typescript/TypedForm.tsx +39 -45
- package/es6/components/FormField/FormField.js +10 -3
- package/es6/components/FormField/stories/CustomThemed/Custom.tsx +1 -1
- package/es6/components/FormField/stories/ThresholdValidation.js +5 -1
- package/es6/components/Grid/stories/AreasPropAlternative.js +4 -1
- package/es6/components/Grommet/index.d.ts +23 -1
- package/es6/components/Grommet/propTypes.js +22 -0
- package/es6/components/Grommet/stories/Theme.js +1 -1
- package/es6/components/Grommet/stories/Vars.js +2 -2
- package/es6/components/Layer/LayerContainer.js +4 -15
- package/es6/components/List/List.js +27 -3
- package/es6/components/List/stories/RenderedList.js +1 -1
- package/es6/components/Meter/Meter.js +37 -18
- package/es6/components/Meter/index.d.ts +18 -0
- package/es6/components/Meter/propTypes.js +18 -0
- package/es6/components/Nav/stories/CustomThemed/JustifySidebar.js +1 -1
- package/es6/components/Notification/stories/CustomThemed/ThemedNotification.tsx +2 -1
- package/es6/components/PageHeader/stories/Level.js +3 -3
- package/es6/components/PageHeader/stories/Size.js +3 -2
- package/es6/components/Pagination/stories/CustomThemed/Custom.tsx +8 -2
- package/es6/components/Pagination/stories/NumberEdgePages.js +2 -0
- package/es6/components/Pagination/stories/NumberMiddlePages.js +2 -0
- package/es6/components/Pagination/stories/Simple.js +4 -2
- package/es6/components/Pagination/stories/Size.js +3 -0
- package/es6/components/Pagination/stories/Steps.js +3 -0
- package/es6/components/RadioButton/RadioButton.js +15 -4
- package/es6/components/RadioButton/stories/Children.js +16 -3
- package/es6/components/RadioButtonGroup/stories/Children.js +12 -1
- package/es6/components/Skeleton/stories/CustomThemed/Custom.js +2 -0
- package/es6/components/Skeleton/stories/GridContainer.js +2 -2
- package/es6/components/Skeleton/stories/Group.js +2 -2
- package/es6/components/Skeleton/stories/Individual.js +2 -3
- package/es6/components/Skeleton/stories/Simple.js +1 -0
- package/es6/components/SkipLinks/stories/CustomThemed/Themed.js +1 -1
- package/es6/components/StarRating/StarRating.js +16 -3
- package/es6/components/Tabs/Tabs.js +1 -1
- package/es6/components/Tabs/stories/CustomThemed/Custom.js +3 -3
- package/es6/components/Tabs/stories/Scrollable.js +2 -1
- package/es6/components/TextArea/stories/CustomThemed/Themed.js +1 -0
- package/es6/components/TextInput/TextInput.js +7 -2
- package/es6/components/TextInput/stories/Simple.js +2 -7
- package/es6/components/ThumbsRating/ThumbsRating.js +20 -5
- package/es6/languages/default.json +22 -0
- package/es6/themes/base.d.ts +3 -0
- package/es6/themes/base.js +8 -5
- package/es6/utils/useId.js +3 -2
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/languages/default.json +22 -0
- package/package.json +28 -28
- package/themes/base.d.ts +3 -0
- package/themes/base.js +8 -5
- package/tools/release-stable.js +1 -1
- package/utils/useId.js +5 -2
- package/components/CheckBox/stories/InsideButton.js +0 -38
- package/components/Form/stories/FieldWithComponentProp.js +0 -138
- package/es6/components/CheckBox/stories/InsideButton.js +0 -32
- package/es6/components/Form/stories/FieldWithComponentProp.js +0 -133
|
@@ -151,18 +151,19 @@ var dayFontStyle = function dayFontStyle(props) {
|
|
|
151
151
|
var StyledDay = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
152
152
|
displayName: "StyledCalendar__StyledDay",
|
|
153
153
|
componentId: "sc-1y4xhmp-5"
|
|
154
|
-
})(["display:flex;justify-content:center;align-items:center;", "
|
|
154
|
+
})(["display:flex;justify-content:center;align-items:center;color:", ";", " ", " ", " ", " ", " ", " ", " ", ""], function (props) {
|
|
155
|
+
var _props$theme$calendar24;
|
|
156
|
+
return normalizeColor(props.otherMonth ? ((_props$theme$calendar24 = props.theme.calendar) == null || (_props$theme$calendar24 = _props$theme$calendar24.day) == null || (_props$theme$calendar24 = _props$theme$calendar24.adjacent) == null ? void 0 : _props$theme$calendar24.color) || 'text-xweak' : 'text-strong', props.theme);
|
|
157
|
+
}, function (props) {
|
|
155
158
|
return daySizeStyle(props);
|
|
156
159
|
}, function (props) {
|
|
157
160
|
return dayStyle(props);
|
|
158
|
-
}, function (props) {
|
|
159
|
-
return props.otherMonth && 'opacity: 0.5;';
|
|
160
161
|
}, function (props) {
|
|
161
162
|
return dayFontStyle(props);
|
|
162
163
|
}, function (props) {
|
|
163
|
-
var _props$theme$
|
|
164
|
+
var _props$theme$calendar25, _props$theme$calendar26;
|
|
164
165
|
// fallback to medium if no size-specific styles
|
|
165
|
-
var round = ((_props$theme$
|
|
166
|
+
var round = ((_props$theme$calendar25 = props.theme.calendar) == null || (_props$theme$calendar25 = _props$theme$calendar25[props.sizeProp]) == null || (_props$theme$calendar25 = _props$theme$calendar25.day) == null ? void 0 : _props$theme$calendar25.round) || ((_props$theme$calendar26 = props.theme.calendar) == null || (_props$theme$calendar26 = _props$theme$calendar26.medium) == null || (_props$theme$calendar26 = _props$theme$calendar26.day) == null ? void 0 : _props$theme$calendar26.round);
|
|
166
167
|
return round && roundStyle(round, props.responsive, props.theme);
|
|
167
168
|
}, function (props) {
|
|
168
169
|
return props.active && activeStyle;
|
|
@@ -39,6 +39,7 @@ export interface CalendarProps {
|
|
|
39
39
|
fill?: boolean;
|
|
40
40
|
firstDayOfWeek?: 0 | 1;
|
|
41
41
|
header?: (args: CalendarHeaderProps) => React.ReactNode;
|
|
42
|
+
level?: '1' | '2' | '3' | '4' | '5' | '6' | 1 | 2 | 3 | 4 | 5 | 6;
|
|
42
43
|
locale?: string;
|
|
43
44
|
messages?: {
|
|
44
45
|
previous?: string;
|
|
@@ -15,6 +15,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
15
15
|
fill: PropTypes.bool,
|
|
16
16
|
firstDayOfWeek: PropTypes.oneOf([0, 1]),
|
|
17
17
|
header: PropTypes.func,
|
|
18
|
+
level: PropTypes.oneOf([1, 2, 3, 4, 5, 6, '1', '2', '3', '4', '5', '6']),
|
|
18
19
|
locale: PropTypes.string,
|
|
19
20
|
messages: PropTypes.shape({
|
|
20
21
|
previous: PropTypes.string,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Box, Calendar, Text } from 'grommet';
|
|
2
|
+
import { Box, Calendar, Main, Text } from 'grommet';
|
|
3
3
|
|
|
4
4
|
// DSTCalendar has dates specifically chosen to identify issues with
|
|
5
5
|
// crossing the daylight savings time boundary (from California).
|
|
@@ -8,7 +8,7 @@ export var DSTCalendar = function DSTCalendar() {
|
|
|
8
8
|
/*#__PURE__*/
|
|
9
9
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
10
10
|
// <Grommet theme={...}>
|
|
11
|
-
React.createElement(
|
|
11
|
+
React.createElement(Main, {
|
|
12
12
|
align: "center",
|
|
13
13
|
pad: "large",
|
|
14
14
|
direction: "row",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { Box, Calendar } from 'grommet';
|
|
3
|
+
export var HeaderLevel = function HeaderLevel() {
|
|
4
|
+
var _useState = useState(),
|
|
5
|
+
date = _useState[0],
|
|
6
|
+
setDate = _useState[1];
|
|
7
|
+
var onSelect = function onSelect(nextDate) {
|
|
8
|
+
setDate(nextDate !== date ? nextDate : undefined);
|
|
9
|
+
};
|
|
10
|
+
return (
|
|
11
|
+
/*#__PURE__*/
|
|
12
|
+
// Uncomment <Grommet> lines when using outside of storybook
|
|
13
|
+
// <Grommet theme={...}>
|
|
14
|
+
React.createElement(Box, null, /*#__PURE__*/React.createElement(Box, {
|
|
15
|
+
align: "center",
|
|
16
|
+
pad: "large"
|
|
17
|
+
}, /*#__PURE__*/React.createElement(Calendar, {
|
|
18
|
+
date: date,
|
|
19
|
+
daysOfWeek: true,
|
|
20
|
+
onSelect: onSelect,
|
|
21
|
+
level: 2,
|
|
22
|
+
bounds: ['2020-09-08', '2025-12-13']
|
|
23
|
+
})))
|
|
24
|
+
// </Grommet>
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
HeaderLevel.storyName = 'Heading level';
|
|
28
|
+
export default {
|
|
29
|
+
title: 'Visualizations/Calendar/Heading level'
|
|
30
|
+
};
|
|
@@ -3,6 +3,7 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
3
3
|
import React, { useState } from 'react';
|
|
4
4
|
import { Calendar, Grid, Text } from 'grommet';
|
|
5
5
|
import { Box } from '../../Box';
|
|
6
|
+
import { Main } from '../../Main';
|
|
6
7
|
var Container = function Container(_ref) {
|
|
7
8
|
var rest = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
8
9
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
@@ -23,7 +24,7 @@ export var ShowAdjacent = function ShowAdjacent() {
|
|
|
23
24
|
/*#__PURE__*/
|
|
24
25
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
25
26
|
// <Grommet theme={...}>
|
|
26
|
-
React.createElement(Grid, {
|
|
27
|
+
React.createElement(Main, null, /*#__PURE__*/React.createElement(Grid, {
|
|
27
28
|
columns: {
|
|
28
29
|
count: 'fit',
|
|
29
30
|
size: ['small', 'auto']
|
|
@@ -52,7 +53,7 @@ export var ShowAdjacent = function ShowAdjacent() {
|
|
|
52
53
|
size: "small",
|
|
53
54
|
bounds: ['2018-09-08', '2020-12-13'],
|
|
54
55
|
showAdjacentDays: "trim"
|
|
55
|
-
})))
|
|
56
|
+
}))))
|
|
56
57
|
// </Grommet>
|
|
57
58
|
);
|
|
58
59
|
};
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { Bluetooth as Memory } from "grommet-icons/es6/icons/Bluetooth";
|
|
6
6
|
import { Storage } from "grommet-icons/es6/icons/Storage";
|
|
7
7
|
import { Trigger } from "grommet-icons/es6/icons/Trigger";
|
|
8
|
-
import { Box, Card, CardBody, CardFooter, Chart, Grid, Grommet, Text } from 'grommet';
|
|
8
|
+
import { Box, Card, CardBody, CardFooter, Chart, Grid, Grommet, Text, Main } from 'grommet';
|
|
9
9
|
var theme = {
|
|
10
10
|
themeMode: 'dark',
|
|
11
11
|
global: {
|
|
@@ -127,7 +127,7 @@ export var Clickable = function Clickable() {
|
|
|
127
127
|
return /*#__PURE__*/React.createElement(Grommet, {
|
|
128
128
|
theme: theme,
|
|
129
129
|
full: true
|
|
130
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
130
|
+
}, /*#__PURE__*/React.createElement(Main, null, /*#__PURE__*/React.createElement(Box, {
|
|
131
131
|
pad: "large",
|
|
132
132
|
height: "100%"
|
|
133
133
|
}, /*#__PURE__*/React.createElement(Grid, {
|
|
@@ -159,7 +159,7 @@ export var Clickable = function Clickable() {
|
|
|
159
159
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
160
160
|
size: "xsmall"
|
|
161
161
|
}, value.message)));
|
|
162
|
-
}))));
|
|
162
|
+
})))));
|
|
163
163
|
};
|
|
164
164
|
Clickable.parameters = {
|
|
165
165
|
chromatic: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Avatar, Box, Card, Heading, CardBody, CardHeader, Grid, Grommet, Text, Image, Stack } from 'grommet';
|
|
2
|
+
import { Avatar, Box, Card, Heading, CardBody, CardHeader, Grid, Grommet, Main, Text, Image, Stack } from 'grommet';
|
|
3
3
|
var theme = {
|
|
4
4
|
global: {
|
|
5
5
|
font: {
|
|
@@ -37,7 +37,7 @@ export var Stacked = function Stacked() {
|
|
|
37
37
|
var avatarSrc = '//s.gravatar.com/avatar/b7fb138d53ba0f573212ccce38a7c43b?s=80';
|
|
38
38
|
return /*#__PURE__*/React.createElement(Grommet, {
|
|
39
39
|
theme: theme
|
|
40
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
40
|
+
}, /*#__PURE__*/React.createElement(Main, null, /*#__PURE__*/React.createElement(Box, {
|
|
41
41
|
pad: "large"
|
|
42
42
|
}, /*#__PURE__*/React.createElement(Grid, {
|
|
43
43
|
gap: "large",
|
|
@@ -77,7 +77,7 @@ export var Stacked = function Stacked() {
|
|
|
77
77
|
}, item.location), /*#__PURE__*/React.createElement(Text, {
|
|
78
78
|
size: "small"
|
|
79
79
|
}, item.state)))));
|
|
80
|
-
}))));
|
|
80
|
+
})))));
|
|
81
81
|
};
|
|
82
82
|
export default {
|
|
83
83
|
title: 'Layout/Card/Custom Themed/Stacked'
|
|
@@ -8,7 +8,7 @@ import { ShieldSecurity } from "grommet-icons/es6/icons/ShieldSecurity";
|
|
|
8
8
|
import { Tasks } from "grommet-icons/es6/icons/Tasks";
|
|
9
9
|
import { User } from "grommet-icons/es6/icons/User";
|
|
10
10
|
import { Wifi } from "grommet-icons/es6/icons/Wifi";
|
|
11
|
-
import { Box, Card, CardBody, CardFooter, Grid, Grommet, Text } from 'grommet';
|
|
11
|
+
import { Box, Card, CardBody, CardFooter, Grid, Grommet, Main, Text } from 'grommet';
|
|
12
12
|
var data = [{
|
|
13
13
|
color: 'blue',
|
|
14
14
|
icon: /*#__PURE__*/React.createElement(Wifi, {
|
|
@@ -67,8 +67,8 @@ var theme = {
|
|
|
67
67
|
blue: '#00C8FF',
|
|
68
68
|
green: '#17EBA0',
|
|
69
69
|
teal: '#82FFF2',
|
|
70
|
-
purple: '#
|
|
71
|
-
red: '#
|
|
70
|
+
purple: '#e8c3f7',
|
|
71
|
+
red: '#f5afab',
|
|
72
72
|
orange: '#FFBC44',
|
|
73
73
|
yellow: '#FFEB59'
|
|
74
74
|
}
|
|
@@ -103,7 +103,7 @@ export var Themed = function Themed() {
|
|
|
103
103
|
return /*#__PURE__*/React.createElement(Grommet, {
|
|
104
104
|
theme: theme,
|
|
105
105
|
full: true
|
|
106
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
106
|
+
}, /*#__PURE__*/React.createElement(Main, null, /*#__PURE__*/React.createElement(Box, {
|
|
107
107
|
pad: "large"
|
|
108
108
|
}, /*#__PURE__*/React.createElement(Grid, {
|
|
109
109
|
gap: "medium",
|
|
@@ -132,7 +132,7 @@ export var Themed = function Themed() {
|
|
|
132
132
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
133
133
|
size: "xsmall"
|
|
134
134
|
}, value.message)));
|
|
135
|
-
}))));
|
|
135
|
+
})))));
|
|
136
136
|
};
|
|
137
137
|
export default {
|
|
138
138
|
title: 'Layout/Card/Custom Themed/Themed'
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Box, Card, CardBody, CardFooter, CardHeader, Text } from 'grommet';
|
|
2
|
+
import { Box, Card, CardBody, CardFooter, CardHeader, Main, Text } from 'grommet';
|
|
3
3
|
export var Simple = function Simple() {
|
|
4
4
|
return (
|
|
5
5
|
/*#__PURE__*/
|
|
6
6
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
7
7
|
// <Grommet theme={...}>
|
|
8
|
-
React.createElement(Box, {
|
|
8
|
+
React.createElement(Main, null, /*#__PURE__*/React.createElement(Box, {
|
|
9
9
|
pad: "large",
|
|
10
10
|
gap: "medium",
|
|
11
11
|
width: "medium"
|
|
@@ -24,7 +24,7 @@ export var Simple = function Simple() {
|
|
|
24
24
|
pad: "small",
|
|
25
25
|
gap: "medium",
|
|
26
26
|
background: "light-1"
|
|
27
|
-
}, /*#__PURE__*/React.createElement(Text, null, "text - random component"), /*#__PURE__*/React.createElement(Box, null, "box - random component")))
|
|
27
|
+
}, /*#__PURE__*/React.createElement(Text, null, "text - random component"), /*#__PURE__*/React.createElement(Box, null, "box - random component"))))
|
|
28
28
|
// </Grommet>
|
|
29
29
|
);
|
|
30
30
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Card, CardBody, CardFooter, Grid, Heading } from 'grommet';
|
|
2
|
+
import { Card, CardBody, CardFooter, Grid, Heading, Main } from 'grommet';
|
|
3
3
|
import { Cards } from '../Cards';
|
|
4
4
|
var data = [{
|
|
5
5
|
city: 'Boise',
|
|
@@ -18,7 +18,7 @@ var data = [{
|
|
|
18
18
|
state: 'California'
|
|
19
19
|
}];
|
|
20
20
|
export var Children = function Children() {
|
|
21
|
-
return /*#__PURE__*/React.createElement(Grid, {
|
|
21
|
+
return /*#__PURE__*/React.createElement(Main, null, /*#__PURE__*/React.createElement(Grid, {
|
|
22
22
|
pad: "large",
|
|
23
23
|
columns: [['medium', 'large']],
|
|
24
24
|
justifyContent: "center"
|
|
@@ -35,7 +35,7 @@ export var Children = function Children() {
|
|
|
35
35
|
size: "small",
|
|
36
36
|
margin: "none"
|
|
37
37
|
}, datum.city)), /*#__PURE__*/React.createElement(CardFooter, null, datum.state));
|
|
38
|
-
}));
|
|
38
|
+
})));
|
|
39
39
|
};
|
|
40
40
|
export default {
|
|
41
41
|
title: 'Visualizations/Cards/Children'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Box, Card, CardBody, CardFooter, Cards, Data, Heading } from 'grommet';
|
|
2
|
+
import { Box, Card, CardBody, CardFooter, Cards, Data, Heading, Main } from 'grommet';
|
|
3
3
|
import { DATA } from '../../DataTable/stories/data';
|
|
4
4
|
export var Example = function Example() {
|
|
5
5
|
return (
|
|
6
6
|
/*#__PURE__*/
|
|
7
7
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
8
8
|
// <Grommet theme={...}>
|
|
9
|
-
React.createElement(Box, {
|
|
9
|
+
React.createElement(Main, null, /*#__PURE__*/React.createElement(Box, {
|
|
10
10
|
pad: "large"
|
|
11
11
|
}, /*#__PURE__*/React.createElement(Data, {
|
|
12
12
|
data: DATA,
|
|
@@ -15,13 +15,14 @@ export var Example = function Example() {
|
|
|
15
15
|
size: "medium"
|
|
16
16
|
}, function (item) {
|
|
17
17
|
return /*#__PURE__*/React.createElement(Card, {
|
|
18
|
+
as: "li",
|
|
18
19
|
key: item.name,
|
|
19
20
|
pad: "small"
|
|
20
21
|
}, /*#__PURE__*/React.createElement(CardBody, null, /*#__PURE__*/React.createElement(Heading, {
|
|
21
22
|
level: 2,
|
|
22
23
|
margin: "none"
|
|
23
24
|
}, item.name)), /*#__PURE__*/React.createElement(CardFooter, null, item.location || '--'));
|
|
24
|
-
})))
|
|
25
|
+
}))))
|
|
25
26
|
// </Grommet>
|
|
26
27
|
);
|
|
27
28
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Box, Cards, Card, CardBody, CardFooter, Heading, Data, DataSort, DataSearch, DataFilters, Text, Toolbar } from 'grommet';
|
|
2
|
+
import { Box, Cards, Card, CardBody, CardFooter, Heading, Data, DataSort, DataSearch, DataFilters, Main, Text, Toolbar } from 'grommet';
|
|
3
3
|
import { DATA } from '../../DataTable/stories/data';
|
|
4
4
|
import { DataSummary } from '../../DataSummary';
|
|
5
5
|
var amountFormatter = new Intl.NumberFormat('en-US', {
|
|
@@ -12,7 +12,7 @@ export var Properties = function Properties() {
|
|
|
12
12
|
/*#__PURE__*/
|
|
13
13
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
14
14
|
// <Grommet theme={...}>
|
|
15
|
-
React.createElement(Box, {
|
|
15
|
+
React.createElement(Main, null, /*#__PURE__*/React.createElement(Box, {
|
|
16
16
|
pad: "large"
|
|
17
17
|
}, /*#__PURE__*/React.createElement(Data, {
|
|
18
18
|
data: DATA,
|
|
@@ -45,13 +45,14 @@ export var Properties = function Properties() {
|
|
|
45
45
|
size: "medium"
|
|
46
46
|
}, function (item) {
|
|
47
47
|
return /*#__PURE__*/React.createElement(Card, {
|
|
48
|
+
as: "li",
|
|
48
49
|
key: item.name,
|
|
49
50
|
pad: "small"
|
|
50
51
|
}, /*#__PURE__*/React.createElement(CardBody, null, /*#__PURE__*/React.createElement(Heading, {
|
|
51
52
|
level: 2,
|
|
52
53
|
margin: "none"
|
|
53
54
|
}, item.name), /*#__PURE__*/React.createElement(Text, null, amountFormatter.format(item.paid / 100))), /*#__PURE__*/React.createElement(CardFooter, null, item.location || '--'));
|
|
54
|
-
})))
|
|
55
|
+
}))))
|
|
55
56
|
// </Grommet>
|
|
56
57
|
);
|
|
57
58
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
-
import React, { Fragment, useCallback, useContext,
|
|
2
|
+
import React, { Fragment, useCallback, useContext, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { AnnounceContext } from '../../contexts';
|
|
4
|
+
import { AnnounceContext } from '../../contexts/AnnounceContext';
|
|
5
|
+
import { MessageContext } from '../../contexts/MessageContext';
|
|
5
6
|
import { Box } from '../Box';
|
|
6
7
|
import { Drop } from '../Drop';
|
|
7
8
|
import { Grid } from '../Grid';
|
|
@@ -25,6 +26,8 @@ var Detail = function Detail(_ref) {
|
|
|
25
26
|
renderValue = _ref.renderValue,
|
|
26
27
|
thickness = _ref.thickness;
|
|
27
28
|
var announce = useContext(AnnounceContext);
|
|
29
|
+
var _useContext = useContext(MessageContext),
|
|
30
|
+
format = _useContext.format;
|
|
28
31
|
var _useThemeValue = useThemeValue(),
|
|
29
32
|
theme = _useThemeValue.theme;
|
|
30
33
|
var _useState = useState(),
|
|
@@ -73,30 +76,48 @@ var Detail = function Detail(_ref) {
|
|
|
73
76
|
};
|
|
74
77
|
return res;
|
|
75
78
|
}, [data.length, detailIndex, horizontalProp]);
|
|
76
|
-
|
|
77
|
-
if (
|
|
78
|
-
|
|
79
|
-
var _data$
|
|
79
|
+
var getContent = useCallback(function (index) {
|
|
80
|
+
if (index !== undefined) {
|
|
81
|
+
return series.filter(function (_ref2) {
|
|
82
|
+
var _data$index;
|
|
80
83
|
var property = _ref2.property;
|
|
81
|
-
return (!activeProperty || activeProperty === property) && (data == null || (_data$
|
|
84
|
+
return (!activeProperty || activeProperty === property) && (data == null || (_data$index = data[index]) == null ? void 0 : _data$index[property]) !== undefined || axis && axis.x && axis.x.property === property;
|
|
82
85
|
}).map(function (serie) {
|
|
83
|
-
var axisValue = horizontalProp ? data[
|
|
84
|
-
return (serie.label || serie.property) + " " + renderValue(serie, axisValue);
|
|
86
|
+
var axisValue = horizontalProp ? data[index][serie.property] : index;
|
|
87
|
+
return (serie.label || serie.property) + " " + renderValue(serie, axisValue) + ".";
|
|
85
88
|
}).join(' ');
|
|
86
|
-
announce(content);
|
|
87
89
|
}
|
|
88
|
-
|
|
90
|
+
return undefined;
|
|
91
|
+
}, [activeProperty, axis, data, horizontalProp, renderValue, series]);
|
|
89
92
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Keyboard, {
|
|
90
|
-
onLeft: function onLeft() {
|
|
91
|
-
|
|
93
|
+
onLeft: function onLeft(event) {
|
|
94
|
+
event.preventDefault();
|
|
95
|
+
if (detailIndex === undefined) {
|
|
96
|
+
setDetailIndex(data.length - 1);
|
|
97
|
+
announce(getContent(data.length - 1), 'assertive');
|
|
98
|
+
} else if (detailIndex > 0) {
|
|
99
|
+
setDetailIndex(detailIndex - 1);
|
|
100
|
+
announce(getContent(detailIndex - 1), 'assertive');
|
|
101
|
+
}
|
|
92
102
|
},
|
|
93
|
-
onRight: function onRight() {
|
|
94
|
-
|
|
103
|
+
onRight: function onRight(event) {
|
|
104
|
+
event.preventDefault();
|
|
105
|
+
if (detailIndex === undefined) {
|
|
106
|
+
setDetailIndex(0);
|
|
107
|
+
announce(getContent(0), 'assertive');
|
|
108
|
+
} else if (detailIndex < data.length - 1) {
|
|
109
|
+
setDetailIndex(detailIndex + 1);
|
|
110
|
+
announce(getContent(detailIndex + 1), 'assertive');
|
|
111
|
+
}
|
|
95
112
|
}
|
|
96
113
|
}, /*#__PURE__*/React.createElement(DetailControl, _extends({
|
|
97
114
|
key: "band",
|
|
98
|
-
tabIndex: 0,
|
|
99
115
|
fill: true,
|
|
116
|
+
role: "list",
|
|
117
|
+
tabIndex: 0,
|
|
118
|
+
"aria-label": format({
|
|
119
|
+
id: 'dataChart.detailTitle'
|
|
120
|
+
}),
|
|
100
121
|
justify: "between",
|
|
101
122
|
responsive: false
|
|
102
123
|
}, horizontalProp ? {
|
|
@@ -105,7 +126,11 @@ var Detail = function Detail(_ref) {
|
|
|
105
126
|
direction: 'row',
|
|
106
127
|
pad: pad
|
|
107
128
|
}, {
|
|
108
|
-
onFocus: function onFocus() {
|
|
129
|
+
onFocus: function onFocus() {
|
|
130
|
+
announce(format({
|
|
131
|
+
id: 'dataChart.detailFocus'
|
|
132
|
+
}));
|
|
133
|
+
},
|
|
109
134
|
onBlur: function onBlur() {
|
|
110
135
|
return setDetailIndex(undefined);
|
|
111
136
|
}
|
|
@@ -117,6 +142,7 @@ var Detail = function Detail(_ref) {
|
|
|
117
142
|
// eslint-disable-next-line react/no-array-index-key
|
|
118
143
|
, _extends({
|
|
119
144
|
key: i,
|
|
145
|
+
role: "listitem",
|
|
120
146
|
responsive: false
|
|
121
147
|
}, horizontalProp ? {
|
|
122
148
|
justify: 'center',
|
|
@@ -128,15 +154,18 @@ var Detail = function Detail(_ref) {
|
|
|
128
154
|
onMouseOver: function onMouseOver(event) {
|
|
129
155
|
activeIndex.current = event.currentTarget;
|
|
130
156
|
setDetailIndex(i);
|
|
157
|
+
announce(getContent(i), 'assertive');
|
|
131
158
|
},
|
|
132
159
|
onMouseLeave: onMouseLeave,
|
|
133
160
|
onFocus: function onFocus() {},
|
|
134
161
|
onBlur: function onBlur() {}
|
|
135
|
-
}), /*#__PURE__*/React.createElement(Box
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
162
|
+
}), /*#__PURE__*/React.createElement(Box, _extends({
|
|
163
|
+
role: "img",
|
|
164
|
+
"aria-label": getContent(i)
|
|
165
|
+
// for horizontal, ref will be placed on child box so
|
|
166
|
+
// drop is restricted to drop dimensions as opposed
|
|
167
|
+
// to filling the chart width
|
|
168
|
+
}, horizontalProp ? {
|
|
140
169
|
fill: 'horizontal'
|
|
141
170
|
} : {
|
|
142
171
|
ref: ref,
|
|
@@ -152,7 +181,8 @@ var Detail = function Detail(_ref) {
|
|
|
152
181
|
target: detailRefs[detailIndex],
|
|
153
182
|
align: dropAlign,
|
|
154
183
|
plain: true,
|
|
155
|
-
onMouseLeave: onMouseLeave
|
|
184
|
+
onMouseLeave: onMouseLeave,
|
|
185
|
+
trapFocus: false
|
|
156
186
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
157
187
|
pad: "small",
|
|
158
188
|
background: {
|
|
@@ -163,9 +193,9 @@ var Detail = function Detail(_ref) {
|
|
|
163
193
|
gap: "xsmall",
|
|
164
194
|
align: "center"
|
|
165
195
|
}, series.filter(function (_ref3) {
|
|
166
|
-
var _data$
|
|
196
|
+
var _data$detailIndex;
|
|
167
197
|
var property = _ref3.property;
|
|
168
|
-
return (!activeProperty || activeProperty === property) && (data == null || (_data$
|
|
198
|
+
return (!activeProperty || activeProperty === property) && (data == null || (_data$detailIndex = data[detailIndex]) == null ? void 0 : _data$detailIndex[property]) !== undefined || axis && axis.x && axis.x.property === property;
|
|
169
199
|
}).map(function (serie) {
|
|
170
200
|
var propertyStyle = seriesStyles[serie.property];
|
|
171
201
|
var axisValue = horizontalProp ? data[detailIndex][serie.property] : detailIndex;
|
|
@@ -57,6 +57,7 @@ var Legend = function Legend(_ref) {
|
|
|
57
57
|
content = /*#__PURE__*/React.createElement(Button, {
|
|
58
58
|
key: property,
|
|
59
59
|
active: isActive,
|
|
60
|
+
"aria-pressed": isActive ? 'true' : 'false',
|
|
60
61
|
onClick: function onClick() {
|
|
61
62
|
return setActiveProperty(isActive ? undefined : property);
|
|
62
63
|
},
|
|
@@ -2,8 +2,8 @@ var _excluded = ["cellProps", "columns", "data", "disabled", "onMore", "replace"
|
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
/* eslint-disable no-underscore-dangle */
|
|
5
|
-
import React, { forwardRef, memo } from 'react';
|
|
6
|
-
import { useKeyboard } from '../../utils';
|
|
5
|
+
import React, { forwardRef, memo, useEffect } from 'react';
|
|
6
|
+
import { useKeyboard, useForwardedRef } from '../../utils';
|
|
7
7
|
import { CheckBox } from '../CheckBox';
|
|
8
8
|
import { InfiniteScroll } from '../InfiniteScroll';
|
|
9
9
|
import { TableRow } from '../TableRow';
|
|
@@ -160,6 +160,10 @@ var Body = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
160
160
|
var _React$useState2 = React.useState(),
|
|
161
161
|
lastActive = _React$useState2[0],
|
|
162
162
|
setLastActive = _React$useState2[1];
|
|
163
|
+
var _React$useState3 = React.useState(),
|
|
164
|
+
scroll = _React$useState3[0],
|
|
165
|
+
setScroll = _React$useState3[1];
|
|
166
|
+
var containerRef = useForwardedRef(ref);
|
|
163
167
|
|
|
164
168
|
// Determine if using a keyboard to cover focus behavior
|
|
165
169
|
var usingKeyboard = useKeyboard();
|
|
@@ -175,6 +179,16 @@ var Body = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
175
179
|
}
|
|
176
180
|
};
|
|
177
181
|
var clickableRow = onClickRow && active >= 0 && (!disabled || activePrimaryValue !== undefined && !disabled.includes(activePrimaryValue));
|
|
182
|
+
|
|
183
|
+
// Determine if the DataTable body is scrollable
|
|
184
|
+
useEffect(function () {
|
|
185
|
+
if (containerRef.current) {
|
|
186
|
+
var element = containerRef.current;
|
|
187
|
+
if (element.scrollHeight > element.offsetHeight) {
|
|
188
|
+
setScroll(true);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}, [containerRef]);
|
|
178
192
|
return /*#__PURE__*/React.createElement(Keyboard, {
|
|
179
193
|
onEnter: clickableRow ? function (event) {
|
|
180
194
|
if (clickableRow) {
|
|
@@ -208,9 +222,9 @@ var Body = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
208
222
|
return setActive((active != null ? active : -1) + 1);
|
|
209
223
|
} : undefined
|
|
210
224
|
}, /*#__PURE__*/React.createElement(StyledDataTableBody, _extends({
|
|
211
|
-
ref:
|
|
225
|
+
ref: containerRef,
|
|
212
226
|
size: size,
|
|
213
|
-
tabIndex: onClickRow ? 0 : undefined,
|
|
227
|
+
tabIndex: onClickRow || scroll ? 0 : undefined,
|
|
214
228
|
onFocus: function onFocus() {
|
|
215
229
|
return setActive(onFocusActive);
|
|
216
230
|
},
|
|
@@ -55,7 +55,7 @@ var LazyDrop = function LazyDrop() {
|
|
|
55
55
|
horizontal: 'small'
|
|
56
56
|
}
|
|
57
57
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
58
|
-
background: "dark-
|
|
58
|
+
background: "dark-2",
|
|
59
59
|
pad: "medium",
|
|
60
60
|
align: "center",
|
|
61
61
|
ref: topLeftTargetRef
|
|
@@ -70,7 +70,7 @@ var LazyDrop = function LazyDrop() {
|
|
|
70
70
|
vertical: pad
|
|
71
71
|
}
|
|
72
72
|
}, "align top to bottom")), /*#__PURE__*/React.createElement(Box, {
|
|
73
|
-
background: "dark-
|
|
73
|
+
background: "dark-2",
|
|
74
74
|
pad: "medium",
|
|
75
75
|
align: "center",
|
|
76
76
|
ref: topRightTargetRef
|
|
@@ -88,7 +88,7 @@ var LazyDrop = function LazyDrop() {
|
|
|
88
88
|
direction: "row",
|
|
89
89
|
justify: "between"
|
|
90
90
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
91
|
-
background: "dark-
|
|
91
|
+
background: "dark-2",
|
|
92
92
|
pad: "medium",
|
|
93
93
|
ref: bottomLeftTargetRef
|
|
94
94
|
}, "Target"), bottomLeftTargetRef.current && /*#__PURE__*/React.createElement(Drop, {
|
|
@@ -102,7 +102,7 @@ var LazyDrop = function LazyDrop() {
|
|
|
102
102
|
vertical: pad
|
|
103
103
|
}
|
|
104
104
|
}, "align bottom to top")), /*#__PURE__*/React.createElement(Box, {
|
|
105
|
-
background: "dark-
|
|
105
|
+
background: "dark-2",
|
|
106
106
|
pad: "medium",
|
|
107
107
|
ref: bottomRightTargetRef
|
|
108
108
|
}, "Target"), bottomRightTargetRef.current && /*#__PURE__*/React.createElement(Drop, {
|
|
@@ -30,19 +30,22 @@ export var AggregateValidation = function AggregateValidation() {
|
|
|
30
30
|
return console.log(nextValue);
|
|
31
31
|
}
|
|
32
32
|
}, /*#__PURE__*/React.createElement(FormField, {
|
|
33
|
+
htmlFor: "name",
|
|
33
34
|
label: "Name",
|
|
34
35
|
name: "name",
|
|
35
36
|
required: true
|
|
36
37
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
37
|
-
"aria-
|
|
38
|
+
"aria-required": true,
|
|
39
|
+
id: "name",
|
|
38
40
|
name: "name",
|
|
39
41
|
type: "name"
|
|
40
42
|
})), /*#__PURE__*/React.createElement(FormField, {
|
|
43
|
+
htmlFor: "email",
|
|
41
44
|
label: "Email",
|
|
42
45
|
name: "email",
|
|
43
46
|
required: true
|
|
44
47
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
45
|
-
|
|
48
|
+
id: "email",
|
|
46
49
|
name: "email",
|
|
47
50
|
type: "email"
|
|
48
51
|
})), message && /*#__PURE__*/React.createElement(Box, {
|