grommet 2.57.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 +3 -2
- package/components/Box/stories/ColorContrast.stories.js +36 -0
- package/components/Box/stories/ResponsiveContainer.stories.js +2 -1
- package/components/Button/Badge.js +2 -1
- package/components/Button/BusyAnimation.js +9 -2
- package/components/Button/Button.js +14 -4
- 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 +3 -2
- 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 +14 -7
- package/components/DateInput/stories/FormatInline.stories.js +2 -1
- package/components/DateTimeInput/DateTimeInput.js +21 -12
- 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 +4 -2
- 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 +235 -76
- package/components/FormField/FormFieldContext.js +12 -0
- 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 +6 -2
- package/components/Grommet/StyledGrommet.js +5 -4
- package/components/Grommet/index.d.ts +10 -0
- package/components/Grommet/propTypes.js +6 -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 +3 -2
- 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 +4 -3
- package/components/Select/StyledSelect.js +14 -4
- 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 +5 -2
- 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 +24 -6
- package/components/TextInput/README.md +29 -1
- package/components/TextInput/StyledTextInput.js +34 -26
- package/components/TextInput/TextInput.js +165 -41
- package/components/TextInput/index.d.ts +14 -3
- package/components/TextInput/propTypes.js +4 -0
- package/components/TextInput/stories/Clear.stories.tsx +68 -0
- package/components/TextInput/stories/ClearFormField.stories.tsx +45 -0
- package/components/TextInput/stories/Copy.stories.tsx +42 -0
- package/components/TextInput/stories/CopySecret.stories.tsx +44 -0
- package/components/TextInput/stories/InsideFormField.stories.js +2 -1
- package/components/TimeInput/README.md +24 -1
- package/components/TimeInput/StyledTimeInput.js +102 -28
- package/components/TimeInput/TimeInput.js +189 -121
- package/components/TimeInput/TimeInputPopup.js +116 -118
- package/components/TimeInput/index.d.ts +2 -0
- package/components/TimeInput/propTypes.js +2 -0
- package/components/TimeInput/stories/Controlled.stories.tsx +2 -2
- package/components/TimeInput/stories/CustomThemed.stories.tsx +79 -0
- package/components/TimeInput/stories/CustomThemedHpe.stories.tsx +115 -0
- package/components/TimeInput/stories/Form.stories.tsx +1 -0
- package/components/TimeInput/stories/Inline.stories.tsx +28 -0
- package/components/TimeInput/stories/ShowSeconds.stories.tsx +28 -0
- package/components/TimeInput/useSectionedTimeField.js +2 -2
- package/components/TimeInput/utils.js +13 -62
- 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 +409 -212
- package/components/Wizard/WizardContent.js +63 -36
- package/components/Wizard/WizardContext.js +5 -1
- package/components/Wizard/WizardFooter.js +14 -15
- package/components/Wizard/WizardHeader.js +12 -7
- package/components/Wizard/WizardProgress.js +28 -6
- package/components/Wizard/index.d.ts +35 -4
- package/components/Wizard/propTypes.js +6 -1
- package/components/Wizard/stories/BasicLinear.stories.js +14 -11
- package/components/Wizard/stories/Branching.stories.js +2 -1
- package/components/Wizard/stories/ClickableSteps.stories.js +105 -0
- 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 +115 -0
- 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 +69 -0
- package/components/Wizard/stories/ProgressiveSubSteps.stories.tsx +209 -0
- package/components/Wizard/stories/Validation.stories.js +20 -9
- 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/Box/StyledBox.js +1 -1
- package/es6/components/Box/stories/ColorContrast.stories.js +31 -0
- package/es6/components/Button/BusyAnimation.js +7 -1
- package/es6/components/Button/Button.js +12 -3
- 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/DataTable/StyledDataTable.js +2 -2
- package/es6/components/DateInput/DateInput.js +13 -6
- package/es6/components/DateTimeInput/DateTimeInput.js +19 -11
- 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/FocusedContainer.js +2 -1
- package/es6/components/FormField/FormField.js +231 -73
- package/es6/components/FormField/FormFieldContext.js +7 -0
- package/es6/components/FormField/README.md +56 -1
- package/es6/components/FormField/stories/CustomThemed/Appearance.stories.tsx +630 -0
- package/es6/components/Grommet/Grommet.js +4 -1
- package/es6/components/Grommet/StyledGrommet.js +4 -4
- package/es6/components/Grommet/index.d.ts +10 -0
- package/es6/components/Grommet/propTypes.js +6 -1
- package/es6/components/Menu/Menu.js +1 -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/SelectContainer.js +2 -2
- package/es6/components/Select/StyledSelect.js +13 -4
- 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/TextArea/StyledTextArea.js +4 -2
- package/es6/components/TextInput/CopyButton.js +22 -6
- package/es6/components/TextInput/README.md +29 -1
- package/es6/components/TextInput/StyledTextInput.js +34 -27
- package/es6/components/TextInput/TextInput.js +164 -41
- package/es6/components/TextInput/index.d.ts +14 -3
- package/es6/components/TextInput/propTypes.js +4 -0
- package/es6/components/TextInput/stories/Clear.stories.tsx +68 -0
- package/es6/components/TextInput/stories/ClearFormField.stories.tsx +45 -0
- package/es6/components/TextInput/stories/Copy.stories.tsx +42 -0
- package/es6/components/TextInput/stories/CopySecret.stories.tsx +44 -0
- package/es6/components/TimeInput/README.md +24 -1
- package/es6/components/TimeInput/StyledTimeInput.js +101 -28
- package/es6/components/TimeInput/TimeInput.js +189 -122
- package/es6/components/TimeInput/TimeInputPopup.js +115 -118
- package/es6/components/TimeInput/index.d.ts +2 -0
- package/es6/components/TimeInput/propTypes.js +2 -0
- package/es6/components/TimeInput/stories/Controlled.stories.tsx +2 -2
- package/es6/components/TimeInput/stories/CustomThemed.stories.tsx +79 -0
- package/es6/components/TimeInput/stories/CustomThemedHpe.stories.tsx +115 -0
- package/es6/components/TimeInput/stories/Form.stories.tsx +1 -0
- package/es6/components/TimeInput/stories/Inline.stories.tsx +28 -0
- package/es6/components/TimeInput/stories/ShowSeconds.stories.tsx +28 -0
- package/es6/components/TimeInput/useSectionedTimeField.js +2 -2
- package/es6/components/TimeInput/utils.js +12 -61
- package/es6/components/Wizard/Wizard.js +407 -212
- package/es6/components/Wizard/WizardContent.js +62 -36
- package/es6/components/Wizard/WizardContext.js +3 -0
- package/es6/components/Wizard/WizardFooter.js +14 -15
- package/es6/components/Wizard/WizardHeader.js +12 -7
- package/es6/components/Wizard/WizardProgress.js +28 -6
- package/es6/components/Wizard/index.d.ts +35 -4
- package/es6/components/Wizard/propTypes.js +6 -1
- package/es6/components/Wizard/stories/BasicLinear.stories.js +11 -11
- package/es6/components/Wizard/stories/ClickableSteps.stories.js +99 -0
- package/es6/components/Wizard/stories/ExternalForm.stories.js +111 -0
- package/es6/components/Wizard/stories/NonClosableHeader.stories.js +63 -0
- package/es6/components/Wizard/stories/ProgressiveSubSteps.stories.tsx +209 -0
- package/es6/components/Wizard/stories/Validation.stories.js +18 -9
- package/es6/languages/default.json +7 -1
- package/es6/themes/base.d.ts +166 -153
- package/es6/themes/base.js +263 -201
- package/es6/utils/DOM.js +10 -7
- package/es6/utils/background.js +9 -7
- package/es6/utils/border.js +7 -0
- package/es6/utils/colors.js +84 -12
- package/es6/utils/legacyColorIsDark.js +17 -0
- package/es6/utils/styles.js +157 -29
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/languages/default.json +7 -1
- package/package.json +36 -36
- package/themes/base.d.ts +166 -153
- package/themes/base.js +263 -201
- package/tools/draft-release-version-pr.js +1 -0
- 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 -0
- 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/DOM.js +10 -7
- package/utils/background.js +9 -7
- package/utils/border.js +8 -1
- package/utils/colors.js +84 -12
- package/utils/legacyColorIsDark.js +21 -0
- package/utils/styles.js +158 -32
- package/utils/useId.js +2 -1
- package/components/Stepper/StepConnector.js +0 -38
- package/es6/components/Stepper/StepConnector.js +0 -33
|
@@ -4,7 +4,8 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.PageNotification = void 0;
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
|
|
7
|
+
var cache;
|
|
8
|
+
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, "default": e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
8
9
|
// SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
9
10
|
// SPDX-License-Identifier: Apache-2.0
|
|
10
11
|
|
|
@@ -8,7 +8,8 @@ var _Page = require("../Page");
|
|
|
8
8
|
var _propTypes = require("./propTypes");
|
|
9
9
|
var _excluded = ["children", "background"]; // SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
10
10
|
// SPDX-License-Identifier: Apache-2.0
|
|
11
|
-
|
|
11
|
+
var cache;
|
|
12
|
+
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, "default": e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
12
13
|
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
13
14
|
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); }
|
|
14
15
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
@@ -11,7 +11,8 @@ var _Paragraph = require("../Paragraph");
|
|
|
11
11
|
var _ResponsiveContext = require("../../contexts/ResponsiveContext");
|
|
12
12
|
var _useThemeValue2 = require("../../utils/useThemeValue");
|
|
13
13
|
var _excluded = ["actions", "gridProps", "parent", "responsive", "size", "subtitle", "title", "level"];
|
|
14
|
-
|
|
14
|
+
var cache;
|
|
15
|
+
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, "default": e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
15
16
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
16
17
|
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); } // SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
17
18
|
// SPDX-License-Identifier: Apache-2.0
|
|
@@ -5,7 +5,8 @@ exports["default"] = exports.MultipleActions = void 0;
|
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
7
|
var _grommetIcons = require("grommet-icons");
|
|
8
|
-
|
|
8
|
+
var cache;
|
|
9
|
+
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, "default": e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
9
10
|
// SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
10
11
|
// SPDX-License-Identifier: Apache-2.0
|
|
11
12
|
|
|
@@ -15,7 +15,8 @@ var _useThemeValue2 = require("../../utils/useThemeValue");
|
|
|
15
15
|
var _excluded = ["a11yTitle", "aria-label", "numberItems", "numberEdgePages", "numberMiddlePages", "onChange", "messages", "page", "size", "step", "stepOptions", "summary"]; // SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
16
16
|
// SPDX-License-Identifier: Apache-2.0
|
|
17
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
18
|
-
|
|
18
|
+
var cache;
|
|
19
|
+
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, "default": e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
19
20
|
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); }
|
|
20
21
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
21
22
|
var StyledPaginationContainer = (0, _styledComponents["default"])(_Box.Box).withConfig({
|
|
@@ -10,7 +10,8 @@ var _MessageContext = require("../../contexts/MessageContext");
|
|
|
10
10
|
var _useThemeValue2 = require("../../utils/useThemeValue");
|
|
11
11
|
var _excluded = ["messages", "onChange", "options", "step"]; // SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
12
12
|
// SPDX-License-Identifier: Apache-2.0
|
|
13
|
-
|
|
13
|
+
var cache;
|
|
14
|
+
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, "default": e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
14
15
|
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); }
|
|
15
16
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
16
17
|
var PaginationStep = exports.PaginationStep = function PaginationStep(_ref) {
|
|
@@ -8,7 +8,8 @@ var _Text = require("../Text");
|
|
|
8
8
|
var _MessageContext = require("../../contexts/MessageContext");
|
|
9
9
|
var _excluded = ["messages", "numberItems", "page", "step"]; // SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
10
10
|
// SPDX-License-Identifier: Apache-2.0
|
|
11
|
-
|
|
11
|
+
var cache;
|
|
12
|
+
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, "default": e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
12
13
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
13
14
|
var PaginationSummary = exports.PaginationSummary = function PaginationSummary(_ref) {
|
|
14
15
|
var messages = _ref.messages,
|
|
@@ -4,7 +4,8 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.PaginatedGrid = void 0;
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
|
|
7
|
+
var cache;
|
|
8
|
+
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, "default": e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
8
9
|
// SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
9
10
|
// SPDX-License-Identifier: Apache-2.0
|
|
10
11
|
|
|
@@ -11,7 +11,8 @@ var _TextContext = require("../Text/TextContext");
|
|
|
11
11
|
var _useThemeValue2 = require("../../utils/useThemeValue");
|
|
12
12
|
var _excluded = ["children", "color", "fill", "size"]; // SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
13
13
|
// SPDX-License-Identifier: Apache-2.0
|
|
14
|
-
|
|
14
|
+
var cache;
|
|
15
|
+
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, "default": e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
15
16
|
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); }
|
|
16
17
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
17
18
|
var Paragraph = exports.Paragraph = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
@@ -6,7 +6,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
6
6
|
var _Skeleton = require("../Skeleton");
|
|
7
7
|
var _Box = require("../Box");
|
|
8
8
|
var _useThemeValue2 = require("../../utils/useThemeValue");
|
|
9
|
-
|
|
9
|
+
var cache;
|
|
10
|
+
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, "default": e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
10
11
|
// SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
11
12
|
// SPDX-License-Identifier: Apache-2.0
|
|
12
13
|
|
|
@@ -4,7 +4,8 @@ exports.__esModule = true;
|
|
|
4
4
|
exports.StyledParagraph = void 0;
|
|
5
5
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
6
6
|
var _utils = require("../../utils");
|
|
7
|
-
|
|
7
|
+
var cache;
|
|
8
|
+
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, "default": e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
8
9
|
// SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
9
10
|
// SPDX-License-Identifier: Apache-2.0
|
|
10
11
|
|
|
@@ -1,2 +1,94 @@
|
|
|
1
1
|
## RadioButton
|
|
2
|
-
Documentation for this component: https://v2.grommet.io/radiobutton
|
|
2
|
+
Documentation for this component: https://v2.grommet.io/radiobutton
|
|
3
|
+
|
|
4
|
+
### Backgrounds
|
|
5
|
+
|
|
6
|
+
Use `control` to theme the circular radio control and `container` to theme its
|
|
7
|
+
outer label. These tokens accept `BackgroundType`: a color string, a symbolic
|
|
8
|
+
theme color, or an object such as `{ color: 'background-input' }`.
|
|
9
|
+
|
|
10
|
+
| Token | Applies to |
|
|
11
|
+
| --- | --- |
|
|
12
|
+
| `radioButton.control.background` | Unselected circular control background. |
|
|
13
|
+
| `radioButton.control.hover.background` | Enabled unselected control on hover. |
|
|
14
|
+
| `radioButton.control.selected.background` | Selected control background. |
|
|
15
|
+
| `radioButton.control.selected.hover.background` | Enabled selected control on hover. |
|
|
16
|
+
| `radioButton.container.background` | Outer label background. |
|
|
17
|
+
| `radioButton.container.hover.background` | Enabled outer label hover background. |
|
|
18
|
+
|
|
19
|
+
Hovering the label text also hovers the control. Focus without a focus indicator
|
|
20
|
+
(for example, inside a `FormField`) uses the current selection state's hover
|
|
21
|
+
background. Disabled controls retain their state backgrounds and do not receive
|
|
22
|
+
hover treatment. Background tokens do not change label text or icon colors.
|
|
23
|
+
|
|
24
|
+
### Appearance
|
|
25
|
+
|
|
26
|
+
`radioButton.control` and `radioButton.container` accept the shared
|
|
27
|
+
`BoxPartThemeType` properties: `background`, `border`, `elevation`, `height`,
|
|
28
|
+
`margin`, `pad`, `round`, and `width`. Control `hover`, `selected`, and
|
|
29
|
+
`selected.hover`, and container `hover`, accept the `BoxStateThemeType`
|
|
30
|
+
properties: `background`, `border`, `elevation`, `pad`, and `round`.
|
|
31
|
+
|
|
32
|
+
Selected control styles inherit unspecified properties from the normal part.
|
|
33
|
+
Backgrounds retain the compatibility fallbacks below. Partial control border
|
|
34
|
+
objects inherit unspecified fields from the underlying normal, selected, or
|
|
35
|
+
legacy border. Other border values replace it. Borders support Box boolean,
|
|
36
|
+
side, object, and array values; dimensions support strings and min/max objects.
|
|
37
|
+
Use `border: false` and `round: false` to remove these treatments.
|
|
38
|
+
|
|
39
|
+
Hovering the label applies the current selection state's control hover styles
|
|
40
|
+
and the container hover styles. Focus without a focus indicator applies the
|
|
41
|
+
same styling. Disabled radios retain normal and selected styling without hover
|
|
42
|
+
or focus-as-hover overrides. State-specific hover styles never cross over to
|
|
43
|
+
the other selection state.
|
|
44
|
+
|
|
45
|
+
Render-function children own their control styling; container parts still
|
|
46
|
+
apply to the outer label. `check.extend` and `container.extend` remain the final
|
|
47
|
+
styling overrides on their respective parts. These tokens also apply to radios
|
|
48
|
+
rendered inside a `RadioButtonGroup`.
|
|
49
|
+
|
|
50
|
+
#### Fallbacks and compatibility
|
|
51
|
+
|
|
52
|
+
New themes should use `control` and `container`. Legacy tokens remain supported:
|
|
53
|
+
|
|
54
|
+
- Unselected control: `control.background`, then legacy `background.color`.
|
|
55
|
+
- Selected control: `control.selected.background`, then legacy
|
|
56
|
+
`check.background.color`, then the resolved unselected control background.
|
|
57
|
+
- Unselected control hover: `control.hover.background`, otherwise retain the
|
|
58
|
+
unselected background.
|
|
59
|
+
- Selected control hover: `control.selected.hover.background`, otherwise retain
|
|
60
|
+
the selected background.
|
|
61
|
+
- Container hover: `container.hover.background`, then legacy
|
|
62
|
+
`hover.background.color`, otherwise retain `container.background`.
|
|
63
|
+
|
|
64
|
+
Legacy background tokens keep their `{ color: ... }` shape. An explicit new
|
|
65
|
+
token, including `'transparent'`, takes precedence over its corresponding legacy
|
|
66
|
+
fallback. Control hover fills use only the state-specific `control` tokens.
|
|
67
|
+
|
|
68
|
+
These existing theme properties are deprecated but retain runtime support:
|
|
69
|
+
|
|
70
|
+
| Property | Replacement |
|
|
71
|
+
| --- | --- |
|
|
72
|
+
| `background` | `control.background` |
|
|
73
|
+
| `check.background` | `control.selected.background` |
|
|
74
|
+
| `check.radius` | `control.round` |
|
|
75
|
+
| `border.color` | `control.border.color` |
|
|
76
|
+
| `border.width` | `control.border.size` |
|
|
77
|
+
| `color` | `control.selected.border.color` |
|
|
78
|
+
| `hover.border.color` | Both `control.hover.border.color` and `control.selected.hover.border.color` |
|
|
79
|
+
| `hover.background` | `container.hover.background` |
|
|
80
|
+
|
|
81
|
+
When migrating the normal border color, set `control.selected.border.color`
|
|
82
|
+
explicitly to preserve a distinct selected outline, since selected parts inherit
|
|
83
|
+
unspecified properties from the normal part.
|
|
84
|
+
|
|
85
|
+
Theme `extend` CSS runs after background tokens and can override them. An
|
|
86
|
+
existing `check.extend` that sets the control background takes precedence over
|
|
87
|
+
`control.background` and `control.selected.background`. Adjust that extension,
|
|
88
|
+
or set `check.extend: undefined`, when the theme tokens should determine the
|
|
89
|
+
fill. `container.extend` runs after the container and control hover styles.
|
|
90
|
+
|
|
91
|
+
When these tokens are omitted, the existing appearance is unchanged.
|
|
92
|
+
Render-function children own their control backgrounds, while container
|
|
93
|
+
backgrounds still apply. Existing border styling, custom icons, and
|
|
94
|
+
`RadioButtonGroup` integration with `Form` and `FormField` remain available.
|
|
@@ -9,11 +9,12 @@ var _propTypes = require("./propTypes");
|
|
|
9
9
|
var _useThemeValue2 = require("../../utils/useThemeValue");
|
|
10
10
|
var _excluded = ["a11yTitle", "checked", "children", "disabled", "focus", "focusIndicator", "id", "label", "name", "onChange"]; // SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
11
11
|
// SPDX-License-Identifier: Apache-2.0
|
|
12
|
-
|
|
12
|
+
var cache;
|
|
13
|
+
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, "default": e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
13
14
|
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); }
|
|
14
15
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
15
16
|
var RadioButton = exports.RadioButton = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
16
|
-
var _theme$radioButton$ba;
|
|
17
|
+
var _theme$radioButton$ba, _theme$radioButton$co;
|
|
17
18
|
var a11yTitle = _ref.a11yTitle,
|
|
18
19
|
checked = _ref.checked,
|
|
19
20
|
children = _ref.children,
|
|
@@ -40,10 +41,12 @@ var RadioButton = exports.RadioButton = /*#__PURE__*/(0, _react.forwardRef)(func
|
|
|
40
41
|
var Icon = theme.radioButton.icons.circle;
|
|
41
42
|
var borderColor = (0, _utils.normalizeColor)(theme.radioButton.border.color, theme);
|
|
42
43
|
var backgroundColor = (0, _utils.normalizeColor)((_theme$radioButton$ba = theme.radioButton.background) == null ? void 0 : _theme$radioButton$ba.color, theme);
|
|
44
|
+
var controlBackground = (_theme$radioButton$co = theme.radioButton.control) == null ? void 0 : _theme$radioButton$co.background;
|
|
43
45
|
if (checked) {
|
|
44
|
-
var _theme$radioButton$ch;
|
|
46
|
+
var _theme$radioButton$co2, _theme$radioButton$co3, _theme$radioButton$ch, _theme$radioButton$ch2;
|
|
45
47
|
borderColor = (0, _utils.normalizeColor)(theme.radioButton.color || 'control', theme);
|
|
46
|
-
|
|
48
|
+
controlBackground = (_theme$radioButton$co2 = (_theme$radioButton$co3 = theme.radioButton.control) == null || (_theme$radioButton$co3 = _theme$radioButton$co3.selected) == null ? void 0 : _theme$radioButton$co3.background) != null ? _theme$radioButton$co2 : (_theme$radioButton$ch = theme.radioButton.check) != null && (_theme$radioButton$ch = _theme$radioButton$ch.background) != null && _theme$radioButton$ch.color ? undefined : controlBackground;
|
|
49
|
+
if ((_theme$radioButton$ch2 = theme.radioButton.check) != null && (_theme$radioButton$ch2 = _theme$radioButton$ch2.background) != null && _theme$radioButton$ch2.color) {
|
|
47
50
|
backgroundColor = (0, _utils.normalizeColor)(theme.radioButton.check.background.color, theme);
|
|
48
51
|
}
|
|
49
52
|
}
|
|
@@ -60,6 +63,7 @@ var RadioButton = exports.RadioButton = /*#__PURE__*/(0, _react.forwardRef)(func
|
|
|
60
63
|
},
|
|
61
64
|
focus: focus,
|
|
62
65
|
focusIndicator: focusIndicator,
|
|
66
|
+
$keyboardFocus: focus && focusIndicator && usingKeyboard,
|
|
63
67
|
onFocus: function onFocus() {
|
|
64
68
|
return setFocus(true);
|
|
65
69
|
},
|
|
@@ -93,6 +97,7 @@ var RadioButton = exports.RadioButton = /*#__PURE__*/(0, _react.forwardRef)(func
|
|
|
93
97
|
focus: focus && focusIndicator,
|
|
94
98
|
hover: hover
|
|
95
99
|
}) : /*#__PURE__*/_react["default"].createElement(_StyledRadioButton.StyledRadioButtonBox, _extends({
|
|
100
|
+
$checked: checked,
|
|
96
101
|
focus: focus && focusIndicator && usingKeyboard,
|
|
97
102
|
align: "center",
|
|
98
103
|
justify: "center",
|
|
@@ -102,7 +107,10 @@ var RadioButton = exports.RadioButton = /*#__PURE__*/(0, _react.forwardRef)(func
|
|
|
102
107
|
size: theme.radioButton.border.width,
|
|
103
108
|
color: borderColor
|
|
104
109
|
},
|
|
105
|
-
backgroundColor: backgroundColor
|
|
110
|
+
backgroundColor: controlBackground != null ? undefined : backgroundColor
|
|
111
|
+
}, controlBackground != null && {
|
|
112
|
+
$controlBackground: controlBackground
|
|
113
|
+
}, {
|
|
106
114
|
round: theme.radioButton.check.radius
|
|
107
115
|
}, passThemeFlag), checked && (Icon ? /*#__PURE__*/_react["default"].createElement(Icon, {
|
|
108
116
|
theme: theme,
|
|
@@ -5,11 +5,81 @@ exports.StyledRadioButtonLabel = exports.StyledRadioButtonInput = exports.Styled
|
|
|
5
5
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
6
6
|
var _utils = require("../../utils");
|
|
7
7
|
var _Box = require("../Box");
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
var cache;
|
|
9
|
+
function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, "default": e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
|
|
10
|
+
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); } // SPDX-FileCopyrightText: © Hewlett Packard Enterprise Development LP
|
|
10
11
|
// SPDX-License-Identifier: Apache-2.0
|
|
11
|
-
|
|
12
12
|
var disabledStyle = "\n opacity: 0.5;\n cursor: default;\n";
|
|
13
|
+
var boxPartStyles = function boxPartStyles(part, props) {
|
|
14
|
+
var _props$responsive;
|
|
15
|
+
var theme = props.theme;
|
|
16
|
+
var responsive = (_props$responsive = props.responsive) != null ? _props$responsive : true;
|
|
17
|
+
var styles = [];
|
|
18
|
+
if (part.border !== undefined) {
|
|
19
|
+
if (part.border === false) styles.push('border: none;');else {
|
|
20
|
+
if ((0, _utils.hasSideSpecificBorder)(part.border)) styles.push('border: none;');
|
|
21
|
+
styles.push((0, _utils.borderStyle)(part.border, responsive, theme));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
if (part.elevation !== undefined) styles.push((0, _utils.elevationStyle)(part.elevation));
|
|
25
|
+
if (part.height !== undefined) styles.push((0, _utils.heightStyle)(part.height, theme));
|
|
26
|
+
if (part.width !== undefined) styles.push((0, _utils.widthStyle)(part.width, theme));
|
|
27
|
+
if (part.margin !== undefined) styles.push((0, _utils.edgeStyle)('margin', part.margin, responsive, theme.box.responsiveBreakpoint, theme));
|
|
28
|
+
if (part.pad !== undefined) styles.push((0, _utils.edgeStyle)('padding', part.pad, responsive, theme.box.responsiveBreakpoint, theme));
|
|
29
|
+
if (part.round !== undefined) styles.push(part.round === false ? 'border-radius: 0;' : (0, _utils.roundStyle)(part.round, responsive, theme));
|
|
30
|
+
return styles;
|
|
31
|
+
};
|
|
32
|
+
var _mergeControlBorder = function mergeControlBorder(base, override) {
|
|
33
|
+
if (override === undefined) return base;
|
|
34
|
+
if (Array.isArray(base) && override && typeof override === 'object' && !Array.isArray(override) && !override.side) return base.map(function (part) {
|
|
35
|
+
return _mergeControlBorder(part, override);
|
|
36
|
+
});
|
|
37
|
+
if (base && override && typeof base === 'object' && typeof override === 'object' && !Array.isArray(base) && !Array.isArray(override)) return _extends({}, base, override);
|
|
38
|
+
if (typeof base === 'string' && override && typeof override === 'object' && !Array.isArray(override)) return _extends({
|
|
39
|
+
side: base
|
|
40
|
+
}, override);
|
|
41
|
+
return override;
|
|
42
|
+
};
|
|
43
|
+
var controlHoverStyle = function controlHoverStyle(props) {
|
|
44
|
+
var _control$selected2;
|
|
45
|
+
var control = props.theme.radioButton.control;
|
|
46
|
+
if (props.disabled) return undefined;
|
|
47
|
+
var stateStyle = function stateStyle(state, checked) {
|
|
48
|
+
var part = _extends({}, state);
|
|
49
|
+
if ((state == null ? void 0 : state.border) !== undefined) {
|
|
50
|
+
var _control$selected;
|
|
51
|
+
var radioButton = props.theme.radioButton;
|
|
52
|
+
var baseBorder = {
|
|
53
|
+
size: radioButton.border.width,
|
|
54
|
+
color: checked ? radioButton.color || 'control' : radioButton.border.color
|
|
55
|
+
};
|
|
56
|
+
part.border = _mergeControlBorder(_mergeControlBorder(_mergeControlBorder(baseBorder, control == null ? void 0 : control.border), checked ? control == null || (_control$selected = control.selected) == null ? void 0 : _control$selected.border : undefined), state.border);
|
|
57
|
+
}
|
|
58
|
+
var styles = boxPartStyles(part, props);
|
|
59
|
+
if ((state == null ? void 0 : state.background) != null) styles.push((0, _utils.backgroundStyle)(state.background, props.theme, false));
|
|
60
|
+
if (props.$keyboardFocus) styles.push((0, _utils.focusStyle)());
|
|
61
|
+
return styles.length > 0 ? (0, _styledComponents.css)(["", ""], styles) : undefined;
|
|
62
|
+
};
|
|
63
|
+
var normal = stateStyle(control == null ? void 0 : control.hover, false);
|
|
64
|
+
var selected = stateStyle(control == null || (_control$selected2 = control.selected) == null ? void 0 : _control$selected2.hover, true);
|
|
65
|
+
if (normal === undefined && selected === undefined) return undefined;
|
|
66
|
+
return (0, _styledComponents.css)(["", " ", ""], normal && (0, _styledComponents.css)(["input:not([disabled]):not(:checked) + ", "{", "}"],
|
|
67
|
+
// eslint-disable-next-line no-use-before-define
|
|
68
|
+
StyledRadioButtonBox, normal), selected && (0, _styledComponents.css)(["input:not([disabled]):checked + ", "{", "}"],
|
|
69
|
+
// eslint-disable-next-line no-use-before-define
|
|
70
|
+
StyledRadioButtonBox, selected));
|
|
71
|
+
};
|
|
72
|
+
var containerBackgroundStyle = function containerBackgroundStyle(props) {
|
|
73
|
+
var _container$hover, _container$hover2, _hover$background;
|
|
74
|
+
var _props$theme$radioBut = props.theme.radioButton,
|
|
75
|
+
container = _props$theme$radioBut.container,
|
|
76
|
+
hover = _props$theme$radioBut.hover;
|
|
77
|
+
var normalStyles = boxPartStyles(container, props);
|
|
78
|
+
var hoverStyles = boxPartStyles(container.hover || {}, props);
|
|
79
|
+
if (container.background == null && ((_container$hover = container.hover) == null ? void 0 : _container$hover.background) == null && normalStyles.length === 0 && hoverStyles.length === 0) return undefined;
|
|
80
|
+
var hoverBackground = ((_container$hover2 = container.hover) == null ? void 0 : _container$hover2.background) != null ? (0, _utils.backgroundStyle)(container.hover.background, props.theme, false) : (hover == null || (_hover$background = hover.background) == null ? void 0 : _hover$background.color) !== undefined && (0, _styledComponents.css)(["background-color:", ";"], (0, _utils.normalizeColor)(hover.background.color, props.theme));
|
|
81
|
+
return (0, _styledComponents.css)(["", " ", " ", " ", ""], normalStyles.length > 0 && 'box-sizing: border-box;', normalStyles, (0, _utils.backgroundStyle)(container.background, props.theme, false), !props.disabled && (hoverBackground || hoverStyles.length > 0) && (0, _styledComponents.css)(["&:hover{", " ", "}", ""], hoverBackground, hoverStyles, props.focus && !props.focusIndicator && (0, _styledComponents.css)(["", " ", ""], hoverBackground, hoverStyles)));
|
|
82
|
+
};
|
|
13
83
|
var StyledRadioButtonContainer = exports.StyledRadioButtonContainer = _styledComponents["default"].label.withConfig(_utils.styledComponentsConfig).withConfig({
|
|
14
84
|
displayName: "StyledRadioButton__StyledRadioButtonContainer",
|
|
15
85
|
componentId: "sc-g1f6ld-0"
|
|
@@ -20,11 +90,18 @@ var StyledRadioButtonContainer = exports.StyledRadioButtonContainer = _styledCom
|
|
|
20
90
|
}, function (props) {
|
|
21
91
|
return (0, _utils.normalizeColor)(props.theme.radioButton.hover.border.color, props.theme);
|
|
22
92
|
}, function (props) {
|
|
23
|
-
|
|
93
|
+
var _props$theme$radioBut2;
|
|
94
|
+
return (0, _utils.normalizeColor)(!props.disabled && ((_props$theme$radioBut2 = props.theme.radioButton.container.hover) == null ? void 0 : _props$theme$radioBut2.background) == null && props.theme.radioButton.hover && props.theme.radioButton.hover.background && props.theme.radioButton.hover.background.color, props.theme);
|
|
24
95
|
}, function (props) {
|
|
25
|
-
|
|
96
|
+
var _props$theme$radioBut3;
|
|
97
|
+
return props.focus && !props.focusIndicator && "\n input:not([disabled]) + div,\n input:not([disabled]) + span {\n border-color: " + (0, _utils.normalizeColor)(props.theme.radioButton.hover.border.color, props.theme) + ";\n }\n background-color: " + (0, _utils.normalizeColor)(!props.disabled && ((_props$theme$radioBut3 = props.theme.radioButton.container.hover) == null ? void 0 : _props$theme$radioBut3.background) == null && props.theme.radioButton.hover && props.theme.radioButton.hover.background && props.theme.radioButton.hover.background.color, props.theme) + ";\n ";
|
|
26
98
|
}, function (props) {
|
|
27
|
-
|
|
99
|
+
var controlStyle = controlHoverStyle(props);
|
|
100
|
+
var containerStyle = containerBackgroundStyle(props);
|
|
101
|
+
if (containerStyle) {
|
|
102
|
+
return (0, _styledComponents.css)(["", " ", " ", ""], containerStyle, controlStyle && (0, _styledComponents.css)(["&:hover{", "}", ""], controlStyle, props.focus && !props.focusIndicator && controlStyle), props.theme.radioButton.container.extend);
|
|
103
|
+
}
|
|
104
|
+
return controlStyle ? (0, _styledComponents.css)(["&:hover{", "}", " ", ""], controlStyle, props.focus && !props.focusIndicator && controlStyle, props.theme.radioButton.container.extend) : props.theme.radioButton.container.extend;
|
|
28
105
|
});
|
|
29
106
|
var StyledRadioButtonInput = exports.StyledRadioButtonInput = _styledComponents["default"].input.withConfig(_utils.styledComponentsConfig).withConfig({
|
|
30
107
|
displayName: "StyledRadioButton__StyledRadioButtonInput",
|
|
@@ -53,12 +130,28 @@ var StyledRadioButtonIcon = exports.StyledRadioButtonIcon = _styledComponents["d
|
|
|
53
130
|
var StyledRadioButtonBox = exports.StyledRadioButtonBox = (0, _styledComponents["default"])(_Box.Box).withConfig({
|
|
54
131
|
displayName: "StyledRadioButton__StyledRadioButtonBox",
|
|
55
132
|
componentId: "sc-g1f6ld-4"
|
|
56
|
-
})(["background-color:", ";transform:scale(1);", ";"
|
|
133
|
+
})(["background-color:", ";transform:scale(1);", ";"], function (props) {
|
|
57
134
|
return props.backgroundColor;
|
|
58
135
|
}, function (props) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
136
|
+
var _check$background;
|
|
137
|
+
var _props$theme$radioBut4 = props.theme.radioButton,
|
|
138
|
+
control = _props$theme$radioBut4.control,
|
|
139
|
+
check = _props$theme$radioBut4.check;
|
|
140
|
+
var selected = props.$checked ? control == null ? void 0 : control.selected : undefined;
|
|
141
|
+
var focus = props.focus && (0, _utils.focusStyle)();
|
|
142
|
+
var part = _extends({}, control, selected);
|
|
143
|
+
if ((control == null ? void 0 : control.border) !== undefined || (selected == null ? void 0 : selected.border) !== undefined) part.border = _mergeControlBorder(_mergeControlBorder(props.border, control == null ? void 0 : control.border), selected == null ? void 0 : selected.border);
|
|
144
|
+
var styles = boxPartStyles(part, props);
|
|
145
|
+
if (props.$checked === undefined && (control != null && control.selected || (_check$background = check.background) != null && _check$background.color)) {
|
|
146
|
+
var _control$selected3, _control$selected4, _ref, _control$selected$bac, _control$selected5, _check$background2;
|
|
147
|
+
var selectedPart = _extends({}, control, control == null ? void 0 : control.selected);
|
|
148
|
+
if ((control == null ? void 0 : control.border) !== undefined || (control == null || (_control$selected3 = control.selected) == null ? void 0 : _control$selected3.border) !== undefined) selectedPart.border = _mergeControlBorder(_mergeControlBorder(props.border, control == null ? void 0 : control.border), control == null || (_control$selected4 = control.selected) == null ? void 0 : _control$selected4.border);
|
|
149
|
+
var selectedBackground = (_ref = (_control$selected$bac = control == null || (_control$selected5 = control.selected) == null ? void 0 : _control$selected5.background) != null ? _control$selected$bac : (_check$background2 = check.background) == null ? void 0 : _check$background2.color) != null ? _ref : control == null ? void 0 : control.background;
|
|
150
|
+
styles.push((0, _styledComponents.css)(["input:checked + &{", " ", " ", " ", "}"], boxPartStyles(selectedPart, props), selectedBackground != null && (0, _utils.backgroundStyle)(selectedBackground, props.theme, false), focus, check.extend));
|
|
151
|
+
}
|
|
152
|
+
if (props.$controlBackground != null) return (0, _styledComponents.css)(["", " ", " ", " ", ""], styles, (0, _utils.backgroundStyle)(props.$controlBackground, props.theme, false), focus, check.extend);
|
|
153
|
+
if (styles.length === 0) return focus ? (0, _styledComponents.css)(["", " ", ""], focus, check.extend) : check.extend;
|
|
154
|
+
return (0, _styledComponents.css)(["", " ", " ", ""], styles, focus, check.extend);
|
|
62
155
|
});
|
|
63
156
|
var StyledRadioButton = exports.StyledRadioButton = (0, _styledComponents["default"])(_Box.Box).withConfig({
|
|
64
157
|
displayName: "StyledRadioButton",
|