grommet 2.58.0 → 2.59.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.stories.js +2 -1
- package/components/Accordion/Accordion.js +2 -1
- package/components/Accordion/stories/CustomHeader.stories.js +2 -1
- package/components/AccordionPanel/AccordionPanel.js +2 -1
- package/components/Anchor/Anchor.js +2 -1
- package/components/Anchor/StyledAnchor.js +2 -1
- package/components/Avatar/Avatar.js +2 -1
- package/components/Box/Box.js +2 -1
- package/components/Box/ResponsiveContainerProvider.js +2 -1
- package/components/Box/StyledBox.js +2 -1
- package/components/Box/stories/ResponsiveContainer.stories.js +2 -1
- package/components/Button/Badge.js +2 -1
- package/components/Button/BusyAnimation.js +2 -1
- package/components/Button/Button.js +2 -1
- package/components/Button/StyledButton.js +2 -1
- package/components/Button/StyledButtonKind.js +2 -1
- package/components/Button/stories/Busy.stories.js +2 -1
- package/components/Calendar/Calendar.js +2 -1
- package/components/Calendar/StyledCalendar.js +2 -1
- package/components/Calendar/stories/ActiveDate.stories.js +2 -1
- package/components/Calendar/stories/CustomDay.stories.js +2 -1
- package/components/Calendar/stories/CustomHeader.stories.js +2 -1
- package/components/Calendar/stories/CustomThemed/CustomSizeHeading.stories.js +2 -1
- package/components/Calendar/stories/Dual.stories.js +2 -1
- package/components/Calendar/stories/HeaderLevel.stories.js +2 -1
- package/components/Calendar/stories/Multiple.stories.js +2 -1
- package/components/Calendar/stories/ShowAdjacentDays.stories.js +2 -1
- package/components/Calendar/stories/Simple.stories.js +2 -1
- package/components/Card/Card.js +2 -1
- package/components/Cards/Cards.js +2 -1
- package/components/Cards/index.d.ts +2 -16
- package/components/Carousel/Carousel.js +2 -1
- package/components/Carousel/CarouselChild.js +2 -1
- package/components/Carousel/StyledCarousel.js +2 -1
- package/components/Chart/Chart.js +2 -1
- package/components/Chart/StyledChart.js +2 -1
- package/components/Chart/stories/Rich.stories.js +2 -1
- package/components/Chart/stories/Scan.stories.js +2 -1
- package/components/Chart/stories/Window.stories.js +2 -1
- package/components/Chart/stories/Zoom.stories.js +2 -1
- package/components/CheckBox/CheckBox.js +2 -1
- package/components/CheckBox/README.md +95 -0
- package/components/CheckBox/StyledCheckBox.js +104 -16
- package/components/CheckBox/stories/CustomThemed/Appearance.stories.tsx +160 -0
- package/components/CheckBox/stories/CustomThemed/Custom.stories.js +2 -1
- package/components/CheckBox/stories/CustomThemed/CustomToggle.stories.js +2 -1
- package/components/CheckBox/stories/Indeterminate.stories.js +2 -1
- package/components/CheckBox/stories/NoLabel.stories.js +2 -1
- package/components/CheckBox/stories/Simple.stories.js +2 -1
- package/components/CheckBox/stories/WithStickyDiv.stories.js +2 -1
- package/components/CheckBoxGroup/CheckBoxGroup.js +2 -1
- package/components/CheckBoxGroup/stories/Children.stories.js +2 -1
- package/components/CheckBoxGroup/stories/InitialValues.stories.js +2 -1
- package/components/Clock/Analog.js +2 -1
- package/components/Clock/Clock.js +2 -1
- package/components/Clock/Digital.js +2 -1
- package/components/Clock/StyledClock.js +2 -1
- package/components/Collapsible/Collapsible.js +2 -1
- package/components/Data/Data.js +2 -1
- package/components/Data/DataForm.js +2 -1
- package/components/Data/stories/Infinite.stories.js +2 -1
- package/components/Data/stories/Inline.stories.js +2 -1
- package/components/Data/stories/OnSelect.stories.js +2 -1
- package/components/Data/stories/SpaceX.stories.js +2 -1
- package/components/Data/stories/StarWars.stories.js +2 -1
- package/components/DataChart/DataChart.js +2 -1
- package/components/DataChart/Detail.js +2 -1
- package/components/DataChart/Legend.js +2 -1
- package/components/DataChart/XAxis.js +2 -1
- package/components/DataChart/XGuide.js +2 -1
- package/components/DataChart/YAxis.js +2 -1
- package/components/DataChart/YGuide.js +2 -1
- package/components/DataChart/stories/Prediction.stories.js +2 -1
- package/components/DataClearFilters/DataClearFilters.js +2 -1
- package/components/DataClearFilters/stories/Simple.stories.js +2 -1
- package/components/DataFilter/DataFilter.js +2 -1
- package/components/DataFilters/DataFilters.js +2 -1
- package/components/DataSearch/DataSearch.js +2 -1
- package/components/DataSort/DataSort.js +2 -1
- package/components/DataSummary/DataSummary.js +2 -1
- package/components/DataTable/Body.js +2 -1
- package/components/DataTable/Cell.js +2 -1
- package/components/DataTable/DataTable.js +2 -1
- package/components/DataTable/ExpanderCell.js +2 -1
- package/components/DataTable/Footer.js +2 -1
- package/components/DataTable/GroupedBody.js +2 -1
- package/components/DataTable/Header.js +2 -1
- package/components/DataTable/PlaceholderBody.js +2 -1
- package/components/DataTable/Resizer.js +2 -1
- package/components/DataTable/Searcher.js +2 -1
- package/components/DataTable/StyledDataTable.js +2 -1
- package/components/DataTable/stories/ControlledGrouped.stories.js +2 -1
- package/components/DataTable/stories/OnUpdate.stories.js +2 -1
- package/components/DataTable/stories/SpaceX.stories.js +2 -1
- package/components/DataTable/stories/SpaceXUngrouped.stories.js +2 -1
- package/components/DataTable/stories/rowDetails.stories.js +2 -1
- package/components/DataTableColumns/DataTableColumns.js +2 -1
- package/components/DataTableGroupBy/DataTableGroupBy.js +2 -1
- package/components/DataView/DataView.js +2 -1
- package/components/DateInput/DateInput.js +11 -4
- package/components/DateInput/stories/FormatInline.stories.js +2 -1
- package/components/DateTimeInput/DateTimeInput.js +4 -1
- package/components/DateTimeInput/StyledDateTimeInput.js +11 -2
- package/components/Diagram/Diagram.js +2 -1
- package/components/Diagram/StyledDiagram.js +2 -1
- package/components/Diagram/stories/Animated.stories.js +2 -1
- package/components/Diagram/stories/Progressing.stories.js +2 -1
- package/components/Drop/Drop.js +2 -1
- package/components/Drop/DropContainer.js +2 -1
- package/components/Drop/StyledDrop.js +2 -1
- package/components/Drop/stories/CustomThemed/Lazy.stories.js +2 -1
- package/components/Drop/stories/CustomThemed/Themed.stories.js +2 -1
- package/components/Drop/stories/Inline.stories.js +2 -1
- package/components/Drop/stories/Meter.stories.js +2 -1
- package/components/Drop/stories/Multiple.stories.js +2 -1
- package/components/Drop/stories/Overflow.stories.js +2 -1
- package/components/Drop/stories/Plain.stories.js +2 -1
- package/components/Drop/stories/Progressive.stories.js +2 -1
- package/components/Drop/stories/Simple.stories.js +2 -1
- package/components/Drop/stories/Styled.stories.js +2 -1
- package/components/DropButton/DropButton.js +2 -1
- package/components/FileInput/FileInput.js +78 -21
- package/components/FileInput/README.md +5 -0
- package/components/FocusedContainer.js +2 -1
- package/components/Form/Form.js +2 -1
- package/components/Form/FormContext.js +2 -1
- package/components/Form/stories/ArrayOfFormFields.stories.js +2 -1
- package/components/Form/stories/Controlled.stories.js +2 -1
- package/components/Form/stories/ControlledInput.stories.js +2 -1
- package/components/Form/stories/ControlledInputLazy.stories.js +2 -1
- package/components/Form/stories/ControlledLazy.stories.js +2 -1
- package/components/Form/stories/CustomThemed/FieldBorderPosition.stories.js +2 -1
- package/components/Form/stories/CustomThemed/FieldCustomStates.stories.js +2 -1
- package/components/Form/stories/DynamicFields.stories.js +2 -1
- package/components/Form/stories/FieldStates.stories.js +2 -1
- package/components/Form/stories/SolicitedFeedback.stories.js +2 -1
- package/components/Form/stories/UnsolicitedFeedback.stories.js +2 -1
- package/components/Form/stories/ValidateOnChange.stories.js +2 -1
- package/components/Form/stories/ValidateOnMount.stories.js +2 -1
- package/components/FormField/FormField.js +207 -69
- package/components/FormField/README.md +56 -1
- package/components/FormField/stories/CustomThemed/Appearance.stories.tsx +630 -0
- package/components/FormField/stories/Simple.stories.js +2 -1
- package/components/Grid/Grid.js +2 -1
- package/components/Grid/StyledGrid.js +2 -1
- package/components/Grid/stories/ResponsiveCards.stories.js +2 -1
- package/components/Grommet/Grommet.js +2 -1
- package/components/Grommet/StyledGrommet.js +2 -1
- package/components/Grommet/index.d.ts +4 -0
- package/components/Grommet/propTypes.js +4 -1
- package/components/Header/Header.js +2 -1
- package/components/Header/stories/Sticky.stories.js +2 -1
- package/components/Heading/Heading.js +2 -1
- package/components/Heading/HeadingSkeleton.js +2 -1
- package/components/Heading/StyledHeading.js +2 -1
- package/components/Image/Image.js +2 -1
- package/components/Image/StyledImage.js +2 -1
- package/components/InfiniteScroll/InfiniteScroll.js +2 -1
- package/components/Layer/Layer.js +2 -1
- package/components/Layer/LayerContainer.js +2 -1
- package/components/Layer/StyledLayer.js +2 -1
- package/components/List/List.js +2 -1
- package/components/List/stories/Order.stories.js +2 -1
- package/components/List/stories/Pinned.stories.js +2 -1
- package/components/Markdown/Markdown.js +2 -1
- package/components/MaskedInput/MaskedInput.js +2 -1
- package/components/Menu/Menu.js +2 -1
- package/components/Meter/Bar.js +2 -1
- package/components/Meter/Circle.js +2 -1
- package/components/Meter/Meter.js +2 -1
- package/components/Meter/StyledMeter.js +2 -1
- package/components/Meter/stories/Circle.stories.js +2 -1
- package/components/Meter/stories/VerticalBarMultiple.stories.js +2 -1
- package/components/NameValueList/NameValueList.js +2 -1
- package/components/NameValuePair/NameValuePair.js +2 -1
- package/components/Nav/stories/CustomThemed/JustifySidebar.stories.js +2 -1
- package/components/Nav/stories/Sidebar.stories.js +2 -1
- package/components/Notification/Notification.js +2 -1
- package/components/Notification/stories/Global.stories.js +2 -1
- package/components/Notification/stories/Title.stories.js +2 -1
- package/components/Notification/stories/TitleAndMessage.stories.js +2 -1
- package/components/Page/Page.js +2 -1
- package/components/Page/stories/PageNotificaton.stories.js +2 -1
- package/components/PageContent/PageContent.js +2 -1
- package/components/PageHeader/PageHeader.js +2 -1
- package/components/PageHeader/stories/MultipleActions.stories.js +2 -1
- package/components/Pagination/Pagination.js +2 -1
- package/components/Pagination/PaginationStep.js +2 -1
- package/components/Pagination/PaginationSummary.js +2 -1
- package/components/Pagination/stories/Grid.stories.js +2 -1
- package/components/Paragraph/Paragraph.js +2 -1
- package/components/Paragraph/ParagraphSkeleton.js +2 -1
- package/components/Paragraph/StyledParagraph.js +2 -1
- package/components/RadioButton/README.md +93 -1
- package/components/RadioButton/RadioButton.js +13 -5
- package/components/RadioButton/StyledRadioButton.js +103 -10
- package/components/RadioButton/stories/CustomThemed/Appearance.stories.tsx +190 -0
- package/components/RadioButtonGroup/RadioButtonGroup.js +2 -1
- package/components/RadioButtonGroup/stories/Children.stories.js +2 -1
- package/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.stories.js +2 -1
- package/components/RadioButtonGroup/stories/Disabled.stories.js +2 -1
- package/components/RangeInput/RangeInput.js +2 -1
- package/components/RangeInput/StyledRangeInput.js +2 -1
- package/components/RangeInput/stories/CustomThemed/Bounds.stories.js +2 -1
- package/components/RangeSelector/EdgeControl.js +2 -1
- package/components/RangeSelector/RangeSelector.js +2 -1
- package/components/RangeSelector/index.d.ts +1 -10
- package/components/RangeSelector/stories/Basic.stories.js +2 -1
- package/components/RangeSelector/stories/CustomThemed/Custom.stories.js +2 -1
- package/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.stories.js +2 -1
- package/components/RangeSelector/stories/Label.stories.js +2 -1
- package/components/RangeSelector/stories/Simple.stories.js +2 -1
- package/components/RangeSelector/stories/Step.stories.js +2 -1
- package/components/RangeSelector/stories/Thin.stories.js +2 -1
- package/components/RangeSelector/stories/Vertical.stories.js +2 -1
- package/components/RoutedAnchor/RoutedAnchor.js +2 -1
- package/components/RoutedButton/RoutedButton.js +2 -1
- package/components/Select/DefaultSelectTextInput.js +2 -1
- package/components/Select/Select.js +2 -1
- package/components/Select/SelectContainer.js +2 -1
- package/components/Select/StyledSelect.js +11 -3
- package/components/Select/stories/ChildrenRender.stories.js +2 -1
- package/components/Select/stories/Clear.stories.js +2 -1
- package/components/Select/stories/Controlled.stories.js +2 -1
- package/components/Select/stories/CustomThemed/CustomSearch.stories.js +2 -1
- package/components/Select/stories/Disabled.stories.js +2 -1
- package/components/Select/stories/InsideFormField.stories.js +2 -1
- package/components/Select/stories/Multiple.stories.js +2 -1
- package/components/Select/stories/ObjectOptions.stories.js +2 -1
- package/components/Select/stories/Search.stories.js +2 -1
- package/components/Select/stories/Simple.stories.js +2 -1
- package/components/Select/stories/ValueLabel.stories.js +2 -1
- package/components/Select/stories/components/SearchBorderBox.js +2 -1
- package/components/Select/stories/components/SearchInput.js +2 -1
- package/components/Select/utils.js +2 -1
- package/components/SelectMultiple/SelectMultiple.js +10 -4
- package/components/SelectMultiple/SelectMultipleContainer.js +2 -1
- package/components/SelectMultiple/SelectMultipleValue.js +2 -1
- package/components/SelectMultiple/SelectionSummary.js +2 -1
- package/components/SelectMultiple/stories/CustomMessages.stories.js +2 -1
- package/components/SelectMultiple/stories/Default.stories.js +2 -1
- package/components/SelectMultiple/stories/Disabled.stories.js +2 -1
- package/components/SelectMultiple/stories/FormField.stories.js +2 -1
- package/components/SelectMultiple/stories/Help.stories.js +2 -1
- package/components/SelectMultiple/stories/Limited.stories.js +2 -1
- package/components/SelectMultiple/stories/ObjectOptions.stories.js +2 -1
- package/components/SelectMultiple/stories/ShowSelectedInline.stories.js +2 -1
- package/components/Skeleton/Skeleton.js +2 -1
- package/components/Skeleton/SkeletonContext.js +2 -1
- package/components/Skeleton/stories/CustomThemed/Custom.stories.js +2 -1
- package/components/Skeleton/stories/GridContainer.stories.js +2 -1
- package/components/SkipLink/SkipLink.js +2 -1
- package/components/SkipLinks/SkipLinks.js +2 -1
- package/components/Spinner/Spinner.js +2 -1
- package/components/Spinner/stories/Animation.stories.js +2 -1
- package/components/Spinner/stories/Announced.stories.js +2 -1
- package/components/Stack/Stack.js +2 -1
- package/components/Stack/StyledStack.js +2 -1
- package/components/StarRating/StarRating.js +2 -1
- package/components/Stepper/Stepper.js +138 -101
- package/components/Stepper/StepperContext.js +5 -4
- package/components/Stepper/StepperDescription.js +6 -8
- package/components/Stepper/StepperHelperText.js +13 -15
- package/components/Stepper/StepperIndicator.js +37 -34
- package/components/Stepper/StepperLabel.js +11 -23
- package/components/Stepper/StepperStep.js +139 -82
- package/components/Stepper/StyledStepper.js +168 -115
- package/components/Stepper/index.d.ts +25 -13
- package/components/Stepper/index.js +5 -1
- package/components/Stepper/propTypes.js +3 -0
- package/components/Stepper/stories/Children.stories.tsx +73 -0
- package/components/Stepper/stories/CustomThemed.stories.tsx +301 -0
- package/components/Stepper/stories/CustomThemedHpe.stories.tsx +328 -0
- package/components/Stepper/stories/DisabledSteps.stories.js +2 -1
- package/components/Stepper/stories/ErrorStates.stories.js +2 -1
- package/components/Stepper/stories/HorizontalSteps.stories.js +2 -1
- package/components/Stepper/stories/Interactive.stories.js +2 -1
- package/components/Stepper/stories/KeyboardNavigation.stories.js +2 -1
- package/components/Stepper/stories/NestedSubSteps.stories.js +2 -1
- package/components/Stepper/stories/ThemingLightDark.stories.js +2 -1
- package/components/Stepper/stories/VerticalSteps.stories.js +2 -1
- package/components/Stepper/utils.js +54 -0
- package/components/Tab/StyledTab.js +2 -1
- package/components/Tab/Tab.js +2 -1
- package/components/Table/StyledTable.js +2 -1
- package/components/Table/Table.js +2 -1
- package/components/Table/stories/InfiniteScrollInTable.stories.js +2 -1
- package/components/TableBody/TableBody.js +2 -1
- package/components/TableCell/TableCell.js +2 -1
- package/components/TableFooter/TableFooter.js +2 -1
- package/components/TableHeader/TableHeader.js +2 -1
- package/components/TableRow/TableRow.js +2 -1
- package/components/Tabs/StyledTabs.js +2 -1
- package/components/Tabs/Tabs.js +2 -1
- package/components/Tabs/stories/CustomThemed/States.stories.js +2 -1
- package/components/Tabs/stories/Responsive.stories.js +2 -1
- package/components/Tag/Tag.js +2 -1
- package/components/Text/StyledText.js +2 -1
- package/components/Text/Text.js +2 -1
- package/components/Text/TextSkeleton.js +2 -1
- package/components/TextArea/StyledTextArea.js +2 -1
- package/components/TextArea/TextArea.js +2 -1
- package/components/TextArea/stories/CustomThemed/Themed.stories.js +2 -1
- package/components/TextArea/stories/InsideFormField.stories.js +2 -1
- package/components/TextArea/stories/NonResizable.stories.js +2 -1
- package/components/TextArea/stories/Simple.stories.js +2 -1
- package/components/TextInput/CopyButton.js +2 -1
- package/components/TextInput/README.md +29 -1
- package/components/TextInput/StyledTextInput.js +20 -6
- package/components/TextInput/TextInput.js +103 -26
- package/components/TextInput/index.d.ts +2 -0
- package/components/TextInput/propTypes.js +2 -0
- package/components/TextInput/stories/Clear.stories.tsx +68 -0
- package/components/TextInput/stories/ClearFormField.stories.tsx +45 -0
- package/components/TextInput/stories/InsideFormField.stories.js +2 -1
- package/components/TimeInput/StyledTimeInput.js +28 -18
- package/components/TimeInput/TimeInput.js +4 -1
- package/components/TimeInput/TimeInputPopup.js +2 -1
- package/components/TimeInput/stories/Inline.stories.tsx +28 -0
- package/components/Tip/Tip.js +2 -1
- package/components/Tip/stories/HeaderActions.stories.js +2 -1
- package/components/ToggleGroup/ToggleGroup.js +2 -1
- package/components/ToggleGroup/stories/Controlled.stories.js +2 -1
- package/components/Toolbar/Toolbar.js +2 -1
- package/components/Video/StyledVideo.js +2 -1
- package/components/Video/Video.js +2 -1
- package/components/Wizard/Wizard.js +13 -2
- package/components/Wizard/WizardContent.js +2 -1
- package/components/Wizard/WizardContext.js +2 -1
- package/components/Wizard/WizardProgress.js +1 -4
- package/components/Wizard/stories/BasicLinear.stories.js +2 -1
- package/components/Wizard/stories/Branching.stories.js +2 -1
- package/components/Wizard/stories/ClickableSteps.stories.js +2 -1
- package/components/Wizard/stories/Composable.stories.js +2 -1
- package/components/Wizard/stories/Controlled.stories.js +2 -1
- package/components/Wizard/stories/ExternalForm.stories.js +2 -1
- package/components/Wizard/stories/LongContent.stories.js +2 -1
- package/components/Wizard/stories/Modal.stories.js +2 -1
- package/components/Wizard/stories/NestedSubSteps.stories.js +2 -1
- package/components/Wizard/stories/NonClosableHeader.stories.js +2 -1
- package/components/Wizard/stories/ProgressiveSubSteps.stories.tsx +209 -0
- package/components/Wizard/stories/Validation.stories.js +2 -1
- package/components/WorldMap/WorldMap.js +2 -1
- package/contexts/AnalyticsContext/AnalyticsContext.js +2 -1
- package/contexts/AnnounceContext/stories/Polite.stories.js +2 -1
- package/contexts/RootsContext.js +2 -1
- package/contexts/ThemeContext/stories/ThemeContextExtend.stories.js +2 -1
- package/es6/components/Cards/index.d.ts +2 -16
- package/es6/components/CheckBox/README.md +95 -0
- package/es6/components/CheckBox/StyledCheckBox.js +103 -14
- package/es6/components/CheckBox/stories/CustomThemed/Appearance.stories.tsx +160 -0
- package/es6/components/DateInput/DateInput.js +10 -3
- package/es6/components/DateTimeInput/DateTimeInput.js +2 -0
- package/es6/components/DateTimeInput/StyledDateTimeInput.js +10 -2
- package/es6/components/FileInput/FileInput.js +77 -20
- package/es6/components/FileInput/README.md +5 -0
- package/es6/components/FormField/FormField.js +203 -66
- package/es6/components/FormField/README.md +56 -1
- package/es6/components/FormField/stories/CustomThemed/Appearance.stories.tsx +630 -0
- package/es6/components/Grommet/index.d.ts +4 -0
- package/es6/components/Grommet/propTypes.js +4 -1
- package/es6/components/RadioButton/README.md +93 -1
- package/es6/components/RadioButton/RadioButton.js +11 -4
- package/es6/components/RadioButton/StyledRadioButton.js +102 -8
- package/es6/components/RadioButton/stories/CustomThemed/Appearance.stories.tsx +190 -0
- package/es6/components/RangeSelector/index.d.ts +1 -10
- package/es6/components/Select/StyledSelect.js +10 -3
- package/es6/components/SelectMultiple/SelectMultiple.js +9 -3
- package/es6/components/Stepper/Stepper.js +137 -101
- package/es6/components/Stepper/StepperContext.js +5 -4
- package/es6/components/Stepper/StepperDescription.js +6 -8
- package/es6/components/Stepper/StepperHelperText.js +13 -15
- package/es6/components/Stepper/StepperIndicator.js +38 -35
- package/es6/components/Stepper/StepperLabel.js +11 -23
- package/es6/components/Stepper/StepperStep.js +137 -81
- package/es6/components/Stepper/StyledStepper.js +167 -113
- package/es6/components/Stepper/index.d.ts +25 -13
- package/es6/components/Stepper/index.js +2 -1
- package/es6/components/Stepper/propTypes.js +3 -0
- package/es6/components/Stepper/stories/Children.stories.tsx +73 -0
- package/es6/components/Stepper/stories/CustomThemed.stories.tsx +301 -0
- package/es6/components/Stepper/stories/CustomThemedHpe.stories.tsx +328 -0
- package/es6/components/Stepper/utils.js +50 -0
- package/es6/components/TextInput/README.md +29 -1
- package/es6/components/TextInput/StyledTextInput.js +19 -6
- package/es6/components/TextInput/TextInput.js +101 -25
- package/es6/components/TextInput/index.d.ts +2 -0
- package/es6/components/TextInput/propTypes.js +2 -0
- package/es6/components/TextInput/stories/Clear.stories.tsx +68 -0
- package/es6/components/TextInput/stories/ClearFormField.stories.tsx +45 -0
- package/es6/components/TimeInput/StyledTimeInput.js +27 -18
- package/es6/components/TimeInput/TimeInput.js +2 -0
- package/es6/components/TimeInput/stories/Inline.stories.tsx +28 -0
- package/es6/components/Wizard/Wizard.js +10 -1
- package/es6/components/Wizard/WizardProgress.js +1 -4
- package/es6/components/Wizard/stories/ProgressiveSubSteps.stories.tsx +209 -0
- package/es6/languages/default.json +5 -1
- package/es6/themes/base.d.ts +88 -95
- package/es6/themes/base.js +198 -167
- package/es6/utils/border.js +7 -0
- package/es6/utils/styles.js +144 -24
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/languages/default.json +5 -1
- package/package.json +35 -35
- package/themes/base.d.ts +88 -95
- package/themes/base.js +198 -167
- package/tools/draft-release-version-pr.js +1 -1
- package/tools/generate-release-notes.js +1 -1
- package/tools/license-header.js +1 -1
- package/tools/pack.js +1 -1
- package/tools/release-checklist.js +1 -1
- package/tools/release-notes-utils.js +1 -1
- package/tools/release-preparation.md +55 -0
- package/tools/release-stable.js +1 -1
- package/tools/release-styled-components-beta-stable.js +1 -1
- package/utils/border.js +8 -1
- package/utils/styles.js +145 -27
- package/utils/useId.js +2 -1
- package/components/Stepper/StepConnector.js +0 -38
- package/es6/components/Stepper/StepConnector.js +0 -33
|
@@ -12,6 +12,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
12
12
|
// SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
13
13
|
// SPDX-License-Identifier: Apache-2.0
|
|
14
14
|
import React, { forwardRef, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
15
|
+
import styled from 'styled-components';
|
|
15
16
|
import { useAnalytics } from '../../contexts';
|
|
16
17
|
import { MessageContext } from '../../contexts/MessageContext';
|
|
17
18
|
import { ResponsiveContext } from '../../contexts/ResponsiveContext';
|
|
@@ -60,6 +61,12 @@ var formHasErrors = function formHasErrors(result) {
|
|
|
60
61
|
var _result$form, _result$form2;
|
|
61
62
|
return (result == null || (_result$form = result.form) == null ? void 0 : _result$form.ok) === false || Object.keys((result == null || (_result$form2 = result.form) == null ? void 0 : _result$form2.errors) || {}).length > 0;
|
|
62
63
|
};
|
|
64
|
+
var StyledWizardProgress = styled.div.withConfig({
|
|
65
|
+
displayName: "Wizard__StyledWizardProgress",
|
|
66
|
+
componentId: "sc-uqfco5-0"
|
|
67
|
+
})(["display:", ";"], function (props) {
|
|
68
|
+
return props.$hidden ? 'none' : 'contents';
|
|
69
|
+
});
|
|
63
70
|
var statusFromStep = function statusFromStep(step, validation, completed) {
|
|
64
71
|
var _validation$step$id;
|
|
65
72
|
if (!step) return 'pending';
|
|
@@ -932,7 +939,9 @@ var Wizard = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
932
939
|
flex: "grow",
|
|
933
940
|
fill: "horizontal",
|
|
934
941
|
direction: effectiveShowProgress === 'vertical' ? 'row' : 'column'
|
|
935
|
-
},
|
|
942
|
+
}, /*#__PURE__*/React.createElement(StyledWizardProgress, {
|
|
943
|
+
$hidden: !effectiveShowProgress || responsiveSize === 'small' || responsiveSize === 'xsmall'
|
|
944
|
+
}, /*#__PURE__*/React.createElement(WizardProgress, null)), /*#__PURE__*/React.createElement(Box, {
|
|
936
945
|
flex: "grow"
|
|
937
946
|
}, /*#__PURE__*/React.createElement(WizardStepHeader, null), /*#__PURE__*/React.createElement(WizardContent, null)))), footerNode));
|
|
938
947
|
}
|
|
@@ -31,9 +31,6 @@ export var WizardProgress = function WizardProgress(_ref) {
|
|
|
31
31
|
stepStates = _useWizard.stepStates,
|
|
32
32
|
stepErrorMessages = _useWizard.stepErrorMessages,
|
|
33
33
|
messages = _useWizard.messages;
|
|
34
|
-
|
|
35
|
-
// Opt-in: render nothing when `showProgress` is false.
|
|
36
|
-
if (!showProgress) return null;
|
|
37
34
|
var progressTheme = showProgress === 'vertical' ? (_theme$wizard = theme.wizard) == null || (_theme$wizard = _theme$wizard.progress) == null ? void 0 : _theme$wizard.vertical : (_theme$wizard2 = theme.wizard) == null || (_theme$wizard2 = _theme$wizard2.progress) == null ? void 0 : _theme$wizard2.horizontal;
|
|
38
35
|
|
|
39
36
|
// Map wizard steps (with optional children) into Stepper's step model.
|
|
@@ -97,7 +94,7 @@ export var WizardProgress = function WizardProgress(_ref) {
|
|
|
97
94
|
}, rest), /*#__PURE__*/React.createElement(Stepper, {
|
|
98
95
|
steps: stepperSteps,
|
|
99
96
|
currentStep: currentStep,
|
|
100
|
-
direction: showProgress === '
|
|
97
|
+
direction: showProgress === 'horizontal' ? 'horizontal' : 'vertical',
|
|
101
98
|
clickableSteps: clickableSteps,
|
|
102
99
|
onStepClick: onStepClick,
|
|
103
100
|
showDescription: showDescription,
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
5
|
+
import {
|
|
6
|
+
Box,
|
|
7
|
+
Button,
|
|
8
|
+
FormField,
|
|
9
|
+
Notification,
|
|
10
|
+
Paragraph,
|
|
11
|
+
TextInput,
|
|
12
|
+
Wizard,
|
|
13
|
+
} from 'grommet';
|
|
14
|
+
|
|
15
|
+
const meta: Meta<typeof Wizard> = {
|
|
16
|
+
title: 'Layout/Wizard/Progressive Sub-Steps',
|
|
17
|
+
component: Wizard,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default meta;
|
|
21
|
+
type Story = StoryObj<typeof Wizard>;
|
|
22
|
+
|
|
23
|
+
// Next/Skip enter the first group. Clicking a later parent goes directly to
|
|
24
|
+
// its first child. Every visited group's full child list remains in the rail.
|
|
25
|
+
const ProgressiveSubStepsExample = () => {
|
|
26
|
+
const [showProgress, setShowProgress] = useState(true);
|
|
27
|
+
const [completedOrganization, setCompletedOrganization] = useState('');
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<Box fill gap="small">
|
|
31
|
+
<Box pad="small" gap="small">
|
|
32
|
+
<Paragraph margin="none">
|
|
33
|
+
Complete each required field to continue. Once a group is entered, all
|
|
34
|
+
of its child steps appear and stay visible. You can hide and restore
|
|
35
|
+
the progress rail at any time.
|
|
36
|
+
</Paragraph>
|
|
37
|
+
<Button
|
|
38
|
+
alignSelf="start"
|
|
39
|
+
label={showProgress ? 'Hide progress' : 'Show progress'}
|
|
40
|
+
onClick={() => setShowProgress((visible) => !visible)}
|
|
41
|
+
/>
|
|
42
|
+
</Box>
|
|
43
|
+
<Wizard
|
|
44
|
+
aria-label="Progressive setup wizard"
|
|
45
|
+
title="Set up your organization"
|
|
46
|
+
showProgress={showProgress ? 'vertical' : false}
|
|
47
|
+
clickableSteps
|
|
48
|
+
steps={[
|
|
49
|
+
{
|
|
50
|
+
id: 'intro',
|
|
51
|
+
title: 'Organization',
|
|
52
|
+
description: 'Start with your organization details.',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: 'account',
|
|
56
|
+
title: 'Account',
|
|
57
|
+
children: [
|
|
58
|
+
{
|
|
59
|
+
id: 'email',
|
|
60
|
+
title: 'Email',
|
|
61
|
+
description: 'Add a contact email.',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: 'profile',
|
|
65
|
+
title: 'Profile',
|
|
66
|
+
description: 'Tell us who manages this account.',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: 'billing',
|
|
72
|
+
title: 'Billing',
|
|
73
|
+
children: [
|
|
74
|
+
{
|
|
75
|
+
id: 'payment',
|
|
76
|
+
title: 'Billing reference',
|
|
77
|
+
description: 'Add your internal billing reference.',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: 'address',
|
|
81
|
+
title: 'Billing address',
|
|
82
|
+
description: 'Add the billing location.',
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: 'review',
|
|
88
|
+
title: 'Review',
|
|
89
|
+
description: 'Review your organization setup.',
|
|
90
|
+
},
|
|
91
|
+
]}
|
|
92
|
+
renderStep={(step, wizard) => (
|
|
93
|
+
<Box gap="small">
|
|
94
|
+
{step.id === 'intro' && (
|
|
95
|
+
<FormField
|
|
96
|
+
label="Organization name"
|
|
97
|
+
name="organization"
|
|
98
|
+
htmlFor="wizard-organization"
|
|
99
|
+
required
|
|
100
|
+
>
|
|
101
|
+
<TextInput
|
|
102
|
+
id="wizard-organization"
|
|
103
|
+
name="organization"
|
|
104
|
+
placeholder="Example organization"
|
|
105
|
+
/>
|
|
106
|
+
</FormField>
|
|
107
|
+
)}
|
|
108
|
+
{step.id === 'email' && (
|
|
109
|
+
<FormField
|
|
110
|
+
label="Contact email"
|
|
111
|
+
name="email"
|
|
112
|
+
htmlFor="wizard-email"
|
|
113
|
+
required
|
|
114
|
+
validate={(value) =>
|
|
115
|
+
value?.includes('@')
|
|
116
|
+
? undefined
|
|
117
|
+
: 'Enter a valid email address.'
|
|
118
|
+
}
|
|
119
|
+
>
|
|
120
|
+
<TextInput
|
|
121
|
+
id="wizard-email"
|
|
122
|
+
name="email"
|
|
123
|
+
type="email"
|
|
124
|
+
placeholder="name@example.com"
|
|
125
|
+
/>
|
|
126
|
+
</FormField>
|
|
127
|
+
)}
|
|
128
|
+
{step.id === 'profile' && (
|
|
129
|
+
<FormField
|
|
130
|
+
label="Account manager"
|
|
131
|
+
name="manager"
|
|
132
|
+
htmlFor="wizard-manager"
|
|
133
|
+
required
|
|
134
|
+
>
|
|
135
|
+
<TextInput
|
|
136
|
+
id="wizard-manager"
|
|
137
|
+
name="manager"
|
|
138
|
+
placeholder="Full name"
|
|
139
|
+
/>
|
|
140
|
+
</FormField>
|
|
141
|
+
)}
|
|
142
|
+
{step.id === 'payment' && (
|
|
143
|
+
<FormField
|
|
144
|
+
label="Purchase order or cost center"
|
|
145
|
+
name="billingReference"
|
|
146
|
+
htmlFor="wizard-billing-reference"
|
|
147
|
+
required
|
|
148
|
+
>
|
|
149
|
+
<TextInput
|
|
150
|
+
id="wizard-billing-reference"
|
|
151
|
+
name="billingReference"
|
|
152
|
+
placeholder="For example, PO-12345"
|
|
153
|
+
/>
|
|
154
|
+
</FormField>
|
|
155
|
+
)}
|
|
156
|
+
{step.id === 'address' && (
|
|
157
|
+
<Box gap="small">
|
|
158
|
+
<FormField
|
|
159
|
+
label="Street address"
|
|
160
|
+
name="street"
|
|
161
|
+
htmlFor="wizard-street"
|
|
162
|
+
required
|
|
163
|
+
>
|
|
164
|
+
<TextInput id="wizard-street" name="street" />
|
|
165
|
+
</FormField>
|
|
166
|
+
<FormField
|
|
167
|
+
label="City"
|
|
168
|
+
name="city"
|
|
169
|
+
htmlFor="wizard-city"
|
|
170
|
+
required
|
|
171
|
+
>
|
|
172
|
+
<TextInput id="wizard-city" name="city" />
|
|
173
|
+
</FormField>
|
|
174
|
+
</Box>
|
|
175
|
+
)}
|
|
176
|
+
{step.id === 'review' && (
|
|
177
|
+
<Box gap="small">
|
|
178
|
+
<Paragraph>
|
|
179
|
+
Organization: {wizard.formValue.organization || '—'}
|
|
180
|
+
</Paragraph>
|
|
181
|
+
<Paragraph>Email: {wizard.formValue.email || '—'}</Paragraph>
|
|
182
|
+
<Paragraph>
|
|
183
|
+
Account manager: {wizard.formValue.manager || '—'}
|
|
184
|
+
</Paragraph>
|
|
185
|
+
<Paragraph>
|
|
186
|
+
Billing reference: {wizard.formValue.billingReference || '—'}
|
|
187
|
+
</Paragraph>
|
|
188
|
+
</Box>
|
|
189
|
+
)}
|
|
190
|
+
</Box>
|
|
191
|
+
)}
|
|
192
|
+
onComplete={({ value }) =>
|
|
193
|
+
setCompletedOrganization(value.organization || 'your organization')
|
|
194
|
+
}
|
|
195
|
+
/>
|
|
196
|
+
{completedOrganization && (
|
|
197
|
+
<Notification
|
|
198
|
+
status="normal"
|
|
199
|
+
title="Setup complete"
|
|
200
|
+
message={`${completedOrganization} is ready.`}
|
|
201
|
+
/>
|
|
202
|
+
)}
|
|
203
|
+
</Box>
|
|
204
|
+
);
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
export const ProgressiveSubSteps: Story = {
|
|
208
|
+
render: () => <ProgressiveSubStepsExample />,
|
|
209
|
+
};
|
|
@@ -215,8 +215,11 @@
|
|
|
215
215
|
"skipTo": "Skip To:"
|
|
216
216
|
},
|
|
217
217
|
"stepper": {
|
|
218
|
+
"completed": "{step}, completed",
|
|
219
|
+
"error": "{step}, error",
|
|
218
220
|
"progress": "Progress",
|
|
219
|
-
"step": "Step {step} of {total}
|
|
221
|
+
"step": "Step {step} of {total}. {title}",
|
|
222
|
+
"subStep": "Step {step} of {total}. {parent}: {title}"
|
|
220
223
|
},
|
|
221
224
|
"tabs": {
|
|
222
225
|
"nextTab": "Next Tab",
|
|
@@ -230,6 +233,7 @@
|
|
|
230
233
|
}
|
|
231
234
|
},
|
|
232
235
|
"textInput": {
|
|
236
|
+
"clear": "Clear",
|
|
233
237
|
"enterSelect": "(Press Enter to Select)",
|
|
234
238
|
"hidePassword": "Hide password",
|
|
235
239
|
"showPassword": "Show password",
|
package/es6/themes/base.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
AlignType,
|
|
29
29
|
WidthType,
|
|
30
30
|
HeightType,
|
|
31
|
+
ThicknessType,
|
|
31
32
|
} from '../utils';
|
|
32
33
|
|
|
33
34
|
import { AnchorProps } from '../components/Anchor/index';
|
|
@@ -315,53 +316,63 @@ type DigitalTexts =
|
|
|
315
316
|
| 'xxlarge'
|
|
316
317
|
| string;
|
|
317
318
|
|
|
318
|
-
type ContainerExtend = {
|
|
319
|
+
type ContainerExtend = BoxPartThemeType & {
|
|
319
320
|
container?: {
|
|
320
321
|
extend?: ExtendType;
|
|
321
322
|
};
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
border?: {
|
|
325
|
-
color?: ColorType;
|
|
326
|
-
};
|
|
327
|
-
};
|
|
323
|
+
error?: BoxStateThemeType;
|
|
324
|
+
hover?: BoxStateThemeType;
|
|
328
325
|
};
|
|
329
326
|
|
|
330
|
-
interface
|
|
331
|
-
indicator?: {
|
|
327
|
+
interface StepType {
|
|
328
|
+
indicator?: BoxPartThemeType & {
|
|
332
329
|
icon?: React.ReactNode | Icon;
|
|
333
330
|
iconSize?: string;
|
|
334
|
-
|
|
331
|
+
size?: string;
|
|
335
332
|
color?: ColorType;
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
333
|
+
align?: AlignType;
|
|
334
|
+
justify?:
|
|
335
|
+
| 'around'
|
|
336
|
+
| 'between'
|
|
337
|
+
| 'center'
|
|
338
|
+
| 'end'
|
|
339
|
+
| 'evenly'
|
|
340
|
+
| 'start'
|
|
341
|
+
| 'stretch';
|
|
342
|
+
};
|
|
343
|
+
button?: BoxPartThemeType & {
|
|
344
|
+
gap?: GapType;
|
|
345
345
|
};
|
|
346
|
-
label?:
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
346
|
+
label?: TextThemeType;
|
|
347
|
+
description?: TextThemeType;
|
|
348
|
+
errorText?: TextThemeType;
|
|
349
|
+
disabledReason?: TextThemeType;
|
|
350
|
+
children?: BoxPartThemeType & {
|
|
351
|
+
gap?: GapType;
|
|
352
352
|
};
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
interface StepperStatusStateType extends StepperStateType {
|
|
356
353
|
connector?: {
|
|
354
|
+
// line type?
|
|
357
355
|
color?: ColorType;
|
|
356
|
+
thickness?: ThicknessType;
|
|
357
|
+
gap?: GapType;
|
|
358
358
|
};
|
|
359
|
+
// Interaction states
|
|
360
|
+
hover?: StepType;
|
|
359
361
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
362
|
+
interface StepperThemeType extends StepType {
|
|
363
|
+
container?: BoxPartThemeType & {
|
|
364
|
+
gap?: GapType | { row?: GapType; column?: GapType };
|
|
365
|
+
};
|
|
366
|
+
subStep?: Omit<StepType, 'children'>;
|
|
367
|
+
vertical?: StepType;
|
|
368
|
+
// Application States
|
|
369
|
+
pending?: StepType;
|
|
370
|
+
current?: StepType;
|
|
371
|
+
currentCompleted?: StepType;
|
|
372
|
+
completed?: StepType;
|
|
373
|
+
error?: StepType;
|
|
374
|
+
currentError?: StepType;
|
|
375
|
+
disabled?: StepType;
|
|
365
376
|
}
|
|
366
377
|
|
|
367
378
|
type TimeInputOptionThemeType = {
|
|
@@ -584,8 +595,11 @@ export interface ThemeType {
|
|
|
584
595
|
background?: BackgroundType;
|
|
585
596
|
color?: ColorType;
|
|
586
597
|
};
|
|
587
|
-
input?: {
|
|
598
|
+
input?: BoxPartThemeType & {
|
|
599
|
+
disabled?: BoxStateThemeType;
|
|
588
600
|
extend?: ExtendType;
|
|
601
|
+
focus?: BoxStateThemeType;
|
|
602
|
+
hover?: BoxStateThemeType;
|
|
589
603
|
padding?:
|
|
590
604
|
| string
|
|
591
605
|
| {
|
|
@@ -601,12 +615,8 @@ export interface ThemeType {
|
|
|
601
615
|
size?: string;
|
|
602
616
|
weight?: number | string;
|
|
603
617
|
};
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
border?: {
|
|
607
|
-
color?: ColorType;
|
|
608
|
-
};
|
|
609
|
-
};
|
|
618
|
+
placeholder?: TextThemeType;
|
|
619
|
+
readOnly?: BoxStateThemeType;
|
|
610
620
|
weight?: number | string;
|
|
611
621
|
};
|
|
612
622
|
opacity?: {
|
|
@@ -897,6 +907,15 @@ export interface ThemeType {
|
|
|
897
907
|
width?: string;
|
|
898
908
|
};
|
|
899
909
|
checkBox?: {
|
|
910
|
+
control?: BoxPartThemeType & {
|
|
911
|
+
hover?: BoxStateThemeType;
|
|
912
|
+
selected?: BoxStateThemeType & {
|
|
913
|
+
hover?: BoxStateThemeType;
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
container?: BoxPartThemeType & {
|
|
917
|
+
hover?: BoxStateThemeType;
|
|
918
|
+
};
|
|
900
919
|
border?: {
|
|
901
920
|
color?: ColorType;
|
|
902
921
|
width?: string;
|
|
@@ -906,6 +925,7 @@ export interface ThemeType {
|
|
|
906
925
|
};
|
|
907
926
|
check?: {
|
|
908
927
|
extend?: ExtendType;
|
|
928
|
+
/** @deprecated Use checkBox.control.round instead. */
|
|
909
929
|
radius?: string;
|
|
910
930
|
thickness?: string;
|
|
911
931
|
};
|
|
@@ -916,6 +936,7 @@ export interface ThemeType {
|
|
|
916
936
|
border?: {
|
|
917
937
|
color?: ColorType;
|
|
918
938
|
};
|
|
939
|
+
/** @deprecated Use checkBox.container.hover.background instead. */
|
|
919
940
|
background?: {
|
|
920
941
|
color?: ColorType;
|
|
921
942
|
};
|
|
@@ -929,6 +950,7 @@ export interface ThemeType {
|
|
|
929
950
|
checked?: React.ReactNode | Icon;
|
|
930
951
|
indeterminate?: any;
|
|
931
952
|
};
|
|
953
|
+
/** @deprecated Use checkBox.container.pad instead. */
|
|
932
954
|
pad?: PadType;
|
|
933
955
|
size?: string;
|
|
934
956
|
toggle?: {
|
|
@@ -1293,6 +1315,7 @@ export interface ThemeType {
|
|
|
1293
1315
|
gap?: GapType;
|
|
1294
1316
|
};
|
|
1295
1317
|
formField?: {
|
|
1318
|
+
background?: BackgroundType;
|
|
1296
1319
|
border?: BorderType & {
|
|
1297
1320
|
error?: {
|
|
1298
1321
|
color?: ColorType;
|
|
@@ -1363,7 +1386,7 @@ export interface ThemeType {
|
|
|
1363
1386
|
color?: ColorType;
|
|
1364
1387
|
};
|
|
1365
1388
|
};
|
|
1366
|
-
checkBox?: ContainerExtend
|
|
1389
|
+
checkBox?: ContainerExtend;
|
|
1367
1390
|
checkBoxGroup?: ContainerExtend;
|
|
1368
1391
|
textArea?: ContainerExtend;
|
|
1369
1392
|
textInput?: ContainerExtend;
|
|
@@ -1371,10 +1394,12 @@ export interface ThemeType {
|
|
|
1371
1394
|
maskedInput?: ContainerExtend;
|
|
1372
1395
|
selectMultiple?: ContainerExtend;
|
|
1373
1396
|
dateInput?: ContainerExtend;
|
|
1397
|
+
dateTimeInput?: ContainerExtend;
|
|
1374
1398
|
timeInput?: ContainerExtend;
|
|
1375
1399
|
fileInput?: ContainerExtend;
|
|
1376
1400
|
radioButton?: ContainerExtend;
|
|
1377
1401
|
radioButtonGroup?: ContainerExtend;
|
|
1402
|
+
rangeInput?: ContainerExtend;
|
|
1378
1403
|
rangeSelector?: ContainerExtend;
|
|
1379
1404
|
starRating?: ContainerExtend;
|
|
1380
1405
|
thumbsRating?: ContainerExtend;
|
|
@@ -1957,30 +1982,47 @@ export interface ThemeType {
|
|
|
1957
1982
|
};
|
|
1958
1983
|
};
|
|
1959
1984
|
radioButton?: {
|
|
1960
|
-
|
|
1961
|
-
|
|
1985
|
+
control?: BoxPartThemeType & {
|
|
1986
|
+
hover?: BoxStateThemeType;
|
|
1987
|
+
selected?: BoxStateThemeType & {
|
|
1988
|
+
hover?: BoxStateThemeType;
|
|
1989
|
+
};
|
|
1990
|
+
};
|
|
1991
|
+
container?: BoxPartThemeType & {
|
|
1992
|
+
hover?: BoxStateThemeType;
|
|
1962
1993
|
extend?: ExtendType;
|
|
1963
1994
|
};
|
|
1995
|
+
/** @deprecated Use radioButton.control.background instead. */
|
|
1964
1996
|
background?: {
|
|
1965
1997
|
color?: ColorType;
|
|
1966
1998
|
};
|
|
1967
1999
|
border?: {
|
|
2000
|
+
/** @deprecated Use radioButton.control.border.color instead. */
|
|
1968
2001
|
color?: ColorType;
|
|
2002
|
+
/** @deprecated Use radioButton.control.border.size instead. */
|
|
1969
2003
|
width?: string;
|
|
1970
2004
|
};
|
|
1971
2005
|
check?: {
|
|
1972
2006
|
color?: ColorType;
|
|
1973
2007
|
extend?: ExtendType;
|
|
2008
|
+
/** @deprecated Use radioButton.control.round instead. */
|
|
1974
2009
|
radius?: string;
|
|
2010
|
+
/** @deprecated Use radioButton.control.selected.background instead. */
|
|
1975
2011
|
background?: {
|
|
1976
2012
|
color?: ColorType;
|
|
1977
2013
|
};
|
|
1978
2014
|
};
|
|
2015
|
+
/** @deprecated Use radioButton.control.selected.border.color instead. */
|
|
1979
2016
|
color?: ColorType;
|
|
1980
2017
|
hover?: {
|
|
1981
2018
|
border?: {
|
|
2019
|
+
/**
|
|
2020
|
+
* @deprecated Use radioButton.control.hover.border.color and
|
|
2021
|
+
* radioButton.control.selected.hover.border.color instead.
|
|
2022
|
+
*/
|
|
1982
2023
|
color?: ColorType;
|
|
1983
2024
|
};
|
|
2025
|
+
/** @deprecated Use radioButton.container.hover.background instead. */
|
|
1984
2026
|
background?: {
|
|
1985
2027
|
color?: ColorType;
|
|
1986
2028
|
};
|
|
@@ -1997,6 +2039,7 @@ export interface ThemeType {
|
|
|
1997
2039
|
font?: {
|
|
1998
2040
|
weight?: number | string;
|
|
1999
2041
|
};
|
|
2042
|
+
extend?: ExtendType;
|
|
2000
2043
|
};
|
|
2001
2044
|
nameValueList?: {
|
|
2002
2045
|
gap?: {
|
|
@@ -2169,6 +2212,7 @@ export interface ThemeType {
|
|
|
2169
2212
|
unselected?: React.ReactNode | Icon;
|
|
2170
2213
|
};
|
|
2171
2214
|
};
|
|
2215
|
+
stepper?: StepperThemeType;
|
|
2172
2216
|
thumbsRating?: {
|
|
2173
2217
|
dislike?: {
|
|
2174
2218
|
color?: ColorType;
|
|
@@ -2250,58 +2294,6 @@ export interface ThemeType {
|
|
|
2250
2294
|
large?: number;
|
|
2251
2295
|
};
|
|
2252
2296
|
};
|
|
2253
|
-
stepper?: {
|
|
2254
|
-
indicator?: {
|
|
2255
|
-
size?: string;
|
|
2256
|
-
border?: {
|
|
2257
|
-
width?: string;
|
|
2258
|
-
};
|
|
2259
|
-
};
|
|
2260
|
-
label?: {
|
|
2261
|
-
size?: string;
|
|
2262
|
-
substep?: {
|
|
2263
|
-
size?: string;
|
|
2264
|
-
};
|
|
2265
|
-
};
|
|
2266
|
-
connector?: {
|
|
2267
|
-
stroke?: {
|
|
2268
|
-
width?: string;
|
|
2269
|
-
};
|
|
2270
|
-
};
|
|
2271
|
-
description?: TextProps;
|
|
2272
|
-
helperText?: {
|
|
2273
|
-
size?: string;
|
|
2274
|
-
color?: ColorType;
|
|
2275
|
-
};
|
|
2276
|
-
button?: {
|
|
2277
|
-
pad?: EdgeSizeType;
|
|
2278
|
-
};
|
|
2279
|
-
horizontal?: {
|
|
2280
|
-
connector?: {
|
|
2281
|
-
margin?: EdgeSizeType;
|
|
2282
|
-
};
|
|
2283
|
-
button?: {
|
|
2284
|
-
gap?: GapType;
|
|
2285
|
-
};
|
|
2286
|
-
};
|
|
2287
|
-
vertical?: {
|
|
2288
|
-
button?: {
|
|
2289
|
-
gap?: GapType;
|
|
2290
|
-
};
|
|
2291
|
-
};
|
|
2292
|
-
hover?: {
|
|
2293
|
-
background?: BackgroundType;
|
|
2294
|
-
border?: ColorType;
|
|
2295
|
-
};
|
|
2296
|
-
// States: [component].[state].[element].[property]
|
|
2297
|
-
pending?: StepperStatusStateType;
|
|
2298
|
-
current?: StepperStateType;
|
|
2299
|
-
currentCompleted?: StepperStateType;
|
|
2300
|
-
completed?: StepperStatusStateType;
|
|
2301
|
-
error?: StepperStatusWithHelperTextStateType;
|
|
2302
|
-
currentError?: StepperHelperTextStateType;
|
|
2303
|
-
disabled?: StepperStatusWithHelperTextStateType;
|
|
2304
|
-
};
|
|
2305
2297
|
table?: {
|
|
2306
2298
|
caption?: {
|
|
2307
2299
|
margin?: MarginType;
|
|
@@ -2462,6 +2454,7 @@ export interface ThemeType {
|
|
|
2462
2454
|
extend?: ExtendType;
|
|
2463
2455
|
};
|
|
2464
2456
|
icons?: {
|
|
2457
|
+
clear?: React.ReactNode | Icon;
|
|
2465
2458
|
copy?: React.ReactNode | Icon;
|
|
2466
2459
|
hidePassword?: React.ReactNode | Icon;
|
|
2467
2460
|
showPassword?: React.ReactNode | Icon;
|