grommet 2.37.0 → 2.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all/stories/AllComponents.js +2 -2
- package/components/Accordion/Accordion.js +2 -2
- package/components/Accordion/stories/CustomHeader.js +1 -1
- package/components/Accordion/stories/CustomThemed/Custom.js +1 -1
- package/components/Accordion/stories/Simple.js +1 -1
- package/components/AccordionPanel/AccordionPanel.js +2 -2
- package/components/Anchor/Anchor.js +2 -2
- package/components/Anchor/StyledAnchor.js +2 -8
- package/components/Avatar/Avatar.js +2 -2
- package/components/Box/Box.js +2 -2
- package/components/Box/StyledBox.js +3 -3
- package/components/Box/stories/BackgroundThemed.js +1 -1
- package/components/Button/Badge.js +1 -1
- package/components/Button/BusyAnimation.js +3 -2
- package/components/Button/Button.js +3 -2
- package/components/Button/StyledButton.js +3 -2
- package/components/Button/StyledButtonKind.js +5 -5
- package/components/Button/stories/Busy.js +1 -1
- package/components/Calendar/Calendar.js +2 -2
- package/components/Calendar/StyledCalendar.js +7 -7
- package/components/Calendar/stories/ActiveDate.js +1 -1
- package/components/Calendar/stories/CustomDay.js +1 -1
- package/components/Calendar/stories/CustomHeader.js +1 -1
- package/components/Calendar/stories/CustomThemed/CustomSizeHeading.js +1 -1
- package/components/Calendar/stories/Dual.js +1 -1
- package/components/Calendar/stories/Multiple.js +1 -1
- package/components/Calendar/stories/ShowAdjacentDays.js +1 -1
- package/components/Calendar/stories/Simple.js +1 -1
- package/components/Card/Card.js +1 -1
- package/components/Card/stories/CustomThemed/Clickable.js +1 -1
- package/components/Card/stories/CustomThemed/Themed.js +1 -1
- package/components/CardBody/CardBody.js +1 -1
- package/components/CardFooter/CardFooter.js +1 -1
- package/components/CardHeader/CardHeader.js +1 -1
- package/components/Cards/Cards.js +2 -2
- package/components/Carousel/Carousel.js +2 -2
- package/components/Carousel/CarouselChild.js +1 -1
- package/components/Carousel/StyledCarousel.js +1 -1
- package/components/Carousel/stories/CustomThemed/Custom.js +1 -1
- package/components/Chart/Chart.js +2 -2
- package/components/Chart/StyledChart.js +2 -2
- package/components/Chart/stories/Rich.js +1 -1
- package/components/Chart/stories/Scan.js +1 -1
- package/components/Chart/stories/Window.js +1 -1
- package/components/Chart/stories/Zoom.js +1 -1
- package/components/CheckBox/CheckBox.js +2 -5
- package/components/CheckBox/StyledCheckBox.js +12 -11
- package/components/CheckBox/stories/CustomThemed/Custom.js +1 -1
- package/components/CheckBox/stories/CustomThemed/CustomToggle.js +1 -1
- package/components/CheckBox/stories/Indeterminate.js +1 -1
- package/components/CheckBox/stories/InsideButton.js +1 -1
- package/components/CheckBox/stories/NoLabel.js +2 -2
- package/components/CheckBox/stories/Simple.js +2 -2
- package/components/CheckBox/stories/WithStickyDiv.js +1 -1
- package/components/CheckBoxGroup/CheckBoxGroup.js +2 -2
- package/components/CheckBoxGroup/stories/Children.js +1 -1
- package/components/CheckBoxGroup/stories/InitialValues.js +1 -1
- package/components/Clock/Analog.js +2 -2
- package/components/Clock/Clock.js +2 -2
- package/components/Clock/Digital.js +2 -2
- package/components/Clock/StyledClock.js +8 -8
- package/components/Collapsible/Collapsible.js +1 -1
- package/components/Collapsible/stories/Nested.js +1 -1
- package/components/Data/Data.js +2 -2
- package/components/Data/DataForm.js +2 -2
- package/components/Data/stories/Infinite.js +2 -2
- package/components/Data/stories/Inline.js +2 -2
- package/components/Data/stories/OnSelect.js +2 -2
- package/components/Data/stories/SpaceX.js +2 -2
- package/components/Data/stories/StarWars.js +2 -2
- package/components/DataChart/DataChart.js +2 -2
- package/components/DataChart/Detail.js +1 -1
- package/components/DataChart/Legend.js +1 -1
- package/components/DataChart/Swatch.js +1 -1
- package/components/DataChart/XAxis.js +2 -2
- package/components/DataChart/XGuide.js +1 -1
- package/components/DataChart/YAxis.js +1 -1
- package/components/DataChart/YGuide.js +1 -1
- package/components/DataChart/stories/Prediction.js +1 -1
- package/components/DataClearFilters/DataClearFilters.js +2 -2
- package/components/DataClearFilters/stories/Simple.js +1 -1
- package/components/DataFilter/DataFilter.js +2 -2
- package/components/DataFilters/DataFilters.js +2 -2
- package/components/DataSearch/DataSearch.js +2 -2
- package/components/DataSort/DataSort.js +2 -2
- package/components/DataSummary/DataSummary.js +2 -2
- package/components/DataTable/Body.js +2 -2
- package/components/DataTable/Cell.js +2 -2
- package/components/DataTable/DataTable.js +2 -2
- package/components/DataTable/ExpanderCell.js +2 -2
- package/components/DataTable/Footer.js +2 -2
- package/components/DataTable/GroupedBody.js +2 -2
- package/components/DataTable/Header.js +2 -2
- package/components/DataTable/PlaceholderBody.js +1 -1
- package/components/DataTable/Resizer.js +1 -1
- package/components/DataTable/Searcher.js +1 -1
- package/components/DataTable/Sorter.js +1 -1
- package/components/DataTable/StyledDataTable.js +2 -2
- package/components/DataTable/stories/ControlledGrouped.js +1 -1
- package/components/DataTable/stories/CustomThemed/Custom.js +1 -1
- package/components/DataTable/stories/OnUpdate.js +1 -1
- package/components/DataTable/stories/SpaceX.js +2 -2
- package/components/DataTable/stories/SpaceXUngrouped.js +2 -2
- package/components/DataTableColumns/DataTableColumns.js +2 -2
- package/components/DataTableGroupBy/DataTableGroupBy.js +2 -2
- package/components/DataView/DataView.js +2 -2
- package/components/DateInput/DateInput.js +2 -2
- package/components/DateInput/stories/FormatInline.js +1 -1
- package/components/Diagram/Diagram.js +2 -2
- package/components/Diagram/StyledDiagram.js +3 -2
- package/components/Diagram/stories/Animated.js +1 -1
- package/components/Diagram/stories/Progressing.js +2 -2
- package/components/Distribution/Distribution.js +1 -1
- package/components/Drop/Drop.js +2 -2
- package/components/Drop/DropContainer.js +2 -4
- package/components/Drop/StyledDrop.js +3 -2
- package/components/Drop/stories/CustomThemed/Lazy.js +1 -1
- package/components/Drop/stories/CustomThemed/Themed.js +1 -1
- package/components/Drop/stories/Inline.js +1 -1
- package/components/Drop/stories/Meter.js +1 -1
- package/components/Drop/stories/Multiple.js +1 -1
- package/components/Drop/stories/Overflow.js +1 -1
- package/components/Drop/stories/Plain.js +1 -1
- package/components/Drop/stories/Progressive.js +1 -1
- package/components/Drop/stories/Simple.js +1 -1
- package/components/Drop/stories/Styled.js +1 -1
- package/components/Drop/stories/TrapFocus.js +1 -1
- package/components/DropButton/DropButton.js +2 -2
- package/components/FileInput/FileInput.js +2 -2
- package/components/FileInput/StyledFileInput.js +1 -1
- package/components/FocusedContainer.js +2 -2
- package/components/Form/Form.js +2 -2
- package/components/Form/FormContext.js +1 -1
- package/components/Form/stories/ArrayOfFormFields.js +1 -1
- package/components/Form/stories/Controlled.js +1 -1
- package/components/Form/stories/ControlledInput.js +1 -1
- package/components/Form/stories/ControlledInputLazy.js +1 -1
- package/components/Form/stories/ControlledLazy.js +1 -1
- package/components/Form/stories/CustomThemed/FieldBorderPosition.js +1 -1
- package/components/Form/stories/CustomThemed/FieldCustomStates.js +1 -1
- package/components/Form/stories/DynamicFields.js +1 -1
- package/components/Form/stories/FieldStates.js +1 -1
- package/components/Form/stories/SolicitedFeedback.js +1 -1
- package/components/Form/stories/UnsolicitedFeedback.js +1 -1
- package/components/Form/stories/ValidateOnChange.js +1 -1
- package/components/Form/stories/ValidateOnMount.js +1 -1
- package/components/FormField/FormField.js +2 -2
- package/components/FormField/stories/Simple.js +1 -1
- package/components/Grid/Grid.js +2 -2
- package/components/Grid/StyledGrid.js +2 -2
- package/components/Grid/stories/CustomThemed/Responsive.js +1 -1
- package/components/Grid/stories/ResponsiveCards.js +1 -1
- package/components/Grommet/Grommet.js +2 -2
- package/components/Grommet/StyledGrommet.js +2 -2
- package/components/Header/Header.js +2 -2
- package/components/Header/stories/Sticky.js +1 -1
- package/components/Heading/Heading.js +2 -2
- package/components/Heading/HeadingSkeleton.js +1 -1
- package/components/Heading/StyledHeading.js +2 -2
- package/components/Image/Image.js +2 -2
- package/components/Image/StyledImage.js +2 -2
- package/components/InfiniteScroll/InfiniteScroll.js +1 -1
- package/components/Keyboard/Keyboard.js +1 -1
- package/components/Layer/Layer.js +1 -1
- package/components/Layer/LayerContainer.js +3 -3
- package/components/Layer/StyledLayer.js +7 -7
- package/components/List/List.js +3 -3
- package/components/List/stories/Order.js +1 -1
- package/components/List/stories/Pinned.js +1 -1
- package/components/Markdown/Markdown.js +2 -2
- package/components/Markdown/stories/Override.js +2 -1
- package/components/MaskedInput/MaskedInput.js +2 -2
- package/components/MaskedInput/StyledMaskedInput.js +3 -3
- package/components/Menu/Menu.js +3 -3
- package/components/Meter/Bar.js +2 -2
- package/components/Meter/Circle.js +2 -2
- package/components/Meter/Meter.js +2 -2
- package/components/Meter/StyledMeter.js +2 -2
- package/components/Meter/stories/Circle.js +1 -1
- package/components/Meter/stories/VerticalBarMultiple.js +1 -1
- package/components/NameValueList/NameValueList.js +2 -2
- package/components/NameValuePair/NameValuePair.js +1 -1
- package/components/Nav/stories/CustomThemed/JustifySidebar.js +2 -2
- package/components/Nav/stories/Sidebar.js +2 -2
- package/components/Notification/Notification.js +2 -2
- package/components/Notification/stories/Global.js +1 -1
- package/components/Notification/stories/Title.js +1 -1
- package/components/Notification/stories/TitleAndMessage.js +1 -1
- package/components/Page/Page.js +2 -2
- package/components/Page/stories/PageNotificaton.js +1 -1
- package/components/PageContent/PageContent.js +2 -2
- package/components/PageHeader/PageHeader.js +2 -2
- package/components/PageHeader/stories/MultipleActions.js +1 -1
- package/components/Pagination/PageControl.js +2 -2
- package/components/Pagination/Pagination.js +2 -2
- package/components/Pagination/PaginationStep.js +2 -2
- package/components/Pagination/PaginationSummary.js +2 -2
- package/components/Pagination/StyledPageControl.js +2 -1
- package/components/Pagination/stories/Grid.js +1 -1
- package/components/Paragraph/Paragraph.js +2 -2
- package/components/Paragraph/ParagraphSkeleton.js +1 -1
- package/components/Paragraph/StyledParagraph.js +2 -2
- package/components/RadioButton/RadioButton.js +2 -5
- package/components/RadioButton/StyledRadioButton.js +9 -8
- package/components/RadioButtonGroup/RadioButtonGroup.js +2 -2
- package/components/RadioButtonGroup/stories/Children.js +1 -1
- package/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +2 -2
- package/components/RadioButtonGroup/stories/Disabled.js +2 -2
- package/components/RangeInput/RangeInput.js +3 -3
- package/components/RangeInput/StyledRangeInput.js +2 -2
- package/components/RangeSelector/EdgeControl.js +2 -2
- package/components/RangeSelector/RangeSelector.js +2 -2
- package/components/RangeSelector/stories/Basics.js +1 -1
- package/components/RangeSelector/stories/CustomThemed/Custom.js +2 -2
- package/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +2 -2
- package/components/RangeSelector/stories/Label.js +1 -1
- package/components/RangeSelector/stories/Simple.js +1 -1
- package/components/RangeSelector/stories/Step.js +2 -2
- package/components/RangeSelector/stories/Thin.js +1 -1
- package/components/RangeSelector/stories/Vertical.js +2 -2
- package/components/RoutedAnchor/RoutedAnchor.js +3 -3
- package/components/RoutedButton/RoutedButton.js +3 -3
- package/components/Select/DefaultSelectTextInput.js +2 -2
- package/components/Select/Select.js +2 -2
- package/components/Select/SelectContainer.js +2 -3
- package/components/Select/StyledSelect.js +4 -3
- package/components/Select/stories/ChildrenRender.js +1 -1
- package/components/Select/stories/Clear.js +1 -1
- package/components/Select/stories/Controlled.js +1 -1
- package/components/Select/stories/CustomThemed/CustomSearch.js +1 -1
- package/components/Select/stories/Disabled.js +1 -1
- package/components/Select/stories/InsideFormField.js +1 -1
- package/components/Select/stories/Multiple.js +1 -1
- package/components/Select/stories/ObjectOptions.js +1 -1
- package/components/Select/stories/Search.js +1 -1
- package/components/Select/stories/Simple.js +1 -1
- package/components/Select/stories/ValueLabel.js +1 -1
- package/components/Select/stories/components/SearchBorderBox.js +2 -2
- package/components/Select/stories/components/SearchInput.js +2 -2
- package/components/SelectMultiple/SelectMultiple.js +2 -2
- package/components/SelectMultiple/SelectMultipleContainer.js +1 -2
- package/components/SelectMultiple/SelectMultipleValue.js +1 -1
- package/components/SelectMultiple/SelectionSummary.js +1 -1
- package/components/SelectMultiple/stories/CustomMessages.js +1 -1
- package/components/SelectMultiple/stories/Default.js +1 -1
- package/components/SelectMultiple/stories/Disabled.js +1 -1
- package/components/SelectMultiple/stories/FormField.js +1 -1
- package/components/SelectMultiple/stories/Help.js +1 -1
- package/components/SelectMultiple/stories/Limited.js +1 -1
- package/components/SelectMultiple/stories/ObjectOptions.js +1 -1
- package/components/SelectMultiple/stories/ShowSelectedInline.js +1 -1
- package/components/Sidebar/Sidebar.js +1 -1
- package/components/Sidebar/stories/Labels.js +1 -1
- package/components/Skeleton/Skeleton.js +2 -2
- package/components/Skeleton/SkeletonContext.js +1 -1
- package/components/Skeleton/StyledSkeleton.js +1 -1
- package/components/Skeleton/stories/CustomThemed/Custom.js +1 -1
- package/components/Skeleton/stories/GridContainer.js +2 -2
- package/components/Skeleton/stories/Group.js +1 -1
- package/components/Skeleton/stories/Individual.js +2 -2
- package/components/SkipLink/SkipLink.js +2 -2
- package/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
- package/components/SkipLinks/SkipLinks.js +1 -1
- package/components/Spinner/Spinner.js +2 -2
- package/components/Spinner/stories/Animation.js +1 -1
- package/components/Spinner/stories/Announced.js +1 -1
- package/components/Stack/Stack.js +2 -2
- package/components/Stack/StyledStack.js +3 -3
- package/components/StarRating/StarRating.js +2 -2
- package/components/Tab/StyledTab.js +3 -2
- package/components/Tab/Tab.js +2 -4
- package/components/Table/StyledTable.js +8 -8
- package/components/Table/Table.js +2 -2
- package/components/Table/stories/InfiniteScrollInTable.js +1 -1
- package/components/TableBody/TableBody.js +1 -1
- package/components/TableCell/TableCell.js +2 -2
- package/components/TableFooter/TableFooter.js +1 -1
- package/components/TableHeader/TableHeader.js +1 -1
- package/components/TableRow/TableRow.js +1 -1
- package/components/Tabs/StyledTabs.js +5 -4
- package/components/Tabs/Tabs.js +2 -4
- package/components/Tabs/stories/CustomThemed/States.js +1 -1
- package/components/Tabs/stories/Responsive.js +1 -1
- package/components/Tag/Tag.js +2 -2
- package/components/Text/StyledText.js +2 -6
- package/components/Text/Text.js +2 -2
- package/components/Text/TextSkeleton.js +2 -2
- package/components/TextArea/StyledTextArea.js +2 -2
- package/components/TextArea/TextArea.js +2 -2
- package/components/TextArea/stories/CustomThemed/Themed.js +1 -1
- package/components/TextArea/stories/InsideFormField.js +1 -1
- package/components/TextArea/stories/NonResizable.js +1 -1
- package/components/TextArea/stories/Simple.js +1 -1
- package/components/TextInput/CopyButton.js +1 -1
- package/components/TextInput/StyledTextInput.js +6 -6
- package/components/TextInput/TextInput.js +2 -2
- package/components/TextInput/stories/InsideFormField.js +1 -1
- package/components/TextInput/stories/Simple.js +6 -1
- package/components/TextInput/stories/WithTags.js +1 -1
- package/components/ThumbsRating/ThumbsRating.js +1 -1
- package/components/Tip/Tip.js +1 -1
- package/components/Tip/stories/HeaderActions.js +1 -1
- package/components/ToggleGroup/ToggleGroup.js +2 -2
- package/components/ToggleGroup/stories/Controlled.js +1 -1
- package/components/Toolbar/Toolbar.js +2 -2
- package/components/Video/StyledVideo.js +5 -5
- package/components/Video/Video.js +2 -2
- package/components/WorldMap/StyledWorldMap.js +1 -1
- package/components/WorldMap/WorldMap.js +2 -2
- package/components/index.d.ts +1 -0
- package/contexts/AnalyticsContext/AnalyticsContext.js +1 -1
- package/contexts/AnnounceContext/stories/Polite.js +1 -1
- package/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
- package/contexts/ThemeContext/stories/ThemeContextExtend.js +1 -1
- package/es6/all/stories/AllComponents.js +1 -1
- package/es6/components/Accordion/Accordion.js +1 -1
- package/es6/components/Accordion/stories/CustomThemed/Custom.js +1 -1
- package/es6/components/Accordion/stories/Simple.js +1 -1
- package/es6/components/AccordionPanel/AccordionPanel.js +1 -1
- package/es6/components/Anchor/Anchor.js +1 -1
- package/es6/components/Anchor/StyledAnchor.js +2 -8
- package/es6/components/Avatar/Avatar.js +1 -1
- package/es6/components/Box/Box.js +1 -1
- package/es6/components/Box/StyledBox.js +3 -3
- package/es6/components/Button/BusyAnimation.js +2 -1
- package/es6/components/Button/Button.js +2 -1
- package/es6/components/Button/StyledButton.js +2 -1
- package/es6/components/Button/StyledButtonKind.js +3 -4
- package/es6/components/Calendar/Calendar.js +1 -1
- package/es6/components/Calendar/StyledCalendar.js +7 -7
- package/es6/components/Card/stories/CustomThemed/Clickable.js +1 -1
- package/es6/components/Card/stories/CustomThemed/Themed.js +1 -1
- package/es6/components/Cards/Cards.js +1 -1
- package/es6/components/Carousel/Carousel.js +1 -1
- package/es6/components/Carousel/stories/CustomThemed/Custom.js +1 -1
- package/es6/components/Chart/Chart.js +1 -1
- package/es6/components/Chart/StyledChart.js +2 -2
- package/es6/components/CheckBox/CheckBox.js +1 -4
- package/es6/components/CheckBox/StyledCheckBox.js +12 -11
- package/es6/components/CheckBox/stories/NoLabel.js +1 -1
- package/es6/components/CheckBox/stories/Simple.js +1 -1
- package/es6/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
- package/es6/components/Clock/Analog.js +1 -1
- package/es6/components/Clock/Clock.js +1 -1
- package/es6/components/Clock/Digital.js +1 -1
- package/es6/components/Clock/StyledClock.js +8 -8
- package/es6/components/Collapsible/stories/Nested.js +1 -1
- package/es6/components/Data/Data.js +1 -1
- package/es6/components/Data/DataForm.js +1 -1
- package/es6/components/Data/stories/Infinite.js +1 -1
- package/es6/components/Data/stories/Inline.js +1 -1
- package/es6/components/Data/stories/OnSelect.js +1 -1
- package/es6/components/Data/stories/SpaceX.js +1 -1
- package/es6/components/Data/stories/StarWars.js +1 -1
- package/es6/components/DataChart/DataChart.js +1 -1
- package/es6/components/DataChart/XAxis.js +1 -1
- package/es6/components/DataClearFilters/DataClearFilters.js +1 -1
- package/es6/components/DataFilter/DataFilter.js +1 -1
- package/es6/components/DataFilters/DataFilters.js +1 -1
- package/es6/components/DataSearch/DataSearch.js +1 -1
- package/es6/components/DataSort/DataSort.js +1 -1
- package/es6/components/DataSummary/DataSummary.js +1 -1
- package/es6/components/DataTable/Body.js +1 -1
- package/es6/components/DataTable/Cell.js +1 -1
- package/es6/components/DataTable/DataTable.js +1 -1
- package/es6/components/DataTable/ExpanderCell.js +1 -1
- package/es6/components/DataTable/Footer.js +1 -1
- package/es6/components/DataTable/GroupedBody.js +1 -1
- package/es6/components/DataTable/Header.js +1 -1
- package/es6/components/DataTable/StyledDataTable.js +2 -2
- package/es6/components/DataTable/stories/CustomThemed/Custom.js +1 -1
- package/es6/components/DataTable/stories/SpaceX.js +1 -1
- package/es6/components/DataTable/stories/SpaceXUngrouped.js +1 -1
- package/es6/components/DataTableColumns/DataTableColumns.js +1 -1
- package/es6/components/DataTableGroupBy/DataTableGroupBy.js +1 -1
- package/es6/components/DataView/DataView.js +1 -1
- package/es6/components/DateInput/DateInput.js +1 -1
- package/es6/components/Diagram/Diagram.js +1 -1
- package/es6/components/Diagram/StyledDiagram.js +2 -1
- package/es6/components/Diagram/stories/Progressing.js +1 -1
- package/es6/components/Distribution/Distribution.js +1 -1
- package/es6/components/Drop/Drop.js +1 -1
- package/es6/components/Drop/DropContainer.js +1 -3
- package/es6/components/Drop/StyledDrop.js +2 -1
- package/es6/components/DropButton/DropButton.js +1 -1
- package/es6/components/FileInput/FileInput.js +1 -1
- package/es6/components/FileInput/StyledFileInput.js +2 -2
- package/es6/components/FocusedContainer.js +1 -1
- package/es6/components/Form/Form.js +1 -1
- package/es6/components/FormField/FormField.js +1 -1
- package/es6/components/Grid/Grid.js +1 -1
- package/es6/components/Grid/StyledGrid.js +2 -2
- package/es6/components/Grid/stories/CustomThemed/Responsive.js +1 -1
- package/es6/components/Grommet/Grommet.js +1 -1
- package/es6/components/Grommet/StyledGrommet.js +2 -2
- package/es6/components/Header/Header.js +1 -1
- package/es6/components/Heading/Heading.js +1 -1
- package/es6/components/Heading/StyledHeading.js +2 -2
- package/es6/components/Image/Image.js +1 -1
- package/es6/components/Image/StyledImage.js +2 -2
- package/es6/components/Keyboard/Keyboard.js +1 -1
- package/es6/components/Layer/LayerContainer.js +3 -3
- package/es6/components/Layer/StyledLayer.js +6 -7
- package/es6/components/List/List.js +3 -3
- package/es6/components/Markdown/Markdown.js +1 -1
- package/es6/components/Markdown/stories/Override.js +2 -1
- package/es6/components/MaskedInput/MaskedInput.js +1 -1
- package/es6/components/MaskedInput/StyledMaskedInput.js +4 -4
- package/es6/components/Menu/Menu.js +2 -2
- package/es6/components/Meter/Bar.js +1 -1
- package/es6/components/Meter/Circle.js +1 -1
- package/es6/components/Meter/Meter.js +1 -1
- package/es6/components/Meter/StyledMeter.js +2 -2
- package/es6/components/NameValueList/NameValueList.js +1 -1
- package/es6/components/Nav/stories/CustomThemed/JustifySidebar.js +1 -1
- package/es6/components/Nav/stories/Sidebar.js +1 -1
- package/es6/components/Notification/Notification.js +1 -1
- package/es6/components/Page/Page.js +1 -1
- package/es6/components/PageContent/PageContent.js +1 -1
- package/es6/components/PageHeader/PageHeader.js +1 -1
- package/es6/components/Pagination/PageControl.js +1 -1
- package/es6/components/Pagination/Pagination.js +1 -1
- package/es6/components/Pagination/PaginationStep.js +1 -1
- package/es6/components/Pagination/PaginationSummary.js +1 -1
- package/es6/components/Pagination/StyledPageControl.js +2 -1
- package/es6/components/Paragraph/Paragraph.js +1 -1
- package/es6/components/Paragraph/StyledParagraph.js +2 -2
- package/es6/components/RadioButton/RadioButton.js +1 -4
- package/es6/components/RadioButton/StyledRadioButton.js +9 -8
- package/es6/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/es6/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +1 -1
- package/es6/components/RadioButtonGroup/stories/Disabled.js +1 -1
- package/es6/components/RangeInput/RangeInput.js +2 -2
- package/es6/components/RangeInput/StyledRangeInput.js +2 -2
- package/es6/components/RangeSelector/EdgeControl.js +1 -1
- package/es6/components/RangeSelector/RangeSelector.js +1 -1
- package/es6/components/RangeSelector/stories/CustomThemed/Custom.js +1 -1
- package/es6/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +1 -1
- package/es6/components/RangeSelector/stories/Step.js +1 -1
- package/es6/components/RangeSelector/stories/Vertical.js +1 -1
- package/es6/components/RoutedAnchor/RoutedAnchor.js +2 -2
- package/es6/components/RoutedButton/RoutedButton.js +2 -2
- package/es6/components/Select/DefaultSelectTextInput.js +1 -1
- package/es6/components/Select/Select.js +1 -1
- package/es6/components/Select/SelectContainer.js +1 -2
- package/es6/components/Select/StyledSelect.js +5 -4
- package/es6/components/Select/stories/components/SearchBorderBox.js +1 -1
- package/es6/components/Select/stories/components/SearchInput.js +1 -1
- package/es6/components/SelectMultiple/SelectMultiple.js +1 -1
- package/es6/components/SelectMultiple/SelectMultipleContainer.js +0 -1
- package/es6/components/Sidebar/Sidebar.js +1 -1
- package/es6/components/Sidebar/stories/Labels.js +1 -1
- package/es6/components/Skeleton/Skeleton.js +1 -1
- package/es6/components/Skeleton/StyledSkeleton.js +2 -2
- package/es6/components/Skeleton/stories/GridContainer.js +1 -1
- package/es6/components/Skeleton/stories/Individual.js +1 -1
- package/es6/components/SkipLink/SkipLink.js +1 -1
- package/es6/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
- package/es6/components/Spinner/Spinner.js +1 -1
- package/es6/components/Stack/Stack.js +1 -1
- package/es6/components/Stack/StyledStack.js +3 -3
- package/es6/components/StarRating/StarRating.js +1 -1
- package/es6/components/Tab/StyledTab.js +2 -1
- package/es6/components/Tab/Tab.js +1 -3
- package/es6/components/Table/StyledTable.js +8 -8
- package/es6/components/Table/Table.js +1 -1
- package/es6/components/TableCell/TableCell.js +1 -1
- package/es6/components/Tabs/StyledTabs.js +5 -4
- package/es6/components/Tabs/Tabs.js +1 -3
- package/es6/components/Tag/Tag.js +1 -1
- package/es6/components/Text/StyledText.js +2 -6
- package/es6/components/Text/Text.js +1 -1
- package/es6/components/Text/TextSkeleton.js +1 -1
- package/es6/components/TextArea/StyledTextArea.js +2 -2
- package/es6/components/TextArea/TextArea.js +1 -1
- package/es6/components/TextInput/StyledTextInput.js +6 -6
- package/es6/components/TextInput/TextInput.js +1 -1
- package/es6/components/TextInput/stories/Simple.js +7 -2
- package/es6/components/TextInput/stories/WithTags.js +1 -1
- package/es6/components/ToggleGroup/ToggleGroup.js +1 -1
- package/es6/components/Toolbar/Toolbar.js +1 -1
- package/es6/components/Video/StyledVideo.js +5 -5
- package/es6/components/Video/Video.js +1 -1
- package/es6/components/WorldMap/StyledWorldMap.js +2 -2
- package/es6/components/WorldMap/WorldMap.js +1 -1
- package/es6/components/index.d.ts +1 -0
- package/es6/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
- package/es6/utils/pagination.js +1 -1
- package/es6/utils/styles.js +6 -0
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/package.json +35 -31
- package/tools/release-stable.js +1 -1
- package/tools/release-styled-components-beta-stable.js +1 -1
- package/utils/pagination.js +1 -1
- package/utils/styles.js +7 -1
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports.useAnalytics = exports.AnalyticsProvider = exports.AnalyticsContext = void 0;
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
6
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
7
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
7
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
8
8
|
var AnalyticsContext = exports.AnalyticsContext = /*#__PURE__*/_react["default"].createContext(function () {});
|
|
9
9
|
var useAnalytics = exports.useAnalytics = function useAnalytics() {
|
|
10
10
|
return (0, _react.useContext)(AnalyticsContext);
|
|
@@ -7,7 +7,7 @@ var _grommetIcons = require("grommet-icons");
|
|
|
7
7
|
var _themes = require("grommet/themes");
|
|
8
8
|
var _grommet = require("grommet");
|
|
9
9
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
11
11
|
// used only for the grommet's font
|
|
12
12
|
|
|
13
13
|
var message = "Thank you for clicking the Announce Button,\nthis announcement is being broadcast on the Button's click.";
|
|
@@ -9,7 +9,7 @@ var _grommet = require("grommet");
|
|
|
9
9
|
var _excluded = ["children", "areas"];
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
12
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
12
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
13
13
|
var customBreakpoints = (0, _utils.deepMerge)(_themes.grommet, {
|
|
14
14
|
global: {
|
|
15
15
|
breakpoints: {
|
|
@@ -7,7 +7,7 @@ var _themes = require("grommet/themes");
|
|
|
7
7
|
var _utils = require("grommet/utils");
|
|
8
8
|
var _grommet = require("grommet");
|
|
9
9
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
11
11
|
var customTheme = (0, _utils.deepMerge)(_themes.grommet, {
|
|
12
12
|
global: {
|
|
13
13
|
focus: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["id"],
|
|
2
2
|
_excluded2 = ["color"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
5
5
|
import React, { useState } from 'react';
|
|
6
6
|
import { Accordion, AccordionPanel, Anchor, Box, Button, Calendar, Chart, CheckBox, Clock, DataTable, Diagram, Distribution, FormField, Grid, Heading, MaskedInput, Menu, Meter, Paragraph, RadioButtonGroup, RangeInput, RangeSelector, Select, Stack, Tab, Tabs, Text, TextArea, TextInput, Video } from 'grommet';
|
|
7
7
|
import { FormNext } from "grommet-icons/es6/icons/FormNext";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["activeIndex", "animate", "children", "level", "multiple", "onActive"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React, { Children, forwardRef, useCallback, useState } from 'react';
|
|
5
5
|
import { AccordionPropTypes } from './propTypes';
|
|
6
6
|
import { Box } from '../Box';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["animate", "multiple"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { SubtractCircle } from "grommet-icons/es6/icons/SubtractCircle";
|
|
6
6
|
import { AddCircle } from "grommet-icons/es6/icons/AddCircle";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _excluded = ["animate", "multiple"];
|
|
2
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
2
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Accordion, AccordionPanel, Box } from 'grommet';
|
|
5
5
|
export var Simple = function Simple(props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "header", "label", "onClick", "onMouseOut", "onMouseOver", "onFocus", "onBlur"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React, { forwardRef, useContext, useMemo, useState } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
6
6
|
import { defaultProps } from '../../default-props';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["a11yTitle", "aria-label", "children", "color", "disabled", "gap", "href", "icon", "label", "onBlur", "onClick", "onFocus", "reverse", "size"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React, { cloneElement, forwardRef, useCallback, useContext, useEffect, useState } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
6
6
|
import { defaultProps } from '../../default-props';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { focusStyle, genericStyles, normalizeColor } from '../../utils';
|
|
2
|
+
import { focusStyle, genericStyles, normalizeColor, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
4
|
var disabledStyle = "\n opacity: 0.3;\n cursor: default;\n text-decoration: none;\n";
|
|
5
5
|
var sizeStyle = function sizeStyle(props) {
|
|
@@ -10,13 +10,7 @@ var sizeStyle = function sizeStyle(props) {
|
|
|
10
10
|
}
|
|
11
11
|
return css(["font-size:inherit;line-height:inherit;"]);
|
|
12
12
|
};
|
|
13
|
-
var StyledAnchor = styled.a.withConfig({
|
|
14
|
-
// prevent custom props from bleeding into DOM
|
|
15
|
-
// https://styled-components.com/docs/api#shouldforwardprop
|
|
16
|
-
shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
|
|
17
|
-
return !['as', 'colorProp', 'focus', 'hasIcon', 'hasLabel', 'reverse'].includes(prop) && defaultValidatorFn(prop);
|
|
18
|
-
}
|
|
19
|
-
}).withConfig({
|
|
13
|
+
var StyledAnchor = styled.a.withConfig(styledComponentsConfig).withConfig({
|
|
20
14
|
displayName: "StyledAnchor",
|
|
21
15
|
componentId: "sc-1rp7lwl-0"
|
|
22
16
|
})(["box-sizing:border-box;display:inline-flex;", " color:", ";", " text-decoration:", ";cursor:pointer;", " ", " ", " ", " ", " ", ""], function (props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["a11yTitle", "aria-label", "align", "children", "height", "justify", "round", "size", "src", "width"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React, { useCallback, useContext, useMemo } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
6
6
|
import { Image } from '../Image';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["a11yTitle", "background", "border", "children", "cssGap", "direction", "elevation", "fill", "gap", "kind", "onBlur", "onClick", "onFocus", "overflow", "responsive", "tag", "as", "wrap", "width", "height", "tabIndex", "skeleton"],
|
|
2
2
|
_excluded2 = ["colors", "size"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
5
5
|
import React, { Children, forwardRef, useContext, useEffect, useMemo, useState } from 'react';
|
|
6
6
|
import { ThemeContext } from 'styled-components';
|
|
7
7
|
import { defaultProps } from '../../default-props';
|
|
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3
3
|
import styled, { css } from 'styled-components';
|
|
4
4
|
import { defaultProps } from '../../default-props';
|
|
5
5
|
import { alignContentStyle, alignStyle, backgroundStyle, borderStyle, breakpointStyle, edgeStyle, fillStyle, focusStyle, genericStyles, getBreakpointStyle, getHoverIndicatorStyle, heightStyle, overflowStyle, parseMetricToNum, responsiveBorderStyle, widthStyle } from '../../utils';
|
|
6
|
-
import { roundStyle } from '../../utils/styles';
|
|
6
|
+
import { roundStyle, styledComponentsConfig } from '../../utils/styles';
|
|
7
7
|
import { animationBounds, animationObjectStyle } from '../../utils/animation';
|
|
8
8
|
var BASIS_MAP = {
|
|
9
9
|
auto: 'auto',
|
|
@@ -164,7 +164,7 @@ var gapStyle = function gapStyle(directionProp, gap, responsive, wrap, theme) {
|
|
|
164
164
|
};
|
|
165
165
|
|
|
166
166
|
// NOTE: basis must be after flex! Otherwise, flex overrides basis
|
|
167
|
-
var StyledBox = styled.div.withConfig({
|
|
167
|
+
var StyledBox = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
168
168
|
displayName: "StyledBox",
|
|
169
169
|
componentId: "sc-13pk1d4-0"
|
|
170
170
|
})(["display:flex;box-sizing:border-box;", ";", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], function (props) {
|
|
@@ -269,7 +269,7 @@ var gapGapStyle = function gapGapStyle(directionProp, gap, responsive, border, t
|
|
|
269
269
|
}
|
|
270
270
|
return styles;
|
|
271
271
|
};
|
|
272
|
-
var StyledBoxGap = styled.div.withConfig({
|
|
272
|
+
var StyledBoxGap = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
273
273
|
displayName: "StyledBox__StyledBoxGap",
|
|
274
274
|
componentId: "sc-13pk1d4-1"
|
|
275
275
|
})(["flex:0 0 auto;align-self:stretch;", ";"], function (props) {
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import styled, { css, keyframes } from 'styled-components';
|
|
3
3
|
import { Checkmark } from 'grommet-icons/icons/Checkmark';
|
|
4
4
|
import { Box } from '../Box';
|
|
5
|
+
import { styledComponentsConfig } from '../../utils/styles';
|
|
5
6
|
var bounceDelay = keyframes(["0%,80%,100%{transform:scale(0.4);}40%{transform:scale(0.8);}"]);
|
|
6
7
|
var bounceDelayRule = css(["animation:", " 1.4s infinite ease-in-out both;"], bounceDelay);
|
|
7
8
|
var Dot = styled(Box).withConfig({
|
|
@@ -33,7 +34,7 @@ export var GrowCheckmark = styled(Checkmark).withConfig({
|
|
|
33
34
|
displayName: "BusyAnimation__GrowCheckmark",
|
|
34
35
|
componentId: "sc-feuivs-1"
|
|
35
36
|
})(["position:absolute;align-self:center;animation:", " 0.9s ease-in-out;"], grow);
|
|
36
|
-
export var StyledBusyContents = styled.div.withConfig({
|
|
37
|
+
export var StyledBusyContents = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
37
38
|
displayName: "BusyAnimation__StyledBusyContents",
|
|
38
39
|
componentId: "sc-feuivs-2"
|
|
39
40
|
})(["opacity:", ";}"], function (props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["active", "align", "aria-label", "badge", "busy", "color", "children", "disabled", "icon", "focusIndicator", "gap", "fill", "href", "justify", "kind", "label", "messages", "onBlur", "onClick", "onFocus", "onMouseOut", "onMouseOver", "pad", "plain", "primary", "reverse", "secondary", "selected", "size", "success", "tip", "type", "a11yTitle", "as"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React, { cloneElement, Children, forwardRef, useContext, useMemo, useState, useCallback, useEffect } from 'react';
|
|
5
5
|
import styled, { ThemeContext } from 'styled-components';
|
|
6
6
|
import { backgroundAndTextColors, colorIsDark, findButtonParent, useSizedIcon, normalizeBackground, normalizeColor } from '../../utils';
|
|
@@ -423,6 +423,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
423
423
|
pad: pad,
|
|
424
424
|
plain: plain || Children.count(children) > 0,
|
|
425
425
|
primary: primary,
|
|
426
|
+
selected: selected,
|
|
426
427
|
sizeProp: size,
|
|
427
428
|
success: success,
|
|
428
429
|
type: !href ? type : undefined
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { activeStyle, backgroundStyle, disabledStyle, edgeStyle, focusStyle, unfocusStyle, genericStyles, getHoverIndicatorStyle, normalizeColor } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
|
+
import { styledComponentsConfig } from '../../utils/styles';
|
|
4
5
|
var radiusStyle = function radiusStyle(props) {
|
|
5
6
|
// border.radius shouldn't impact an only-icon rendering.
|
|
6
7
|
var isIconOnly = props.hasIcon && !props.hasLabel;
|
|
@@ -68,7 +69,7 @@ var disabledButtonStyle = function disabledButtonStyle(props) {
|
|
|
68
69
|
};
|
|
69
70
|
|
|
70
71
|
// Deprecate props.theme.button.disabled.opacity in V3
|
|
71
|
-
var StyledButton = styled.button.withConfig({
|
|
72
|
+
var StyledButton = styled.button.withConfig(styledComponentsConfig).withConfig({
|
|
72
73
|
displayName: "StyledButton",
|
|
73
74
|
componentId: "sc-323bzc-0"
|
|
74
75
|
})(["display:inline-block;box-sizing:border-box;cursor:pointer;font:inherit;text-decoration:none;margin:0;background:transparent;overflow:visible;text-transform:none;", " ", " ", " ", " ", " ", " ", " &:focus{", "}&:focus:not(:focus-visible){", "}", " ", " ", " ", " ", " ", " ", ""], genericStyles, function (props) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
+
import isPropValid from '@emotion/is-prop-valid';
|
|
2
3
|
import { activeStyle, disabledStyle, edgeStyle, focusStyle, unfocusStyle, genericStyles, kindPartStyles, parseMetricToNum } from '../../utils';
|
|
3
4
|
import { defaultProps } from '../../default-props';
|
|
4
5
|
var radiusStyle = function radiusStyle(props) {
|
|
@@ -165,10 +166,8 @@ var plainStyle = function plainStyle(props) {
|
|
|
165
166
|
return css(["outline:none;border:none;padding:0;text-align:inherit;color:inherit;", " ", ""], props.icon && "\n > svg {\n display: flex;\n align-self: center;\n vertical-align: middle;\n }\n ", props.hasIcon && !props.hasLabel && "line-height: 0;");
|
|
166
167
|
};
|
|
167
168
|
var StyledButtonKind = styled.button.withConfig({
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
|
|
171
|
-
return !['kind'].includes(prop) && defaultValidatorFn(prop);
|
|
169
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
170
|
+
return isPropValid(prop) && !['kind'].includes(prop);
|
|
172
171
|
}
|
|
173
172
|
}).withConfig({
|
|
174
173
|
displayName: "StyledButtonKind",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _excluded = ["activeDate", "animate", "bounds", "children", "date", "dates", "daysOfWeek", "disabled", "initialFocus", "fill", "firstDayOfWeek", "header", "locale", "messages", "onReference", "onSelect", "range", "reference", "showAdjacentDays", "size", "timestamp"];
|
|
2
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
2
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
import React, { forwardRef, useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { css, keyframes } from 'styled-components';
|
|
2
|
-
import { backgroundStyle, focusStyle, genericStyles, kindPartStyles, parseMetricToNum } from '../../utils';
|
|
2
|
+
import { backgroundStyle, focusStyle, genericStyles, kindPartStyles, parseMetricToNum, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
4
|
var sizeStyle = function sizeStyle(props) {
|
|
5
5
|
var data = props.theme.calendar[props.sizeProp];
|
|
@@ -8,7 +8,7 @@ var sizeStyle = function sizeStyle(props) {
|
|
|
8
8
|
return p.fillContainer && 'height: 100%;';
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var StyledCalendar = styled.div.withConfig({
|
|
11
|
+
var StyledCalendar = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
12
12
|
displayName: "StyledCalendar",
|
|
13
13
|
componentId: "sc-1y4xhmp-0"
|
|
14
14
|
})(["", " ", " ", ""], genericStyles, function (props) {
|
|
@@ -22,7 +22,7 @@ var weeksContainerSizeStyle = function weeksContainerSizeStyle(props) {
|
|
|
22
22
|
var height = props.fillContainer ? '100%' : parseMetricToNum(props.theme.calendar[props.sizeProp].daySize) * 6 + "px";
|
|
23
23
|
return "\n height: " + height + ";\n\n ";
|
|
24
24
|
};
|
|
25
|
-
var StyledWeeksContainer = styled.div.withConfig({
|
|
25
|
+
var StyledWeeksContainer = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
26
26
|
displayName: "StyledCalendar__StyledWeeksContainer",
|
|
27
27
|
componentId: "sc-1y4xhmp-1"
|
|
28
28
|
})(["overflow:hidden;", " ", ";"], function (props) {
|
|
@@ -50,7 +50,7 @@ var slideStyle = function slideStyle(props) {
|
|
|
50
50
|
var weeksSizeStyle = function weeksSizeStyle() {
|
|
51
51
|
return css(["display:flex;flex-direction:column;height:100%;"]);
|
|
52
52
|
};
|
|
53
|
-
var StyledWeeks = styled.div.withConfig({
|
|
53
|
+
var StyledWeeks = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
54
54
|
displayName: "StyledCalendar__StyledWeeks",
|
|
55
55
|
componentId: "sc-1y4xhmp-2"
|
|
56
56
|
})(["position:relative;", " ", ";"], function (props) {
|
|
@@ -60,7 +60,7 @@ var StyledWeeks = styled.div.withConfig({
|
|
|
60
60
|
});
|
|
61
61
|
StyledWeeks.defaultProps = {};
|
|
62
62
|
Object.setPrototypeOf(StyledWeeks.defaultProps, defaultProps);
|
|
63
|
-
var StyledWeek = styled.div.withConfig({
|
|
63
|
+
var StyledWeek = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
64
64
|
displayName: "StyledCalendar__StyledWeek",
|
|
65
65
|
componentId: "sc-1y4xhmp-3"
|
|
66
66
|
})(["display:flex;justify-content:space-between;", ""], function (props) {
|
|
@@ -71,7 +71,7 @@ Object.setPrototypeOf(StyledWeek.defaultProps, defaultProps);
|
|
|
71
71
|
|
|
72
72
|
// The width of 14.3% is derived from dividing 100/7. We want the
|
|
73
73
|
// widths of 7 days to equally fill 100% of the row.
|
|
74
|
-
var StyledDayContainer = styled.div.withConfig({
|
|
74
|
+
var StyledDayContainer = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
75
75
|
displayName: "StyledCalendar__StyledDayContainer",
|
|
76
76
|
componentId: "sc-1y4xhmp-4"
|
|
77
77
|
})(["flex:0 1 auto;", ""], function (props) {
|
|
@@ -83,7 +83,7 @@ var daySizeStyle = function daySizeStyle(props) {
|
|
|
83
83
|
var data = props.theme.calendar[props.sizeProp];
|
|
84
84
|
return css(["width:", ";height:", ";"], props.fillContainer ? '100%' : data.daySize, props.fillContainer ? '100%' : data.daySize);
|
|
85
85
|
};
|
|
86
|
-
var StyledDay = styled.div.withConfig({
|
|
86
|
+
var StyledDay = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
87
87
|
displayName: "StyledCalendar__StyledDay",
|
|
88
88
|
componentId: "sc-1y4xhmp-5"
|
|
89
89
|
})(["display:flex;justify-content:center;align-items:center;", " ", " ", " ", " ", " ", ""], function (props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "title", "subTitle", "size"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Bluetooth as Memory } from "grommet-icons/es6/icons/Bluetooth";
|
|
6
6
|
import { Storage } from "grommet-icons/es6/icons/Storage";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "title", "subTitle", "size"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Location } from "grommet-icons/es6/icons/Location";
|
|
6
6
|
import { System } from "grommet-icons/es6/icons/System";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["as", "children", "data", "margin", "onMore", "pad", "paginate", "show", "size", "step"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React, { Fragment, useContext } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
6
6
|
import { DataContext } from '../../contexts/DataContext';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["activeChild", "initialChild", "onChild", "play", "children", "controls", "height", "fill", "width", "onFocus", "onBlur", "wrap"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React, { Children, useCallback, useContext, useEffect, useMemo, useState, useRef } from 'react';
|
|
5
5
|
import { normalizeColor } from '../../utils';
|
|
6
6
|
import { defaultProps } from '../../default-props';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["controls"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { Attraction } from "grommet-icons/es6/icons/Attraction";
|
|
6
6
|
import { Car } from "grommet-icons/es6/icons/Car";
|
|
@@ -2,7 +2,7 @@ var _excluded = ["a11yTitle", "bounds", "color", "dash", "direction", "gap", "id
|
|
|
2
2
|
_excluded2 = ["color", "label", "onHover", "opacity", "thickness", "value"],
|
|
3
3
|
_excluded3 = ["color", "label", "onHover", "opacity", "thickness", "value"];
|
|
4
4
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
5
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
6
6
|
import React, { useContext, useEffect, useMemo, useState } from 'react';
|
|
7
7
|
import { ThemeContext } from 'styled-components';
|
|
8
8
|
import { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { css, keyframes } from 'styled-components';
|
|
2
|
-
import { genericStyles } from '../../utils';
|
|
2
|
+
import { genericStyles, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
4
|
var animateStyle = function animateStyle(_ref) {
|
|
5
5
|
var theme = _ref.theme,
|
|
@@ -10,7 +10,7 @@ var animateStyle = function animateStyle(_ref) {
|
|
|
10
10
|
animateBounds = ['stroke-dashoffset: 200%;', 'stroke-dashoffset: 0%;'];else if (typeProp === 'point') animateBounds = ['opacity: 0;', 'opacity: 1;'];else animateBounds = ['transform: scaleY(0);', 'transform: scaleY(1);'];
|
|
11
11
|
return css(["", " animation:", " ", " forwards;", ""], typeProp === 'line' && 'stroke-dasharray: 200%;', keyframes(["from{", "}to{", "}"], animateBounds[0], animateBounds[1]), theme.global.animation.duration, (typeProp === 'bar' || typeProp === 'area') && 'transform-origin: center bottom 0;');
|
|
12
12
|
};
|
|
13
|
-
var StyledChart = styled.svg.withConfig({
|
|
13
|
+
var StyledChart = styled.svg.withConfig(styledComponentsConfig).withConfig({
|
|
14
14
|
displayName: "StyledChart",
|
|
15
15
|
componentId: "sc-1nae0gf-0"
|
|
16
16
|
})(["display:block;max-width:100%;overflow:visible;", " ", " ", ";"], genericStyles, function (props) {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
var _excluded = ["a11yTitle", "aria-label", "checked", "children", "defaultChecked", "disabled", "fill", "focus", "focusIndicator", "id", "label", "name", "onBlur", "onChange", "onFocus", "onMouseEnter", "onMouseLeave", "onMouseOut", "onMouseOver", "pad", "reverse", "toggle", "indeterminate"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React, { forwardRef, useContext, useEffect, useState } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
6
6
|
import { removeUndefined } from '../../utils/object';
|
|
7
7
|
import { defaultProps } from '../../default-props';
|
|
8
|
-
import { Box } from '../Box';
|
|
9
8
|
import { FormContext } from '../Form/FormContext';
|
|
10
9
|
import { CheckBoxPropTypes } from './propTypes';
|
|
11
10
|
import { StyledCheckBox, StyledCheckBoxBox, StyledCheckBoxIcon, StyledCheckBoxContainer, StyledCheckBoxInput, StyledCheckBoxToggle, StyledCheckBoxKnob } from './StyledCheckBox';
|
|
@@ -99,7 +98,6 @@ var CheckBox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
99
98
|
borderColor = normalizeColor(theme.checkBox.color || 'control', theme);
|
|
100
99
|
}
|
|
101
100
|
var visual = toggle ? /*#__PURE__*/React.createElement(StyledCheckBoxToggle, themeableProps, /*#__PURE__*/React.createElement(StyledCheckBoxKnob, themeableProps)) : /*#__PURE__*/React.createElement(StyledCheckBoxBox, _extends({
|
|
102
|
-
as: Box,
|
|
103
101
|
align: "center",
|
|
104
102
|
justify: "center",
|
|
105
103
|
width: theme.checkBox.size,
|
|
@@ -132,7 +130,6 @@ var CheckBox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
132
130
|
}))));
|
|
133
131
|
var side = !reverse !== !theme.dir ? 'left' : 'right';
|
|
134
132
|
var checkBoxNode = /*#__PURE__*/React.createElement(StyledCheckBox, _extends({
|
|
135
|
-
as: Box,
|
|
136
133
|
align: "center",
|
|
137
134
|
justify: "center",
|
|
138
135
|
margin: label && (_ref2 = {}, _ref2[side] = theme.checkBox.gap || 'small', _ref2)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { edgeStyle, focusStyle, normalizeColor } from '../../utils';
|
|
2
|
+
import { edgeStyle, focusStyle, normalizeColor, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
|
+
import { Box } from '../Box';
|
|
4
5
|
|
|
5
6
|
// Note: since `fillStyle` is only used in one place, `justify-content` was
|
|
6
7
|
// added to it to simplify its logic. If this is ever reused somewhere else,
|
|
@@ -9,7 +10,7 @@ var fillStyle = function fillStyle() {
|
|
|
9
10
|
return "\n width: auto;\n height: 100%;\n max-width: none;\n flex: 1 0 auto;\n justify-content: space-between;\n ";
|
|
10
11
|
};
|
|
11
12
|
var disabledStyle = "\n opacity: 0.5;\n cursor: default;\n";
|
|
12
|
-
var hoverStyle = css(["
|
|
13
|
+
var hoverStyle = css(["&:hover input:not([disabled]) + div,&:hover input:not([disabled]) + span{border-color:", ";", "}&:hover{background-color:", ";}"], function (props) {
|
|
13
14
|
var _props$theme$checkBox;
|
|
14
15
|
return normalizeColor((_props$theme$checkBox = props.theme.checkBox.hover) == null || (_props$theme$checkBox = _props$theme$checkBox.border) == null ? void 0 : _props$theme$checkBox.color, props.theme);
|
|
15
16
|
}, function (props) {
|
|
@@ -19,7 +20,7 @@ var hoverStyle = css([":hover input:not([disabled]) + div,:hover input:not([disa
|
|
|
19
20
|
var _props$theme$checkBox3;
|
|
20
21
|
return normalizeColor(!props.disabled && ((_props$theme$checkBox3 = props.theme.checkBox.hover) == null || (_props$theme$checkBox3 = _props$theme$checkBox3.background) == null ? void 0 : _props$theme$checkBox3.color), props.theme);
|
|
21
22
|
});
|
|
22
|
-
var StyledCheckBoxIcon = styled.svg.withConfig({
|
|
23
|
+
var StyledCheckBoxIcon = styled.svg.withConfig(styledComponentsConfig).withConfig({
|
|
23
24
|
displayName: "StyledCheckBox__StyledCheckBoxIcon",
|
|
24
25
|
componentId: "sc-1dbk5ju-0"
|
|
25
26
|
})(["box-sizing:border-box;stroke-width:", ";stroke:", ";width:", ";height:", ";", ";"], function (props) {
|
|
@@ -35,10 +36,10 @@ var StyledCheckBoxIcon = styled.svg.withConfig({
|
|
|
35
36
|
});
|
|
36
37
|
StyledCheckBoxIcon.defaultProps = {};
|
|
37
38
|
Object.setPrototypeOf(StyledCheckBoxIcon.defaultProps, defaultProps);
|
|
38
|
-
var StyledCheckBoxContainer = styled.label.withConfig({
|
|
39
|
+
var StyledCheckBoxContainer = styled.label.withConfig(styledComponentsConfig).withConfig({
|
|
39
40
|
displayName: "StyledCheckBox__StyledCheckBoxContainer",
|
|
40
41
|
componentId: "sc-1dbk5ju-1"
|
|
41
|
-
})(["display:flex;flex-direction:row;align-items:", ";user-select:none;", " ", " ", " ", " ", " ", " ", ""], function (props) {
|
|
42
|
+
})(["display:flex;flex-direction:row;align-items:", ";user-select:none;-webkit-user-select:none;", " ", " ", " ", " ", " ", " ", ""], function (props) {
|
|
42
43
|
return typeof props.labelProp === 'string' ? props.theme.checkBox.label.align : undefined;
|
|
43
44
|
}, function (props) {
|
|
44
45
|
return props.fillProp ? fillStyle() : 'width: fit-content;';
|
|
@@ -56,10 +57,10 @@ var StyledCheckBoxContainer = styled.label.withConfig({
|
|
|
56
57
|
});
|
|
57
58
|
StyledCheckBoxContainer.defaultProps = {};
|
|
58
59
|
Object.setPrototypeOf(StyledCheckBoxContainer.defaultProps, defaultProps);
|
|
59
|
-
var StyledCheckBoxInput = styled.input.withConfig({
|
|
60
|
+
var StyledCheckBoxInput = styled.input.withConfig(styledComponentsConfig).withConfig({
|
|
60
61
|
displayName: "StyledCheckBox__StyledCheckBoxInput",
|
|
61
62
|
componentId: "sc-1dbk5ju-2"
|
|
62
|
-
})(["opacity:0;-moz-appearance:none;width:0;height:0;margin:0;", "
|
|
63
|
+
})(["opacity:0;-moz-appearance:none;width:0;height:0;margin:0;", " &:checked + span > span{", ":calc( ", " - ", " );background:", ";}"], function (props) {
|
|
63
64
|
return !props.disabled && 'cursor: pointer;';
|
|
64
65
|
}, function (props) {
|
|
65
66
|
return !props.theme.dir ? 'left' : 'right';
|
|
@@ -72,7 +73,7 @@ var StyledCheckBoxInput = styled.input.withConfig({
|
|
|
72
73
|
});
|
|
73
74
|
StyledCheckBoxInput.defaultProps = {};
|
|
74
75
|
Object.setPrototypeOf(StyledCheckBoxInput.defaultProps, defaultProps);
|
|
75
|
-
var StyledCheckBoxBox = styled.
|
|
76
|
+
var StyledCheckBoxBox = styled(Box).withConfig({
|
|
76
77
|
displayName: "StyledCheckBox__StyledCheckBoxBox",
|
|
77
78
|
componentId: "sc-1dbk5ju-3"
|
|
78
79
|
})(["", ";", ";"], function (props) {
|
|
@@ -82,7 +83,7 @@ var StyledCheckBoxBox = styled.div.withConfig({
|
|
|
82
83
|
});
|
|
83
84
|
StyledCheckBoxBox.defaultProps = {};
|
|
84
85
|
Object.setPrototypeOf(StyledCheckBoxBox.defaultProps, defaultProps);
|
|
85
|
-
var StyledCheckBoxToggle = styled.span.withConfig({
|
|
86
|
+
var StyledCheckBoxToggle = styled.span.withConfig(styledComponentsConfig).withConfig({
|
|
86
87
|
displayName: "StyledCheckBox__StyledCheckBoxToggle",
|
|
87
88
|
componentId: "sc-1dbk5ju-4"
|
|
88
89
|
})(["box-sizing:border-box;vertical-align:middle;display:inline-block;width:", ";height:", ";border:", " solid;border-color:", ";border-radius:", ";background-color:", ";", ";", ";"], function (props) {
|
|
@@ -104,7 +105,7 @@ var StyledCheckBoxToggle = styled.span.withConfig({
|
|
|
104
105
|
});
|
|
105
106
|
StyledCheckBoxToggle.defaultProps = {};
|
|
106
107
|
Object.setPrototypeOf(StyledCheckBoxToggle.defaultProps, defaultProps);
|
|
107
|
-
var StyledCheckBoxKnob = styled.span.withConfig({
|
|
108
|
+
var StyledCheckBoxKnob = styled.span.withConfig(styledComponentsConfig).withConfig({
|
|
108
109
|
displayName: "StyledCheckBox__StyledCheckBoxKnob",
|
|
109
110
|
componentId: "sc-1dbk5ju-5"
|
|
110
111
|
})(["box-sizing:border-box;position:relative;display:inherit;top:-", ";", ":-", ";transition:all 0.3s;width:", ";height:", ";background:", ";border-radius:", ";", ";"], function (props) {
|
|
@@ -126,7 +127,7 @@ var StyledCheckBoxKnob = styled.span.withConfig({
|
|
|
126
127
|
});
|
|
127
128
|
StyledCheckBoxKnob.defaultProps = {};
|
|
128
129
|
Object.setPrototypeOf(StyledCheckBoxKnob.defaultProps, defaultProps);
|
|
129
|
-
var StyledCheckBox = styled.
|
|
130
|
+
var StyledCheckBox = styled(Box).withConfig({
|
|
130
131
|
displayName: "StyledCheckBox",
|
|
131
132
|
componentId: "sc-1dbk5ju-6"
|
|
132
133
|
})(["flex-shrink:0;"]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["checked"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
5
|
import { Box, CheckBox } from 'grommet';
|
|
6
6
|
var SimpleCheckBox = function SimpleCheckBox(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["checked"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
5
|
import { Box, CheckBox } from 'grommet';
|
|
6
6
|
var SimpleCheckBox = function SimpleCheckBox(_ref) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "defaultValue", "value", "disabled", "focusIndicator", "gap", "labelKey", "valueKey", "onChange", "options", "name"],
|
|
2
2
|
_excluded2 = ["value"];
|
|
3
3
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
4
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
5
5
|
import React, { forwardRef, useContext } from 'react';
|
|
6
6
|
import { ThemeContext } from 'styled-components';
|
|
7
7
|
import { CheckBox } from '../CheckBox';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["elements", "precision"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React, { forwardRef, useContext, useMemo } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
6
6
|
import { parseMetricToNum } from '../../utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["hourLimit", "onChange", "precision", "run", "size", "time", "type"];
|
|
2
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
3
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
4
4
|
import React, { forwardRef, useEffect, useState } from 'react';
|
|
5
5
|
import { Analog } from './Analog';
|
|
6
6
|
import { Digital } from './Digital';
|