@skodaflow/web-library 3.2.4 → 3.3.0-alpha.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/README.md +81 -120
- package/build/README.md +81 -120
- package/build/components/backdrop/backdrop.d.ts +3 -0
- package/build/components/button/button.d.ts +1 -0
- package/build/components/cardMenu/styled/menuListStyled.d.ts +1 -1
- package/build/components/cardMenu/styled/popperStyled.d.ts +10 -1
- package/build/components/checkbox/checkbox.d.ts +1 -0
- package/build/components/chip/regular/chip.d.ts +1 -0
- package/build/components/closeDialogButton/index.d.ts +4 -0
- package/build/components/common/helperText.d.ts +2 -2
- package/build/components/common/imageComponent.d.ts +2 -2
- package/build/components/common/resizableSliderInput.d.ts +1 -1
- package/build/components/common/styled/textFieldStyled.d.ts +3 -17
- package/build/components/common/textInputHelperText.d.ts +2 -2
- package/build/components/container/container.d.ts +2 -1
- package/build/components/divider/divider.d.ts +1 -0
- package/build/components/grid/grid.d.ts +3 -2
- package/build/components/iconButton/index.d.ts +35 -0
- package/build/components/index.d.ts +2 -0
- package/build/components/modal/contentDiv.d.ts +1 -1
- package/build/components/pagination/pagination.d.ts +1 -1
- package/build/components/radioButton/radioButton.d.ts +2 -1
- package/build/components/selectInput/inputLabelSelect.d.ts +2 -2
- package/build/components/selectInput/selectInput.d.ts +1 -0
- package/build/components/tab/index.d.ts +1 -0
- package/build/components/textArea/textArea.d.ts +3 -0
- package/build/components/textInput/textInput.d.ts +1 -0
- package/build/components/toggleSwitch/toggleSwitch.d.ts +2 -1
- package/build/components/tooltip/tooltip.d.ts +1 -0
- package/build/design/skoda/components/tabs/index.d.ts +2 -0
- package/build/design/skoda/components/tabs/theme.tab.d.ts +2 -0
- package/build/design/skoda/components/tabs/theme.tabs.d.ts +2 -0
- package/build/design/skoda/components/theme.baseline.d.ts +3 -0
- package/build/design/skoda/components/theme.button.d.ts +2 -43
- package/build/design/skoda/components/theme.buttonBase.d.ts +2 -0
- package/build/design/skoda/components/theme.checkbox.d.ts +2 -2
- package/build/design/skoda/components/theme.chip.d.ts +2 -10
- package/build/design/skoda/components/theme.container.d.ts +2 -2
- package/build/design/skoda/components/theme.dialog.d.ts +2 -0
- package/build/design/skoda/components/theme.dialogActions.d.ts +2 -0
- package/build/design/skoda/components/theme.dialogTitle.d.ts +2 -0
- package/build/design/skoda/components/theme.filledInput.d.ts +2 -0
- package/build/design/skoda/components/theme.formControl.d.ts +2 -0
- package/build/design/skoda/components/theme.formControlLabel.d.ts +2 -2
- package/build/design/skoda/components/theme.formHelperText.d.ts +2 -0
- package/build/design/skoda/components/theme.formLabel.d.ts +2 -0
- package/build/design/skoda/components/theme.iconButton.d.ts +3 -0
- package/build/design/skoda/components/theme.input.d.ts +2 -0
- package/build/design/skoda/components/theme.inputAdornment.d.ts +2 -0
- package/build/design/skoda/components/theme.inputBase.d.ts +2 -0
- package/build/design/skoda/components/theme.inputLabel.d.ts +2 -0
- package/build/design/skoda/components/theme.list.d.ts +2 -0
- package/build/design/skoda/components/theme.listItemText.d.ts +2 -0
- package/build/design/skoda/components/theme.menuItem.d.ts +2 -2
- package/build/design/skoda/components/theme.paper.d.ts +2 -0
- package/build/design/skoda/components/theme.popover.d.ts +2 -0
- package/build/design/skoda/components/theme.radio.d.ts +2 -2
- package/build/design/skoda/components/theme.switch.d.ts +2 -6
- package/build/design/skoda/index.d.ts +10 -4
- package/build/design/skoda/{theme.palette-new-ci.d.ts → theme.extensions.d.ts} +42 -5
- package/build/design/skoda/theme.palette.d.ts +2 -0
- package/build/design/skoda/theme.typography.d.ts +11 -36
- package/build/eula.txt +40 -0
- package/build/index.d.ts +1 -0
- package/build/index.es.js +15 -2
- package/build/index.es.js.map +1 -1
- package/build/index.js +15 -2
- package/build/index.js.map +1 -1
- package/build/layout/Header/Header.d.ts +8 -0
- package/build/layout/Header/HeaderButton.d.ts +9 -0
- package/build/layout/Header/HeaderLogo.d.ts +9 -0
- package/build/layout/Header/HeaderNavigationItem.d.ts +16 -0
- package/build/layout/Header/HeaderOverheadItem.d.ts +13 -0
- package/build/layout/Header/HeaderSkodaLogo.d.ts +4 -0
- package/build/layout/Header/PredefinedHeaderButtons.d.ts +14 -0
- package/build/layout/Header/index.d.ts +7 -0
- package/build/layout/index.d.ts +1 -0
- package/build/organisms/carousel/carousel.d.ts +2 -2
- package/build/organisms/carousel/carouselButton.d.ts +3 -3
- package/build/organisms/carousel/carouselTemplate.d.ts +2 -2
- package/build/organisms/carousel2/cardCarousel/cardCarousel.d.ts +5 -0
- package/build/organisms/carousel2/cardCarousel/index.d.ts +1 -0
- package/build/organisms/carousel2/carousel2.d.ts +131 -0
- package/build/organisms/carousel2/carouselButton.d.ts +11 -0
- package/build/organisms/carousel2/carouselTemplate.d.ts +8 -0
- package/build/organisms/carousel2/components/DotButton.d.ts +7 -0
- package/build/organisms/carousel2/components/ItemsContainer.d.ts +7 -0
- package/build/organisms/carousel2/components/NavButton.d.ts +15 -0
- package/build/organisms/carousel2/components/Numbering.d.ts +12 -0
- package/build/organisms/carousel2/components/ScrollSnapDots.d.ts +6 -0
- package/build/organisms/carousel2/components/ViewPort.d.ts +9 -0
- package/build/organisms/carousel2/galleryCarousel/GalleryItemText.d.ts +5 -0
- package/build/organisms/carousel2/galleryCarousel/galleryCarousel.d.ts +35 -0
- package/build/organisms/carousel2/galleryCarousel/galleryCarouselItem.d.ts +14 -0
- package/build/organisms/carousel2/galleryCarousel/galleryContext.d.ts +21 -0
- package/build/organisms/carousel2/galleryCarousel/galleryItemContext.d.ts +5 -0
- package/build/organisms/carousel2/galleryCarousel/galleryItemHeading.d.ts +5 -0
- package/build/organisms/carousel2/galleryCarousel/index.d.ts +4 -0
- package/build/organisms/carousel2/heroCarousel/HeroCarouselSlide.d.ts +12 -0
- package/build/organisms/carousel2/heroCarousel/heroCarousel.d.ts +13 -0
- package/build/organisms/carousel2/heroCarousel/heroCarouselContext.d.ts +12 -0
- package/build/organisms/carousel2/heroCarousel/index.d.ts +2 -0
- package/build/organisms/carousel2/hooks/useContainerPeek.d.ts +13 -0
- package/build/organisms/carousel2/hooks/useDefaultProps.d.ts +2 -0
- package/build/organisms/carousel2/hooks/useEmbla.d.ts +2 -0
- package/build/organisms/carousel2/hooks/useEmblaHover.d.ts +5 -0
- package/build/organisms/carousel2/hooks/useEmblaScroll.d.ts +3 -0
- package/build/organisms/carousel2/hooks/useEmblaSelect.d.ts +7 -0
- package/build/organisms/carousel2/index.d.ts +3 -0
- package/build/organisms/carousel2/styledComponents/styledCarouselHorizontal.d.ts +12 -0
- package/build/organisms/carousel2/utils/ResponsiveType.d.ts +14 -0
- package/build/organisms/common/styled/cardStandardWrapperStyled.d.ts +1 -1
- package/build/organisms/index.d.ts +1 -0
- package/build/organisms/shortcutLink/shortcutLink.d.ts +2 -2
- package/package.json +105 -104
- package/theme/skoda/globals.css +85 -17
- package/build/design/skoda/components/theme.menu.d.ts +0 -2
- package/build/design/skoda/components/theme.tab.d.ts +0 -2
- package/build/design/skoda/theme.baseline.d.ts +0 -5
package/README.md
CHANGED
|
@@ -1,120 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
> Flow Web Library is the REACT implementation of the Skoda Flow Design system:
|
|
4
|
-
> https://
|
|
5
|
-
>
|
|
6
|
-
> This package is a set of all assets for frontend web development and set of react components for Skoda Auto web applications.
|
|
7
|
-
|
|
8
|
-
## Installation
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
const MyComponents = () => {
|
|
83
|
-
return <Button label="Primary" />
|
|
84
|
-
}
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
For detailed documentation about Flow foundation visit:
|
|
88
|
-
https://skodaauto.frontify.com/d/SCWeidKKNkoy/web
|
|
89
|
-
|
|
90
|
-
For preview of components and Storybook visit:
|
|
91
|
-
https://skodaflow-web.azurewebsites.net/
|
|
92
|
-
|
|
93
|
-
## Additional usage
|
|
94
|
-
|
|
95
|
-
All components are now based on most powerfull and popular library @mui/material.
|
|
96
|
-
This core library was used for speed up development of flow components and web-library is the set of high order components designed by Skoda Flow theme.
|
|
97
|
-
For more details about core library please visit: https://mui.com/
|
|
98
|
-
|
|
99
|
-
If there is no prepared component in @skodaflow/web-library what you need,
|
|
100
|
-
you still can use all components available in core MUI library.
|
|
101
|
-
|
|
102
|
-
#### Migration from 1.x to 2.x
|
|
103
|
-
|
|
104
|
-
1. update @skodaflow/web-library to version 2.x and install dependencies
|
|
105
|
-
|
|
106
|
-
```
|
|
107
|
-
npm install @mui/material @emotion/react @emotion/styled @skodaflow/web-library@^2.0.0 --save
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
2. wrap your application to SkodaTheme
|
|
111
|
-
|
|
112
|
-
```
|
|
113
|
-
import { SkodaTheme } from '@skodaflow/web-library';
|
|
114
|
-
|
|
115
|
-
<SkodaTheme>
|
|
116
|
-
<App />
|
|
117
|
-
</SkodaTheme>
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
3. Remove this import from root: ~~import '@skodaflow/web-library/theme/skoda'~~
|
|
1
|
+
# `@skodaflow/web-library`
|
|
2
|
+
|
|
3
|
+
> Flow Web Library is the REACT implementation of the Skoda Flow Design system:
|
|
4
|
+
> https://skoda-brand.com/hub/26
|
|
5
|
+
>
|
|
6
|
+
> This package is a set of all assets for frontend web development and set of react components for Skoda Auto web applications.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
Library is located in public NPM repository.
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
# for npm users
|
|
14
|
+
npm i @emotion/react @emotion/styled @mui/material @mui/system react @skodaflow/web-library
|
|
15
|
+
|
|
16
|
+
# for yarn users
|
|
17
|
+
yarn add @emotion/react @emotion/styled @mui/material @mui/system react @skodaflow/web-library
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
@mui/material is the peer dependency (minimal required version is 5.9.0).
|
|
21
|
+
According to documentation, @mui/material has another peer dependency to @emotion, so you need to install all dependencies. For more details: https://mui.com/getting-started/installation/
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
### Basic Usage
|
|
26
|
+
|
|
27
|
+
Use theme provider in the root component of your application (eg. App.tsx).
|
|
28
|
+
|
|
29
|
+
```tsx
|
|
30
|
+
// use library provider
|
|
31
|
+
import { SkodaThemeProvider } from '@skodaflow/web-library';
|
|
32
|
+
...
|
|
33
|
+
<SkodaThemeProvider>
|
|
34
|
+
<App/>
|
|
35
|
+
</SkodaThemeProvider>
|
|
36
|
+
|
|
37
|
+
// use MUI provider with custom theme
|
|
38
|
+
// this allows to change skoda theme when needed
|
|
39
|
+
import { skodaTheme } from '@skodaflow/web-library';
|
|
40
|
+
import { ThemeProvider } from '@mui/material';
|
|
41
|
+
...
|
|
42
|
+
<ThemeProvider theme={skodaTheme}>
|
|
43
|
+
<App/>
|
|
44
|
+
</ThemeProvider>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Global Styles
|
|
48
|
+
|
|
49
|
+
All content inside theme provider is now styled according to Skoda Flow Design System.
|
|
50
|
+
Content out of the SkodaTheme will stay untouched. Skoda Flow Design System will be applied only on child elements.
|
|
51
|
+
For global usage of foundation as typography, colors and effects variables out of the SkodaTheme wrapper include global stylesheet
|
|
52
|
+
|
|
53
|
+
```tsx
|
|
54
|
+
import "@skodaflow/web-library/theme/skoda/globals.css";
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Fonts
|
|
58
|
+
|
|
59
|
+
If your application is created from scratch without assets like a fonts, and these assets are not delivered to client by higher scope (any kind of Layout or runtime where is your application running), then you need to include Skoda Next font from @skodaflow/web-library.
|
|
60
|
+
|
|
61
|
+
```tsx
|
|
62
|
+
import "@skodaflow/web-library/theme/skoda/fonts.css";
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Please, take care about including Skoda Next font to your application, because it is the important part of Skoda Flow Design System.
|
|
66
|
+
|
|
67
|
+
### Icons
|
|
68
|
+
|
|
69
|
+
If your application need to use SkodaNext icon font, include icon font asset too.
|
|
70
|
+
|
|
71
|
+
```tsx
|
|
72
|
+
import "@skodaflow/web-library/theme/skoda/icons.css";
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
For detailed documentation about Flow foundation visit:
|
|
78
|
+
https://skodaauto.frontify.com/d/SCWeidKKNkoy/web
|
|
79
|
+
|
|
80
|
+
For preview of components and Storybook visit:
|
|
81
|
+
https://skodaflow-web.azurewebsites.net/
|
package/build/README.md
CHANGED
|
@@ -1,120 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
> Flow Web Library is the REACT implementation of the Skoda Flow Design system:
|
|
4
|
-
> https://
|
|
5
|
-
>
|
|
6
|
-
> This package is a set of all assets for frontend web development and set of react components for Skoda Auto web applications.
|
|
7
|
-
|
|
8
|
-
## Installation
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
const MyComponents = () => {
|
|
83
|
-
return <Button label="Primary" />
|
|
84
|
-
}
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
For detailed documentation about Flow foundation visit:
|
|
88
|
-
https://skodaauto.frontify.com/d/SCWeidKKNkoy/web
|
|
89
|
-
|
|
90
|
-
For preview of components and Storybook visit:
|
|
91
|
-
https://skodaflow-web.azurewebsites.net/
|
|
92
|
-
|
|
93
|
-
## Additional usage
|
|
94
|
-
|
|
95
|
-
All components are now based on most powerfull and popular library @mui/material.
|
|
96
|
-
This core library was used for speed up development of flow components and web-library is the set of high order components designed by Skoda Flow theme.
|
|
97
|
-
For more details about core library please visit: https://mui.com/
|
|
98
|
-
|
|
99
|
-
If there is no prepared component in @skodaflow/web-library what you need,
|
|
100
|
-
you still can use all components available in core MUI library.
|
|
101
|
-
|
|
102
|
-
#### Migration from 1.x to 2.x
|
|
103
|
-
|
|
104
|
-
1. update @skodaflow/web-library to version 2.x and install dependencies
|
|
105
|
-
|
|
106
|
-
```
|
|
107
|
-
npm install @mui/material @emotion/react @emotion/styled @skodaflow/web-library@^2.0.0 --save
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
2. wrap your application to SkodaTheme
|
|
111
|
-
|
|
112
|
-
```
|
|
113
|
-
import { SkodaTheme } from '@skodaflow/web-library';
|
|
114
|
-
|
|
115
|
-
<SkodaTheme>
|
|
116
|
-
<App />
|
|
117
|
-
</SkodaTheme>
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
3. Remove this import from root: ~~import '@skodaflow/web-library/theme/skoda'~~
|
|
1
|
+
# `@skodaflow/web-library`
|
|
2
|
+
|
|
3
|
+
> Flow Web Library is the REACT implementation of the Skoda Flow Design system:
|
|
4
|
+
> https://skoda-brand.com/hub/26
|
|
5
|
+
>
|
|
6
|
+
> This package is a set of all assets for frontend web development and set of react components for Skoda Auto web applications.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
Library is located in public NPM repository.
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
# for npm users
|
|
14
|
+
npm i @emotion/react @emotion/styled @mui/material @mui/system react @skodaflow/web-library
|
|
15
|
+
|
|
16
|
+
# for yarn users
|
|
17
|
+
yarn add @emotion/react @emotion/styled @mui/material @mui/system react @skodaflow/web-library
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
@mui/material is the peer dependency (minimal required version is 5.9.0).
|
|
21
|
+
According to documentation, @mui/material has another peer dependency to @emotion, so you need to install all dependencies. For more details: https://mui.com/getting-started/installation/
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
### Basic Usage
|
|
26
|
+
|
|
27
|
+
Use theme provider in the root component of your application (eg. App.tsx).
|
|
28
|
+
|
|
29
|
+
```tsx
|
|
30
|
+
// use library provider
|
|
31
|
+
import { SkodaThemeProvider } from '@skodaflow/web-library';
|
|
32
|
+
...
|
|
33
|
+
<SkodaThemeProvider>
|
|
34
|
+
<App/>
|
|
35
|
+
</SkodaThemeProvider>
|
|
36
|
+
|
|
37
|
+
// use MUI provider with custom theme
|
|
38
|
+
// this allows to change skoda theme when needed
|
|
39
|
+
import { skodaTheme } from '@skodaflow/web-library';
|
|
40
|
+
import { ThemeProvider } from '@mui/material';
|
|
41
|
+
...
|
|
42
|
+
<ThemeProvider theme={skodaTheme}>
|
|
43
|
+
<App/>
|
|
44
|
+
</ThemeProvider>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Global Styles
|
|
48
|
+
|
|
49
|
+
All content inside theme provider is now styled according to Skoda Flow Design System.
|
|
50
|
+
Content out of the SkodaTheme will stay untouched. Skoda Flow Design System will be applied only on child elements.
|
|
51
|
+
For global usage of foundation as typography, colors and effects variables out of the SkodaTheme wrapper include global stylesheet
|
|
52
|
+
|
|
53
|
+
```tsx
|
|
54
|
+
import "@skodaflow/web-library/theme/skoda/globals.css";
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Fonts
|
|
58
|
+
|
|
59
|
+
If your application is created from scratch without assets like a fonts, and these assets are not delivered to client by higher scope (any kind of Layout or runtime where is your application running), then you need to include Skoda Next font from @skodaflow/web-library.
|
|
60
|
+
|
|
61
|
+
```tsx
|
|
62
|
+
import "@skodaflow/web-library/theme/skoda/fonts.css";
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Please, take care about including Skoda Next font to your application, because it is the important part of Skoda Flow Design System.
|
|
66
|
+
|
|
67
|
+
### Icons
|
|
68
|
+
|
|
69
|
+
If your application need to use SkodaNext icon font, include icon font asset too.
|
|
70
|
+
|
|
71
|
+
```tsx
|
|
72
|
+
import "@skodaflow/web-library/theme/skoda/icons.css";
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
For detailed documentation about Flow foundation visit:
|
|
78
|
+
https://skodaauto.frontify.com/d/SCWeidKKNkoy/web
|
|
79
|
+
|
|
80
|
+
For preview of components and Storybook visit:
|
|
81
|
+
https://skodaflow-web.azurewebsites.net/
|
|
@@ -39,4 +39,7 @@ export interface BackdropProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
39
39
|
*/
|
|
40
40
|
onClose?: (isOpen: boolean) => void;
|
|
41
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated This component is deprecated. Use themed Backdrop component from @mui/material instead
|
|
44
|
+
*/
|
|
42
45
|
export declare const Backdrop: React.ForwardRefExoticComponent<BackdropProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -52,5 +52,6 @@ export interface ButtonProps extends Omit<React.HTMLAttributes<HTMLButtonElement
|
|
|
52
52
|
* Properties are inherited from HTML Button element.
|
|
53
53
|
* @param props ButtonProps
|
|
54
54
|
* @returns React Functional Component
|
|
55
|
+
* @deprecated Use Button component from '@mui/material' module instead.
|
|
55
56
|
*/
|
|
56
57
|
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -15,7 +15,7 @@ export declare const MenuListStyled: import("@emotion/styled").StyledComponent<{
|
|
|
15
15
|
sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
|
|
16
16
|
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "key" | keyof import("react").HTMLAttributes<HTMLUListElement>> & {
|
|
17
17
|
ref?: import("react").Ref<HTMLUListElement>;
|
|
18
|
-
}, keyof import("@mui/material/OverridableComponent").CommonProps | "
|
|
18
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "autoFocus" | "children" | "autoFocusItem" | "disabledItemsFocusable" | "disableListWrap" | "variant" | "dense" | "disablePadding" | "subheader" | "sx"> & {
|
|
19
19
|
theme?: import("@emotion/react").Theme;
|
|
20
20
|
} & {
|
|
21
21
|
theme?: any;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const PopperStyled: import("@emotion/styled").StyledComponent<
|
|
2
|
+
export declare const PopperStyled: import("@emotion/styled").StyledComponent<Omit<import("@mui/base").PopperProps<"div">, "direction"> & {
|
|
3
|
+
component?: import("react").ElementType<any>;
|
|
4
|
+
components?: {
|
|
5
|
+
Root?: import("react").ElementType<any>;
|
|
6
|
+
};
|
|
7
|
+
componentsProps?: {
|
|
8
|
+
root?: import("@mui/base").SlotComponentProps<"div", import("@mui/base").PopperRootSlotPropsOverrides, import("@mui/base").PopperOwnProps>;
|
|
9
|
+
};
|
|
10
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
|
|
11
|
+
} & import("react").RefAttributes<HTMLDivElement> & {
|
|
3
12
|
theme?: import("@emotion/react").Theme;
|
|
4
13
|
} & {
|
|
5
14
|
theme?: any;
|
|
@@ -50,5 +50,6 @@ export interface CheckboxProps extends Omit<React.HTMLAttributes<HTMLButtonEleme
|
|
|
50
50
|
* Properties are inherited from HTML Button element.
|
|
51
51
|
* @param props CheckboxProps
|
|
52
52
|
* @returns React Functional Component
|
|
53
|
+
* @deprecated Use Checkbox component from '@mui/material' module instead.
|
|
53
54
|
*/
|
|
54
55
|
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -35,5 +35,6 @@ export interface ChipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
35
35
|
* Properties are inherited from HTML Div element.
|
|
36
36
|
* @param props ChipProps
|
|
37
37
|
* @returns React Functional Component
|
|
38
|
+
* @deprecated This component is deprecated. Use themed Chip Component from @mui/material instead.
|
|
38
39
|
*/
|
|
39
40
|
export declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface HelperTextProps {
|
|
3
3
|
/**
|
|
4
4
|
* Disabled, not clickable
|
|
@@ -25,5 +25,5 @@ export interface HelperTextProps {
|
|
|
25
25
|
*/
|
|
26
26
|
type?: 'number' | 'text';
|
|
27
27
|
}
|
|
28
|
-
declare const HelperText: ({ disabled, hasError, helpText, maxChars, currentValue, type }: HelperTextProps) => JSX.Element;
|
|
28
|
+
declare const HelperText: ({ disabled, hasError, helpText, maxChars, currentValue, type }: HelperTextProps) => React.JSX.Element;
|
|
29
29
|
export default HelperText;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface ImageComponentProps {
|
|
3
3
|
/**
|
|
4
4
|
* The source of the image.
|
|
@@ -21,5 +21,5 @@ interface ImageComponentProps {
|
|
|
21
21
|
*/
|
|
22
22
|
fallbackImage?: string;
|
|
23
23
|
}
|
|
24
|
-
declare const ImageComponent: ({ image, alt, fallbackImage, height, width }: ImageComponentProps) => JSX.Element;
|
|
24
|
+
declare const ImageComponent: ({ image, alt, fallbackImage, height, width }: ImageComponentProps) => React.JSX.Element;
|
|
25
25
|
export default ImageComponent;
|
|
@@ -13,5 +13,5 @@ export interface ResizableSliderInputInterface {
|
|
|
13
13
|
decimalSeparator?: '.' | ',';
|
|
14
14
|
hiddenDecimalSeparator?: boolean;
|
|
15
15
|
}
|
|
16
|
-
declare const ResizableSliderInput: ({ value: values, onChange, isCurrencyInFront, textDescription, labelText, className, id, thumb, disabled, thousandsSeparator, decimalSeparator, hiddenDecimalSeparator, }: ResizableSliderInputInterface) => JSX.Element;
|
|
16
|
+
declare const ResizableSliderInput: ({ value: values, onChange, isCurrencyInFront, textDescription, labelText, className, id, thumb, disabled, thousandsSeparator, decimalSeparator, hiddenDecimalSeparator, }: ResizableSliderInputInterface) => React.JSX.Element;
|
|
17
17
|
export default ResizableSliderInput;
|
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @description TextInput styling definition based on props
|
|
3
3
|
*/
|
|
4
|
-
declare const TextFieldStyled: import("@emotion/styled").StyledComponent<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
hasError?: boolean;
|
|
8
|
-
hideBg?: boolean;
|
|
9
|
-
icon?: string;
|
|
10
|
-
focused?: boolean;
|
|
11
|
-
hovered?: boolean;
|
|
12
|
-
}) | (import("@mui/material/TextField").FilledTextFieldProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
13
|
-
isSelect?: boolean;
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
hasError?: boolean;
|
|
16
|
-
hideBg?: boolean;
|
|
17
|
-
icon?: string;
|
|
18
|
-
focused?: boolean;
|
|
19
|
-
hovered?: boolean;
|
|
20
|
-
}) | (import("@mui/material/TextField").OutlinedTextFieldProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
4
|
+
declare const TextFieldStyled: import("@emotion/styled").StyledComponent<{
|
|
5
|
+
variant?: import("@mui/material/TextField").TextFieldVariants;
|
|
6
|
+
} & Omit<import("@mui/material/TextField").FilledTextFieldProps | import("@mui/material/TextField").OutlinedTextFieldProps | import("@mui/material/TextField").StandardTextFieldProps, "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & ((import("@mui/material/TextField").FilledTextFieldProps | import("@mui/material/TextField").OutlinedTextFieldProps | import("@mui/material/TextField").StandardTextFieldProps) & {
|
|
21
7
|
isSelect?: boolean;
|
|
22
8
|
disabled?: boolean;
|
|
23
9
|
hasError?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface HelperTextProps {
|
|
3
3
|
/**
|
|
4
4
|
* Disabled, not clickable
|
|
@@ -26,5 +26,5 @@ export interface HelperTextProps {
|
|
|
26
26
|
type?: 'number' | 'text';
|
|
27
27
|
width?: string;
|
|
28
28
|
}
|
|
29
|
-
declare const TextInputHelperText: ({ disabled, hasError, helpText, maxChars, currentValue, type, width }: HelperTextProps) => JSX.Element;
|
|
29
|
+
declare const TextInputHelperText: ({ disabled, hasError, helpText, maxChars, currentValue, type, width }: HelperTextProps) => React.JSX.Element;
|
|
30
30
|
export default TextInputHelperText;
|
|
@@ -3,6 +3,7 @@ import React, { ReactNode } from 'react';
|
|
|
3
3
|
* @interface ContainerProps
|
|
4
4
|
* @description Base definition of SkodaFlow Container independent on core implementation.
|
|
5
5
|
* Properties are inherited from HTML Container element
|
|
6
|
+
* @deprecated this Component is deprecated. Use Container from @mui/material instead
|
|
6
7
|
*/
|
|
7
8
|
export interface ContainerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color' | 'size'> {
|
|
8
9
|
/**
|
|
@@ -41,4 +42,4 @@ export interface ContainerProps extends Omit<React.HTMLAttributes<HTMLDivElement
|
|
|
41
42
|
* @param props ContainerProps
|
|
42
43
|
* @returns React Functional Component
|
|
43
44
|
*/
|
|
44
|
-
export declare const Container: (props: any) => JSX.Element;
|
|
45
|
+
export declare const Container: (props: any) => React.JSX.Element;
|
|
@@ -23,5 +23,6 @@ export interface DividerProps extends React.HTMLAttributes<HTMLHRElement> {
|
|
|
23
23
|
* Properties are inherited from HTML HR Attribetes element.
|
|
24
24
|
* @param props DividerProps
|
|
25
25
|
* @returns React Functional Component
|
|
26
|
+
* @deprecated This component is deprecated. Use themed Divider component from '@mui/material' instead.
|
|
26
27
|
*/
|
|
27
28
|
export declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLHRElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { GridDirection, GridSize, GridSpacing } from '@mui/material/Grid';
|
|
2
2
|
import { Theme } from '@mui/material/styles';
|
|
3
|
-
import { GridSpacing, GridDirection, GridSize } from '@mui/material/Grid';
|
|
4
3
|
import { ResponsiveStyleValue, SxProps } from '@mui/system';
|
|
4
|
+
import React, { ReactNode } from 'react';
|
|
5
5
|
/**
|
|
6
6
|
* @interface GridProps
|
|
7
7
|
* @description Base definition of SkodaFlow Grid independent on core implementation.
|
|
@@ -112,5 +112,6 @@ export interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
112
112
|
* @description SkodaFlow Grid component.
|
|
113
113
|
* @param props GridProps
|
|
114
114
|
* @returns React Functional Component
|
|
115
|
+
* @deprecated This component is deprecated. Use Grid and Container components from @mui/material
|
|
115
116
|
*/
|
|
116
117
|
export declare const Grid: React.FC<GridProps>;
|