Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ThemeProvider): Add jss and noInjectThemeProperties prop #102

Merged
merged 3 commits into from
Aug 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/main/__karma_snapshots__/ActionSheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#### `Render without Crashing`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<ActionSheet openBy={{...}} placement="Bottom">
<Popover openBy={{...}} placementType="Bottom" style={[undefined]} slot={[undefined]} initialFocus={{...}} headerText="" horizontalAlign="Center" verticalAlign="Center">
Expand Down
4 changes: 2 additions & 2 deletions packages/main/__karma_snapshots__/AnalyticalCard.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#### `Render without Crashing`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<AnalyticalCard header={{...}} width="20rem">
<div className="AnalyticalCard--card---" style={{...}} title={[undefined]}>
Expand Down
8 changes: 4 additions & 4 deletions packages/main/__karma_snapshots__/AnalyticalTable.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#### `test Asc desc`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<WithStyles(AnalyticalTable) showPagination={true} data={{...}} title="Test" columns={{...}} alternateRowColors={false} loading={false} sortable={true} filterable={false} groupable={false} cellHeight={{...}} defaultPageSize={10} minRows={10} numItems={{...}} pivotBy={{...}} getTrProps={[Function: getTrProps]}>
<AnalyticalTable showPagination={true} data={{...}} title="Test" columns={{...}} alternateRowColors={false} loading={false} sortable={true} filterable={false} groupable={false} cellHeight={{...}} defaultPageSize={10} minRows={10} numItems={{...}} pivotBy={{...}} getTrProps={[Function: getTrProps]} innerRef={{...}} classes={{...}} theme={{...}}>
Expand Down Expand Up @@ -656,8 +656,8 @@
#### `pagination`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<WithStyles(AnalyticalTable) defaultPageSize={1} showPagination={true} data={{...}} title="Test" columns={{...}} alternateRowColors={false} loading={false} sortable={true} filterable={false} groupable={false} cellHeight={{...}} minRows={10} numItems={{...}} pivotBy={{...}} getTrProps={[Function: getTrProps]}>
<AnalyticalTable defaultPageSize={1} showPagination={true} data={{...}} title="Test" columns={{...}} alternateRowColors={false} loading={false} sortable={true} filterable={false} groupable={false} cellHeight={{...}} minRows={10} numItems={{...}} pivotBy={{...}} getTrProps={[Function: getTrProps]} innerRef={{...}} classes={{...}} theme={{...}}>
Expand Down
52 changes: 26 additions & 26 deletions packages/main/__karma_snapshots__/Avatar.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#### `Avatar - size: XL shape: Circle`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Avatar size="XL" shape="Circle" initials={{...}} image={{...}} onClick={{...}} customDisplaySize="3rem" customFontSize="1.125rem">
<span className="-avatar--- -sizeXL--- -circle---" style={{...}} onClick={[Function]} tabIndex={0} onKeyDown={[Function]} title={[undefined]} slot={[undefined]} />
Expand All @@ -17,8 +17,8 @@
#### `Avatar - size: XL shape: Square`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Avatar size="XL" shape="Square" initials={{...}} image={{...}} onClick={{...}} customDisplaySize="3rem" customFontSize="1.125rem">
<span className="-avatar--- -sizeXL---" style={{...}} onClick={[Function]} tabIndex={0} onKeyDown={[Function]} title={[undefined]} slot={[undefined]} />
Expand All @@ -31,8 +31,8 @@
#### `Avatar - size: L shape: Circle`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Avatar size="L" shape="Circle" initials={{...}} image={{...}} onClick={{...}} customDisplaySize="3rem" customFontSize="1.125rem">
<span className="-avatar--- -sizeL--- -circle---" style={{...}} onClick={[Function]} tabIndex={0} onKeyDown={[Function]} title={[undefined]} slot={[undefined]} />
Expand All @@ -45,8 +45,8 @@
#### `Avatar - size: L shape: Square`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Avatar size="L" shape="Square" initials={{...}} image={{...}} onClick={{...}} customDisplaySize="3rem" customFontSize="1.125rem">
<span className="-avatar--- -sizeL---" style={{...}} onClick={[Function]} tabIndex={0} onKeyDown={[Function]} title={[undefined]} slot={[undefined]} />
Expand All @@ -59,8 +59,8 @@
#### `Avatar - size: M shape: Circle`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Avatar size="M" shape="Circle" initials={{...}} image={{...}} onClick={{...}} customDisplaySize="3rem" customFontSize="1.125rem">
<span className="-avatar--- -sizeM--- -circle---" style={{...}} onClick={[Function]} tabIndex={0} onKeyDown={[Function]} title={[undefined]} slot={[undefined]} />
Expand All @@ -73,8 +73,8 @@
#### `Avatar - size: M shape: Square`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Avatar size="M" shape="Square" initials={{...}} image={{...}} onClick={{...}} customDisplaySize="3rem" customFontSize="1.125rem">
<span className="-avatar--- -sizeM---" style={{...}} onClick={[Function]} tabIndex={0} onKeyDown={[Function]} title={[undefined]} slot={[undefined]} />
Expand All @@ -87,8 +87,8 @@
#### `Avatar - size: S shape: Circle`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Avatar size="S" shape="Circle" initials={{...}} image={{...}} onClick={{...}} customDisplaySize="3rem" customFontSize="1.125rem">
<span className="-avatar--- -sizeS--- -circle---" style={{...}} onClick={[Function]} tabIndex={0} onKeyDown={[Function]} title={[undefined]} slot={[undefined]} />
Expand All @@ -101,8 +101,8 @@
#### `Avatar - size: S shape: Square`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Avatar size="S" shape="Square" initials={{...}} image={{...}} onClick={{...}} customDisplaySize="3rem" customFontSize="1.125rem">
<span className="-avatar--- -sizeS---" style={{...}} onClick={[Function]} tabIndex={0} onKeyDown={[Function]} title={[undefined]} slot={[undefined]} />
Expand All @@ -115,8 +115,8 @@
#### `Avatar - size: XS shape: Circle`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Avatar size="XS" shape="Circle" initials={{...}} image={{...}} onClick={{...}} customDisplaySize="3rem" customFontSize="1.125rem">
<span className="-avatar--- -sizeXS--- -circle---" style={{...}} onClick={[Function]} tabIndex={0} onKeyDown={[Function]} title={[undefined]} slot={[undefined]} />
Expand All @@ -129,8 +129,8 @@
#### `Avatar - size: XS shape: Square`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Avatar size="XS" shape="Square" initials={{...}} image={{...}} onClick={{...}} customDisplaySize="3rem" customFontSize="1.125rem">
<span className="-avatar--- -sizeXS---" style={{...}} onClick={[Function]} tabIndex={0} onKeyDown={[Function]} title={[undefined]} slot={[undefined]} />
Expand All @@ -143,8 +143,8 @@
#### `Avatar - size: Custom shape: Circle`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Avatar size="Custom" shape="Circle" initials={{...}} image={{...}} onClick={{...}} customDisplaySize="3rem" customFontSize="1.125rem">
<span className="-avatar--- -circle---" style={{...}} onClick={[Function]} tabIndex={0} onKeyDown={[Function]} title={[undefined]} slot={[undefined]} />
Expand All @@ -157,8 +157,8 @@
#### `Avatar - size: Custom shape: Square`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Avatar size="Custom" shape="Square" initials={{...}} image={{...}} onClick={{...}} customDisplaySize="3rem" customFontSize="1.125rem">
<span className="-avatar---" style={{...}} onClick={[Function]} tabIndex={0} onKeyDown={[Function]} title={[undefined]} slot={[undefined]} />
Expand All @@ -171,8 +171,8 @@
#### `with Initials`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Avatar size="XL" initials="JD" shape="Circle" image={{...}} onClick={{...}} customDisplaySize="3rem" customFontSize="1.125rem">
<span className="-avatar--- -sizeXL--- -circle---" style={{...}} onClick={[Function]} tabIndex={0} onKeyDown={[Function]} title={[undefined]} slot={[undefined]}>
Expand Down
8 changes: 4 additions & 4 deletions packages/main/__karma_snapshots__/Badge.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#### `Basic Test`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Badge colorScheme="1">
<ui5-badge color-scheme="1" class="">
Expand All @@ -19,8 +19,8 @@
#### `with Icon`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Badge icon={{...}} colorScheme="1">
<ui5-badge color-scheme="1" class="">
Expand Down
16 changes: 8 additions & 8 deletions packages/main/__karma_snapshots__/BusyIndicator.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#### `Basic Test`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<BusyIndicator active={true} size="Large">
<ui5-busyindicator active={true} size="Large" class="" />
Expand All @@ -17,8 +17,8 @@
#### `Inactive`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<BusyIndicator size="Large">
<ui5-busyindicator size="Large" class="" />
Expand All @@ -31,8 +31,8 @@
#### `Size Medium`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<BusyIndicator active={true} size="Medium">
<ui5-busyindicator active={true} size="Medium" class="" />
Expand All @@ -45,8 +45,8 @@
#### `Size Small`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<BusyIndicator active={true} size="Small">
<ui5-busyindicator active={true} size="Small" class="" />
Expand Down
4 changes: 2 additions & 2 deletions packages/main/__karma_snapshots__/Button.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#### `Basic Test (generated)`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Button design="Default">
<ui5-button design="Default" class="" />
Expand Down
4 changes: 2 additions & 2 deletions packages/main/__karma_snapshots__/Calendar.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#### `Basic Test (generated)`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Calendar>
<ui5-calendar class="" />
Expand Down
4 changes: 2 additions & 2 deletions packages/main/__karma_snapshots__/CalendarHeader.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#### `Basic Test (generated)`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<CalendarHeader>
<ui5-calendar-header class="" />
Expand Down
4 changes: 2 additions & 2 deletions packages/main/__karma_snapshots__/Card.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#### `Basic Test (generated)`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Card>
<ui5-card class="" />
Expand Down
28 changes: 14 additions & 14 deletions packages/main/__karma_snapshots__/Carousel.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#### `Renders without crashing`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Carousel activePage={0} arrowsPlacement="Content" onPageChanged={[Function: onPageChanged]} height="100%" width="100%" showPageIndicator={true} loop={false} pageIndicatorPlacement="Bottom">
<div className="Carousel--carousel---" style={{...}} title={[undefined]} slot={[undefined]} role="list">
Expand Down Expand Up @@ -92,8 +92,8 @@
#### `Should render a text indicator`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Carousel activePage={0} arrowsPlacement="Content" onPageChanged={[Function: onPageChanged]} height="100%" width="100%" showPageIndicator={true} loop={false} pageIndicatorPlacement="Bottom">
<div className="Carousel--carousel---" style={{...}} title={[undefined]} slot={[undefined]} role="list">
Expand Down Expand Up @@ -180,8 +180,8 @@
#### `CarouselArrowsPlacement: Content`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Carousel arrowsPlacement="Content" activePage={0} onPageChanged={[Function: onPageChanged]} height="100%" width="100%" showPageIndicator={true} loop={false} pageIndicatorPlacement="Bottom">
<div className="Carousel--carousel---" style={{...}} title={[undefined]} slot={[undefined]} role="list">
Expand Down Expand Up @@ -269,8 +269,8 @@
#### `CarouselArrowsPlacement: PageIndicator`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Carousel arrowsPlacement="PageIndicator" activePage={0} onPageChanged={[Function: onPageChanged]} height="100%" width="100%" showPageIndicator={true} loop={false} pageIndicatorPlacement="Bottom">
<div className="Carousel--carousel---" style={{...}} title={[undefined]} slot={[undefined]} role="list">
Expand Down Expand Up @@ -358,8 +358,8 @@
#### `Page Indicator Placement: Top`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Carousel arrowsPlacement="PageIndicator" pageIndicatorPlacement="Top" activePage={0} onPageChanged={[Function: onPageChanged]} height="100%" width="100%" showPageIndicator={true} loop={false}>
<div className="Carousel--carousel---" style={{...}} title={[undefined]} slot={[undefined]} role="list">
Expand Down Expand Up @@ -445,8 +445,8 @@
```

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Carousel arrowsPlacement="PageIndicator" pageIndicatorPlacement="Top" activePage={1} onPageChanged={[Function: onPageChanged]} height="100%" width="100%" showPageIndicator={true} loop={false}>
<div className="Carousel--carousel---" style={{...}} title={[undefined]} slot={[undefined]} role="list">
Expand Down Expand Up @@ -534,8 +534,8 @@
#### `Update activePage via prop`

```
<ThemeProvider withToastContainer={false}>
<JssProvider generateId={[Function]}>
<ThemeProvider withToastContainer={false} noInjectThemeProperties={false}>
<JssProvider generateId={[Function]} jss={[undefined]}>
<ThemeProvider theme={{...}}>
<Carousel activePage={0} arrowsPlacement="Content" onPageChanged={[Function: onPageChanged]} height="100%" width="100%" showPageIndicator={true} loop={false} pageIndicatorPlacement="Bottom">
<div className="Carousel--carousel---" style={{...}} title={[undefined]} slot={[undefined]} role="list">
Expand Down
Loading