@skodaflow/web-library 3.2.4 → 3.2.5
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/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/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/index.d.ts +1 -0
- package/package.json +105 -104
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/
|
package/build/eula.txt
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
EULA - SKODA AUTO Libraries
|
|
2
|
+
ŠKODA AUTO a.s. with registered offices at Mladá Boleslav, tř. Václava Klementa 869, Mladá Boleslav II, 293 01 Mladá Boleslav, Czech Republic, ID No. 00177041, registered in the commercial Register held by Městský Soud v Praze (Metropolitan Court in Prague), section B, entry 332 (“ŠKODA AUTO”) releases this End-User Licence Agreement (“EULA”) to specify the rights and obligations when using library/package applicable to this EULA (“Library”).
|
|
3
|
+
|
|
4
|
+
Specification of the Library
|
|
5
|
+
|
|
6
|
+
Specification of the library is not part of this EULA and is provided by suitable documentation, shiped with beforementioned library.
|
|
7
|
+
|
|
8
|
+
The Library is dedicated to sustaining all ŠKODA AUTO web development projects.
|
|
9
|
+
|
|
10
|
+
License
|
|
11
|
+
|
|
12
|
+
ŠKODA AUTO declares that all source code, files, fonts and all other assets are exclusively owned by ŠKODA AUTO.
|
|
13
|
+
|
|
14
|
+
ŠKODA AUTO grants you a revocable, non-exclusive, non-transferable, limited license to download, install and use the Library strictly in accordance with this EULA.
|
|
15
|
+
|
|
16
|
+
If you violate any of these limitations or restrictions, the license grant will automatically and immediately expire. Any usage of the Library outside the scope of the applicable license constitutes an infringement of ŠKODA AUTO’s intellectual property rights as well as a material breach of this EULA.
|
|
17
|
+
|
|
18
|
+
Restrictions
|
|
19
|
+
|
|
20
|
+
You agree not to, and you will not permit others to:
|
|
21
|
+
|
|
22
|
+
license, sell, rent, lease, assign, distribute, transmit, host, outsource, disclose or otherwise commercially exploit the Library or make the Library available to any third party;
|
|
23
|
+
provide or make available any features or functionality of the Library to any person or entity outside of your organization;
|
|
24
|
+
change, decompile or disassemble the Library or its source code, algorithms, methods or techniques;
|
|
25
|
+
remove, alter or obscure any proprietary notices, labels or marks in the Library;
|
|
26
|
+
translate, adapt, arrange, or create derivative works based on, or otherwise modify the Library for any purpose except of the purpose which is stated in this EULA;
|
|
27
|
+
use the Application in excess of, or in any manner inconsistent with your entitlements.
|
|
28
|
+
The Library may only be used for the purpose of creating products for ŠKODA AUTO. You agree not to use the Library for any other purpose and outside of the scope of business with ŠKODA AUTO.
|
|
29
|
+
|
|
30
|
+
Copyright
|
|
31
|
+
|
|
32
|
+
ŠKODA AUTO and its licensors retain title to and ownership of, and all other rights with respect to, the Library, including, without limitation, any related copyrights, trademarks, trade secrets, patents, and other intellectual property rights. You have only the limited license granted with respect to the Library expressly set forth in this EULA. You acknowledge and agree that the Library is licensed, not sold, and that rights to use the Library are acquired only under the license from ŠKODA AUTO.
|
|
33
|
+
|
|
34
|
+
Modifications of the Library
|
|
35
|
+
|
|
36
|
+
ŠKODA AUTO reserves the right to modify, suspend or discontinue, temporarily or permanently, the Library or any service to which it connects, with or without notice and without liability to you.
|
|
37
|
+
|
|
38
|
+
The Library will not be updated or maintained regularly. All updates depend on the decision of ŠKODA AUTO.
|
|
39
|
+
|
|
40
|
+
In Mladá Boleslav on 2022
|
package/build/index.d.ts
CHANGED