@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,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconType } from './index';
|
|
3
|
+
/**
|
|
4
|
+
* @interface MessageProps
|
|
5
|
+
* @description Base definition of Message Component.
|
|
6
|
+
*/
|
|
7
|
+
export interface MessageProps {
|
|
8
|
+
/**
|
|
9
|
+
* The icon type provided.
|
|
10
|
+
*/
|
|
11
|
+
icon?: IconType;
|
|
12
|
+
/**
|
|
13
|
+
* The message provided.
|
|
14
|
+
*/
|
|
15
|
+
message: string;
|
|
16
|
+
/**
|
|
17
|
+
* Optional header.
|
|
18
|
+
*/
|
|
19
|
+
header?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const SnackbarMessage: React.FC<MessageProps>;
|
|
22
|
+
/**
|
|
23
|
+
* @description SnackbarMessageStyled styling defintion based on props
|
|
24
|
+
*/
|
|
25
|
+
export declare const SnackbarMessageStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
26
|
+
theme?: any;
|
|
27
|
+
header?: string;
|
|
28
|
+
icon?: IconType;
|
|
29
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const useTabs: () => {
|
|
2
|
+
handleOverflowingTabs: (tabsRef: any, windowWidth: any, children: any, setMenuChildren: any) => void;
|
|
3
|
+
handleIsMobileView: (variantSecondaryNavigation: any, isMobileView: any, setIsMobileView: any, setWindowWidth: any) => void;
|
|
4
|
+
a11yProps: (index: string | number) => {
|
|
5
|
+
id: string;
|
|
6
|
+
'aria-controls': string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default useTabs;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @interface TabProps
|
|
4
|
+
* @description Base definition of SkodaFlow Tabs component independent on core implementation.
|
|
5
|
+
*/
|
|
6
|
+
export interface TabProps {
|
|
7
|
+
/**
|
|
8
|
+
* Text shown as the tab title
|
|
9
|
+
*/
|
|
10
|
+
label: string;
|
|
11
|
+
/**
|
|
12
|
+
* Value of the tab
|
|
13
|
+
*/
|
|
14
|
+
value: any;
|
|
15
|
+
/**
|
|
16
|
+
* children useful to render menu items
|
|
17
|
+
*/
|
|
18
|
+
children: any;
|
|
19
|
+
/**
|
|
20
|
+
* @description Triggered when element is changed.
|
|
21
|
+
* @param e React original event object
|
|
22
|
+
* @param value Current changed value
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* If true a backdrop is applied.
|
|
26
|
+
*/
|
|
27
|
+
showBackdrop?: boolean;
|
|
28
|
+
onChange?: (event: React.SyntheticEvent, newValue: number | string) => void;
|
|
29
|
+
onClick?: (e: any) => void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @description SkodaFlow Tab component.
|
|
33
|
+
* @param props TabProps
|
|
34
|
+
* @returns React Functional Component
|
|
35
|
+
*/
|
|
36
|
+
export declare const MenuTab: React.ForwardRefExoticComponent<TabProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @interface AppBarProps
|
|
4
|
+
* @description Base definition of SkodaFlow Tabs component independent on core implementation.
|
|
5
|
+
*/
|
|
6
|
+
export interface AppBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'color'> {
|
|
7
|
+
/**
|
|
8
|
+
* Label to use for tab that wrap overlowing tabs
|
|
9
|
+
*/
|
|
10
|
+
labelMoreItem?: string;
|
|
11
|
+
/**
|
|
12
|
+
* the current active tab index to be activated on the screen
|
|
13
|
+
*/
|
|
14
|
+
currentActiveTab?: string | number;
|
|
15
|
+
/**
|
|
16
|
+
* @description Triggered when element is changed.
|
|
17
|
+
* @param e React original event object
|
|
18
|
+
* @param value Current changed value
|
|
19
|
+
*/
|
|
20
|
+
handleChange?: (newValue: any) => void;
|
|
21
|
+
setCurrentActiveTab?: (val: number | string) => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @description SkodaFlow Checkbox component.
|
|
25
|
+
* Properties are inherited from HTML Button element.
|
|
26
|
+
* @param props AppBarProps
|
|
27
|
+
* @returns React Functional Component
|
|
28
|
+
*/
|
|
29
|
+
export declare const SecondaryNavigationTabs: React.ForwardRefExoticComponent<AppBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const SecondaryTabStyled: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
4
|
+
as?: import("react").ElementType<any>;
|
|
5
|
+
} & {
|
|
6
|
+
isActive?: boolean;
|
|
7
|
+
theme?: any;
|
|
8
|
+
href?: string;
|
|
9
|
+
key: string;
|
|
10
|
+
moreTab?: boolean;
|
|
11
|
+
selectedMenuLabel?: string;
|
|
12
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
+
export default SecondaryTabStyled;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @interface TabProps
|
|
4
|
+
* @description Base definition of SkodaFlow Tabs component independent on core implementation.
|
|
5
|
+
*/
|
|
6
|
+
export interface TabProps {
|
|
7
|
+
/**
|
|
8
|
+
* Text shown as the tab title
|
|
9
|
+
*/
|
|
10
|
+
label?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Value of the tab
|
|
13
|
+
*/
|
|
14
|
+
value: any;
|
|
15
|
+
/**
|
|
16
|
+
* href for the link tab
|
|
17
|
+
*/
|
|
18
|
+
href?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Position of the icon
|
|
21
|
+
*/
|
|
22
|
+
target?: string;
|
|
23
|
+
/**
|
|
24
|
+
* ariaLabel applied to the tab component
|
|
25
|
+
*/
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
/**
|
|
28
|
+
* icon shown when in secondary navigation
|
|
29
|
+
*/
|
|
30
|
+
icon?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @description Triggered when element is changed.
|
|
33
|
+
* @param e React original event object
|
|
34
|
+
* @param value Current changed value
|
|
35
|
+
*/
|
|
36
|
+
onChange?: (event: React.SyntheticEvent, newValue: number) => void;
|
|
37
|
+
onClick?: (e: any) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Callback for analytics
|
|
40
|
+
*/
|
|
41
|
+
analyticsCallback?: (payload?: any) => void;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @description SkodaFlow Tab component.
|
|
45
|
+
* @param props TabProps
|
|
46
|
+
* @returns React Functional Component
|
|
47
|
+
*/
|
|
48
|
+
export declare const Tab: React.ForwardRefExoticComponent<TabProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @interface TabPanelProps
|
|
4
|
+
* @description Interface of TabPanel component.
|
|
5
|
+
*/
|
|
6
|
+
export interface TabPanelProps {
|
|
7
|
+
/**
|
|
8
|
+
* Content displayed inside the tab panel
|
|
9
|
+
*/
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* value of the tab panel equal to the tab selected
|
|
13
|
+
*/
|
|
14
|
+
value?: number | string;
|
|
15
|
+
/**
|
|
16
|
+
* index of the tab panel
|
|
17
|
+
*/
|
|
18
|
+
index?: number | string;
|
|
19
|
+
}
|
|
20
|
+
export declare const TabPanel: React.FC<TabPanelProps>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* @description Tabs styling definition based on props
|
|
4
|
+
*/
|
|
5
|
+
declare const TabStyled: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
children?: null;
|
|
7
|
+
classes?: Partial<import("@mui/material/Tab").TabClasses>;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
disableFocusRipple?: boolean;
|
|
10
|
+
icon?: string | import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any>) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
11
|
+
iconPosition?: "bottom" | "top" | "start" | "end";
|
|
12
|
+
label?: import("react").ReactNode;
|
|
13
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
|
|
14
|
+
value?: any;
|
|
15
|
+
wrapped?: boolean;
|
|
16
|
+
} & Pick<{
|
|
17
|
+
action?: import("react").Ref<import("@mui/material").ButtonBaseActions>;
|
|
18
|
+
centerRipple?: boolean;
|
|
19
|
+
children?: import("react").ReactNode;
|
|
20
|
+
classes?: Partial<import("@mui/material").ButtonBaseClasses>;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
disableRipple?: boolean;
|
|
23
|
+
disableTouchRipple?: boolean;
|
|
24
|
+
focusRipple?: boolean;
|
|
25
|
+
focusVisibleClassName?: string;
|
|
26
|
+
LinkComponent?: import("react").ElementType<any>;
|
|
27
|
+
onFocusVisible?: (event: import("react").FocusEvent<any, Element>) => void;
|
|
28
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme>;
|
|
29
|
+
tabIndex?: number;
|
|
30
|
+
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps>;
|
|
31
|
+
}, "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps"> & import("@mui/material/OverridableComponent").CommonProps & Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "className" | "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" | "key"> & {
|
|
32
|
+
ref?: ((instance: HTMLDivElement) => void) | import("react").RefObject<HTMLDivElement>;
|
|
33
|
+
}, "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "key"> & {
|
|
34
|
+
theme?: import("@emotion/react").Theme;
|
|
35
|
+
} & {
|
|
36
|
+
isActive?: boolean;
|
|
37
|
+
smallSize?: boolean;
|
|
38
|
+
href?: string;
|
|
39
|
+
component?: any;
|
|
40
|
+
target?: string;
|
|
41
|
+
theme?: any;
|
|
42
|
+
}, {}, {}>;
|
|
43
|
+
export default TabStyled;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Theme } from '@mui/material/styles';
|
|
3
|
+
import { SxProps } from '@mui/system';
|
|
4
|
+
export declare const TabsContext: React.Context<{
|
|
5
|
+
activeTab: any;
|
|
6
|
+
updateActiveTab: (value: any, fromMenu: boolean) => void;
|
|
7
|
+
smallSize: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
/**
|
|
10
|
+
* @interface TabsProps
|
|
11
|
+
* @description Base definition of SkodaFlow Tabs component independent on core implementation.
|
|
12
|
+
*/
|
|
13
|
+
export interface TabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'color'> {
|
|
14
|
+
/**
|
|
15
|
+
* Size of every single tab
|
|
16
|
+
*/
|
|
17
|
+
smallSize?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Label to use for tab that wrap overlowing tabs
|
|
20
|
+
*/
|
|
21
|
+
labelMoreItem?: string;
|
|
22
|
+
/**
|
|
23
|
+
* the default active tab on mount
|
|
24
|
+
*/
|
|
25
|
+
defaultActiveTab: string | number;
|
|
26
|
+
/**
|
|
27
|
+
* If true and on mobile view, tabs are rendered as mobile secondary navigation view
|
|
28
|
+
*/
|
|
29
|
+
variantSecondaryNavigation?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @description Triggered when element is changed.
|
|
32
|
+
* @param e React original event object
|
|
33
|
+
* @param value Current changed value
|
|
34
|
+
*/
|
|
35
|
+
handleChange: (newValue: any) => void;
|
|
36
|
+
/**
|
|
37
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
38
|
+
* See the `sx` page for more details.
|
|
39
|
+
*/
|
|
40
|
+
sx?: SxProps<Theme>;
|
|
41
|
+
/**
|
|
42
|
+
* Override or extend the styles applied to the component. See CSS API below for more details.
|
|
43
|
+
*/
|
|
44
|
+
classes?: object;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @description SkodaFlow Checkbox component.
|
|
48
|
+
* Properties are inherited from HTML Button element.
|
|
49
|
+
* @param props TabsProps
|
|
50
|
+
* @returns React Functional Component
|
|
51
|
+
*/
|
|
52
|
+
export declare const Tabs: React.ForwardRefExoticComponent<TabsProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useTextAreaEffect: (currentValue: string, value: string, maxChars: number, required: boolean, setIsShrunk: React.Dispatch<React.SetStateAction<boolean>>, setCurrentValue: React.Dispatch<React.SetStateAction<string>>, setIsRequired: React.Dispatch<React.SetStateAction<boolean>>) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './textArea';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const useTextInput: (label: any, isRequired: any, placeholder: any, type: 'text' | 'number') => {
|
|
3
|
+
handleOnBlur: (event: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>, setIsShrunk: any, setIsFocused: any, onBlur: any, currentValue: any) => void;
|
|
4
|
+
handleOnFocus: (event: React.FocusEvent<HTMLInputElement | HTMLTextAreaElement>, setIsFocused: any, setIsShrunk: any, onFocus: any) => void;
|
|
5
|
+
handleOnChange: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>, maxChars: any, onChange: any, setCurrentValue: any) => void;
|
|
6
|
+
handlePlaceholder: any;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useTextInputEffect: (inputRef: any, setInputWidth: React.Dispatch<React.SetStateAction<string>>, fullWidth: boolean, width: number, currentValue: string, value: string, maxChars: number, required: boolean, setIsShrunk: React.Dispatch<React.SetStateAction<boolean>>, setCurrentValue: React.Dispatch<React.SetStateAction<string>>, setIsRequired: React.Dispatch<React.SetStateAction<boolean>>) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './textInput';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextInputProps } from '../common/interface/textInputInterface';
|
|
3
|
+
/**
|
|
4
|
+
* @description SkodaFlow TextInput component.
|
|
5
|
+
* Properties are inherited from HTML input element.
|
|
6
|
+
* @param props TextInputProps
|
|
7
|
+
* @returns React Functional Component
|
|
8
|
+
*/
|
|
9
|
+
export declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './toggleSwitch';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @interface ToggleSwitchProps
|
|
4
|
+
* @description Base definition of SkodaFlow ToggleSwitch independent on core implementation.
|
|
5
|
+
* Properties are inherited from HTML Button element
|
|
6
|
+
*/
|
|
7
|
+
export interface ToggleSwitchProps extends Omit<React.HTMLAttributes<HTMLButtonElement>, 'onChange' | 'size' | 'color'> {
|
|
8
|
+
/**
|
|
9
|
+
* Compact size, minimalistic design.
|
|
10
|
+
*/
|
|
11
|
+
compact?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Disabled state, not changeable.
|
|
14
|
+
*/
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Uncontrolled component. Set initial value. Do not use with "checked" together.
|
|
18
|
+
*/
|
|
19
|
+
defaultChecked?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Controlled component. Set current value. Do not use with "defaultChecked" together.
|
|
22
|
+
*/
|
|
23
|
+
checked?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The value referenced with ToggleSwitch element
|
|
26
|
+
*/
|
|
27
|
+
value?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The value referenced with checkbox element
|
|
30
|
+
*/
|
|
31
|
+
label?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @description Triggered when element is changed.
|
|
34
|
+
* @param e React original event object
|
|
35
|
+
* @param value Current changed value
|
|
36
|
+
*/
|
|
37
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>, value: boolean) => void;
|
|
38
|
+
isNavigationVariant?: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @description SkodaFlow ToggleSwitch component.
|
|
42
|
+
* Properties are inherited from HTML Button element.
|
|
43
|
+
* @param props ToggleSwitchProps
|
|
44
|
+
* @returns React Functional Component
|
|
45
|
+
*/
|
|
46
|
+
export declare const ToggleSwitch: React.ForwardRefExoticComponent<ToggleSwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tooltip';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @interface TooltipProps
|
|
4
|
+
* @description Base definition of SkodaFlow Tooltip independent on core implementation.
|
|
5
|
+
* Properties are inherited from HTML Tooltip element
|
|
6
|
+
*/
|
|
7
|
+
export interface TooltipProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'title'> {
|
|
8
|
+
/**
|
|
9
|
+
* Tooltip placement
|
|
10
|
+
* @default 'bottom'
|
|
11
|
+
*/
|
|
12
|
+
placement?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
|
|
13
|
+
/**
|
|
14
|
+
* Tooltip text
|
|
15
|
+
*/
|
|
16
|
+
title: NonNullable<React.ReactNode> | string;
|
|
17
|
+
/**
|
|
18
|
+
* Element hovered by Tooltip
|
|
19
|
+
*/
|
|
20
|
+
children: React.ReactElement<any, any>;
|
|
21
|
+
/**
|
|
22
|
+
* Tooltip Icon
|
|
23
|
+
* @default 'heart'
|
|
24
|
+
*/
|
|
25
|
+
iconName?: 'list' | 'menu' | 'filters' | 'stats' | 'soundwave' | 'play-left' | 'rewind' | 'play-previous' | 'heart';
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @description SkodaFlow Tooltip component.
|
|
29
|
+
* @param props TooltipProps
|
|
30
|
+
* @returns React Functional Component
|
|
31
|
+
*/
|
|
32
|
+
export declare const Tooltip: React.FC<TooltipProps>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Components } from '@mui/material/styles/components';
|
|
2
|
+
declare module '@mui/material/Button' {
|
|
3
|
+
interface ButtonPropsVariantOverrides {
|
|
4
|
+
tertiary: true;
|
|
5
|
+
ghost: true;
|
|
6
|
+
primary: true;
|
|
7
|
+
secondary: true;
|
|
8
|
+
navigation: true;
|
|
9
|
+
}
|
|
10
|
+
interface ButtonPropsSizeOverrides {
|
|
11
|
+
compact: true;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export declare const navigationButtonStyle: {
|
|
15
|
+
color: string;
|
|
16
|
+
padding: string;
|
|
17
|
+
fontWeight: number;
|
|
18
|
+
lineHeight: string;
|
|
19
|
+
'&:hover': {
|
|
20
|
+
backgroundColor: string;
|
|
21
|
+
'.MuiButton-startIcon': {
|
|
22
|
+
marginLeft: number;
|
|
23
|
+
marginRight: number;
|
|
24
|
+
};
|
|
25
|
+
'.MuiButton-endIcon': {
|
|
26
|
+
marginLeft: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
'&:disabled': {
|
|
30
|
+
backgroundColor: string;
|
|
31
|
+
};
|
|
32
|
+
'.MuiButton-startIcon': {
|
|
33
|
+
transition: string;
|
|
34
|
+
};
|
|
35
|
+
'.MuiButton-endIcon': {
|
|
36
|
+
marginLeft: number;
|
|
37
|
+
transition: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const flowButton: Components['MuiButton'];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Components } from '@mui/material/styles/components';
|
|
2
|
+
declare module '@mui/material/Chip' {
|
|
3
|
+
interface ChipPropsVariantOverrides {
|
|
4
|
+
solid: true;
|
|
5
|
+
transparent: true;
|
|
6
|
+
shadow: true;
|
|
7
|
+
image: true;
|
|
8
|
+
multiselect: true;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare const flowChip: Components['MuiChip'];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Components } from '@mui/material/styles/components';
|
|
2
|
+
declare module '@mui/material/Icon' {
|
|
3
|
+
interface IconPropsSizeOverrides {
|
|
4
|
+
large: true;
|
|
5
|
+
medium: true;
|
|
6
|
+
small: true;
|
|
7
|
+
extraLarge: true;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare const flowIcon: Components['MuiIcon'];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Theme } from '@mui/material/styles';
|
|
3
|
+
export declare const createSkodaTheme: () => Theme;
|
|
4
|
+
export declare class SkodaTheme extends React.Component {
|
|
5
|
+
private skodaTheme;
|
|
6
|
+
constructor(props: any);
|
|
7
|
+
render(): JSX.Element;
|
|
8
|
+
}
|