grommet 2.38.0 → 2.40.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/COPYRIGHT.md +1 -0
- package/LICENSE +176 -0
- package/README.md +0 -2
- package/all/stories/AllComponents.js +2 -2
- package/all/stories/Colors.js +1 -1
- package/all/stories/CustomThemed/DefaultTheme.js +1 -1
- package/all/stories/TypographyLarge.js +1 -1
- package/all/stories/TypographyMedium.js +1 -1
- package/all/stories/TypographySmall.js +1 -1
- package/components/Accordion/Accordion.js +2 -2
- package/components/Accordion/propTypes.js +2 -2
- package/components/Accordion/stories/CustomThemed/Custom.js +3 -3
- package/components/Accordion/stories/Multiple.js +1 -1
- package/components/Accordion/stories/Simple.js +2 -2
- package/components/AccordionPanel/AccordionPanel.js +5 -6
- package/components/AccordionPanel/propTypes.js +1 -1
- package/components/Anchor/Anchor.js +6 -7
- package/components/Anchor/StyledAnchor.js +2 -4
- package/components/Anchor/propTypes.js +2 -2
- package/components/Anchor/stories/Color.js +1 -1
- package/components/Anchor/stories/Default.js +1 -1
- package/components/Anchor/stories/Gap.js +1 -1
- package/components/Anchor/stories/Size.js +1 -1
- package/components/Anchor/stories/Weight.js +1 -1
- package/components/Avatar/Avatar.js +4 -5
- package/components/Avatar/StyledAvatar.js +5 -9
- package/components/Avatar/propTypes.js +1 -1
- package/components/Avatar/stories/Basic.js +1 -1
- package/components/Avatar/stories/CustomThemed/Themed.js +1 -1
- package/components/Avatar/stories/Round.js +1 -1
- package/components/Avatar/stories/Sizes.js +1 -1
- package/components/Box/Box.js +4 -4
- package/components/Box/StyledBox.js +8 -12
- package/components/Box/propTypes.js +2 -2
- package/components/Box/stories/Animation.js +1 -1
- package/components/Box/stories/Background.js +1 -1
- package/components/Box/stories/BackgroundThemed.js +4 -4
- package/components/Box/stories/Border.js +1 -1
- package/components/Box/stories/Custom.js +1 -1
- package/components/Box/stories/Elevation.js +1 -1
- package/components/Box/stories/Fixed.js +1 -1
- package/components/Box/stories/MinMax.js +1 -1
- package/components/Box/stories/OnClick.js +1 -1
- package/components/Box/stories/RTL.js +1 -1
- package/components/Box/stories/Round.js +1 -1
- package/components/Box/stories/Simple.js +1 -1
- package/components/Button/Badge.js +6 -3
- package/components/Button/BusyAnimation.js +1 -1
- package/components/Button/Button.js +6 -5
- package/components/Button/StyledButton.js +2 -4
- package/components/Button/StyledButtonKind.js +3 -5
- package/components/Button/propTypes.js +2 -2
- package/components/Button/stories/Active.js +1 -1
- package/components/Button/stories/Basic.js +2 -2
- package/components/Button/stories/CustomThemed/Active.js +1 -1
- package/components/Button/stories/CustomThemed/Plain.js +1 -1
- package/components/Button/stories/CustomThemed/ThemedButtons.js +1 -1
- package/components/Button/stories/Fill.js +2 -2
- package/components/Button/stories/Icon.js +1 -1
- package/components/Button/stories/IconLabel.js +1 -1
- package/components/Button/stories/Kind.js +2 -2
- package/components/Button/stories/Multiple.js +1 -1
- package/components/Button/stories/RoutedButton.js +1 -1
- package/components/Button/stories/Sizes.js +1 -1
- package/components/Button/stories/TipOnButton.js +1 -1
- package/components/Calendar/Calendar.js +18 -19
- package/components/Calendar/StyledCalendar.js +5 -17
- package/components/Calendar/propTypes.js +2 -2
- package/components/Calendar/stories/DaylightSavings.js +1 -1
- package/components/Calendar/stories/Fill.js +1 -1
- package/components/Calendar/stories/Range.js +1 -1
- package/components/Calendar/stories/ShowAdjacentDays.js +2 -2
- package/components/Calendar/stories/SundayFirstDay.js +1 -1
- package/components/Card/Card.js +4 -5
- package/components/Card/stories/CustomThemed/Clickable.js +3 -3
- package/components/Card/stories/CustomThemed/RichFooter.js +3 -3
- package/components/Card/stories/CustomThemed/Stacked.js +1 -1
- package/components/Card/stories/CustomThemed/Themed.js +3 -3
- package/components/Card/stories/Simple.js +1 -1
- package/components/CardBody/CardBody.js +6 -8
- package/components/CardFooter/CardFooter.js +6 -8
- package/components/CardHeader/CardHeader.js +6 -8
- package/components/Cards/Cards.js +4 -4
- package/components/Cards/propTypes.js +2 -2
- package/components/Cards/stories/Children.js +1 -1
- package/components/Cards/stories/Paginated.js +1 -1
- package/components/Cards/stories/Simple.js +1 -1
- package/components/Carousel/Carousel.js +8 -12
- package/components/Carousel/CarouselChild.js +3 -7
- package/components/Carousel/propTypes.js +2 -2
- package/components/Carousel/stories/Autoplay.js +1 -1
- package/components/Carousel/stories/ControlVariations.js +1 -1
- package/components/Carousel/stories/Controlled.js +1 -1
- package/components/Carousel/stories/CustomThemed/Custom.js +3 -3
- package/components/Carousel/stories/InteractiveChild.js +1 -1
- package/components/Carousel/stories/Multiple.js +1 -1
- package/components/Carousel/stories/Simple.js +1 -1
- package/components/Chart/Chart.js +4 -5
- package/components/Chart/StyledChart.js +2 -4
- package/components/Chart/propTypes.js +2 -2
- package/components/Chart/stories/Animate.js +1 -1
- package/components/Chart/stories/Dash.js +1 -1
- package/components/Chart/stories/Gradient.js +1 -1
- package/components/Chart/stories/Horizontal.js +1 -1
- package/components/Chart/stories/Labelled.js +1 -1
- package/components/Chart/stories/Layout.js +1 -1
- package/components/Chart/stories/Pattern.js +1 -1
- package/components/Chart/stories/Point.js +1 -1
- package/components/Chart/stories/Range.js +1 -1
- package/components/Chart/stories/Rich.js +1 -1
- package/components/Chart/stories/Round.js +1 -1
- package/components/Chart/stories/ValueStyle.js +1 -1
- package/components/Chart/stories/Window.js +1 -1
- package/components/CheckBox/CheckBox.js +4 -5
- package/components/CheckBox/StyledCheckBox.js +7 -21
- package/components/CheckBox/propTypes.js +1 -1
- package/components/CheckBox/stories/Children.js +1 -1
- package/components/CheckBox/stories/CustomThemed/Custom.js +1 -1
- package/components/CheckBox/stories/CustomThemed/CustomToggle.js +1 -1
- package/components/CheckBox/stories/NoLabel.js +2 -2
- package/components/CheckBox/stories/Simple.js +2 -2
- package/components/CheckBoxGroup/CheckBoxGroup.js +4 -4
- package/components/CheckBoxGroup/StyledCheckBoxGroup.js +3 -5
- package/components/CheckBoxGroup/propTypes.js +1 -1
- package/components/CheckBoxGroup/stories/Disabled.js +1 -1
- package/components/CheckBoxGroup/stories/Simple.js +1 -1
- package/components/Clock/Analog.js +4 -5
- package/components/Clock/Clock.js +2 -2
- package/components/Clock/Digital.js +2 -2
- package/components/Clock/StyledClock.js +6 -20
- package/components/Clock/propTypes.js +2 -2
- package/components/Clock/stories/Analog.js +1 -1
- package/components/Clock/stories/Countdown.js +1 -1
- package/components/Clock/stories/CustomThemed/Digital.js +1 -1
- package/components/Collapsible/Collapsible.js +4 -3
- package/components/Collapsible/propTypes.js +1 -1
- package/components/Collapsible/stories/Horizontal.js +1 -1
- package/components/Collapsible/stories/Nested.js +3 -3
- package/components/Collapsible/stories/Simple.js +2 -2
- package/components/Data/Data.js +2 -2
- package/components/Data/DataForm.js +7 -7
- package/components/Data/filter.js +6 -6
- package/components/Data/index.d.ts +1 -3
- package/components/Data/propTypes.js +3 -2
- package/components/Data/stories/Cards.js +1 -1
- package/components/Data/stories/Complex.js +1 -1
- package/components/Data/stories/ComposedToolbar.js +3 -2
- package/components/Data/stories/Infinite.js +2 -2
- package/components/Data/stories/Inline.js +1 -1
- package/components/Data/stories/List.js +1 -1
- package/components/Data/stories/OnSelect.js +2 -2
- package/components/Data/stories/Properties.js +1 -1
- package/components/Data/stories/Simple.js +1 -1
- package/components/Data/stories/SpaceX.js +2 -2
- package/components/Data/stories/StarWars.js +2 -2
- package/components/Data/stories/Views.js +4 -1
- package/components/DataChart/DataChart.js +4 -4
- package/components/DataChart/Detail.js +5 -3
- package/components/DataChart/Legend.js +1 -1
- package/components/DataChart/Swatch.js +5 -6
- 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/propTypes.js +2 -2
- package/components/DataChart/stories/Axis.js +1 -1
- package/components/DataChart/stories/Detail.js +1 -1
- package/components/DataChart/stories/Everything.js +1 -1
- package/components/DataChart/stories/FourDimension.js +1 -1
- package/components/DataChart/stories/Guide.js +1 -1
- package/components/DataChart/stories/GuideDefault.js +1 -1
- package/components/DataChart/stories/Horizontal.js +1 -1
- package/components/DataChart/stories/Legend.js +1 -1
- package/components/DataChart/stories/MultipleTypes.js +1 -1
- package/components/DataChart/stories/Offset.js +1 -1
- package/components/DataChart/stories/Pad.js +1 -1
- package/components/DataChart/stories/Pattern.js +1 -1
- package/components/DataChart/stories/Placeholder.js +1 -1
- package/components/DataChart/stories/Prediction.js +1 -1
- package/components/DataChart/stories/Simple.js +1 -1
- package/components/DataChart/stories/StackedAreas.js +1 -1
- package/components/DataChart/stories/StackedBars.js +1 -1
- package/components/DataChart/stories/StackedLines.js +1 -1
- package/components/DataClearFilters/DataClearFilters.js +4 -4
- package/components/DataFilter/DataFilter.js +5 -5
- package/components/DataFilter/propTypes.js +1 -1
- package/components/DataFilter/stories/Simple.js +1 -1
- package/components/DataFilters/DataFilters.js +4 -4
- package/components/DataFilters/propTypes.js +1 -1
- package/components/DataFilters/stories/Drop.js +1 -1
- package/components/DataFilters/stories/Layer.js +1 -1
- package/components/DataFilters/stories/Simple.js +1 -1
- package/components/DataSearch/DataSearch.js +4 -4
- package/components/DataSearch/propTypes.js +1 -1
- package/components/DataSearch/stories/Drop.js +1 -1
- package/components/DataSearch/stories/Responsive.js +1 -1
- package/components/DataSearch/stories/Simple.js +1 -1
- package/components/DataSearch/stories/UpdateOnSubmit.js +1 -1
- package/components/DataSort/DataSort.js +4 -4
- package/components/DataSort/propTypes.js +1 -1
- package/components/DataSort/stories/Drop.js +1 -1
- package/components/DataSort/stories/Simple.js +1 -1
- package/components/DataSummary/DataSummary.js +2 -2
- package/components/DataSummary/propTypes.js +1 -1
- package/components/DataSummary/stories/Simple.js +1 -1
- package/components/DataTable/Body.js +4 -5
- package/components/DataTable/Cell.js +5 -8
- package/components/DataTable/DataTable.js +4 -5
- package/components/DataTable/ExpanderCell.js +7 -11
- package/components/DataTable/Footer.js +3 -6
- package/components/DataTable/GroupedBody.js +2 -2
- package/components/DataTable/Header.js +7 -8
- package/components/DataTable/Resizer.js +6 -7
- package/components/DataTable/Searcher.js +3 -6
- package/components/DataTable/Sorter.js +7 -10
- package/components/DataTable/StyledDataTable.js +5 -19
- package/components/DataTable/buildState.js +10 -10
- package/components/DataTable/propTypes.js +2 -2
- package/components/DataTable/stories/AllowSelectAll.js +1 -1
- package/components/DataTable/stories/ColumnSize.js +1 -1
- package/components/DataTable/stories/Controlled.js +2 -2
- package/components/DataTable/stories/ControlledGrouped.js +1 -1
- package/components/DataTable/stories/CustomThemed/Custom.js +1 -1
- package/components/DataTable/stories/CustomThemed/Fill.js +2 -2
- package/components/DataTable/stories/Grouped.js +1 -1
- package/components/DataTable/stories/GroupedOnSelect.js +2 -2
- package/components/DataTable/stories/InfiniteScrollDataTable.js +1 -1
- package/components/DataTable/stories/MultiplePin.js +1 -1
- package/components/DataTable/stories/NoPrimary.js +1 -1
- package/components/DataTable/stories/OnUpdate.js +1 -1
- package/components/DataTable/stories/Placeholder.js +1 -1
- package/components/DataTable/stories/ResizableColumns.js +1 -1
- package/components/DataTable/stories/Served.js +2 -2
- package/components/DataTable/stories/Show.js +1 -1
- package/components/DataTable/stories/Simple.js +1 -1
- package/components/DataTable/stories/Sized.js +1 -1
- package/components/DataTable/stories/Sort.js +2 -2
- package/components/DataTable/stories/SpaceX.js +2 -2
- package/components/DataTable/stories/SpaceXUngrouped.js +2 -2
- package/components/DataTable/stories/Styled.js +1 -1
- package/components/DataTable/stories/Tunable.js +2 -2
- package/components/DataTable/stories/Units.js +1 -1
- package/components/DataTable/stories/VerticalAlign.js +1 -1
- package/components/DataTable/stories/data.js +2 -2
- package/components/DataTable/stories/rowDetails.js +2 -2
- package/components/DataTableColumns/DataTableColumns.js +4 -4
- package/components/DataTableColumns/propTypes.js +1 -1
- package/components/DataTableColumns/stories/DefaultValue.js +49 -0
- package/components/DataTableColumns/stories/Pinned.js +1 -1
- package/components/DataTableColumns/stories/Simple.js +1 -1
- package/components/DataTableGroupBy/DataTableGroupBy.js +2 -2
- package/components/DataTableGroupBy/propTypes.js +1 -1
- package/components/DataTableGroupBy/stories/Simple.js +1 -1
- package/components/DataView/DataView.js +2 -2
- package/components/DataView/stories/Simple.js +1 -1
- package/components/DateInput/DateInput.js +8 -6
- package/components/DateInput/propTypes.js +1 -1
- package/components/DateInput/stories/Form.js +1 -1
- package/components/DateInput/stories/Format.js +1 -1
- package/components/DateInput/stories/Inline.js +1 -1
- package/components/DateInput/stories/Range.js +1 -1
- package/components/DateInput/stories/RangeFormat.js +1 -1
- package/components/DateInput/stories/ReadOnly.js +1 -1
- package/components/DateInput/stories/ResetDate.js +1 -1
- package/components/DateInput/stories/Simple.js +1 -1
- package/components/DateInput/utils.js +2 -2
- package/components/Diagram/Diagram.js +7 -9
- package/components/Diagram/StyledDiagram.js +3 -5
- package/components/Diagram/propTypes.js +2 -2
- package/components/Diagram/stories/Animated.js +2 -2
- package/components/Diagram/stories/Progressing.js +2 -2
- package/components/Distribution/Distribution.js +22 -23
- package/components/Distribution/propTypes.js +3 -3
- package/components/Drop/Drop.js +4 -5
- package/components/Drop/DropContainer.js +4 -4
- package/components/Drop/StyledDrop.js +2 -4
- package/components/Drop/propTypes.js +1 -1
- package/components/Drop/stories/AllNotStretched.js +1 -1
- package/components/DropButton/DropButton.js +2 -2
- package/components/DropButton/propTypes.js +2 -2
- package/components/DropButton/stories/Menu.js +1 -1
- package/components/DropButton/stories/Simple.js +1 -1
- package/components/FileInput/FileInput.js +10 -10
- package/components/FileInput/StyledFileInput.js +3 -5
- package/components/FileInput/propTypes.js +1 -1
- package/components/FileInput/stories/ConfirmRemove.js +1 -1
- package/components/FileInput/stories/CustomThemed/Custom.js +1 -1
- package/components/FileInput/stories/MaxFileCount.js +1 -1
- package/components/FileInput/stories/MaxSize.js +1 -1
- package/components/FileInput/stories/Multiple.js +1 -1
- package/components/FileInput/stories/Simple.js +1 -1
- package/components/FocusedContainer.js +2 -2
- package/components/Footer/Footer.js +3 -3
- package/components/Footer/stories/DoubleFooter.js +3 -3
- package/components/Footer/stories/Simple.js +1 -1
- package/components/Footer/stories/Sitemap.js +3 -3
- package/components/Footer/stories/Social.js +1 -1
- package/components/Form/Form.js +8 -8
- package/components/Form/propTypes.js +1 -1
- package/components/Form/stories/AggregateValidation.js +1 -1
- package/components/Form/stories/ArrayOfFormFields.js +1 -1
- package/components/Form/stories/CustomThemed/Custom.js +1 -1
- package/components/Form/stories/CustomThemed/FieldSpacingOptions.js +2 -2
- package/components/Form/stories/CustomThemed/RequiredLabel.js +1 -1
- package/components/Form/stories/CustomThemed/Themed.js +1 -1
- package/components/Form/stories/FieldWithChildren.js +1 -1
- package/components/Form/stories/FieldWithComponentProp.js +1 -1
- package/components/Form/stories/HelpAndError.js +1 -1
- package/components/Form/stories/TriggerValidationUsingFormField.js +1 -1
- package/components/Form/stories/Uncontrolled.js +1 -1
- package/components/Form/stories/UnsolicitedFeedback.js +3 -2
- package/components/Form/stories/ValidateOnBlur.js +1 -1
- package/components/FormField/FormField.js +11 -9
- package/components/FormField/propTypes.js +1 -1
- package/components/FormField/stories/ThresholdValidation.js +1 -1
- package/components/Grid/Grid.js +2 -2
- package/components/Grid/StyledGrid.js +5 -6
- package/components/Grid/propTypes.js +2 -2
- package/components/Grid/stories/AreasPropAlternative.js +1 -1
- package/components/Grid/stories/Border.js +1 -1
- package/components/Grid/stories/CustomThemed/Responsive.js +3 -3
- package/components/Grid/stories/NColumn.js +1 -1
- package/components/Grid/stories/Percentages.js +1 -1
- package/components/Grommet/Grommet.js +3 -3
- package/components/Grommet/StyledGrommet.js +2 -4
- package/components/Grommet/propTypes.js +1 -1
- package/components/Grommet/stories/Background.js +1 -1
- package/components/Grommet/stories/Messages.js +1 -1
- package/components/Grommet/stories/Plain.js +1 -1
- package/components/Grommet/stories/Theme.js +1 -1
- package/components/Grommet/stories/ThemeMode.js +1 -1
- package/components/Grommet/stories/Vars.js +1 -1
- package/components/Header/Header.js +4 -4
- package/components/Header/propTypes.js +1 -1
- package/components/Header/stories/Responsive.js +1 -1
- package/components/Heading/Heading.js +10 -9
- package/components/Heading/HeadingSkeleton.js +6 -8
- package/components/Heading/StyledHeading.js +2 -4
- package/components/Heading/propTypes.js +2 -2
- package/components/Heading/stories/All.js +1 -1
- package/components/Heading/stories/CustomThemed/CustomHeading.js +1 -1
- package/components/Heading/stories/CustomThemed/Extend.js +1 -1
- package/components/Image/Image.js +2 -2
- package/components/Image/StyledImage.js +2 -4
- package/components/Image/propTypes.js +2 -2
- package/components/Image/stories/Fallback.js +1 -1
- package/components/Image/stories/Fill.js +1 -1
- package/components/Image/stories/Fit.js +1 -1
- package/components/Image/stories/Opacity.js +1 -1
- package/components/Image/stories/Simple.js +1 -1
- package/components/InfiniteScroll/InfiniteScroll.js +1 -0
- package/components/InfiniteScroll/propTypes.js +1 -1
- package/components/InfiniteScroll/stories/Basics.js +2 -2
- package/components/InfiniteScroll/stories/ClassChildren.js +2 -2
- package/components/InfiniteScroll/stories/Grid.js +1 -1
- package/components/InfiniteScroll/stories/GridWithShow.js +1 -1
- package/components/InfiniteScroll/stories/HeightReplace.js +1 -1
- package/components/InfiniteScroll/stories/Marker.js +2 -2
- package/components/InfiniteScroll/stories/Replace.js +1 -1
- package/components/InfiniteScroll/stories/Show.js +2 -2
- package/components/InfiniteScroll/stories/ShowAfter.js +2 -2
- package/components/InfiniteScroll/stories/ShowBefore.js +2 -2
- package/components/InfiniteScroll/stories/Variable.js +1 -1
- package/components/Keyboard/Keyboard.js +1 -1
- package/components/Keyboard/propTypes.js +1 -1
- package/components/Keyboard/stories/OnDocument.js +1 -1
- package/components/Layer/Layer.js +1 -1
- package/components/Layer/LayerContainer.js +4 -4
- package/components/Layer/PortalContext.js +1 -1
- package/components/Layer/StyledLayer.js +5 -9
- package/components/Layer/propTypes.js +1 -1
- package/components/Layer/stories/Center.js +1 -1
- package/components/Layer/stories/Corner.js +1 -1
- package/components/Layer/stories/CustomThemed/Round.js +1 -1
- package/components/Layer/stories/Form.js +1 -1
- package/components/Layer/stories/Full.js +1 -1
- package/components/Layer/stories/Notification.js +1 -1
- package/components/Layer/stories/Plain.js +1 -1
- package/components/Layer/stories/RTL.js +1 -1
- package/components/Layer/stories/ScrollBody.js +1 -1
- package/components/Layer/stories/Target.js +1 -1
- package/components/List/List.js +14 -9
- package/components/List/index.d.ts +1 -0
- package/components/List/propTypes.js +3 -2
- package/components/List/stories/Action.js +1 -1
- package/components/List/stories/Basic.js +1 -1
- package/components/List/stories/Children.js +1 -1
- package/components/List/stories/Disabled.js +1 -1
- package/components/List/stories/Paginated.js +1 -1
- package/components/List/stories/RenderedList.js +1 -1
- package/components/List/stories/Selection.js +1 -1
- package/components/List/stories/Show.js +1 -1
- package/components/List/stories/onClickItem.js +1 -1
- package/components/List/stories/secondaryKey.js +1 -1
- package/components/Main/Main.js +3 -3
- package/components/Markdown/Markdown.js +3 -3
- package/components/Markdown/propTypes.js +1 -1
- package/components/Markdown/stories/Override.js +1 -1
- package/components/Markdown/stories/Simple.js +1 -1
- package/components/MaskedInput/MaskedInput.js +8 -6
- package/components/MaskedInput/StyledMaskedInput.js +5 -4
- package/components/MaskedInput/propTypes.js +1 -1
- package/components/MaskedInput/stories/CustomBox.js +1 -1
- package/components/MaskedInput/stories/Date.js +1 -1
- package/components/MaskedInput/stories/DateRange.js +1 -1
- package/components/MaskedInput/stories/DateTimeDrop.js +1 -1
- package/components/MaskedInput/stories/Filtered.js +1 -1
- package/components/MaskedInput/stories/Form.js +1 -1
- package/components/MaskedInput/stories/IPV4Range.js +1 -1
- package/components/MaskedInput/stories/IPv4Address.js +1 -1
- package/components/MaskedInput/stories/Phone.js +1 -1
- package/components/MaskedInput/stories/SizeUnits.js +1 -1
- package/components/MaskedInput/stories/Time.js +1 -1
- package/components/MaskedInput/stories/URL.js +1 -1
- package/components/Menu/Menu.js +13 -13
- package/components/Menu/propTypes.js +3 -3
- package/components/Menu/stories/BottomControlButton.js +1 -1
- package/components/Menu/stories/Grouped.js +1 -1
- package/components/Menu/stories/ItemWithIcon.js +1 -1
- package/components/Menu/stories/Justify.js +1 -1
- package/components/Menu/stories/Reverse.js +1 -1
- package/components/Menu/stories/Simple.js +1 -1
- package/components/Meter/Bar.js +7 -11
- package/components/Meter/Circle.js +5 -8
- package/components/Meter/Meter.js +4 -5
- package/components/Meter/StyledMeter.js +2 -4
- package/components/Meter/propTypes.js +2 -2
- package/components/Meter/stories/Bar.js +1 -1
- package/components/Meter/stories/Labelled.js +1 -1
- package/components/Meter/stories/Pie.js +1 -1
- package/components/Meter/stories/ReverseBar.js +1 -1
- package/components/Meter/stories/SemiCircle.js +1 -1
- package/components/Meter/stories/VerticalBar.js +1 -1
- package/components/NameValueList/NameValueList.js +4 -4
- package/components/NameValueList/NameValueListContext.js +1 -1
- package/components/NameValueList/propTypes.js +1 -1
- package/components/NameValueList/stories/Align.js +1 -1
- package/components/NameValueList/stories/CustomName.js +1 -1
- package/components/NameValueList/stories/CustomValue.js +1 -1
- package/components/NameValueList/stories/Layout.js +1 -1
- package/components/NameValueList/stories/PairProps.js +1 -1
- package/components/NameValueList/stories/Simple.js +1 -1
- package/components/NameValueList/stories/Width.js +1 -1
- package/components/NameValueList/stories/data.js +1 -1
- package/components/NameValuePair/NameValuePair.js +3 -3
- package/components/NameValuePair/propTypes.js +1 -1
- package/components/Nav/Nav.js +3 -3
- package/components/Nav/stories/Collapsable.js +1 -1
- package/components/Nav/stories/CustomThemed/CustomAnchor.js +1 -1
- package/components/Nav/stories/CustomThemed/JustifySidebar.js +2 -2
- package/components/Nav/stories/OnHeader.js +1 -1
- package/components/Nav/stories/Sidebar.js +2 -2
- package/components/Nav/stories/Simple.js +1 -1
- package/components/Notification/Notification.js +10 -12
- package/components/Notification/propTypes.js +1 -1
- package/components/Notification/stories/Status.js +1 -1
- package/components/Page/Page.js +7 -9
- package/components/Page/propTypes.js +1 -1
- package/components/Page/stories/Background.js +1 -1
- package/components/Page/stories/ContentBackground.js +1 -1
- package/components/Page/stories/CustomThemed/LeftColumn.js +1 -1
- package/components/Page/stories/GlobalHeader.js +1 -1
- package/components/Page/stories/MultipleBackgrounds.js +1 -1
- package/components/Page/stories/MultipleContent.js +1 -1
- package/components/Page/stories/Simple.js +1 -1
- package/components/PageContent/PageContent.js +3 -3
- package/components/PageContent/propTypes.js +1 -1
- package/components/PageHeader/PageHeader.js +4 -4
- package/components/PageHeader/propTypes.js +2 -2
- package/components/PageHeader/stories/Custom.js +1 -1
- package/components/PageHeader/stories/Level.js +1 -1
- package/components/PageHeader/stories/Responsive.js +1 -1
- package/components/PageHeader/stories/Simple.js +1 -1
- package/components/PageHeader/stories/Size.js +1 -1
- package/components/Pagination/PageControl.js +6 -7
- package/components/Pagination/Pagination.js +8 -6
- package/components/Pagination/PaginationStep.js +4 -4
- package/components/Pagination/PaginationSummary.js +1 -1
- package/components/Pagination/StyledPageControl.js +5 -4
- package/components/Pagination/propTypes.js +2 -2
- package/components/Pagination/stories/NumberEdgePages.js +1 -1
- package/components/Pagination/stories/NumberMiddlePages.js +1 -1
- package/components/Pagination/stories/Simple.js +1 -1
- package/components/Pagination/stories/Size.js +1 -1
- package/components/Pagination/stories/Steps.js +1 -1
- package/components/Paragraph/Paragraph.js +2 -2
- package/components/Paragraph/ParagraphSkeleton.js +2 -3
- package/components/Paragraph/StyledParagraph.js +2 -4
- package/components/Paragraph/propTypes.js +2 -2
- package/components/Paragraph/stories/All.js +1 -1
- package/components/Paragraph/stories/CustomThemed/Themed.js +1 -1
- package/components/Paragraph/stories/MaxLines.js +1 -1
- package/components/RadioButton/RadioButton.js +4 -5
- package/components/RadioButton/StyledRadioButton.js +6 -18
- package/components/RadioButton/propTypes.js +1 -1
- package/components/RadioButton/stories/Children.js +1 -1
- package/components/RadioButton/stories/CustomThemed/Theme.js +1 -1
- package/components/RadioButton/stories/Disabled.js +1 -1
- package/components/RadioButton/stories/Simple.js +1 -1
- package/components/RadioButtonGroup/RadioButtonGroup.js +4 -5
- package/components/RadioButtonGroup/propTypes.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 +5 -6
- package/components/RangeInput/StyledRangeInput.js +2 -5
- package/components/RangeInput/propTypes.js +1 -1
- package/components/RangeInput/stories/CustomThemed/Bounds.js +16 -13
- package/components/RangeInput/stories/CustomThemed/Disabled.js +1 -1
- package/components/RangeInput/stories/CustomThemed/TrackColor.js +1 -1
- package/components/RangeInput/stories/SimpleRange.js +1 -1
- package/components/RangeSelector/EdgeControl.js +7 -8
- package/components/RangeSelector/RangeSelector.js +6 -4
- package/components/RangeSelector/propTypes.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/Step.js +2 -2
- package/components/RangeSelector/stories/Vertical.js +2 -2
- package/components/RoutedAnchor/RoutedAnchor.js +7 -10
- package/components/RoutedAnchor/RouterContext.js +7 -0
- package/components/RoutedButton/RoutedButton.js +7 -10
- package/components/RoutedButton/RouterContext.js +7 -0
- package/components/Select/DefaultSelectTextInput.js +2 -2
- package/components/Select/EmptySearchOption.js +2 -2
- package/components/Select/Select.js +4 -8
- package/components/Select/SelectContainer.js +8 -6
- package/components/Select/StyledSelect.js +5 -4
- package/components/Select/propTypes.js +2 -2
- package/components/Select/stories/LazyLoadingOptions.js +1 -1
- package/components/Select/stories/ManyOptions.js +1 -1
- package/components/Select/stories/Uncontrolled.js +1 -1
- package/components/Select/stories/components/SearchBorderBox.js +2 -2
- package/components/Select/stories/components/SearchInput.js +2 -2
- package/components/Select/utils.js +10 -10
- package/components/SelectMultiple/SelectMultiple.js +8 -9
- package/components/SelectMultiple/SelectMultipleContainer.js +3 -4
- package/components/SelectMultiple/propTypes.js +2 -2
- package/components/SelectMultiple/stories/LongList.js +1 -1
- package/components/Sidebar/Sidebar.js +4 -9
- package/components/Sidebar/propTypes.js +1 -1
- package/components/Sidebar/stories/Labels.js +3 -3
- package/components/Skeleton/Skeleton.js +4 -5
- package/components/Skeleton/StyledSkeleton.js +3 -2
- package/components/Skeleton/propTypes.js +2 -2
- package/components/Skeleton/stories/GridContainer.js +2 -2
- package/components/Skeleton/stories/Group.js +6 -6
- package/components/Skeleton/stories/Individual.js +6 -6
- package/components/Skeleton/stories/Simple.js +1 -1
- package/components/SkipLink/SkipLink.js +2 -2
- package/components/SkipLinkTarget/SkipLinkTarget.js +3 -3
- package/components/SkipLinks/SkipLinks.js +2 -4
- package/components/SkipLinks/propTypes.js +1 -1
- package/components/SkipLinks/stories/CustomThemed/Themed.js +1 -1
- package/components/SkipLinks/stories/Simple.js +1 -1
- package/components/Spinner/Spinner.js +4 -5
- package/components/Spinner/propTypes.js +1 -1
- package/components/Spinner/stories/Animation.js +1 -1
- package/components/Spinner/stories/Border.js +1 -1
- package/components/Spinner/stories/ChildrenSpinner.js +1 -1
- package/components/Spinner/stories/Color.js +1 -1
- package/components/Spinner/stories/Modal.js +1 -1
- package/components/Spinner/stories/Round.js +1 -1
- package/components/Spinner/stories/Simple.js +1 -1
- package/components/Spinner/stories/Size.js +1 -1
- package/components/Stack/Stack.js +2 -2
- package/components/Stack/StyledStack.js +2 -6
- package/components/Stack/propTypes.js +2 -2
- package/components/Stack/stories/Fill.js +1 -1
- package/components/Stack/stories/Simple.js +1 -1
- package/components/StarRating/StarRating.js +4 -4
- package/components/StarRating/stories/simple.js +1 -1
- package/components/Tab/StyledTab.js +2 -4
- package/components/Tab/Tab.js +4 -7
- package/components/Tab/propTypes.js +1 -1
- package/components/Table/StyledTable.js +4 -18
- package/components/Table/Table.js +2 -2
- package/components/Table/TableContext.js +1 -1
- package/components/Table/propTypes.js +2 -2
- package/components/Table/stories/CustomThemed/Custom.js +1 -1
- package/components/Table/stories/Default.js +1 -1
- package/components/Table/stories/MeterInTable.js +1 -1
- package/components/Table/stories/data.js +1 -1
- package/components/TableBody/TableBody.js +1 -1
- package/components/TableCell/TableCell.js +4 -4
- package/components/TableCell/propTypes.js +1 -1
- 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 +4 -10
- package/components/Tabs/Tabs.js +4 -5
- package/components/Tabs/TabsContext.js +1 -1
- package/components/Tabs/propTypes.js +2 -2
- package/components/Tabs/stories/CustomThemed/Custom.js +1 -1
- package/components/Tabs/stories/Rich.js +1 -1
- package/components/Tabs/stories/Scrollable.js +1 -1
- package/components/Tag/StyledTag.js +5 -9
- package/components/Tag/Tag.js +4 -5
- package/components/Tag/propTypes.js +1 -1
- package/components/Tag/stories/OnClick.js +1 -1
- package/components/Tag/stories/OnRemove.js +1 -1
- package/components/Tag/stories/Simple.js +1 -1
- package/components/Tag/stories/Size.js +1 -1
- package/components/Text/StyledText.js +2 -4
- package/components/Text/Text.js +7 -6
- package/components/Text/TextContext.js +1 -1
- package/components/Text/TextSkeleton.js +4 -5
- package/components/Text/propTypes.js +2 -2
- package/components/Text/stories/All.js +1 -1
- package/components/Text/stories/Tip.js +1 -1
- package/components/Text/stories/WordBreak.js +1 -1
- package/components/TextArea/StyledTextArea.js +2 -4
- package/components/TextArea/TextArea.js +2 -2
- package/components/TextArea/propTypes.js +1 -1
- package/components/TextArea/stories/NonResizable.js +1 -1
- package/components/TextArea/stories/Simple.js +1 -1
- package/components/TextInput/CopyButton.js +7 -6
- package/components/TextInput/StyledTextInput.js +7 -15
- package/components/TextInput/TextInput.js +8 -6
- package/components/TextInput/propTypes.js +1 -1
- package/components/TextInput/stories/CustomThemed/Themed.js +1 -1
- package/components/TextInput/stories/DefaultSuggestion.js +1 -1
- package/components/TextInput/stories/Icon.js +1 -1
- package/components/TextInput/stories/InsideFormField.js +1 -1
- package/components/TextInput/stories/OnSelect.js +1 -1
- package/components/TextInput/stories/Password.js +1 -1
- package/components/TextInput/stories/ReadOnly.js +1 -1
- package/components/TextInput/stories/Simple.js +1 -1
- package/components/TextInput/stories/StyledPlaceholder.js +1 -1
- package/components/TextInput/stories/Suggestions.js +1 -1
- package/components/TextInput/stories/Uncontrolled.js +1 -1
- package/components/TextInput/stories/WithTags.js +3 -3
- package/components/ThumbsRating/ThumbsRating.js +6 -7
- package/components/ThumbsRating/stories/simple.js +1 -1
- package/components/Tip/Tip.js +8 -3
- package/components/Tip/index.d.ts +1 -0
- package/components/Tip/propTypes.js +3 -2
- package/components/Tip/stories/Caret.js +1 -1
- package/components/Tip/stories/CustomThemed/ResponsiveTip.js +1 -1
- package/components/Tip/stories/CustomThemed/SidebarTip.js +1 -1
- package/components/Tip/stories/InfoTip.js +1 -1
- package/components/ToggleGroup/StyledToggleGroup.js +3 -2
- package/components/ToggleGroup/ToggleGroup.js +7 -4
- package/components/ToggleGroup/index.d.ts +1 -0
- package/components/ToggleGroup/propTypes.js +3 -2
- package/components/ToggleGroup/stories/simple.js +1 -1
- package/components/Toolbar/Toolbar.js +3 -4
- package/components/Toolbar/stories/Simple.js +1 -1
- package/components/Video/StyledVideo.js +5 -13
- package/components/Video/Video.js +4 -6
- package/components/Video/propTypes.js +2 -2
- package/components/WorldMap/StyledWorldMap.js +3 -5
- package/components/WorldMap/WorldMap.js +4 -7
- package/components/WorldMap/propTypes.js +2 -2
- package/components/WorldMap/stories/Color.js +1 -1
- package/components/WorldMap/stories/Continents.js +1 -1
- package/components/WorldMap/stories/Places.js +2 -2
- package/components/WorldMap/stories/SelectPlace.js +1 -1
- package/components/WorldMap/stories/Simple.js +1 -1
- package/contexts/AnnounceContext/AnnounceContext.js +1 -1
- package/contexts/AnnounceContext/propTypes.js +1 -1
- package/contexts/AnnounceContext/stories/Assertive.js +8 -10
- package/contexts/ContainerTargetContext/ContainerTargetContext.js +1 -1
- package/contexts/DataContext.js +1 -1
- package/contexts/DataFormContext.js +1 -1
- package/contexts/MessageContext/MessageContext.js +1 -1
- package/contexts/OptionsContext.js +1 -1
- package/contexts/ResponsiveContext/ResponsiveContext.js +1 -1
- package/contexts/ResponsiveContext/propTypes.js +1 -1
- package/contexts/ResponsiveContext/stories/CustomBreakpoints.js +1 -1
- package/contexts/ResponsiveContext/stories/ResponsiveGrid.js +3 -3
- package/contexts/RootsContext.js +1 -1
- package/contexts/ThemeContext/ThemeContext.js +1 -1
- package/contexts/ThemeContext/propTypes.js +1 -1
- package/contexts/ThemeContext/stories/ExternalComponent.js +1 -1
- package/default-props.d.ts +2 -0
- package/default-props.js +11 -1
- package/es6/all/stories/AllComponents.js +2 -2
- package/es6/components/Accordion/Accordion.js +2 -2
- package/es6/components/Accordion/propTypes.js +1 -1
- package/es6/components/Accordion/stories/CustomThemed/Custom.js +2 -2
- package/es6/components/Accordion/stories/Simple.js +1 -1
- package/es6/components/AccordionPanel/AccordionPanel.js +5 -6
- package/es6/components/Anchor/Anchor.js +6 -7
- package/es6/components/Anchor/StyledAnchor.js +2 -4
- package/es6/components/Anchor/propTypes.js +1 -1
- package/es6/components/Avatar/Avatar.js +5 -6
- package/es6/components/Avatar/StyledAvatar.js +3 -7
- package/es6/components/Box/Box.js +4 -4
- package/es6/components/Box/StyledBox.js +7 -11
- package/es6/components/Box/propTypes.js +1 -1
- package/es6/components/Box/stories/BackgroundThemed.js +4 -3
- package/es6/components/Button/Badge.js +6 -4
- package/es6/components/Button/Button.js +5 -5
- package/es6/components/Button/StyledButton.js +2 -4
- package/es6/components/Button/StyledButtonKind.js +2 -4
- package/es6/components/Button/propTypes.js +1 -1
- package/es6/components/Button/stories/Basic.js +1 -1
- package/es6/components/Button/stories/Fill.js +1 -1
- package/es6/components/Button/stories/Kind.js +1 -1
- package/es6/components/Calendar/Calendar.js +19 -19
- package/es6/components/Calendar/StyledCalendar.js +5 -17
- package/es6/components/Calendar/propTypes.js +1 -1
- package/es6/components/Calendar/stories/ShowAdjacentDays.js +2 -2
- package/es6/components/Card/Card.js +5 -6
- package/es6/components/Card/stories/CustomThemed/Clickable.js +2 -2
- package/es6/components/Card/stories/CustomThemed/RichFooter.js +2 -2
- package/es6/components/Card/stories/CustomThemed/Themed.js +2 -2
- package/es6/components/CardBody/CardBody.js +5 -6
- package/es6/components/CardFooter/CardFooter.js +5 -6
- package/es6/components/CardHeader/CardHeader.js +5 -6
- package/es6/components/Cards/Cards.js +4 -4
- package/es6/components/Cards/propTypes.js +1 -1
- package/es6/components/Carousel/Carousel.js +8 -12
- package/es6/components/Carousel/CarouselChild.js +2 -6
- package/es6/components/Carousel/propTypes.js +1 -1
- package/es6/components/Carousel/stories/CustomThemed/Custom.js +2 -2
- package/es6/components/Chart/Chart.js +5 -6
- package/es6/components/Chart/StyledChart.js +2 -4
- package/es6/components/Chart/propTypes.js +1 -1
- package/es6/components/Chart/stories/Rich.js +1 -1
- package/es6/components/Chart/stories/Window.js +1 -1
- package/es6/components/CheckBox/CheckBox.js +4 -5
- package/es6/components/CheckBox/StyledCheckBox.js +7 -21
- package/es6/components/CheckBox/stories/CustomThemed/Custom.js +1 -1
- package/es6/components/CheckBox/stories/CustomThemed/CustomToggle.js +1 -1
- package/es6/components/CheckBox/stories/NoLabel.js +2 -2
- package/es6/components/CheckBox/stories/Simple.js +2 -2
- package/es6/components/CheckBoxGroup/CheckBoxGroup.js +4 -4
- package/es6/components/CheckBoxGroup/StyledCheckBoxGroup.js +2 -4
- package/es6/components/Clock/Analog.js +5 -6
- package/es6/components/Clock/Clock.js +2 -2
- package/es6/components/Clock/Digital.js +2 -2
- package/es6/components/Clock/StyledClock.js +6 -20
- package/es6/components/Clock/propTypes.js +1 -1
- package/es6/components/Collapsible/Collapsible.js +4 -4
- package/es6/components/Collapsible/stories/Nested.js +2 -2
- package/es6/components/Collapsible/stories/Simple.js +1 -1
- package/es6/components/Data/Data.js +2 -2
- package/es6/components/Data/DataForm.js +6 -6
- package/es6/components/Data/filter.js +6 -6
- package/es6/components/Data/index.d.ts +1 -3
- package/es6/components/Data/propTypes.js +2 -1
- package/es6/components/Data/stories/ComposedToolbar.js +2 -1
- package/es6/components/Data/stories/Infinite.js +2 -2
- package/es6/components/Data/stories/Inline.js +1 -1
- package/es6/components/Data/stories/OnSelect.js +2 -2
- package/es6/components/Data/stories/SpaceX.js +2 -2
- package/es6/components/Data/stories/StarWars.js +2 -2
- package/es6/components/Data/stories/Views.js +3 -0
- package/es6/components/DataChart/DataChart.js +5 -5
- package/es6/components/DataChart/Detail.js +5 -4
- package/es6/components/DataChart/Legend.js +1 -1
- package/es6/components/DataChart/Swatch.js +4 -4
- package/es6/components/DataChart/XAxis.js +2 -2
- package/es6/components/DataChart/XGuide.js +1 -1
- package/es6/components/DataChart/YAxis.js +1 -1
- package/es6/components/DataChart/YGuide.js +1 -1
- package/es6/components/DataChart/propTypes.js +1 -1
- package/es6/components/DataClearFilters/DataClearFilters.js +4 -4
- package/es6/components/DataFilter/DataFilter.js +5 -5
- package/es6/components/DataFilters/DataFilters.js +4 -4
- package/es6/components/DataSearch/DataSearch.js +4 -4
- package/es6/components/DataSort/DataSort.js +4 -4
- package/es6/components/DataSummary/DataSummary.js +2 -2
- package/es6/components/DataTable/Body.js +5 -6
- package/es6/components/DataTable/Cell.js +4 -7
- package/es6/components/DataTable/DataTable.js +4 -5
- package/es6/components/DataTable/ExpanderCell.js +5 -8
- package/es6/components/DataTable/Footer.js +2 -5
- package/es6/components/DataTable/GroupedBody.js +2 -2
- package/es6/components/DataTable/Header.js +7 -8
- package/es6/components/DataTable/Resizer.js +5 -7
- package/es6/components/DataTable/Searcher.js +3 -6
- package/es6/components/DataTable/Sorter.js +5 -7
- package/es6/components/DataTable/StyledDataTable.js +5 -19
- package/es6/components/DataTable/buildState.js +11 -10
- package/es6/components/DataTable/propTypes.js +1 -1
- package/es6/components/DataTable/stories/Controlled.js +1 -1
- package/es6/components/DataTable/stories/ControlledGrouped.js +1 -1
- package/es6/components/DataTable/stories/CustomThemed/Fill.js +1 -1
- package/es6/components/DataTable/stories/GroupedOnSelect.js +1 -1
- package/es6/components/DataTable/stories/OnUpdate.js +1 -1
- package/es6/components/DataTable/stories/Served.js +1 -1
- package/es6/components/DataTable/stories/Sort.js +1 -1
- package/es6/components/DataTable/stories/SpaceX.js +2 -2
- package/es6/components/DataTable/stories/SpaceXUngrouped.js +2 -2
- package/es6/components/DataTable/stories/Tunable.js +1 -1
- package/es6/components/DataTable/stories/data.js +1 -1
- package/es6/components/DataTable/stories/rowDetails.js +1 -1
- package/es6/components/DataTableColumns/DataTableColumns.js +4 -4
- package/es6/components/DataTableColumns/stories/DefaultValue.js +45 -0
- package/es6/components/DataTableGroupBy/DataTableGroupBy.js +2 -2
- package/es6/components/DataView/DataView.js +2 -2
- package/es6/components/DateInput/DateInput.js +7 -6
- package/es6/components/DateInput/utils.js +2 -2
- package/es6/components/Diagram/Diagram.js +8 -10
- package/es6/components/Diagram/StyledDiagram.js +2 -4
- package/es6/components/Diagram/propTypes.js +1 -1
- package/es6/components/Diagram/stories/Animated.js +2 -2
- package/es6/components/Diagram/stories/Progressing.js +2 -2
- package/es6/components/Distribution/Distribution.js +22 -23
- package/es6/components/Distribution/propTypes.js +2 -2
- package/es6/components/Drop/Drop.js +4 -5
- package/es6/components/Drop/DropContainer.js +4 -4
- package/es6/components/Drop/StyledDrop.js +2 -4
- package/es6/components/DropButton/DropButton.js +2 -2
- package/es6/components/DropButton/propTypes.js +1 -1
- package/es6/components/FileInput/FileInput.js +9 -10
- package/es6/components/FileInput/StyledFileInput.js +2 -4
- package/es6/components/FocusedContainer.js +2 -2
- package/es6/components/Footer/Footer.js +2 -2
- package/es6/components/Footer/stories/DoubleFooter.js +2 -2
- package/es6/components/Footer/stories/Sitemap.js +2 -2
- package/es6/components/Form/Form.js +8 -8
- package/es6/components/Form/stories/ArrayOfFormFields.js +1 -1
- package/es6/components/Form/stories/CustomThemed/FieldSpacingOptions.js +1 -1
- package/es6/components/Form/stories/UnsolicitedFeedback.js +2 -1
- package/es6/components/FormField/FormField.js +10 -9
- package/es6/components/Grid/Grid.js +2 -2
- package/es6/components/Grid/StyledGrid.js +4 -5
- package/es6/components/Grid/propTypes.js +1 -1
- package/es6/components/Grid/stories/CustomThemed/Responsive.js +2 -2
- package/es6/components/Grommet/Grommet.js +2 -2
- package/es6/components/Grommet/StyledGrommet.js +2 -4
- package/es6/components/Header/Header.js +5 -5
- package/es6/components/Heading/Heading.js +10 -9
- package/es6/components/Heading/HeadingSkeleton.js +6 -8
- package/es6/components/Heading/StyledHeading.js +2 -4
- package/es6/components/Heading/propTypes.js +1 -1
- package/es6/components/Image/Image.js +2 -2
- package/es6/components/Image/StyledImage.js +2 -4
- package/es6/components/Image/propTypes.js +1 -1
- package/es6/components/InfiniteScroll/InfiniteScroll.js +1 -0
- package/es6/components/InfiniteScroll/stories/Basics.js +1 -1
- package/es6/components/InfiniteScroll/stories/ClassChildren.js +1 -1
- package/es6/components/InfiniteScroll/stories/Marker.js +1 -1
- package/es6/components/InfiniteScroll/stories/Show.js +1 -1
- package/es6/components/InfiniteScroll/stories/ShowAfter.js +1 -1
- package/es6/components/InfiniteScroll/stories/ShowBefore.js +1 -1
- package/es6/components/Keyboard/Keyboard.js +1 -1
- package/es6/components/Layer/Layer.js +1 -1
- package/es6/components/Layer/LayerContainer.js +4 -4
- package/es6/components/Layer/StyledLayer.js +4 -8
- package/es6/components/List/List.js +13 -9
- package/es6/components/List/index.d.ts +1 -0
- package/es6/components/List/propTypes.js +2 -1
- package/es6/components/Main/Main.js +2 -2
- package/es6/components/Markdown/Markdown.js +2 -2
- package/es6/components/MaskedInput/MaskedInput.js +7 -6
- package/es6/components/MaskedInput/StyledMaskedInput.js +4 -3
- package/es6/components/Menu/Menu.js +12 -13
- package/es6/components/Menu/propTypes.js +2 -2
- package/es6/components/Meter/Bar.js +7 -11
- package/es6/components/Meter/Circle.js +5 -8
- package/es6/components/Meter/Meter.js +5 -6
- package/es6/components/Meter/StyledMeter.js +2 -4
- package/es6/components/Meter/propTypes.js +1 -1
- package/es6/components/NameValueList/NameValueList.js +4 -4
- package/es6/components/NameValuePair/NameValuePair.js +3 -3
- package/es6/components/Nav/Nav.js +2 -2
- package/es6/components/Nav/stories/CustomThemed/JustifySidebar.js +2 -2
- package/es6/components/Nav/stories/Sidebar.js +2 -2
- package/es6/components/Notification/Notification.js +10 -13
- package/es6/components/Page/Page.js +6 -8
- package/es6/components/PageContent/PageContent.js +3 -3
- package/es6/components/PageHeader/PageHeader.js +4 -4
- package/es6/components/PageHeader/propTypes.js +1 -1
- package/es6/components/Pagination/PageControl.js +5 -5
- package/es6/components/Pagination/Pagination.js +7 -6
- package/es6/components/Pagination/PaginationStep.js +4 -4
- package/es6/components/Pagination/PaginationSummary.js +1 -1
- package/es6/components/Pagination/StyledPageControl.js +4 -3
- package/es6/components/Pagination/propTypes.js +1 -1
- package/es6/components/Paragraph/Paragraph.js +2 -2
- package/es6/components/Paragraph/ParagraphSkeleton.js +3 -4
- package/es6/components/Paragraph/StyledParagraph.js +2 -4
- package/es6/components/Paragraph/propTypes.js +1 -1
- package/es6/components/RadioButton/RadioButton.js +5 -6
- package/es6/components/RadioButton/StyledRadioButton.js +6 -18
- package/es6/components/RadioButtonGroup/RadioButtonGroup.js +4 -5
- package/es6/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +2 -2
- package/es6/components/RadioButtonGroup/stories/Disabled.js +2 -2
- package/es6/components/RangeInput/RangeInput.js +5 -6
- package/es6/components/RangeInput/StyledRangeInput.js +2 -4
- package/es6/components/RangeInput/stories/CustomThemed/Bounds.js +14 -12
- package/es6/components/RangeSelector/EdgeControl.js +6 -8
- package/es6/components/RangeSelector/RangeSelector.js +5 -4
- package/es6/components/RangeSelector/stories/CustomThemed/Custom.js +2 -2
- package/es6/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +2 -2
- package/es6/components/RangeSelector/stories/Step.js +2 -2
- package/es6/components/RangeSelector/stories/Vertical.js +2 -2
- package/es6/components/RoutedAnchor/RoutedAnchor.js +7 -9
- package/es6/components/RoutedAnchor/RouterContext.js +2 -0
- package/es6/components/RoutedButton/RoutedButton.js +7 -9
- package/es6/components/RoutedButton/RouterContext.js +2 -0
- package/es6/components/Select/DefaultSelectTextInput.js +2 -2
- package/es6/components/Select/EmptySearchOption.js +1 -1
- package/es6/components/Select/Select.js +4 -8
- package/es6/components/Select/SelectContainer.js +8 -7
- package/es6/components/Select/StyledSelect.js +4 -3
- package/es6/components/Select/propTypes.js +1 -1
- package/es6/components/Select/stories/components/SearchBorderBox.js +2 -2
- package/es6/components/Select/stories/components/SearchInput.js +2 -2
- package/es6/components/Select/utils.js +11 -10
- package/es6/components/SelectMultiple/SelectMultiple.js +7 -9
- package/es6/components/SelectMultiple/SelectMultipleContainer.js +3 -4
- package/es6/components/SelectMultiple/propTypes.js +1 -1
- package/es6/components/Sidebar/Sidebar.js +3 -8
- package/es6/components/Sidebar/stories/Labels.js +2 -2
- package/es6/components/Skeleton/Skeleton.js +5 -6
- package/es6/components/Skeleton/StyledSkeleton.js +2 -1
- package/es6/components/Skeleton/propTypes.js +1 -1
- package/es6/components/Skeleton/stories/GridContainer.js +2 -2
- package/es6/components/Skeleton/stories/Group.js +6 -5
- package/es6/components/Skeleton/stories/Individual.js +6 -5
- package/es6/components/SkipLink/SkipLink.js +2 -2
- package/es6/components/SkipLinkTarget/SkipLinkTarget.js +2 -2
- package/es6/components/SkipLinks/SkipLinks.js +2 -4
- package/es6/components/Spinner/Spinner.js +4 -5
- package/es6/components/Stack/Stack.js +2 -2
- package/es6/components/Stack/StyledStack.js +2 -6
- package/es6/components/Stack/propTypes.js +1 -1
- package/es6/components/StarRating/StarRating.js +4 -4
- package/es6/components/Tab/StyledTab.js +2 -4
- package/es6/components/Tab/Tab.js +4 -7
- package/es6/components/Table/StyledTable.js +4 -18
- package/es6/components/Table/Table.js +2 -2
- package/es6/components/Table/propTypes.js +1 -1
- package/es6/components/TableBody/TableBody.js +1 -1
- package/es6/components/TableCell/TableCell.js +4 -4
- package/es6/components/TableFooter/TableFooter.js +1 -1
- package/es6/components/TableHeader/TableHeader.js +1 -1
- package/es6/components/TableRow/TableRow.js +1 -1
- package/es6/components/Tabs/StyledTabs.js +4 -10
- package/es6/components/Tabs/Tabs.js +4 -5
- package/es6/components/Tabs/propTypes.js +1 -1
- package/es6/components/Tag/StyledTag.js +4 -8
- package/es6/components/Tag/Tag.js +5 -6
- package/es6/components/Text/StyledText.js +2 -4
- package/es6/components/Text/Text.js +7 -6
- package/es6/components/Text/TextSkeleton.js +5 -6
- package/es6/components/Text/propTypes.js +1 -1
- package/es6/components/TextArea/StyledTextArea.js +2 -4
- package/es6/components/TextArea/TextArea.js +2 -2
- package/es6/components/TextArea/stories/NonResizable.js +1 -1
- package/es6/components/TextArea/stories/Simple.js +1 -1
- package/es6/components/TextInput/CopyButton.js +6 -4
- package/es6/components/TextInput/StyledTextInput.js +6 -14
- package/es6/components/TextInput/TextInput.js +7 -6
- package/es6/components/TextInput/stories/InsideFormField.js +1 -1
- package/es6/components/TextInput/stories/WithTags.js +2 -2
- package/es6/components/ThumbsRating/ThumbsRating.js +5 -5
- package/es6/components/Tip/Tip.js +9 -4
- package/es6/components/Tip/index.d.ts +1 -0
- package/es6/components/Tip/propTypes.js +2 -1
- package/es6/components/ToggleGroup/StyledToggleGroup.js +2 -1
- package/es6/components/ToggleGroup/ToggleGroup.js +8 -5
- package/es6/components/ToggleGroup/index.d.ts +1 -0
- package/es6/components/ToggleGroup/propTypes.js +2 -1
- package/es6/components/Toolbar/Toolbar.js +3 -4
- package/es6/components/Video/StyledVideo.js +5 -13
- package/es6/components/Video/Video.js +4 -6
- package/es6/components/Video/propTypes.js +1 -1
- package/es6/components/WorldMap/StyledWorldMap.js +2 -4
- package/es6/components/WorldMap/WorldMap.js +4 -7
- package/es6/components/WorldMap/propTypes.js +1 -1
- package/es6/components/WorldMap/stories/Places.js +1 -1
- package/es6/contexts/AnnounceContext/stories/Assertive.js +7 -9
- package/es6/contexts/ResponsiveContext/stories/ResponsiveGrid.js +2 -2
- package/es6/default-props.d.ts +2 -0
- package/es6/default-props.js +10 -0
- package/es6/themes/base.d.ts +3 -0
- package/es6/themes/base.js +7 -4
- package/es6/utils/DOM.js +7 -5
- package/es6/utils/background.js +4 -4
- package/es6/utils/colors.js +3 -2
- package/es6/utils/mixins.js +3 -2
- package/es6/utils/object.js +4 -3
- package/es6/utils/pagination.js +2 -2
- package/es6/utils/styles.js +1 -1
- package/es6/utils/use-debounce.js +3 -4
- package/es6/utils/useThemeValue.js +12 -0
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/package.json +39 -40
- package/themes/base.d.ts +3 -0
- package/themes/base.js +7 -4
- package/utils/DOM.js +4 -4
- package/utils/PortalContext.js +1 -1
- package/utils/background.js +4 -4
- package/utils/colors.js +2 -2
- package/utils/general-prop-types.js +1 -1
- package/utils/mixins.js +2 -2
- package/utils/object.js +3 -3
- package/utils/pagination.js +2 -2
- package/utils/router.js +1 -1
- package/utils/styles.js +2 -2
- package/utils/use-debounce.js +2 -3
- package/utils/useThemeValue.js +14 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { backgroundStyle, fillStyle, focusStyle, unfocusStyle, genericStyles, normalizeColor, styledComponentsConfig } from '../../utils';
|
|
3
|
-
import { defaultProps } from '../../default-props';
|
|
4
3
|
import { Box } from '../Box';
|
|
5
4
|
import { TableRow } from '../TableRow';
|
|
6
5
|
import { Table } from '../Table';
|
|
@@ -8,9 +7,10 @@ import { TableBody } from '../TableBody';
|
|
|
8
7
|
import { TableCell } from '../TableCell';
|
|
9
8
|
import { TableHeader } from '../TableHeader';
|
|
10
9
|
import { TableFooter } from '../TableFooter';
|
|
10
|
+
import { withTheme } from '../../default-props';
|
|
11
11
|
|
|
12
12
|
// border-collapse: separate is needed so pinned header/footer borders work
|
|
13
|
-
var StyledDataTable = styled(Table).withConfig({
|
|
13
|
+
var StyledDataTable = styled(Table).attrs(withTheme).withConfig({
|
|
14
14
|
displayName: "StyledDataTable",
|
|
15
15
|
componentId: "sc-xrlyjm-0"
|
|
16
16
|
})(["position:relative;border-spacing:0;border-collapse:separate;", " ", " ", ";"], genericStyles, function (props) {
|
|
@@ -18,18 +18,14 @@ var StyledDataTable = styled(Table).withConfig({
|
|
|
18
18
|
}, function (props) {
|
|
19
19
|
return props.theme.dataTable && props.theme.dataTable.body && props.theme.dataTable.body.extend;
|
|
20
20
|
});
|
|
21
|
-
StyledDataTable.defaultProps = {};
|
|
22
|
-
Object.setPrototypeOf(StyledDataTable.defaultProps, defaultProps);
|
|
23
21
|
|
|
24
22
|
// when paginated, this wraps the data table and pagination component
|
|
25
|
-
var StyledContainer = styled(Box).withConfig({
|
|
23
|
+
var StyledContainer = styled(Box).attrs(withTheme).withConfig({
|
|
26
24
|
displayName: "StyledDataTable__StyledContainer",
|
|
27
25
|
componentId: "sc-xrlyjm-1"
|
|
28
26
|
})(["", ";"], function (props) {
|
|
29
27
|
return props.theme.dataTable && props.theme.dataTable.container && props.theme.dataTable.container.extend;
|
|
30
28
|
});
|
|
31
|
-
StyledContainer.defaultProps = {};
|
|
32
|
-
Object.setPrototypeOf(StyledContainer.defaultProps, defaultProps);
|
|
33
29
|
var hoverStyle = css(["", " color:", ";"], function (props) {
|
|
34
30
|
return backgroundStyle(normalizeColor(props.theme.table && props.theme.table.row && props.theme.table.row.hover && props.theme.table.row.hover.background || props.theme.global.hover.background, props.theme), props.theme);
|
|
35
31
|
}, function (props) {
|
|
@@ -45,11 +41,9 @@ var StyledDataTableRow = styled(TableRow).withConfig({
|
|
|
45
41
|
}, function (props) {
|
|
46
42
|
return props.active && hoverStyle;
|
|
47
43
|
});
|
|
48
|
-
StyledDataTableRow.defaultProps = {};
|
|
49
|
-
Object.setPrototypeOf(StyledDataTableRow.defaultProps, defaultProps);
|
|
50
44
|
|
|
51
45
|
// focus styling other than outline doesn't work on <tbody />
|
|
52
|
-
var StyledDataTableBody = styled(TableBody).withConfig({
|
|
46
|
+
var StyledDataTableBody = styled(TableBody).attrs(withTheme).withConfig({
|
|
53
47
|
displayName: "StyledDataTable__StyledDataTableBody",
|
|
54
48
|
componentId: "sc-xrlyjm-3"
|
|
55
49
|
})(["", " &:focus{", "}&:focus:not(:focus-visible){", "}"], function (props) {
|
|
@@ -61,16 +55,12 @@ var StyledDataTableBody = styled(TableBody).withConfig({
|
|
|
61
55
|
skipSvgChildren: true,
|
|
62
56
|
forceOutline: true
|
|
63
57
|
}));
|
|
64
|
-
StyledDataTableBody.defaultProps = {};
|
|
65
|
-
Object.setPrototypeOf(StyledDataTableBody.defaultProps, defaultProps);
|
|
66
58
|
var StyledDataTableHeader = styled(TableHeader).withConfig({
|
|
67
59
|
displayName: "StyledDataTable__StyledDataTableHeader",
|
|
68
60
|
componentId: "sc-xrlyjm-4"
|
|
69
61
|
})(["", ""], function (props) {
|
|
70
62
|
return props.size && "\n height: fit-content;\n display: table;\n width: calc(100% - " + props.scrollOffset + "px);\n table-layout: fixed;\n ";
|
|
71
63
|
});
|
|
72
|
-
StyledDataTableHeader.defaultProps = {};
|
|
73
|
-
Object.setPrototypeOf(StyledDataTableHeader.defaultProps, defaultProps);
|
|
74
64
|
var StyledDataTableFooter = styled(TableFooter).withConfig({
|
|
75
65
|
displayName: "StyledDataTable__StyledDataTableFooter",
|
|
76
66
|
componentId: "sc-xrlyjm-5"
|
|
@@ -79,9 +69,7 @@ var StyledDataTableFooter = styled(TableFooter).withConfig({
|
|
|
79
69
|
}, function (props) {
|
|
80
70
|
return props.pin && "\n /* Safari needs the relative positioning of tfoot specified */\n position: sticky;\n bottom: 0;\n z-index: 1;\n ";
|
|
81
71
|
});
|
|
82
|
-
|
|
83
|
-
Object.setPrototypeOf(StyledDataTableFooter.defaultProps, defaultProps);
|
|
84
|
-
var StyledDataTableCell = styled(TableCell).withConfig({
|
|
72
|
+
var StyledDataTableCell = styled(TableCell).attrs(withTheme).withConfig({
|
|
85
73
|
displayName: "StyledDataTable__StyledDataTableCell",
|
|
86
74
|
componentId: "sc-xrlyjm-6"
|
|
87
75
|
})(["", ";", " ", ""], function (props) {
|
|
@@ -93,8 +81,6 @@ var StyledDataTableCell = styled(TableCell).withConfig({
|
|
|
93
81
|
}, function (props) {
|
|
94
82
|
return props.pin && props.pin.length > 0 && props.theme.dataTable.pinned && props.theme.dataTable.pinned[props.context] && props.theme.dataTable.pinned[props.context].extend ? props.theme.dataTable.pinned[props.context].extend : '';
|
|
95
83
|
});
|
|
96
|
-
StyledDataTableCell.defaultProps = {};
|
|
97
|
-
Object.setPrototypeOf(StyledDataTableCell.defaultProps, defaultProps);
|
|
98
84
|
var StyledPlaceholder = styled('caption').withConfig(styledComponentsConfig).withConfig({
|
|
99
85
|
displayName: "StyledDataTable__StyledPlaceholder",
|
|
100
86
|
componentId: "sc-xrlyjm-7"
|
|
@@ -16,15 +16,16 @@ export var set = function set(obj, path, value) {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
// get the value for the property in the datum object
|
|
19
|
-
|
|
19
|
+
var _datumValue = function datumValue(datum, property) {
|
|
20
20
|
if (!property || !datum) return undefined;
|
|
21
21
|
var parts = property.split('.');
|
|
22
22
|
if (parts.length === 1) return datum[property];
|
|
23
23
|
if (!datum[parts[0]]) return undefined;
|
|
24
|
-
return
|
|
24
|
+
return _datumValue(datum[parts[0]], parts.slice(1).join('.'));
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
// get the primary property name
|
|
28
|
+
export { _datumValue as datumValue };
|
|
28
29
|
export var normalizePrimaryProperty = function normalizePrimaryProperty(columns, primaryKey) {
|
|
29
30
|
var result;
|
|
30
31
|
if (typeof primaryKey === 'string' || typeof primaryKey === 'boolean') {
|
|
@@ -75,7 +76,7 @@ export var filterAndSortData = function filterAndSortData(data, filters, onSearc
|
|
|
75
76
|
if (Object.keys(regexps).length > 0) {
|
|
76
77
|
result = data.filter(function (datum) {
|
|
77
78
|
return !Object.keys(regexps).some(function (property) {
|
|
78
|
-
return !regexps[property].test(
|
|
79
|
+
return !regexps[property].test(_datumValue(datum, property));
|
|
79
80
|
});
|
|
80
81
|
});
|
|
81
82
|
}
|
|
@@ -88,8 +89,8 @@ export var filterAndSortData = function filterAndSortData(data, filters, onSearc
|
|
|
88
89
|
var before = sortAsc ? 1 : -1;
|
|
89
90
|
var after = sortAsc ? -1 : 1;
|
|
90
91
|
result.sort(function (d1, d2) {
|
|
91
|
-
var d1Val =
|
|
92
|
-
var d2Val =
|
|
92
|
+
var d1Val = _datumValue(d1, property);
|
|
93
|
+
var d2Val = _datumValue(d2, property);
|
|
93
94
|
if (typeof d1Val === 'string' && typeof d2Val === 'string' || typeof d1Val === 'string' && !d2Val || typeof d2Val === 'string' && !d1Val) {
|
|
94
95
|
var sortResult = (d1Val || '').localeCompare(d2Val || '', undefined, {
|
|
95
96
|
sensitivity: 'base'
|
|
@@ -132,12 +133,12 @@ var aggregateColumn = function aggregateColumn(column, data) {
|
|
|
132
133
|
var value;
|
|
133
134
|
if (column.aggregate === 'avg') {
|
|
134
135
|
value = data.map(function (d) {
|
|
135
|
-
return
|
|
136
|
+
return _datumValue(d, column.property);
|
|
136
137
|
}).reduce(sumReducer);
|
|
137
138
|
value /= data.length;
|
|
138
139
|
} else {
|
|
139
140
|
value = data.map(function (d) {
|
|
140
|
-
return
|
|
141
|
+
return _datumValue(d, column.property);
|
|
141
142
|
}).reduce(reducers[column.aggregate], reducersInitValues[column.aggregate]);
|
|
142
143
|
}
|
|
143
144
|
return value;
|
|
@@ -162,7 +163,7 @@ export var buildFooterValues = function buildFooterValues(columns, data) {
|
|
|
162
163
|
columns.forEach(function (column) {
|
|
163
164
|
if (column.footer) {
|
|
164
165
|
if (column.footer.aggregate) {
|
|
165
|
-
var value =
|
|
166
|
+
var value = _datumValue(aggregateValues, column.property);
|
|
166
167
|
result = set(result, column.property, value);
|
|
167
168
|
} else {
|
|
168
169
|
result = set(result, column.property, column.footer);
|
|
@@ -181,10 +182,10 @@ export var buildGroups = function buildGroups(columns, data, groupBy, primaryPro
|
|
|
181
182
|
var groupMap = {};
|
|
182
183
|
data.forEach(function (datum) {
|
|
183
184
|
var _groupBy$expandable;
|
|
184
|
-
var key =
|
|
185
|
+
var key = _datumValue(datum, primaryProperty);
|
|
185
186
|
var isGroup = key && ((_groupBy$expandable = groupBy.expandable) == null ? void 0 : _groupBy$expandable.includes(key));
|
|
186
187
|
var groupByProperty = groupBy.property ? groupBy.property : groupBy;
|
|
187
|
-
var groupValue = isGroup ? key :
|
|
188
|
+
var groupValue = isGroup ? key : _datumValue(datum, groupByProperty);
|
|
188
189
|
if (!groupMap[groupValue]) {
|
|
189
190
|
var group = {
|
|
190
191
|
data: [],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { genericProps } from '../../utils/general-prop-types';
|
|
4
4
|
var sizes = ['xxsmall', 'xsmall', 'small', 'medium', 'large', 'xlarge'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Box, DataTable, CheckBox } from 'grommet';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
3
|
import { DataTable } from 'grommet';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Grommet, Box, DataTable } from 'grommet';
|
|
4
4
|
import { grommet } from 'grommet/themes';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Box, DataTable } from 'grommet';
|
|
4
4
|
// Source code for the data can be found here
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
/* eslint-disable no-param-reassign */
|
|
3
3
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
4
4
|
import { Box, DataTable } from 'grommet';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Box, DataTable } from 'grommet';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Box, DataTable } from 'grommet';
|
|
4
4
|
import { columns } from './data';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
2
|
-
function asyncGeneratorStep(
|
|
3
|
-
function _asyncToGenerator(
|
|
2
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
3
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
4
4
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
5
5
|
import { Box, DataTable, Text, Tip } from 'grommet';
|
|
6
6
|
import { StatusCritical } from "grommet-icons/es6/icons/StatusCritical";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(typeof e + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
2
|
-
function asyncGeneratorStep(
|
|
3
|
-
function _asyncToGenerator(
|
|
2
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
3
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
4
4
|
import React, { useEffect, useState } from 'react';
|
|
5
5
|
import { Box, DataTable, Text, Tip } from 'grommet';
|
|
6
6
|
import { StatusCritical } from "grommet-icons/es6/icons/StatusCritical";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Box, DataTable } from 'grommet';
|
|
4
4
|
// Source code for the data can be found here
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Box, Meter, Text, Tip } from 'grommet';
|
|
4
4
|
var amountFormatter = new Intl.NumberFormat('en-US', {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Box, DataTable, CheckBox } from 'grommet';
|
|
4
4
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
var _excluded = ["drop", "options"],
|
|
2
2
|
_excluded2 = ["drop", "options"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React, { useCallback, useContext, useMemo, useState } from 'react';
|
|
6
6
|
import { Search } from 'grommet-icons/icons/Search';
|
|
7
7
|
import { Splits } from 'grommet-icons/icons/Splits';
|
|
8
8
|
import { Lock } from 'grommet-icons/icons/Lock';
|
|
9
|
-
import { ThemeContext } from 'styled-components';
|
|
10
9
|
import { Box } from '../Box';
|
|
11
10
|
import { CheckBoxGroup } from '../CheckBoxGroup';
|
|
12
11
|
import { DataForm, formColumnsKey } from '../Data';
|
|
@@ -20,6 +19,7 @@ import { TextInput } from '../TextInput';
|
|
|
20
19
|
import { DataContext } from '../../contexts/DataContext';
|
|
21
20
|
import { MessageContext } from '../../contexts/MessageContext';
|
|
22
21
|
import { DataTableColumnsPropTypes } from './propTypes';
|
|
22
|
+
import { useThemeValue } from '../../utils/useThemeValue';
|
|
23
23
|
var dropProps = {
|
|
24
24
|
align: {
|
|
25
25
|
top: 'bottom',
|
|
@@ -202,7 +202,7 @@ export var DataTableColumns = function DataTableColumns(_ref5) {
|
|
|
202
202
|
inDataForm = _useContext5.inDataForm;
|
|
203
203
|
var _useContext6 = useContext(MessageContext),
|
|
204
204
|
format = _useContext6.format;
|
|
205
|
-
var theme =
|
|
205
|
+
var theme = useThemeValue();
|
|
206
206
|
var _useState3 = useState(),
|
|
207
207
|
showContent = _useState3[0],
|
|
208
208
|
setShowContent = _useState3[1];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Box, Data, DataSearch, DataSummary, DataTable, DataTableColumns, Toolbar } from 'grommet';
|
|
3
|
+
import { columns, DATA } from '../../DataTable/stories/data';
|
|
4
|
+
|
|
5
|
+
// simplify option label for name property
|
|
6
|
+
var options = columns.map(function (_ref) {
|
|
7
|
+
var header = _ref.header,
|
|
8
|
+
property = _ref.property;
|
|
9
|
+
return {
|
|
10
|
+
property: property,
|
|
11
|
+
label: property === 'name' ? 'Name' : header
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
var defaultValue = ['percent', 'paid', 'name'];
|
|
15
|
+
export var DefaultValue = function DefaultValue() {
|
|
16
|
+
return (
|
|
17
|
+
/*#__PURE__*/
|
|
18
|
+
// Uncomment <Grommet> lines when using outside of storybook
|
|
19
|
+
// <Grommet theme={...}>
|
|
20
|
+
React.createElement(Box, {
|
|
21
|
+
align: "center",
|
|
22
|
+
justify: "start",
|
|
23
|
+
pad: "large",
|
|
24
|
+
gap: "medium"
|
|
25
|
+
}, /*#__PURE__*/React.createElement(Data, {
|
|
26
|
+
data: DATA,
|
|
27
|
+
defaultView: {
|
|
28
|
+
columns: defaultValue
|
|
29
|
+
}
|
|
30
|
+
}, /*#__PURE__*/React.createElement(Toolbar, null, /*#__PURE__*/React.createElement(DataSearch, null), /*#__PURE__*/React.createElement(DataTableColumns, {
|
|
31
|
+
drop: true,
|
|
32
|
+
options: options
|
|
33
|
+
})), /*#__PURE__*/React.createElement(DataSummary, null), /*#__PURE__*/React.createElement(DataTable, {
|
|
34
|
+
columns: columns,
|
|
35
|
+
primaryKey: "name"
|
|
36
|
+
})))
|
|
37
|
+
// </Grommet>
|
|
38
|
+
);
|
|
39
|
+
};
|
|
40
|
+
DefaultValue.args = {
|
|
41
|
+
full: true
|
|
42
|
+
};
|
|
43
|
+
export default {
|
|
44
|
+
title: 'Data/DataTableColumns/DefaultValue'
|
|
45
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["id", "options"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { useContext, useEffect } from 'react';
|
|
5
5
|
import { DataForm } from '../Data/DataForm';
|
|
6
6
|
import { DataContext } from '../../contexts/DataContext';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["id"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { useContext, useEffect } from 'react';
|
|
5
5
|
import { DataForm } from '../Data/DataForm';
|
|
6
6
|
import { DataContext } from '../../contexts/DataContext';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
var _excluded = ["buttonProps", "calendarProps", "defaultValue", "disabled", "dropProps", "format", "id", "icon", "inline", "inputProps", "name", "onChange", "onFocus", "plain", "readOnly", "readOnlyCopy", "reverse", "value", "messages"],
|
|
2
2
|
_excluded2 = ["icon"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React, { useRef, forwardRef, useContext, useEffect, useMemo, useState, useCallback } from 'react';
|
|
6
|
-
import styled
|
|
6
|
+
import styled from 'styled-components';
|
|
7
7
|
import { Calendar as CalendarIcon } from 'grommet-icons/icons/Calendar';
|
|
8
|
-
import { defaultProps } from '../../default-props';
|
|
9
8
|
import { AnnounceContext } from '../../contexts/AnnounceContext';
|
|
10
9
|
import { MessageContext } from '../../contexts/MessageContext';
|
|
11
10
|
import { Box } from '../Box';
|
|
@@ -22,7 +21,9 @@ import { formatToSchema, schemaToMask, valuesAreEqual, valueToText, textToValue,
|
|
|
22
21
|
import { DateInputPropTypes } from './propTypes';
|
|
23
22
|
import { getOutputFormat } from '../Calendar/Calendar';
|
|
24
23
|
import { CopyButton } from '../TextInput/CopyButton';
|
|
25
|
-
|
|
24
|
+
import { useThemeValue } from '../../utils/useThemeValue';
|
|
25
|
+
import { withTheme } from '../../default-props';
|
|
26
|
+
var StyledDateInputContainer = styled(Box).attrs(withTheme).withConfig({
|
|
26
27
|
displayName: "DateInput__StyledDateInputContainer",
|
|
27
28
|
componentId: "sc-1jfta23-0"
|
|
28
29
|
})(["", "};"], function (props) {
|
|
@@ -65,7 +66,7 @@ var DateInput = /*#__PURE__*/forwardRef(function (_ref, refArg) {
|
|
|
65
66
|
valueArg = _ref.value,
|
|
66
67
|
messages = _ref.messages,
|
|
67
68
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
68
|
-
var theme =
|
|
69
|
+
var theme = useThemeValue();
|
|
69
70
|
var announce = useContext(AnnounceContext);
|
|
70
71
|
var _useContext = useContext(MessageContext),
|
|
71
72
|
formatMessage = _useContext.format;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _construct(t, e, r) { if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; }
|
|
2
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
2
3
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
3
|
-
function
|
|
4
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
5
5
|
import { setHoursWithOffset } from '../../utils';
|
|
6
6
|
import { handleOffset } from '../Calendar/utils';
|
|
7
7
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
var _excluded = ["connections"],
|
|
2
2
|
_excluded2 = ["anchor", "animation", "color", "offset", "round", "thickness", "type"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
5
|
-
import React, { forwardRef, useCallback,
|
|
6
|
-
import { ThemeContext } from 'styled-components';
|
|
7
|
-
import { defaultProps } from '../../default-props';
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
5
|
+
import React, { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
|
|
8
6
|
import { normalizeColor, parseMetricToNum, useForwardedRef } from '../../utils';
|
|
9
7
|
import { StyledDiagram } from './StyledDiagram';
|
|
10
8
|
import { DiagramPropTypes } from './propTypes';
|
|
9
|
+
import { useThemeValue } from '../../utils/useThemeValue';
|
|
11
10
|
var computeMidPoint = function computeMidPoint(fromPoint, toPoint) {
|
|
12
11
|
return [fromPoint[0] > toPoint[0] ? toPoint[0] + (fromPoint[0] - toPoint[0]) / 2 : fromPoint[0] + (toPoint[0] - fromPoint[0]) / 2, fromPoint[1] > toPoint[1] ? toPoint[1] + (fromPoint[1] - toPoint[1]) / 2 : fromPoint[1] + (toPoint[1] - fromPoint[1]) / 2];
|
|
13
12
|
};
|
|
@@ -44,10 +43,12 @@ var findTarget = function findTarget(target) {
|
|
|
44
43
|
}
|
|
45
44
|
return target;
|
|
46
45
|
};
|
|
46
|
+
var defaultConnections = [];
|
|
47
47
|
var Diagram = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
48
|
-
var connections = _ref.connections,
|
|
48
|
+
var _ref$connections = _ref.connections,
|
|
49
|
+
connections = _ref$connections === void 0 ? defaultConnections : _ref$connections,
|
|
49
50
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
50
|
-
var theme =
|
|
51
|
+
var theme = useThemeValue();
|
|
51
52
|
var _useState = useState({
|
|
52
53
|
width: 0,
|
|
53
54
|
height: 0
|
|
@@ -201,8 +202,5 @@ var Diagram = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
201
202
|
}, rest), /*#__PURE__*/React.createElement("g", null, paths));
|
|
202
203
|
});
|
|
203
204
|
Diagram.displayName = 'Diagram';
|
|
204
|
-
Diagram.defaultProps = {
|
|
205
|
-
connections: []
|
|
206
|
-
};
|
|
207
205
|
Diagram.propTypes = DiagramPropTypes;
|
|
208
206
|
export { Diagram };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
|
-
import { defaultProps } from '../../default-props';
|
|
3
2
|
import { animationObjectStyle } from '../../utils/animation';
|
|
4
3
|
import { styledComponentsConfig } from '../../utils/styles';
|
|
4
|
+
import { withTheme } from '../../default-props';
|
|
5
5
|
var animationItemStyle = function animationItemStyle(animationType, theme) {
|
|
6
6
|
if (typeof animationType === 'string') {
|
|
7
7
|
return animationObjectStyle({
|
|
@@ -38,7 +38,7 @@ var connectionStyle = function connectionStyle(connection, index, theme) {
|
|
|
38
38
|
return css(["path:nth-child(", "){stroke-dasharray:", ";stroke-dashoffset:", ";animation:", ";}"], index + 1, animationType === 'draw' || animationType === true ? 500 : 0, animationType === 'draw' || animationType === true ? 500 : 0, animationItemStyle(connection.props.animation, theme));
|
|
39
39
|
};
|
|
40
40
|
var availableAnimations = [true, 'draw', 'pulse'];
|
|
41
|
-
var StyledDiagram = styled.svg.withConfig(styledComponentsConfig).withConfig({
|
|
41
|
+
var StyledDiagram = styled.svg.withConfig(styledComponentsConfig).attrs(withTheme).withConfig({
|
|
42
42
|
displayName: "StyledDiagram",
|
|
43
43
|
componentId: "sc-1vzeu9f-0"
|
|
44
44
|
})(["max-width:100%;width:100%;height:100%;", " ", " ", ""], function (props) {
|
|
@@ -61,6 +61,4 @@ var StyledDiagram = styled.svg.withConfig(styledComponentsConfig).withConfig({
|
|
|
61
61
|
}, function (props) {
|
|
62
62
|
return props.theme.diagram && props.theme.diagram.extend;
|
|
63
63
|
});
|
|
64
|
-
StyledDiagram.defaultProps = {};
|
|
65
|
-
Object.setPrototypeOf(StyledDiagram.defaultProps, defaultProps);
|
|
66
64
|
export { StyledDiagram };
|
|
@@ -21,7 +21,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
21
21
|
thickness: PropTypes.oneOfType([PropTypes.oneOf(['hair', 'xxsmall', 'xsmall', 'small', 'medium', 'large']), PropTypes.string]),
|
|
22
22
|
toTarget: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
|
|
23
23
|
type: PropTypes.oneOf(['direct', 'curved', 'rectilinear'])
|
|
24
|
-
}))
|
|
24
|
+
}))
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
export var DiagramPropTypes = PropType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
function _objectDestructuringEmpty(
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
import React, { useReducer, useEffect } from 'react';
|
|
4
4
|
import { Box, Diagram, Stack, Text } from 'grommet';
|
|
5
5
|
import { Diamond } from "grommet-icons/es6/icons/Diamond";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["id"],
|
|
2
2
|
_excluded2 = ["color"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
import React, { useReducer, useEffect } from 'react';
|
|
6
6
|
import { Box, Diagram, Stack, Paragraph } from 'grommet';
|
|
7
7
|
var Node = function Node(_ref) {
|