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,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 VERTICAL_ALIGN_OPTIONS = ['top', 'bottom'];
|
|
@@ -22,7 +22,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
22
22
|
dropProps: PropTypes.object,
|
|
23
23
|
justifyContent: PropTypes.oneOf(['start', 'center', 'end', 'between', 'around', 'stretch']),
|
|
24
24
|
icon: PropTypes.oneOfType([PropTypes.bool, PropTypes.node]),
|
|
25
|
-
items: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.object))])
|
|
25
|
+
items: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.object))]),
|
|
26
26
|
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
27
27
|
messages: PropTypes.shape({
|
|
28
28
|
closeMenu: PropTypes.string,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var _excluded = ["background", "max", "round", "size", "thickness", "direction", "values", "reverse"],
|
|
2
2
|
_excluded2 = ["color", "highlight", "label", "onHover", "value"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
5
|
-
import React, { forwardRef
|
|
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 } from 'react';
|
|
8
6
|
import { parseMetricToNum } from '../../utils';
|
|
9
7
|
import { StyledMeter } from './StyledMeter';
|
|
10
8
|
import { strokeProps, defaultColor } from './utils';
|
|
9
|
+
import { useThemeValue } from '../../utils/useThemeValue';
|
|
11
10
|
var Bar = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
12
|
-
var background = props.background,
|
|
11
|
+
var _props$background = props.background,
|
|
12
|
+
background = _props$background === void 0 ? 'light-1' : _props$background,
|
|
13
13
|
max = props.max,
|
|
14
14
|
round = props.round,
|
|
15
15
|
size = props.size,
|
|
@@ -18,7 +18,7 @@ var Bar = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
18
18
|
values = props.values,
|
|
19
19
|
reverse = props.reverse,
|
|
20
20
|
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
21
|
-
var theme =
|
|
21
|
+
var theme = useThemeValue();
|
|
22
22
|
var length = size === 'full' ? 288 : parseMetricToNum(theme.global.size[size] || size);
|
|
23
23
|
var thickness = parseMetricToNum(theme.global.edgeSize[thicknessProp] || thicknessProp);
|
|
24
24
|
// account for the round cap, if any
|
|
@@ -96,8 +96,4 @@ var Bar = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
96
96
|
})), paths);
|
|
97
97
|
});
|
|
98
98
|
Bar.displayName = 'Bar';
|
|
99
|
-
Bar.defaultProps = {
|
|
100
|
-
background: 'light-1'
|
|
101
|
-
};
|
|
102
|
-
Object.setPrototypeOf(Bar.defaultProps, defaultProps);
|
|
103
99
|
export { Bar };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
var _excluded = ["background", "max", "round", "size", "thickness", "type", "values"],
|
|
2
2
|
_excluded2 = ["color", "highlight", "label", "onHover", "value"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
5
|
-
import React, { forwardRef
|
|
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 } from 'react';
|
|
8
6
|
import { arcCommands, parseMetricToNum, translateEndAngle } from '../../utils';
|
|
9
7
|
import { StyledMeter } from './StyledMeter';
|
|
10
8
|
import { strokeProps, defaultColor } from './utils';
|
|
9
|
+
import { useThemeValue } from '../../utils/useThemeValue';
|
|
11
10
|
var Circle = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
12
11
|
var background = props.background,
|
|
13
12
|
max = props.max,
|
|
@@ -17,7 +16,7 @@ var Circle = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
17
16
|
type = props.type,
|
|
18
17
|
values = props.values,
|
|
19
18
|
rest = _objectWithoutPropertiesLoose(props, _excluded);
|
|
20
|
-
var theme =
|
|
19
|
+
var theme = useThemeValue();
|
|
21
20
|
var width = size === 'full' ? 288 : parseMetricToNum(theme.global.size[size] || size);
|
|
22
21
|
var strokeWidth = type === 'pie' ? width / 2 : parseMetricToNum(theme.global.edgeSize[thickness] || thickness);
|
|
23
22
|
var centerX = width / 2;
|
|
@@ -139,6 +138,4 @@ var Circle = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
139
138
|
}, rest), track, paths, pathCaps);
|
|
140
139
|
});
|
|
141
140
|
Circle.displayName = 'Circle';
|
|
142
|
-
Circle.defaultProps = {};
|
|
143
|
-
Object.setPrototypeOf(Circle.defaultProps, defaultProps);
|
|
144
141
|
export { Circle };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
var _excluded = ["background", "color", "direction", "size", "thickness", "type", "reverse", "value", "values"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
4
|
-
import React, { forwardRef, useMemo
|
|
5
|
-
import { ThemeContext } from 'styled-components';
|
|
6
|
-
import { defaultProps } from '../../default-props';
|
|
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
|
+
import React, { forwardRef, useMemo } from 'react';
|
|
7
5
|
import { Bar } from './Bar';
|
|
8
6
|
import { Circle } from './Circle';
|
|
9
7
|
import { MeterPropTypes } from './propTypes';
|
|
8
|
+
import { useThemeValue } from '../../utils/useThemeValue';
|
|
10
9
|
var deriveMax = function deriveMax(values) {
|
|
11
10
|
var max = 100;
|
|
12
11
|
if (values && values.length > 1) {
|
|
@@ -36,7 +35,7 @@ var Meter = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
36
35
|
value = _ref.value,
|
|
37
36
|
valuesProp = _ref.values,
|
|
38
37
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
39
|
-
var theme =
|
|
38
|
+
var theme = useThemeValue();
|
|
40
39
|
|
|
41
40
|
// normalize values to an array of objects
|
|
42
41
|
var values = useMemo(function () {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { genericStyles, styledComponentsConfig } from '../../utils';
|
|
3
|
-
import {
|
|
3
|
+
import { withTheme } from '../../default-props';
|
|
4
4
|
var roundStyle = css(["border-radius:", ";"], function (props) {
|
|
5
5
|
return props.theme.global.edgeSize[props.round.size];
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
// overflow: hidden is needed for ie11
|
|
9
|
-
var StyledMeter = styled.svg.withConfig(styledComponentsConfig).withConfig({
|
|
9
|
+
var StyledMeter = styled.svg.withConfig(styledComponentsConfig).attrs(withTheme).withConfig({
|
|
10
10
|
displayName: "StyledMeter",
|
|
11
11
|
componentId: "sc-nsxarx-0"
|
|
12
12
|
})(["max-width:100%;overflow:hidden;", " ", " ", " path{transition:stroke 0.3s,stroke-width 0.3s;}", ";"], function (props) {
|
|
@@ -16,6 +16,4 @@ var StyledMeter = styled.svg.withConfig(styledComponentsConfig).withConfig({
|
|
|
16
16
|
}, function (props) {
|
|
17
17
|
return props.theme.meter && props.theme.meter.extend;
|
|
18
18
|
});
|
|
19
|
-
StyledMeter.defaultProps = {};
|
|
20
|
-
Object.setPrototypeOf(StyledMeter.defaultProps, defaultProps);
|
|
21
19
|
export { StyledMeter };
|
|
@@ -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 PropType = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var _excluded = ["align", "layout", "nameProps", "pairProps", "valueProps"];
|
|
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, { forwardRef, useContext, useMemo } from 'react';
|
|
5
|
-
import { ThemeContext } from 'styled-components';
|
|
6
5
|
import { Grid } from '../Grid';
|
|
7
6
|
import { ResponsiveContext } from '../../contexts/ResponsiveContext';
|
|
8
7
|
import { NameValueListContext } from './NameValueListContext';
|
|
9
8
|
import { isSmall } from '../../utils/responsive';
|
|
9
|
+
import { useThemeValue } from '../../utils/useThemeValue';
|
|
10
10
|
var NameValueList = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
11
11
|
var _theme$nameValueList$;
|
|
12
12
|
var align = _ref.align,
|
|
@@ -20,7 +20,7 @@ var NameValueList = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20
20
|
valueProps = _ref.valueProps,
|
|
21
21
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
22
22
|
var size = useContext(ResponsiveContext);
|
|
23
|
-
var theme =
|
|
23
|
+
var theme = useThemeValue();
|
|
24
24
|
|
|
25
25
|
// If layout is grid, valueWidth sets the max width of the column.
|
|
26
26
|
// Grid will 'fit' as many columns of valueWidth per row as container's
|
|
@@ -1,11 +1,11 @@
|
|
|
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, { Fragment, useContext } from 'react';
|
|
3
|
-
import { ThemeContext } from 'styled-components';
|
|
4
3
|
import { Box } from '../Box';
|
|
5
4
|
import { Text } from '../Text';
|
|
6
5
|
import { ResponsiveContext } from '../../contexts/ResponsiveContext';
|
|
7
6
|
import { NameValueListContext } from '../NameValueList/NameValueListContext';
|
|
8
7
|
import { isSmall } from '../../utils/responsive';
|
|
8
|
+
import { useThemeValue } from '../../utils/useThemeValue';
|
|
9
9
|
var NameValuePair = function NameValuePair(_ref) {
|
|
10
10
|
var _theme$nameValuePair;
|
|
11
11
|
var children = _ref.children,
|
|
@@ -15,7 +15,7 @@ var NameValuePair = function NameValuePair(_ref) {
|
|
|
15
15
|
pairProps = _useContext.pairProps,
|
|
16
16
|
valueProps = _useContext.valueProps;
|
|
17
17
|
var size = useContext(ResponsiveContext);
|
|
18
|
-
var theme =
|
|
18
|
+
var theme = useThemeValue();
|
|
19
19
|
var direction = pairProps == null ? void 0 : pairProps.direction;
|
|
20
20
|
var column = direction === 'column' || direction === 'column-reverse' || isSmall(size);
|
|
21
21
|
var Container = column ? Box : Fragment;
|
|
@@ -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 from 'react';
|
|
4
4
|
import { Box } from '../Box';
|
|
5
5
|
var Nav = function Nav(_ref) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["label"];
|
|
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, { useState } from 'react';
|
|
5
5
|
import { Box, Button, Grommet, Nav } from 'grommet';
|
|
6
6
|
import { Dashboard } from "grommet-icons/es6/icons/Dashboard";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["label"];
|
|
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, { useState } from 'react';
|
|
5
5
|
import { Box, Button, Nav, Text } from 'grommet';
|
|
6
6
|
var SidebarButton = function SidebarButton(_ref) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
var _excluded = ["actions", "message", "onClose", "id", "global", "status", "title", "toast", "icon", "time"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
4
|
-
import React, { useCallback,
|
|
5
|
-
import styled
|
|
6
|
-
import { defaultProps } from '../../default-props';
|
|
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
|
+
import React, { useCallback, useEffect, useState, useMemo, Fragment } from 'react';
|
|
5
|
+
import styled from 'styled-components';
|
|
7
6
|
import { Anchor } from '../Anchor';
|
|
8
7
|
import { Box } from '../Box';
|
|
9
8
|
import { Button } from '../Button';
|
|
@@ -11,6 +10,7 @@ import { Layer } from '../Layer';
|
|
|
11
10
|
import { Paragraph } from '../Paragraph';
|
|
12
11
|
import { Text } from '../Text';
|
|
13
12
|
import { NotificationType } from './propTypes';
|
|
13
|
+
import { useThemeValue } from '../../utils/useThemeValue';
|
|
14
14
|
var adaptThemeStyle = function adaptThemeStyle(value, theme) {
|
|
15
15
|
var textStyle = value;
|
|
16
16
|
var closeButtonStyle = value;
|
|
@@ -56,14 +56,16 @@ var Notification = function Notification(_ref) {
|
|
|
56
56
|
onClose = _ref.onClose,
|
|
57
57
|
id = _ref.id,
|
|
58
58
|
global = _ref.global,
|
|
59
|
-
status = _ref.status,
|
|
59
|
+
_ref$status = _ref.status,
|
|
60
|
+
status = _ref$status === void 0 ? 'unknown' : _ref$status,
|
|
60
61
|
title = _ref.title,
|
|
61
|
-
toast = _ref.toast,
|
|
62
|
+
_ref$toast = _ref.toast,
|
|
63
|
+
toast = _ref$toast === void 0 ? false : _ref$toast,
|
|
62
64
|
icon = _ref.icon,
|
|
63
65
|
time = _ref.time,
|
|
64
66
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
65
67
|
var autoClose = toast && (toast == null ? void 0 : toast.autoClose) === undefined ? true : toast.autoClose;
|
|
66
|
-
var theme =
|
|
68
|
+
var theme = useThemeValue();
|
|
67
69
|
var _useState = useState(true),
|
|
68
70
|
visible = _useState[0],
|
|
69
71
|
setVisible = _useState[1];
|
|
@@ -178,11 +180,6 @@ var Notification = function Notification(_ref) {
|
|
|
178
180
|
}
|
|
179
181
|
return content;
|
|
180
182
|
};
|
|
181
|
-
Notification.defaultProps = {
|
|
182
|
-
status: 'unknown',
|
|
183
|
-
toast: false
|
|
184
|
-
};
|
|
185
|
-
Object.setPrototypeOf(Notification.defaultProps, defaultProps);
|
|
186
183
|
Notification.displayName = 'Notification';
|
|
187
184
|
Notification.propTypes = NotificationType;
|
|
188
185
|
export { Notification };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
var _excluded = ["kind"];
|
|
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, useMemo } from 'react';
|
|
5
|
-
import { ThemeContext } from 'styled-components';
|
|
6
5
|
import { Box } from '../Box';
|
|
7
6
|
import { PageContext } from './PageContext';
|
|
8
7
|
import { ResponsiveContext } from '../../contexts/ResponsiveContext';
|
|
9
8
|
import { PagePropTypes } from './propTypes';
|
|
9
|
+
import { useThemeValue } from '../../utils/useThemeValue';
|
|
10
10
|
var Page = function Page(_ref) {
|
|
11
|
-
var kind = _ref.kind,
|
|
11
|
+
var _ref$kind = _ref.kind,
|
|
12
|
+
kind = _ref$kind === void 0 ? 'wide' : _ref$kind,
|
|
12
13
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
13
14
|
var size = useContext(ResponsiveContext);
|
|
14
|
-
var theme =
|
|
15
|
+
var theme = useThemeValue();
|
|
15
16
|
var contentValue = useMemo(function () {
|
|
16
17
|
var _theme$page$kind, _theme$page$kind2;
|
|
17
18
|
return _extends({
|
|
@@ -27,7 +28,4 @@ var Page = function Page(_ref) {
|
|
|
27
28
|
};
|
|
28
29
|
Page.displayName = 'Page';
|
|
29
30
|
Page.propTypes = PagePropTypes;
|
|
30
|
-
Page.defaultProps = {
|
|
31
|
-
kind: 'wide'
|
|
32
|
-
};
|
|
33
31
|
export { Page };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _excluded = ["children", "background"];
|
|
2
|
-
function _objectDestructuringEmpty(
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
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, { useContext } from 'react';
|
|
6
6
|
import { Box } from '../Box';
|
|
7
7
|
import { PageContext } from '../Page';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var _excluded = ["actions", "gridProps", "parent", "responsive", "size", "subtitle", "title", "level"];
|
|
2
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
2
|
+
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; }
|
|
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
4
|
import React, { forwardRef, useContext } from 'react';
|
|
5
|
-
import { ThemeContext } from 'styled-components';
|
|
6
5
|
import { Box } from '../Box';
|
|
7
6
|
import { Header } from '../Header';
|
|
8
7
|
import { Heading } from '../Heading';
|
|
9
8
|
import { Grid } from '../Grid';
|
|
10
9
|
import { Paragraph } from '../Paragraph';
|
|
11
10
|
import { ResponsiveContext } from '../../contexts/ResponsiveContext';
|
|
11
|
+
import { useThemeValue } from '../../utils/useThemeValue';
|
|
12
12
|
var sizeStyle = function sizeStyle(size, feature, theme, breakpoint) {
|
|
13
13
|
var _ref, _theme$pageHeader$siz, _theme$global$breakpo, _theme$global$breakpo2;
|
|
14
14
|
var style = _extends({}, theme.pageHeader[feature], (_ref = size && ((_theme$pageHeader$siz = theme.pageHeader.size[size]) == null ? void 0 : _theme$pageHeader$siz[feature])) != null ? _ref : theme.pageHeader[feature], (!size || size === 'medium') && feature === 'subtitle' && ((_theme$global$breakpo = theme.global.breakpoints[breakpoint]) == null ? void 0 : _theme$global$breakpo.value) <= ((_theme$global$breakpo2 = theme.global.breakpoints.small) == null ? void 0 : _theme$global$breakpo2.value) && {
|
|
@@ -26,7 +26,7 @@ var PageHeader = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
26
26
|
title = _ref2.title,
|
|
27
27
|
level = _ref2.level,
|
|
28
28
|
rest = _objectWithoutPropertiesLoose(_ref2, _excluded);
|
|
29
|
-
var theme =
|
|
29
|
+
var theme = useThemeValue();
|
|
30
30
|
var breakpoint = useContext(ResponsiveContext);
|
|
31
31
|
var actionsProps = _extends({}, theme.pageHeader.actions);
|
|
32
32
|
var gridProps = theme.pageHeader[breakpoint] || theme.pageHeader.medium;
|
|
@@ -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
|
import { GridPropTypes } from '../Grid/propTypes';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var _excluded = ["control", "separator", "size"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
4
|
-
import React
|
|
5
|
-
import { ThemeContext } from 'styled-components';
|
|
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
|
+
import React from 'react';
|
|
6
5
|
import { StyledContainer, StyledPaginationButton, StyledSeparator } from './StyledPageControl';
|
|
6
|
+
import { useThemeValue } from '../../utils/useThemeValue';
|
|
7
7
|
export var PageControl = function PageControl(_ref) {
|
|
8
8
|
var control = _ref.control,
|
|
9
9
|
separator = _ref.separator,
|
|
10
10
|
sizeProp = _ref.size,
|
|
11
11
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
12
|
-
var theme =
|
|
12
|
+
var theme = useThemeValue();
|
|
13
13
|
var size = sizeProp || 'medium';
|
|
14
14
|
return /*#__PURE__*/React.createElement(StyledContainer, {
|
|
15
15
|
as: "li",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
var _excluded = ["a11yTitle", "aria-label", "numberItems", "numberEdgePages", "numberMiddlePages", "onChange", "messages", "page", "size", "step", "stepOptions", "summary"];
|
|
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, { forwardRef, useContext, useEffect, useState } from 'react';
|
|
5
|
-
import styled
|
|
6
|
-
import { defaultProps } from '../../default-props';
|
|
5
|
+
import styled from 'styled-components';
|
|
7
6
|
import { DataContext } from '../../contexts/DataContext';
|
|
8
7
|
import { Box } from '../Box';
|
|
9
8
|
import { Nav } from '../Nav';
|
|
@@ -11,7 +10,9 @@ import { PageControl } from './PageControl';
|
|
|
11
10
|
import { PaginationStep } from './PaginationStep';
|
|
12
11
|
import { PaginationSummary } from './PaginationSummary';
|
|
13
12
|
import { PaginationPropTypes } from './propTypes';
|
|
14
|
-
|
|
13
|
+
import { useThemeValue } from '../../utils/useThemeValue';
|
|
14
|
+
import { withTheme } from '../../default-props';
|
|
15
|
+
var StyledPaginationContainer = styled(Box).attrs(withTheme).withConfig({
|
|
15
16
|
displayName: "Pagination__StyledPaginationContainer",
|
|
16
17
|
componentId: "sc-rnlw6m-0"
|
|
17
18
|
})(["", ""], function (props) {
|
|
@@ -41,7 +42,7 @@ var Pagination = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
41
42
|
stepOptions = _ref.stepOptions,
|
|
42
43
|
summary = _ref.summary,
|
|
43
44
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
44
|
-
var theme =
|
|
45
|
+
var theme = useThemeValue();
|
|
45
46
|
var _useContext = useContext(DataContext),
|
|
46
47
|
onView = _useContext.onView,
|
|
47
48
|
filteredTotal = _useContext.filteredTotal,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var _excluded = ["messages", "onChange", "options", "step"];
|
|
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 } from 'react';
|
|
5
|
-
import { ThemeContext } from 'styled-components';
|
|
6
5
|
import { Box } from '../Box';
|
|
7
6
|
import { Select } from '../Select';
|
|
8
7
|
import { Text } from '../Text';
|
|
9
8
|
import { MessageContext } from '../../contexts/MessageContext';
|
|
9
|
+
import { useThemeValue } from '../../utils/useThemeValue';
|
|
10
10
|
export var PaginationStep = function PaginationStep(_ref) {
|
|
11
11
|
var messages = _ref.messages,
|
|
12
12
|
onChange = _ref.onChange,
|
|
@@ -16,7 +16,7 @@ export var PaginationStep = function PaginationStep(_ref) {
|
|
|
16
16
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
17
17
|
var _useContext = useContext(MessageContext),
|
|
18
18
|
formatMessage = _useContext.format;
|
|
19
|
-
var theme =
|
|
19
|
+
var theme = useThemeValue();
|
|
20
20
|
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
21
21
|
direction: "row",
|
|
22
22
|
align: "center",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _excluded = ["messages", "numberItems", "page", "step"];
|
|
2
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
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; }
|
|
3
3
|
import React, { useContext } from 'react';
|
|
4
4
|
import { Box } from '../Box';
|
|
5
5
|
import { Text } from '../Text';
|
|
@@ -2,6 +2,7 @@ import styled from 'styled-components';
|
|
|
2
2
|
import { styledComponentsConfig } from '../../utils/styles';
|
|
3
3
|
import { Button } from '../Button';
|
|
4
4
|
import { Text } from '../Text';
|
|
5
|
+
import { withTheme } from '../../default-props';
|
|
5
6
|
var sizeStyle = function sizeStyle(props) {
|
|
6
7
|
var style = props.theme.pagination.button && props.theme.pagination.button.size && props.theme.pagination.button.size[props.size || 'medium'];
|
|
7
8
|
return style ? {
|
|
@@ -17,13 +18,13 @@ var sizeStyle = function sizeStyle(props) {
|
|
|
17
18
|
}
|
|
18
19
|
} : '';
|
|
19
20
|
};
|
|
20
|
-
export var StyledPaginationButton = styled(Button).withConfig({
|
|
21
|
+
export var StyledPaginationButton = styled(Button).attrs(withTheme).withConfig({
|
|
21
22
|
displayName: "StyledPageControl__StyledPaginationButton",
|
|
22
23
|
componentId: "sc-1vlfaez-0"
|
|
23
24
|
})(["> svg{margin:0 auto;}", ";"], function (props) {
|
|
24
25
|
return sizeStyle(props).content;
|
|
25
26
|
});
|
|
26
|
-
export var StyledContainer = styled.div.withConfig(styledComponentsConfig).withConfig({
|
|
27
|
+
export var StyledContainer = styled.div.withConfig(styledComponentsConfig).attrs(withTheme).withConfig({
|
|
27
28
|
displayName: "StyledPageControl__StyledContainer",
|
|
28
29
|
componentId: "sc-1vlfaez-1"
|
|
29
30
|
})(["display:flex;align-items:center;justify-content:center;max-width:100%;", ";", ";"], function (props) {
|
|
@@ -31,7 +32,7 @@ export var StyledContainer = styled.div.withConfig(styledComponentsConfig).withC
|
|
|
31
32
|
}, function (props) {
|
|
32
33
|
return props.theme.pagination.control && props.theme.pagination.control.extend;
|
|
33
34
|
});
|
|
34
|
-
export var StyledSeparator = styled(Text).withConfig({
|
|
35
|
+
export var StyledSeparator = styled(Text).attrs(withTheme).withConfig({
|
|
35
36
|
displayName: "StyledPageControl__StyledSeparator",
|
|
36
37
|
componentId: "sc-1vlfaez-2"
|
|
37
38
|
})(["font-weight:bold;", ";", ";"], function (props) {
|
|
@@ -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 PropType = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "color", "fill", "size"];
|
|
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, { forwardRef, useMemo } from 'react';
|
|
5
5
|
import { StyledParagraph } from './StyledParagraph';
|
|
6
6
|
import { ParagraphPropTypes } from './propTypes';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import React, { forwardRef
|
|
2
|
-
import { ThemeContext } from 'styled-components';
|
|
3
|
-
import { defaultProps } from '../../default-props';
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
4
2
|
import { Skeleton } from '../Skeleton';
|
|
5
3
|
import { Box } from '../Box';
|
|
4
|
+
import { useThemeValue } from '../../utils/useThemeValue';
|
|
6
5
|
var ParagraphSkeleton = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7
6
|
var fill = _ref.fill,
|
|
8
7
|
sizeProp = _ref.size;
|
|
9
|
-
var theme =
|
|
8
|
+
var theme = useThemeValue();
|
|
10
9
|
var size = sizeProp || 'medium';
|
|
11
10
|
var data = theme.paragraph[size];
|
|
12
11
|
var height = data ? data.size : size;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { genericStyles, normalizeColor, textAlignStyle, styledComponentsConfig } from '../../utils';
|
|
3
|
-
import {
|
|
3
|
+
import { withTheme } from '../../default-props';
|
|
4
4
|
var colorStyle = css(["color:", ";"], function (props) {
|
|
5
5
|
return normalizeColor(props.colorProp, props.theme);
|
|
6
6
|
});
|
|
@@ -15,7 +15,7 @@ var fontFamily = css(["font-family:", ";"], function (props) {
|
|
|
15
15
|
var maxlinesStyle = function maxlinesStyle(props) {
|
|
16
16
|
return props.maxLines && css(["display:-webkit-box;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], props.maxLines);
|
|
17
17
|
};
|
|
18
|
-
var StyledParagraph = styled.p.withConfig(styledComponentsConfig).withConfig({
|
|
18
|
+
var StyledParagraph = styled.p.withConfig(styledComponentsConfig).attrs(withTheme).withConfig({
|
|
19
19
|
displayName: "StyledParagraph",
|
|
20
20
|
componentId: "sc-tbetod-0"
|
|
21
21
|
})(["", " ", " ", " ", " ", " ", " ", ""], genericStyles, function (props) {
|
|
@@ -31,6 +31,4 @@ var StyledParagraph = styled.p.withConfig(styledComponentsConfig).withConfig({
|
|
|
31
31
|
}, function (props) {
|
|
32
32
|
return props.theme.paragraph && props.theme.paragraph.extend;
|
|
33
33
|
});
|
|
34
|
-
StyledParagraph.defaultProps = {};
|
|
35
|
-
Object.setPrototypeOf(StyledParagraph.defaultProps, defaultProps);
|
|
36
34
|
export { StyledParagraph };
|
|
@@ -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 { colorPropType, genericProps } from '../../utils/general-prop-types';
|
|
4
4
|
var PropType = {};
|