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
|
@@ -6,7 +6,7 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
6
6
|
var _utils = require("../../utils");
|
|
7
7
|
var _defaultProps = require("../../default-props");
|
|
8
8
|
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); }
|
|
9
|
-
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 &&
|
|
9
|
+
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; }
|
|
10
10
|
var sizeStyle = function sizeStyle(props) {
|
|
11
11
|
// size is a combination of the level and size properties
|
|
12
12
|
var size = props.size || 'medium';
|
|
@@ -41,7 +41,7 @@ var truncateStyle = "\n white-space: nowrap;\n overflow: hidden;\n text-overf
|
|
|
41
41
|
var colorStyle = (0, _styledComponents.css)(["color:", ";"], function (props) {
|
|
42
42
|
return (0, _utils.normalizeColor)(props.colorProp || props.theme.heading.color, props.theme);
|
|
43
43
|
});
|
|
44
|
-
var StyledHeading = exports.StyledHeading = _styledComponents["default"].h1.withConfig({
|
|
44
|
+
var StyledHeading = exports.StyledHeading = _styledComponents["default"].h1.withConfig(_utils.styledComponentsConfig).withConfig({
|
|
45
45
|
displayName: "StyledHeading",
|
|
46
46
|
componentId: "sc-1rdh4aw-0"
|
|
47
47
|
})(["", " ", " ", " ", " ", " ", " ", ""], _utils.genericStyles, function (props) {
|
|
@@ -7,9 +7,9 @@ var _StyledImage = require("./StyledImage");
|
|
|
7
7
|
var _propTypes = require("./propTypes");
|
|
8
8
|
var _excluded = ["a11yTitle", "fallback", "onError", "onLoad", "opacity", "fill", "src"];
|
|
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
|
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 Image = exports.Image = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
14
14
|
var a11yTitle = _ref.a11yTitle,
|
|
15
15
|
fallback = _ref.fallback,
|
|
@@ -6,7 +6,7 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
6
6
|
var _utils = require("../../utils");
|
|
7
7
|
var _defaultProps = require("../../default-props");
|
|
8
8
|
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); }
|
|
9
|
-
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 &&
|
|
9
|
+
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; }
|
|
10
10
|
var FIT_MAP = {
|
|
11
11
|
cover: 'cover',
|
|
12
12
|
contain: 'contain'
|
|
@@ -14,7 +14,7 @@ var FIT_MAP = {
|
|
|
14
14
|
var fitStyle = (0, _styledComponents.css)(["flex:1 1;overflow:hidden;object-fit:", ";"], function (props) {
|
|
15
15
|
return FIT_MAP[props.fit];
|
|
16
16
|
});
|
|
17
|
-
var StyledImage = exports.StyledImage = _styledComponents["default"].img.withConfig({
|
|
17
|
+
var StyledImage = exports.StyledImage = _styledComponents["default"].img.withConfig(_utils.styledComponentsConfig).withConfig({
|
|
18
18
|
displayName: "StyledImage",
|
|
19
19
|
componentId: "sc-ey4zx9-0"
|
|
20
20
|
})(["", " ", " ", " ", " ", ""], _utils.genericStyles, function (props) {
|
|
@@ -8,7 +8,7 @@ var _utils = require("../../utils");
|
|
|
8
8
|
var _Box = require("../Box");
|
|
9
9
|
var _propTypes = require("./propTypes");
|
|
10
10
|
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); }
|
|
11
|
-
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 &&
|
|
11
|
+
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; }
|
|
12
12
|
var calculateLastPageBound = function calculateLastPageBound(show, step) {
|
|
13
13
|
return show ? Math.floor((show + step) / step) - 1 : 0;
|
|
14
14
|
};
|
|
@@ -5,7 +5,7 @@ exports.Keyboard = void 0;
|
|
|
5
5
|
var _react = require("react");
|
|
6
6
|
var _propTypes = require("./propTypes");
|
|
7
7
|
var _excluded = ["capture", "target", "children", "onKeyDown"];
|
|
8
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
8
|
+
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; }
|
|
9
9
|
var KEYS = {
|
|
10
10
|
8: 'onBackspace',
|
|
11
11
|
9: 'onTab',
|
|
@@ -11,7 +11,7 @@ var _StyledLayer = require("./StyledLayer");
|
|
|
11
11
|
var _ContainerTargetContext = require("../../contexts/ContainerTargetContext");
|
|
12
12
|
var _propTypes = require("./propTypes");
|
|
13
13
|
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); }
|
|
14
|
-
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 &&
|
|
14
|
+
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; }
|
|
15
15
|
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); }
|
|
16
16
|
var Layer = exports.Layer = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
17
17
|
var animate = props.animate,
|
|
@@ -15,10 +15,10 @@ var _utils = require("../../utils");
|
|
|
15
15
|
var _StyledLayer = require("./StyledLayer");
|
|
16
16
|
var _excluded = ["background", "children", "full", "id", "margin", "modal", "onClickOutside", "onEsc", "plain", "position", "responsive", "target"];
|
|
17
17
|
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); }
|
|
18
|
-
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 &&
|
|
18
|
+
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; }
|
|
19
19
|
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); }
|
|
20
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
21
|
-
var HiddenAnchor = _styledComponents["default"].a.withConfig({
|
|
20
|
+
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; }
|
|
21
|
+
var HiddenAnchor = _styledComponents["default"].a.withConfig(_utils.styledComponentsConfig).withConfig({
|
|
22
22
|
displayName: "LayerContainer__HiddenAnchor",
|
|
23
23
|
componentId: "sc-1srj14c-0"
|
|
24
24
|
})(["width:0;height:0;overflow:hidden;position:absolute;&:focus{outline:none;}"]);
|
|
@@ -3,14 +3,16 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.animationDuration = exports.StyledOverlay = exports.StyledLayer = exports.StyledContainer = void 0;
|
|
5
5
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
6
|
+
var _isPropValid = _interopRequireDefault(require("@emotion/is-prop-valid"));
|
|
6
7
|
var _utils = require("../../utils");
|
|
7
8
|
var _defaultProps = require("../../default-props");
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
8
10
|
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); }
|
|
9
|
-
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 &&
|
|
11
|
+
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; }
|
|
10
12
|
var hiddenPositionStyle = (0, _styledComponents.css)(["left:-100%;right:100%;z-index:-1;position:fixed;"]);
|
|
11
13
|
var desktopLayerStyle = "\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n";
|
|
12
14
|
var responsiveLayerStyle = "\n position: fixed;\n width: 100%;\n height: 100%;\n min-height: 100vh;\n";
|
|
13
|
-
var StyledLayer = exports.StyledLayer = _styledComponents["default"].div.withConfig({
|
|
15
|
+
var StyledLayer = exports.StyledLayer = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
|
|
14
16
|
displayName: "StyledLayer",
|
|
15
17
|
componentId: "sc-rmtehz-0"
|
|
16
18
|
})(["", " background:transparent;position:relative;z-index:", ";pointer-events:none;outline:none;", " ", ";"], _utils.baseStyle, function (props) {
|
|
@@ -31,7 +33,7 @@ var StyledLayer = exports.StyledLayer = _styledComponents["default"].div.withCon
|
|
|
31
33
|
});
|
|
32
34
|
StyledLayer.defaultProps = {};
|
|
33
35
|
Object.setPrototypeOf(StyledLayer.defaultProps, _defaultProps.defaultProps);
|
|
34
|
-
var StyledOverlay = exports.StyledOverlay = _styledComponents["default"].div.withConfig({
|
|
36
|
+
var StyledOverlay = exports.StyledOverlay = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
|
|
35
37
|
displayName: "StyledLayer__StyledOverlay",
|
|
36
38
|
componentId: "sc-rmtehz-1"
|
|
37
39
|
})(["position:absolute;", " top:0px;left:0px;right:0px;bottom:0px;", " ", " pointer-events:all;will-change:transform;"], function (props) {
|
|
@@ -446,10 +448,8 @@ var elevationStyle = (0, _styledComponents.css)(["box-shadow:", ";"], function (
|
|
|
446
448
|
return props.theme.global.elevation[props.theme.dark ? 'dark' : 'light'][props.theme.layer.container.elevation];
|
|
447
449
|
});
|
|
448
450
|
var StyledContainer = exports.StyledContainer = _styledComponents["default"].div.withConfig({
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
|
|
452
|
-
return !['elevation'].includes(prop) && defaultValidatorFn(prop);
|
|
451
|
+
shouldForwardProp: function shouldForwardProp(prop) {
|
|
452
|
+
return (0, _isPropValid["default"])(prop) && !['elevation'].includes(prop);
|
|
453
453
|
}
|
|
454
454
|
}).withConfig({
|
|
455
455
|
displayName: "StyledLayer__StyledContainer",
|
package/components/List/List.js
CHANGED
|
@@ -16,11 +16,11 @@ var _AnalyticsContext = require("../../contexts/AnalyticsContext");
|
|
|
16
16
|
var _propTypes = require("./propTypes");
|
|
17
17
|
var _excluded = ["a11yTitle", "aria-label", "action", "as", "background", "border", "children", "data", "defaultItemProps", "disabled", "focus", "itemKey", "itemProps", "onActive", "onClickItem", "onKeyDown", "onMore", "onOrder", "pad", "paginate", "pinned", "primaryKey", "secondaryKey", "show", "step"];
|
|
18
18
|
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); }
|
|
19
|
-
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 &&
|
|
19
|
+
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; }
|
|
20
20
|
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); }
|
|
21
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
21
|
+
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; }
|
|
22
22
|
var emptyData = [];
|
|
23
|
-
var StyledList = _styledComponents["default"].ul.withConfig({
|
|
23
|
+
var StyledList = _styledComponents["default"].ul.withConfig(_utils.styledComponentsConfig).withConfig({
|
|
24
24
|
displayName: "List__StyledList",
|
|
25
25
|
componentId: "sc-130gdqg-0"
|
|
26
26
|
})(["list-style:none;", " padding:0;", " &:focus{", "}", "}&:focus:not(:focus-visible){", "}"], function (props) {
|
|
@@ -180,8 +180,10 @@ var List = exports.List = /*#__PURE__*/_react["default"].forwardRef(function (_r
|
|
|
180
180
|
indexes: pinnedIndexes
|
|
181
181
|
}];
|
|
182
182
|
currentData.forEach(function (item, index) {
|
|
183
|
+
var _pinned$items;
|
|
183
184
|
var key = getValue(item, index, itemKey);
|
|
184
|
-
|
|
185
|
+
var isPinned = Array.isArray(pinned) ? pinned.includes(key) : typeof pinned === 'object' && (pinned == null || (_pinned$items = pinned.items) == null ? void 0 : _pinned$items.includes(key));
|
|
186
|
+
if (isPinned) {
|
|
185
187
|
pinnedData.push(item);
|
|
186
188
|
pinnedIndexes.push(index);
|
|
187
189
|
} else {
|
|
@@ -307,8 +309,21 @@ var List = exports.List = /*#__PURE__*/_react["default"].forwardRef(function (_r
|
|
|
307
309
|
}, marker);
|
|
308
310
|
}
|
|
309
311
|
}, function (item, index) {
|
|
312
|
+
var _pinned$items2;
|
|
310
313
|
var content;
|
|
311
314
|
var boxProps = {};
|
|
315
|
+
var key = getValue(item, index, itemKey) || index;
|
|
316
|
+
var isPinned;
|
|
317
|
+
if (Array.isArray(pinned) && pinned.length > 0 || Array.isArray(pinned == null ? void 0 : pinned.items) && (pinned == null || (_pinned$items2 = pinned.items) == null ? void 0 : _pinned$items2.length) > 0) {
|
|
318
|
+
if (typeof item === 'object' && !itemKey) {
|
|
319
|
+
console.error( // eslint-disable-next-line max-len
|
|
320
|
+
"Warning: Missing prop itemKey. Prop pin requires itemKey to be specified when data is of type 'object'.");
|
|
321
|
+
}
|
|
322
|
+
isPinned = Array.isArray(pinned) ? pinned == null ? void 0 : pinned.includes(key) : pinned.items.some(function (pinnedItem) {
|
|
323
|
+
return pinnedItem === key;
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
var pinnedColor = isPinned ? pinned.color : undefined;
|
|
312
327
|
if (children) {
|
|
313
328
|
content = children(item, index, onClickItem ? {
|
|
314
329
|
active: active === index
|
|
@@ -316,11 +331,13 @@ var List = exports.List = /*#__PURE__*/_react["default"].forwardRef(function (_r
|
|
|
316
331
|
} else if (primaryKey) {
|
|
317
332
|
var primary = getValue(item, index, primaryKey);
|
|
318
333
|
content = typeof primary === 'string' || typeof primary === 'number' ? /*#__PURE__*/_react["default"].createElement(_Text.Text, _extends({
|
|
334
|
+
color: pinnedColor,
|
|
319
335
|
key: "p"
|
|
320
336
|
}, theme.list.primaryKey), primary) : primary;
|
|
321
337
|
if (secondaryKey) {
|
|
322
338
|
var secondary = getValue(item, index, secondaryKey);
|
|
323
339
|
content = [content, typeof secondary === 'string' || typeof secondary === 'number' ? /*#__PURE__*/_react["default"].createElement(_Text.Text, {
|
|
340
|
+
color: pinnedColor,
|
|
324
341
|
key: "s"
|
|
325
342
|
}, getValue(item, index, secondaryKey)) : secondary];
|
|
326
343
|
boxProps = {
|
|
@@ -331,11 +348,20 @@ var List = exports.List = /*#__PURE__*/_react["default"].forwardRef(function (_r
|
|
|
331
348
|
};
|
|
332
349
|
}
|
|
333
350
|
} else if (typeof item === 'object') {
|
|
334
|
-
|
|
351
|
+
var value = item[Object.keys(item)[0]];
|
|
352
|
+
content =
|
|
353
|
+
// for backwards compatibility, only wrap in Text if
|
|
354
|
+
// pinned.color is defined
|
|
355
|
+
pinnedColor && typeof value === 'string' ? /*#__PURE__*/_react["default"].createElement(_Text.Text, {
|
|
356
|
+
color: pinnedColor
|
|
357
|
+
}, value) : value;
|
|
335
358
|
} else {
|
|
336
|
-
|
|
359
|
+
// for backwards compatibility, only wrap in Text if
|
|
360
|
+
// pinned.color is defined
|
|
361
|
+
content = pinnedColor ? /*#__PURE__*/_react["default"].createElement(_Text.Text, {
|
|
362
|
+
color: pinnedColor
|
|
363
|
+
}, item) : item;
|
|
337
364
|
}
|
|
338
|
-
var key = getValue(item, index, itemKey) || index;
|
|
339
365
|
var orderableIndex = orderableData.findIndex(function (ordItem, ordIndex) {
|
|
340
366
|
return getValue(ordItem, ordIndex, itemKey) === key;
|
|
341
367
|
});
|
|
@@ -347,14 +373,6 @@ var List = exports.List = /*#__PURE__*/_react["default"].forwardRef(function (_r
|
|
|
347
373
|
}
|
|
348
374
|
isDisabled = disabledItems == null ? void 0 : disabledItems.includes(key);
|
|
349
375
|
}
|
|
350
|
-
var isPinned;
|
|
351
|
-
if (pinned.length > 0) {
|
|
352
|
-
if (typeof item === 'object' && !itemKey) {
|
|
353
|
-
console.error( // eslint-disable-next-line max-len
|
|
354
|
-
"Warning: Missing prop itemKey. Prop pin requires itemKey to be specified when data is of type 'object'.");
|
|
355
|
-
}
|
|
356
|
-
isPinned = pinned == null ? void 0 : pinned.includes(key);
|
|
357
|
-
}
|
|
358
376
|
if (action) {
|
|
359
377
|
content = [/*#__PURE__*/_react["default"].createElement(_Box.Box, {
|
|
360
378
|
align: "start",
|
|
@@ -373,7 +391,7 @@ var List = exports.List = /*#__PURE__*/_react["default"].forwardRef(function (_r
|
|
|
373
391
|
} else if (Array.isArray(adjustedBackground)) {
|
|
374
392
|
adjustedBackground = adjustedBackground[index % adjustedBackground.length];
|
|
375
393
|
} else if (isPinned) {
|
|
376
|
-
adjustedBackground = theme.list.item.pinned.background;
|
|
394
|
+
adjustedBackground = (pinned == null ? void 0 : pinned.background) || theme.list.item.pinned.background;
|
|
377
395
|
}
|
|
378
396
|
var adjustedBorder = border !== undefined ? border : theme.list.item.border;
|
|
379
397
|
if (adjustedBorder === 'horizontal' && index) {
|
|
@@ -547,10 +565,16 @@ var List = exports.List = /*#__PURE__*/_react["default"].forwardRef(function (_r
|
|
|
547
565
|
}
|
|
548
566
|
var displayPinned;
|
|
549
567
|
if (isPinned) {
|
|
550
|
-
|
|
551
|
-
var Pin = theme.list.icons.pin;
|
|
568
|
+
var _pinIcon$props;
|
|
552
569
|
var pinSize = theme.list.item.pinned.icon.size;
|
|
553
570
|
var pinPad = theme.list.item.pinned.icon.pad;
|
|
571
|
+
var Icon = (pinned == null ? void 0 : pinned.icon) || theme.list.icons.pin;
|
|
572
|
+
var pinIcon = /*#__PURE__*/_react["default"].isValidElement(Icon) ? Icon : /*#__PURE__*/_react["default"].createElement(Icon, null);
|
|
573
|
+
pinIcon = /*#__PURE__*/(0, _react.cloneElement)(pinIcon, _extends({}, !((_pinIcon$props = pinIcon.props) != null && _pinIcon$props.color) && pinnedColor ? {
|
|
574
|
+
color: pinnedColor
|
|
575
|
+
} : {}, {
|
|
576
|
+
size: pinSize
|
|
577
|
+
}));
|
|
554
578
|
boxProps = {
|
|
555
579
|
direction: 'row',
|
|
556
580
|
align: defaultItemProps && defaultItemProps.align || 'center',
|
|
@@ -561,9 +585,7 @@ var List = exports.List = /*#__PURE__*/_react["default"].forwardRef(function (_r
|
|
|
561
585
|
align: "center",
|
|
562
586
|
justify: "end",
|
|
563
587
|
pad: pinPad
|
|
564
|
-
},
|
|
565
|
-
size: pinSize
|
|
566
|
-
}));
|
|
588
|
+
}, pinIcon);
|
|
567
589
|
content = /*#__PURE__*/_react["default"].createElement(_Box.Box, {
|
|
568
590
|
flex: true
|
|
569
591
|
}, content);
|
|
@@ -579,7 +601,9 @@ var List = exports.List = /*#__PURE__*/_react["default"].forwardRef(function (_r
|
|
|
579
601
|
isDisabled: isDisabled,
|
|
580
602
|
flex: false,
|
|
581
603
|
pad: pad || theme.list.item.pad
|
|
582
|
-
}, defaultItemProps, boxProps, clickProps, orderProps, itemAriaProps), onOrder && /*#__PURE__*/_react["default"].createElement(_Text.Text,
|
|
604
|
+
}, defaultItemProps, boxProps, clickProps, orderProps, itemAriaProps), onOrder && /*#__PURE__*/_react["default"].createElement(_Text.Text, {
|
|
605
|
+
color: pinnedColor
|
|
606
|
+
}, index + 1), content, displayPinned, orderControls);
|
|
583
607
|
}))), paginate && data.length > step && items && items.length ? /*#__PURE__*/_react["default"].createElement(_Pagination.Pagination, _extends({
|
|
584
608
|
alignSelf: "end"
|
|
585
609
|
}, paginationProps)) : null);
|
|
@@ -2,6 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
A11yTitleType,
|
|
4
4
|
AlignSelfType,
|
|
5
|
+
BackgroundType,
|
|
6
|
+
ColorType,
|
|
5
7
|
GridAreaType,
|
|
6
8
|
MarginType,
|
|
7
9
|
PadType,
|
|
@@ -43,7 +45,11 @@ export interface ListProps<ListItemType> {
|
|
|
43
45
|
| string[]
|
|
44
46
|
| { light: string | string[]; dark: string | string[] };
|
|
45
47
|
border?: BorderType;
|
|
46
|
-
children?: (
|
|
48
|
+
children?: (
|
|
49
|
+
item: ListItemType,
|
|
50
|
+
index: number,
|
|
51
|
+
state?: { active: boolean },
|
|
52
|
+
) => any;
|
|
47
53
|
data?: ListItemType[];
|
|
48
54
|
disabled?: string[];
|
|
49
55
|
gridArea?: GridAreaType;
|
|
@@ -54,14 +60,22 @@ export interface ListProps<ListItemType> {
|
|
|
54
60
|
};
|
|
55
61
|
margin?: MarginType;
|
|
56
62
|
onActive?: (index: number) => void;
|
|
57
|
-
onClickItem?:
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
onClickItem?: (
|
|
64
|
+
event: React.MouseEvent & { item: ListItemType; index: number },
|
|
65
|
+
) => void;
|
|
60
66
|
onMore?: () => void;
|
|
61
67
|
onOrder?: (orderedData: ListItemType[]) => void;
|
|
62
68
|
pad?: PadType;
|
|
63
69
|
paginate?: boolean | PaginationType;
|
|
64
|
-
pinned?:
|
|
70
|
+
pinned?:
|
|
71
|
+
| boolean
|
|
72
|
+
| (string | number)[]
|
|
73
|
+
| {
|
|
74
|
+
items?: (string | number)[];
|
|
75
|
+
background?: BackgroundType;
|
|
76
|
+
color?: ColorType;
|
|
77
|
+
icon?: JSX.Element;
|
|
78
|
+
};
|
|
65
79
|
primaryKey?: string | ((item: ListItemType) => React.ReactElement);
|
|
66
80
|
secondaryKey?: string | ((item: ListItemType) => React.ReactElement);
|
|
67
81
|
show?: number | { page?: number };
|
|
@@ -76,7 +90,7 @@ export interface ListExtendedProps<ListItemType>
|
|
|
76
90
|
ulProps {}
|
|
77
91
|
|
|
78
92
|
declare const List: <ListItemType = string | {}>(
|
|
79
|
-
p:
|
|
93
|
+
p: ListExtendedProps<ListItemType>,
|
|
80
94
|
) => React.ReactElement<ListExtendedProps<ListItemType>>;
|
|
81
95
|
|
|
82
96
|
export { List };
|
|
@@ -40,7 +40,12 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
40
40
|
onOrder: _propTypes["default"].func,
|
|
41
41
|
pad: _propTypes["default"].oneOfType([_generalPropTypes.padPropType]),
|
|
42
42
|
paginate: _propTypes["default"].oneOfType([_propTypes["default"].bool, _propTypes["default"].object]),
|
|
43
|
-
pinned: _propTypes["default"].arrayOf(_propTypes["default"].string),
|
|
43
|
+
pinned: _propTypes["default"].oneOfType([_propTypes["default"].bool, _propTypes["default"].arrayOf(_propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])), _propTypes["default"].shape({
|
|
44
|
+
items: _propTypes["default"].arrayOf(_propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])),
|
|
45
|
+
background: _generalPropTypes.backgroundDoc,
|
|
46
|
+
color: _propTypes["default"].string,
|
|
47
|
+
icon: _propTypes["default"].element
|
|
48
|
+
})]),
|
|
44
49
|
primaryKey: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].func]),
|
|
45
50
|
secondaryKey: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].func]),
|
|
46
51
|
show: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].shape({
|
|
@@ -5,7 +5,7 @@ exports["default"] = exports.Order = void 0;
|
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
7
|
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); }
|
|
8
|
-
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 &&
|
|
8
|
+
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; }
|
|
9
9
|
var locations = ['Boise', 'Fort Collins', 'Los Gatos', 'Palo Alto', 'San Francisco'];
|
|
10
10
|
var Order = exports.Order = function Order() {
|
|
11
11
|
var _useState = (0, _react.useState)(locations),
|
|
@@ -5,7 +5,7 @@ exports["default"] = exports.Pinned = void 0;
|
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
7
|
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); }
|
|
8
|
-
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 &&
|
|
8
|
+
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; }
|
|
9
9
|
var locations = ['Los Angelos', 'Boise', 'Fort Collins', 'Los Gatos', 'Palo Alto', 'Pheonix', 'San Francisco', 'Trenton'];
|
|
10
10
|
var pinnedLocations = ['Los Angelos', 'Fort Collins', 'Palo Alto', 'Pheonix', 'Trenton'];
|
|
11
11
|
var Pinned = exports.Pinned = function Pinned() {
|
|
@@ -19,9 +19,9 @@ var _propTypes = require("./propTypes");
|
|
|
19
19
|
var _excluded = ["children", "components", "options", "theme"];
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
21
|
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); }
|
|
22
|
-
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 &&
|
|
22
|
+
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; }
|
|
23
23
|
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); }
|
|
24
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
24
|
+
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; }
|
|
25
25
|
var GrommetMarkdown = exports.Markdown = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
26
26
|
var children = _ref.children,
|
|
27
27
|
components = _ref.components,
|
|
@@ -5,9 +5,10 @@ exports["default"] = exports.ComponentOverrideMarkdown = void 0;
|
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
7
7
|
var _grommet = require("grommet");
|
|
8
|
+
var _styles = require("../../../utils/styles");
|
|
8
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
10
|
var CONTENT = "\n # Out of Breath\n\n You know, sometimes in life it seems like there's no way out. Like\n a sheep trapped in a maze designed by wolves. See all the\n options [here](https://github.com/probablyup/markdown-to-jsx/)\n\n [reference](#)\n\n```\nimport { Grommet } from 'grommet';\n```\n\n > i carry your heart with me\n\n \n\n Markdown | Less | Pretty\n --- | --- | ---\n *Still* | `renders` | **nicely**\n 1 | 2 | 3\n";
|
|
10
|
-
var StyledPre = _styledComponents["default"].pre.withConfig({
|
|
11
|
+
var StyledPre = _styledComponents["default"].pre.withConfig(_styles.styledComponentsConfig).withConfig({
|
|
11
12
|
displayName: "Override__StyledPre",
|
|
12
13
|
componentId: "sc-13lo9xg-0"
|
|
13
14
|
})(["background-color:#ffca58;"]);
|
|
@@ -15,9 +15,9 @@ var _StyledMaskedInput = require("./StyledMaskedInput");
|
|
|
15
15
|
var _propTypes = require("./propTypes");
|
|
16
16
|
var _excluded = ["a11yTitle", "dropHeight", "dropProps", "focus", "focusIndicator", "icon", "id", "mask", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "placeholder", "plain", "reverse", "textAlign", "value"];
|
|
17
17
|
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); }
|
|
18
|
-
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 &&
|
|
18
|
+
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; }
|
|
19
19
|
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); }
|
|
20
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
20
|
+
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; }
|
|
21
21
|
var parseValue = function parseValue(mask, value) {
|
|
22
22
|
// break the value up into mask parts
|
|
23
23
|
var valueParts = []; // { part, beginIndex, endIndex }
|
|
@@ -6,7 +6,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
6
6
|
var _utils = require("../../utils");
|
|
7
7
|
var _styles = require("../../utils/styles");
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
-
var StyledMaskedInput = exports.StyledMaskedInput = _styledComponents["default"].input.withConfig({
|
|
9
|
+
var StyledMaskedInput = exports.StyledMaskedInput = _styledComponents["default"].input.withConfig(_utils.styledComponentsConfig).withConfig({
|
|
10
10
|
displayName: "StyledMaskedInput",
|
|
11
11
|
componentId: "sc-99vkfa-0"
|
|
12
12
|
})(["", " ", " ", " ", " ", " ", ";"], _utils.inputStyle, function (props) {
|
|
@@ -20,13 +20,13 @@ var StyledMaskedInput = exports.StyledMaskedInput = _styledComponents["default"]
|
|
|
20
20
|
}, function (props) {
|
|
21
21
|
return props.theme.maskedInput && props.theme.maskedInput.extend;
|
|
22
22
|
});
|
|
23
|
-
var StyledMaskedInputContainer = exports.StyledMaskedInputContainer = _styledComponents["default"].div.withConfig({
|
|
23
|
+
var StyledMaskedInputContainer = exports.StyledMaskedInputContainer = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
|
|
24
24
|
displayName: "StyledMaskedInput__StyledMaskedInputContainer",
|
|
25
25
|
componentId: "sc-99vkfa-1"
|
|
26
26
|
})(["position:relative;width:100%;", ";"], function (props) {
|
|
27
27
|
return props.theme.maskedInput && props.theme.maskedInput.container && props.theme.maskedInput.container.extend;
|
|
28
28
|
});
|
|
29
|
-
var StyledIcon = exports.StyledIcon = _styledComponents["default"].div.withConfig({
|
|
29
|
+
var StyledIcon = exports.StyledIcon = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
|
|
30
30
|
displayName: "StyledMaskedInput__StyledIcon",
|
|
31
31
|
componentId: "sc-99vkfa-2"
|
|
32
32
|
})(["position:absolute;display:flex;justify:center;top:50%;transform:translateY(-50%);pointer-events:none;", ""], function (props) {
|
package/components/Menu/Menu.js
CHANGED
|
@@ -16,13 +16,13 @@ var _propTypes = require("./propTypes");
|
|
|
16
16
|
var _excluded = ["a11yTitle", "aria-label", "children", "disabled", "dropAlign", "dropBackground", "dropProps", "dropTarget", "justifyContent", "icon", "items", "label", "messages", "onKeyDown", "open", "plain", "size"],
|
|
17
17
|
_excluded2 = ["align"];
|
|
18
18
|
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); }
|
|
19
|
-
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 &&
|
|
19
|
+
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; }
|
|
20
20
|
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); }
|
|
21
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
21
|
+
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; }
|
|
22
22
|
var ContainerBox = (0, _styledComponents["default"])(_Box.Box).withConfig({
|
|
23
23
|
displayName: "Menu__ContainerBox",
|
|
24
24
|
componentId: "sc-17fcys9-0"
|
|
25
|
-
})(["max-height:inherit;@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){width:100%;}
|
|
25
|
+
})(["max-height:inherit;@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){width:100%;}&:focus{outline:none;}", ";"], function (props) {
|
|
26
26
|
return props.theme.menu.extend;
|
|
27
27
|
});
|
|
28
28
|
|
package/components/Meter/Bar.js
CHANGED
|
@@ -11,9 +11,9 @@ var _utils2 = require("./utils");
|
|
|
11
11
|
var _excluded = ["background", "max", "round", "size", "thickness", "direction", "values", "reverse"],
|
|
12
12
|
_excluded2 = ["color", "highlight", "label", "onHover", "value"];
|
|
13
13
|
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); }
|
|
14
|
-
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 &&
|
|
14
|
+
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; }
|
|
15
15
|
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); }
|
|
16
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
16
|
+
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; }
|
|
17
17
|
var Bar = exports.Bar = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
18
18
|
var background = props.background,
|
|
19
19
|
max = props.max,
|
|
@@ -11,9 +11,9 @@ var _utils2 = require("./utils");
|
|
|
11
11
|
var _excluded = ["background", "max", "round", "size", "thickness", "type", "values"],
|
|
12
12
|
_excluded2 = ["color", "highlight", "label", "onHover", "value"];
|
|
13
13
|
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); }
|
|
14
|
-
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 &&
|
|
14
|
+
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; }
|
|
15
15
|
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); }
|
|
16
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
16
|
+
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; }
|
|
17
17
|
var Circle = exports.Circle = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
18
18
|
var background = props.background,
|
|
19
19
|
max = props.max,
|
|
@@ -10,9 +10,9 @@ var _Circle = require("./Circle");
|
|
|
10
10
|
var _propTypes = require("./propTypes");
|
|
11
11
|
var _excluded = ["background", "color", "direction", "size", "thickness", "type", "reverse", "value", "values"];
|
|
12
12
|
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); }
|
|
13
|
-
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 &&
|
|
13
|
+
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; }
|
|
14
14
|
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); }
|
|
15
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
15
|
+
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; }
|
|
16
16
|
var deriveMax = function deriveMax(values) {
|
|
17
17
|
var max = 100;
|
|
18
18
|
if (values && values.length > 1) {
|
|
@@ -6,13 +6,13 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
6
6
|
var _utils = require("../../utils");
|
|
7
7
|
var _defaultProps = require("../../default-props");
|
|
8
8
|
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); }
|
|
9
|
-
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 &&
|
|
9
|
+
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; }
|
|
10
10
|
var roundStyle = (0, _styledComponents.css)(["border-radius:", ";"], function (props) {
|
|
11
11
|
return props.theme.global.edgeSize[props.round.size];
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
// overflow: hidden is needed for ie11
|
|
15
|
-
var StyledMeter = exports.StyledMeter = _styledComponents["default"].svg.withConfig({
|
|
15
|
+
var StyledMeter = exports.StyledMeter = _styledComponents["default"].svg.withConfig(_utils.styledComponentsConfig).withConfig({
|
|
16
16
|
displayName: "StyledMeter",
|
|
17
17
|
componentId: "sc-nsxarx-0"
|
|
18
18
|
})(["max-width:100%;overflow:hidden;", " ", " ", " path{transition:stroke 0.3s,stroke-width 0.3s;}", ";"], function (props) {
|
|
@@ -5,7 +5,7 @@ exports["default"] = exports.Circle = void 0;
|
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
7
|
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); }
|
|
8
|
-
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 &&
|
|
8
|
+
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; }
|
|
9
9
|
var Circle = exports.Circle = function Circle() {
|
|
10
10
|
var _useState = (0, _react.useState)(20),
|
|
11
11
|
value = _useState[0],
|