grommet 2.55.0 → 2.56.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/COPYRIGHT.md +3 -1
- package/components/Button/Button.js +7 -4
- package/components/Button/stories/CustomThemed/ChildrenPlainOption.stories.js +86 -0
- package/components/Calendar/Calendar.js +2 -1
- package/components/Cards/Cards.js +1 -2
- package/components/DateTimeInput/DateTimeInput.js +1093 -0
- package/components/DateTimeInput/README.md +2 -0
- package/components/DateTimeInput/StyledDateTimeInput.js +74 -0
- package/components/DateTimeInput/index.d.ts +47 -0
- package/components/DateTimeInput/index.js +6 -0
- package/components/DateTimeInput/propTypes.js +42 -0
- package/components/DateTimeInput/stories/CustomThemed/Custom.stories.tsx +53 -0
- package/components/DateTimeInput/stories/Form.stories.tsx +44 -0
- package/components/DateTimeInput/stories/Inline.stories.tsx +45 -0
- package/components/DateTimeInput/stories/Locale.stories.tsx +59 -0
- package/components/DateTimeInput/stories/Simple.stories.tsx +23 -0
- package/components/Form/Form.js +7 -4
- package/components/Form/index.d.ts +3 -0
- package/components/Form/stories/AggregateValidation.stories.js +6 -8
- package/components/FormField/FormField.js +164 -91
- package/components/Grommet/index.d.ts +21 -0
- package/components/Grommet/propTypes.js +26 -0
- package/components/Stepper/StepConnector.js +38 -0
- package/components/Stepper/Stepper.js +303 -0
- package/components/Stepper/StepperContext.js +43 -0
- package/components/Stepper/StepperDescription.js +26 -0
- package/components/Stepper/StepperHelperText.js +44 -0
- package/components/Stepper/StepperIndicator.js +74 -0
- package/components/Stepper/StepperLabel.js +41 -0
- package/components/Stepper/StepperStep.js +137 -0
- package/components/Stepper/StyledStepper.js +162 -0
- package/components/Stepper/index.d.ts +80 -0
- package/components/Stepper/index.js +18 -0
- package/components/Stepper/propTypes.js +35 -0
- package/components/Stepper/stories/DisabledSteps.stories.js +45 -0
- package/components/Stepper/stories/ErrorStates.stories.js +45 -0
- package/components/Stepper/stories/HorizontalSteps.stories.js +50 -0
- package/components/Stepper/stories/Interactive.stories.js +60 -0
- package/components/Stepper/stories/KeyboardNavigation.stories.js +64 -0
- package/components/Stepper/stories/NestedSubSteps.stories.js +70 -0
- package/components/Stepper/stories/ReadOnly.stories.js +43 -0
- package/components/Stepper/stories/ThemingLightDark.stories.js +58 -0
- package/components/Stepper/stories/VerticalSteps.stories.js +67 -0
- package/components/Tab/Tab.js +19 -6
- package/components/Tabs/Tabs.js +156 -22
- package/components/TimeInput/README.md +2 -0
- package/components/TimeInput/StyledTimeInput.js +73 -0
- package/components/TimeInput/TimeInput.js +692 -0
- package/components/TimeInput/TimeInputPopup.js +489 -0
- package/components/TimeInput/index.d.ts +44 -0
- package/components/TimeInput/index.js +6 -0
- package/components/TimeInput/propTypes.js +39 -0
- package/components/TimeInput/stories/Controlled.stories.tsx +29 -0
- package/components/TimeInput/stories/Disabled.stories.tsx +13 -0
- package/components/TimeInput/stories/Form.stories.tsx +38 -0
- package/components/TimeInput/stories/ReadOnly.stories.tsx +13 -0
- package/components/TimeInput/stories/Simple.stories.tsx +19 -0
- package/components/TimeInput/stories/Step.stories.tsx +14 -0
- package/components/TimeInput/stories/ThemingLightDark.stories.tsx +22 -0
- package/components/TimeInput/stories/Uncontrolled.stories.tsx +22 -0
- package/components/TimeInput/useSectionedTimeField.js +358 -0
- package/components/TimeInput/utils.js +192 -0
- package/components/Wizard/StyledWizard.js +16 -0
- package/components/Wizard/Wizard.js +770 -0
- package/components/Wizard/WizardContent.js +90 -0
- package/components/Wizard/WizardContext.js +35 -0
- package/components/Wizard/WizardFooter.js +123 -0
- package/components/Wizard/WizardHeader.js +63 -0
- package/components/Wizard/WizardProgress.js +84 -0
- package/components/Wizard/WizardStepHeader.js +55 -0
- package/components/Wizard/index.d.ts +171 -0
- package/components/Wizard/index.js +19 -0
- package/components/Wizard/propTypes.js +56 -0
- package/components/Wizard/stories/BasicLinear.stories.js +71 -0
- package/components/Wizard/stories/Branching.stories.js +96 -0
- package/components/Wizard/stories/Composable.stories.js +75 -0
- package/components/Wizard/stories/Controlled.stories.js +136 -0
- package/components/Wizard/stories/LongContent.stories.js +118 -0
- package/components/Wizard/stories/Modal.stories.js +143 -0
- package/components/Wizard/stories/NestedSubSteps.stories.js +79 -0
- package/components/Wizard/stories/Validation.stories.js +123 -0
- package/components/index.d.ts +6 -0
- package/components/index.js +24 -0
- package/es6/components/Button/Button.js +7 -4
- package/es6/components/Button/stories/CustomThemed/ChildrenPlainOption.stories.js +81 -0
- package/es6/components/Calendar/Calendar.js +2 -0
- package/es6/components/Cards/Cards.js +1 -2
- package/es6/components/DateTimeInput/DateTimeInput.js +1090 -0
- package/es6/components/DateTimeInput/README.md +2 -0
- package/es6/components/DateTimeInput/StyledDateTimeInput.js +68 -0
- package/es6/components/DateTimeInput/index.d.ts +47 -0
- package/es6/components/DateTimeInput/index.js +3 -0
- package/es6/components/DateTimeInput/propTypes.js +36 -0
- package/es6/components/DateTimeInput/stories/CustomThemed/Custom.stories.tsx +53 -0
- package/es6/components/DateTimeInput/stories/Form.stories.tsx +44 -0
- package/es6/components/DateTimeInput/stories/Inline.stories.tsx +45 -0
- package/es6/components/DateTimeInput/stories/Locale.stories.tsx +59 -0
- package/es6/components/DateTimeInput/stories/Simple.stories.tsx +23 -0
- package/es6/components/Form/Form.js +7 -3
- package/es6/components/Form/index.d.ts +3 -0
- package/es6/components/Form/stories/AggregateValidation.stories.js +6 -9
- package/es6/components/FormField/FormField.js +165 -91
- package/es6/components/Grommet/index.d.ts +21 -0
- package/es6/components/Grommet/propTypes.js +26 -0
- package/es6/components/Stepper/StepConnector.js +33 -0
- package/es6/components/Stepper/Stepper.js +301 -0
- package/es6/components/Stepper/StepperContext.js +39 -0
- package/es6/components/Stepper/StepperDescription.js +21 -0
- package/es6/components/Stepper/StepperHelperText.js +39 -0
- package/es6/components/Stepper/StepperIndicator.js +69 -0
- package/es6/components/Stepper/StepperLabel.js +36 -0
- package/es6/components/Stepper/StepperStep.js +133 -0
- package/es6/components/Stepper/StyledStepper.js +156 -0
- package/es6/components/Stepper/index.d.ts +80 -0
- package/es6/components/Stepper/index.js +6 -0
- package/es6/components/Stepper/propTypes.js +30 -0
- package/es6/components/Stepper/stories/DisabledSteps.stories.js +41 -0
- package/es6/components/Stepper/stories/ErrorStates.stories.js +41 -0
- package/es6/components/Stepper/stories/HorizontalSteps.stories.js +46 -0
- package/es6/components/Stepper/stories/Interactive.stories.js +56 -0
- package/es6/components/Stepper/stories/KeyboardNavigation.stories.js +60 -0
- package/es6/components/Stepper/stories/NestedSubSteps.stories.js +66 -0
- package/es6/components/Stepper/stories/ReadOnly.stories.js +39 -0
- package/es6/components/Stepper/stories/ThemingLightDark.stories.js +54 -0
- package/es6/components/Stepper/stories/VerticalSteps.stories.js +63 -0
- package/es6/components/Tab/Tab.js +19 -6
- package/es6/components/Tabs/Tabs.js +157 -23
- package/es6/components/TimeInput/README.md +2 -0
- package/es6/components/TimeInput/StyledTimeInput.js +68 -0
- package/es6/components/TimeInput/TimeInput.js +689 -0
- package/es6/components/TimeInput/TimeInputPopup.js +485 -0
- package/es6/components/TimeInput/index.d.ts +44 -0
- package/es6/components/TimeInput/index.js +1 -0
- package/es6/components/TimeInput/propTypes.js +33 -0
- package/es6/components/TimeInput/stories/Controlled.stories.tsx +29 -0
- package/es6/components/TimeInput/stories/Disabled.stories.tsx +13 -0
- package/es6/components/TimeInput/stories/Form.stories.tsx +38 -0
- package/es6/components/TimeInput/stories/ReadOnly.stories.tsx +13 -0
- package/es6/components/TimeInput/stories/Simple.stories.tsx +19 -0
- package/es6/components/TimeInput/stories/Step.stories.tsx +14 -0
- package/es6/components/TimeInput/stories/ThemingLightDark.stories.tsx +22 -0
- package/es6/components/TimeInput/stories/Uncontrolled.stories.tsx +22 -0
- package/es6/components/TimeInput/useSectionedTimeField.js +355 -0
- package/es6/components/TimeInput/utils.js +187 -0
- package/es6/components/Wizard/StyledWizard.js +11 -0
- package/es6/components/Wizard/Wizard.js +768 -0
- package/es6/components/Wizard/WizardContent.js +87 -0
- package/es6/components/Wizard/WizardContext.js +31 -0
- package/es6/components/Wizard/WizardFooter.js +120 -0
- package/es6/components/Wizard/WizardHeader.js +60 -0
- package/es6/components/Wizard/WizardProgress.js +80 -0
- package/es6/components/Wizard/WizardStepHeader.js +51 -0
- package/es6/components/Wizard/index.d.ts +171 -0
- package/es6/components/Wizard/index.js +7 -0
- package/es6/components/Wizard/propTypes.js +51 -0
- package/es6/components/Wizard/stories/BasicLinear.stories.js +67 -0
- package/es6/components/Wizard/stories/Branching.stories.js +93 -0
- package/es6/components/Wizard/stories/Composable.stories.js +72 -0
- package/es6/components/Wizard/stories/Controlled.stories.js +133 -0
- package/es6/components/Wizard/stories/LongContent.stories.js +115 -0
- package/es6/components/Wizard/stories/Modal.stories.js +141 -0
- package/es6/components/Wizard/stories/NestedSubSteps.stories.js +76 -0
- package/es6/components/Wizard/stories/Validation.stories.js +118 -0
- package/es6/components/index.d.ts +6 -0
- package/es6/components/index.js +6 -0
- package/es6/index.d.ts +6 -0
- package/es6/languages/default.json +48 -0
- package/es6/themes/base.d.ts +223 -0
- package/es6/themes/base.js +366 -0
- package/es6/utils/DOM.js +11 -2
- package/es6/utils/dates.js +10 -0
- package/es6/utils/sectionHelpers.js +57 -0
- package/es6/utils/useSectionedField.js +45 -0
- package/grommet.min.js +2 -1
- package/grommet.min.js.LICENSE.txt +1 -0
- package/grommet.min.js.map +1 -1
- package/index.d.ts +6 -0
- package/languages/default.json +48 -0
- package/package.json +57 -52
- package/themes/base.d.ts +223 -0
- package/themes/base.js +366 -1
- package/tools/license-header.js +2 -0
- package/utils/DOM.js +11 -2
- package/utils/dates.js +11 -1
- package/utils/sectionHelpers.js +61 -0
- package/utils/useSectionedField.js +50 -0
- package/components/TextInput/stories/CustomThemed/CustomSuggestions.stories.tsx +0 -180
- package/components/TextInput/stories/CustomThemed/Themed.stories.js +0 -79
- package/es6/components/TextInput/stories/CustomThemed/CustomSuggestions.stories.tsx +0 -180
- package/es6/components/TextInput/stories/CustomThemed/Themed.stories.js +0 -74
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
|
+
import { Box, Notification, Paragraph, TextInput, FormField } from 'grommet';
|
|
5
|
+
import { Wizard } from '../Wizard';
|
|
6
|
+
var validateEmail = function validateEmail(email) {
|
|
7
|
+
if (!email) return 'Email is required.';
|
|
8
|
+
if (!email.includes('@')) return 'Enter a valid email address.';
|
|
9
|
+
return undefined;
|
|
10
|
+
};
|
|
11
|
+
var validatePassword = function validatePassword(password) {
|
|
12
|
+
if (!password || password.length < 6) {
|
|
13
|
+
return 'Password must be at least 6 characters.';
|
|
14
|
+
}
|
|
15
|
+
return undefined;
|
|
16
|
+
};
|
|
17
|
+
var Validation = function Validation() {
|
|
18
|
+
var _useState = useState(null),
|
|
19
|
+
result = _useState[0],
|
|
20
|
+
setResult = _useState[1];
|
|
21
|
+
var steps = [{
|
|
22
|
+
id: 'email',
|
|
23
|
+
title: 'Email',
|
|
24
|
+
description: 'Enter a valid email address.',
|
|
25
|
+
skippable: true,
|
|
26
|
+
validate: function validate(value) {
|
|
27
|
+
if (value.extra !== 'please') {
|
|
28
|
+
return 'You must enter "please" in the Extra field to proceed.';
|
|
29
|
+
}
|
|
30
|
+
return undefined;
|
|
31
|
+
},
|
|
32
|
+
render: function render(/* step, api */
|
|
33
|
+
) {
|
|
34
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormField, {
|
|
35
|
+
htmlFor: "wizard-email",
|
|
36
|
+
label: "Email",
|
|
37
|
+
name: "email",
|
|
38
|
+
required: true,
|
|
39
|
+
validate: validateEmail
|
|
40
|
+
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
41
|
+
id: "wizard-email",
|
|
42
|
+
name: "email",
|
|
43
|
+
placeholder: "you@example.com"
|
|
44
|
+
})), /*#__PURE__*/React.createElement(FormField, {
|
|
45
|
+
htmlFor: "wizard-extra",
|
|
46
|
+
label: "Extra",
|
|
47
|
+
name: "extra",
|
|
48
|
+
required: true
|
|
49
|
+
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
50
|
+
id: "wizard-extra",
|
|
51
|
+
name: "extra",
|
|
52
|
+
placeholder: "Extra information"
|
|
53
|
+
})));
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
id: 'password',
|
|
57
|
+
title: 'Password',
|
|
58
|
+
description: 'Choose a password.',
|
|
59
|
+
render: function render(/* step, api */
|
|
60
|
+
) {
|
|
61
|
+
return /*#__PURE__*/React.createElement(FormField, {
|
|
62
|
+
htmlFor: "wizard-password",
|
|
63
|
+
label: "Password",
|
|
64
|
+
name: "password",
|
|
65
|
+
required: true,
|
|
66
|
+
validate: validatePassword
|
|
67
|
+
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
68
|
+
id: "wizard-password",
|
|
69
|
+
name: "password",
|
|
70
|
+
type: "password",
|
|
71
|
+
placeholder: "password"
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
}, {
|
|
75
|
+
id: 'confirm',
|
|
76
|
+
title: 'Confirm',
|
|
77
|
+
description: 'Ready to submit.',
|
|
78
|
+
render: function render(step, api) {
|
|
79
|
+
return /*#__PURE__*/React.createElement(Paragraph, null, "Confirm sign-up for ", api.formValue.email, ".");
|
|
80
|
+
}
|
|
81
|
+
}];
|
|
82
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
83
|
+
fill: true
|
|
84
|
+
}, /*#__PURE__*/React.createElement(Wizard, {
|
|
85
|
+
"aria-label": "Sign up",
|
|
86
|
+
title: "Create your account",
|
|
87
|
+
showProgress: "vertical",
|
|
88
|
+
steps: steps,
|
|
89
|
+
defaultValue: {
|
|
90
|
+
email: '',
|
|
91
|
+
password: ''
|
|
92
|
+
},
|
|
93
|
+
onComplete: function onComplete(_ref) {
|
|
94
|
+
var value = _ref.value;
|
|
95
|
+
return setResult({
|
|
96
|
+
status: 'complete',
|
|
97
|
+
value: value
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}), result && /*#__PURE__*/React.createElement(Notification, {
|
|
101
|
+
toast: {
|
|
102
|
+
position: 'top'
|
|
103
|
+
},
|
|
104
|
+
status: "normal",
|
|
105
|
+
title: "Wizard complete",
|
|
106
|
+
message: "Account created for " + result.value.email + ".",
|
|
107
|
+
onClose: function onClose() {
|
|
108
|
+
return setResult(null);
|
|
109
|
+
}
|
|
110
|
+
}));
|
|
111
|
+
};
|
|
112
|
+
Validation.args = {
|
|
113
|
+
full: true
|
|
114
|
+
};
|
|
115
|
+
export default {
|
|
116
|
+
title: 'Layout/Wizard/Validation'
|
|
117
|
+
};
|
|
118
|
+
export { Validation };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
1
3
|
export * from './Accordion';
|
|
2
4
|
export * from './AccordionPanel';
|
|
3
5
|
export * from './Anchor';
|
|
@@ -30,6 +32,7 @@ export * from './DataTableColumns';
|
|
|
30
32
|
export * from './DataTableGroupBy';
|
|
31
33
|
export * from './DataView';
|
|
32
34
|
export * from './DateInput';
|
|
35
|
+
export * from './DateTimeInput';
|
|
33
36
|
export * from './Diagram';
|
|
34
37
|
export * from './Distribution';
|
|
35
38
|
export * from './Drop';
|
|
@@ -75,6 +78,7 @@ export * from './SkipLinkTarget';
|
|
|
75
78
|
export * from './Spinner';
|
|
76
79
|
export * from './Stack';
|
|
77
80
|
export * from './StarRating';
|
|
81
|
+
export * from './Stepper';
|
|
78
82
|
export * from './Table';
|
|
79
83
|
export * from './TableBody';
|
|
80
84
|
export * from './TableCell';
|
|
@@ -87,9 +91,11 @@ export * from './Tag';
|
|
|
87
91
|
export * from './Text';
|
|
88
92
|
export * from './TextArea';
|
|
89
93
|
export * from './TextInput';
|
|
94
|
+
export * from './TimeInput';
|
|
90
95
|
export * from './ThumbsRating';
|
|
91
96
|
export * from './Tip';
|
|
92
97
|
export * from './ToggleGroup';
|
|
93
98
|
export * from './Toolbar';
|
|
94
99
|
export * from './Video';
|
|
100
|
+
export * from './Wizard';
|
|
95
101
|
export * from './WorldMap';
|
package/es6/components/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
1
3
|
export * from './Accordion';
|
|
2
4
|
export * from './AccordionPanel';
|
|
3
5
|
export * from './Anchor';
|
|
@@ -29,6 +31,7 @@ export * from './DataTableColumns';
|
|
|
29
31
|
export * from './DataTableGroupBy';
|
|
30
32
|
export * from './DataView';
|
|
31
33
|
export * from './DateInput';
|
|
34
|
+
export * from './DateTimeInput';
|
|
32
35
|
export * from './Diagram';
|
|
33
36
|
export * from './Distribution';
|
|
34
37
|
export * from './Drop';
|
|
@@ -76,6 +79,7 @@ export * from './SkipLinkTarget';
|
|
|
76
79
|
export * from './Spinner';
|
|
77
80
|
export * from './Stack';
|
|
78
81
|
export * from './StarRating';
|
|
82
|
+
export * from './Stepper';
|
|
79
83
|
export * from './Table';
|
|
80
84
|
export * from './TableBody';
|
|
81
85
|
export * from './TableCell';
|
|
@@ -88,9 +92,11 @@ export * from './Tag';
|
|
|
88
92
|
export * from './Text';
|
|
89
93
|
export * from './TextArea';
|
|
90
94
|
export * from './TextInput';
|
|
95
|
+
export * from './TimeInput';
|
|
91
96
|
export * from './Tip';
|
|
92
97
|
export * from './Toolbar';
|
|
93
98
|
export * from './ToggleGroup';
|
|
94
99
|
export * from './ThumbsRating';
|
|
95
100
|
export * from './Video';
|
|
101
|
+
export * from './Wizard';
|
|
96
102
|
export * from './WorldMap';
|
package/es6/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
1
3
|
export * from './components/Accordion';
|
|
2
4
|
export * from './components/AccordionPanel';
|
|
3
5
|
export * from './components/Anchor';
|
|
@@ -28,6 +30,7 @@ export * from './components/DataTableColumns';
|
|
|
28
30
|
export * from './components/DataTableGroupBy';
|
|
29
31
|
export * from './components/DataView';
|
|
30
32
|
export * from './components/DateInput';
|
|
33
|
+
export * from './components/DateTimeInput';
|
|
31
34
|
export * from './components/Diagram';
|
|
32
35
|
export * from './components/Distribution';
|
|
33
36
|
export * from './components/Drop';
|
|
@@ -75,6 +78,7 @@ export * from './components/SkipLinkTarget';
|
|
|
75
78
|
export * from './components/Spinner';
|
|
76
79
|
export * from './components/Stack';
|
|
77
80
|
export * from './components/StarRating';
|
|
81
|
+
export * from './components/Stepper';
|
|
78
82
|
export * from './components/Table';
|
|
79
83
|
export * from './components/TableBody';
|
|
80
84
|
export * from './components/TableCell';
|
|
@@ -87,11 +91,13 @@ export * from './components/Tag';
|
|
|
87
91
|
export * from './components/Text';
|
|
88
92
|
export * from './components/TextArea';
|
|
89
93
|
export * from './components/TextInput';
|
|
94
|
+
export * from './components/TimeInput';
|
|
90
95
|
export * from './components/ThumbsRating';
|
|
91
96
|
export * from './components/Tip';
|
|
92
97
|
export * from './components/ToggleGroup';
|
|
93
98
|
export * from './components/Toolbar';
|
|
94
99
|
export * from './components/Video';
|
|
100
|
+
export * from './components/Wizard';
|
|
95
101
|
export * from './components/WorldMap';
|
|
96
102
|
export * from './contexts/AnnounceContext';
|
|
97
103
|
export * from './contexts/ContainerTargetContext';
|
|
@@ -25,6 +25,21 @@
|
|
|
25
25
|
"exitCalendar": "Exited calendar dialog",
|
|
26
26
|
"outOfBounds": "Date is out of the allowed range. Enter a date between {start} and {end}."
|
|
27
27
|
},
|
|
28
|
+
"dateTimeInput": {
|
|
29
|
+
"inputLabel": "Date and time input",
|
|
30
|
+
"chooseDateTime": "Open date and time picker",
|
|
31
|
+
"openDrop": "Press space to open date and time picker",
|
|
32
|
+
"invalidDateTime": "Invalid date or time value",
|
|
33
|
+
"activeSection": "{section} selected",
|
|
34
|
+
"activeSectionValue": "{value}",
|
|
35
|
+
"sectionDay": "day",
|
|
36
|
+
"sectionMonth": "month",
|
|
37
|
+
"sectionYear": "year",
|
|
38
|
+
"sectionHours": "hours",
|
|
39
|
+
"sectionMinutes": "minutes",
|
|
40
|
+
"sectionSeconds": "seconds",
|
|
41
|
+
"sectionMeridiem": "meridiem"
|
|
42
|
+
},
|
|
28
43
|
"dataChart": {
|
|
29
44
|
"detailTitle": "Data chart",
|
|
30
45
|
"detailFocus": "Use the left and right arrow keys to navigate the chart data."
|
|
@@ -197,7 +212,13 @@
|
|
|
197
212
|
"skipLinks": {
|
|
198
213
|
"skipTo": "Skip To:"
|
|
199
214
|
},
|
|
215
|
+
"stepper": {
|
|
216
|
+
"progress": "Progress",
|
|
217
|
+
"step": "Step {step} of {total}: {title}"
|
|
218
|
+
},
|
|
200
219
|
"tabs": {
|
|
220
|
+
"nextTab": "Next Tab",
|
|
221
|
+
"previousTab": "Previous Tab",
|
|
201
222
|
"tabContents": "Tab Contents"
|
|
202
223
|
},
|
|
203
224
|
"tag": {
|
|
@@ -212,6 +233,20 @@
|
|
|
212
233
|
"suggestionsExist": "This input has suggestions use arrow keys to navigate",
|
|
213
234
|
"suggestionIsOpen": "Suggestions drop is open, continue to use arrow keys to navigate"
|
|
214
235
|
},
|
|
236
|
+
"timeInput": {
|
|
237
|
+
"inputLabel": "Time input",
|
|
238
|
+
"chooseTime": "Choose time",
|
|
239
|
+
"currentValue": "Current time {hour}:{minute}:{second}{period}",
|
|
240
|
+
"activeSection": "{section} selected",
|
|
241
|
+
"activeSectionValue": "{value} {section}",
|
|
242
|
+
"activePeriodValue": "{period} period",
|
|
243
|
+
"openDrop": "Press space to open time picker",
|
|
244
|
+
"invalidTime": "Invalid time value",
|
|
245
|
+
"sectionHours": "hours",
|
|
246
|
+
"sectionMinutes": "minutes",
|
|
247
|
+
"sectionSeconds": "seconds",
|
|
248
|
+
"sectionMeridiem": "meridiem"
|
|
249
|
+
},
|
|
215
250
|
"video": {
|
|
216
251
|
"audioDescriptions": "video audio description",
|
|
217
252
|
"captions": "closed captions",
|
|
@@ -225,5 +260,18 @@
|
|
|
225
260
|
"playButton": "play",
|
|
226
261
|
"volumeDown": "volume down",
|
|
227
262
|
"volumeUp": "volume up"
|
|
263
|
+
},
|
|
264
|
+
"wizard": {
|
|
265
|
+
"previous": "Previous",
|
|
266
|
+
"next": "Next",
|
|
267
|
+
"skip": "Skip",
|
|
268
|
+
"cancel": "Cancel",
|
|
269
|
+
"close": "Close",
|
|
270
|
+
"complete": "Complete",
|
|
271
|
+
"stepHeader": {
|
|
272
|
+
"counter": "Step {step} of {total}"
|
|
273
|
+
},
|
|
274
|
+
"progress": "Wizard progress",
|
|
275
|
+
"validationError": "Please complete required fields."
|
|
228
276
|
}
|
|
229
277
|
}
|
package/es6/themes/base.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
1
3
|
import {
|
|
2
4
|
FlattenInterpolation,
|
|
3
5
|
FlattenSimpleInterpolation,
|
|
@@ -297,6 +299,43 @@ type ContainerExtend = {
|
|
|
297
299
|
};
|
|
298
300
|
};
|
|
299
301
|
|
|
302
|
+
interface StepperStateType {
|
|
303
|
+
indicator?: {
|
|
304
|
+
icon?: React.ReactNode | Icon;
|
|
305
|
+
iconSize?: string;
|
|
306
|
+
background?: BackgroundType;
|
|
307
|
+
color?: ColorType;
|
|
308
|
+
border?: ColorType;
|
|
309
|
+
substep?: {
|
|
310
|
+
iconSize?: string;
|
|
311
|
+
};
|
|
312
|
+
hover?: {
|
|
313
|
+
background?: BackgroundType;
|
|
314
|
+
border?: ColorType;
|
|
315
|
+
color?: ColorType;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
label?: TextProps;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
interface StepperHelperTextStateType extends StepperStateType {
|
|
322
|
+
helperText?: {
|
|
323
|
+
color?: ColorType;
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
interface StepperStatusStateType extends StepperStateType {
|
|
328
|
+
connector?: {
|
|
329
|
+
color?: ColorType;
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
interface StepperStatusWithHelperTextStateType extends StepperStatusStateType {
|
|
334
|
+
helperText?: {
|
|
335
|
+
color?: ColorType;
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
|
|
300
339
|
export interface ThemeType {
|
|
301
340
|
global?: {
|
|
302
341
|
active?: {
|
|
@@ -988,6 +1027,36 @@ export interface ThemeType {
|
|
|
988
1027
|
size?: string;
|
|
989
1028
|
};
|
|
990
1029
|
};
|
|
1030
|
+
dateTimeInput?: {
|
|
1031
|
+
button?: {
|
|
1032
|
+
margin?: string | object;
|
|
1033
|
+
};
|
|
1034
|
+
container?: {
|
|
1035
|
+
round?: RoundType;
|
|
1036
|
+
};
|
|
1037
|
+
active?: {
|
|
1038
|
+
background?: ColorType;
|
|
1039
|
+
pad?: string;
|
|
1040
|
+
indicator?: {
|
|
1041
|
+
color?: ColorType;
|
|
1042
|
+
size?: string;
|
|
1043
|
+
};
|
|
1044
|
+
};
|
|
1045
|
+
drop?: {
|
|
1046
|
+
pad?: PadType;
|
|
1047
|
+
gap?: GapType;
|
|
1048
|
+
border?: {
|
|
1049
|
+
color?: ColorType;
|
|
1050
|
+
size?: string;
|
|
1051
|
+
};
|
|
1052
|
+
};
|
|
1053
|
+
icon?: {
|
|
1054
|
+
calendar?: React.ReactNode | Icon;
|
|
1055
|
+
};
|
|
1056
|
+
separator?: {
|
|
1057
|
+
pad?: GapType;
|
|
1058
|
+
};
|
|
1059
|
+
};
|
|
991
1060
|
dataTable?: {
|
|
992
1061
|
body?: {
|
|
993
1062
|
extend?: ExtendType;
|
|
@@ -1221,6 +1290,7 @@ export interface ThemeType {
|
|
|
1221
1290
|
maskedInput?: ContainerExtend;
|
|
1222
1291
|
selectMultiple?: ContainerExtend;
|
|
1223
1292
|
dateInput?: ContainerExtend;
|
|
1293
|
+
timeInput?: ContainerExtend;
|
|
1224
1294
|
fileInput?: ContainerExtend;
|
|
1225
1295
|
radioButton?: ContainerExtend;
|
|
1226
1296
|
radioButtonGroup?: ContainerExtend;
|
|
@@ -2100,6 +2170,58 @@ export interface ThemeType {
|
|
|
2100
2170
|
large?: number;
|
|
2101
2171
|
};
|
|
2102
2172
|
};
|
|
2173
|
+
stepper?: {
|
|
2174
|
+
indicator?: {
|
|
2175
|
+
size?: string;
|
|
2176
|
+
border?: {
|
|
2177
|
+
width?: string;
|
|
2178
|
+
};
|
|
2179
|
+
};
|
|
2180
|
+
label?: {
|
|
2181
|
+
size?: string;
|
|
2182
|
+
substep?: {
|
|
2183
|
+
size?: string;
|
|
2184
|
+
};
|
|
2185
|
+
};
|
|
2186
|
+
connector?: {
|
|
2187
|
+
stroke?: {
|
|
2188
|
+
width?: string;
|
|
2189
|
+
};
|
|
2190
|
+
};
|
|
2191
|
+
description?: TextProps;
|
|
2192
|
+
helperText?: {
|
|
2193
|
+
size?: string;
|
|
2194
|
+
color?: ColorType;
|
|
2195
|
+
};
|
|
2196
|
+
button?: {
|
|
2197
|
+
pad?: EdgeSizeType;
|
|
2198
|
+
};
|
|
2199
|
+
horizontal?: {
|
|
2200
|
+
connector?: {
|
|
2201
|
+
margin?: EdgeSizeType;
|
|
2202
|
+
};
|
|
2203
|
+
button?: {
|
|
2204
|
+
gap?: GapType;
|
|
2205
|
+
};
|
|
2206
|
+
};
|
|
2207
|
+
vertical?: {
|
|
2208
|
+
button?: {
|
|
2209
|
+
gap?: GapType;
|
|
2210
|
+
};
|
|
2211
|
+
};
|
|
2212
|
+
hover?: {
|
|
2213
|
+
background?: BackgroundType;
|
|
2214
|
+
border?: ColorType;
|
|
2215
|
+
};
|
|
2216
|
+
// States: [component].[state].[element].[property]
|
|
2217
|
+
pending?: StepperStatusStateType;
|
|
2218
|
+
current?: StepperStateType;
|
|
2219
|
+
currentCompleted?: StepperStateType;
|
|
2220
|
+
completed?: StepperStatusStateType;
|
|
2221
|
+
error?: StepperStatusWithHelperTextStateType;
|
|
2222
|
+
currentError?: StepperHelperTextStateType;
|
|
2223
|
+
disabled?: StepperStatusWithHelperTextStateType;
|
|
2224
|
+
};
|
|
2103
2225
|
table?: {
|
|
2104
2226
|
caption?: {
|
|
2105
2227
|
margin?: MarginType;
|
|
@@ -2269,6 +2391,40 @@ export interface ThemeType {
|
|
|
2269
2391
|
extend?: ExtendType;
|
|
2270
2392
|
};
|
|
2271
2393
|
};
|
|
2394
|
+
timeInput?: {
|
|
2395
|
+
button?: {
|
|
2396
|
+
margin?: MarginType;
|
|
2397
|
+
};
|
|
2398
|
+
container?: {
|
|
2399
|
+
round?: RoundType;
|
|
2400
|
+
};
|
|
2401
|
+
active?: {
|
|
2402
|
+
background?: ColorType;
|
|
2403
|
+
pad?: string;
|
|
2404
|
+
indicator?: {
|
|
2405
|
+
color?: ColorType;
|
|
2406
|
+
size?: string;
|
|
2407
|
+
};
|
|
2408
|
+
};
|
|
2409
|
+
drop?: {
|
|
2410
|
+
option?: {
|
|
2411
|
+
background?: ColorType;
|
|
2412
|
+
hover?: {
|
|
2413
|
+
background?: ColorType;
|
|
2414
|
+
};
|
|
2415
|
+
selected?: {
|
|
2416
|
+
background?: ColorType;
|
|
2417
|
+
color?: ColorType;
|
|
2418
|
+
hover?: {
|
|
2419
|
+
background?: ColorType;
|
|
2420
|
+
};
|
|
2421
|
+
};
|
|
2422
|
+
};
|
|
2423
|
+
};
|
|
2424
|
+
icon?: {
|
|
2425
|
+
clock?: React.ReactNode | Icon;
|
|
2426
|
+
};
|
|
2427
|
+
};
|
|
2272
2428
|
tip?: {
|
|
2273
2429
|
content?: BoxProps;
|
|
2274
2430
|
drop?: DropProps;
|
|
@@ -2328,6 +2484,73 @@ export interface ThemeType {
|
|
|
2328
2484
|
};
|
|
2329
2485
|
};
|
|
2330
2486
|
};
|
|
2487
|
+
wizard?: {
|
|
2488
|
+
container?: {
|
|
2489
|
+
gap?: GapType;
|
|
2490
|
+
background?: BackgroundType;
|
|
2491
|
+
};
|
|
2492
|
+
body?: {
|
|
2493
|
+
pad?: PadType;
|
|
2494
|
+
gap?: GridGapType;
|
|
2495
|
+
};
|
|
2496
|
+
header?: {
|
|
2497
|
+
pad?: PadType;
|
|
2498
|
+
background?: BackgroundType;
|
|
2499
|
+
title?: {
|
|
2500
|
+
size?: string;
|
|
2501
|
+
};
|
|
2502
|
+
close?: {
|
|
2503
|
+
icon?: React.ReactNode | Icon;
|
|
2504
|
+
};
|
|
2505
|
+
};
|
|
2506
|
+
progress?: {
|
|
2507
|
+
horizontal?: {
|
|
2508
|
+
pad?: PadType;
|
|
2509
|
+
};
|
|
2510
|
+
vertical?: {
|
|
2511
|
+
width?: string;
|
|
2512
|
+
pad?: PadType;
|
|
2513
|
+
};
|
|
2514
|
+
};
|
|
2515
|
+
stepHeader?: {
|
|
2516
|
+
pad?: PadType;
|
|
2517
|
+
gap?: GapType;
|
|
2518
|
+
counter?: {
|
|
2519
|
+
size?: string;
|
|
2520
|
+
color?: ColorType;
|
|
2521
|
+
};
|
|
2522
|
+
title?: {
|
|
2523
|
+
size?: string;
|
|
2524
|
+
margin?: MarginType;
|
|
2525
|
+
};
|
|
2526
|
+
description?: {
|
|
2527
|
+
size?: string;
|
|
2528
|
+
color?: ColorType;
|
|
2529
|
+
margin?: MarginType;
|
|
2530
|
+
};
|
|
2531
|
+
};
|
|
2532
|
+
content?: {
|
|
2533
|
+
pad?: PadType;
|
|
2534
|
+
gap?: GapType;
|
|
2535
|
+
background?: BackgroundType;
|
|
2536
|
+
round?: RoundType;
|
|
2537
|
+
margin?: MarginType;
|
|
2538
|
+
};
|
|
2539
|
+
footer?: {
|
|
2540
|
+
background?: BackgroundType;
|
|
2541
|
+
border?: BorderType;
|
|
2542
|
+
gap?: GridGapType;
|
|
2543
|
+
pad?: PadType;
|
|
2544
|
+
justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'stretch';
|
|
2545
|
+
button?: {
|
|
2546
|
+
next?: { icon?: React.ReactNode | Icon };
|
|
2547
|
+
complete?: { icon?: React.ReactNode | Icon };
|
|
2548
|
+
previous?: { icon?: React.ReactNode | Icon };
|
|
2549
|
+
cancel?: { icon?: React.ReactNode | Icon };
|
|
2550
|
+
skip?: { icon?: React.ReactNode | Icon };
|
|
2551
|
+
};
|
|
2552
|
+
};
|
|
2553
|
+
};
|
|
2331
2554
|
worldMap?: {
|
|
2332
2555
|
color?: ColorType;
|
|
2333
2556
|
continent?: {
|