grommet 2.36.1 → 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 +264 -0
- 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 +7 -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 +11 -18
- 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 +24 -17
- 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/index.d.ts +5 -1
- 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 +18 -4
- package/components/DataTableColumns/index.d.ts +9 -1
- package/components/DataTableColumns/propTypes.js +1 -0
- package/components/DataTableColumns/stories/Pinned.js +46 -0
- 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 +3 -3
- 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 +46 -22
- package/components/List/index.d.ts +20 -6
- package/components/List/propTypes.js +6 -1
- 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 +5 -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 +6 -3
- 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/README.md +2 -0
- package/components/ToggleGroup/StyledToggleGroup.js +36 -0
- package/components/ToggleGroup/ToggleGroup.js +165 -0
- package/components/ToggleGroup/index.d.ts +26 -0
- package/components/ToggleGroup/index.js +6 -0
- package/components/ToggleGroup/propTypes.js +21 -0
- package/components/ToggleGroup/stories/Controlled.js +31 -0
- package/components/ToggleGroup/stories/multiple.tsx +28 -0
- package/components/ToggleGroup/stories/simple.js +37 -0
- 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 +2 -0
- package/components/index.js +6 -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 +258 -0
- 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 +6 -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 +10 -17
- 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 +23 -16
- package/es6/components/DataTable/StyledDataTable.js +2 -2
- package/es6/components/DataTable/index.d.ts +5 -1
- 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 +17 -3
- package/es6/components/DataTableColumns/index.d.ts +9 -1
- package/es6/components/DataTableColumns/propTypes.js +1 -0
- package/es6/components/DataTableColumns/stories/Pinned.js +42 -0
- 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 +2 -2
- 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 +47 -23
- package/es6/components/List/index.d.ts +20 -6
- package/es6/components/List/propTypes.js +7 -2
- 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 +4 -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 +7 -4
- 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/README.md +2 -0
- package/es6/components/ToggleGroup/StyledToggleGroup.js +31 -0
- package/es6/components/ToggleGroup/ToggleGroup.js +160 -0
- package/es6/components/ToggleGroup/index.d.ts +26 -0
- package/es6/components/ToggleGroup/index.js +1 -0
- package/es6/components/ToggleGroup/propTypes.js +16 -0
- package/es6/components/ToggleGroup/stories/Controlled.js +25 -0
- package/es6/components/ToggleGroup/stories/multiple.tsx +28 -0
- package/es6/components/ToggleGroup/stories/simple.js +34 -0
- 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 +2 -0
- package/es6/components/index.js +1 -0
- package/es6/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
- package/es6/index.d.ts +1 -0
- package/es6/themes/base.d.ts +20 -1
- package/es6/themes/base.js +19 -0
- package/es6/utils/DOM.js +3 -1
- package/es6/utils/pagination.js +1 -1
- package/es6/utils/styles.js +7 -1
- package/es6/utils/useControlled.js +25 -0
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +39 -35
- package/themes/base.d.ts +20 -1
- package/themes/base.js +19 -0
- package/tools/release-stable.js +1 -1
- package/tools/release-styled-components-beta-stable.js +1 -1
- package/utils/DOM.js +3 -1
- package/utils/pagination.js +1 -1
- package/utils/styles.js +8 -2
- package/utils/useControlled.js +28 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _excluded = ["actions", "gridProps", "parent", "responsive", "size", "subtitle", "title", "level"];
|
|
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, useContext } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["control", "separator", "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, { useContext } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
6
6
|
import { StyledContainer, StyledPaginationButton, StyledSeparator } from './StyledPageControl';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["a11yTitle", "aria-label", "numberItems", "numberEdgePages", "numberMiddlePages", "onChange", "messages", "page", "size", "step", "stepOptions", "summary"];
|
|
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 styled, { ThemeContext } from 'styled-components';
|
|
6
6
|
import { defaultProps } from '../../default-props';
|
|
@@ -57,6 +57,9 @@ var Pagination = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
57
57
|
var _useState2 = useState(Math.min(page, totalPages) || 1),
|
|
58
58
|
activePage = _useState2[0],
|
|
59
59
|
setActivePage = _useState2[1];
|
|
60
|
+
useEffect(function () {
|
|
61
|
+
if (stepProp) setStep(stepProp);
|
|
62
|
+
}, [stepProp]);
|
|
60
63
|
useEffect(function () {
|
|
61
64
|
setActivePage(page);
|
|
62
65
|
var pageEvent = new Event('pagechange');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["messages", "onChange", "options", "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, { useContext } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
6
6
|
import { Box } from '../Box';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _excluded = ["messages", "numberItems", "page", "step"];
|
|
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, { useContext } from 'react';
|
|
4
4
|
import { Box } from '../Box';
|
|
5
5
|
import { Text } from '../Text';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
+
import { styledComponentsConfig } from '../../utils/styles';
|
|
2
3
|
import { Button } from '../Button';
|
|
3
4
|
import { Text } from '../Text';
|
|
4
5
|
var sizeStyle = function sizeStyle(props) {
|
|
@@ -22,7 +23,7 @@ export var StyledPaginationButton = styled(Button).withConfig({
|
|
|
22
23
|
})(["> svg{margin:0 auto;}", ";"], function (props) {
|
|
23
24
|
return sizeStyle(props).content;
|
|
24
25
|
});
|
|
25
|
-
export var StyledContainer = styled.div.withConfig({
|
|
26
|
+
export var StyledContainer = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
26
27
|
displayName: "StyledPageControl__StyledContainer",
|
|
27
28
|
componentId: "sc-1vlfaez-1"
|
|
28
29
|
})(["display:flex;align-items:center;justify-content:center;max-width:100%;", ";", ";"], function (props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "color", "fill", "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, { forwardRef, useMemo } from 'react';
|
|
5
5
|
import { StyledParagraph } from './StyledParagraph';
|
|
6
6
|
import { ParagraphPropTypes } from './propTypes';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { genericStyles, normalizeColor, textAlignStyle } from '../../utils';
|
|
2
|
+
import { genericStyles, normalizeColor, textAlignStyle, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
4
|
var colorStyle = css(["color:", ";"], function (props) {
|
|
5
5
|
return normalizeColor(props.colorProp, props.theme);
|
|
@@ -15,7 +15,7 @@ var fontFamily = css(["font-family:", ";"], function (props) {
|
|
|
15
15
|
var maxlinesStyle = function maxlinesStyle(props) {
|
|
16
16
|
return props.maxLines && css(["display:-webkit-box;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], props.maxLines);
|
|
17
17
|
};
|
|
18
|
-
var StyledParagraph = styled.p.withConfig({
|
|
18
|
+
var StyledParagraph = styled.p.withConfig(styledComponentsConfig).withConfig({
|
|
19
19
|
displayName: "StyledParagraph",
|
|
20
20
|
componentId: "sc-tbetod-0"
|
|
21
21
|
})(["", " ", " ", " ", " ", " ", " ", ""], genericStyles, function (props) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
var _excluded = ["a11yTitle", "checked", "children", "disabled", "focus", "focusIndicator", "id", "label", "name", "onChange"];
|
|
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, useState } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
6
|
-
import { Box } from '../Box';
|
|
7
6
|
import { defaultProps } from '../../default-props';
|
|
8
7
|
import { normalizeColor, removeUndefined } from '../../utils';
|
|
9
8
|
import { StyledRadioButton, StyledRadioButtonContainer, StyledRadioButtonIcon, StyledRadioButtonInput, StyledRadioButtonLabel, StyledRadioButtonBox } from './StyledRadioButton';
|
|
@@ -56,7 +55,6 @@ var RadioButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
56
55
|
return setHover(false);
|
|
57
56
|
}
|
|
58
57
|
}), /*#__PURE__*/React.createElement(StyledRadioButton, {
|
|
59
|
-
as: Box,
|
|
60
58
|
flex: false,
|
|
61
59
|
margin: label ? {
|
|
62
60
|
right: theme.radioButton.gap || 'small'
|
|
@@ -78,7 +76,6 @@ var RadioButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
78
76
|
hover: hover
|
|
79
77
|
}) : /*#__PURE__*/React.createElement(StyledRadioButtonBox, {
|
|
80
78
|
focus: focus && focusIndicator,
|
|
81
|
-
as: Box,
|
|
82
79
|
align: "center",
|
|
83
80
|
justify: "center",
|
|
84
81
|
width: theme.radioButton.size,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { focusStyle, normalizeColor } from '../../utils';
|
|
2
|
+
import { focusStyle, normalizeColor, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
|
+
import { Box } from '../Box';
|
|
4
5
|
var disabledStyle = "\n opacity: 0.5;\n cursor: default;\n";
|
|
5
|
-
var StyledRadioButtonContainer = styled.label.withConfig({
|
|
6
|
+
var StyledRadioButtonContainer = styled.label.withConfig(styledComponentsConfig).withConfig({
|
|
6
7
|
displayName: "StyledRadioButton__StyledRadioButtonContainer",
|
|
7
8
|
componentId: "sc-g1f6ld-0"
|
|
8
|
-
})(["display:flex;flex-direction:row;align-items:center;user-select:none;width:fit-content;", " ", "
|
|
9
|
+
})(["display:flex;flex-direction:row;align-items:center;user-select:none;width:fit-content;", " ", " &:hover input:not([disabled]) + div,&:hover input:not([disabled]) + span{border-color:", ";}&:hover{background-color:", ";}", " ", ";"], function (props) {
|
|
9
10
|
return props.disabled && disabledStyle;
|
|
10
11
|
}, function (props) {
|
|
11
12
|
return !props.disabled && 'cursor: pointer;';
|
|
@@ -20,7 +21,7 @@ var StyledRadioButtonContainer = styled.label.withConfig({
|
|
|
20
21
|
});
|
|
21
22
|
StyledRadioButtonContainer.defaultProps = {};
|
|
22
23
|
Object.setPrototypeOf(StyledRadioButtonContainer.defaultProps, defaultProps);
|
|
23
|
-
var StyledRadioButtonInput = styled.input.withConfig({
|
|
24
|
+
var StyledRadioButtonInput = styled.input.withConfig(styledComponentsConfig).withConfig({
|
|
24
25
|
displayName: "StyledRadioButton__StyledRadioButtonInput",
|
|
25
26
|
componentId: "sc-g1f6ld-1"
|
|
26
27
|
})(["opacity:0;-moz-appearance:none;width:0;height:0;margin:0;", ";"], function (props) {
|
|
@@ -28,7 +29,7 @@ var StyledRadioButtonInput = styled.input.withConfig({
|
|
|
28
29
|
});
|
|
29
30
|
StyledRadioButtonInput.defaultProps = {};
|
|
30
31
|
Object.setPrototypeOf(StyledRadioButtonInput.defaultProps, defaultProps);
|
|
31
|
-
var StyledRadioButtonLabel = styled.span.withConfig({
|
|
32
|
+
var StyledRadioButtonLabel = styled.span.withConfig(styledComponentsConfig).withConfig({
|
|
32
33
|
displayName: "StyledRadioButton__StyledRadioButtonLabel",
|
|
33
34
|
componentId: "sc-g1f6ld-2"
|
|
34
35
|
})(["", ""], function (props) {
|
|
@@ -36,7 +37,7 @@ var StyledRadioButtonLabel = styled.span.withConfig({
|
|
|
36
37
|
});
|
|
37
38
|
StyledRadioButtonLabel.defaultProps = {};
|
|
38
39
|
Object.setPrototypeOf(StyledRadioButtonLabel.defaultProps, defaultProps);
|
|
39
|
-
var StyledRadioButtonIcon = styled.svg.withConfig({
|
|
40
|
+
var StyledRadioButtonIcon = styled.svg.withConfig(styledComponentsConfig).withConfig({
|
|
40
41
|
displayName: "StyledRadioButton__StyledRadioButtonIcon",
|
|
41
42
|
componentId: "sc-g1f6ld-3"
|
|
42
43
|
})(["box-sizing:border-box;width:", ";height:", ";fill:", ";", ";"], function (props) {
|
|
@@ -50,7 +51,7 @@ var StyledRadioButtonIcon = styled.svg.withConfig({
|
|
|
50
51
|
});
|
|
51
52
|
StyledRadioButtonIcon.defaultProps = {};
|
|
52
53
|
Object.setPrototypeOf(StyledRadioButtonIcon.defaultProps, defaultProps);
|
|
53
|
-
var StyledRadioButtonBox = styled.
|
|
54
|
+
var StyledRadioButtonBox = styled(Box).withConfig({
|
|
54
55
|
displayName: "StyledRadioButton__StyledRadioButtonBox",
|
|
55
56
|
componentId: "sc-g1f6ld-4"
|
|
56
57
|
})(["background-color:", ";", ";", ";"], function (props) {
|
|
@@ -62,7 +63,7 @@ var StyledRadioButtonBox = styled.div.withConfig({
|
|
|
62
63
|
});
|
|
63
64
|
StyledRadioButtonBox.defaultProps = {};
|
|
64
65
|
Object.setPrototypeOf(StyledRadioButtonBox.defaultProps, defaultProps);
|
|
65
|
-
var StyledRadioButton = styled.
|
|
66
|
+
var StyledRadioButton = styled(Box).withConfig({
|
|
66
67
|
displayName: "StyledRadioButton",
|
|
67
68
|
componentId: "sc-g1f6ld-5"
|
|
68
69
|
})(["", ";"], function (props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "defaultValue", "disabled", "focusIndicator", "name", "onChange", "options", "value", "gap"],
|
|
2
2
|
_excluded2 = ["disabled", "id", "label", "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, useRef, useState } from 'react';
|
|
6
6
|
import { ThemeContext } from 'styled-components';
|
|
7
7
|
import { FormContext } from '../Form/FormContext';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["value"];
|
|
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, Grommet, RadioButtonGroup, ThemeContext } from 'grommet';
|
|
6
6
|
import { grommet } from 'grommet/themes';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["value"];
|
|
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, RadioButtonGroup } from 'grommet';
|
|
6
6
|
export var Disabled = function Disabled(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["a11yTitle", "color", "focus", "focusIndicator", "name", "onChange", "onFocus", "onBlur", "value", "step", "min", "max"];
|
|
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, useState, useCallback, useEffect } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
6
6
|
import { defaultProps } from '../../default-props';
|
|
@@ -106,7 +106,7 @@ var RangeInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
106
106
|
name: name,
|
|
107
107
|
focus: focus,
|
|
108
108
|
focusIndicator: focusIndicator,
|
|
109
|
-
value: value
|
|
109
|
+
value: value || ''
|
|
110
110
|
}, rest, {
|
|
111
111
|
color: color,
|
|
112
112
|
onFocus: function onFocus(event) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { disabledStyle, edgeStyle, focusStyle, normalizeColor, parseMetricToNum, getRGBA } from '../../utils';
|
|
2
|
+
import { disabledStyle, edgeStyle, focusStyle, normalizeColor, parseMetricToNum, getRGBA, styledComponentsConfig } from '../../utils';
|
|
3
3
|
import { defaultProps } from '../../default-props';
|
|
4
4
|
|
|
5
5
|
// opacity of the bound trumps the track opacity
|
|
@@ -109,7 +109,7 @@ var firefoxMicrosoftThumbStyle = css(["", " margin-top:0px;height:", ";width:",
|
|
|
109
109
|
});
|
|
110
110
|
|
|
111
111
|
/* eslint-disable max-len */
|
|
112
|
-
var StyledRangeInput = styled.input.withConfig({
|
|
112
|
+
var StyledRangeInput = styled.input.withConfig(styledComponentsConfig).withConfig({
|
|
113
113
|
displayName: "StyledRangeInput",
|
|
114
114
|
componentId: "sc-15st9ck-0"
|
|
115
115
|
})(["box-sizing:border-box;position:relative;-webkit-appearance:none;border-color:transparent;height:", ";width:100%;padding:0px;cursor:", ";background:transparent;margin:0px;", " &::-moz-focus-inner{border:none;}&::-moz-focus-outer{border:none;}&::-webkit-slider-runnable-track{", "}&::-webkit-slider-thumb{margin-top:-", "px;", " ", " ", "}&::-moz-range-track{", "}&::-moz-range-thumb{", "}&::-ms-thumb{", "}", " &::-ms-track{", " border-color:transparent;color:transparent;}&::-ms-fill-lower{", ";border-color:transparent;}&::-ms-fill-upper{", ";border-color:transparent;}&:focus::-webkit-slider-thumb{", "}&:focus-visible{outline:0;}&:focus{outline:none;}", ""], function (props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["color", "direction", "edge", "onDecrease", "onIncrease", "thickness"];
|
|
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, useState } from 'react';
|
|
5
5
|
import styled, { ThemeContext } from 'styled-components';
|
|
6
6
|
import { defaultProps } from '../../default-props';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["color", "defaultValues", "direction", "invert", "label", "max", "messages", "min", "name", "onChange", "opacity", "round", "size", "step", "values"];
|
|
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, useCallback, useContext, useEffect, useRef, useState } from 'react';
|
|
5
5
|
import styled, { ThemeContext } from 'styled-components';
|
|
6
6
|
import { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["direction"];
|
|
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 { Grommet, Box, RangeSelector, Stack, Text } from 'grommet';
|
|
6
6
|
import { grommet } from 'grommet/themes';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["direction"];
|
|
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 { Gremlin } from "grommet-icons/es6/icons/Gremlin";
|
|
6
6
|
import { Grommet as GrommetIcon } from "grommet-icons/es6/icons/Grommet";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["direction"];
|
|
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, RangeSelector, Stack, Text } from 'grommet';
|
|
6
6
|
var SimpleRangeSelector = function SimpleRangeSelector(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["direction"];
|
|
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, RangeSelector, Stack, Text } from 'grommet';
|
|
6
6
|
var SimpleRangeSelector = function SimpleRangeSelector(_ref) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var _excluded = ["path", "method"];
|
|
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
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
5
5
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { Anchor } from '../Anchor';
|
|
9
9
|
var RoutedAnchor = /*#__PURE__*/function (_Component) {
|
|
10
|
-
_inheritsLoose(RoutedAnchor, _Component);
|
|
11
10
|
function RoutedAnchor() {
|
|
12
11
|
return _Component.apply(this, arguments) || this;
|
|
13
12
|
}
|
|
13
|
+
_inheritsLoose(RoutedAnchor, _Component);
|
|
14
14
|
var _proto = RoutedAnchor.prototype;
|
|
15
15
|
_proto.render = function render() {
|
|
16
16
|
var _this = this;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
var _excluded = ["href", "path", "method", "onClick"];
|
|
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
|
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
5
5
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
6
6
|
import React, { Component } from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { Button } from '../Button';
|
|
9
9
|
var RoutedButton = /*#__PURE__*/function (_Component) {
|
|
10
|
-
_inheritsLoose(RoutedButton, _Component);
|
|
11
10
|
function RoutedButton() {
|
|
12
11
|
var _this;
|
|
13
12
|
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -41,6 +40,7 @@ var RoutedButton = /*#__PURE__*/function (_Component) {
|
|
|
41
40
|
};
|
|
42
41
|
return _this;
|
|
43
42
|
}
|
|
43
|
+
_inheritsLoose(RoutedButton, _Component);
|
|
44
44
|
var _proto = RoutedButton.prototype;
|
|
45
45
|
_proto.render = function render() {
|
|
46
46
|
var _this$props2 = this.props,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["disabled", "id"];
|
|
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 } from 'react';
|
|
5
5
|
import { SelectTextInput } from './StyledSelect';
|
|
6
6
|
export var DefaultSelectTextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["a11yTitle", "aria-label", "alignSelf", "children", "clear", "closeOnChange", "defaultValue", "disabled", "disabledKey", "dropAlign", "dropHeight", "dropProps", "dropTarget", "emptySearchMessage", "focusIndicator", "gridArea", "id", "icon", "labelKey", "margin", "messages", "multiple", "name", "onBlur", "onChange", "onClick", "onClose", "onFocus", "onKeyDown", "onMore", "onOpen", "onSearch", "open", "options", "placeholder", "plain", "replace", "searchPlaceholder", "selected", "size", "value", "valueKey", "valueLabel"];
|
|
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, isValidElement, useCallback, useContext, useMemo, useState, useRef, useEffect } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
6
6
|
import { useKeyboard } from '../../utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["clear", "onClear", "name", "theme"];
|
|
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, useCallback, useContext, useEffect, useRef, useState } from 'react';
|
|
5
5
|
import styled, { ThemeContext } from 'styled-components';
|
|
6
6
|
import { setFocusWithoutScroll, getHoverIndicatorStyle, containsFocus } from '../../utils';
|
|
@@ -265,7 +265,6 @@ var SelectContainer = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
265
265
|
onKeyDown: onKeyDownOption
|
|
266
266
|
}, /*#__PURE__*/React.createElement(StyledContainer, {
|
|
267
267
|
ref: ref,
|
|
268
|
-
as: Box,
|
|
269
268
|
id: id ? id + "__select-drop" : undefined,
|
|
270
269
|
dropHeight: dropHeight
|
|
271
270
|
}, onSearch && /*#__PURE__*/React.createElement(Box, {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
+
import { Box } from '../Box';
|
|
2
3
|
import { Button } from '../Button';
|
|
3
4
|
import { DropButton } from '../DropButton';
|
|
4
5
|
import { TextInput } from '../TextInput';
|
|
5
|
-
import { getHoverIndicatorStyle, selectedStyle, controlBorderStyle, sizeStyle } from '../../utils';
|
|
6
|
-
export var StyledContainer = styled.
|
|
6
|
+
import { getHoverIndicatorStyle, selectedStyle, controlBorderStyle, sizeStyle, styledComponentsConfig } from '../../utils';
|
|
7
|
+
export var StyledContainer = styled(Box).withConfig({
|
|
7
8
|
displayName: "StyledSelect__StyledContainer",
|
|
8
9
|
componentId: "sc-znp66n-0"
|
|
9
10
|
})(["@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){width:100%;}", ";", ";"], function (props) {
|
|
@@ -13,11 +14,11 @@ export var StyledContainer = styled.div.withConfig({
|
|
|
13
14
|
});
|
|
14
15
|
|
|
15
16
|
// position relative is so scroll can be managed correctly
|
|
16
|
-
export var OptionsContainer = styled.div.withConfig({
|
|
17
|
+
export var OptionsContainer = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
17
18
|
displayName: "StyledSelect__OptionsContainer",
|
|
18
19
|
componentId: "sc-znp66n-1"
|
|
19
20
|
})(["position:relative;scroll-behavior:smooth;overflow:auto;outline:none;"]);
|
|
20
|
-
export var HiddenInput = styled.input.withConfig({
|
|
21
|
+
export var HiddenInput = styled.input.withConfig(styledComponentsConfig).withConfig({
|
|
21
22
|
displayName: "StyledSelect__HiddenInput",
|
|
22
23
|
componentId: "sc-znp66n-2"
|
|
23
24
|
})(["display:none;"]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "searching"];
|
|
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 { css } from 'styled-components';
|
|
5
5
|
import React, { useState } from 'react';
|
|
6
6
|
import { Box } from '../../..';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["searching"];
|
|
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 } from 'react';
|
|
5
5
|
import { TextInput } from '../../..';
|
|
6
6
|
import { SearchBorderBox } from './SearchBorderBox';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["a11yTitle", "aria-label", "alignSelf", "children", "defaultValue", "disabled", "disabledKey", "dropAlign", "dropHeight", "dropProps", "dropTarget", "emptySearchMessage", "focusIndicator", "gridArea", "help", "id", "icon", "labelKey", "limit", "margin", "messages", "name", "onBlur", "onChange", "onClick", "onClose", "onFocus", "onKeyDown", "onMore", "onOpen", "onSearch", "open", "options", "placeholder", "plain", "replace", "searchPlaceholder", "size", "sortSelectedOnClose", "value", "valueKey", "valueLabel", "showSelectedInline", "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, { forwardRef, isValidElement, useCallback, useContext, useMemo, useState, useRef, useEffect } from 'react';
|
|
5
5
|
import styled, { ThemeContext } from 'styled-components';
|
|
6
6
|
import { controlBorderStyle, useKeyboard, useForwardedRef } from '../../utils';
|
|
@@ -292,7 +292,6 @@ var SelectMultipleContainer = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
292
292
|
onEsc: onClose
|
|
293
293
|
}, /*#__PURE__*/React.createElement(StyledContainer, {
|
|
294
294
|
ref: ref,
|
|
295
|
-
as: Box,
|
|
296
295
|
id: id ? id + "__select-drop" : undefined,
|
|
297
296
|
dropHeight: dropHeight,
|
|
298
297
|
a11yTitle: format({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "footer", "header"];
|
|
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 { Box } from '../Box';
|
|
6
6
|
import { SidebarPropTypes } from './propTypes';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["icon", "label"];
|
|
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 { Avatar, Button, Box, Nav, Stack, Text } from 'grommet';
|
|
6
6
|
import { Analytics } from "grommet-icons/es6/icons/Analytics";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["as", "colors", "width", "height"];
|
|
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 } from 'react';
|
|
5
5
|
import { ThemeContext } from 'styled-components';
|
|
6
6
|
import { defaultProps } from '../../default-props';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { backgroundStyle, edgeStyle, genericStyles, heightStyle, roundStyle, widthStyle } from '../../utils';
|
|
2
|
+
import { backgroundStyle, edgeStyle, genericStyles, heightStyle, roundStyle, widthStyle, styledComponentsConfig } from '../../utils';
|
|
3
3
|
|
|
4
4
|
// Styling a div directly rather than just using
|
|
5
5
|
// a Box since Box itself will react to a SkeletonContext
|
|
6
6
|
// and we don't want that here.
|
|
7
|
-
export var StyledSkeleton = styled.div.withConfig({
|
|
7
|
+
export var StyledSkeleton = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
8
8
|
displayName: "StyledSkeleton",
|
|
9
9
|
componentId: "sc-1omqm6u-0"
|
|
10
|
-
})(["display:flex;box-sizing:border-box;", " ", " ", " ", " ", " ", ""], genericStyles, function (props) {
|
|
10
|
+
})(["display:flex;box-sizing:border-box;", " ", " ", " ", " ", " ", " ", ""], genericStyles, function (props) {
|
|
11
11
|
return props.background && backgroundStyle(props.background, props.theme);
|
|
12
12
|
}, function (props) {
|
|
13
13
|
var _props$theme$text;
|
|
@@ -17,5 +17,8 @@ export var StyledSkeleton = styled.div.withConfig({
|
|
|
17
17
|
}, function (props) {
|
|
18
18
|
return props.pad && edgeStyle('padding', props.pad, props.responsive, props.theme.box.responsiveBreakpoint, props.theme);
|
|
19
19
|
}, function (props) {
|
|
20
|
-
return props.round && roundStyle(props.round,
|
|
20
|
+
return props.round && roundStyle(props.round, true, props.theme);
|
|
21
|
+
}, function (props) {
|
|
22
|
+
var _props$theme;
|
|
23
|
+
return (_props$theme = props.theme) == null || (_props$theme = _props$theme.skeleton) == null ? void 0 : _props$theme.extend;
|
|
21
24
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["title"];
|
|
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, { useEffect, useState } from 'react';
|
|
5
5
|
import { Box, Button, Card, Grid, Image, Text } from 'grommet';
|
|
6
6
|
import { FormAdd } from "grommet-icons/es6/icons/FormAdd";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["title"];
|
|
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, { useContext } from 'react';
|
|
5
5
|
import { Box, Button, Card, Grommet, Image, Text, ThemeContext } from 'grommet';
|
|
6
6
|
var Item = function Item(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["id", "label"];
|
|
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 } from 'react';
|
|
5
5
|
import { Anchor } from '../Anchor';
|
|
6
6
|
export var SkipLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["label"];
|
|
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 styled from 'styled-components';
|
|
6
6
|
import { Anchor } from '../Anchor';
|