@skodaflow/web-library 2.1.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 +107 -0
- package/build/README.md +107 -0
- package/build/components/accordion/accordion.d.ts +71 -0
- package/build/components/accordion/index.d.ts +1 -0
- package/build/components/backdrop/backdrop.d.ts +42 -0
- package/build/components/backdrop/index.d.ts +1 -0
- package/build/components/banner/banner.d.ts +57 -0
- package/build/components/banner/index.d.ts +1 -0
- package/build/components/button/button.d.ts +51 -0
- package/build/components/button/index.d.ts +1 -0
- package/build/components/cardContainer/cardContainer.d.ts +21 -0
- package/build/components/cardContainer/index.d.ts +1 -0
- package/build/components/cardMenu/cardMenu.d.ts +85 -0
- package/build/components/cardMenu/hooks/useCardMenu.d.ts +7 -0
- package/build/components/cardMenu/index.d.ts +1 -0
- package/build/components/cardMenu/styled/drawerStyled.d.ts +6 -0
- package/build/components/cardMenu/styled/menuListStyled.d.ts +23 -0
- package/build/components/cardMenu/styled/popperStyled.d.ts +7 -0
- package/build/components/checkbox/checkbox.d.ts +54 -0
- package/build/components/checkbox/index.d.ts +1 -0
- package/build/components/chip/chipDropdownChildren/chipDropdownChildren.d.ts +31 -0
- package/build/components/chip/chipFocusVisibleStyled.d.ts +9 -0
- package/build/components/chip/chipImage/chipImage.d.ts +43 -0
- package/build/components/chip/chipMultiselect/multiSelectChip.d.ts +36 -0
- package/build/components/chip/index.d.ts +4 -0
- package/build/components/chip/regular/chip.d.ts +39 -0
- package/build/components/common/helperText.d.ts +29 -0
- package/build/components/common/hook/backdrop.d.ts +9 -0
- package/build/components/common/hook/useWindowSize.d.ts +5 -0
- package/build/components/common/imageComponent.d.ts +17 -0
- package/build/components/common/interface/textInputInterface.d.ts +96 -0
- package/build/components/common/menuContainer.d.ts +20 -0
- package/build/components/common/menuEmpty.d.ts +16 -0
- package/build/components/common/resizableSliderInput.d.ts +17 -0
- package/build/components/common/styled/buttonFocusVisibleStyled.d.ts +10 -0
- package/build/components/common/styled/formControlLabelStyled.d.ts +8 -0
- package/build/components/common/styled/helperTextContainerStyled.d.ts +11 -0
- package/build/components/common/styled/sliderValuesStyled.d.ts +9 -0
- package/build/components/common/styled/textFieldStyled.d.ts +29 -0
- package/build/components/common/textInputHelperText.d.ts +30 -0
- package/build/components/common/type/ButtonVariant.d.ts +1 -0
- package/build/components/container/container.d.ts +44 -0
- package/build/components/container/index.d.ts +1 -0
- package/build/components/controls/controls.d.ts +37 -0
- package/build/components/controls/index.d.ts +1 -0
- package/build/components/divider/divider.d.ts +27 -0
- package/build/components/divider/index.d.ts +1 -0
- package/build/components/drawer/drawer.d.ts +66 -0
- package/build/components/drawer/index.d.ts +1 -0
- package/build/components/flag/availableFLags.d.ts +1 -0
- package/build/components/flag/flag.d.ts +28 -0
- package/build/components/flag/index.d.ts +1 -0
- package/build/components/grid/grid.d.ts +116 -0
- package/build/components/grid/index.d.ts +1 -0
- package/build/components/icon/availableIcons.d.ts +1 -0
- package/build/components/icon/icon.d.ts +28 -0
- package/build/components/icon/index.d.ts +1 -0
- package/build/components/indicator/index.d.ts +1 -0
- package/build/components/indicator/indicator.d.ts +22 -0
- package/build/components/label/index.d.ts +1 -0
- package/build/components/label/label.d.ts +18 -0
- package/build/components/labelCO2/index.d.ts +1 -0
- package/build/components/labelCO2/labelCO2.d.ts +6 -0
- package/build/components/labelFeature/index.d.ts +1 -0
- package/build/components/labelFeature/labelFeature.d.ts +19 -0
- package/build/components/labelPromotional/index.d.ts +1 -0
- package/build/components/labelPromotional/labelPromotional.d.ts +26 -0
- package/build/components/labelStatus/index.d.ts +1 -0
- package/build/components/labelStatus/labelStatus.d.ts +19 -0
- package/build/components/menu/index.d.ts +1 -0
- package/build/components/menu/menu.d.ts +61 -0
- package/build/components/menuItem/index.d.ts +1 -0
- package/build/components/menuItem/menuItem.d.ts +29 -0
- package/build/components/modal/contentDiv.d.ts +14 -0
- package/build/components/modal/index.d.ts +1 -0
- package/build/components/modal/modal.d.ts +67 -0
- package/build/components/numbering/index.d.ts +1 -0
- package/build/components/numbering/numbering.d.ts +16 -0
- package/build/components/pagination/index.d.ts +1 -0
- package/build/components/pagination/pagination.d.ts +76 -0
- package/build/components/progressBar/components/loader.d.ts +28 -0
- package/build/components/progressBar/components/spinner.d.ts +28 -0
- package/build/components/progressBar/components/styledProgressBarMessage.d.ts +5 -0
- package/build/components/progressBar/index.d.ts +1 -0
- package/build/components/progressBar/progressBar.d.ts +10 -0
- package/build/components/radioButton/index.d.ts +1 -0
- package/build/components/radioButton/radioButton.d.ts +47 -0
- package/build/components/selectInput/formControlSelectStyled.d.ts +27 -0
- package/build/components/selectInput/hook/useSelectInput.d.ts +5 -0
- package/build/components/selectInput/index.d.ts +1 -0
- package/build/components/selectInput/inputLabelSelect.d.ts +8 -0
- package/build/components/selectInput/selectInput.d.ts +83 -0
- package/build/components/slider/containerStyled.d.ts +13 -0
- package/build/components/slider/index.d.ts +1 -0
- package/build/components/slider/slider.d.ts +139 -0
- package/build/components/snackbar/index.d.ts +1 -0
- package/build/components/snackbar/snackbar.d.ts +82 -0
- package/build/components/snackbar/snackbarMessage.d.ts +29 -0
- package/build/components/tab/hook/useTabs.d.ts +9 -0
- package/build/components/tab/index.d.ts +3 -0
- package/build/components/tab/menuTab.d.ts +36 -0
- package/build/components/tab/secondaryNavigation/secondaryNavigationTabs.d.ts +29 -0
- package/build/components/tab/secondaryNavigation/secondaryTabStyled.d.ts +13 -0
- package/build/components/tab/tab.d.ts +48 -0
- package/build/components/tab/tabPanel.d.ts +20 -0
- package/build/components/tab/tabStyled.d.ts +43 -0
- package/build/components/tab/tabs.d.ts +52 -0
- package/build/components/textArea/hook/useTextAreaEffect.d.ts +1 -0
- package/build/components/textArea/index.d.ts +1 -0
- package/build/components/textArea/textArea.d.ts +3 -0
- package/build/components/textInput/hook/useTextInput.d.ts +7 -0
- package/build/components/textInput/hook/useTextInputEffect.d.ts +1 -0
- package/build/components/textInput/index.d.ts +1 -0
- package/build/components/textInput/textInput.d.ts +9 -0
- package/build/components/toggleSwitch/index.d.ts +1 -0
- package/build/components/toggleSwitch/toggleSwitch.d.ts +46 -0
- package/build/components/tooltip/index.d.ts +1 -0
- package/build/components/tooltip/tooltip.d.ts +32 -0
- package/build/design/skoda/components/theme.accordion.d.ts +2 -0
- package/build/design/skoda/components/theme.backdrop.d.ts +2 -0
- package/build/design/skoda/components/theme.breakpoints.d.ts +9 -0
- package/build/design/skoda/components/theme.button.d.ts +40 -0
- package/build/design/skoda/components/theme.checkbox.d.ts +2 -0
- package/build/design/skoda/components/theme.chip.d.ts +11 -0
- package/build/design/skoda/components/theme.container.d.ts +3 -0
- package/build/design/skoda/components/theme.divider.d.ts +2 -0
- package/build/design/skoda/components/theme.drawer.d.ts +2 -0
- package/build/design/skoda/components/theme.formControlLabel.d.ts +2 -0
- package/build/design/skoda/components/theme.grid.d.ts +3 -0
- package/build/design/skoda/components/theme.icon.d.ts +10 -0
- package/build/design/skoda/components/theme.menu.d.ts +2 -0
- package/build/design/skoda/components/theme.menuItem.d.ts +2 -0
- package/build/design/skoda/components/theme.modal.d.ts +2 -0
- package/build/design/skoda/components/theme.pagination.d.ts +2 -0
- package/build/design/skoda/components/theme.radio.d.ts +2 -0
- package/build/design/skoda/components/theme.select.d.ts +2 -0
- package/build/design/skoda/components/theme.slider.d.ts +2 -0
- package/build/design/skoda/components/theme.snackbar.d.ts +2 -0
- package/build/design/skoda/components/theme.switch.d.ts +7 -0
- package/build/design/skoda/components/theme.tab.d.ts +2 -0
- package/build/design/skoda/components/theme.textField.d.ts +2 -0
- package/build/design/skoda/components/theme.tooltip.d.ts +2 -0
- package/build/design/skoda/index.d.ts +8 -0
- package/build/design/skoda/organisms/theme.card.d.ts +3 -0
- package/build/design/skoda/theme.baseline.d.ts +5 -0
- package/build/design/skoda/theme.breakpoints.d.ts +5 -0
- package/build/design/skoda/theme.constants.d.ts +7 -0
- package/build/design/skoda/theme.palette.d.ts +14 -0
- package/build/design/skoda/theme.typography.d.ts +22 -0
- package/build/index.d.ts +45 -0
- package/build/index.es.js +30 -0
- package/build/index.es.js.map +1 -0
- package/build/index.js +16 -0
- package/build/index.js.map +1 -0
- package/build/organisms/cardOwnedVehicle/cardOwnedVehicle.d.ts +118 -0
- package/build/organisms/cardOwnedVehicle/cardOwnedVehicleComponent.d.ts +4 -0
- package/build/organisms/cardOwnedVehicle/index.d.ts +1 -0
- package/build/organisms/cardPhotoAdjustable/cardPhotoAdjustable.d.ts +89 -0
- package/build/organisms/cardPhotoAdjustable/cardPhotoAdjustableComponent.d.ts +4 -0
- package/build/organisms/cardPhotoAdjustable/index.d.ts +1 -0
- package/build/organisms/cardPhotoFixed/cardPhotoFixed.d.ts +124 -0
- package/build/organisms/cardPhotoFixed/cardPhotoFixedComponent.d.ts +4 -0
- package/build/organisms/cardPhotoFixed/index.d.ts +1 -0
- package/build/organisms/cardPromoVehicle/cardPromoVehicle.d.ts +132 -0
- package/build/organisms/cardPromoVehicle/cardPromoVehicleComponent.d.ts +4 -0
- package/build/organisms/cardPromoVehicle/index.d.ts +1 -0
- package/build/organisms/cardTypeOnly/cardTypeOnly.d.ts +59 -0
- package/build/organisms/cardTypeOnly/cardTypeOnlyComponent.d.ts +4 -0
- package/build/organisms/cardTypeOnly/index.d.ts +1 -0
- package/build/organisms/carousel/carousel.d.ts +134 -0
- package/build/organisms/carousel/carouselButton.d.ts +11 -0
- package/build/organisms/carousel/carouselTemplate.d.ts +8 -0
- package/build/organisms/carousel/index.d.ts +1 -0
- package/build/organisms/carousel/styledComponents/styledCarouselHorizontal.d.ts +12 -0
- package/build/organisms/carousel/styledComponents/styledCarouselVertical.d.ts +8 -0
- package/build/organisms/common/buttonCardComponent/buttonCardComponent.d.ts +19 -0
- package/build/organisms/common/cardOpacitylayer/cardOpacityTyping.d.ts +2 -0
- package/build/organisms/common/infoTextCardComponent/infoTextCardComponent.d.ts +21 -0
- package/build/organisms/common/menuCardComponent/menuCardComponent.d.ts +47 -0
- package/build/organisms/common/styled/cardStandardWrapperStyled.d.ts +11 -0
- package/build/organisms/heroImageCard/heroImageCard.d.ts +100 -0
- package/build/organisms/heroImageCard/heroImageCardComponent.d.ts +4 -0
- package/build/organisms/heroImageCard/index.d.ts +1 -0
- package/build/organisms/heroImageCard/videoCardController.d.ts +12 -0
- package/build/organisms/maps/hook/useMap.d.ts +7 -0
- package/build/organisms/maps/index.d.ts +1 -0
- package/build/organisms/maps/mapComponents/infoWindowConfig.d.ts +5 -0
- package/build/organisms/maps/mapComponents/mapComponent.d.ts +16 -0
- package/build/organisms/maps/mapComponents/mapStyled.d.ts +9 -0
- package/build/organisms/maps/mapComponents/markerComponent.d.ts +22 -0
- package/build/organisms/maps/maps.d.ts +84 -0
- package/build/organisms/maps/utils/mapConfig.d.ts +29 -0
- package/build/organisms/maps/utils/mapIcons.d.ts +9 -0
- package/build/organisms/maps/utils/style.d.ts +19 -0
- package/build/organisms/shortcutLink/index.d.ts +1 -0
- package/build/organisms/shortcutLink/shortcutLink.d.ts +11 -0
- package/build/organisms/textCta/index.d.ts +1 -0
- package/build/organisms/textCta/textCta.d.ts +82 -0
- package/build/organisms/tile/index.d.ts +1 -0
- package/build/organisms/tile/tile.d.ts +85 -0
- package/build/utils/enum.d.ts +25 -0
- package/build/utils/icons.d.ts +1 -0
- package/build/utils/types.d.ts +5 -0
- package/build/utils/utilities.d.ts +11 -0
- package/package.json +114 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Black.ttf +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Black.woff +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Black.woff2 +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Bold.ttf +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Bold.woff +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Bold.woff2 +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Light.ttf +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Light.woff +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Light.woff2 +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Regular.ttf +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Regular.woff +0 -0
- package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Regular.woff2 +0 -0
- package/theme/skoda/fonts/SKODANextIcons-Filled.eot +0 -0
- package/theme/skoda/fonts/SKODANextIcons-Filled.woff +0 -0
- package/theme/skoda/fonts/SKODANextIcons-Regular.eot +0 -0
- package/theme/skoda/fonts/SKODANextIcons-Regular.woff +0 -0
- package/theme/skoda/fonts.css +1 -0
- package/theme/skoda/globals.css +1 -0
- package/theme/skoda/icons.css +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# `@skodaflow/web-library@2.x`
|
|
2
|
+
|
|
3
|
+
> Flow Web Library is the REACT implementation of the Skoda Flow Design system:
|
|
4
|
+
> https://skodaauto.frontify.com/d/SCWeidKKNkoy
|
|
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
|
+
#### Authorization
|
|
11
|
+
You need to have an access to Azure artifacts registry joined with @skodaflow scope:
|
|
12
|
+
registry=https://tfs.skoda-auto.com/tfs/WFA/_packaging/skodaflow-npm/npm/registry/
|
|
13
|
+
|
|
14
|
+
For detail information about access visit:
|
|
15
|
+
https://tfs.skoda-auto.com/tfs/WFA/Skoda_Flow/_packaging?_a=connect&feed=skodaflow-npm
|
|
16
|
+
|
|
17
|
+
#### Install package
|
|
18
|
+
|
|
19
|
+
For NPM use command:
|
|
20
|
+
```
|
|
21
|
+
npm install @mui/material @emotion/react @emotion/styled @skodaflow/web-library --save
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
For Yarn use command:
|
|
25
|
+
```
|
|
26
|
+
yarn add @mui/material @emotion/react @emotion/styled @skodaflow/web-library
|
|
27
|
+
```
|
|
28
|
+
@mui/material is the peer dependency but minimal required version is 5.0.1.
|
|
29
|
+
According to documentation, @mui/material has another peer dependency to @emotion, so you need to install all dependencies.
|
|
30
|
+
For more details: https://mui.com/getting-started/installation/
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
**1. Step.**
|
|
35
|
+
In the root component of your application, for example in app.jsx use SkodaTheme.
|
|
36
|
+
```
|
|
37
|
+
import { SkodaTheme } from '@skodaflow/web-library';
|
|
38
|
+
```
|
|
39
|
+
Then wrap your app into SkodaTheme:
|
|
40
|
+
```
|
|
41
|
+
<SkodaTheme>
|
|
42
|
+
<App />
|
|
43
|
+
</SkodaTheme>
|
|
44
|
+
```
|
|
45
|
+
All content inside this wrapper will now styled according to Skoda Flow Design System.
|
|
46
|
+
Content out of the SkodaTheme will stay untouched. Skoda Flow Design System will be aplied only on child elements.
|
|
47
|
+
For global usage of foundation as typography, colors and effects variables out of the SkodaTheme wrapper include global stylesheet:
|
|
48
|
+
```
|
|
49
|
+
import '@skodaflow/web-library/theme/skoda/globals.css';
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**1.1 Fonts.**
|
|
53
|
+
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.
|
|
54
|
+
```
|
|
55
|
+
import '@skodaflow/web-library/theme/skoda/fonts.css'
|
|
56
|
+
```
|
|
57
|
+
Please, take care about including Skoda Next font to your application, because it is the important part of Skoda Flow Design System.
|
|
58
|
+
|
|
59
|
+
**1.2 Icons.**
|
|
60
|
+
If your application need to use SkodaNext icon font, include icon font asset too.
|
|
61
|
+
```
|
|
62
|
+
import '@skodaflow/web-library/theme/skoda/icons.css'
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**2. Step.** Use prepared components from library, for example: Button.
|
|
66
|
+
```
|
|
67
|
+
import {Button} from '@skodaflow/web-library'
|
|
68
|
+
|
|
69
|
+
const MyComponents = () => {
|
|
70
|
+
return <Button label="Primary" />
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
For detailed documentation about Flow foundation visit:
|
|
75
|
+
https://skodaauto.frontify.com/d/SCWeidKKNkoy/web
|
|
76
|
+
|
|
77
|
+
For preview of components and Storybook visit:
|
|
78
|
+
https://primereactdesigner.azurewebsites.net/#/stories
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## Additional usage
|
|
82
|
+
|
|
83
|
+
All components are now based on most powerfull and popular library @mui/material.
|
|
84
|
+
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.
|
|
85
|
+
For more details about core library please visit: https://mui.com/
|
|
86
|
+
|
|
87
|
+
If there is no prepared component in @skodaflow/web-library what you need,
|
|
88
|
+
you still can use all components available in core MUI library.
|
|
89
|
+
|
|
90
|
+
#### Migration from 1.x to 2.x
|
|
91
|
+
|
|
92
|
+
1. update @skodaflow/web-library to version 2.x and install dependencies
|
|
93
|
+
```
|
|
94
|
+
npm install @mui/material @emotion/react @emotion/styled @skodaflow/web-library@^2.0.0 --save
|
|
95
|
+
```
|
|
96
|
+
2. wrap your application to SkodaTheme
|
|
97
|
+
```
|
|
98
|
+
import { SkodaTheme } from '@skodaflow/web-library';
|
|
99
|
+
|
|
100
|
+
<SkodaTheme>
|
|
101
|
+
<App />
|
|
102
|
+
</SkodaTheme>
|
|
103
|
+
```
|
|
104
|
+
3. Remove this import from root: ~~import '@skodaflow/web-library/theme/skoda'~~
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
package/build/README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# `@skodaflow/web-library@2.x`
|
|
2
|
+
|
|
3
|
+
> Flow Web Library is the REACT implementation of the Skoda Flow Design system:
|
|
4
|
+
> https://skodaauto.frontify.com/d/SCWeidKKNkoy
|
|
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
|
+
#### Authorization
|
|
11
|
+
You need to have an access to Azure artifacts registry joined with @skodaflow scope:
|
|
12
|
+
registry=https://tfs.skoda-auto.com/tfs/WFA/_packaging/skodaflow-npm/npm/registry/
|
|
13
|
+
|
|
14
|
+
For detail information about access visit:
|
|
15
|
+
https://tfs.skoda-auto.com/tfs/WFA/Skoda_Flow/_packaging?_a=connect&feed=skodaflow-npm
|
|
16
|
+
|
|
17
|
+
#### Install package
|
|
18
|
+
|
|
19
|
+
For NPM use command:
|
|
20
|
+
```
|
|
21
|
+
npm install @mui/material @emotion/react @emotion/styled @skodaflow/web-library --save
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
For Yarn use command:
|
|
25
|
+
```
|
|
26
|
+
yarn add @mui/material @emotion/react @emotion/styled @skodaflow/web-library
|
|
27
|
+
```
|
|
28
|
+
@mui/material is the peer dependency but minimal required version is 5.0.1.
|
|
29
|
+
According to documentation, @mui/material has another peer dependency to @emotion, so you need to install all dependencies.
|
|
30
|
+
For more details: https://mui.com/getting-started/installation/
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
**1. Step.**
|
|
35
|
+
In the root component of your application, for example in app.jsx use SkodaTheme.
|
|
36
|
+
```
|
|
37
|
+
import { SkodaTheme } from '@skodaflow/web-library';
|
|
38
|
+
```
|
|
39
|
+
Then wrap your app into SkodaTheme:
|
|
40
|
+
```
|
|
41
|
+
<SkodaTheme>
|
|
42
|
+
<App />
|
|
43
|
+
</SkodaTheme>
|
|
44
|
+
```
|
|
45
|
+
All content inside this wrapper will now styled according to Skoda Flow Design System.
|
|
46
|
+
Content out of the SkodaTheme will stay untouched. Skoda Flow Design System will be aplied only on child elements.
|
|
47
|
+
For global usage of foundation as typography, colors and effects variables out of the SkodaTheme wrapper include global stylesheet:
|
|
48
|
+
```
|
|
49
|
+
import '@skodaflow/web-library/theme/skoda/globals.css';
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**1.1 Fonts.**
|
|
53
|
+
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.
|
|
54
|
+
```
|
|
55
|
+
import '@skodaflow/web-library/theme/skoda/fonts.css'
|
|
56
|
+
```
|
|
57
|
+
Please, take care about including Skoda Next font to your application, because it is the important part of Skoda Flow Design System.
|
|
58
|
+
|
|
59
|
+
**1.2 Icons.**
|
|
60
|
+
If your application need to use SkodaNext icon font, include icon font asset too.
|
|
61
|
+
```
|
|
62
|
+
import '@skodaflow/web-library/theme/skoda/icons.css'
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**2. Step.** Use prepared components from library, for example: Button.
|
|
66
|
+
```
|
|
67
|
+
import {Button} from '@skodaflow/web-library'
|
|
68
|
+
|
|
69
|
+
const MyComponents = () => {
|
|
70
|
+
return <Button label="Primary" />
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
For detailed documentation about Flow foundation visit:
|
|
75
|
+
https://skodaauto.frontify.com/d/SCWeidKKNkoy/web
|
|
76
|
+
|
|
77
|
+
For preview of components and Storybook visit:
|
|
78
|
+
https://primereactdesigner.azurewebsites.net/#/stories
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## Additional usage
|
|
82
|
+
|
|
83
|
+
All components are now based on most powerfull and popular library @mui/material.
|
|
84
|
+
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.
|
|
85
|
+
For more details about core library please visit: https://mui.com/
|
|
86
|
+
|
|
87
|
+
If there is no prepared component in @skodaflow/web-library what you need,
|
|
88
|
+
you still can use all components available in core MUI library.
|
|
89
|
+
|
|
90
|
+
#### Migration from 1.x to 2.x
|
|
91
|
+
|
|
92
|
+
1. update @skodaflow/web-library to version 2.x and install dependencies
|
|
93
|
+
```
|
|
94
|
+
npm install @mui/material @emotion/react @emotion/styled @skodaflow/web-library@^2.0.0 --save
|
|
95
|
+
```
|
|
96
|
+
2. wrap your application to SkodaTheme
|
|
97
|
+
```
|
|
98
|
+
import { SkodaTheme } from '@skodaflow/web-library';
|
|
99
|
+
|
|
100
|
+
<SkodaTheme>
|
|
101
|
+
<App />
|
|
102
|
+
</SkodaTheme>
|
|
103
|
+
```
|
|
104
|
+
3. Remove this import from root: ~~import '@skodaflow/web-library/theme/skoda'~~
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material';
|
|
3
|
+
import { TransitionProps } from '@mui/material/transitions/transition';
|
|
4
|
+
/**
|
|
5
|
+
* @interface AccordionItem
|
|
6
|
+
* @description The interface describing the object that has to be provided to the array property 'items' in Accordion component.
|
|
7
|
+
* When accordion.allowMultipleExpand is set to false and more than one item has isDefaultExpanded set to true, only the first occurrence in the array will be deafault expanded.
|
|
8
|
+
* If no id is provided the component item receives indexed id -> panel${index}. The object is not changes.
|
|
9
|
+
* The property id is also the key of the every accordion component.
|
|
10
|
+
*/
|
|
11
|
+
export interface AccordionItem {
|
|
12
|
+
id?: string;
|
|
13
|
+
title: string;
|
|
14
|
+
content: string | React.ReactNode;
|
|
15
|
+
isDefaultExpanded?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @interface AccordionProps
|
|
20
|
+
* @description Base definition of SkodaFlow Accordion component independent on core implementation.
|
|
21
|
+
* Properties are inherited from HTML Div element
|
|
22
|
+
*/
|
|
23
|
+
export interface AccordionProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
24
|
+
/**
|
|
25
|
+
* The content of the component.
|
|
26
|
+
*/
|
|
27
|
+
items: Array<AccordionItem>;
|
|
28
|
+
/**
|
|
29
|
+
* Override or extend the styles applied to the component.
|
|
30
|
+
*/
|
|
31
|
+
classes?: object;
|
|
32
|
+
/**
|
|
33
|
+
* Callback fired when the expand/collapse state is changed.
|
|
34
|
+
*/
|
|
35
|
+
onChange?: (panel: string, value: boolean) => void;
|
|
36
|
+
/**
|
|
37
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
38
|
+
*/
|
|
39
|
+
sx?: SxProps<Theme>;
|
|
40
|
+
/**
|
|
41
|
+
* If true, the preview text is showed. If the item.content is no typeof string, no preview will be show.
|
|
42
|
+
*/
|
|
43
|
+
previewContent?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* The component used for the transition.
|
|
46
|
+
*/
|
|
47
|
+
TransitionComponent?: React.JSXElementConstructor<TransitionProps & {
|
|
48
|
+
children?: React.ReactElement<any, any>;
|
|
49
|
+
}>;
|
|
50
|
+
/**
|
|
51
|
+
* Props applied to the transition element.
|
|
52
|
+
*/
|
|
53
|
+
TransitionProps?: object;
|
|
54
|
+
/**
|
|
55
|
+
* If true, the transition is disabled.
|
|
56
|
+
*/
|
|
57
|
+
disableAnimation?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The props provided to the top level container element.
|
|
60
|
+
*/
|
|
61
|
+
accordionContainerProps?: object;
|
|
62
|
+
/**
|
|
63
|
+
* If provided, a max height will be given to every accordion panel. The string provided should be in pixels, eg. {number}px . No max height by default.
|
|
64
|
+
*/
|
|
65
|
+
accordionPanelMaxHeight?: string;
|
|
66
|
+
/**
|
|
67
|
+
* If true, more than 1 accordion panels can be opened simultaneously.
|
|
68
|
+
*/
|
|
69
|
+
allowMultipleExpand?: boolean;
|
|
70
|
+
}
|
|
71
|
+
export declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './accordion';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { Theme } from '@mui/material/styles';
|
|
3
|
+
import { SxProps } from '@mui/system';
|
|
4
|
+
export interface BackdropProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* If true, the component is shown. Default value false
|
|
7
|
+
*/
|
|
8
|
+
open: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Override or extend the styles applied to the component.
|
|
11
|
+
*/
|
|
12
|
+
classes?: object;
|
|
13
|
+
/**
|
|
14
|
+
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
15
|
+
*/
|
|
16
|
+
component?: string | ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* The components used for each slot inside the Backdrop. Either a string to use a HTML element or a component.
|
|
19
|
+
*/
|
|
20
|
+
components?: object;
|
|
21
|
+
/**
|
|
22
|
+
* The props used for each slot inside the Backdrop.
|
|
23
|
+
*/
|
|
24
|
+
componentsProps?: object;
|
|
25
|
+
/**
|
|
26
|
+
* If true, the backdrop is invisible. It can be used when rendering a popover or a custom select component. Default value is false
|
|
27
|
+
*/
|
|
28
|
+
invisible?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details.
|
|
31
|
+
*/
|
|
32
|
+
sx?: SxProps<Theme>;
|
|
33
|
+
/**
|
|
34
|
+
The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object.
|
|
35
|
+
*/
|
|
36
|
+
transitionDuration?: number | object;
|
|
37
|
+
/**
|
|
38
|
+
* Additional onClose callback that needs to be provided when the state of the backdrop is controlled from outside.
|
|
39
|
+
*/
|
|
40
|
+
onClose?: (isOpen: boolean) => void;
|
|
41
|
+
}
|
|
42
|
+
export declare const Backdrop: React.ForwardRefExoticComponent<BackdropProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './backdrop';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonVariant } from '../common/type/ButtonVariant';
|
|
3
|
+
export interface BannerProps {
|
|
4
|
+
/**
|
|
5
|
+
* Variant of banner defines different look and style
|
|
6
|
+
*/
|
|
7
|
+
variant: 'primary' | 'secondary' | 'tertiary';
|
|
8
|
+
/**
|
|
9
|
+
* Icon name base on Icon component
|
|
10
|
+
*/
|
|
11
|
+
icon?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Icon Type if icon is normal or filled
|
|
14
|
+
*/
|
|
15
|
+
iconIsFilled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Text of banner
|
|
18
|
+
*/
|
|
19
|
+
textContent?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Dismiss Button label
|
|
22
|
+
*/
|
|
23
|
+
buttonLabel?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Dismiss Button variant
|
|
26
|
+
*/
|
|
27
|
+
buttonVariant?: ButtonVariant;
|
|
28
|
+
/**
|
|
29
|
+
* Dismiss button callback
|
|
30
|
+
*/
|
|
31
|
+
buttonCallback?: (payload: any) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Additional Button show/hide
|
|
34
|
+
*/
|
|
35
|
+
additionalButton?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Additional Button variant
|
|
38
|
+
*/
|
|
39
|
+
additionalButtonVariant?: ButtonVariant;
|
|
40
|
+
/**
|
|
41
|
+
* Additional Button Label
|
|
42
|
+
*/
|
|
43
|
+
additionalButtonLabel?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Additional Button Callback
|
|
46
|
+
*/
|
|
47
|
+
additionalButtonCallback?: (payload: any) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Additional Button Callback
|
|
50
|
+
*/
|
|
51
|
+
analyticsCallback?: (payload: any) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Visibility control over whole banner
|
|
54
|
+
*/
|
|
55
|
+
isVisible?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './banner';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @type ButtonVariants
|
|
4
|
+
* @description The variants of the Button component.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ButtonVariants {
|
|
7
|
+
PRIMARY = "primary",
|
|
8
|
+
SECONDARY = "secondary",
|
|
9
|
+
GHOST = "ghost",
|
|
10
|
+
TERTIARY = "tertiary",
|
|
11
|
+
NAVIGATION = "navigation"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @interface ButtonProps
|
|
15
|
+
* @description Base definition of SkodaFlow Button independent on core implementation.
|
|
16
|
+
* Properties are inherited from HTML Button element
|
|
17
|
+
*/
|
|
18
|
+
export interface ButtonProps extends Omit<React.HTMLAttributes<HTMLButtonElement>, 'color' | 'size'> {
|
|
19
|
+
/**
|
|
20
|
+
* Varian of button defines different look and style
|
|
21
|
+
*/
|
|
22
|
+
variant?: ButtonVariants;
|
|
23
|
+
/**
|
|
24
|
+
* Label is used as inner HTML text of button
|
|
25
|
+
*/
|
|
26
|
+
label?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Icon name. For example "check". If no prefix is defined, default SKODA icon font is used
|
|
29
|
+
*/
|
|
30
|
+
icon?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Compact, minimalistic view of component
|
|
33
|
+
*/
|
|
34
|
+
compact?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Disabled, not clickable button
|
|
37
|
+
*/
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* If true, the button will take up the full width of its container.
|
|
41
|
+
*/
|
|
42
|
+
fullWidth?: boolean;
|
|
43
|
+
direction?: 'forward' | 'back';
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @description SkodaFlow Button component.
|
|
47
|
+
* Properties are inherited from HTML Button element.
|
|
48
|
+
* @param props ButtonProps
|
|
49
|
+
* @returns React Functional Component
|
|
50
|
+
*/
|
|
51
|
+
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './button';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @interface CardContainerProps
|
|
4
|
+
* @description Base definition of SkodaFlow CardContainer independent on core implementation.
|
|
5
|
+
* Properties are inherited from HTML Div element.
|
|
6
|
+
*/
|
|
7
|
+
export interface CardContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
/**
|
|
9
|
+
* Control the clicked state. The state can be controlled from outside if isClickable is true.
|
|
10
|
+
*/
|
|
11
|
+
isClicked?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* If true the container can be clicked.
|
|
14
|
+
*/
|
|
15
|
+
isClickable?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Additional onClickCallback when the CardContainer is clicked. The onClickCallback works only if isClickable is true.
|
|
18
|
+
*/
|
|
19
|
+
onClickCallback?: (state: boolean) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const CardContainer: React.ForwardRefExoticComponent<CardContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cardContainer';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SxProps } from '@mui/system';
|
|
3
|
+
import { Theme } from '@mui/material/styles';
|
|
4
|
+
import { Placement } from '../../utils/enum';
|
|
5
|
+
/**
|
|
6
|
+
* @interface CardMenuItem
|
|
7
|
+
* @description The interface describing the object that has to be provided to the array property 'items' in CardMenu component.
|
|
8
|
+
* If url is provided the menuItem becomes link.
|
|
9
|
+
*/
|
|
10
|
+
export interface CardMenuItem {
|
|
11
|
+
text: string;
|
|
12
|
+
callback?: () => void;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
icon?: string;
|
|
15
|
+
isChecked?: boolean;
|
|
16
|
+
url?: string;
|
|
17
|
+
target?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @type CardMenuItemsArray
|
|
21
|
+
* @description Array of CardMenuItem.
|
|
22
|
+
*/
|
|
23
|
+
export declare type CardMenuItemsArray = Array<CardMenuItem>;
|
|
24
|
+
/**
|
|
25
|
+
* @interface CardMenuProps
|
|
26
|
+
* @description Base definition of SkodaFlow CardMenu independent on core implementation.
|
|
27
|
+
* Properties are inherited from HTML Div element.
|
|
28
|
+
*/
|
|
29
|
+
export interface CardMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
30
|
+
/**
|
|
31
|
+
* If true the drawer is shown.
|
|
32
|
+
*/
|
|
33
|
+
open: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* The content of the component.
|
|
36
|
+
*/
|
|
37
|
+
items: CardMenuItemsArray;
|
|
38
|
+
/**
|
|
39
|
+
* React useState hook set function used to update the passed items to the component.
|
|
40
|
+
*/
|
|
41
|
+
setItems?: React.Dispatch<React.SetStateAction<CardMenuItemsArray>>;
|
|
42
|
+
/**
|
|
43
|
+
* Callback fired when the component requests to be closed.
|
|
44
|
+
*/
|
|
45
|
+
onClose: () => void;
|
|
46
|
+
/**
|
|
47
|
+
* An HTML element used to set the position of the popper.
|
|
48
|
+
*/
|
|
49
|
+
anchorRef: React.RefObject<HTMLElement>;
|
|
50
|
+
/**
|
|
51
|
+
* If header is provided, a text will be displayed on top of the elements.
|
|
52
|
+
*/
|
|
53
|
+
header?: string;
|
|
54
|
+
/**
|
|
55
|
+
* If true, multiple item select will be enabled. Property 'setItems' must be provided in order allowMultiselect to work.
|
|
56
|
+
* Items: CardMenuItemsArray provided to the component must have isChecked propery provided in order allowMultiselect to work..
|
|
57
|
+
*/
|
|
58
|
+
allowMultiselect?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Callback fired when item is clicked.
|
|
61
|
+
*/
|
|
62
|
+
onItemClick?: (itemText: string) => void;
|
|
63
|
+
/**
|
|
64
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
65
|
+
*/
|
|
66
|
+
sx?: SxProps<Theme>;
|
|
67
|
+
/**
|
|
68
|
+
* Override or extend the styles applied to the component.
|
|
69
|
+
*/
|
|
70
|
+
classes?: object;
|
|
71
|
+
/**
|
|
72
|
+
* Popper placement. Default is 'bottom'.
|
|
73
|
+
*/
|
|
74
|
+
placement?: Placement;
|
|
75
|
+
/**
|
|
76
|
+
* If true, a switch button is added to the items allowing to select or deselect all of the items.
|
|
77
|
+
* Property allowMultiselect should be true in order hasToggleSelection to work. Only available for the desktop version of the MenuCard.
|
|
78
|
+
*/
|
|
79
|
+
hasToggleSelection?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* The toggle label displayed when groupToggleSelection is true. Default is "Select all".
|
|
82
|
+
*/
|
|
83
|
+
toggleLabel?: string;
|
|
84
|
+
}
|
|
85
|
+
export declare const CardMenu: React.ForwardRefExoticComponent<CardMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CardMenuItem, CardMenuItemsArray } from '../cardMenu';
|
|
3
|
+
export declare const useCardMenu: (items: CardMenuItemsArray, allowMultiselect: boolean, setItems: React.Dispatch<React.SetStateAction<CardMenuItemsArray>>, onItemClick: (itemText: string) => void, onClose: () => void) => {
|
|
4
|
+
onClickHandler: (item: CardMenuItem) => void;
|
|
5
|
+
onToggleChange: (_: React.ChangeEvent<HTMLInputElement>, checkedState: boolean) => void;
|
|
6
|
+
isToggleChecked: boolean;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cardMenu';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const MenuListStyled: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
autoFocus?: boolean;
|
|
4
|
+
autoFocusItem?: boolean;
|
|
5
|
+
children?: import("react").ReactNode;
|
|
6
|
+
disabledItemsFocusable?: boolean;
|
|
7
|
+
disableListWrap?: boolean;
|
|
8
|
+
variant?: "menu" | "selectedMenu";
|
|
9
|
+
} & {
|
|
10
|
+
children?: import("react").ReactNode;
|
|
11
|
+
classes?: Partial<import("@mui/material").ListClasses>;
|
|
12
|
+
dense?: boolean;
|
|
13
|
+
disablePadding?: boolean;
|
|
14
|
+
subheader?: import("react").ReactNode;
|
|
15
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
|
|
16
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "slot" | "style" | "title" | "className" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
|
|
17
|
+
ref?: ((instance: HTMLUListElement) => void) | import("react").RefObject<HTMLUListElement>;
|
|
18
|
+
}, "slot" | "title" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
|
|
19
|
+
theme?: import("@emotion/react").Theme;
|
|
20
|
+
} & {
|
|
21
|
+
theme?: any;
|
|
22
|
+
allowMultiselect?: boolean;
|
|
23
|
+
}, {}, {}>;
|