@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,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ControllerSize, IconsStyle, DarkLightOptions, ControlVariant } from '../../utils/types';
|
|
3
|
+
export interface ControlsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
controlVariant?: ControlVariant;
|
|
5
|
+
/**
|
|
6
|
+
* The color of control: white or black, default is white.
|
|
7
|
+
*/
|
|
8
|
+
controllerColor?: DarkLightOptions;
|
|
9
|
+
/**
|
|
10
|
+
* Icons style: regular or filled, default is regular.
|
|
11
|
+
*/
|
|
12
|
+
iconStyle?: IconsStyle;
|
|
13
|
+
/**
|
|
14
|
+
* Icons fontSize:
|
|
15
|
+
*/
|
|
16
|
+
iconFontSize?: ControllerSize;
|
|
17
|
+
/**
|
|
18
|
+
* Type of controls: next, previous, play, pause.
|
|
19
|
+
*/
|
|
20
|
+
controlType?: string;
|
|
21
|
+
/**
|
|
22
|
+
* If true, the control is disabled.
|
|
23
|
+
*/
|
|
24
|
+
isDisabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* callback function on click
|
|
27
|
+
*/
|
|
28
|
+
onClickCallback?: (payload: any) => void;
|
|
29
|
+
customHeight?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @description SkodaFlow Controls component.
|
|
33
|
+
* Properties are inherited from HTML Button Attribetes element.
|
|
34
|
+
* @param props ControlsProps
|
|
35
|
+
* @returns React Functional Component
|
|
36
|
+
*/
|
|
37
|
+
export declare const Controller: React.ForwardRefExoticComponent<ControlsProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './controls';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DividerProps extends React.HTMLAttributes<HTMLHRElement> {
|
|
3
|
+
/**
|
|
4
|
+
* The component orientation.
|
|
5
|
+
*/
|
|
6
|
+
orientation?: 'horizontal' | 'vertical';
|
|
7
|
+
/**
|
|
8
|
+
* The text alignment.
|
|
9
|
+
*/
|
|
10
|
+
textAlign?: 'center' | 'left' | 'right';
|
|
11
|
+
/**
|
|
12
|
+
* The variant to use.
|
|
13
|
+
*/
|
|
14
|
+
variant?: 'fullWidth' | 'inset' | 'middle';
|
|
15
|
+
/**
|
|
16
|
+
* If true, a vertical divider will have the correct height when used in flex container.
|
|
17
|
+
* (By default, a vertical divider will have a calculated height of 0px if it is the child of a flex container.)
|
|
18
|
+
*/
|
|
19
|
+
flexItem?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @description SkodaFlow Divider component.
|
|
23
|
+
* Properties are inherited from HTML HR Attribetes element.
|
|
24
|
+
* @param props DividerProps
|
|
25
|
+
* @returns React Functional Component
|
|
26
|
+
*/
|
|
27
|
+
export declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLHRElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './divider';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SxProps } from '@mui/system';
|
|
3
|
+
import { Theme } from '@mui/material/styles';
|
|
4
|
+
export interface DrawerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* Side from which the drawer will appear.
|
|
7
|
+
*/
|
|
8
|
+
anchor: 'top' | 'left' | 'bottom' | 'right';
|
|
9
|
+
/**
|
|
10
|
+
* If true the drawer is shown.
|
|
11
|
+
*/
|
|
12
|
+
open: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Callback required when the drawer is closed.
|
|
15
|
+
*/
|
|
16
|
+
handleClose?: (state: boolean) => void;
|
|
17
|
+
/**
|
|
18
|
+
* The content of the component.
|
|
19
|
+
*/
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Override or extend the styles applied to the component.
|
|
23
|
+
*/
|
|
24
|
+
classes?: object;
|
|
25
|
+
/**
|
|
26
|
+
* The elevation of the drawer.
|
|
27
|
+
*/
|
|
28
|
+
elevation?: number;
|
|
29
|
+
/**
|
|
30
|
+
* If true, the backdrop is not rendered.
|
|
31
|
+
*/
|
|
32
|
+
hideBackdrop?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Props applied to the Modal element.
|
|
35
|
+
*/
|
|
36
|
+
ModalProps?: object;
|
|
37
|
+
/**
|
|
38
|
+
* Props applied to the Paper element.
|
|
39
|
+
*/
|
|
40
|
+
PaperProps?: object;
|
|
41
|
+
/**
|
|
42
|
+
* Props applied to the Slide element.
|
|
43
|
+
*/
|
|
44
|
+
SlideProps?: object;
|
|
45
|
+
/**
|
|
46
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
47
|
+
*/
|
|
48
|
+
sx?: SxProps<Theme>;
|
|
49
|
+
/**
|
|
50
|
+
* The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object.
|
|
51
|
+
*/
|
|
52
|
+
transitionDuration?: number | {
|
|
53
|
+
appear?: number;
|
|
54
|
+
enter?: number;
|
|
55
|
+
exit?: number;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* The variant to use. Default is 'temporary'.
|
|
59
|
+
*/
|
|
60
|
+
variant?: 'permanent' | 'persistent' | 'temporary';
|
|
61
|
+
/**
|
|
62
|
+
* If true the borders are rounded.
|
|
63
|
+
*/
|
|
64
|
+
hasRoundedBorders?: boolean;
|
|
65
|
+
}
|
|
66
|
+
export declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './drawer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type AvailableFlags = 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'EU' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TA' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AvailableFlags } from './availableFLags';
|
|
3
|
+
/**
|
|
4
|
+
* @interface FlagStylingProps
|
|
5
|
+
* @description The props of the flag component that are additionally used for styling.
|
|
6
|
+
*/
|
|
7
|
+
export interface FlagStylingProps {
|
|
8
|
+
/**
|
|
9
|
+
* The width of the flag. Width to height - 3:2 aspect ratio.
|
|
10
|
+
*/
|
|
11
|
+
width?: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @interface FlagProps
|
|
15
|
+
* @description Base definition of SkodaFlow Flag independent on core implementation.
|
|
16
|
+
* Properties are inherited from HTML Div element and FlagStylingProps interface.
|
|
17
|
+
*/
|
|
18
|
+
export interface FlagProps extends FlagStylingProps, React.HTMLAttributes<HTMLDivElement> {
|
|
19
|
+
/**
|
|
20
|
+
* Defines which flag to use.
|
|
21
|
+
*/
|
|
22
|
+
flag: AvailableFlags;
|
|
23
|
+
/**
|
|
24
|
+
* The title of the svg flag.
|
|
25
|
+
*/
|
|
26
|
+
title: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const Flag: React.ForwardRefExoticComponent<FlagProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './flag';
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { Theme } from '@mui/material/styles';
|
|
3
|
+
import { GridSpacing, GridDirection, GridSize } from '@mui/material/Grid';
|
|
4
|
+
import { ResponsiveStyleValue, SxProps } from '@mui/system';
|
|
5
|
+
/**
|
|
6
|
+
* @interface GridProps
|
|
7
|
+
* @description Base definition of SkodaFlow Grid independent on core implementation.
|
|
8
|
+
* Properties are inherited from HTML Button element
|
|
9
|
+
*/
|
|
10
|
+
export interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
/**
|
|
12
|
+
* The content of the component.
|
|
13
|
+
*/
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Override or extend the styles applied to the component.
|
|
17
|
+
* See CSS API below for more details.
|
|
18
|
+
*/
|
|
19
|
+
classes?: object;
|
|
20
|
+
/**
|
|
21
|
+
* The number of columns.
|
|
22
|
+
*/
|
|
23
|
+
columns?: ResponsiveStyleValue<number>;
|
|
24
|
+
/**
|
|
25
|
+
* The component used for the root node.
|
|
26
|
+
* Either a string to use a HTML element or a component.
|
|
27
|
+
*/
|
|
28
|
+
component?: string | ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* If true, the component will have the flex container behavior.
|
|
31
|
+
* You should be wrapping items with a container.
|
|
32
|
+
*/
|
|
33
|
+
container?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Defines the flex-direction style property.
|
|
36
|
+
* It is applied for all screen sizes.
|
|
37
|
+
* @default 'auto'
|
|
38
|
+
*/
|
|
39
|
+
direction?: ResponsiveStyleValue<GridDirection>;
|
|
40
|
+
/**
|
|
41
|
+
* If true, the component will have the flex item behavior.
|
|
42
|
+
* You should be wrapping items with a container.
|
|
43
|
+
*/
|
|
44
|
+
item?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Defines the number of grids the component is going to use.
|
|
47
|
+
* It's applied for the lg breakpoint and wider screens if not overridden.
|
|
48
|
+
*/
|
|
49
|
+
lg?: boolean | GridSize;
|
|
50
|
+
/**
|
|
51
|
+
* Defines the number of grids the component is going to use.
|
|
52
|
+
* It's applied for the md breakpoint and wider screens if not overridden.
|
|
53
|
+
*/
|
|
54
|
+
md?: boolean | GridSize;
|
|
55
|
+
/**
|
|
56
|
+
* Defines the number of grids the component is going to use.
|
|
57
|
+
* It's applied for the sm breakpoint and wider screens if not overridden.
|
|
58
|
+
*/
|
|
59
|
+
sm?: boolean | GridSize;
|
|
60
|
+
/**
|
|
61
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
62
|
+
* See the `sx` page for more details.
|
|
63
|
+
*/
|
|
64
|
+
sx?: SxProps<Theme>;
|
|
65
|
+
/**
|
|
66
|
+
* Defines the number of grids the component is going to use.
|
|
67
|
+
* It's applied for the xl breakpoint and wider screens.
|
|
68
|
+
*/
|
|
69
|
+
xl?: boolean | GridSize;
|
|
70
|
+
/**
|
|
71
|
+
* Defines the number of grids the component is going to use.
|
|
72
|
+
* It's applied for all the screen sizes with the lowest priority.
|
|
73
|
+
*/
|
|
74
|
+
xs?: boolean | GridSize;
|
|
75
|
+
/**
|
|
76
|
+
* Defines the space between the type item components.
|
|
77
|
+
* It can only be used on a type container component.
|
|
78
|
+
*/
|
|
79
|
+
spacing?: ResponsiveStyleValue<GridSpacing>;
|
|
80
|
+
/**
|
|
81
|
+
* Defines the horizontal space between the type item components.
|
|
82
|
+
* It overrides the value of the spacing prop.
|
|
83
|
+
*/
|
|
84
|
+
columnSpacing?: ResponsiveStyleValue<GridSpacing>;
|
|
85
|
+
/**
|
|
86
|
+
* Defines the vertical space between the type item components.
|
|
87
|
+
* It overrides the value of the spacing prop.
|
|
88
|
+
* If the value provided is a string it will be used as exact amount for pixels spacing.
|
|
89
|
+
* If the value is a number it will be used as (value)*8px.
|
|
90
|
+
*/
|
|
91
|
+
rowSpacing?: ResponsiveStyleValue<GridSpacing>;
|
|
92
|
+
/**
|
|
93
|
+
* Defines the flex-wrap style property.
|
|
94
|
+
* It's applied for all screen sizes.
|
|
95
|
+
*/
|
|
96
|
+
wrap?: 'nowrap' | 'wrap-reverse' | 'wrap';
|
|
97
|
+
/**
|
|
98
|
+
* If true, it sets min-width: 0 on the item.
|
|
99
|
+
* Refer to the limitations section of the documentation to better understand the use case.
|
|
100
|
+
*/
|
|
101
|
+
zeroMinWidth?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Determine if grid is narrow.
|
|
104
|
+
*/
|
|
105
|
+
narrow?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Determine the max-width of the container. The container width grows with the size of the screen. Set to false to disable maxWidth.
|
|
108
|
+
*/
|
|
109
|
+
fixed?: boolean;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* @description SkodaFlow Grid component.
|
|
113
|
+
* @param props GridProps
|
|
114
|
+
* @returns React Functional Component
|
|
115
|
+
*/
|
|
116
|
+
export declare const Grid: React.FC<GridProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './grid';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const availableIcons: string[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @interface IconProps
|
|
4
|
+
* @description Base definition of SkodaFlow Icon independent on core implementation.
|
|
5
|
+
* Properties are inherited from HTML Span element
|
|
6
|
+
*/
|
|
7
|
+
export interface IconProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'> {
|
|
8
|
+
/**
|
|
9
|
+
*color of the icon
|
|
10
|
+
*/
|
|
11
|
+
color?: 'inherit' | 'disabled' | 'action' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
|
|
12
|
+
/**
|
|
13
|
+
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
14
|
+
* @default 'medium'
|
|
15
|
+
*/
|
|
16
|
+
fontSize?: 'inherit' | 'extraLarge' | 'large' | 'medium' | 'small';
|
|
17
|
+
/**
|
|
18
|
+
* The iconStyle apply to the icons regular or filled format.
|
|
19
|
+
*/
|
|
20
|
+
iconStyle?: 'regular' | 'filled';
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @description SkodaFlow Icon component.
|
|
24
|
+
* Properties are inherited from HTML Span element.
|
|
25
|
+
* @param props IconProps
|
|
26
|
+
* @returns React Functional Component
|
|
27
|
+
*/
|
|
28
|
+
export declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './icon';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './indicator';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @interface IndicatorProps
|
|
4
|
+
* @description Base definition of SkodaFlow Indicator component independent on core implementation.
|
|
5
|
+
* Properties are inherited from LabelProps.
|
|
6
|
+
*/
|
|
7
|
+
export interface IndicatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
/**
|
|
9
|
+
* Indicator variant: 'positive' | 'warning' | 'alert' | 'neutral' | color string
|
|
10
|
+
*/
|
|
11
|
+
variant?: 'positive' | 'warning' | 'alert' | 'neutral' | string;
|
|
12
|
+
/**
|
|
13
|
+
* Label text for indicator
|
|
14
|
+
*/
|
|
15
|
+
label?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @description Styled SkodaFlow Indicator component
|
|
19
|
+
* @param props IndicatorProps
|
|
20
|
+
* @returns React Functional Component
|
|
21
|
+
*/
|
|
22
|
+
export declare const Indicator: React.ForwardRefExoticComponent<IndicatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './label';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @interface LabelProps
|
|
4
|
+
* @description Base definition of SkodaFlow Label component independent on core implementation.
|
|
5
|
+
* Properties are inherited from HTML Span element.
|
|
6
|
+
*/
|
|
7
|
+
export interface LabelProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
8
|
+
/**
|
|
9
|
+
* Label text used as inner HTML text of component.
|
|
10
|
+
*/
|
|
11
|
+
label?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @description SkodaFlow Label component.
|
|
15
|
+
* @param props LabelProps
|
|
16
|
+
* @returns React Functional component
|
|
17
|
+
*/
|
|
18
|
+
export declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './labelCO2';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface LabelCO2Props {
|
|
3
|
+
variant: 'A+++' | 'A++' | 'A+' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G';
|
|
4
|
+
size?: 'small' | 'large';
|
|
5
|
+
}
|
|
6
|
+
export declare const LabelCO2: React.ForwardRefExoticComponent<LabelCO2Props & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './labelFeature';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LabelProps } from '../label';
|
|
3
|
+
/**
|
|
4
|
+
* @interface LabelFeatureProps
|
|
5
|
+
* @description Base defintion of SkodaFlow LabelFeature component independent on core implemenation.
|
|
6
|
+
* Properties are inherited from LabelProps
|
|
7
|
+
*/
|
|
8
|
+
export interface LabelFeatureProps extends LabelProps {
|
|
9
|
+
/**
|
|
10
|
+
* Label variant
|
|
11
|
+
*/
|
|
12
|
+
variant?: 'primary' | 'neutral' | 'secondary' | string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @description Styled SkodaFlow LabelFeature component.
|
|
16
|
+
* @param props LabelFeatureProps
|
|
17
|
+
* @returns React Function Component
|
|
18
|
+
*/
|
|
19
|
+
export declare const LabelFeature: React.ForwardRefExoticComponent<LabelFeatureProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './labelPromotional';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LabelProps } from '../label';
|
|
3
|
+
/**
|
|
4
|
+
* @interface labelPromotionalProps
|
|
5
|
+
* @description Base definition of SkodaFlow labelPromotional component independent on core implementation.
|
|
6
|
+
* Properties are inherited from LabelProps
|
|
7
|
+
*/
|
|
8
|
+
export interface LabelPromotionalProps extends LabelProps {
|
|
9
|
+
/**
|
|
10
|
+
* Label variant
|
|
11
|
+
*/
|
|
12
|
+
variant?: 'large' | 'small';
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @description Styled SkodaFlow labelPromotional component.
|
|
16
|
+
* @param props labelPromotionalProps
|
|
17
|
+
* @returns React Function Component
|
|
18
|
+
*/
|
|
19
|
+
export declare const LabelPromotional: React.ForwardRefExoticComponent<LabelPromotionalProps & React.RefAttributes<HTMLSpanElement>>;
|
|
20
|
+
/**
|
|
21
|
+
* @description labelPromotional styling definition
|
|
22
|
+
*/
|
|
23
|
+
export declare const LabelPromotionalStyled: import("@emotion/styled").StyledComponent<{
|
|
24
|
+
theme?: import("@emotion/react").Theme;
|
|
25
|
+
as?: React.ElementType<any>;
|
|
26
|
+
} & LabelPromotionalProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './labelStatus';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LabelProps } from '../label';
|
|
3
|
+
/**
|
|
4
|
+
* @interface LabelStatusProps
|
|
5
|
+
* @description Base definition of SkodaFlow LabelStatus component independent on core implementation.
|
|
6
|
+
* Properties are inherited from LabelProps.
|
|
7
|
+
*/
|
|
8
|
+
export interface LabelStatusProps extends LabelProps {
|
|
9
|
+
/**
|
|
10
|
+
* Label variant defines style of label
|
|
11
|
+
*/
|
|
12
|
+
variant?: 'positive' | 'warning' | 'alert' | string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @description Styled SkodaFlow LabelStatus component
|
|
16
|
+
* @param props LabelStatusProps
|
|
17
|
+
* @returns React Functional Component
|
|
18
|
+
*/
|
|
19
|
+
export declare const LabelStatus: React.ForwardRefExoticComponent<LabelStatusProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './menu';
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AvailableFlags } from '../flag/availableFLags';
|
|
3
|
+
/**
|
|
4
|
+
* @interface MenuItemObject
|
|
5
|
+
* @description Single menu item containing icon class and item value
|
|
6
|
+
*/
|
|
7
|
+
export interface MenuItemObject {
|
|
8
|
+
value: string;
|
|
9
|
+
flag: AvailableFlags;
|
|
10
|
+
title: string;
|
|
11
|
+
}
|
|
12
|
+
export declare type MenuItems = MenuItemObject[] | string[];
|
|
13
|
+
/**
|
|
14
|
+
* @interface MenuReactUseStateHook
|
|
15
|
+
* @description The use state hook that must be provided to the Menu component.
|
|
16
|
+
*/
|
|
17
|
+
export interface MenuReactUseStateHook {
|
|
18
|
+
state: any[];
|
|
19
|
+
setState: React.Dispatch<React.SetStateAction<any[]>>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @interface PaperProps
|
|
23
|
+
* @description Base definition of SkodaFlow Menu independent on core implementation.
|
|
24
|
+
* Properties are inherited from HTML Div element
|
|
25
|
+
*/
|
|
26
|
+
export interface PaperProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
27
|
+
/**
|
|
28
|
+
* hasIcon is used to specify if every item should have icon.
|
|
29
|
+
*/
|
|
30
|
+
hasIcon?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* multipleSelection is used to allow multiple selection.
|
|
33
|
+
*/
|
|
34
|
+
multipleSelection?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Adding a label to the group.
|
|
37
|
+
*/
|
|
38
|
+
groupLabel?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Items provided to the menu. Depending on hasIcon is set to true or false, the items should either implement string[] in case of hasIcon = false,
|
|
41
|
+
* or MenuItemObject[] when hasIcon = true.
|
|
42
|
+
*/
|
|
43
|
+
items: MenuItems;
|
|
44
|
+
/**
|
|
45
|
+
* The use state hook that must be provided to the Menu component.
|
|
46
|
+
*/
|
|
47
|
+
reactHook: MenuReactUseStateHook;
|
|
48
|
+
/**
|
|
49
|
+
* groupToggleSelection, providing ability to select or deselect all items. multipleSelection should be = true in order groupToggleSelection to work.
|
|
50
|
+
*/
|
|
51
|
+
groupToggleSelection?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* set the menu open state
|
|
54
|
+
*/
|
|
55
|
+
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
56
|
+
/**
|
|
57
|
+
* The toggle label displayed when groupToggleSelection is true. Default is "Select all".
|
|
58
|
+
*/
|
|
59
|
+
toggleLabel?: string;
|
|
60
|
+
}
|
|
61
|
+
export declare const Menu: React.ForwardRefExoticComponent<PaperProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './menuItem';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @interface MenuItemProps
|
|
4
|
+
* @description properties definition of the Menu Item
|
|
5
|
+
*/
|
|
6
|
+
export interface MenuItemProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
7
|
+
/**
|
|
8
|
+
* key for the Menu item
|
|
9
|
+
*/
|
|
10
|
+
key?: any;
|
|
11
|
+
/**
|
|
12
|
+
* id for the menu item
|
|
13
|
+
*/
|
|
14
|
+
id?: any;
|
|
15
|
+
/**
|
|
16
|
+
* value of menu item
|
|
17
|
+
*/
|
|
18
|
+
value?: any;
|
|
19
|
+
/**
|
|
20
|
+
* text or component to show inside the menu item topography
|
|
21
|
+
*/
|
|
22
|
+
children?: any;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @description SkodaFlow MenuItem component.
|
|
26
|
+
* @param props MenuItemProps
|
|
27
|
+
* @returns React Functional component
|
|
28
|
+
*/
|
|
29
|
+
export declare const MenuItem: React.ForwardRefExoticComponent<MenuItemProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @interface Base defintion of SkodaFlow ContentDiv component independent on core implementation.
|
|
4
|
+
*/
|
|
5
|
+
export interface ContentDivProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
setIsOverFlowing: React.Dispatch<React.SetStateAction<boolean>>;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @description SkodaFlow ContentDiv component
|
|
11
|
+
* @param props ContentDivProps
|
|
12
|
+
* @returns React Functional Component
|
|
13
|
+
*/
|
|
14
|
+
export declare const ContentDiv: ({ children, setIsOverFlowing, className }: ContentDivProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './modal';
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonVariants } from '../button';
|
|
3
|
+
/**
|
|
4
|
+
* @interface Base defintion of SkodaFlow Modal component independent on core implementation.
|
|
5
|
+
*/
|
|
6
|
+
export interface ModalProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
/**
|
|
8
|
+
* If true, the component is shown.
|
|
9
|
+
*/
|
|
10
|
+
open: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Callback used to close the modal.
|
|
13
|
+
*/
|
|
14
|
+
handleClose: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Callback for the top button.
|
|
17
|
+
*/
|
|
18
|
+
onClickTopButton: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* Callback for the bottom button.
|
|
21
|
+
*/
|
|
22
|
+
onClickBottomButton: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Accessibility.
|
|
25
|
+
*/
|
|
26
|
+
ariaLabelledby?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Accessibility.
|
|
29
|
+
*/
|
|
30
|
+
ariaDescribedBy?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Top button text.
|
|
33
|
+
*/
|
|
34
|
+
firstButton: string;
|
|
35
|
+
/**
|
|
36
|
+
* Bottom button text.
|
|
37
|
+
*/
|
|
38
|
+
secondButton: string;
|
|
39
|
+
/**
|
|
40
|
+
* Variant of button defines different look and style.
|
|
41
|
+
*/
|
|
42
|
+
firstButtonVariant?: ButtonVariants;
|
|
43
|
+
/**
|
|
44
|
+
* Variant of button defines different look and style.
|
|
45
|
+
*/
|
|
46
|
+
secondButtonVariant?: ButtonVariants;
|
|
47
|
+
/**
|
|
48
|
+
* If true, the second button is visible.
|
|
49
|
+
*/
|
|
50
|
+
secondButtonVisible?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* If true, the buttons are displayed as compact. The feature is only working for mobile view.
|
|
53
|
+
*/
|
|
54
|
+
hasCloseButton?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The size of the modal in desktop view.
|
|
57
|
+
*/
|
|
58
|
+
size?: 'small' | 'large' | 'full-width';
|
|
59
|
+
defaultButtonSection?: boolean;
|
|
60
|
+
maxWidth?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @description Styled SkodaFlow Modal component
|
|
64
|
+
* @param props ModalProps
|
|
65
|
+
* @returns React Functional Component
|
|
66
|
+
*/
|
|
67
|
+
export declare const Modal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './numbering';
|