grommet 2.23.0 → 2.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all/stories/AllComponents.js +2 -7
- package/components/Accordion/Accordion.js +1 -1
- package/components/Accordion/propTypes.js +1 -1
- package/components/Accordion/stories/CustomThemed/Custom.js +3 -2
- package/components/AccordionPanel/AccordionPanel.js +2 -1
- package/components/Anchor/Anchor.js +3 -4
- package/components/Anchor/propTypes.js +1 -1
- package/components/Avatar/Avatar.js +1 -1
- package/components/Box/Box.js +1 -1
- package/components/Box/StyledBox.js +1 -1
- package/components/Box/propTypes.js +1 -1
- package/components/Button/Button.js +1 -1
- package/components/Button/propTypes.js +2 -2
- package/components/Button/stories/Basic.js +1 -1
- package/components/Button/stories/Fill.js +1 -1
- package/components/Button/stories/Kind.js +1 -1
- package/components/Calendar/Calendar.js +233 -293
- package/components/Calendar/index.d.ts +2 -2
- package/components/Calendar/propTypes.js +1 -1
- package/components/Calendar/stories/ShowAdjacentDays.js +1 -1
- package/components/Calendar/utils.js +16 -129
- package/components/Card/Card.js +1 -1
- package/components/Card/stories/CustomThemed/Clickable.js +1 -1
- package/components/Card/stories/CustomThemed/RichFooter.js +1 -1
- package/components/Card/stories/CustomThemed/Themed.js +1 -1
- package/components/CardBody/CardBody.js +1 -1
- package/components/CardFooter/CardFooter.js +1 -1
- package/components/CardHeader/CardHeader.js +1 -1
- package/components/Carousel/Carousel.js +1 -1
- package/components/Carousel/propTypes.js +1 -1
- package/components/Carousel/stories/CustomThemed/Custom.js +1 -1
- package/components/Chart/Chart.js +1 -1
- package/components/Chart/calcs.js +44 -27
- package/components/Chart/index.d.ts +28 -2
- package/components/Chart/propTypes.js +1 -1
- package/components/Chart/stories/Rich.js +1 -1
- package/components/Chart/stories/Scan.js +11 -9
- package/components/Chart/stories/Window.js +1 -1
- package/components/Chart/stories/data.js +16 -17
- package/components/CheckBox/CheckBox.js +4 -3
- package/components/CheckBox/stories/CustomThemed/Custom.js +1 -1
- package/components/CheckBox/stories/CustomThemed/CustomToggle.js +1 -1
- package/components/CheckBox/stories/NoLabel.js +1 -1
- package/components/CheckBox/stories/Simple.js +1 -1
- package/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
- package/components/CheckBoxGroup/index.d.ts +1 -3
- package/components/Clock/Analog.js +1 -1
- package/components/Clock/Clock.js +1 -1
- package/components/Clock/Digital.js +1 -1
- package/components/Clock/propTypes.js +1 -1
- package/components/Collapsible/stories/Nested.js +1 -1
- package/components/Collapsible/stories/Simple.js +1 -1
- package/components/DataChart/DataChart.js +11 -42
- package/components/DataChart/Detail.js +18 -11
- package/components/DataChart/Legend.js +1 -1
- package/components/DataChart/Swatch.js +64 -23
- package/components/DataChart/XAxis.js +1 -1
- package/components/DataChart/YGuide.js +1 -1
- package/components/DataChart/propTypes.js +1 -1
- package/components/DataChart/stories/Legend.js +6 -2
- package/components/DataChart/stories/Pad.js +54 -0
- package/components/DataChart/utils.js +11 -1
- package/components/DataTable/Body.js +11 -5
- package/components/DataTable/Cell.js +1 -1
- package/components/DataTable/DataTable.js +1 -1
- package/components/DataTable/ExpanderCell.js +1 -1
- package/components/DataTable/Footer.js +1 -1
- package/components/DataTable/GroupedBody.js +1 -1
- package/components/DataTable/Header.js +1 -1
- package/components/DataTable/Resizer.js +1 -1
- package/components/DataTable/Sorter.js +1 -1
- package/components/DataTable/propTypes.js +1 -1
- package/components/DataTable/stories/Controlled.js +1 -1
- package/components/DataTable/stories/ControlledGrouped.js +1 -1
- package/components/DataTable/stories/CustomThemed/Fill.js +1 -1
- package/components/DataTable/stories/GroupedOnSelect.js +1 -1
- package/components/DataTable/stories/OnUpdate.js +1 -1
- package/components/DataTable/stories/Served.js +1 -1
- package/components/DataTable/stories/Sort.js +1 -1
- package/components/DataTable/stories/SpaceX.js +6 -4
- package/components/DataTable/stories/SpaceXUngrouped.js +4 -2
- package/components/DataTable/stories/Tunable.js +1 -1
- package/components/DataTable/stories/data.js +1 -1
- package/components/DataTable/stories/rowDetails.js +1 -1
- package/components/DateInput/DateInput.js +89 -92
- package/components/DateInput/index.d.ts +1 -0
- package/components/DateInput/propTypes.js +1 -0
- package/components/DateInput/stories/Format.js +14 -1
- package/components/DateInput/utils.js +31 -6
- package/components/Diagram/Diagram.js +1 -1
- package/components/Diagram/stories/Animated.js +1 -1
- package/components/Diagram/stories/Progressing.js +1 -1
- package/components/Distribution/Distribution.js +1 -1
- package/components/Distribution/propTypes.js +1 -1
- package/components/Drop/Drop.js +1 -1
- package/components/Drop/DropContainer.js +7 -3
- package/components/DropButton/DropButton.js +1 -1
- package/components/DropButton/propTypes.js +1 -1
- package/components/FileInput/FileInput.js +28 -9
- package/components/FileInput/StyledFileInput.js +1 -1
- package/components/FileInput/index.d.ts +6 -1
- package/components/FileInput/stories/Multiple.js +1 -0
- package/components/FocusedContainer.js +1 -1
- package/components/Footer/Footer.js +1 -1
- package/components/Footer/stories/DoubleFooter.js +1 -1
- package/components/Footer/stories/Sitemap.js +1 -1
- package/components/Form/Form.js +7 -2
- package/components/Form/stories/ArrayOfFormFields.js +1 -1
- package/components/Form/stories/CustomThemed/FieldSpacingOptions.js +1 -1
- package/components/Form/stories/HelpAndError.js +1 -1
- package/components/FormField/FormField.js +26 -29
- package/components/Grid/Grid.js +5 -3
- package/components/Grid/README.md +0 -2
- package/components/Grid/index.d.ts +9 -3
- package/components/Grid/propTypes.js +1 -1
- package/components/Grid/stories/CustomThemed/Responsive.js +1 -1
- package/components/Grid/stories/typescript/App.tsx +42 -48
- package/components/Grommet/Grommet.js +1 -1
- package/components/Header/Header.js +1 -1
- package/components/Heading/Heading.js +1 -1
- package/components/Heading/propTypes.js +1 -1
- package/components/Image/Image.js +5 -3
- package/components/Image/propTypes.js +1 -1
- package/components/InfiniteScroll/stories/Basics.js +1 -1
- package/components/InfiniteScroll/stories/ClassChildren.js +1 -1
- package/components/InfiniteScroll/stories/Marker.js +1 -1
- package/components/InfiniteScroll/stories/Show.js +1 -1
- package/components/InfiniteScroll/stories/ShowAfter.js +1 -1
- package/components/InfiniteScroll/stories/ShowBefore.js +1 -1
- package/components/Layer/Layer.js +2 -2
- package/components/Layer/LayerContainer.js +7 -3
- package/components/List/List.js +104 -41
- package/components/List/index.d.ts +3 -1
- package/components/List/propTypes.js +4 -2
- package/components/List/stories/Disabled.js +33 -0
- package/components/Main/Main.js +1 -1
- package/components/Markdown/Markdown.js +1 -1
- package/components/MaskedInput/MaskedInput.js +37 -28
- package/components/Menu/Menu.js +105 -61
- package/components/Menu/index.d.ts +2 -2
- package/components/Menu/propTypes.js +2 -2
- package/components/Menu/stories/Grouped.js +52 -0
- package/components/Meter/Bar.js +1 -1
- package/components/Meter/Circle.js +5 -3
- package/components/Meter/Meter.js +1 -1
- package/components/Meter/propTypes.js +1 -1
- package/components/NameValueList/NameValueList.js +1 -1
- package/components/NameValuePair/NameValuePair.js +1 -1
- package/components/Nav/Nav.js +1 -1
- package/components/Nav/stories/CustomThemed/JustifySidebar.js +1 -1
- package/components/Nav/stories/Sidebar.js +1 -1
- package/components/Notification/Notification.js +18 -9
- package/components/Notification/index.d.ts +2 -1
- package/components/Notification/propTypes.js +2 -1
- package/components/Page/Page.js +1 -1
- package/components/PageContent/PageContent.js +1 -1
- package/components/PageHeader/PageHeader.js +80 -0
- package/components/PageHeader/index.d.ts +26 -0
- package/components/PageHeader/index.js +8 -0
- package/components/PageHeader/propTypes.js +30 -0
- package/components/PageHeader/stories/Custom.js +47 -0
- package/components/PageHeader/stories/MultipleActions.js +79 -0
- package/components/PageHeader/stories/Responsive.js +37 -0
- package/components/PageHeader/stories/Simple.js +36 -0
- package/components/Pagination/PageControl.js +1 -1
- package/components/Pagination/Pagination.js +1 -1
- package/components/Pagination/propTypes.js +1 -1
- package/components/Paragraph/Paragraph.js +1 -1
- package/components/Paragraph/StyledParagraph.js +7 -1
- package/components/Paragraph/index.d.ts +1 -0
- package/components/Paragraph/propTypes.js +2 -1
- package/components/Paragraph/stories/MaxLines.js +37 -0
- package/components/RadioButton/RadioButton.js +1 -1
- package/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/components/RadioButtonGroup/index.d.ts +2 -1
- package/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +1 -1
- package/components/RadioButtonGroup/stories/Disabled.js +1 -1
- package/components/RangeInput/RangeInput.js +1 -1
- package/components/RangeSelector/EdgeControl.js +1 -1
- package/components/RangeSelector/RangeSelector.js +1 -1
- package/components/RangeSelector/stories/CustomThemed/Custom.js +1 -1
- package/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +1 -1
- package/components/RangeSelector/stories/Step.js +1 -1
- package/components/RangeSelector/stories/Vertical.js +1 -1
- package/components/RoutedAnchor/RoutedAnchor.js +2 -2
- package/components/RoutedButton/RoutedButton.js +2 -2
- package/components/Select/Select.js +11 -32
- package/components/Select/SelectContainer.js +34 -37
- package/components/Select/propTypes.js +1 -1
- package/components/Select/stories/components/SearchBorderBox.js +1 -1
- package/components/Select/stories/components/SearchInput.js +1 -1
- package/components/Sidebar/Sidebar.js +1 -1
- package/components/Sidebar/stories/Labels.js +1 -1
- package/components/SkipLink/SkipLink.js +1 -1
- package/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
- package/components/Spinner/Spinner.js +1 -1
- package/components/Stack/Stack.js +1 -1
- package/components/Stack/propTypes.js +1 -1
- package/components/Tab/StyledTab.js +2 -2
- package/components/Tab/Tab.js +35 -17
- package/components/Table/StyledTable.js +1 -1
- package/components/Table/propTypes.js +1 -1
- package/components/TableBody/TableBody.js +1 -1
- package/components/TableCell/TableCell.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/Tabs.js +233 -11
- package/components/Tabs/propTypes.js +1 -1
- package/components/Tabs/stories/Responsive.js +18 -0
- package/components/Tag/Tag.js +1 -1
- package/components/Tag/propTypes.js +1 -1
- package/components/Text/Text.js +1 -1
- package/components/Text/propTypes.js +1 -1
- package/components/TextArea/TextArea.js +1 -1
- package/components/TextArea/stories/NonResizable.js +1 -1
- package/components/TextArea/stories/Simple.js +1 -1
- package/components/TextInput/TextInput.js +33 -4
- package/components/TextInput/stories/DefaultSuggestion.js +1 -0
- package/components/TextInput/stories/InsideFormField.js +1 -1
- package/components/TextInput/stories/Suggestions.js +1 -0
- package/components/TextInput/stories/WithTags.js +1 -1
- package/components/Tip/Tip.js +22 -29
- package/components/Video/StyledVideo.js +2 -2
- package/components/Video/Video.js +101 -47
- package/components/Video/index.d.ts +1 -0
- package/components/Video/propTypes.js +2 -2
- package/components/Video/stories/typescript/ControlsBelow.tsx +6 -2
- package/components/WorldMap/WorldMap.js +1 -1
- package/components/WorldMap/propTypes.js +1 -1
- package/components/WorldMap/stories/Places.js +1 -1
- package/components/index.d.ts +1 -0
- package/components/index.js +8 -0
- package/contexts/AnnounceContext/stories/Assertive.js +1 -1
- package/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
- package/es6/all/stories/AllComponents.js +2 -7
- package/es6/components/Accordion/Accordion.js +1 -1
- package/es6/components/Accordion/propTypes.js +1 -1
- package/es6/components/Accordion/stories/CustomThemed/Custom.js +3 -2
- package/es6/components/AccordionPanel/AccordionPanel.js +2 -1
- package/es6/components/Anchor/Anchor.js +3 -4
- package/es6/components/Anchor/propTypes.js +1 -1
- package/es6/components/Avatar/Avatar.js +1 -1
- package/es6/components/Box/Box.js +1 -1
- package/es6/components/Box/StyledBox.js +1 -1
- package/es6/components/Box/propTypes.js +1 -1
- package/es6/components/Button/Button.js +1 -1
- package/es6/components/Button/propTypes.js +2 -2
- 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 +231 -293
- package/es6/components/Calendar/index.d.ts +2 -2
- package/es6/components/Calendar/propTypes.js +1 -1
- package/es6/components/Calendar/stories/ShowAdjacentDays.js +1 -1
- package/es6/components/Calendar/utils.js +13 -114
- package/es6/components/Card/Card.js +1 -1
- package/es6/components/Card/stories/CustomThemed/Clickable.js +1 -1
- package/es6/components/Card/stories/CustomThemed/RichFooter.js +1 -1
- package/es6/components/Card/stories/CustomThemed/Themed.js +1 -1
- package/es6/components/CardBody/CardBody.js +1 -1
- package/es6/components/CardFooter/CardFooter.js +1 -1
- package/es6/components/CardHeader/CardHeader.js +1 -1
- package/es6/components/Carousel/Carousel.js +1 -1
- package/es6/components/Carousel/propTypes.js +1 -1
- package/es6/components/Carousel/stories/CustomThemed/Custom.js +1 -1
- package/es6/components/Chart/Chart.js +1 -1
- package/es6/components/Chart/calcs.js +44 -27
- package/es6/components/Chart/index.d.ts +28 -2
- package/es6/components/Chart/propTypes.js +1 -1
- package/es6/components/Chart/stories/Rich.js +1 -1
- package/es6/components/Chart/stories/Scan.js +10 -9
- package/es6/components/Chart/stories/Window.js +1 -1
- package/es6/components/Chart/stories/data.js +16 -17
- package/es6/components/CheckBox/CheckBox.js +4 -3
- 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 +1 -1
- package/es6/components/CheckBox/stories/Simple.js +1 -1
- package/es6/components/CheckBoxGroup/CheckBoxGroup.js +1 -1
- package/es6/components/CheckBoxGroup/index.d.ts +1 -3
- package/es6/components/Clock/Analog.js +1 -1
- package/es6/components/Clock/Clock.js +1 -1
- package/es6/components/Clock/Digital.js +1 -1
- package/es6/components/Clock/propTypes.js +1 -1
- package/es6/components/Collapsible/stories/Nested.js +1 -1
- package/es6/components/Collapsible/stories/Simple.js +1 -1
- package/es6/components/DataChart/DataChart.js +13 -44
- package/es6/components/DataChart/Detail.js +20 -10
- package/es6/components/DataChart/Legend.js +1 -1
- package/es6/components/DataChart/Swatch.js +64 -23
- package/es6/components/DataChart/XAxis.js +1 -1
- package/es6/components/DataChart/YGuide.js +1 -1
- package/es6/components/DataChart/propTypes.js +1 -1
- package/es6/components/DataChart/stories/Legend.js +6 -2
- package/es6/components/DataChart/stories/Pad.js +42 -0
- package/es6/components/DataChart/utils.js +7 -0
- package/es6/components/DataTable/Body.js +10 -5
- package/es6/components/DataTable/Cell.js +1 -1
- package/es6/components/DataTable/DataTable.js +1 -1
- package/es6/components/DataTable/ExpanderCell.js +1 -1
- package/es6/components/DataTable/Footer.js +1 -1
- package/es6/components/DataTable/GroupedBody.js +1 -1
- package/es6/components/DataTable/Header.js +1 -1
- package/es6/components/DataTable/Resizer.js +1 -1
- package/es6/components/DataTable/Sorter.js +1 -1
- 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 +6 -4
- package/es6/components/DataTable/stories/SpaceXUngrouped.js +4 -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/DateInput/DateInput.js +85 -88
- package/es6/components/DateInput/index.d.ts +1 -0
- package/es6/components/DateInput/propTypes.js +1 -0
- package/es6/components/DateInput/stories/Format.js +14 -1
- package/es6/components/DateInput/utils.js +30 -8
- package/es6/components/Diagram/Diagram.js +1 -1
- package/es6/components/Diagram/stories/Animated.js +1 -1
- package/es6/components/Diagram/stories/Progressing.js +1 -1
- package/es6/components/Distribution/Distribution.js +1 -1
- package/es6/components/Distribution/propTypes.js +1 -1
- package/es6/components/Drop/Drop.js +1 -1
- package/es6/components/Drop/DropContainer.js +5 -3
- package/es6/components/DropButton/DropButton.js +1 -1
- package/es6/components/DropButton/propTypes.js +1 -1
- package/es6/components/FileInput/FileInput.js +28 -9
- package/es6/components/FileInput/StyledFileInput.js +1 -1
- package/es6/components/FileInput/index.d.ts +6 -1
- package/es6/components/FileInput/stories/Multiple.js +1 -0
- package/es6/components/FocusedContainer.js +1 -1
- package/es6/components/Footer/Footer.js +1 -1
- package/es6/components/Footer/stories/DoubleFooter.js +1 -1
- package/es6/components/Footer/stories/Sitemap.js +1 -1
- package/es6/components/Form/Form.js +7 -2
- package/es6/components/Form/stories/ArrayOfFormFields.js +1 -1
- package/es6/components/Form/stories/CustomThemed/FieldSpacingOptions.js +1 -1
- package/es6/components/Form/stories/HelpAndError.js +1 -1
- package/es6/components/FormField/FormField.js +26 -30
- package/es6/components/Grid/Grid.js +5 -3
- package/es6/components/Grid/README.md +0 -2
- package/es6/components/Grid/index.d.ts +9 -3
- package/es6/components/Grid/propTypes.js +1 -1
- package/es6/components/Grid/stories/CustomThemed/Responsive.js +1 -1
- package/es6/components/Grid/stories/typescript/App.tsx +42 -48
- package/es6/components/Grommet/Grommet.js +1 -1
- package/es6/components/Header/Header.js +1 -1
- package/es6/components/Heading/Heading.js +1 -1
- package/es6/components/Heading/propTypes.js +1 -1
- package/es6/components/Image/Image.js +5 -3
- package/es6/components/Image/propTypes.js +1 -1
- 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/Layer/Layer.js +2 -2
- package/es6/components/Layer/LayerContainer.js +5 -3
- package/es6/components/List/List.js +105 -42
- package/es6/components/List/index.d.ts +3 -1
- package/es6/components/List/propTypes.js +4 -2
- package/es6/components/List/stories/Disabled.js +20 -0
- package/es6/components/Main/Main.js +1 -1
- package/es6/components/Markdown/Markdown.js +1 -1
- package/es6/components/MaskedInput/MaskedInput.js +38 -29
- package/es6/components/Menu/Menu.js +106 -61
- package/es6/components/Menu/index.d.ts +2 -2
- package/es6/components/Menu/propTypes.js +2 -2
- package/es6/components/Menu/stories/Grouped.js +40 -0
- package/es6/components/Meter/Bar.js +1 -1
- package/es6/components/Meter/Circle.js +5 -3
- package/es6/components/Meter/Meter.js +1 -1
- package/es6/components/Meter/propTypes.js +1 -1
- package/es6/components/NameValueList/NameValueList.js +1 -1
- package/es6/components/NameValuePair/NameValuePair.js +1 -1
- package/es6/components/Nav/Nav.js +1 -1
- package/es6/components/Nav/stories/CustomThemed/JustifySidebar.js +1 -1
- package/es6/components/Nav/stories/Sidebar.js +1 -1
- package/es6/components/Notification/Notification.js +18 -9
- package/es6/components/Notification/index.d.ts +2 -1
- package/es6/components/Notification/propTypes.js +2 -1
- package/es6/components/Page/Page.js +1 -1
- package/es6/components/PageContent/PageContent.js +1 -1
- package/es6/components/PageHeader/PageHeader.js +63 -0
- package/es6/components/PageHeader/index.d.ts +26 -0
- package/es6/components/PageHeader/index.js +1 -0
- package/es6/components/PageHeader/propTypes.js +19 -0
- package/es6/components/PageHeader/stories/Custom.js +32 -0
- package/es6/components/PageHeader/stories/MultipleActions.js +63 -0
- package/es6/components/PageHeader/stories/Responsive.js +25 -0
- package/es6/components/PageHeader/stories/Simple.js +24 -0
- package/es6/components/Pagination/PageControl.js +1 -1
- package/es6/components/Pagination/Pagination.js +1 -1
- package/es6/components/Pagination/propTypes.js +1 -1
- package/es6/components/Paragraph/Paragraph.js +1 -1
- package/es6/components/Paragraph/StyledParagraph.js +8 -1
- package/es6/components/Paragraph/index.d.ts +1 -0
- package/es6/components/Paragraph/propTypes.js +2 -1
- package/es6/components/Paragraph/stories/MaxLines.js +24 -0
- package/es6/components/RadioButton/RadioButton.js +1 -1
- package/es6/components/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/es6/components/RadioButtonGroup/index.d.ts +2 -1
- package/es6/components/RadioButtonGroup/stories/CustomThemed/CustomTheme.js +1 -1
- package/es6/components/RadioButtonGroup/stories/Disabled.js +1 -1
- package/es6/components/RangeInput/RangeInput.js +1 -1
- package/es6/components/RangeSelector/EdgeControl.js +1 -1
- package/es6/components/RangeSelector/RangeSelector.js +1 -1
- package/es6/components/RangeSelector/stories/CustomThemed/Custom.js +1 -1
- package/es6/components/RangeSelector/stories/CustomThemed/CustomEdgeControl.js +1 -1
- package/es6/components/RangeSelector/stories/Step.js +1 -1
- package/es6/components/RangeSelector/stories/Vertical.js +1 -1
- package/es6/components/RoutedAnchor/RoutedAnchor.js +2 -2
- package/es6/components/RoutedButton/RoutedButton.js +2 -2
- package/es6/components/Select/Select.js +12 -33
- package/es6/components/Select/SelectContainer.js +35 -38
- package/es6/components/Select/propTypes.js +1 -1
- package/es6/components/Select/stories/components/SearchBorderBox.js +1 -1
- package/es6/components/Select/stories/components/SearchInput.js +1 -1
- package/es6/components/Sidebar/Sidebar.js +1 -1
- package/es6/components/Sidebar/stories/Labels.js +1 -1
- package/es6/components/SkipLink/SkipLink.js +1 -1
- package/es6/components/SkipLinkTarget/SkipLinkTarget.js +1 -1
- package/es6/components/Spinner/Spinner.js +1 -1
- package/es6/components/Stack/Stack.js +1 -1
- package/es6/components/Stack/propTypes.js +1 -1
- package/es6/components/Tab/StyledTab.js +2 -2
- package/es6/components/Tab/Tab.js +35 -18
- package/es6/components/Table/StyledTable.js +1 -1
- package/es6/components/Table/propTypes.js +1 -1
- package/es6/components/TableBody/TableBody.js +1 -1
- package/es6/components/TableCell/TableCell.js +1 -1
- 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/Tabs.js +229 -12
- package/es6/components/Tabs/propTypes.js +1 -1
- package/es6/components/Tabs/stories/Responsive.js +18 -0
- package/es6/components/Tag/Tag.js +1 -1
- package/es6/components/Tag/propTypes.js +1 -1
- package/es6/components/Text/Text.js +1 -1
- package/es6/components/Text/propTypes.js +1 -1
- package/es6/components/TextArea/TextArea.js +1 -1
- package/es6/components/TextArea/stories/NonResizable.js +1 -1
- package/es6/components/TextArea/stories/Simple.js +1 -1
- package/es6/components/TextInput/TextInput.js +33 -4
- package/es6/components/TextInput/stories/DefaultSuggestion.js +1 -0
- package/es6/components/TextInput/stories/InsideFormField.js +1 -1
- package/es6/components/TextInput/stories/Suggestions.js +1 -0
- package/es6/components/TextInput/stories/WithTags.js +1 -1
- package/es6/components/Tip/Tip.js +22 -29
- package/es6/components/Video/StyledVideo.js +2 -2
- package/es6/components/Video/Video.js +100 -47
- package/es6/components/Video/index.d.ts +1 -0
- package/es6/components/Video/propTypes.js +2 -2
- package/es6/components/Video/stories/typescript/ControlsBelow.tsx +6 -2
- package/es6/components/WorldMap/WorldMap.js +1 -1
- package/es6/components/WorldMap/propTypes.js +1 -1
- package/es6/components/WorldMap/stories/Places.js +1 -1
- package/es6/components/index.d.ts +1 -0
- package/es6/components/index.js +1 -0
- package/es6/contexts/AnnounceContext/stories/Assertive.js +1 -1
- package/es6/contexts/ResponsiveContext/stories/ResponsiveGrid.js +1 -1
- package/es6/index.d.ts +1 -0
- package/es6/languages/default.json +4 -1
- package/es6/themes/base.d.ts +74 -34
- package/es6/themes/base.js +99 -3
- package/es6/utils/index.js +2 -1
- package/es6/utils/object.js +1 -1
- package/es6/utils/pagination.js +1 -1
- package/es6/utils/use-keyboard.js +25 -0
- package/grommet.min.js +1 -1
- package/grommet.min.js.map +1 -1
- package/index.d.ts +1 -0
- package/languages/default.json +4 -1
- package/package.json +65 -59
- package/themes/base.d.ts +74 -34
- package/themes/base.js +100 -3
- package/utils/index.js +8 -0
- package/utils/object.js +1 -1
- package/utils/pagination.js +1 -1
- package/utils/use-keyboard.js +34 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["alignSelf", "autoPlay", "children", "controls", "gridArea", "loop", "margin", "messages", "mute", "onDurationChange", "onEnded", "onPause", "onPlay", "onTimeUpdate", "onVolumeChange", "skipInterval"];
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
|
|
@@ -8,6 +8,7 @@ import React, { forwardRef, useCallback, useContext, useEffect, useMemo, useRef,
|
|
|
8
8
|
import { ThemeContext } from 'styled-components';
|
|
9
9
|
import { useLayoutEffect } from '../../utils/use-isomorphic-layout-effect';
|
|
10
10
|
import { defaultProps } from '../../default-props';
|
|
11
|
+
import { AnnounceContext } from '../../contexts/AnnounceContext';
|
|
11
12
|
import { Box } from '../Box';
|
|
12
13
|
import { Button } from '../Button';
|
|
13
14
|
import { Menu } from '../Menu';
|
|
@@ -62,6 +63,8 @@ var Video = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
62
63
|
var _useContext = useContext(MessageContext),
|
|
63
64
|
format = _useContext.format;
|
|
64
65
|
|
|
66
|
+
var announce = useContext(AnnounceContext);
|
|
67
|
+
|
|
65
68
|
var _useState = useState([]),
|
|
66
69
|
captions = _useState[0],
|
|
67
70
|
setCaptions = _useState[1];
|
|
@@ -82,29 +85,33 @@ var Video = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
82
85
|
playing = _useState5[0],
|
|
83
86
|
setPlaying = _useState5[1];
|
|
84
87
|
|
|
85
|
-
var _useState6 = useState(),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
var _useState6 = useState(false),
|
|
89
|
+
announceAudioDescription = _useState6[0],
|
|
90
|
+
setAnnounceAudioDescription = _useState6[1];
|
|
88
91
|
|
|
89
92
|
var _useState7 = useState(),
|
|
90
|
-
|
|
91
|
-
|
|
93
|
+
scrubTime = _useState7[0],
|
|
94
|
+
setScrubTime = _useState7[1];
|
|
92
95
|
|
|
93
|
-
var _useState8 = useState(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
var _useState8 = useState(),
|
|
97
|
+
volume = _useState8[0],
|
|
98
|
+
setVolume = _useState8[1];
|
|
96
99
|
|
|
97
|
-
var _useState9 = useState(),
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
var _useState9 = useState(false),
|
|
101
|
+
hasPlayed = _useState9[0],
|
|
102
|
+
setHasPlayed = _useState9[1];
|
|
100
103
|
|
|
101
104
|
var _useState10 = useState(),
|
|
102
|
-
|
|
103
|
-
|
|
105
|
+
interacting = _useState10[0],
|
|
106
|
+
setInteracting = _useState10[1];
|
|
104
107
|
|
|
105
108
|
var _useState11 = useState(),
|
|
106
|
-
|
|
107
|
-
|
|
109
|
+
height = _useState11[0],
|
|
110
|
+
setHeight = _useState11[1];
|
|
111
|
+
|
|
112
|
+
var _useState12 = useState(),
|
|
113
|
+
width = _useState12[0],
|
|
114
|
+
setWidth = _useState12[1];
|
|
108
115
|
|
|
109
116
|
var containerRef = useRef();
|
|
110
117
|
var scrubberRef = useRef();
|
|
@@ -158,7 +165,12 @@ var Video = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
158
165
|
return function () {
|
|
159
166
|
return clearTimeout(timer);
|
|
160
167
|
};
|
|
161
|
-
}, [interacting]);
|
|
168
|
+
}, [interacting]); // track which audio description track is active
|
|
169
|
+
|
|
170
|
+
var _useState13 = useState(),
|
|
171
|
+
activeTrack = _useState13[0],
|
|
172
|
+
setActiveTrack = _useState13[1];
|
|
173
|
+
|
|
162
174
|
useLayoutEffect(function () {
|
|
163
175
|
var video = videoRef.current;
|
|
164
176
|
|
|
@@ -188,48 +200,66 @@ var Video = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
188
200
|
|
|
189
201
|
|
|
190
202
|
var textTracks = video.textTracks;
|
|
203
|
+
var nextCaptions = [];
|
|
204
|
+
var set = false; // iterate through all of the tracks provided
|
|
191
205
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
var track = textTracks[0];
|
|
196
|
-
var active = track.mode === 'showing';
|
|
197
|
-
|
|
198
|
-
if (!captions || !captions[0] || captions[0].active !== active) {
|
|
199
|
-
// get label if provided and if the track is active
|
|
200
|
-
// (currently showing) or not
|
|
201
|
-
setCaptions([{
|
|
202
|
-
label: track.label,
|
|
203
|
-
active: active
|
|
204
|
-
}]);
|
|
205
|
-
}
|
|
206
|
-
} else {
|
|
207
|
-
// multiple tracks provided
|
|
208
|
-
var nextCaptions = [];
|
|
209
|
-
var set = false;
|
|
206
|
+
var _loop = function _loop(i) {
|
|
207
|
+
var track = textTracks[i];
|
|
208
|
+
var active = track.mode === 'showing';
|
|
210
209
|
|
|
211
|
-
|
|
212
|
-
|
|
210
|
+
var getActiveTrack = function getActiveTrack(currentVideoTime) {
|
|
211
|
+
var nextActiveTrack;
|
|
213
212
|
|
|
214
|
-
|
|
213
|
+
for (var j = 0; j < track.cues.length; j += 1) {
|
|
214
|
+
var _track$cues$j, _track$cues$j2;
|
|
215
215
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
active: _active
|
|
219
|
-
});
|
|
216
|
+
if (currentVideoTime > (track == null ? void 0 : (_track$cues$j = track.cues[j]) == null ? void 0 : _track$cues$j.startTime) && currentVideoTime < (track == null ? void 0 : (_track$cues$j2 = track.cues[j]) == null ? void 0 : _track$cues$j2.endTime)) {
|
|
217
|
+
var _track$cues$j3;
|
|
220
218
|
|
|
221
|
-
|
|
222
|
-
set = true;
|
|
219
|
+
nextActiveTrack = track == null ? void 0 : (_track$cues$j3 = track.cues[j]) == null ? void 0 : _track$cues$j3.text;
|
|
223
220
|
}
|
|
224
221
|
}
|
|
225
222
|
|
|
223
|
+
return nextActiveTrack;
|
|
224
|
+
}; // track is an audio description
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
if (track.kind === 'descriptions') {
|
|
228
|
+
if (announceAudioDescription) {
|
|
229
|
+
video.ontimeupdate = function () {
|
|
230
|
+
var nextActiveTrack = getActiveTrack(video.currentTime);
|
|
231
|
+
|
|
232
|
+
if (activeTrack !== nextActiveTrack) {
|
|
233
|
+
if (nextActiveTrack) {
|
|
234
|
+
announce(nextActiveTrack, 'assertive');
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
setActiveTrack(nextActiveTrack);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
} // otherwise treat as captions
|
|
242
|
+
else {
|
|
243
|
+
nextCaptions.push({
|
|
244
|
+
label: track.label,
|
|
245
|
+
active: active
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
if (!captions || !captions[i] || captions[i].active !== active) {
|
|
249
|
+
set = true;
|
|
250
|
+
}
|
|
251
|
+
|
|
226
252
|
if (set) {
|
|
227
253
|
setCaptions(nextCaptions);
|
|
228
254
|
}
|
|
229
255
|
}
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
for (var i = 0; i < textTracks.length; i += 1) {
|
|
259
|
+
_loop(i);
|
|
230
260
|
}
|
|
231
261
|
}
|
|
232
|
-
}, [captions, height, videoRef, width]);
|
|
262
|
+
}, [activeTrack, announce, announceAudioDescription, captions, height, videoRef, width]);
|
|
233
263
|
var play = useCallback(function () {
|
|
234
264
|
return videoRef.current.play();
|
|
235
265
|
}, [videoRef]);
|
|
@@ -306,7 +336,8 @@ var Video = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
306
336
|
Pause: theme.video.icons.pause,
|
|
307
337
|
Play: theme.video.icons.play,
|
|
308
338
|
ReduceVolume: theme.video.icons.reduceVolume,
|
|
309
|
-
Volume: theme.video.icons.volume
|
|
339
|
+
Volume: theme.video.icons.volume,
|
|
340
|
+
Description: theme.video.icons.description
|
|
310
341
|
};
|
|
311
342
|
var captionControls = captions.map(function (caption, index) {
|
|
312
343
|
return {
|
|
@@ -315,7 +346,10 @@ var Video = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
315
346
|
}),
|
|
316
347
|
label: caption.label,
|
|
317
348
|
active: caption.active,
|
|
318
|
-
a11yTitle: caption.label ||
|
|
349
|
+
a11yTitle: caption.label || format({
|
|
350
|
+
id: 'video.captions',
|
|
351
|
+
messages: messages
|
|
352
|
+
}),
|
|
319
353
|
onClick: function onClick() {
|
|
320
354
|
showCaptions(caption.active ? -1 : index);
|
|
321
355
|
var updatedCaptions = [];
|
|
@@ -331,6 +365,19 @@ var Video = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
331
365
|
}
|
|
332
366
|
};
|
|
333
367
|
});
|
|
368
|
+
var descriptionControls = {
|
|
369
|
+
icon: /*#__PURE__*/React.createElement(Icons.Description, {
|
|
370
|
+
color: iconColor
|
|
371
|
+
}),
|
|
372
|
+
a11yTitle: format({
|
|
373
|
+
id: 'video.audioDescriptions',
|
|
374
|
+
messages: messages
|
|
375
|
+
}),
|
|
376
|
+
active: announceAudioDescription,
|
|
377
|
+
onClick: function onClick() {
|
|
378
|
+
return setAnnounceAudioDescription(!announceAudioDescription);
|
|
379
|
+
}
|
|
380
|
+
};
|
|
334
381
|
var volumeControls = ['volume', 'reduceVolume'].map(function (control) {
|
|
335
382
|
return {
|
|
336
383
|
icon: control === 'volume' ? /*#__PURE__*/React.createElement(Icons.Volume, {
|
|
@@ -358,6 +405,7 @@ var Video = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
358
405
|
});
|
|
359
406
|
var buttonProps = {
|
|
360
407
|
captions: captionControls,
|
|
408
|
+
descriptions: descriptionControls,
|
|
361
409
|
volume: volumeControls,
|
|
362
410
|
fullScreen: {
|
|
363
411
|
icon: /*#__PURE__*/React.createElement(Icons.FullScreen, {
|
|
@@ -409,6 +457,11 @@ var Video = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
409
457
|
return undefined;
|
|
410
458
|
}
|
|
411
459
|
|
|
460
|
+
if (item === 'descriptions') {
|
|
461
|
+
controlsMenuItems.push(buttonProps[item]);
|
|
462
|
+
return undefined;
|
|
463
|
+
}
|
|
464
|
+
|
|
412
465
|
if (typeof item === 'string') {
|
|
413
466
|
return controlsMenuItems.push(buttonProps[item]);
|
|
414
467
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { genericProps } from '../../utils/general-prop-types';
|
|
@@ -9,7 +9,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
9
9
|
autoPlay: PropTypes.bool,
|
|
10
10
|
controls: PropTypes.oneOfType([PropTypes.oneOf([false, 'over', 'below']), PropTypes.shape({
|
|
11
11
|
position: PropTypes.oneOf([false, 'over', 'below']),
|
|
12
|
-
items: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(['captions', 'fullScreen', 'play', 'pause', 'volume']), PropTypes.shape({
|
|
12
|
+
items: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(['captions', 'descriptions', 'fullScreen', 'play', 'pause', 'volume']), PropTypes.shape({
|
|
13
13
|
icon: PropTypes.element,
|
|
14
14
|
a11yTitle: PropTypes.string,
|
|
15
15
|
onClick: PropTypes.func,
|
|
@@ -6,7 +6,10 @@ export const ControlsBelow = () => (
|
|
|
6
6
|
<Box align="center" pad="large">
|
|
7
7
|
<Video
|
|
8
8
|
skipInterval={2}
|
|
9
|
-
controls={{
|
|
9
|
+
controls={{
|
|
10
|
+
position: 'below',
|
|
11
|
+
items: ['captions', 'descriptions'],
|
|
12
|
+
}}
|
|
10
13
|
>
|
|
11
14
|
<source src="small.mp4" type="video/mp4" />
|
|
12
15
|
<source
|
|
@@ -21,7 +24,8 @@ export const ControlsBelow = () => (
|
|
|
21
24
|
src="http://techslides.com/demos/sample-videos/small.3gp"
|
|
22
25
|
type="video/3gp"
|
|
23
26
|
/>
|
|
24
|
-
<track kind="
|
|
27
|
+
<track kind="captions" srcLang="en" src="small-en.vtt" />
|
|
28
|
+
<track kind="descriptions" srcLang="en" src="small-en-description.vtt" />
|
|
25
29
|
</Video>
|
|
26
30
|
</Box>
|
|
27
31
|
);
|
|
@@ -3,7 +3,7 @@ var _excluded = ["fill", "color", "continents", "hoverColor", "onSelectPlace", "
|
|
|
3
3
|
_excluded3 = ["color", "onClick", "onHover"],
|
|
4
4
|
_excluded4 = ["color", "coords", "content", "dropProps", "key", "name", "onClick", "onHover"];
|
|
5
5
|
|
|
6
|
-
function _extends() { _extends = Object.assign
|
|
6
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
7
7
|
|
|
8
8
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9
9
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { colorPropType, genericProps } from '../../utils/general-prop-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Box, CheckBox, Text, WorldMap } from 'grommet';
|
package/es6/components/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "areas"];
|
|
2
2
|
|
|
3
|
-
function _extends() { _extends = Object.assign
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
6
|
|
package/es6/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export * from './components/Menu';
|
|
|
42
42
|
export * from './components/Meter';
|
|
43
43
|
export * from './components/Page';
|
|
44
44
|
export * from './components/PageContent';
|
|
45
|
+
export * from './components/PageHeader';
|
|
45
46
|
export * from './components/Pagination';
|
|
46
47
|
export * from './components/Paragraph';
|
|
47
48
|
export * from './components/NameValueList';
|
|
@@ -58,7 +58,9 @@
|
|
|
58
58
|
"suggestionIsOpen": "Suggestions drop is open, continue to use arrow keys to navigate"
|
|
59
59
|
},
|
|
60
60
|
"video": {
|
|
61
|
+
"captions": "closed captions",
|
|
61
62
|
"closeMenu": "close menu",
|
|
63
|
+
"audioDescriptions": "video audio description",
|
|
62
64
|
"fullScreen": "full screen",
|
|
63
65
|
"progressMeter": "video progress",
|
|
64
66
|
"scrubber": "scrubber",
|
|
@@ -66,6 +68,7 @@
|
|
|
66
68
|
"pauseButton": "pause",
|
|
67
69
|
"playButton": "play",
|
|
68
70
|
"volumeDown": "volume down",
|
|
69
|
-
"volumeUp": "volume up"
|
|
71
|
+
"volumeUp": "volume up",
|
|
72
|
+
"description": "video audio description"
|
|
70
73
|
}
|
|
71
74
|
}
|
package/es6/themes/base.d.ts
CHANGED
|
@@ -33,6 +33,14 @@ import { Box } from '../components/Box';
|
|
|
33
33
|
import { Text, TextProps } from '../components/Text';
|
|
34
34
|
import { LayerPositionType, LayerProps } from '../components/Layer';
|
|
35
35
|
import { DropProps } from '../components/Drop';
|
|
36
|
+
import {
|
|
37
|
+
AreasType,
|
|
38
|
+
GridColumnsType,
|
|
39
|
+
GridGapType,
|
|
40
|
+
GridSizeType,
|
|
41
|
+
} from '../components/Grid';
|
|
42
|
+
import { HeadingProps } from '../components/Heading';
|
|
43
|
+
import { ParagraphProps } from '../components/Paragraph';
|
|
36
44
|
|
|
37
45
|
export declare const base: DeepReadonly<ThemeType>;
|
|
38
46
|
export declare const generate: (
|
|
@@ -234,6 +242,15 @@ interface FormFieldLabelType extends TextProps {
|
|
|
234
242
|
requiredIndicator?: boolean | JSX.Element | string;
|
|
235
243
|
}
|
|
236
244
|
|
|
245
|
+
type DigitalTexts =
|
|
246
|
+
| 'xsmall'
|
|
247
|
+
| 'small'
|
|
248
|
+
| 'medium'
|
|
249
|
+
| 'large'
|
|
250
|
+
| 'xlarge'
|
|
251
|
+
| 'xxlarge'
|
|
252
|
+
| string;
|
|
253
|
+
|
|
237
254
|
export interface ThemeType {
|
|
238
255
|
global?: {
|
|
239
256
|
active?: {
|
|
@@ -351,7 +368,8 @@ export interface ThemeType {
|
|
|
351
368
|
color?: ColorType;
|
|
352
369
|
size?: string;
|
|
353
370
|
};
|
|
354
|
-
shadow?:
|
|
371
|
+
shadow?:
|
|
372
|
+
string | {
|
|
355
373
|
color?: ColorType;
|
|
356
374
|
size?: string;
|
|
357
375
|
};
|
|
@@ -422,6 +440,7 @@ export interface ThemeType {
|
|
|
422
440
|
margin?: MarginType;
|
|
423
441
|
};
|
|
424
442
|
hover?: {
|
|
443
|
+
background?: BackgroundType;
|
|
425
444
|
color?: ColorType; // deprecated
|
|
426
445
|
heading?: {
|
|
427
446
|
color?: ColorType;
|
|
@@ -437,6 +456,7 @@ export interface ThemeType {
|
|
|
437
456
|
color?: ColorType;
|
|
438
457
|
extend?: ExtendType<PropsOf<typeof Anchor>>;
|
|
439
458
|
fontWeight?: number;
|
|
459
|
+
gap?: GapType;
|
|
440
460
|
hover?: {
|
|
441
461
|
extend?: ExtendType<PropsOf<typeof Anchor>>;
|
|
442
462
|
textDecoration?: string;
|
|
@@ -507,7 +527,7 @@ export interface ThemeType {
|
|
|
507
527
|
};
|
|
508
528
|
};
|
|
509
529
|
card?: {
|
|
510
|
-
container?: BoxProps;
|
|
530
|
+
container?: BoxProps | { extend?: ExtendType };
|
|
511
531
|
hover?: {
|
|
512
532
|
container?: {
|
|
513
533
|
elevation?: ElevationType;
|
|
@@ -616,31 +636,7 @@ export interface ThemeType {
|
|
|
616
636
|
};
|
|
617
637
|
digital?: {
|
|
618
638
|
text?: {
|
|
619
|
-
|
|
620
|
-
size?: string;
|
|
621
|
-
height?: number;
|
|
622
|
-
};
|
|
623
|
-
small?: {
|
|
624
|
-
size?: string;
|
|
625
|
-
height?: number;
|
|
626
|
-
};
|
|
627
|
-
medium?: {
|
|
628
|
-
size?: string;
|
|
629
|
-
height?: number;
|
|
630
|
-
};
|
|
631
|
-
large?: {
|
|
632
|
-
size?: string;
|
|
633
|
-
height?: number;
|
|
634
|
-
};
|
|
635
|
-
xlarge?: {
|
|
636
|
-
size?: string;
|
|
637
|
-
height?: number;
|
|
638
|
-
};
|
|
639
|
-
xxlarge?: {
|
|
640
|
-
size?: string;
|
|
641
|
-
height?: number;
|
|
642
|
-
};
|
|
643
|
-
[key: string]: {
|
|
639
|
+
[key in DigitalTexts]: {
|
|
644
640
|
size?: string;
|
|
645
641
|
height?: number;
|
|
646
642
|
};
|
|
@@ -1004,13 +1000,11 @@ export interface ThemeType {
|
|
|
1004
1000
|
container?: BoxProps;
|
|
1005
1001
|
item?: {
|
|
1006
1002
|
background?: BackgroundType;
|
|
1007
|
-
border?:
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
size?: string;
|
|
1013
|
-
};
|
|
1003
|
+
border?: BorderType;
|
|
1004
|
+
disabled?: {
|
|
1005
|
+
color?: ColorType;
|
|
1006
|
+
cursor?: string;
|
|
1007
|
+
};
|
|
1014
1008
|
pad?: PadType;
|
|
1015
1009
|
extend?: ExtendType;
|
|
1016
1010
|
};
|
|
@@ -1033,6 +1027,14 @@ export interface ThemeType {
|
|
|
1033
1027
|
background?: BackgroundType;
|
|
1034
1028
|
drop?: DropProps;
|
|
1035
1029
|
extend?: ExtendType;
|
|
1030
|
+
group?: {
|
|
1031
|
+
container?: BoxProps;
|
|
1032
|
+
separator?: {
|
|
1033
|
+
color?: ColorType;
|
|
1034
|
+
size?: string;
|
|
1035
|
+
pad?: PadType;
|
|
1036
|
+
};
|
|
1037
|
+
};
|
|
1036
1038
|
icons?: {
|
|
1037
1039
|
down?: any;
|
|
1038
1040
|
up?: any;
|
|
@@ -1147,6 +1149,39 @@ export interface ThemeType {
|
|
|
1147
1149
|
large?: BoxProps;
|
|
1148
1150
|
};
|
|
1149
1151
|
};
|
|
1152
|
+
pageHeader?: {
|
|
1153
|
+
actions?: BoxProps;
|
|
1154
|
+
pad?: PadType;
|
|
1155
|
+
parent?: BoxProps;
|
|
1156
|
+
responsive?: {
|
|
1157
|
+
actions?: BoxProps;
|
|
1158
|
+
areas?: AreasType;
|
|
1159
|
+
breakpoints?: string[];
|
|
1160
|
+
columns?: GridColumnsType;
|
|
1161
|
+
rows?: GridSizeType;
|
|
1162
|
+
gap?: GridGapType;
|
|
1163
|
+
};
|
|
1164
|
+
subtitle?: ParagraphProps;
|
|
1165
|
+
title?: HeadingProps;
|
|
1166
|
+
small?: {
|
|
1167
|
+
areas?: AreasType;
|
|
1168
|
+
columns?: GridColumnsType;
|
|
1169
|
+
rows?: GridSizeType;
|
|
1170
|
+
gap?: GridGapType;
|
|
1171
|
+
};
|
|
1172
|
+
medium?: {
|
|
1173
|
+
areas?: AreasType;
|
|
1174
|
+
columns?: GridColumnsType;
|
|
1175
|
+
rows?: GridSizeType;
|
|
1176
|
+
gap?: GridGapType;
|
|
1177
|
+
};
|
|
1178
|
+
large?: {
|
|
1179
|
+
areas?: AreasType;
|
|
1180
|
+
columns?: GridColumnsType;
|
|
1181
|
+
rows?: GridSizeType;
|
|
1182
|
+
gap?: GridGapType;
|
|
1183
|
+
};
|
|
1184
|
+
};
|
|
1150
1185
|
pagination?: {
|
|
1151
1186
|
button?: ButtonType | string;
|
|
1152
1187
|
container?: BoxProps | { extend?: ExtendType };
|
|
@@ -1398,6 +1433,11 @@ export interface ThemeType {
|
|
|
1398
1433
|
panel?: {
|
|
1399
1434
|
extend?: ExtendType;
|
|
1400
1435
|
};
|
|
1436
|
+
step?: {
|
|
1437
|
+
small?: number;
|
|
1438
|
+
medium?: number;
|
|
1439
|
+
large?: number;
|
|
1440
|
+
};
|
|
1401
1441
|
};
|
|
1402
1442
|
table?: {
|
|
1403
1443
|
header?: {
|