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
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.GlobalHeaderFooter = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var GlobalHeaderFooter = exports.GlobalHeaderFooter = function GlobalHeaderFooter() {
|
|
9
9
|
return (
|
|
10
10
|
/*#__PURE__*/
|
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.MultipleBackgrounds = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var MultipleBackgrounds = exports.MultipleBackgrounds = function MultipleBackgrounds() {
|
|
9
9
|
return (
|
|
10
10
|
/*#__PURE__*/
|
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.MultipleContent = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var MultipleContent = exports.MultipleContent = function MultipleContent() {
|
|
9
9
|
return (
|
|
10
10
|
/*#__PURE__*/
|
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.Simple = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var Simple = exports.Simple = function Simple() {
|
|
9
9
|
return (
|
|
10
10
|
/*#__PURE__*/
|
|
@@ -9,9 +9,9 @@ var _propTypes = require("./propTypes");
|
|
|
9
9
|
var _excluded = ["children", "background"];
|
|
10
10
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
11
11
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
12
|
-
function _objectDestructuringEmpty(
|
|
13
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
14
|
-
function _objectWithoutPropertiesLoose(
|
|
12
|
+
function _objectDestructuringEmpty(t) { if (null == t) throw new TypeError("Cannot destructure " + t); }
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
15
15
|
var PageContent = exports.PageContent = function PageContent(_ref) {
|
|
16
16
|
var children = _ref.children,
|
|
17
17
|
background = _ref.background,
|
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports.PageContentPropTypes = void 0;
|
|
5
5
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
6
6
|
var _generalPropTypes = require("../../utils/general-prop-types");
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var PropType = {};
|
|
9
9
|
if (process.env.NODE_ENV !== 'production') {
|
|
10
10
|
PropType = {
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.PageHeader = void 0;
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
-
var _styledComponents = require("styled-components");
|
|
7
6
|
var _Box = require("../Box");
|
|
8
7
|
var _Header = require("../Header");
|
|
9
8
|
var _Heading = require("../Heading");
|
|
10
9
|
var _Grid = require("../Grid");
|
|
11
10
|
var _Paragraph = require("../Paragraph");
|
|
12
11
|
var _ResponsiveContext = require("../../contexts/ResponsiveContext");
|
|
12
|
+
var _useThemeValue = require("../../utils/useThemeValue");
|
|
13
13
|
var _excluded = ["actions", "gridProps", "parent", "responsive", "size", "subtitle", "title", "level"];
|
|
14
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
15
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
16
|
-
function _objectWithoutPropertiesLoose(
|
|
17
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
16
|
+
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; }
|
|
17
|
+
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); }
|
|
18
18
|
var sizeStyle = function sizeStyle(size, feature, theme, breakpoint) {
|
|
19
19
|
var _ref, _theme$pageHeader$siz, _theme$global$breakpo, _theme$global$breakpo2;
|
|
20
20
|
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) && {
|
|
@@ -32,7 +32,7 @@ var PageHeader = exports.PageHeader = /*#__PURE__*/(0, _react.forwardRef)(functi
|
|
|
32
32
|
title = _ref2.title,
|
|
33
33
|
level = _ref2.level,
|
|
34
34
|
rest = _objectWithoutPropertiesLoose(_ref2, _excluded);
|
|
35
|
-
var theme = (0,
|
|
35
|
+
var theme = (0, _useThemeValue.useThemeValue)();
|
|
36
36
|
var breakpoint = (0, _react.useContext)(_ResponsiveContext.ResponsiveContext);
|
|
37
37
|
var actionsProps = _extends({}, theme.pageHeader.actions);
|
|
38
38
|
var gridProps = theme.pageHeader[breakpoint] || theme.pageHeader.medium;
|
|
@@ -5,8 +5,8 @@ exports.PageHeaderPropTypes = void 0;
|
|
|
5
5
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
6
6
|
var _generalPropTypes = require("../../utils/general-prop-types");
|
|
7
7
|
var _propTypes2 = require("../Grid/propTypes");
|
|
8
|
-
function _interopRequireDefault(
|
|
9
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
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); }
|
|
10
10
|
var PropType = {};
|
|
11
11
|
if (process.env.NODE_ENV !== 'production') {
|
|
12
12
|
PropType = _extends({}, _generalPropTypes.genericProps, {
|
|
@@ -6,7 +6,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
7
|
var _utils = require("grommet/utils");
|
|
8
8
|
var _grommetIcons = require("grommet-icons");
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
10
|
var customTheme = (0, _utils.deepMerge)(_grommet.grommet, {
|
|
11
11
|
pageHeader: {
|
|
12
12
|
medium: {
|
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.Level = void 0;
|
|
5
5
|
var _grommet = require("grommet");
|
|
6
6
|
var _react = _interopRequireDefault(require("react"));
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var Level = exports.Level = function Level() {
|
|
9
9
|
return /*#__PURE__*/_react["default"].createElement(_grommet.Page, null, /*#__PURE__*/_react["default"].createElement(_grommet.PageContent, null, /*#__PURE__*/_react["default"].createElement(_grommet.PageHeader, {
|
|
10
10
|
title: "Welcome to Your App",
|
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.Responsive = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var Responsive = exports.Responsive = function Responsive() {
|
|
9
9
|
return (
|
|
10
10
|
/*#__PURE__*/
|
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.Simple = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var Simple = exports.Simple = function Simple() {
|
|
9
9
|
return (
|
|
10
10
|
/*#__PURE__*/
|
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.Size = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var Size = exports.Size = function Size() {
|
|
9
9
|
return (
|
|
10
10
|
/*#__PURE__*/
|
|
@@ -2,20 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.PageControl = void 0;
|
|
5
|
-
var _react =
|
|
6
|
-
var _styledComponents = require("styled-components");
|
|
5
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
6
|
var _StyledPageControl = require("./StyledPageControl");
|
|
7
|
+
var _useThemeValue = require("../../utils/useThemeValue");
|
|
8
8
|
var _excluded = ["control", "separator", "size"];
|
|
9
|
-
function
|
|
10
|
-
function
|
|
11
|
-
function
|
|
12
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
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); }
|
|
11
|
+
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; }
|
|
13
12
|
var PageControl = exports.PageControl = function PageControl(_ref) {
|
|
14
13
|
var control = _ref.control,
|
|
15
14
|
separator = _ref.separator,
|
|
16
15
|
sizeProp = _ref.size,
|
|
17
16
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
18
|
-
var theme = (0,
|
|
17
|
+
var theme = (0, _useThemeValue.useThemeValue)();
|
|
19
18
|
var size = sizeProp || 'medium';
|
|
20
19
|
return /*#__PURE__*/_react["default"].createElement(_StyledPageControl.StyledContainer, {
|
|
21
20
|
as: "li",
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.Pagination = void 0;
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
-
var _styledComponents =
|
|
7
|
-
var _defaultProps = require("../../default-props");
|
|
6
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
7
|
var _DataContext = require("../../contexts/DataContext");
|
|
9
8
|
var _Box = require("../Box");
|
|
10
9
|
var _Nav = require("../Nav");
|
|
@@ -12,12 +11,15 @@ var _PageControl = require("./PageControl");
|
|
|
12
11
|
var _PaginationStep = require("./PaginationStep");
|
|
13
12
|
var _PaginationSummary = require("./PaginationSummary");
|
|
14
13
|
var _propTypes = require("./propTypes");
|
|
14
|
+
var _useThemeValue = require("../../utils/useThemeValue");
|
|
15
|
+
var _defaultProps = require("../../default-props");
|
|
15
16
|
var _excluded = ["a11yTitle", "aria-label", "numberItems", "numberEdgePages", "numberMiddlePages", "onChange", "messages", "page", "size", "step", "stepOptions", "summary"];
|
|
17
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
18
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
19
|
-
function _objectWithoutPropertiesLoose(
|
|
20
|
-
var StyledPaginationContainer = (0, _styledComponents["default"])(_Box.Box).withConfig({
|
|
20
|
+
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); }
|
|
21
|
+
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; }
|
|
22
|
+
var StyledPaginationContainer = (0, _styledComponents["default"])(_Box.Box).attrs(_defaultProps.withTheme).withConfig({
|
|
21
23
|
displayName: "Pagination__StyledPaginationContainer",
|
|
22
24
|
componentId: "sc-rnlw6m-0"
|
|
23
25
|
})(["", ""], function (props) {
|
|
@@ -47,7 +49,7 @@ var Pagination = exports.Pagination = /*#__PURE__*/(0, _react.forwardRef)(functi
|
|
|
47
49
|
stepOptions = _ref.stepOptions,
|
|
48
50
|
summary = _ref.summary,
|
|
49
51
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
50
|
-
var theme = (0,
|
|
52
|
+
var theme = (0, _useThemeValue.useThemeValue)();
|
|
51
53
|
var _useContext = (0, _react.useContext)(_DataContext.DataContext),
|
|
52
54
|
onView = _useContext.onView,
|
|
53
55
|
filteredTotal = _useContext.filteredTotal,
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.PaginationStep = void 0;
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
-
var _styledComponents = require("styled-components");
|
|
7
6
|
var _Box = require("../Box");
|
|
8
7
|
var _Select = require("../Select");
|
|
9
8
|
var _Text = require("../Text");
|
|
10
9
|
var _MessageContext = require("../../contexts/MessageContext");
|
|
10
|
+
var _useThemeValue = require("../../utils/useThemeValue");
|
|
11
11
|
var _excluded = ["messages", "onChange", "options", "step"];
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
14
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
15
|
-
function _objectWithoutPropertiesLoose(
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
16
16
|
var PaginationStep = exports.PaginationStep = function PaginationStep(_ref) {
|
|
17
17
|
var messages = _ref.messages,
|
|
18
18
|
onChange = _ref.onChange,
|
|
@@ -22,7 +22,7 @@ var PaginationStep = exports.PaginationStep = function PaginationStep(_ref) {
|
|
|
22
22
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
23
23
|
var _useContext = (0, _react.useContext)(_MessageContext.MessageContext),
|
|
24
24
|
formatMessage = _useContext.format;
|
|
25
|
-
var theme = (0,
|
|
25
|
+
var theme = (0, _useThemeValue.useThemeValue)();
|
|
26
26
|
return /*#__PURE__*/_react["default"].createElement(_Box.Box, _extends({
|
|
27
27
|
direction: "row",
|
|
28
28
|
align: "center",
|
|
@@ -9,7 +9,7 @@ var _MessageContext = require("../../contexts/MessageContext");
|
|
|
9
9
|
var _excluded = ["messages", "numberItems", "page", "step"];
|
|
10
10
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
11
11
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
12
|
-
function _objectWithoutPropertiesLoose(
|
|
12
|
+
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; }
|
|
13
13
|
var PaginationSummary = exports.PaginationSummary = function PaginationSummary(_ref) {
|
|
14
14
|
var messages = _ref.messages,
|
|
15
15
|
numberItems = _ref.numberItems,
|
|
@@ -6,7 +6,8 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
6
6
|
var _styles = require("../../utils/styles");
|
|
7
7
|
var _Button = require("../Button");
|
|
8
8
|
var _Text = require("../Text");
|
|
9
|
-
|
|
9
|
+
var _defaultProps = require("../../default-props");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
11
|
var sizeStyle = function sizeStyle(props) {
|
|
11
12
|
var style = props.theme.pagination.button && props.theme.pagination.button.size && props.theme.pagination.button.size[props.size || 'medium'];
|
|
12
13
|
return style ? {
|
|
@@ -22,13 +23,13 @@ var sizeStyle = function sizeStyle(props) {
|
|
|
22
23
|
}
|
|
23
24
|
} : '';
|
|
24
25
|
};
|
|
25
|
-
var StyledPaginationButton = exports.StyledPaginationButton = (0, _styledComponents["default"])(_Button.Button).withConfig({
|
|
26
|
+
var StyledPaginationButton = exports.StyledPaginationButton = (0, _styledComponents["default"])(_Button.Button).attrs(_defaultProps.withTheme).withConfig({
|
|
26
27
|
displayName: "StyledPageControl__StyledPaginationButton",
|
|
27
28
|
componentId: "sc-1vlfaez-0"
|
|
28
29
|
})(["> svg{margin:0 auto;}", ";"], function (props) {
|
|
29
30
|
return sizeStyle(props).content;
|
|
30
31
|
});
|
|
31
|
-
var StyledContainer = exports.StyledContainer = _styledComponents["default"].div.withConfig(_styles.styledComponentsConfig).withConfig({
|
|
32
|
+
var StyledContainer = exports.StyledContainer = _styledComponents["default"].div.withConfig(_styles.styledComponentsConfig).attrs(_defaultProps.withTheme).withConfig({
|
|
32
33
|
displayName: "StyledPageControl__StyledContainer",
|
|
33
34
|
componentId: "sc-1vlfaez-1"
|
|
34
35
|
})(["display:flex;align-items:center;justify-content:center;max-width:100%;", ";", ";"], function (props) {
|
|
@@ -36,7 +37,7 @@ var StyledContainer = exports.StyledContainer = _styledComponents["default"].div
|
|
|
36
37
|
}, function (props) {
|
|
37
38
|
return props.theme.pagination.control && props.theme.pagination.control.extend;
|
|
38
39
|
});
|
|
39
|
-
var StyledSeparator = exports.StyledSeparator = (0, _styledComponents["default"])(_Text.Text).withConfig({
|
|
40
|
+
var StyledSeparator = exports.StyledSeparator = (0, _styledComponents["default"])(_Text.Text).attrs(_defaultProps.withTheme).withConfig({
|
|
40
41
|
displayName: "StyledPageControl__StyledSeparator",
|
|
41
42
|
componentId: "sc-1vlfaez-2"
|
|
42
43
|
})(["font-weight:bold;", ";", ";"], function (props) {
|
|
@@ -4,8 +4,8 @@ exports.__esModule = true;
|
|
|
4
4
|
exports.PaginationPropTypes = void 0;
|
|
5
5
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
6
6
|
var _generalPropTypes = require("../../utils/general-prop-types");
|
|
7
|
-
function _interopRequireDefault(
|
|
8
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
|
+
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); }
|
|
9
9
|
var PropType = {};
|
|
10
10
|
if (process.env.NODE_ENV !== 'production') {
|
|
11
11
|
PropType = _extends({}, _generalPropTypes.genericProps, {
|
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.NumberEdgePages = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var NumberEdgePages = exports.NumberEdgePages = function NumberEdgePages() {
|
|
9
9
|
return (
|
|
10
10
|
/*#__PURE__*/
|
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.NumberMiddlePages = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var NumberMiddlePages = exports.NumberMiddlePages = function NumberMiddlePages() {
|
|
9
9
|
return (
|
|
10
10
|
/*#__PURE__*/
|
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.Simple = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var Simple = exports.Simple = function Simple() {
|
|
9
9
|
return (
|
|
10
10
|
/*#__PURE__*/
|
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.Size = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var Size = exports.Size = function Size() {
|
|
9
9
|
return (
|
|
10
10
|
/*#__PURE__*/
|
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.Steps = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var Steps = exports.Steps = function Steps() {
|
|
9
9
|
return (
|
|
10
10
|
/*#__PURE__*/
|
|
@@ -11,8 +11,8 @@ var _TextContext = require("../Text/TextContext");
|
|
|
11
11
|
var _excluded = ["children", "color", "fill", "size"];
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
14
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
15
|
-
function _objectWithoutPropertiesLoose(
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
16
16
|
var Paragraph = exports.Paragraph = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
17
17
|
var children = _ref.children,
|
|
18
18
|
color = _ref.color,
|
|
@@ -3,16 +3,15 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.ParagraphSkeleton = void 0;
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
-
var _styledComponents = require("styled-components");
|
|
7
|
-
var _defaultProps = require("../../default-props");
|
|
8
6
|
var _Skeleton = require("../Skeleton");
|
|
9
7
|
var _Box = require("../Box");
|
|
8
|
+
var _useThemeValue = require("../../utils/useThemeValue");
|
|
10
9
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
11
10
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
12
11
|
var ParagraphSkeleton = exports.ParagraphSkeleton = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
13
12
|
var fill = _ref.fill,
|
|
14
13
|
sizeProp = _ref.size;
|
|
15
|
-
var theme = (0,
|
|
14
|
+
var theme = (0, _useThemeValue.useThemeValue)();
|
|
16
15
|
var size = sizeProp || 'medium';
|
|
17
16
|
var data = theme.paragraph[size];
|
|
18
17
|
var height = data ? data.size : size;
|
|
@@ -21,7 +21,7 @@ var fontFamily = (0, _styledComponents.css)(["font-family:", ";"], function (pro
|
|
|
21
21
|
var maxlinesStyle = function maxlinesStyle(props) {
|
|
22
22
|
return props.maxLines && (0, _styledComponents.css)(["display:-webkit-box;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], props.maxLines);
|
|
23
23
|
};
|
|
24
|
-
var StyledParagraph = exports.StyledParagraph = _styledComponents["default"].p.withConfig(_utils.styledComponentsConfig).withConfig({
|
|
24
|
+
var StyledParagraph = exports.StyledParagraph = _styledComponents["default"].p.withConfig(_utils.styledComponentsConfig).attrs(_defaultProps.withTheme).withConfig({
|
|
25
25
|
displayName: "StyledParagraph",
|
|
26
26
|
componentId: "sc-tbetod-0"
|
|
27
27
|
})(["", " ", " ", " ", " ", " ", " ", ""], _utils.genericStyles, function (props) {
|
|
@@ -36,6 +36,4 @@ var StyledParagraph = exports.StyledParagraph = _styledComponents["default"].p.w
|
|
|
36
36
|
return props.theme.paragraph.font && props.theme.paragraph.font.family && fontFamily;
|
|
37
37
|
}, function (props) {
|
|
38
38
|
return props.theme.paragraph && props.theme.paragraph.extend;
|
|
39
|
-
});
|
|
40
|
-
StyledParagraph.defaultProps = {};
|
|
41
|
-
Object.setPrototypeOf(StyledParagraph.defaultProps, _defaultProps.defaultProps);
|
|
39
|
+
});
|
|
@@ -4,8 +4,8 @@ exports.__esModule = true;
|
|
|
4
4
|
exports.ParagraphPropTypes = void 0;
|
|
5
5
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
6
6
|
var _generalPropTypes = require("../../utils/general-prop-types");
|
|
7
|
-
function _interopRequireDefault(
|
|
8
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
|
+
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); }
|
|
9
9
|
var PropType = {};
|
|
10
10
|
if (process.env.NODE_ENV !== 'production') {
|
|
11
11
|
PropType = _extends({}, _generalPropTypes.genericProps, {
|
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.All = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var sizes = ['xxlarge', 'xlarge', 'large', 'medium', 'small', '10px'];
|
|
9
9
|
var paragraphFiller = "\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\ntempor incididunt ut labore et dolore magna aliqua.\n";
|
|
10
10
|
var All = exports.All = function All() {
|
|
@@ -6,7 +6,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
7
|
var _utils = require("grommet/utils");
|
|
8
8
|
var _themes = require("grommet/themes");
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
10
|
var customTheme = (0, _utils.deepMerge)(_themes.grommet, {
|
|
11
11
|
paragraph: {
|
|
12
12
|
font: {
|
|
@@ -4,7 +4,7 @@ exports.__esModule = true;
|
|
|
4
4
|
exports["default"] = exports.Maxlines = void 0;
|
|
5
5
|
var _react = _interopRequireDefault(require("react"));
|
|
6
6
|
var _grommet = require("grommet");
|
|
7
|
-
function _interopRequireDefault(
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
8
|
var text = "\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod\ntempor incididunt ut labore et dolore magna aliqua.\n";
|
|
9
9
|
var Maxlines = exports.Maxlines = function Maxlines() {
|
|
10
10
|
return /*#__PURE__*/_react["default"].createElement(_grommet.Box, {
|
|
@@ -3,16 +3,15 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.RadioButton = void 0;
|
|
5
5
|
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
-
var _styledComponents = require("styled-components");
|
|
7
|
-
var _defaultProps = require("../../default-props");
|
|
8
6
|
var _utils = require("../../utils");
|
|
9
7
|
var _StyledRadioButton = require("./StyledRadioButton");
|
|
10
8
|
var _propTypes = require("./propTypes");
|
|
9
|
+
var _useThemeValue = require("../../utils/useThemeValue");
|
|
11
10
|
var _excluded = ["a11yTitle", "checked", "children", "disabled", "focus", "focusIndicator", "id", "label", "name", "onChange"];
|
|
12
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
12
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
14
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
15
|
-
function _objectWithoutPropertiesLoose(
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
16
15
|
var RadioButton = exports.RadioButton = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
17
16
|
var _theme$radioButton$ba;
|
|
18
17
|
var a11yTitle = _ref.a11yTitle,
|
|
@@ -26,7 +25,7 @@ var RadioButton = exports.RadioButton = /*#__PURE__*/(0, _react.forwardRef)(func
|
|
|
26
25
|
name = _ref.name,
|
|
27
26
|
onChange = _ref.onChange,
|
|
28
27
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
29
|
-
var theme = (0,
|
|
28
|
+
var theme = (0, _useThemeValue.useThemeValue)();
|
|
30
29
|
var _useState = (0, _react.useState)(),
|
|
31
30
|
hover = _useState[0],
|
|
32
31
|
setHover = _useState[1];
|