grommet 2.33.2 → 2.35.0-alpha.1
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 +5 -7
- package/all/stories/Colors.js +3 -5
- package/all/stories/CustomThemed/DefaultTheme.js +3 -5
- package/all/stories/TypographyLarge.js +3 -5
- package/all/stories/TypographyMedium.js +3 -5
- package/all/stories/TypographySmall.js +3 -5
- package/components/Accordion/Accordion.js +3 -4
- package/components/Accordion/AccordionContext.js +1 -2
- package/components/Accordion/propTypes.js +1 -2
- package/components/Accordion/stories/CustomHeader.js +5 -7
- package/components/Accordion/stories/CustomThemed/Custom.js +3 -5
- package/components/Accordion/stories/Multiple.js +4 -5
- package/components/Accordion/stories/Simple.js +3 -5
- package/components/AccordionPanel/AccordionPanel.js +3 -4
- package/components/AccordionPanel/propTypes.js +1 -2
- package/components/Anchor/Anchor.js +3 -4
- package/components/Anchor/StyledAnchor.js +3 -10
- package/components/Anchor/propTypes.js +1 -2
- package/components/Anchor/stories/Color.js +3 -5
- package/components/Anchor/stories/Default.js +3 -5
- package/components/Anchor/stories/Gap.js +3 -5
- package/components/Anchor/stories/Size.js +3 -5
- package/components/Anchor/stories/Weight.js +3 -5
- package/components/Avatar/Avatar.js +3 -4
- package/components/Avatar/StyledAvatar.js +2 -4
- package/components/Avatar/propTypes.js +1 -2
- package/components/Avatar/stories/Basic.js +3 -5
- package/components/Avatar/stories/CustomThemed/Themed.js +3 -5
- package/components/Avatar/stories/Round.js +3 -5
- package/components/Avatar/stories/Sizes.js +3 -5
- package/components/Box/Box.js +3 -4
- package/components/Box/StyledBox.js +4 -6
- package/components/Box/index.d.ts +1 -1
- package/components/Box/propTypes.js +1 -2
- package/components/Box/stories/Animation.js +3 -5
- package/components/Box/stories/Background.js +4 -5
- package/components/Box/stories/BackgroundThemed.js +6 -7
- package/components/Box/stories/Border.js +4 -5
- package/components/Box/stories/Custom.js +4 -5
- package/components/Box/stories/Elevation.js +4 -5
- package/components/Box/stories/Fixed.js +4 -5
- package/components/Box/stories/MinMax.js +4 -5
- package/components/Box/stories/OnClick.js +4 -5
- package/components/Box/stories/RTL.js +4 -5
- package/components/Box/stories/Round.js +5 -6
- package/components/Box/stories/Simple.js +8 -8
- package/components/Button/Badge.js +4 -5
- package/components/Button/BusyAnimation.js +7 -9
- package/components/Button/Button.js +3 -4
- package/components/Button/StyledButton.js +4 -4
- package/components/Button/StyledButtonKind.js +7 -8
- package/components/Button/propTypes.js +1 -2
- package/components/Button/stories/Active.js +3 -5
- package/components/Button/stories/Basic.js +3 -5
- package/components/Button/stories/Busy.js +5 -7
- package/components/Button/stories/CustomThemed/Active.js +3 -5
- package/components/Button/stories/CustomThemed/Plain.js +3 -5
- package/components/Button/stories/CustomThemed/ThemedButtons.js +3 -5
- package/components/Button/stories/Fill.js +3 -5
- package/components/Button/stories/Icon.js +3 -5
- package/components/Button/stories/IconLabel.js +3 -5
- package/components/Button/stories/Kind.js +3 -5
- package/components/Button/stories/Multiple.js +3 -5
- package/components/Button/stories/RoutedButton.js +3 -5
- package/components/Button/stories/Sizes.js +3 -5
- package/components/Button/stories/TipOnButton.js +3 -5
- package/components/Calendar/Calendar.js +4 -6
- package/components/Calendar/StyledCalendar.js +8 -14
- package/components/Calendar/propTypes.js +1 -2
- package/components/Calendar/stories/ActiveDate.js +6 -7
- package/components/Calendar/stories/CustomDay.js +6 -7
- package/components/Calendar/stories/CustomHeader.js +6 -7
- package/components/Calendar/stories/CustomThemed/CustomSizeHeading.js +5 -7
- package/components/Calendar/stories/DaylightSavings.js +4 -5
- package/components/Calendar/stories/Dual.js +5 -7
- package/components/Calendar/stories/Fill.js +3 -5
- package/components/Calendar/stories/Multiple.js +5 -7
- package/components/Calendar/stories/Range.js +3 -5
- package/components/Calendar/stories/ShowAdjacentDays.js +6 -7
- package/components/Calendar/stories/Simple.js +5 -7
- package/components/Calendar/stories/SundayFirstDay.js +4 -5
- package/components/Calendar/utils.js +14 -27
- package/components/Card/Card.js +3 -4
- package/components/Card/stories/CustomThemed/Clickable.js +3 -5
- package/components/Card/stories/CustomThemed/RichFooter.js +3 -5
- package/components/Card/stories/CustomThemed/Stacked.js +3 -5
- package/components/Card/stories/CustomThemed/Themed.js +3 -5
- package/components/Card/stories/Simple.js +3 -5
- package/components/CardBody/CardBody.js +4 -5
- package/components/CardFooter/CardFooter.js +4 -5
- package/components/CardHeader/CardHeader.js +4 -5
- package/components/Cards/Cards.js +3 -4
- package/components/Cards/propTypes.js +1 -2
- package/components/Cards/stories/Children.js +3 -5
- package/components/Cards/stories/Paginated.js +3 -5
- package/components/Cards/stories/Simple.js +3 -5
- package/components/Carousel/Carousel.js +3 -4
- package/components/Carousel/CarouselChild.js +3 -4
- package/components/Carousel/StyledCarousel.js +6 -9
- package/components/Carousel/propTypes.js +2 -4
- package/components/Carousel/stories/Autoplay.js +3 -5
- package/components/Carousel/stories/ControlVariations.js +4 -5
- package/components/Carousel/stories/Controlled.js +4 -5
- package/components/Carousel/stories/CustomThemed/Custom.js +3 -5
- package/components/Carousel/stories/InteractiveChild.js +4 -5
- package/components/Carousel/stories/Multiple.js +3 -5
- package/components/Carousel/stories/Simple.js +4 -5
- package/components/Chart/Chart.js +3 -4
- package/components/Chart/StyledChart.js +3 -4
- package/components/Chart/calcs.js +4 -7
- package/components/Chart/index.d.ts +4 -4
- package/components/Chart/propTypes.js +1 -2
- package/components/Chart/stories/Animate.js +4 -5
- package/components/Chart/stories/Dash.js +3 -5
- package/components/Chart/stories/Gradient.js +4 -5
- package/components/Chart/stories/Horizontal.js +3 -5
- package/components/Chart/stories/Labelled.js +4 -5
- package/components/Chart/stories/Layout.js +3 -5
- package/components/Chart/stories/Pattern.js +3 -5
- package/components/Chart/stories/Point.js +3 -5
- package/components/Chart/stories/Range.js +3 -5
- package/components/Chart/stories/Rich.js +5 -7
- package/components/Chart/stories/Round.js +3 -5
- package/components/Chart/stories/Scan.js +5 -7
- package/components/Chart/stories/ValueStyle.js +4 -5
- package/components/Chart/stories/Window.js +5 -7
- package/components/Chart/stories/Zoom.js +5 -7
- package/components/Chart/stories/data.js +1 -2
- package/components/Chart/utils.js +6 -11
- package/components/CheckBox/CheckBox.js +3 -7
- package/components/CheckBox/StyledCheckBox.js +13 -19
- package/components/CheckBox/propTypes.js +1 -2
- package/components/CheckBox/stories/Children.js +3 -5
- package/components/CheckBox/stories/CustomThemed/Custom.js +5 -7
- package/components/CheckBox/stories/CustomThemed/CustomToggle.js +5 -7
- package/components/CheckBox/stories/Indeterminate.js +5 -7
- package/components/CheckBox/stories/InsideButton.js +5 -7
- package/components/CheckBox/stories/NoLabel.js +5 -7
- package/components/CheckBox/stories/Simple.js +5 -7
- package/components/CheckBox/stories/WithStickyDiv.js +5 -7
- package/components/CheckBoxGroup/CheckBoxGroup.js +3 -4
- package/components/CheckBoxGroup/StyledCheckBoxGroup.js +1 -2
- package/components/CheckBoxGroup/propTypes.js +1 -2
- package/components/CheckBoxGroup/stories/Children.js +5 -7
- package/components/CheckBoxGroup/stories/Disabled.js +3 -5
- package/components/CheckBoxGroup/stories/InitialValues.js +5 -7
- package/components/CheckBoxGroup/stories/Simple.js +3 -5
- package/components/Clock/Analog.js +3 -4
- package/components/Clock/Clock.js +3 -4
- package/components/Clock/Digital.js +4 -5
- package/components/Clock/StyledClock.js +9 -16
- package/components/Clock/propTypes.js +1 -2
- package/components/Clock/stories/Analog.js +4 -5
- package/components/Clock/stories/Countdown.js +4 -5
- package/components/Clock/stories/CustomThemed/Digital.js +3 -5
- package/components/Collapsible/Collapsible.js +3 -4
- package/components/Collapsible/propTypes.js +1 -2
- package/components/Collapsible/stories/Horizontal.js +4 -5
- package/components/Collapsible/stories/Nested.js +4 -5
- package/components/Collapsible/stories/Simple.js +4 -5
- package/components/Data/Data.js +3 -4
- package/components/Data/DataForm.js +12 -21
- package/components/Data/filter.js +2 -3
- package/components/Data/propTypes.js +1 -2
- package/components/Data/stories/Cards.js +4 -5
- package/components/Data/stories/Complex.js +4 -5
- package/components/Data/stories/Controlled.js +6 -7
- package/components/Data/stories/DataTable.js +4 -5
- package/components/Data/stories/Infinite.js +7 -8
- package/components/Data/stories/Inline.js +6 -7
- package/components/Data/stories/List.js +4 -5
- package/components/Data/stories/Simple.js +4 -5
- package/components/Data/stories/SpaceX.js +7 -8
- package/components/Data/stories/StarWars.js +8 -9
- package/components/Data/stories/Views.js +4 -5
- package/components/DataChart/DataChart.js +3 -4
- package/components/DataChart/Detail.js +4 -5
- package/components/DataChart/Legend.js +4 -5
- package/components/DataChart/Swatch.js +4 -5
- package/components/DataChart/XAxis.js +4 -5
- package/components/DataChart/XGuide.js +4 -5
- package/components/DataChart/YAxis.js +4 -5
- package/components/DataChart/YGuide.js +4 -5
- package/components/DataChart/propTypes.js +1 -2
- package/components/DataChart/stories/Axis.js +3 -5
- package/components/DataChart/stories/Detail.js +3 -5
- package/components/DataChart/stories/Everything.js +3 -5
- package/components/DataChart/stories/FourDimension.js +4 -5
- package/components/DataChart/stories/Guide.js +3 -5
- package/components/DataChart/stories/GuideDefault.js +4 -5
- package/components/DataChart/stories/Horizontal.js +3 -5
- package/components/DataChart/stories/Legend.js +3 -5
- package/components/DataChart/stories/MultipleTypes.js +4 -5
- package/components/DataChart/stories/Offset.js +4 -5
- package/components/DataChart/stories/Pad.js +3 -5
- package/components/DataChart/stories/Pattern.js +3 -5
- package/components/DataChart/stories/Placeholder.js +3 -5
- package/components/DataChart/stories/Prediction.js +5 -7
- package/components/DataChart/stories/Simple.js +3 -5
- package/components/DataChart/stories/StackedAreas.js +4 -5
- package/components/DataChart/stories/StackedBars.js +4 -5
- package/components/DataChart/stories/StackedLines.js +4 -5
- package/components/DataChart/utils.js +10 -19
- package/components/DataFilter/DataFilter.js +3 -4
- package/components/DataFilter/propTypes.js +1 -2
- package/components/DataFilter/stories/Simple.js +4 -5
- package/components/DataFilters/DataFilters.js +7 -8
- package/components/DataFilters/propTypes.js +1 -2
- package/components/DataFilters/stories/Drop.js +4 -5
- package/components/DataFilters/stories/Inline.js +4 -5
- package/components/DataFilters/stories/Layer.js +4 -5
- package/components/DataFilters/stories/Simple.js +4 -5
- package/components/DataSearch/DataSearch.js +3 -4
- package/components/DataSearch/propTypes.js +1 -2
- package/components/DataSearch/stories/Drop.js +4 -5
- package/components/DataSearch/stories/Responsive.js +4 -5
- package/components/DataSearch/stories/Simple.js +4 -5
- package/components/DataSort/DataSort.js +3 -4
- package/components/DataSort/propTypes.js +1 -2
- package/components/DataSort/stories/Drop.js +4 -5
- package/components/DataSort/stories/Simple.js +4 -5
- package/components/DataSummary/DataSummary.js +3 -4
- package/components/DataSummary/propTypes.js +1 -2
- package/components/DataSummary/stories/Simple.js +4 -5
- package/components/DataTable/Body.js +5 -6
- package/components/DataTable/Cell.js +3 -4
- package/components/DataTable/DataTable.js +8 -6
- package/components/DataTable/ExpanderCell.js +3 -4
- package/components/DataTable/Footer.js +3 -4
- package/components/DataTable/GroupedBody.js +4 -5
- package/components/DataTable/Header.js +8 -8
- package/components/DataTable/PlaceholderBody.js +4 -5
- package/components/DataTable/Resizer.js +3 -4
- package/components/DataTable/Searcher.js +3 -4
- package/components/DataTable/Sorter.js +3 -4
- package/components/DataTable/StyledDataTable.js +11 -19
- package/components/DataTable/buildState.js +13 -25
- package/components/DataTable/index.d.ts +1 -0
- package/components/DataTable/propTypes.js +2 -2
- package/components/DataTable/stories/AllowSelectAll.js +110 -0
- package/components/DataTable/stories/ColumnSize.js +4 -5
- package/components/DataTable/stories/Controlled.js +4 -5
- package/components/DataTable/stories/ControlledGrouped.js +6 -7
- package/components/DataTable/stories/CustomThemed/Custom.js +4 -6
- package/components/DataTable/stories/CustomThemed/Fill.js +3 -5
- package/components/DataTable/stories/Grouped.js +4 -5
- package/components/DataTable/stories/GroupedOnSelect.js +4 -5
- package/components/DataTable/stories/InfiniteScrollDataTable.js +4 -5
- package/components/DataTable/stories/MultiplePin.js +4 -5
- package/components/DataTable/stories/NoPrimary.js +4 -5
- package/components/DataTable/stories/OnUpdate.js +6 -7
- package/components/DataTable/stories/Placeholder.js +3 -5
- package/components/DataTable/stories/ResizableColumns.js +4 -5
- package/components/DataTable/stories/Served.js +4 -5
- package/components/DataTable/stories/Show.js +3 -5
- package/components/DataTable/stories/Simple.js +3 -5
- package/components/DataTable/stories/Sized.js +4 -5
- package/components/DataTable/stories/Sort.js +3 -5
- package/components/DataTable/stories/SpaceX.js +7 -8
- package/components/DataTable/stories/SpaceXUngrouped.js +7 -8
- package/components/DataTable/stories/Styled.js +4 -5
- package/components/DataTable/stories/Tunable.js +4 -5
- package/components/DataTable/stories/Units.js +4 -5
- package/components/DataTable/stories/VerticalAlign.js +4 -5
- package/components/DataTable/stories/data.js +8 -15
- package/components/DataTable/stories/rowDetails.js +4 -5
- package/components/DataTableColumns/DataTableColumns.js +3 -4
- package/components/DataTableColumns/propTypes.js +1 -2
- package/components/DataTableColumns/stories/Simple.js +4 -5
- package/components/DataTableGroupBy/DataTableGroupBy.js +3 -4
- package/components/DataTableGroupBy/propTypes.js +1 -2
- package/components/DataTableGroupBy/stories/Simple.js +4 -5
- package/components/DataView/DataView.js +3 -4
- package/components/DataView/propTypes.js +1 -2
- package/components/DataView/stories/Simple.js +4 -5
- package/components/DateInput/DateInput.js +4 -5
- package/components/DateInput/propTypes.js +1 -2
- package/components/DateInput/stories/Form.js +3 -5
- package/components/DateInput/stories/Format.js +3 -5
- package/components/DateInput/stories/FormatInline.js +5 -7
- package/components/DateInput/stories/Inline.js +3 -5
- package/components/DateInput/stories/Range.js +3 -5
- package/components/DateInput/stories/RangeFormat.js +3 -5
- package/components/DateInput/stories/ResetDate.js +4 -7
- package/components/DateInput/stories/Simple.js +3 -5
- package/components/DateInput/utils.js +7 -13
- package/components/Diagram/Diagram.js +3 -4
- package/components/Diagram/StyledDiagram.js +4 -4
- package/components/Diagram/propTypes.js +1 -2
- package/components/Diagram/stories/Animated.js +5 -7
- package/components/Diagram/stories/Progressing.js +6 -7
- package/components/Diagram/stories/data.js +2 -3
- package/components/Distribution/Distribution.js +1 -2
- package/components/Distribution/propTypes.js +1 -2
- package/components/Drop/Drop.js +3 -4
- package/components/Drop/DropContainer.js +59 -17
- package/components/Drop/StyledDrop.js +4 -4
- package/components/Drop/propTypes.js +1 -2
- package/components/Drop/stories/AllNotStretched.js +3 -5
- package/components/Drop/stories/CustomThemed/Lazy.js +5 -7
- package/components/Drop/stories/CustomThemed/Themed.js +5 -7
- package/components/Drop/stories/Inline.js +5 -7
- package/components/Drop/stories/Meter.js +5 -7
- package/components/Drop/stories/Multiple.js +5 -7
- package/components/Drop/stories/Overflow.js +5 -7
- package/components/Drop/stories/Plain.js +5 -7
- package/components/Drop/stories/Progressive.js +5 -7
- package/components/Drop/stories/Simple.js +5 -7
- package/components/Drop/stories/Styled.js +5 -7
- package/components/Drop/stories/TrapFocus.js +6 -7
- package/components/DropButton/DropButton.js +3 -4
- package/components/DropButton/propTypes.js +1 -2
- package/components/DropButton/stories/Menu.js +3 -5
- package/components/DropButton/stories/Simple.js +3 -5
- package/components/FileInput/FileInput.js +3 -4
- package/components/FileInput/StyledFileInput.js +1 -2
- package/components/FileInput/propTypes.js +1 -2
- package/components/FileInput/stories/ConfirmRemove.js +3 -5
- package/components/FileInput/stories/CustomThemed/Custom.js +3 -5
- package/components/FileInput/stories/MaxFileCount.js +3 -5
- package/components/FileInput/stories/MaxSize.js +3 -5
- package/components/FileInput/stories/Multiple.js +3 -5
- package/components/FileInput/stories/Simple.js +3 -5
- package/components/FileInput/utils/formatBytes.js +1 -2
- package/components/FocusedContainer.js +4 -5
- package/components/Footer/Footer.js +2 -3
- package/components/Footer/stories/DoubleFooter.js +4 -5
- package/components/Footer/stories/Simple.js +3 -5
- package/components/Footer/stories/Sitemap.js +3 -5
- package/components/Footer/stories/Social.js +3 -5
- package/components/Footer/stories/data.js +2 -4
- package/components/Form/Form.js +3 -4
- package/components/Form/FormContext.js +4 -5
- package/components/Form/propTypes.js +1 -2
- package/components/Form/stories/AggregateValidation.js +4 -5
- package/components/Form/stories/ArrayOfFormFields.js +5 -7
- package/components/Form/stories/Controlled.js +6 -7
- package/components/Form/stories/ControlledInput.js +6 -7
- package/components/Form/stories/ControlledInputLazy.js +6 -7
- package/components/Form/stories/ControlledLazy.js +6 -7
- package/components/Form/stories/CustomThemed/Custom.js +3 -5
- package/components/Form/stories/CustomThemed/FieldBorderPosition.js +6 -7
- package/components/Form/stories/CustomThemed/FieldCustomStates.js +5 -7
- package/components/Form/stories/CustomThemed/FieldSpacingOptions.js +3 -5
- package/components/Form/stories/CustomThemed/RequiredLabel.js +3 -5
- package/components/Form/stories/CustomThemed/Themed.js +3 -5
- package/components/Form/stories/DynamicFields.js +6 -7
- package/components/Form/stories/FieldStates.js +6 -7
- package/components/Form/stories/FieldWithChildren.js +4 -5
- package/components/Form/stories/FieldWithComponentProp.js +4 -5
- package/components/Form/stories/HelpAndError.js +4 -5
- package/components/Form/stories/SolicitedFeedback.js +6 -7
- package/components/Form/stories/TriggerValidationUsingFormField.js +3 -5
- package/components/Form/stories/Uncontrolled.js +4 -5
- package/components/Form/stories/UnsolicitedFeedback.js +6 -7
- package/components/Form/stories/ValidateOnBlur.js +4 -5
- package/components/Form/stories/ValidateOnChange.js +6 -7
- package/components/Form/stories/ValidateOnMount.js +6 -7
- package/components/FormField/FormField.js +3 -4
- package/components/FormField/propTypes.js +1 -2
- package/components/FormField/stories/Simple.js +5 -7
- package/components/Grid/Grid.js +3 -4
- package/components/Grid/StyledGrid.js +3 -4
- package/components/Grid/propTypes.js +1 -2
- package/components/Grid/stories/AreasPropAlternative.js +4 -5
- package/components/Grid/stories/Border.js +4 -5
- package/components/Grid/stories/CustomThemed/Responsive.js +3 -5
- package/components/Grid/stories/NColumn.js +4 -5
- package/components/Grid/stories/Percentages.js +4 -5
- package/components/Grid/stories/ResponsiveCards.js +6 -7
- package/components/Grommet/Grommet.js +3 -4
- package/components/Grommet/StyledGrommet.js +3 -4
- package/components/Grommet/index.d.ts +75 -0
- package/components/Grommet/propTypes.js +77 -3
- package/components/Grommet/stories/Background.js +3 -5
- package/components/Grommet/stories/Messages.js +3 -5
- package/components/Grommet/stories/Plain.js +3 -5
- package/components/Grommet/stories/Theme.js +3 -5
- package/components/Grommet/stories/ThemeMode.js +3 -5
- package/components/Grommet/stories/Vars.js +3 -5
- package/components/Header/Header.js +3 -4
- package/components/Header/propTypes.js +1 -2
- package/components/Header/stories/Responsive.js +3 -5
- package/components/Header/stories/Sticky.js +6 -7
- package/components/Heading/Heading.js +3 -4
- package/components/Heading/HeadingSkeleton.js +3 -4
- package/components/Heading/StyledHeading.js +3 -4
- package/components/Heading/propTypes.js +1 -2
- package/components/Heading/stories/All.js +3 -5
- package/components/Heading/stories/CustomThemed/CustomHeading.js +3 -5
- package/components/Heading/stories/CustomThemed/Extend.js +3 -5
- package/components/Image/Image.js +3 -4
- package/components/Image/StyledImage.js +3 -4
- package/components/Image/propTypes.js +1 -2
- package/components/Image/stories/Fallback.js +3 -5
- package/components/Image/stories/Fill.js +3 -5
- package/components/Image/stories/Fit.js +3 -5
- package/components/Image/stories/Opacity.js +3 -5
- package/components/Image/stories/Simple.js +3 -5
- package/components/InfiniteScroll/InfiniteScroll.js +3 -4
- package/components/InfiniteScroll/propTypes.js +1 -2
- package/components/InfiniteScroll/stories/Basics.js +3 -5
- package/components/InfiniteScroll/stories/ClassChildren.js +4 -5
- package/components/InfiniteScroll/stories/Grid.js +4 -5
- package/components/InfiniteScroll/stories/GridWithShow.js +4 -5
- package/components/InfiniteScroll/stories/HeightReplace.js +4 -5
- package/components/InfiniteScroll/stories/Marker.js +3 -5
- package/components/InfiniteScroll/stories/Replace.js +4 -5
- package/components/InfiniteScroll/stories/Show.js +3 -5
- package/components/InfiniteScroll/stories/ShowAfter.js +3 -5
- package/components/InfiniteScroll/stories/ShowBefore.js +3 -5
- package/components/InfiniteScroll/stories/Variable.js +4 -5
- package/components/Keyboard/Keyboard.js +1 -2
- package/components/Keyboard/propTypes.js +1 -2
- package/components/Keyboard/stories/OnDocument.js +3 -5
- package/components/Layer/Layer.js +3 -4
- package/components/Layer/LayerContainer.js +5 -6
- package/components/Layer/PortalContext.js +1 -2
- package/components/Layer/StyledLayer.js +10 -14
- package/components/Layer/propTypes.js +1 -2
- package/components/Layer/stories/Center.js +4 -5
- package/components/Layer/stories/Corner.js +4 -5
- package/components/Layer/stories/CustomThemed/Round.js +3 -5
- package/components/Layer/stories/Form.js +4 -5
- package/components/Layer/stories/Full.js +4 -5
- package/components/Layer/stories/Notification.js +4 -5
- package/components/Layer/stories/Plain.js +4 -5
- package/components/Layer/stories/RTL.js +4 -5
- package/components/Layer/stories/ScrollBody.js +4 -5
- package/components/Layer/stories/Target.js +4 -5
- package/components/List/List.js +4 -5
- package/components/List/propTypes.js +1 -2
- package/components/List/stories/Action.js +3 -5
- package/components/List/stories/Basic.js +3 -5
- package/components/List/stories/Children.js +3 -5
- package/components/List/stories/Disabled.js +3 -5
- package/components/List/stories/Order.js +5 -7
- package/components/List/stories/Paginated.js +3 -5
- package/components/List/stories/Pinned.js +5 -7
- package/components/List/stories/RenderedList.js +6 -5
- package/components/List/stories/Selection.js +3 -5
- package/components/List/stories/Show.js +3 -5
- package/components/List/stories/onClickItem.js +3 -5
- package/components/List/stories/secondaryKey.js +3 -5
- package/components/Main/Main.js +2 -3
- package/components/Markdown/Markdown.js +3 -4
- package/components/Markdown/propTypes.js +1 -2
- package/components/Markdown/stories/Override.js +6 -6
- package/components/Markdown/stories/Simple.js +3 -5
- package/components/MaskedInput/MaskedInput.js +3 -4
- package/components/MaskedInput/StyledMaskedInput.js +4 -7
- package/components/MaskedInput/propTypes.js +1 -2
- package/components/MaskedInput/stories/CustomBox.js +4 -5
- package/components/MaskedInput/stories/Date.js +4 -5
- package/components/MaskedInput/stories/DateRange.js +4 -5
- package/components/MaskedInput/stories/DateTimeDrop.js +4 -5
- package/components/MaskedInput/stories/Filtered.js +4 -5
- package/components/MaskedInput/stories/Form.js +4 -5
- package/components/MaskedInput/stories/IPV4Range.js +4 -5
- package/components/MaskedInput/stories/IPv4Address.js +4 -5
- package/components/MaskedInput/stories/Phone.js +4 -5
- package/components/MaskedInput/stories/SizeUnits.js +4 -5
- package/components/MaskedInput/stories/Time.js +4 -5
- package/components/MaskedInput/stories/URL.js +4 -5
- package/components/Menu/Menu.js +4 -5
- package/components/Menu/propTypes.js +1 -2
- package/components/Menu/stories/BottomControlButton.js +3 -5
- package/components/Menu/stories/Grouped.js +4 -5
- package/components/Menu/stories/ItemWithIcon.js +3 -5
- package/components/Menu/stories/Justify.js +3 -5
- package/components/Menu/stories/Reverse.js +3 -5
- package/components/Menu/stories/Simple.js +3 -5
- package/components/Meter/Bar.js +3 -4
- package/components/Meter/Circle.js +3 -4
- package/components/Meter/Meter.js +3 -4
- package/components/Meter/StyledMeter.js +3 -4
- package/components/Meter/propTypes.js +1 -2
- package/components/Meter/stories/Bar.js +3 -5
- package/components/Meter/stories/Circle.js +5 -7
- package/components/Meter/stories/Labelled.js +3 -5
- package/components/Meter/stories/Pie.js +3 -5
- package/components/Meter/stories/ReverseBar.js +3 -5
- package/components/Meter/stories/SemiCircle.js +3 -5
- package/components/Meter/stories/VerticalBar.js +3 -5
- package/components/Meter/stories/VerticalBarMultiple.js +6 -7
- package/components/Meter/utils.js +3 -5
- package/components/NameValueList/NameValueList.js +3 -4
- package/components/NameValueList/NameValueListContext.js +1 -2
- package/components/NameValueList/propTypes.js +1 -2
- package/components/NameValueList/stories/Align.js +3 -5
- package/components/NameValueList/stories/CustomName.js +3 -5
- package/components/NameValueList/stories/CustomValue.js +3 -5
- package/components/NameValueList/stories/Layout.js +3 -5
- package/components/NameValueList/stories/PairProps.js +3 -5
- package/components/NameValueList/stories/Simple.js +3 -5
- package/components/NameValueList/stories/Width.js +3 -5
- package/components/NameValueList/stories/data.js +5 -9
- package/components/NameValuePair/NameValuePair.js +4 -5
- package/components/NameValuePair/propTypes.js +1 -2
- package/components/Nav/Nav.js +2 -3
- package/components/Nav/stories/Collapsable.js +3 -5
- package/components/Nav/stories/CustomThemed/CustomAnchor.js +3 -5
- package/components/Nav/stories/CustomThemed/JustifySidebar.js +5 -7
- package/components/Nav/stories/OnHeader.js +3 -5
- package/components/Nav/stories/Sidebar.js +5 -7
- package/components/Nav/stories/Simple.js +3 -5
- package/components/Notification/Notification.js +3 -4
- package/components/Notification/propTypes.js +1 -2
- package/components/Notification/stories/Global.js +5 -7
- package/components/Notification/stories/Status.js +3 -5
- package/components/Notification/stories/Title.js +5 -7
- package/components/Notification/stories/TitleAndMessage.js +5 -7
- package/components/Page/Page.js +3 -4
- package/components/Page/PageContext.js +1 -2
- package/components/Page/propTypes.js +1 -2
- package/components/Page/stories/Background.js +3 -5
- package/components/Page/stories/ContentBackground.js +4 -5
- package/components/Page/stories/CustomThemed/LeftColumn.js +3 -5
- package/components/Page/stories/GlobalHeader.js +4 -5
- package/components/Page/stories/MultipleBackgrounds.js +4 -5
- package/components/Page/stories/MultipleContent.js +4 -5
- package/components/Page/stories/PageNotificaton.js +5 -7
- package/components/Page/stories/Simple.js +3 -5
- package/components/PageContent/PageContent.js +3 -4
- package/components/PageContent/propTypes.js +1 -2
- package/components/PageHeader/PageHeader.js +8 -6
- package/components/PageHeader/index.d.ts +1 -0
- package/components/PageHeader/propTypes.js +2 -2
- package/components/PageHeader/stories/Custom.js +3 -5
- package/components/PageHeader/stories/Level.js +34 -0
- package/components/PageHeader/stories/MultipleActions.js +6 -7
- package/components/PageHeader/stories/Responsive.js +3 -5
- package/components/PageHeader/stories/Simple.js +3 -5
- package/components/PageHeader/stories/Size.js +3 -5
- package/components/Pagination/PageControl.js +4 -5
- package/components/Pagination/Pagination.js +3 -4
- package/components/Pagination/StyledPageControl.js +5 -7
- package/components/Pagination/propTypes.js +1 -2
- package/components/Pagination/stories/Grid.js +6 -7
- package/components/Pagination/stories/NumberEdgePages.js +4 -5
- package/components/Pagination/stories/NumberMiddlePages.js +4 -5
- package/components/Pagination/stories/Simple.js +3 -5
- package/components/Pagination/stories/Size.js +3 -5
- package/components/Paragraph/Paragraph.js +3 -4
- package/components/Paragraph/ParagraphSkeleton.js +3 -4
- package/components/Paragraph/StyledParagraph.js +3 -4
- package/components/Paragraph/propTypes.js +1 -2
- package/components/Paragraph/stories/All.js +3 -5
- package/components/Paragraph/stories/CustomThemed/Themed.js +3 -5
- package/components/Paragraph/stories/MaxLines.js +3 -5
- package/components/RadioButton/RadioButton.js +10 -7
- package/components/RadioButton/StyledRadioButton.js +11 -17
- package/components/RadioButton/propTypes.js +1 -2
- package/components/RadioButton/stories/Children.js +3 -5
- package/components/RadioButton/stories/CustomThemed/Theme.js +3 -5
- package/components/RadioButton/stories/Disabled.js +3 -5
- package/components/RadioButton/stories/Simple.js +3 -5
- package/components/RadioButtonGroup/RadioButtonGroup.js +3 -4
- package/components/RadioButtonGroup/propTypes.js +1 -2
- package/components/RadioButtonGroup/stories/Children.js +5 -7
- package/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +5 -7
- package/components/RadioButtonGroup/stories/Disabled.js +5 -7
- package/components/RangeInput/RangeInput.js +4 -5
- package/components/RangeInput/StyledRangeInput.js +4 -4
- package/components/RangeInput/propTypes.js +1 -2
- package/components/RangeInput/stories/CustomThemed/Bounds.js +3 -5
- package/components/RangeInput/stories/CustomThemed/Disabled.js +3 -5
- package/components/RangeInput/stories/CustomThemed/TrackColor.js +3 -5
- package/components/RangeInput/stories/SimpleRange.js +3 -5
- package/components/RangeSelector/EdgeControl.js +3 -4
- package/components/RangeSelector/RangeSelector.js +3 -4
- package/components/RangeSelector/index.d.ts +1 -1
- package/components/RangeSelector/propTypes.js +1 -2
- package/components/RangeSelector/stories/Basics.js +5 -7
- package/components/RangeSelector/stories/CustomThemed/Custom.js +5 -7
- package/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +5 -7
- package/components/RangeSelector/stories/Label.js +5 -7
- package/components/RangeSelector/stories/Simple.js +5 -7
- package/components/RangeSelector/stories/Step.js +5 -7
- package/components/RangeSelector/stories/Thin.js +6 -7
- package/components/RangeSelector/stories/Vertical.js +5 -7
- package/components/RoutedAnchor/RoutedAnchor.js +3 -4
- package/components/RoutedButton/RoutedButton.js +3 -4
- package/components/Select/DefaultSelectTextInput.js +4 -5
- package/components/Select/EmptySearchOption.js +2 -3
- package/components/Select/Select.js +3 -4
- package/components/Select/SelectContainer.js +5 -7
- package/components/Select/StyledSelect.js +8 -13
- package/components/Select/propTypes.js +2 -4
- package/components/Select/stories/ChildrenRender.js +6 -7
- package/components/Select/stories/Clear.js +6 -7
- package/components/Select/stories/Controlled.js +6 -7
- package/components/Select/stories/CustomThemed/CustomSearch.js +5 -7
- package/components/Select/stories/Disabled.js +6 -7
- package/components/Select/stories/InsideFormField.js +6 -7
- package/components/Select/stories/LazyLoadingOptions.js +4 -5
- package/components/Select/stories/ManyOptions.js +4 -5
- package/components/Select/stories/Multiple.js +6 -7
- package/components/Select/stories/ObjectOptions.js +6 -7
- package/components/Select/stories/Search.js +6 -7
- package/components/Select/stories/Simple.js +6 -7
- package/components/Select/stories/Uncontrolled.js +4 -5
- package/components/Select/stories/ValueLabel.js +6 -7
- package/components/Select/stories/components/SearchBorderBox.js +4 -5
- package/components/Select/stories/components/SearchInput.js +4 -5
- package/components/Select/stories/theme.js +2 -3
- package/components/Select/utils.js +12 -23
- package/components/SelectMultiple/SelectMultiple.js +3 -4
- package/components/SelectMultiple/SelectMultipleContainer.js +5 -7
- package/components/SelectMultiple/SelectMultipleValue.js +4 -5
- package/components/SelectMultiple/SelectionSummary.js +4 -5
- package/components/SelectMultiple/propTypes.js +1 -2
- package/components/SelectMultiple/stories/Default.js +6 -7
- package/components/SelectMultiple/stories/Disabled.js +6 -7
- package/components/SelectMultiple/stories/FormField.js +6 -7
- package/components/SelectMultiple/stories/Help.js +6 -7
- package/components/SelectMultiple/stories/Limited.js +6 -7
- package/components/SelectMultiple/stories/LongList.js +4 -5
- package/components/SelectMultiple/stories/ObjectOptions.js +6 -7
- package/components/SelectMultiple/stories/ShowSelectedInline.js +6 -7
- package/components/Sidebar/Sidebar.js +1 -2
- package/components/Sidebar/propTypes.js +1 -2
- package/components/Sidebar/stories/Labels.js +4 -5
- package/components/Skeleton/Skeleton.js +3 -4
- package/components/Skeleton/SkeletonContext.js +5 -7
- package/components/Skeleton/StyledSkeleton.js +2 -3
- package/components/Skeleton/propTypes.js +1 -2
- package/components/Skeleton/stories/CustomThemed/Custom.js +5 -7
- package/components/Skeleton/stories/GridContainer.js +5 -7
- package/components/Skeleton/stories/Group.js +5 -7
- package/components/Skeleton/stories/Individual.js +5 -7
- package/components/Skeleton/stories/Simple.js +3 -5
- package/components/SkipLink/SkipLink.js +4 -5
- package/components/SkipLinkTarget/SkipLinkTarget.js +2 -3
- package/components/SkipLinks/SkipLinks.js +3 -4
- package/components/SkipLinks/propTypes.js +1 -2
- package/components/SkipLinks/stories/CustomThemed/Themed.js +3 -5
- package/components/SkipLinks/stories/Simple.js +4 -5
- package/components/Spinner/Spinner.js +3 -4
- package/components/Spinner/propTypes.js +1 -2
- package/components/Spinner/stories/Animation.js +5 -7
- package/components/Spinner/stories/Announced.js +5 -7
- package/components/Spinner/stories/Border.js +3 -5
- package/components/Spinner/stories/ChildrenSpinner.js +3 -5
- package/components/Spinner/stories/Color.js +3 -5
- package/components/Spinner/stories/Modal.js +3 -5
- package/components/Spinner/stories/Round.js +3 -5
- package/components/Spinner/stories/Simple.js +3 -5
- package/components/Spinner/stories/Size.js +3 -5
- package/components/Stack/Stack.js +3 -4
- package/components/Stack/StyledStack.js +4 -6
- package/components/Stack/propTypes.js +1 -2
- package/components/Stack/stories/Fill.js +4 -5
- package/components/Stack/stories/Simple.js +3 -5
- package/components/StarRating/StarRating.js +3 -4
- package/components/StarRating/stories/simple.js +3 -5
- package/components/Tab/StyledTab.js +4 -4
- package/components/Tab/Tab.js +3 -6
- package/components/Tab/propTypes.js +1 -2
- package/components/Table/StyledTable.js +9 -16
- package/components/Table/Table.js +3 -4
- package/components/Table/TableContext.js +1 -2
- package/components/Table/propTypes.js +1 -2
- package/components/Table/stories/CustomThemed/Custom.js +3 -5
- package/components/Table/stories/Default.js +3 -5
- package/components/Table/stories/InfiniteScrollInTable.js +6 -7
- package/components/Table/stories/MeterInTable.js +4 -5
- package/components/Table/stories/data.js +3 -5
- package/components/TableBody/TableBody.js +3 -4
- package/components/TableCell/TableCell.js +4 -6
- package/components/TableCell/propTypes.js +1 -2
- package/components/TableFooter/TableFooter.js +3 -4
- package/components/TableHeader/TableHeader.js +3 -4
- package/components/TableRow/TableRow.js +3 -4
- package/components/Tabs/StyledTabs.js +6 -8
- package/components/Tabs/Tabs.js +3 -6
- package/components/Tabs/TabsContext.js +1 -2
- package/components/Tabs/propTypes.js +1 -2
- package/components/Tabs/stories/CustomThemed/Custom.js +3 -5
- package/components/Tabs/stories/CustomThemed/States.js +5 -7
- package/components/Tabs/stories/Responsive.js +5 -7
- package/components/Tabs/stories/Rich.js +4 -5
- package/components/Tabs/stories/Scrollable.js +3 -5
- package/components/Tag/StyledTag.js +2 -4
- package/components/Tag/Tag.js +6 -6
- package/components/Tag/propTypes.js +1 -2
- package/components/Tag/stories/OnClick.js +3 -5
- package/components/Tag/stories/OnRemove.js +3 -5
- package/components/Tag/stories/Simple.js +3 -5
- package/components/Tag/stories/Size.js +3 -5
- package/components/Text/StyledText.js +3 -8
- package/components/Text/Text.js +3 -4
- package/components/Text/TextContext.js +1 -2
- package/components/Text/TextSkeleton.js +3 -4
- package/components/Text/propTypes.js +1 -2
- package/components/Text/stories/All.js +3 -5
- package/components/Text/stories/Tip.js +3 -5
- package/components/Text/stories/WordBreak.js +3 -5
- package/components/TextArea/StyledTextArea.js +3 -4
- package/components/TextArea/TextArea.js +3 -4
- package/components/TextArea/propTypes.js +1 -2
- package/components/TextArea/stories/CustomThemed/Themed.js +5 -7
- package/components/TextArea/stories/InsideFormField.js +6 -7
- package/components/TextArea/stories/NonResizable.js +5 -7
- package/components/TextArea/stories/Simple.js +5 -7
- package/components/TextInput/StyledTextInput.js +7 -12
- package/components/TextInput/TextInput.js +3 -4
- package/components/TextInput/propTypes.js +1 -2
- package/components/TextInput/stories/CustomThemed/Themed.js +3 -5
- package/components/TextInput/stories/DefaultSuggestion.js +4 -5
- package/components/TextInput/stories/Icon.js +3 -5
- package/components/TextInput/stories/InsideFormField.js +6 -7
- package/components/TextInput/stories/OnSelect.js +4 -5
- package/components/TextInput/stories/Password.js +3 -5
- package/components/TextInput/stories/Simple.js +4 -5
- package/components/TextInput/stories/StyledPlaceholder.js +4 -5
- package/components/TextInput/stories/Suggestions.js +4 -5
- package/components/TextInput/stories/Uncontrolled.js +4 -5
- package/components/TextInput/stories/WithTags.js +4 -5
- package/components/ThumbsRating/ThumbsRating.js +3 -4
- package/components/ThumbsRating/stories/simple.js +3 -5
- package/components/Tip/Tip.js +15 -6
- package/components/Tip/propTypes.js +1 -2
- package/components/Tip/stories/Caret.js +4 -5
- package/components/Tip/stories/CustomThemed/ResponsiveTip.js +3 -5
- package/components/Tip/stories/CustomThemed/SidebarTip.js +3 -5
- package/components/Tip/stories/HeaderActions.js +6 -7
- package/components/Tip/stories/InfoTip.js +4 -5
- package/components/Toolbar/Toolbar.js +3 -4
- package/components/Toolbar/propTypes.js +1 -2
- package/components/Toolbar/stories/Simple.js +4 -5
- package/components/Video/StyledVideo.js +6 -10
- package/components/Video/Video.js +4 -5
- package/components/Video/propTypes.js +1 -2
- package/components/WorldMap/StyledWorldMap.js +1 -2
- package/components/WorldMap/WorldMap.js +3 -4
- package/components/WorldMap/propTypes.js +1 -2
- package/components/WorldMap/stories/Color.js +3 -5
- package/components/WorldMap/stories/Continents.js +3 -5
- package/components/WorldMap/stories/Places.js +3 -5
- package/components/WorldMap/stories/SelectPlace.js +3 -5
- package/components/WorldMap/stories/Simple.js +3 -5
- package/contexts/AnalyticsContext/AnalyticsContext.js +6 -9
- package/contexts/AnnounceContext/AnnounceContext.js +1 -2
- package/contexts/AnnounceContext/propTypes.js +1 -2
- package/contexts/AnnounceContext/stories/Assertive.js +3 -5
- package/contexts/AnnounceContext/stories/Polite.js +5 -7
- package/contexts/ContainerTargetContext/ContainerTargetContext.js +1 -2
- package/contexts/DataContext.js +2 -3
- package/contexts/MessageContext/MessageContext.js +3 -5
- package/contexts/OptionsContext.js +1 -2
- package/contexts/ResponsiveContext/ResponsiveContext.js +1 -2
- package/contexts/ResponsiveContext/propTypes.js +1 -2
- package/contexts/ResponsiveContext/stories/CustomBreakpoints.js +3 -5
- package/contexts/ResponsiveContext/stories/ResponsiveGrid.js +3 -5
- package/contexts/RootsContext.js +1 -2
- package/contexts/ThemeContext/propTypes.js +1 -2
- package/contexts/ThemeContext/stories/ExternalComponent.js +3 -5
- package/contexts/ThemeContext/stories/ThemeContextExtend.js +5 -7
- package/default-props.js +3 -5
- package/es6/components/Anchor/StyledAnchor.js +2 -8
- package/es6/components/Box/StyledBox.js +3 -3
- package/es6/components/Box/index.d.ts +1 -1
- package/es6/components/Box/stories/Round.js +1 -1
- package/es6/components/Box/stories/Simple.js +4 -3
- package/es6/components/Button/BusyAnimation.js +2 -1
- package/es6/components/Button/StyledButton.js +2 -1
- package/es6/components/Button/StyledButtonKind.js +3 -4
- package/es6/components/Calendar/StyledCalendar.js +7 -7
- package/es6/components/Chart/StyledChart.js +2 -2
- package/es6/components/Chart/index.d.ts +4 -4
- package/es6/components/CheckBox/CheckBox.js +0 -3
- package/es6/components/CheckBox/StyledCheckBox.js +12 -11
- package/es6/components/Clock/StyledClock.js +8 -8
- package/es6/components/Data/stories/Infinite.js +1 -1
- package/es6/components/Data/stories/SpaceX.js +1 -1
- package/es6/components/Data/stories/StarWars.js +2 -2
- package/es6/components/DataFilters/DataFilters.js +4 -4
- package/es6/components/DataTable/Body.js +1 -1
- package/es6/components/DataTable/DataTable.js +5 -2
- package/es6/components/DataTable/Header.js +5 -4
- package/es6/components/DataTable/StyledDataTable.js +2 -2
- package/es6/components/DataTable/index.d.ts +1 -0
- package/es6/components/DataTable/propTypes.js +1 -0
- package/es6/components/DataTable/stories/AllowSelectAll.js +105 -0
- 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/DateInput/DateInput.js +1 -1
- package/es6/components/Diagram/StyledDiagram.js +2 -1
- package/es6/components/Drop/DropContainer.js +55 -12
- package/es6/components/Drop/StyledDrop.js +2 -1
- package/es6/components/FileInput/StyledFileInput.js +2 -2
- package/es6/components/Grid/StyledGrid.js +2 -2
- package/es6/components/Grommet/StyledGrommet.js +2 -2
- package/es6/components/Grommet/index.d.ts +75 -0
- package/es6/components/Grommet/propTypes.js +76 -1
- package/es6/components/Heading/StyledHeading.js +2 -2
- package/es6/components/Image/StyledImage.js +2 -2
- package/es6/components/Layer/LayerContainer.js +2 -2
- package/es6/components/Layer/StyledLayer.js +6 -7
- package/es6/components/List/List.js +2 -2
- package/es6/components/List/stories/RenderedList.js +3 -0
- package/es6/components/Markdown/stories/Override.js +2 -1
- package/es6/components/MaskedInput/StyledMaskedInput.js +4 -4
- package/es6/components/Menu/Menu.js +1 -1
- package/es6/components/Meter/StyledMeter.js +2 -2
- package/es6/components/PageHeader/PageHeader.js +5 -2
- package/es6/components/PageHeader/index.d.ts +1 -0
- package/es6/components/PageHeader/propTypes.js +1 -0
- package/es6/components/PageHeader/stories/Level.js +29 -0
- package/es6/components/Pagination/StyledPageControl.js +2 -1
- package/es6/components/Paragraph/StyledParagraph.js +2 -2
- package/es6/components/RadioButton/RadioButton.js +7 -3
- package/es6/components/RadioButton/StyledRadioButton.js +10 -10
- package/es6/components/RangeInput/RangeInput.js +1 -1
- package/es6/components/RangeInput/StyledRangeInput.js +2 -2
- package/es6/components/RangeSelector/index.d.ts +1 -1
- package/es6/components/Select/SelectContainer.js +1 -2
- package/es6/components/Select/StyledSelect.js +5 -4
- package/es6/components/SelectMultiple/SelectMultipleContainer.js +1 -2
- package/es6/components/Skeleton/StyledSkeleton.js +2 -2
- package/es6/components/Stack/StyledStack.js +3 -3
- package/es6/components/Tab/StyledTab.js +2 -1
- package/es6/components/Tab/Tab.js +0 -2
- package/es6/components/Table/StyledTable.js +8 -8
- package/es6/components/Tabs/StyledTabs.js +5 -4
- package/es6/components/Tabs/Tabs.js +0 -2
- package/es6/components/Tag/Tag.js +3 -2
- package/es6/components/Text/StyledText.js +2 -6
- package/es6/components/TextArea/StyledTextArea.js +2 -2
- package/es6/components/TextInput/StyledTextInput.js +6 -6
- package/es6/components/Tip/Tip.js +12 -2
- 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/contexts/MessageContext/MessageContext.js +1 -1
- package/es6/languages/default.json +5 -5
- package/es6/themes/base.d.ts +6 -0
- package/es6/themes/base.js +6 -0
- package/es6/utils/index.d.ts +5 -5
- package/es6/utils/styles.js +6 -0
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/languages/default.json +5 -5
- package/package.json +46 -41
- package/themes/base.d.ts +6 -0
- package/themes/base.js +8 -4
- package/themes/dark.js +2 -3
- package/themes/grommet.js +2 -3
- package/themes/hacktoberfest2022.js +2 -3
- package/tools/release-styled-components-beta-stable.js +1 -0
- package/utils/DOM.js +16 -31
- package/utils/PortalContext.js +1 -2
- package/utils/animation.js +5 -9
- package/utils/background.js +8 -15
- package/utils/border.js +3 -5
- package/utils/colors.js +6 -11
- package/utils/dates.js +2 -3
- package/utils/general-prop-types.js +20 -40
- package/utils/graphics.js +5 -9
- package/utils/icon.js +2 -3
- package/utils/index.d.ts +5 -5
- package/utils/mixins.js +7 -13
- package/utils/object.js +5 -9
- package/utils/pagination.js +3 -5
- package/utils/refs.js +2 -3
- package/utils/responsive.js +4 -7
- package/utils/router.js +2 -3
- package/utils/styles.js +29 -44
- package/utils/use-isomorphic-layout-effect.js +2 -4
- package/utils/use-keyboard.js +2 -4
|
@@ -7,7 +7,7 @@ var _grommet = require("grommet");
|
|
|
7
7
|
var _Cards = require("../Cards");
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
9
|
var locations = ['Boise', 'Fort Collins', 'Los Gatos', 'Palo Alto', 'San Francisco'];
|
|
10
|
-
var Simple = function Simple() {
|
|
10
|
+
var Simple = exports.Simple = function Simple() {
|
|
11
11
|
return /*#__PURE__*/_react["default"].createElement(_grommet.Grid, {
|
|
12
12
|
pad: "large",
|
|
13
13
|
columns: [['medium', 'large']],
|
|
@@ -21,8 +21,6 @@ var Simple = function Simple() {
|
|
|
21
21
|
data: locations
|
|
22
22
|
}));
|
|
23
23
|
};
|
|
24
|
-
exports
|
|
25
|
-
var _default = {
|
|
24
|
+
var _default = exports["default"] = {
|
|
26
25
|
title: 'Visualizations/Cards/Simple'
|
|
27
|
-
};
|
|
28
|
-
exports["default"] = _default;
|
|
26
|
+
};
|
|
@@ -14,11 +14,11 @@ var _StyledCarousel = require("./StyledCarousel");
|
|
|
14
14
|
var _CarouselChild = require("./CarouselChild");
|
|
15
15
|
var _propTypes = require("./propTypes");
|
|
16
16
|
var _excluded = ["activeChild", "initialChild", "onChild", "play", "children", "controls", "height", "fill", "width", "onFocus", "onBlur", "wrap"];
|
|
17
|
-
function _getRequireWildcardCache(
|
|
18
|
-
function _interopRequireWildcard(
|
|
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 && Object.prototype.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
20
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
21
|
-
var Carousel = function Carousel(_ref) {
|
|
21
|
+
var Carousel = exports.Carousel = function Carousel(_ref) {
|
|
22
22
|
var activeChild = _ref.activeChild,
|
|
23
23
|
initialChild = _ref.initialChild,
|
|
24
24
|
onChild = _ref.onChild,
|
|
@@ -242,7 +242,6 @@ var Carousel = function Carousel(_ref) {
|
|
|
242
242
|
hoverIndicator: true
|
|
243
243
|
}))));
|
|
244
244
|
};
|
|
245
|
-
exports.Carousel = Carousel;
|
|
246
245
|
Carousel.defaultProps = {
|
|
247
246
|
initialChild: 0,
|
|
248
247
|
controls: true
|
|
@@ -6,9 +6,9 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
6
6
|
var _propTypes = require("./propTypes");
|
|
7
7
|
var _StyledCarousel = require("./StyledCarousel");
|
|
8
8
|
var _Box = require("../Box");
|
|
9
|
-
function _getRequireWildcardCache(
|
|
10
|
-
function _interopRequireWildcard(
|
|
11
|
-
var CarouselChild = function CarouselChild(_ref) {
|
|
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 && Object.prototype.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
|
+
var CarouselChild = exports.CarouselChild = function CarouselChild(_ref) {
|
|
12
12
|
var animationDuration = _ref.animationDuration,
|
|
13
13
|
fill = _ref.fill,
|
|
14
14
|
index = _ref.index,
|
|
@@ -54,7 +54,6 @@ var CarouselChild = function CarouselChild(_ref) {
|
|
|
54
54
|
fill: fill
|
|
55
55
|
}, children));
|
|
56
56
|
};
|
|
57
|
-
exports.CarouselChild = CarouselChild;
|
|
58
57
|
CarouselChild.propTypes = _propTypes.CarouselChildPropTypes;
|
|
59
58
|
CarouselChild.defaultProps = {
|
|
60
59
|
fill: false,
|
|
@@ -4,13 +4,12 @@ exports.__esModule = true;
|
|
|
4
4
|
exports.StyledControl = exports.StyledCarouselContainer = exports.StyledCarouselChild = void 0;
|
|
5
5
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
6
6
|
var _Box = require("../Box");
|
|
7
|
-
function _getRequireWildcardCache(
|
|
8
|
-
function _interopRequireWildcard(
|
|
9
|
-
var StyledCarouselContainer = (0, _styledComponents["default"])(_Box.Box).withConfig({
|
|
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 && Object.prototype.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
|
+
var StyledCarouselContainer = exports.StyledCarouselContainer = (0, _styledComponents["default"])(_Box.Box).withConfig({
|
|
10
10
|
displayName: "StyledCarousel__StyledCarouselContainer",
|
|
11
11
|
componentId: "sc-c2hjel-0"
|
|
12
12
|
})(["position:relative;overflow:hidden;"]);
|
|
13
|
-
exports.StyledCarouselContainer = StyledCarouselContainer;
|
|
14
13
|
var animationKeyframes = {
|
|
15
14
|
// Slide Right = Previous or Backward
|
|
16
15
|
slideRightPrevious: (0, _styledComponents.keyframes)(["0%{transform:translateX(0%)}100%{transform:translateX(100%)}"]),
|
|
@@ -19,7 +18,7 @@ var animationKeyframes = {
|
|
|
19
18
|
slideLeftPrevious: (0, _styledComponents.keyframes)(["0%{transform:translateX(0%)}100%{transform:translateX(-100%)}"]),
|
|
20
19
|
slideLeftCurrent: (0, _styledComponents.keyframes)(["0%{transform:translateX(100%)}100%{transform:translateX(0%)}"])
|
|
21
20
|
};
|
|
22
|
-
var StyledCarouselChild = (0, _styledComponents["default"])(_Box.Box).withConfig({
|
|
21
|
+
var StyledCarouselChild = exports.StyledCarouselChild = (0, _styledComponents["default"])(_Box.Box).withConfig({
|
|
23
22
|
displayName: "StyledCarousel__StyledCarouselChild",
|
|
24
23
|
componentId: "sc-c2hjel-1"
|
|
25
24
|
})(["visibility:", ";position:", ";width:100%;height:100%;overflow:hidden;", ";animation-fill-mode:both;"], function (props) {
|
|
@@ -29,11 +28,9 @@ var StyledCarouselChild = (0, _styledComponents["default"])(_Box.Box).withConfig
|
|
|
29
28
|
}, function (props) {
|
|
30
29
|
return props.animationType ? (0, _styledComponents.css)(["animation:", " ", "s ease-in-out;"], animationKeyframes[props.animationType], props.animationDuration / 1000) : "";
|
|
31
30
|
});
|
|
32
|
-
exports.
|
|
33
|
-
var StyledControl = (0, _styledComponents["default"])(_Box.Box).withConfig({
|
|
31
|
+
var StyledControl = exports.StyledControl = (0, _styledComponents["default"])(_Box.Box).withConfig({
|
|
34
32
|
displayName: "StyledCarousel__StyledControl",
|
|
35
33
|
componentId: "sc-c2hjel-2"
|
|
36
34
|
})(["position:absolute;z-index:1;", " align-items:center;justify-content:center;"], function (props) {
|
|
37
35
|
return props.offsetProp + ": 0;";
|
|
38
|
-
});
|
|
39
|
-
exports.StyledControl = StyledControl;
|
|
36
|
+
});
|
|
@@ -20,8 +20,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
20
20
|
play: _propTypes["default"].number
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
var CarouselPropTypes = CarouselPropType;
|
|
24
|
-
exports.CarouselPropTypes = CarouselPropTypes;
|
|
23
|
+
var CarouselPropTypes = exports.CarouselPropTypes = CarouselPropType;
|
|
25
24
|
var CarouselChildPropType;
|
|
26
25
|
if (process.env.NODE_ENV !== 'production') {
|
|
27
26
|
CarouselChildPropType = {
|
|
@@ -33,5 +32,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
33
32
|
direction: _propTypes["default"].oneOf(['left', 'right'])
|
|
34
33
|
};
|
|
35
34
|
}
|
|
36
|
-
var CarouselChildPropTypes = CarouselChildPropType;
|
|
37
|
-
exports.CarouselChildPropTypes = CarouselChildPropTypes;
|
|
35
|
+
var CarouselChildPropTypes = exports.CarouselChildPropTypes = CarouselChildPropType;
|
|
@@ -6,7 +6,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
6
6
|
var _grommetIcons = require("grommet-icons");
|
|
7
7
|
var _grommet = require("grommet");
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
-
var Autoplay = function Autoplay() {
|
|
9
|
+
var Autoplay = exports.Autoplay = function Autoplay() {
|
|
10
10
|
return (
|
|
11
11
|
/*#__PURE__*/
|
|
12
12
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
@@ -42,8 +42,6 @@ var Autoplay = function Autoplay() {
|
|
|
42
42
|
// </Grommet>
|
|
43
43
|
);
|
|
44
44
|
};
|
|
45
|
-
exports
|
|
46
|
-
var _default = {
|
|
45
|
+
var _default = exports["default"] = {
|
|
47
46
|
title: 'Media/Carousel/Autoplay'
|
|
48
|
-
};
|
|
49
|
-
exports["default"] = _default;
|
|
47
|
+
};
|
|
@@ -6,7 +6,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
6
6
|
var _grommetIcons = require("grommet-icons");
|
|
7
7
|
var _grommet = require("grommet");
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
-
var ControlVariations = function ControlVariations() {
|
|
9
|
+
var ControlVariations = exports.ControlVariations = function ControlVariations() {
|
|
10
10
|
return (
|
|
11
11
|
/*#__PURE__*/
|
|
12
12
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
@@ -156,9 +156,8 @@ var ControlVariations = function ControlVariations() {
|
|
|
156
156
|
// </Grommet>
|
|
157
157
|
);
|
|
158
158
|
};
|
|
159
|
-
|
|
159
|
+
|
|
160
160
|
ControlVariations.storyName = 'Control variations';
|
|
161
|
-
var _default = {
|
|
161
|
+
var _default = exports["default"] = {
|
|
162
162
|
title: 'Media/Carousel/Control variations'
|
|
163
|
-
};
|
|
164
|
-
exports["default"] = _default;
|
|
163
|
+
};
|
|
@@ -6,7 +6,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
6
6
|
var _grommetIcons = require("grommet-icons");
|
|
7
7
|
var _grommet = require("grommet");
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
-
var Controlled = function Controlled() {
|
|
9
|
+
var Controlled = exports.Controlled = function Controlled() {
|
|
10
10
|
var _React$useState = _react["default"].useState(0),
|
|
11
11
|
activeSlide = _React$useState[0],
|
|
12
12
|
setActiveSlide = _React$useState[1];
|
|
@@ -53,13 +53,12 @@ var Controlled = function Controlled() {
|
|
|
53
53
|
// </Grommet>
|
|
54
54
|
);
|
|
55
55
|
};
|
|
56
|
-
|
|
56
|
+
|
|
57
57
|
Controlled.parameters = {
|
|
58
58
|
chromatic: {
|
|
59
59
|
disable: true
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
-
var _default = {
|
|
62
|
+
var _default = exports["default"] = {
|
|
63
63
|
title: 'Media/Carousel/Controlled'
|
|
64
|
-
};
|
|
65
|
-
exports["default"] = _default;
|
|
64
|
+
};
|
|
@@ -24,7 +24,7 @@ var customTheme = {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
var CustomCarousel = function CustomCarousel(_ref) {
|
|
27
|
+
var CustomCarousel = exports.CustomCarousel = function CustomCarousel(_ref) {
|
|
28
28
|
var controls = _ref.controls,
|
|
29
29
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
30
30
|
return /*#__PURE__*/_react["default"].createElement(_grommet.Grommet, {
|
|
@@ -51,9 +51,7 @@ var CustomCarousel = function CustomCarousel(_ref) {
|
|
|
51
51
|
size: "xlarge"
|
|
52
52
|
})))));
|
|
53
53
|
};
|
|
54
|
-
exports.CustomCarousel = CustomCarousel;
|
|
55
54
|
CustomCarousel.storyName = 'Custom controls';
|
|
56
|
-
var _default = {
|
|
55
|
+
var _default = exports["default"] = {
|
|
57
56
|
title: "Media/Carousel/Custom Themed/Custom controls"
|
|
58
|
-
};
|
|
59
|
-
exports["default"] = _default;
|
|
57
|
+
};
|
|
@@ -5,7 +5,7 @@ exports["default"] = exports.InteractiveSlides = void 0;
|
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
8
|
-
var InteractiveSlides = function InteractiveSlides() {
|
|
8
|
+
var InteractiveSlides = exports.InteractiveSlides = function InteractiveSlides() {
|
|
9
9
|
return (
|
|
10
10
|
/*#__PURE__*/
|
|
11
11
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
@@ -60,9 +60,8 @@ var InteractiveSlides = function InteractiveSlides() {
|
|
|
60
60
|
// </Grommet>
|
|
61
61
|
);
|
|
62
62
|
};
|
|
63
|
-
|
|
63
|
+
|
|
64
64
|
InteractiveSlides.storyName = 'Interactive slides';
|
|
65
|
-
var _default = {
|
|
65
|
+
var _default = exports["default"] = {
|
|
66
66
|
title: 'Media/Carousel/Interactive slides'
|
|
67
|
-
};
|
|
68
|
-
exports["default"] = _default;
|
|
67
|
+
};
|
|
@@ -51,7 +51,7 @@ var View2 = function View2() {
|
|
|
51
51
|
});
|
|
52
52
|
}));
|
|
53
53
|
};
|
|
54
|
-
var Multi = function Multi() {
|
|
54
|
+
var Multi = exports.Multi = function Multi() {
|
|
55
55
|
return (
|
|
56
56
|
/*#__PURE__*/
|
|
57
57
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
@@ -60,8 +60,6 @@ var Multi = function Multi() {
|
|
|
60
60
|
// </Grommet>
|
|
61
61
|
);
|
|
62
62
|
};
|
|
63
|
-
exports
|
|
64
|
-
var _default = {
|
|
63
|
+
var _default = exports["default"] = {
|
|
65
64
|
title: 'Media/Carousel/Multi'
|
|
66
|
-
};
|
|
67
|
-
exports["default"] = _default;
|
|
65
|
+
};
|
|
@@ -6,7 +6,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
6
6
|
var _grommetIcons = require("grommet-icons");
|
|
7
7
|
var _grommet = require("grommet");
|
|
8
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
-
var Simple = function Simple() {
|
|
9
|
+
var Simple = exports.Simple = function Simple() {
|
|
10
10
|
return (
|
|
11
11
|
/*#__PURE__*/
|
|
12
12
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
@@ -33,13 +33,12 @@ var Simple = function Simple() {
|
|
|
33
33
|
// </Grommet>
|
|
34
34
|
);
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
Simple.parameters = {
|
|
38
38
|
chromatic: {
|
|
39
39
|
disable: true
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
var _default = {
|
|
42
|
+
var _default = exports["default"] = {
|
|
43
43
|
title: 'Media/Carousel/Simple'
|
|
44
|
-
};
|
|
45
|
-
exports["default"] = _default;
|
|
44
|
+
};
|
|
@@ -13,8 +13,8 @@ var _propTypes = require("./propTypes");
|
|
|
13
13
|
var _excluded = ["a11yTitle", "bounds", "color", "dash", "direction", "gap", "id", "onClick", "onHover", "opacity", "overflow", "pad", "pattern", "point", "round", "size", "thickness", "type", "values"],
|
|
14
14
|
_excluded2 = ["color", "label", "onHover", "opacity", "thickness", "value"],
|
|
15
15
|
_excluded3 = ["color", "label", "onHover", "opacity", "thickness", "value"];
|
|
16
|
-
function _getRequireWildcardCache(
|
|
17
|
-
function _interopRequireWildcard(
|
|
16
|
+
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); }
|
|
17
|
+
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 && Object.prototype.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; }
|
|
18
18
|
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); }
|
|
19
19
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
20
20
|
var gradientMaskColor = '#ffffff';
|
|
@@ -25,7 +25,7 @@ var defaultSize = {
|
|
|
25
25
|
width: 'medium'
|
|
26
26
|
};
|
|
27
27
|
var defaultValues = [];
|
|
28
|
-
var Chart = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
28
|
+
var Chart = exports.Chart = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
29
29
|
var a11yTitle = _ref.a11yTitle,
|
|
30
30
|
boundsProp = _ref.bounds,
|
|
31
31
|
color = _ref.color,
|
|
@@ -576,6 +576,5 @@ var Chart = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
|
576
576
|
typeProp: type // prevent adding to DOM
|
|
577
577
|
}, rest), defs.length && /*#__PURE__*/_react["default"].createElement("defs", null, defs), useGradient ? gradientRect : drawing);
|
|
578
578
|
});
|
|
579
|
-
exports.Chart = Chart;
|
|
580
579
|
Chart.displayName = 'Chart';
|
|
581
580
|
Chart.propTypes = _propTypes.ChartPropTypes;
|
|
@@ -5,8 +5,8 @@ exports.StyledChart = void 0;
|
|
|
5
5
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
6
6
|
var _utils = require("../../utils");
|
|
7
7
|
var _defaultProps = require("../../default-props");
|
|
8
|
-
function _getRequireWildcardCache(
|
|
9
|
-
function _interopRequireWildcard(
|
|
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 && Object.prototype.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 animateStyle = function animateStyle(_ref) {
|
|
11
11
|
var theme = _ref.theme,
|
|
12
12
|
typeProp = _ref.typeProp;
|
|
@@ -16,7 +16,7 @@ var animateStyle = function animateStyle(_ref) {
|
|
|
16
16
|
animateBounds = ['stroke-dashoffset: 200%;', 'stroke-dashoffset: 0%;'];else if (typeProp === 'point') animateBounds = ['opacity: 0;', 'opacity: 1;'];else animateBounds = ['transform: scaleY(0);', 'transform: scaleY(1);'];
|
|
17
17
|
return (0, _styledComponents.css)(["", " animation:", " ", " forwards;", ""], typeProp === 'line' && 'stroke-dasharray: 200%;', (0, _styledComponents.keyframes)(["from{", "}to{", "}"], animateBounds[0], animateBounds[1]), theme.global.animation.duration, (typeProp === 'bar' || typeProp === 'area') && 'transform-origin: center bottom 0;');
|
|
18
18
|
};
|
|
19
|
-
var StyledChart = _styledComponents["default"].svg.withConfig({
|
|
19
|
+
var StyledChart = exports.StyledChart = _styledComponents["default"].svg.withConfig(_utils.styledComponentsConfig).withConfig({
|
|
20
20
|
displayName: "StyledChart",
|
|
21
21
|
componentId: "sc-1nae0gf-0"
|
|
22
22
|
})(["display:block;max-width:100%;overflow:visible;", " ", " ", ";"], _utils.genericStyles, function (props) {
|
|
@@ -24,6 +24,5 @@ var StyledChart = _styledComponents["default"].svg.withConfig({
|
|
|
24
24
|
}, function (props) {
|
|
25
25
|
return props.theme.chart && props.theme.chart.extend;
|
|
26
26
|
});
|
|
27
|
-
exports.StyledChart = StyledChart;
|
|
28
27
|
StyledChart.defaultProps = {};
|
|
29
28
|
Object.setPrototypeOf(StyledChart.defaultProps, _defaultProps.defaultProps);
|
|
@@ -10,13 +10,12 @@ var thicknessPad = {
|
|
|
10
10
|
small: 'xsmall',
|
|
11
11
|
xsmall: 'xxsmall'
|
|
12
12
|
};
|
|
13
|
-
var round = function round(value, decimals) {
|
|
13
|
+
var round = exports.round = function round(value, decimals) {
|
|
14
14
|
return Number(Math.round(value + "e" + decimals) + "e-" + decimals);
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
// Normalize coarseness to an object.
|
|
18
18
|
// Backwards compatible has no coarseness for x-axis.
|
|
19
|
-
exports.round = round;
|
|
20
19
|
var normalizeCoarseness = function normalizeCoarseness(coarseness, direction) {
|
|
21
20
|
var result;
|
|
22
21
|
if (Array.isArray(coarseness)) result = {
|
|
@@ -84,7 +83,7 @@ var adjustToShowZero = function adjustToShowZero(minArg, maxArg, steps) {
|
|
|
84
83
|
}
|
|
85
84
|
return [min, max];
|
|
86
85
|
};
|
|
87
|
-
var calcBounds = function calcBounds(valuesArg, options) {
|
|
86
|
+
var calcBounds = exports.calcBounds = function calcBounds(valuesArg, options) {
|
|
88
87
|
if (options === void 0) {
|
|
89
88
|
options = {};
|
|
90
89
|
}
|
|
@@ -160,8 +159,7 @@ var calcBounds = function calcBounds(valuesArg, options) {
|
|
|
160
159
|
// if options.direction is present, the results are delivered in { x, y }
|
|
161
160
|
// object structure. If options.direction is not present, the results are
|
|
162
161
|
// delivered in [x, y] array structure, for backwards compatibility
|
|
163
|
-
exports.
|
|
164
|
-
var calcs = function calcs(values, options) {
|
|
162
|
+
var calcs = exports.calcs = function calcs(values, options) {
|
|
165
163
|
if (values === void 0) {
|
|
166
164
|
values = [];
|
|
167
165
|
}
|
|
@@ -261,5 +259,4 @@ var calcs = function calcs(values, options) {
|
|
|
261
259
|
pad: pad,
|
|
262
260
|
thickness: thickness
|
|
263
261
|
};
|
|
264
|
-
};
|
|
265
|
-
exports.calcs = calcs;
|
|
262
|
+
};
|
|
@@ -31,8 +31,8 @@ export interface ChartProps {
|
|
|
31
31
|
dash?: boolean;
|
|
32
32
|
direction?: 'horizontal' | 'vertical';
|
|
33
33
|
gap?: GapType;
|
|
34
|
-
onClick?: (
|
|
35
|
-
onHover?: (
|
|
34
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
35
|
+
onHover?: (over: boolean) => void;
|
|
36
36
|
opacity?: 'weak' | 'medium' | 'strong' | boolean | number;
|
|
37
37
|
overflow?: boolean;
|
|
38
38
|
pad?: EdgeSizeType | { horizontal?: EdgeSizeType; vertical?: EdgeSizeType };
|
|
@@ -93,8 +93,8 @@ export interface ChartProps {
|
|
|
93
93
|
| {
|
|
94
94
|
color?: ColorType;
|
|
95
95
|
label?: string;
|
|
96
|
-
onClick?: (
|
|
97
|
-
onHover?: (
|
|
96
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
97
|
+
onHover?: (over: boolean) => void;
|
|
98
98
|
opacity?: 'weak' | 'medium' | 'strong' | boolean | number;
|
|
99
99
|
thickness?: ThicknessType;
|
|
100
100
|
value: number | number[];
|
|
@@ -12,7 +12,7 @@ var values = [{
|
|
|
12
12
|
}, {
|
|
13
13
|
value: [30, 15]
|
|
14
14
|
}];
|
|
15
|
-
var AnimatedChart = function AnimatedChart() {
|
|
15
|
+
var AnimatedChart = exports.AnimatedChart = function AnimatedChart() {
|
|
16
16
|
return (
|
|
17
17
|
/*#__PURE__*/
|
|
18
18
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
@@ -37,14 +37,13 @@ var AnimatedChart = function AnimatedChart() {
|
|
|
37
37
|
// </Grommet>
|
|
38
38
|
);
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
AnimatedChart.storyName = 'Animate';
|
|
42
42
|
AnimatedChart.parameters = {
|
|
43
43
|
chromatic: {
|
|
44
44
|
disable: true
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
var _default = {
|
|
47
|
+
var _default = exports["default"] = {
|
|
48
48
|
title: 'Visualizations/Chart/Animate'
|
|
49
|
-
};
|
|
50
|
-
exports["default"] = _default;
|
|
49
|
+
};
|
|
@@ -5,7 +5,7 @@ exports["default"] = exports.Dash = void 0;
|
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
8
|
-
var Dash = function Dash() {
|
|
8
|
+
var Dash = exports.Dash = function Dash() {
|
|
9
9
|
return (
|
|
10
10
|
/*#__PURE__*/
|
|
11
11
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
@@ -42,8 +42,6 @@ var Dash = function Dash() {
|
|
|
42
42
|
// </Grommet>
|
|
43
43
|
);
|
|
44
44
|
};
|
|
45
|
-
exports
|
|
46
|
-
var _default = {
|
|
45
|
+
var _default = exports["default"] = {
|
|
47
46
|
title: 'Visualizations/Chart/Dash'
|
|
48
|
-
};
|
|
49
|
-
exports["default"] = _default;
|
|
47
|
+
};
|
|
@@ -18,7 +18,7 @@ var gradient = [{
|
|
|
18
18
|
value: 30,
|
|
19
19
|
color: 'status-critical'
|
|
20
20
|
}];
|
|
21
|
-
var GradientCharts = function GradientCharts() {
|
|
21
|
+
var GradientCharts = exports.GradientCharts = function GradientCharts() {
|
|
22
22
|
return (
|
|
23
23
|
/*#__PURE__*/
|
|
24
24
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
@@ -58,9 +58,8 @@ var GradientCharts = function GradientCharts() {
|
|
|
58
58
|
// </Grommet>
|
|
59
59
|
);
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
|
|
62
62
|
GradientCharts.storyName = 'Gradient';
|
|
63
|
-
var _default = {
|
|
63
|
+
var _default = exports["default"] = {
|
|
64
64
|
title: 'Visualizations/Chart/Gradient'
|
|
65
|
-
};
|
|
66
|
-
exports["default"] = _default;
|
|
65
|
+
};
|
|
@@ -18,7 +18,7 @@ var gradient = [{
|
|
|
18
18
|
value: 30,
|
|
19
19
|
color: 'status-critical'
|
|
20
20
|
}];
|
|
21
|
-
var Horizontal = function Horizontal() {
|
|
21
|
+
var Horizontal = exports.Horizontal = function Horizontal() {
|
|
22
22
|
return (
|
|
23
23
|
/*#__PURE__*/
|
|
24
24
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
@@ -62,8 +62,6 @@ var Horizontal = function Horizontal() {
|
|
|
62
62
|
// </Grommet>
|
|
63
63
|
);
|
|
64
64
|
};
|
|
65
|
-
exports
|
|
66
|
-
var _default = {
|
|
65
|
+
var _default = exports["default"] = {
|
|
67
66
|
title: 'Visualizations/Chart/Horizontal'
|
|
68
|
-
};
|
|
69
|
-
exports["default"] = _default;
|
|
67
|
+
};
|
|
@@ -32,7 +32,7 @@ var LabelledChart = function LabelledChart(_ref) {
|
|
|
32
32
|
weight: "bold"
|
|
33
33
|
}, value, " TiB")));
|
|
34
34
|
};
|
|
35
|
-
var LabelledCharts = function LabelledCharts() {
|
|
35
|
+
var LabelledCharts = exports.LabelledCharts = function LabelledCharts() {
|
|
36
36
|
return (
|
|
37
37
|
/*#__PURE__*/
|
|
38
38
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
@@ -56,9 +56,8 @@ var LabelledCharts = function LabelledCharts() {
|
|
|
56
56
|
// </Grommet>
|
|
57
57
|
);
|
|
58
58
|
};
|
|
59
|
-
|
|
59
|
+
|
|
60
60
|
LabelledCharts.storyName = 'Labelled';
|
|
61
|
-
var _default = {
|
|
61
|
+
var _default = exports["default"] = {
|
|
62
62
|
title: 'Visualizations/Chart/Labelled'
|
|
63
|
-
};
|
|
64
|
-
exports["default"] = _default;
|
|
63
|
+
};
|
|
@@ -12,7 +12,7 @@ var values = Array(14).fill(0).map(function (_, index) {
|
|
|
12
12
|
value += delta % 2 ? delta : -delta;
|
|
13
13
|
return [index, value];
|
|
14
14
|
});
|
|
15
|
-
var Layout = function Layout() {
|
|
15
|
+
var Layout = exports.Layout = function Layout() {
|
|
16
16
|
return (
|
|
17
17
|
/*#__PURE__*/
|
|
18
18
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
@@ -60,8 +60,6 @@ var Layout = function Layout() {
|
|
|
60
60
|
// </Grommet>
|
|
61
61
|
);
|
|
62
62
|
};
|
|
63
|
-
exports
|
|
64
|
-
var _default = {
|
|
63
|
+
var _default = exports["default"] = {
|
|
65
64
|
title: 'Visualizations/Chart/Layout'
|
|
66
|
-
};
|
|
67
|
-
exports["default"] = _default;
|
|
65
|
+
};
|
|
@@ -5,7 +5,7 @@ exports["default"] = exports.Pattern = void 0;
|
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
8
|
-
var Pattern = function Pattern() {
|
|
8
|
+
var Pattern = exports.Pattern = function Pattern() {
|
|
9
9
|
return (
|
|
10
10
|
/*#__PURE__*/
|
|
11
11
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
@@ -33,8 +33,6 @@ var Pattern = function Pattern() {
|
|
|
33
33
|
// </Grommet>
|
|
34
34
|
);
|
|
35
35
|
};
|
|
36
|
-
exports
|
|
37
|
-
var _default = {
|
|
36
|
+
var _default = exports["default"] = {
|
|
38
37
|
title: 'Visualizations/Chart/Pattern'
|
|
39
|
-
};
|
|
40
|
-
exports["default"] = _default;
|
|
38
|
+
};
|
|
@@ -12,7 +12,7 @@ var values = [{
|
|
|
12
12
|
}, {
|
|
13
13
|
value: [30, 15]
|
|
14
14
|
}];
|
|
15
|
-
var Point = function Point() {
|
|
15
|
+
var Point = exports.Point = function Point() {
|
|
16
16
|
return (
|
|
17
17
|
/*#__PURE__*/
|
|
18
18
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
@@ -37,8 +37,6 @@ var Point = function Point() {
|
|
|
37
37
|
// </Grommet>
|
|
38
38
|
);
|
|
39
39
|
};
|
|
40
|
-
exports
|
|
41
|
-
var _default = {
|
|
40
|
+
var _default = exports["default"] = {
|
|
42
41
|
title: 'Visualizations/Chart/Point'
|
|
43
|
-
};
|
|
44
|
-
exports["default"] = _default;
|
|
42
|
+
};
|
|
@@ -6,7 +6,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
7
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
8
8
|
var values = [[10, 20, 30], [20, 30, 60], [30, 15, 20]];
|
|
9
|
-
var Range = function Range() {
|
|
9
|
+
var Range = exports.Range = function Range() {
|
|
10
10
|
return (
|
|
11
11
|
/*#__PURE__*/
|
|
12
12
|
// Uncomment <Grommet> lines when using outside of storybook
|
|
@@ -31,8 +31,6 @@ var Range = function Range() {
|
|
|
31
31
|
// </Grommet>
|
|
32
32
|
);
|
|
33
33
|
};
|
|
34
|
-
exports
|
|
35
|
-
var _default = {
|
|
34
|
+
var _default = exports["default"] = {
|
|
36
35
|
title: 'Visualizations/Chart/Range'
|
|
37
|
-
};
|
|
38
|
-
exports["default"] = _default;
|
|
36
|
+
};
|