@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
|
@@ -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 @@
|
|
|
1
|
+
export * from './selectInput';
|
|
@@ -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;
|