@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.
Files changed (224) hide show
  1. package/README.md +107 -0
  2. package/build/README.md +107 -0
  3. package/build/components/accordion/accordion.d.ts +71 -0
  4. package/build/components/accordion/index.d.ts +1 -0
  5. package/build/components/backdrop/backdrop.d.ts +42 -0
  6. package/build/components/backdrop/index.d.ts +1 -0
  7. package/build/components/banner/banner.d.ts +57 -0
  8. package/build/components/banner/index.d.ts +1 -0
  9. package/build/components/button/button.d.ts +51 -0
  10. package/build/components/button/index.d.ts +1 -0
  11. package/build/components/cardContainer/cardContainer.d.ts +21 -0
  12. package/build/components/cardContainer/index.d.ts +1 -0
  13. package/build/components/cardMenu/cardMenu.d.ts +85 -0
  14. package/build/components/cardMenu/hooks/useCardMenu.d.ts +7 -0
  15. package/build/components/cardMenu/index.d.ts +1 -0
  16. package/build/components/cardMenu/styled/drawerStyled.d.ts +6 -0
  17. package/build/components/cardMenu/styled/menuListStyled.d.ts +23 -0
  18. package/build/components/cardMenu/styled/popperStyled.d.ts +7 -0
  19. package/build/components/checkbox/checkbox.d.ts +54 -0
  20. package/build/components/checkbox/index.d.ts +1 -0
  21. package/build/components/chip/chipDropdownChildren/chipDropdownChildren.d.ts +31 -0
  22. package/build/components/chip/chipFocusVisibleStyled.d.ts +9 -0
  23. package/build/components/chip/chipImage/chipImage.d.ts +43 -0
  24. package/build/components/chip/chipMultiselect/multiSelectChip.d.ts +36 -0
  25. package/build/components/chip/index.d.ts +4 -0
  26. package/build/components/chip/regular/chip.d.ts +39 -0
  27. package/build/components/common/helperText.d.ts +29 -0
  28. package/build/components/common/hook/backdrop.d.ts +9 -0
  29. package/build/components/common/hook/useWindowSize.d.ts +5 -0
  30. package/build/components/common/imageComponent.d.ts +17 -0
  31. package/build/components/common/interface/textInputInterface.d.ts +96 -0
  32. package/build/components/common/menuContainer.d.ts +20 -0
  33. package/build/components/common/menuEmpty.d.ts +16 -0
  34. package/build/components/common/resizableSliderInput.d.ts +17 -0
  35. package/build/components/common/styled/buttonFocusVisibleStyled.d.ts +10 -0
  36. package/build/components/common/styled/formControlLabelStyled.d.ts +8 -0
  37. package/build/components/common/styled/helperTextContainerStyled.d.ts +11 -0
  38. package/build/components/common/styled/sliderValuesStyled.d.ts +9 -0
  39. package/build/components/common/styled/textFieldStyled.d.ts +29 -0
  40. package/build/components/common/textInputHelperText.d.ts +30 -0
  41. package/build/components/common/type/ButtonVariant.d.ts +1 -0
  42. package/build/components/container/container.d.ts +44 -0
  43. package/build/components/container/index.d.ts +1 -0
  44. package/build/components/controls/controls.d.ts +37 -0
  45. package/build/components/controls/index.d.ts +1 -0
  46. package/build/components/divider/divider.d.ts +27 -0
  47. package/build/components/divider/index.d.ts +1 -0
  48. package/build/components/drawer/drawer.d.ts +66 -0
  49. package/build/components/drawer/index.d.ts +1 -0
  50. package/build/components/flag/availableFLags.d.ts +1 -0
  51. package/build/components/flag/flag.d.ts +28 -0
  52. package/build/components/flag/index.d.ts +1 -0
  53. package/build/components/grid/grid.d.ts +116 -0
  54. package/build/components/grid/index.d.ts +1 -0
  55. package/build/components/icon/availableIcons.d.ts +1 -0
  56. package/build/components/icon/icon.d.ts +28 -0
  57. package/build/components/icon/index.d.ts +1 -0
  58. package/build/components/indicator/index.d.ts +1 -0
  59. package/build/components/indicator/indicator.d.ts +22 -0
  60. package/build/components/label/index.d.ts +1 -0
  61. package/build/components/label/label.d.ts +18 -0
  62. package/build/components/labelCO2/index.d.ts +1 -0
  63. package/build/components/labelCO2/labelCO2.d.ts +6 -0
  64. package/build/components/labelFeature/index.d.ts +1 -0
  65. package/build/components/labelFeature/labelFeature.d.ts +19 -0
  66. package/build/components/labelPromotional/index.d.ts +1 -0
  67. package/build/components/labelPromotional/labelPromotional.d.ts +26 -0
  68. package/build/components/labelStatus/index.d.ts +1 -0
  69. package/build/components/labelStatus/labelStatus.d.ts +19 -0
  70. package/build/components/menu/index.d.ts +1 -0
  71. package/build/components/menu/menu.d.ts +61 -0
  72. package/build/components/menuItem/index.d.ts +1 -0
  73. package/build/components/menuItem/menuItem.d.ts +29 -0
  74. package/build/components/modal/contentDiv.d.ts +14 -0
  75. package/build/components/modal/index.d.ts +1 -0
  76. package/build/components/modal/modal.d.ts +67 -0
  77. package/build/components/numbering/index.d.ts +1 -0
  78. package/build/components/numbering/numbering.d.ts +16 -0
  79. package/build/components/pagination/index.d.ts +1 -0
  80. package/build/components/pagination/pagination.d.ts +76 -0
  81. package/build/components/progressBar/components/loader.d.ts +28 -0
  82. package/build/components/progressBar/components/spinner.d.ts +28 -0
  83. package/build/components/progressBar/components/styledProgressBarMessage.d.ts +5 -0
  84. package/build/components/progressBar/index.d.ts +1 -0
  85. package/build/components/progressBar/progressBar.d.ts +10 -0
  86. package/build/components/radioButton/index.d.ts +1 -0
  87. package/build/components/radioButton/radioButton.d.ts +47 -0
  88. package/build/components/selectInput/formControlSelectStyled.d.ts +27 -0
  89. package/build/components/selectInput/hook/useSelectInput.d.ts +5 -0
  90. package/build/components/selectInput/index.d.ts +1 -0
  91. package/build/components/selectInput/inputLabelSelect.d.ts +8 -0
  92. package/build/components/selectInput/selectInput.d.ts +83 -0
  93. package/build/components/slider/containerStyled.d.ts +13 -0
  94. package/build/components/slider/index.d.ts +1 -0
  95. package/build/components/slider/slider.d.ts +139 -0
  96. package/build/components/snackbar/index.d.ts +1 -0
  97. package/build/components/snackbar/snackbar.d.ts +82 -0
  98. package/build/components/snackbar/snackbarMessage.d.ts +29 -0
  99. package/build/components/tab/hook/useTabs.d.ts +9 -0
  100. package/build/components/tab/index.d.ts +3 -0
  101. package/build/components/tab/menuTab.d.ts +36 -0
  102. package/build/components/tab/secondaryNavigation/secondaryNavigationTabs.d.ts +29 -0
  103. package/build/components/tab/secondaryNavigation/secondaryTabStyled.d.ts +13 -0
  104. package/build/components/tab/tab.d.ts +48 -0
  105. package/build/components/tab/tabPanel.d.ts +20 -0
  106. package/build/components/tab/tabStyled.d.ts +43 -0
  107. package/build/components/tab/tabs.d.ts +52 -0
  108. package/build/components/textArea/hook/useTextAreaEffect.d.ts +1 -0
  109. package/build/components/textArea/index.d.ts +1 -0
  110. package/build/components/textArea/textArea.d.ts +3 -0
  111. package/build/components/textInput/hook/useTextInput.d.ts +7 -0
  112. package/build/components/textInput/hook/useTextInputEffect.d.ts +1 -0
  113. package/build/components/textInput/index.d.ts +1 -0
  114. package/build/components/textInput/textInput.d.ts +9 -0
  115. package/build/components/toggleSwitch/index.d.ts +1 -0
  116. package/build/components/toggleSwitch/toggleSwitch.d.ts +46 -0
  117. package/build/components/tooltip/index.d.ts +1 -0
  118. package/build/components/tooltip/tooltip.d.ts +32 -0
  119. package/build/design/skoda/components/theme.accordion.d.ts +2 -0
  120. package/build/design/skoda/components/theme.backdrop.d.ts +2 -0
  121. package/build/design/skoda/components/theme.breakpoints.d.ts +9 -0
  122. package/build/design/skoda/components/theme.button.d.ts +40 -0
  123. package/build/design/skoda/components/theme.checkbox.d.ts +2 -0
  124. package/build/design/skoda/components/theme.chip.d.ts +11 -0
  125. package/build/design/skoda/components/theme.container.d.ts +3 -0
  126. package/build/design/skoda/components/theme.divider.d.ts +2 -0
  127. package/build/design/skoda/components/theme.drawer.d.ts +2 -0
  128. package/build/design/skoda/components/theme.formControlLabel.d.ts +2 -0
  129. package/build/design/skoda/components/theme.grid.d.ts +3 -0
  130. package/build/design/skoda/components/theme.icon.d.ts +10 -0
  131. package/build/design/skoda/components/theme.menu.d.ts +2 -0
  132. package/build/design/skoda/components/theme.menuItem.d.ts +2 -0
  133. package/build/design/skoda/components/theme.modal.d.ts +2 -0
  134. package/build/design/skoda/components/theme.pagination.d.ts +2 -0
  135. package/build/design/skoda/components/theme.radio.d.ts +2 -0
  136. package/build/design/skoda/components/theme.select.d.ts +2 -0
  137. package/build/design/skoda/components/theme.slider.d.ts +2 -0
  138. package/build/design/skoda/components/theme.snackbar.d.ts +2 -0
  139. package/build/design/skoda/components/theme.switch.d.ts +7 -0
  140. package/build/design/skoda/components/theme.tab.d.ts +2 -0
  141. package/build/design/skoda/components/theme.textField.d.ts +2 -0
  142. package/build/design/skoda/components/theme.tooltip.d.ts +2 -0
  143. package/build/design/skoda/index.d.ts +8 -0
  144. package/build/design/skoda/organisms/theme.card.d.ts +3 -0
  145. package/build/design/skoda/theme.baseline.d.ts +5 -0
  146. package/build/design/skoda/theme.breakpoints.d.ts +5 -0
  147. package/build/design/skoda/theme.constants.d.ts +7 -0
  148. package/build/design/skoda/theme.palette.d.ts +14 -0
  149. package/build/design/skoda/theme.typography.d.ts +22 -0
  150. package/build/index.d.ts +45 -0
  151. package/build/index.es.js +30 -0
  152. package/build/index.es.js.map +1 -0
  153. package/build/index.js +16 -0
  154. package/build/index.js.map +1 -0
  155. package/build/organisms/cardOwnedVehicle/cardOwnedVehicle.d.ts +118 -0
  156. package/build/organisms/cardOwnedVehicle/cardOwnedVehicleComponent.d.ts +4 -0
  157. package/build/organisms/cardOwnedVehicle/index.d.ts +1 -0
  158. package/build/organisms/cardPhotoAdjustable/cardPhotoAdjustable.d.ts +89 -0
  159. package/build/organisms/cardPhotoAdjustable/cardPhotoAdjustableComponent.d.ts +4 -0
  160. package/build/organisms/cardPhotoAdjustable/index.d.ts +1 -0
  161. package/build/organisms/cardPhotoFixed/cardPhotoFixed.d.ts +124 -0
  162. package/build/organisms/cardPhotoFixed/cardPhotoFixedComponent.d.ts +4 -0
  163. package/build/organisms/cardPhotoFixed/index.d.ts +1 -0
  164. package/build/organisms/cardPromoVehicle/cardPromoVehicle.d.ts +132 -0
  165. package/build/organisms/cardPromoVehicle/cardPromoVehicleComponent.d.ts +4 -0
  166. package/build/organisms/cardPromoVehicle/index.d.ts +1 -0
  167. package/build/organisms/cardTypeOnly/cardTypeOnly.d.ts +59 -0
  168. package/build/organisms/cardTypeOnly/cardTypeOnlyComponent.d.ts +4 -0
  169. package/build/organisms/cardTypeOnly/index.d.ts +1 -0
  170. package/build/organisms/carousel/carousel.d.ts +134 -0
  171. package/build/organisms/carousel/carouselButton.d.ts +11 -0
  172. package/build/organisms/carousel/carouselTemplate.d.ts +8 -0
  173. package/build/organisms/carousel/index.d.ts +1 -0
  174. package/build/organisms/carousel/styledComponents/styledCarouselHorizontal.d.ts +12 -0
  175. package/build/organisms/carousel/styledComponents/styledCarouselVertical.d.ts +8 -0
  176. package/build/organisms/common/buttonCardComponent/buttonCardComponent.d.ts +19 -0
  177. package/build/organisms/common/cardOpacitylayer/cardOpacityTyping.d.ts +2 -0
  178. package/build/organisms/common/infoTextCardComponent/infoTextCardComponent.d.ts +21 -0
  179. package/build/organisms/common/menuCardComponent/menuCardComponent.d.ts +47 -0
  180. package/build/organisms/common/styled/cardStandardWrapperStyled.d.ts +11 -0
  181. package/build/organisms/heroImageCard/heroImageCard.d.ts +100 -0
  182. package/build/organisms/heroImageCard/heroImageCardComponent.d.ts +4 -0
  183. package/build/organisms/heroImageCard/index.d.ts +1 -0
  184. package/build/organisms/heroImageCard/videoCardController.d.ts +12 -0
  185. package/build/organisms/maps/hook/useMap.d.ts +7 -0
  186. package/build/organisms/maps/index.d.ts +1 -0
  187. package/build/organisms/maps/mapComponents/infoWindowConfig.d.ts +5 -0
  188. package/build/organisms/maps/mapComponents/mapComponent.d.ts +16 -0
  189. package/build/organisms/maps/mapComponents/mapStyled.d.ts +9 -0
  190. package/build/organisms/maps/mapComponents/markerComponent.d.ts +22 -0
  191. package/build/organisms/maps/maps.d.ts +84 -0
  192. package/build/organisms/maps/utils/mapConfig.d.ts +29 -0
  193. package/build/organisms/maps/utils/mapIcons.d.ts +9 -0
  194. package/build/organisms/maps/utils/style.d.ts +19 -0
  195. package/build/organisms/shortcutLink/index.d.ts +1 -0
  196. package/build/organisms/shortcutLink/shortcutLink.d.ts +11 -0
  197. package/build/organisms/textCta/index.d.ts +1 -0
  198. package/build/organisms/textCta/textCta.d.ts +82 -0
  199. package/build/organisms/tile/index.d.ts +1 -0
  200. package/build/organisms/tile/tile.d.ts +85 -0
  201. package/build/utils/enum.d.ts +25 -0
  202. package/build/utils/icons.d.ts +1 -0
  203. package/build/utils/types.d.ts +5 -0
  204. package/build/utils/utilities.d.ts +11 -0
  205. package/package.json +114 -0
  206. package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Black.ttf +0 -0
  207. package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Black.woff +0 -0
  208. package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Black.woff2 +0 -0
  209. package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Bold.ttf +0 -0
  210. package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Bold.woff +0 -0
  211. package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Bold.woff2 +0 -0
  212. package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Light.ttf +0 -0
  213. package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Light.woff +0 -0
  214. package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Light.woff2 +0 -0
  215. package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Regular.ttf +0 -0
  216. package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Regular.woff +0 -0
  217. package/theme/skoda/assets/@skodaflow/web-tokens/src/fonts/SKODANext-Regular.woff2 +0 -0
  218. package/theme/skoda/fonts/SKODANextIcons-Filled.eot +0 -0
  219. package/theme/skoda/fonts/SKODANextIcons-Filled.woff +0 -0
  220. package/theme/skoda/fonts/SKODANextIcons-Regular.eot +0 -0
  221. package/theme/skoda/fonts/SKODANextIcons-Regular.woff +0 -0
  222. package/theme/skoda/fonts.css +1 -0
  223. package/theme/skoda/globals.css +1 -0
  224. package/theme/skoda/icons.css +1 -0
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { NumberingColors, NumberingSizes } from '../../utils/enum';
3
+ export interface NumberingProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ index: number;
5
+ total: number;
6
+ customSeparator?: string;
7
+ customStyle?: object;
8
+ colorTheme?: NumberingColors;
9
+ size?: NumberingSizes;
10
+ }
11
+ /**
12
+ * @description SkodaFlow Numbering component.
13
+ * @param props NumberingProps
14
+ * @returns React Functional Component
15
+ */
16
+ export declare const Numbering: React.ForwardRefExoticComponent<NumberingProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export * from './pagination';
@@ -0,0 +1,76 @@
1
+ import React from 'react';
2
+ import { Theme } from '@mui/material/styles';
3
+ import { SxProps } from '@mui/system';
4
+ export interface PaginationProps extends Omit<React.HTMLAttributes<HTMLButtonElement>, 'color' | 'size'> {
5
+ /**
6
+ * The total number of pages.
7
+ */
8
+ count?: number;
9
+ /**
10
+ The page selected by default
11
+ */
12
+ defaultPage?: number;
13
+ /**
14
+ * If true, a pagination will be disabled.
15
+ */
16
+ isDisabled?: boolean;
17
+ /**
18
+ * Set the current page number controlled from outside.
19
+ */
20
+ page?: number;
21
+ /**
22
+ * The label for previous button.
23
+ */
24
+ prevButtonLabel?: string;
25
+ /**
26
+ * The label for next button.
27
+ */
28
+ nextButtonLabel?: string;
29
+ /**
30
+ * If true, hide the next-page button.
31
+ */
32
+ hideNextButton?: boolean;
33
+ /**
34
+ * If true, hide the previous-page button.
35
+ */
36
+ hidePrevButton?: boolean;
37
+ /**
38
+ * Number of always visible pages at the beginning and end.
39
+ */
40
+ boundaryCount?: number;
41
+ /**
42
+ * Override or extend the styles applied to the component.
43
+ */
44
+ classes?: object;
45
+ /**
46
+ * Accepts a function which returns a string value that provides a user-friendly name for the current page.
47
+ */
48
+ getItemAriaLabel?: (type: string, page: number, selected: boolean) => string;
49
+ /**
50
+ * If true, show the first-page button.
51
+ */
52
+ showFirstButton?: boolean;
53
+ /**
54
+ * If true, show the last-page button.
55
+ */
56
+ showLastButton?: boolean;
57
+ /**
58
+ * Number of always visible pages before and after the current page.
59
+ */
60
+ siblingCount?: number;
61
+ /**
62
+ * The system prop that allows defining system overrides as well as additional CSS styles.
63
+ */
64
+ sx?: SxProps<Theme>;
65
+ /**
66
+ * On click callback.
67
+ */
68
+ onClick?: (e: React.MouseEvent<HTMLElement>) => void;
69
+ /**
70
+ * enable or disable direction label. mobile only
71
+ */
72
+ hideLabels?: boolean;
73
+ onValueChange?: (payload: number) => void;
74
+ mobileCounterLabel?: string;
75
+ }
76
+ export declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ export interface LoaderProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * The size of the loader. Only working with loader variant.
5
+ */
6
+ loaderSize?: 'small' | 'large';
7
+ /**
8
+ * The current state.
9
+ */
10
+ state?: 'loading' | 'error' | 'success';
11
+ /**
12
+ * The message displayed when the state is 'error'.
13
+ */
14
+ errorMessage?: string;
15
+ /**
16
+ * The message displayed when the state is 'success'.
17
+ */
18
+ successMessage?: string;
19
+ /**
20
+ * The current percentage of the loading. If loadingPercentage is provided the component becomes controlled.
21
+ */
22
+ loadingPercentage?: number;
23
+ /**
24
+ * Text describing the loading percentage.
25
+ */
26
+ loadingPercentageDescribeText?: string;
27
+ }
28
+ export declare const Loader: React.ForwardRefExoticComponent<LoaderProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ export interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * The current state.
5
+ */
6
+ state?: 'loading' | 'error' | 'success';
7
+ /**
8
+ * The message displayed when the state is 'error'.
9
+ */
10
+ errorMessage?: string;
11
+ /**
12
+ * The message displayed when the state is 'success'.
13
+ */
14
+ successMessage?: string;
15
+ /**
16
+ * The current percentage of the loading. If loadingPercentage is provided the component becomes controlled.
17
+ */
18
+ loadingPercentage?: number;
19
+ /**
20
+ * Text describing the loading percentage.
21
+ */
22
+ loadingPercentageDescribeText?: string;
23
+ /**
24
+ * Defining the behavior of the animation when loadingPercentage is provided. Only working with spinner variant.
25
+ */
26
+ spinnerControlledAnimation?: 'controlled' | 'infinite';
27
+ }
28
+ export declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledProgressBarMessage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
3
+ state: 'error' | 'success';
4
+ hasJustifyContent?: boolean;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1 @@
1
+ export * from './progressBar';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { LoaderProps } from './components/loader';
3
+ import { SpinnerProps } from './components/spinner';
4
+ export interface ProgressBarProps extends React.HTMLAttributes<HTMLDivElement>, LoaderProps, SpinnerProps {
5
+ /**
6
+ * The variant of the progress bar.
7
+ */
8
+ variant: 'loader' | 'spinner';
9
+ }
10
+ export declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export * from './radioButton';
@@ -0,0 +1,47 @@
1
+ import React, { HTMLAttributes, ReactNode } from 'react';
2
+ export interface RadioButtonProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'color' | 'onChange'> {
3
+ /**
4
+ * Disabled state, not changeable.
5
+ */
6
+ disabled?: boolean;
7
+ /**
8
+ * Uncontrolled component. Set initial value. Do not use with "checked" together.
9
+ */
10
+ defaultChecked?: boolean;
11
+ /**
12
+ * Controlled component. Set current value. Do not use with "defaultChecked" together.
13
+ */
14
+ checked?: boolean;
15
+ /**
16
+ * Error state of checkbox.
17
+ */
18
+ error?: boolean;
19
+ /**
20
+ * Is checkbox required field in form?
21
+ */
22
+ required?: boolean;
23
+ /**
24
+ * The value referenced with RadioButton element
25
+ */
26
+ value?: string;
27
+ /**
28
+ * The value referenced with checkbox element
29
+ */
30
+ label?: string | ReactNode;
31
+ /**
32
+ * HTML DOM element reference of component
33
+ */
34
+ ref?: React.Ref<HTMLButtonElement>;
35
+ /**
36
+ * @description Triggered when element is changed.
37
+ * @param e React original event object
38
+ * @param value Current changed value
39
+ */
40
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
41
+ }
42
+ /**
43
+ * @description Styled SkodaFlow RadioButton component
44
+ * @param props RadioButtonProps
45
+ * @returns React Functional Component
46
+ */
47
+ export declare const RadioButton: React.ForwardRefExoticComponent<Pick<RadioButtonProps, "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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" | "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" | "disabled" | "checked" | "error" | "required" | "value" | "label"> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ export declare const FormControlSelectStyled: import("@emotion/styled").StyledComponent<{
3
+ children?: import("react").ReactNode;
4
+ classes?: Partial<import("@mui/material/FormControl").FormControlClasses>;
5
+ color?: "error" | "primary" | "secondary" | "info" | "success" | "warning";
6
+ disabled?: boolean;
7
+ error?: boolean;
8
+ fullWidth?: boolean;
9
+ focused?: boolean;
10
+ hiddenLabel?: boolean;
11
+ margin?: "none" | "dense" | "normal";
12
+ required?: boolean;
13
+ size?: "small" | "medium";
14
+ sx?: import("@mui/material/styles").SxProps<import("@mui/material/styles").Theme>;
15
+ variant?: "standard" | "outlined" | "filled";
16
+ } & import("@mui/material/OverridableComponent").CommonProps & Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "slot" | "title" | "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: HTMLDivElement) => void) | import("react").RefObject<HTMLDivElement>;
18
+ }, "ref" | "slot" | "title" | "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" | "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"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
19
+ disabled?: boolean;
20
+ hasError?: boolean;
21
+ hideBg?: boolean;
22
+ icon?: string;
23
+ focused?: boolean;
24
+ hovered?: boolean;
25
+ value?: any;
26
+ staticLabel?: boolean;
27
+ }, {}, {}>;
@@ -0,0 +1,5 @@
1
+ export declare const useSelectInput: (isFocused: any) => {
2
+ handleOnChange: (e: any, onChange: any, setCurrentValue: any) => void;
3
+ handleOnBlur: (setIsFocused: any, onBlur: any) => void;
4
+ handleOnFocus: (setIsFocused: any, onFocus: any) => void;
5
+ };
@@ -0,0 +1 @@
1
+ export * from './selectInput';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const InputLabelSelect: ({ staticLabel, currentValue, opened, label }: {
3
+ staticLabel: any;
4
+ currentValue: any;
5
+ opened: any;
6
+ label: any;
7
+ }) => JSX.Element;
8
+ export default InputLabelSelect;
@@ -0,0 +1,83 @@
1
+ import React from 'react';
2
+ import { SelectChangeEvent } from '@mui/material/Select';
3
+ /**
4
+ * @interface SelectInputProps
5
+ * @description Base definition of SkodaFlow SelectInput independent on core implementation.
6
+ */
7
+ export interface SelectInputProps {
8
+ /**
9
+ * The label referenced to the text input field
10
+ */
11
+ label?: string;
12
+ /**
13
+ * The label referenced to the text input field
14
+ */
15
+ staticLabel?: boolean;
16
+ /**
17
+ * Show the "white" background or nnot
18
+ */
19
+ hideBg?: boolean;
20
+ /**
21
+ * The value referenced with checkbox element
22
+ */
23
+ value?: string;
24
+ /**
25
+ * Disabled, not clickable button
26
+ */
27
+ disabled?: boolean;
28
+ /**
29
+ * If TextField required field in form
30
+ */
31
+ required?: boolean;
32
+ /**
33
+ * The value of the helper text
34
+ */
35
+ helpText?: string;
36
+ /**
37
+ * Icon name. For example "check". If no prefix is defined, default SKODA icon font is used
38
+ */
39
+ icon?: string;
40
+ /**
41
+ *Boolean to check if the input returns an error or not
42
+ */
43
+ hasError?: boolean;
44
+ /**
45
+ *name of the input element
46
+ */
47
+ name?: string;
48
+ /**
49
+ *id of the input element
50
+ */
51
+ id?: string;
52
+ /**
53
+ *classes for FormControl component
54
+ */
55
+ classes?: {};
56
+ /**
57
+ *Props for the Input element
58
+ */
59
+ InputProps?: any;
60
+ /**
61
+ * Child element of the component.
62
+ */
63
+ children?: any;
64
+ /**
65
+ *set the full width for the select input
66
+ */
67
+ fullWidth?: boolean;
68
+ /**
69
+ * @description Triggered when element is changed.
70
+ * @param e React original event object
71
+ * @param value Current changed value
72
+ */
73
+ onChange?: (event: SelectChangeEvent<string>) => void;
74
+ onBlur?: () => void;
75
+ onFocus?: () => void;
76
+ }
77
+ /**
78
+ * @description SkodaFlow SelectInput component.
79
+ * Properties are inherited from HTML input element.
80
+ * @param props SelectInputProps
81
+ * @returns React Functional Component
82
+ */
83
+ export declare const SelectInput: React.ForwardRefExoticComponent<SelectInputProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ declare type Marks = boolean | {
3
+ value: number;
4
+ label?: React.ReactNode;
5
+ }[];
6
+ export declare const ContainerStyled: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme;
8
+ as?: import("react").ElementType<any>;
9
+ } & {
10
+ value: any;
11
+ marks: Marks;
12
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
+ export {};
@@ -0,0 +1 @@
1
+ export * from './slider';
@@ -0,0 +1,139 @@
1
+ import React from 'react';
2
+ export declare type ValueComponentType = 'default' | 'input' | 'labeledInput' | null;
3
+ /**
4
+ * @interface Base defintion of SkodaFlow Slider component independent on core implementation.
5
+ * Properties are inherited from HTML Span element and component functionality is taken from @mui/material/Slider v5.0.1.
6
+ * @link https://mui.com/api/slider
7
+ */
8
+ export interface SliderProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'color' | 'defaultValue' | 'onChange'> {
9
+ /**
10
+ * Disabled state, not changeable.
11
+ */
12
+ disabled?: boolean;
13
+ /**
14
+ * The default values of the slider. Use array in order to have more than 1 thumb.
15
+ */
16
+ defaultValue?: number | number[];
17
+ /**
18
+ * Use valueLabelDisplay for hovered thumb with value text.
19
+ * - `auto` the value label will display when the thumb is hovered or focused.
20
+ * - `on` will display persistently.
21
+ * - `off` will never display.
22
+ * @default 'off'
23
+ */
24
+ valueLabelDisplay?: 'on' | 'auto' | 'off';
25
+ /**
26
+ * If `true`, the active thumb doesn't swap when moving pointer over a thumb while dragging another thumb.
27
+ * @default false
28
+ */
29
+ disableSwap?: boolean;
30
+ /**
31
+ * Accepts a function which returns a string value that provides a user-friendly name for the thumb labels of the slider.
32
+ * This is important for screen reader users.
33
+ * @param {number} index The thumb label's index to format.
34
+ * @returns {string}
35
+ */
36
+ getAriaLabel?: (index: number) => string;
37
+ /**
38
+ * Accepts a function which returns a string value that provides a user-friendly name for the current value of the slider.
39
+ * This is important for screen reader users.
40
+ * @param {number} value The thumb label's value to format.
41
+ * @param {number} index The thumb label's index to format.
42
+ * @returns {string}
43
+ */
44
+ getAriaValueText?: (value: number, index: number) => string;
45
+ /**
46
+ * The maximum allowed value of the slider.
47
+ * Should not be equal to min.
48
+ * @default 100
49
+ */
50
+ max?: number;
51
+ /**
52
+ * The minimum allowed value of the slider.
53
+ * Should not be equal to max.
54
+ * @default 0
55
+ */
56
+ min?: number;
57
+ /**
58
+ * Callback function that is fired when the slider's value changed.
59
+ *
60
+ * @param {Event} event The event source of the callback.
61
+ * You can pull out the new value by accessing `event.target.value` (any).
62
+ * **Warning**: This is a generic event not a change event.
63
+ * @param {number | number[]} value The new value.
64
+ * @param {number} activeThumb Index of the currently moved thumb.
65
+ */
66
+ onChange?: (event: React.ChangeEvent<HTMLInputElement> | Event, value: number | number[], activeThumb?: number) => void;
67
+ /**
68
+ * Callback function that is fired when the `mouseup` is triggered. Only working when using directly the slider.
69
+ *
70
+ * @param {React.SyntheticEvent | Event} event The event source of the callback. **Warning**: This is a generic event not a change event.
71
+ * @param {number | number[]} value The new value.
72
+ */
73
+ onChangeCommitted?: (event: React.SyntheticEvent | Event, value: number | number[]) => void;
74
+ /**
75
+ * Marks indicate predetermined values to which the user can move the slider.
76
+ * If `true` the marks are spaced according the value of the `step` prop.
77
+ * If an array, it should contain objects with `value` and an optional `label` keys.
78
+ * @default false
79
+ */
80
+ marks?: boolean | {
81
+ value: number;
82
+ label?: React.ReactNode;
83
+ }[];
84
+ /**
85
+ * The granularity with which the slider can step through values. (A "discrete" slider.)
86
+ * The `min` prop serves as the origin for the valid values.
87
+ * We recommend (max - min) to be evenly divisible by the step.
88
+ *
89
+ * When step is `null`, the thumb can only be slid onto marks provided with the `marks` prop.
90
+ * @default 1
91
+ */
92
+ step?: number | null;
93
+ /**
94
+ * Left side/min label of the value input.
95
+ */
96
+ leftSideLabel?: string;
97
+ /**
98
+ * Right side/max label of the value input.
99
+ */
100
+ rightSideLabel?: string;
101
+ /**
102
+ * Left side/min text description of the value input.
103
+ */
104
+ minTextDescription?: string;
105
+ /**
106
+ * Right side/max text description of the value input.
107
+ */
108
+ maxTextDescription?: string;
109
+ /**
110
+ * The type of the value input.
111
+ */
112
+ valueComponentType?: ValueComponentType;
113
+ /**
114
+ * The value of the slider. For ranged sliders, provide an array with two values.
115
+ */
116
+ value?: number | number[];
117
+ /**
118
+ * If true the currency is displayed in front of the value.
119
+ */
120
+ isCurrencyInFront?: boolean;
121
+ /**
122
+ * Thousands separator variants for formatting currency
123
+ */
124
+ thousandsSeparator?: '.' | ',';
125
+ /**
126
+ * Decimal separator variants for formatting currency
127
+ */
128
+ decimalSeparator?: '.' | ',';
129
+ /**
130
+ * to hide or show decimals. Default value true
131
+ */
132
+ hiddenDecimalSeparator?: boolean;
133
+ }
134
+ /**
135
+ * @description Styled SkodaFlow Slider component
136
+ * @param props SliderProps
137
+ * @returns React Functional Component
138
+ */
139
+ export declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1 @@
1
+ export * from './snackbar';
@@ -0,0 +1,82 @@
1
+ import React from 'react';
2
+ /**
3
+ * @type IconType
4
+ * @description The possible values for the icons.
5
+ */
6
+ export declare type IconType = 'alert' | 'warning' | 'success' | '';
7
+ /**
8
+ * @interface SnackbarProps
9
+ * @description Base definition of SkodaFlow Snackbar independent on core implementation.
10
+ * Properties are inherited from HTML Div element
11
+ */
12
+ export interface SnackbarProps extends React.HTMLAttributes<HTMLDivElement> {
13
+ /**
14
+ * If true, the component is shown.
15
+ */
16
+ open: boolean;
17
+ /**
18
+ * The react set state hook to control open/close of the snackbar.
19
+ */
20
+ setOpen: React.Dispatch<React.SetStateAction<boolean>>;
21
+ /**
22
+ * The number of milliseconds to wait before automatically calling the onClose function. onClose should then set the state of the open prop to
23
+ * hide the Snackbar. This behavior is disabled by default with the null value.
24
+ */
25
+ autoHideDuration?: number | null;
26
+ /**
27
+ * The title of the action button.
28
+ */
29
+ actionButtonTitle?: string;
30
+ /**
31
+ * The function called on clicking action button.
32
+ */
33
+ closeOnClickaway?: boolean;
34
+ /**
35
+ * The anchor of the Snackbar. Default { vertical: 'bottom', horizontal: 'left' }
36
+ */
37
+ anchorOrigin?: {
38
+ horizontal: 'center' | 'left' | 'right';
39
+ vertical: 'bottom' | 'top';
40
+ };
41
+ /**
42
+ * If true, the autoHideDuration timer will expire even if the window is not focused.
43
+ */
44
+ disableWindowBlurListener?: boolean;
45
+ /**
46
+ * The number of milliseconds to wait before dismissing after user interaction. If autoHideDuration prop isn't specified, it does nothing. If autoHideDuration prop is specified but resumeHideDuration isn't, we default to autoHideDuration / 2 ms.
47
+ */
48
+ resumeHideDuration?: number;
49
+ /**
50
+ * Props applied to the transition element. By default, the element is based on this Transition component.
51
+ * http://reactcommunity.org/react-transition-group/transition
52
+ */
53
+ TransitionProps?: {};
54
+ /**
55
+ * The function called on clicking action button.
56
+ */
57
+ handleAction: (event: React.SyntheticEvent | Event, reason?: string) => void;
58
+ /**
59
+ * Additional callback after closing the snackbar.
60
+ */
61
+ handleClose?: (event: React.SyntheticEvent | Event, reason?: string) => void;
62
+ /**
63
+ * The icon type provided.
64
+ */
65
+ icon?: IconType;
66
+ /**
67
+ * The message provided.
68
+ */
69
+ message: string;
70
+ /**
71
+ * Optional header.
72
+ */
73
+ header?: string;
74
+ }
75
+ /**
76
+ * @description SkodaFlow Snackbar component.
77
+ * Properties are inherited from HTML Div element.
78
+ * @param props SnackbarProps
79
+ * @returns React Functional Component
80
+ */
81
+ export declare const Snackbar: React.ForwardRefExoticComponent<SnackbarProps & React.RefAttributes<HTMLDivElement>>;
82
+ export declare const checkForIcon: (icon: string) => boolean;