@skodaflow/web-library 3.2.4 → 3.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/README.md +81 -120
  2. package/build/README.md +81 -120
  3. package/build/components/backdrop/backdrop.d.ts +3 -0
  4. package/build/components/button/button.d.ts +1 -0
  5. package/build/components/cardMenu/styled/menuListStyled.d.ts +1 -1
  6. package/build/components/cardMenu/styled/popperStyled.d.ts +10 -1
  7. package/build/components/checkbox/checkbox.d.ts +1 -0
  8. package/build/components/chip/regular/chip.d.ts +1 -0
  9. package/build/components/closeDialogButton/index.d.ts +4 -0
  10. package/build/components/common/helperText.d.ts +2 -2
  11. package/build/components/common/imageComponent.d.ts +2 -2
  12. package/build/components/common/resizableSliderInput.d.ts +1 -1
  13. package/build/components/common/styled/textFieldStyled.d.ts +3 -17
  14. package/build/components/common/textInputHelperText.d.ts +2 -2
  15. package/build/components/container/container.d.ts +2 -1
  16. package/build/components/divider/divider.d.ts +1 -0
  17. package/build/components/grid/grid.d.ts +3 -2
  18. package/build/components/iconButton/index.d.ts +35 -0
  19. package/build/components/index.d.ts +2 -0
  20. package/build/components/modal/contentDiv.d.ts +1 -1
  21. package/build/components/pagination/pagination.d.ts +1 -1
  22. package/build/components/radioButton/radioButton.d.ts +2 -1
  23. package/build/components/selectInput/inputLabelSelect.d.ts +2 -2
  24. package/build/components/selectInput/selectInput.d.ts +1 -0
  25. package/build/components/tab/index.d.ts +1 -0
  26. package/build/components/textArea/textArea.d.ts +3 -0
  27. package/build/components/textInput/textInput.d.ts +1 -0
  28. package/build/components/toggleSwitch/toggleSwitch.d.ts +2 -1
  29. package/build/components/tooltip/tooltip.d.ts +1 -0
  30. package/build/design/skoda/components/tabs/index.d.ts +2 -0
  31. package/build/design/skoda/components/tabs/theme.tab.d.ts +2 -0
  32. package/build/design/skoda/components/tabs/theme.tabs.d.ts +2 -0
  33. package/build/design/skoda/components/theme.baseline.d.ts +3 -0
  34. package/build/design/skoda/components/theme.button.d.ts +2 -43
  35. package/build/design/skoda/components/theme.buttonBase.d.ts +2 -0
  36. package/build/design/skoda/components/theme.checkbox.d.ts +2 -2
  37. package/build/design/skoda/components/theme.chip.d.ts +2 -10
  38. package/build/design/skoda/components/theme.container.d.ts +2 -2
  39. package/build/design/skoda/components/theme.dialog.d.ts +2 -0
  40. package/build/design/skoda/components/theme.dialogActions.d.ts +2 -0
  41. package/build/design/skoda/components/theme.dialogTitle.d.ts +2 -0
  42. package/build/design/skoda/components/theme.filledInput.d.ts +2 -0
  43. package/build/design/skoda/components/theme.formControl.d.ts +2 -0
  44. package/build/design/skoda/components/theme.formControlLabel.d.ts +2 -2
  45. package/build/design/skoda/components/theme.formHelperText.d.ts +2 -0
  46. package/build/design/skoda/components/theme.formLabel.d.ts +2 -0
  47. package/build/design/skoda/components/theme.iconButton.d.ts +3 -0
  48. package/build/design/skoda/components/theme.input.d.ts +2 -0
  49. package/build/design/skoda/components/theme.inputAdornment.d.ts +2 -0
  50. package/build/design/skoda/components/theme.inputBase.d.ts +2 -0
  51. package/build/design/skoda/components/theme.inputLabel.d.ts +2 -0
  52. package/build/design/skoda/components/theme.list.d.ts +2 -0
  53. package/build/design/skoda/components/theme.listItemText.d.ts +2 -0
  54. package/build/design/skoda/components/theme.menuItem.d.ts +2 -2
  55. package/build/design/skoda/components/theme.paper.d.ts +2 -0
  56. package/build/design/skoda/components/theme.popover.d.ts +2 -0
  57. package/build/design/skoda/components/theme.radio.d.ts +2 -2
  58. package/build/design/skoda/components/theme.switch.d.ts +2 -6
  59. package/build/design/skoda/index.d.ts +10 -4
  60. package/build/design/skoda/{theme.palette-new-ci.d.ts → theme.extensions.d.ts} +42 -5
  61. package/build/design/skoda/theme.palette.d.ts +2 -0
  62. package/build/design/skoda/theme.typography.d.ts +11 -36
  63. package/build/eula.txt +40 -0
  64. package/build/index.d.ts +1 -0
  65. package/build/index.es.js +15 -2
  66. package/build/index.es.js.map +1 -1
  67. package/build/index.js +15 -2
  68. package/build/index.js.map +1 -1
  69. package/build/layout/Header/Header.d.ts +8 -0
  70. package/build/layout/Header/HeaderButton.d.ts +9 -0
  71. package/build/layout/Header/HeaderLogo.d.ts +9 -0
  72. package/build/layout/Header/HeaderNavigationItem.d.ts +16 -0
  73. package/build/layout/Header/HeaderOverheadItem.d.ts +13 -0
  74. package/build/layout/Header/HeaderSkodaLogo.d.ts +4 -0
  75. package/build/layout/Header/PredefinedHeaderButtons.d.ts +14 -0
  76. package/build/layout/Header/index.d.ts +7 -0
  77. package/build/layout/index.d.ts +1 -0
  78. package/build/organisms/carousel/carousel.d.ts +2 -2
  79. package/build/organisms/carousel/carouselButton.d.ts +3 -3
  80. package/build/organisms/carousel/carouselTemplate.d.ts +2 -2
  81. package/build/organisms/carousel2/cardCarousel/cardCarousel.d.ts +5 -0
  82. package/build/organisms/carousel2/cardCarousel/index.d.ts +1 -0
  83. package/build/organisms/carousel2/carousel2.d.ts +131 -0
  84. package/build/organisms/carousel2/carouselButton.d.ts +11 -0
  85. package/build/organisms/carousel2/carouselTemplate.d.ts +8 -0
  86. package/build/organisms/carousel2/components/DotButton.d.ts +7 -0
  87. package/build/organisms/carousel2/components/ItemsContainer.d.ts +7 -0
  88. package/build/organisms/carousel2/components/NavButton.d.ts +15 -0
  89. package/build/organisms/carousel2/components/Numbering.d.ts +12 -0
  90. package/build/organisms/carousel2/components/ScrollSnapDots.d.ts +6 -0
  91. package/build/organisms/carousel2/components/ViewPort.d.ts +9 -0
  92. package/build/organisms/carousel2/galleryCarousel/GalleryItemText.d.ts +5 -0
  93. package/build/organisms/carousel2/galleryCarousel/galleryCarousel.d.ts +35 -0
  94. package/build/organisms/carousel2/galleryCarousel/galleryCarouselItem.d.ts +14 -0
  95. package/build/organisms/carousel2/galleryCarousel/galleryContext.d.ts +21 -0
  96. package/build/organisms/carousel2/galleryCarousel/galleryItemContext.d.ts +5 -0
  97. package/build/organisms/carousel2/galleryCarousel/galleryItemHeading.d.ts +5 -0
  98. package/build/organisms/carousel2/galleryCarousel/index.d.ts +4 -0
  99. package/build/organisms/carousel2/heroCarousel/HeroCarouselSlide.d.ts +12 -0
  100. package/build/organisms/carousel2/heroCarousel/heroCarousel.d.ts +13 -0
  101. package/build/organisms/carousel2/heroCarousel/heroCarouselContext.d.ts +12 -0
  102. package/build/organisms/carousel2/heroCarousel/index.d.ts +2 -0
  103. package/build/organisms/carousel2/hooks/useContainerPeek.d.ts +13 -0
  104. package/build/organisms/carousel2/hooks/useDefaultProps.d.ts +2 -0
  105. package/build/organisms/carousel2/hooks/useEmbla.d.ts +2 -0
  106. package/build/organisms/carousel2/hooks/useEmblaHover.d.ts +5 -0
  107. package/build/organisms/carousel2/hooks/useEmblaScroll.d.ts +3 -0
  108. package/build/organisms/carousel2/hooks/useEmblaSelect.d.ts +7 -0
  109. package/build/organisms/carousel2/index.d.ts +3 -0
  110. package/build/organisms/carousel2/styledComponents/styledCarouselHorizontal.d.ts +12 -0
  111. package/build/organisms/carousel2/utils/ResponsiveType.d.ts +14 -0
  112. package/build/organisms/common/styled/cardStandardWrapperStyled.d.ts +1 -1
  113. package/build/organisms/index.d.ts +1 -0
  114. package/build/organisms/shortcutLink/shortcutLink.d.ts +2 -2
  115. package/package.json +105 -104
  116. package/theme/skoda/globals.css +85 -17
  117. package/build/design/skoda/components/theme.menu.d.ts +0 -2
  118. package/build/design/skoda/components/theme.tab.d.ts +0 -2
  119. package/build/design/skoda/theme.baseline.d.ts +0 -5
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ import { IconButtonProps as MuiIconButtonProps } from '@mui/material';
3
+ export type IconButtonProps = MuiIconButtonProps & {
4
+ variant?: 'filled' | 'outlined' | 'standard';
5
+ };
6
+ export declare const IconButton: import("@emotion/styled").StyledComponent<{
7
+ children?: import("react").ReactNode;
8
+ classes?: Partial<import("@mui/material").IconButtonClasses>;
9
+ color?: "inherit" | "primary" | "secondary";
10
+ disabled?: boolean;
11
+ disableFocusRipple?: boolean;
12
+ edge?: false | "start" | "end";
13
+ size?: "small" | "medium" | "large";
14
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
15
+ } & Omit<{
16
+ action?: import("react").Ref<import("@mui/material").ButtonBaseActions>;
17
+ centerRipple?: boolean;
18
+ children?: import("react").ReactNode;
19
+ classes?: Partial<import("@mui/material").ButtonBaseClasses>;
20
+ disabled?: boolean;
21
+ disableRipple?: boolean;
22
+ disableTouchRipple?: boolean;
23
+ focusRipple?: boolean;
24
+ focusVisibleClassName?: string;
25
+ LinkComponent?: import("react").ElementType<any>;
26
+ onFocusVisible?: import("react").FocusEventHandler<any>;
27
+ sx?: import("@mui/material").SxProps<import("@mui/material").Theme>;
28
+ tabIndex?: number;
29
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps>;
30
+ touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions>;
31
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
32
+ ref?: import("react").Ref<HTMLButtonElement>;
33
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "color" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "size"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
34
+ variant?: 'filled' | 'outlined' | 'standard';
35
+ }, {}, {}>;
@@ -38,4 +38,6 @@ export * from './toggleSwitch';
38
38
  export * from './tooltip';
39
39
  export * from './common';
40
40
  export * from './avatar';
41
+ export * from './closeDialogButton';
42
+ export * from './iconButton';
41
43
  export { Typography } from '@mui/material';
@@ -12,4 +12,4 @@ export interface ContentDivProps extends React.HTMLAttributes<HTMLDivElement> {
12
12
  * @param props ContentDivProps
13
13
  * @returns React Functional Component
14
14
  */
15
- export declare const ContentDiv: ({ children, setIsOverFlowing, className, modalLoadedCallback }: ContentDivProps) => JSX.Element;
15
+ export declare const ContentDiv: ({ children, setIsOverFlowing, className, modalLoadedCallback }: ContentDivProps) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
1
  import { Theme } from '@mui/material/styles';
3
2
  import { SxProps } from '@mui/system';
3
+ import React from 'react';
4
4
  export interface PaginationProps extends Omit<React.HTMLAttributes<HTMLButtonElement>, 'color' | 'size'> {
5
5
  /**
6
6
  * The total number of pages.
@@ -43,5 +43,6 @@ export interface RadioButtonProps extends Omit<HTMLAttributes<HTMLButtonElement>
43
43
  * @description Styled SkodaFlow RadioButton component
44
44
  * @param props RadioButtonProps
45
45
  * @returns React Functional Component
46
+ * @deprecated This component is deprecated. Use use FormControlLabel and Radio components from @mui/material instead.
46
47
  */
47
- export declare const RadioButton: React.ForwardRefExoticComponent<Pick<RadioButtonProps, "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "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>>;
48
+ export declare const RadioButton: React.ForwardRefExoticComponent<Pick<RadioButtonProps, "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "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>>;
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  declare const InputLabelSelect: ({ staticLabel, currentValue, opened, label }: {
3
3
  staticLabel: any;
4
4
  currentValue: any;
5
5
  opened: any;
6
6
  label: any;
7
- }) => JSX.Element;
7
+ }) => React.JSX.Element;
8
8
  export default InputLabelSelect;
@@ -83,5 +83,6 @@ export interface SelectInputProps {
83
83
  * Properties are inherited from HTML input element.
84
84
  * @param props SelectInputProps
85
85
  * @returns React Functional Component
86
+ * @deprecated This component is deprecated. Use themed Select component from @mui/material instead.
86
87
  */
87
88
  export declare const SelectInput: React.ForwardRefExoticComponent<SelectInputProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,3 +1,4 @@
1
1
  export * from './tab';
2
2
  export * from './tabPanel';
3
3
  export * from './tabs';
4
+ export * from './secondaryNavigation/secondaryNavigationTabs';
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
2
  import { TextInputProps } from '../common/interface/textInputInterface';
3
+ /**
4
+ * @deprecated This component is deprecated. Use themed TextField component from @mui/material with multiline prop set to true.
5
+ */
3
6
  export declare const TextArea: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLDivElement>>;
@@ -5,5 +5,6 @@ import { TextInputProps } from '../common/interface/textInputInterface';
5
5
  * Properties are inherited from HTML input element.
6
6
  * @param props TextInputProps
7
7
  * @returns React Functional Component
8
+ * @deprecated this component is deprecated. Use themed TextField component from @mui/material instead.
8
9
  */
9
10
  export declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLDivElement>>;
@@ -2,7 +2,8 @@ import React from 'react';
2
2
  /**
3
3
  * @interface ToggleSwitchProps
4
4
  * @description Base definition of SkodaFlow ToggleSwitch independent on core implementation.
5
- * Properties are inherited from HTML Button element
5
+ * Properties are inherited from HTML Button element.
6
+ * @deprecated This component is deprecated. Use themed Switch and FromControlLabel components from @mui/material instead.
6
7
  */
7
8
  export interface ToggleSwitchProps extends Omit<React.HTMLAttributes<HTMLButtonElement>, 'onChange' | 'size' | 'color'> {
8
9
  /**
@@ -28,5 +28,6 @@ export interface TooltipProps extends Omit<React.HTMLAttributes<HTMLDivElement>,
28
28
  * @description SkodaFlow Tooltip component.
29
29
  * @param props TooltipProps
30
30
  * @returns React Functional Component
31
+ * @deprecated This component is deprecated. Use themed Tooltip component from @mui/material instead.
31
32
  */
32
33
  export declare const Tooltip: React.FC<TooltipProps>;
@@ -0,0 +1,2 @@
1
+ export * from './theme.tab';
2
+ export * from './theme.tabs';
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowTab: Components<Theme>['MuiTab'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowTabs: Components<Theme>['MuiTabs'];
@@ -0,0 +1,3 @@
1
+ import { TypographySize } from '../theme.typography';
2
+ import { Components, Theme } from '@mui/material';
3
+ export declare const flowScopedCssBaseline: (typographySize: TypographySize) => Components<Theme>['MuiScopedCssBaseline'];
@@ -1,44 +1,3 @@
1
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
- color: string;
32
- '& .MuiIcon-root': {
33
- color: string;
34
- };
35
- };
36
- '.MuiButton-startIcon': {
37
- transition: string;
38
- };
39
- '.MuiButton-endIcon': {
40
- marginLeft: number;
41
- transition: string;
42
- };
43
- };
44
- export declare const flowButton: Components['MuiButton'];
2
+ import { Theme } from '@mui/material';
3
+ export declare const flowButton: Components<Theme>['MuiButton'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowButtonBase: Components<Theme>['MuiButtonBase'];
@@ -1,2 +1,2 @@
1
- import { Components } from '@mui/material/styles';
2
- export declare const flowCheckbox: Components['MuiCheckbox'];
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowCheckbox: Components<Theme>['MuiCheckbox'];
@@ -1,11 +1,3 @@
1
+ import { Theme } from '@mui/material';
1
2
  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'];
3
+ export declare const flowChip: Components<Theme>['MuiChip'];
@@ -1,3 +1,3 @@
1
+ import { Theme } from '@mui/material';
1
2
  import { Components } from '@mui/material/styles/components';
2
- declare module '@mui/material/Container' { }
3
- export declare const flowContainer: Components['MuiContainer'];
3
+ export declare const flowContainer: Components<Theme>['MuiContainer'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowDialog: Components<Theme>['MuiDialog'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowDialogActions: Components<Theme>['MuiDialogActions'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowDialogTitle: Components<Theme>['MuiDialogTitle'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowFilledInput: Components<Theme>['MuiFilledInput'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowFormControl: Components<Theme>['MuiFormControl'];
@@ -1,2 +1,2 @@
1
- import { Components } from '@mui/material/styles';
2
- export declare const flowFormControlLabel: Components['MuiFormControlLabel'];
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowFormControlLabel: Components<Theme>['MuiFormControlLabel'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowFormHelperText: Components<Theme>['MuiFormHelperText'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowFormLabel: Components<Theme>['MuiFormLabel'];
@@ -0,0 +1,3 @@
1
+ import { Components } from '@mui/material/styles/components';
2
+ import { Theme } from '@mui/material';
3
+ export declare const flowIconButton: Components<Theme>['MuiIconButton'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowInput: Components<Theme>['MuiInput'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowInputAdornment: Components<Theme>['MuiInputAdornment'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowInputBase: Components<Theme>['MuiInputBase'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowInputLabel: Components<Theme>['MuiInputLabel'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowList: Components<Theme>['MuiList'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowListItemText: Components<Theme>['MuiListItemText'];
@@ -1,2 +1,2 @@
1
- import { Components } from '@mui/material/styles';
2
- export declare const flowMenuItem: Components['MuiMenuItem'];
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowMenuItem: Components<Theme>['MuiMenuItem'];
@@ -0,0 +1,2 @@
1
+ import { Components } from '@mui/material/styles';
2
+ export declare const flowPaper: Components['MuiPaper'];
@@ -0,0 +1,2 @@
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowPopover: Components<Theme>['MuiPopover'];
@@ -1,2 +1,2 @@
1
- import { Components } from '@mui/material/styles';
2
- export declare const flowRadio: Components['MuiRadio'];
1
+ import { Components, Theme } from '@mui/material/styles';
2
+ export declare const flowRadio: Components<Theme>['MuiRadio'];
@@ -1,7 +1,3 @@
1
+ import { Theme } from '@mui/material';
1
2
  import { Components } from '@mui/material/styles/components';
2
- declare module '@mui/material/Switch' {
3
- interface SwitchPropsSizeOverrides {
4
- compact: true;
5
- }
6
- }
7
- export declare const flowSwitch: Components['MuiSwitch'];
3
+ export declare const flowSwitch: Components<Theme>['MuiSwitch'];
@@ -1,9 +1,15 @@
1
- import React from 'react';
2
1
  import { Theme } from '@mui/material/styles';
2
+ import React from 'react';
3
+ import './theme.extensions';
4
+ import { TypographySize } from './theme.typography';
3
5
  /**
4
- * @deprecated use `skodaTheme` object instead
6
+ * @deprecated use `skodaThemeProvider` component instead
7
+ * @param typographySize
8
+ */
9
+ export declare const createSkodaTheme: (typographySize: TypographySize) => Theme;
10
+ /**
11
+ * @deprecated use `SkodaThemeProvider` instead
5
12
  */
6
- export declare const createSkodaTheme: () => Theme;
7
13
  export declare const skodaTheme: Theme;
8
14
  /**
9
15
  * @deprecated use `SkodaThemeProvider` instead
@@ -11,7 +17,7 @@ export declare const skodaTheme: Theme;
11
17
  export declare class SkodaTheme extends React.Component {
12
18
  private skodaTheme;
13
19
  constructor(props: any);
14
- render(): JSX.Element;
20
+ render(): React.JSX.Element;
15
21
  }
16
22
  export type SkodaThemeProviderProps = {
17
23
  children?: React.ReactNode;
@@ -1,6 +1,22 @@
1
- import { Palette, PaletteOptions } from '@mui/material/styles';
2
- import { PaletteColorOptions } from '@mui/material/styles/createPalette';
1
+ import { PaletteColorOptions } from '@mui/material/styles';
2
+ import { CSSProperties } from 'react';
3
3
  declare module '@mui/material/styles' {
4
+ interface TypographyVariants {
5
+ display: CSSProperties;
6
+ disclaimer: CSSProperties;
7
+ caption1: CSSProperties;
8
+ caption2: CSSProperties;
9
+ body: CSSProperties;
10
+ subheadline: CSSProperties;
11
+ }
12
+ interface TypographyVariantsOptions {
13
+ display?: CSSProperties;
14
+ disclaimer?: CSSProperties;
15
+ caption1?: CSSProperties;
16
+ caption2?: CSSProperties;
17
+ body?: CSSProperties;
18
+ subheadline?: CSSProperties;
19
+ }
4
20
  interface PaletteOptions {
5
21
  brand?: Palette['brand'];
6
22
  brandHover?: Palette['brandHover'];
@@ -11,8 +27,6 @@ declare module '@mui/material/styles' {
11
27
  surface?: Palette['surface'];
12
28
  onSurface?: Palette['onSurface'];
13
29
  }
14
- }
15
- declare module '@mui/material/styles/createPalette' {
16
30
  interface Palette {
17
31
  brand: BrandColors;
18
32
  brandHover?: BrandHoverColors;
@@ -63,4 +77,27 @@ declare module '@mui/material/styles/createPalette' {
63
77
  primary: string;
64
78
  }
65
79
  }
66
- export declare const flowColors: PaletteOptions;
80
+ declare module '@mui/material/Button' {
81
+ interface ButtonPropsVariantOverrides {
82
+ navigation: true;
83
+ }
84
+ }
85
+ declare module '@mui/material/IconButton' {
86
+ interface IconButtonPropsColorOverrides {
87
+ default: false;
88
+ error: false;
89
+ warning: false;
90
+ info: false;
91
+ success: false;
92
+ }
93
+ }
94
+ declare module '@mui/material/Typography' {
95
+ interface TypographyPropsVariantOverrides {
96
+ display: true;
97
+ disclaimer: true;
98
+ caption1: true;
99
+ caption2: true;
100
+ body: true;
101
+ subheadline: true;
102
+ }
103
+ }
@@ -0,0 +1,2 @@
1
+ import { PaletteOptions } from '@mui/material/styles';
2
+ export declare const flowColors: PaletteOptions;
@@ -1,36 +1,11 @@
1
- import { Theme } from '@mui/material/styles';
2
- declare module '@mui/material/styles/createTypography' {
3
- interface TypographyOptions {
4
- display?: CSSProperties;
5
- disclaimer?: CSSProperties;
6
- caption1?: CSSProperties;
7
- caption2?: CSSProperties;
8
- body?: CSSProperties;
9
- subheadline?: CSSProperties;
10
- }
11
- interface Typography {
12
- display?: CSSProperties;
13
- disclaimer?: CSSProperties;
14
- caption1?: CSSProperties;
15
- caption2?: CSSProperties;
16
- body?: CSSProperties;
17
- subheadline?: CSSProperties;
18
- }
19
- }
20
- declare module '@mui/material/Typography' {
21
- interface TypographyPropsVariantOverrides {
22
- body: true;
23
- h1: true;
24
- h2: true;
25
- h3: true;
26
- h4: true;
27
- subheadline: true;
28
- display: true;
29
- disclaimer: true;
30
- caption1: true;
31
- caption2: true;
32
- }
33
- }
34
- export declare const getTypography: (element: string, size?: string) => any;
35
- export declare const getResponsiveTypography: (theme: Theme, element: string) => any;
36
- export declare const applyTypography: (t: Theme) => Theme;
1
+ import { TypographyOptions } from '@mui/material/styles/createTypography';
2
+ export type TypographySize = 'small' | 'medium' | 'large';
3
+ export declare const getTypography: (element: string, size: TypographySize) => any;
4
+ export declare const useTypographySize: () => TypographySize;
5
+ /**
6
+ * Making typography responsive using mediaquery makes theming of components very complicated.
7
+ * This new approach resolves typography by provided size. To calculate size use useTypographySize hook.
8
+ * @param size
9
+ * @returns
10
+ */
11
+ export declare const getTypographyOptions: (size: TypographySize) => TypographyOptions;
package/build/eula.txt ADDED
@@ -0,0 +1,40 @@
1
+ EULA - SKODA AUTO Libraries
2
+ ŠKODA AUTO a.s. with registered offices at Mladá Boleslav, tř. Václava Klementa 869, Mladá Boleslav II, 293 01 Mladá Boleslav, Czech Republic, ID No. 00177041, registered in the commercial Register held by Městský Soud v Praze (Metropolitan Court in Prague), section B, entry 332 (“ŠKODA AUTO”) releases this End-User Licence Agreement (“EULA”) to specify the rights and obligations when using library/package applicable to this EULA (“Library”).
3
+
4
+ Specification of the Library
5
+
6
+ Specification of the library is not part of this EULA and is provided by suitable documentation, shiped with beforementioned library.
7
+
8
+ The Library is dedicated to sustaining all ŠKODA AUTO web development projects.
9
+
10
+ License
11
+
12
+ ŠKODA AUTO declares that all source code, files, fonts and all other assets are exclusively owned by ŠKODA AUTO.
13
+
14
+ ŠKODA AUTO grants you a revocable, non-exclusive, non-transferable, limited license to download, install and use the Library strictly in accordance with this EULA.
15
+
16
+ If you violate any of these limitations or restrictions, the license grant will automatically and immediately expire. Any usage of the Library outside the scope of the applicable license constitutes an infringement of ŠKODA AUTO’s intellectual property rights as well as a material breach of this EULA.
17
+
18
+ Restrictions
19
+
20
+ You agree not to, and you will not permit others to:
21
+
22
+ license, sell, rent, lease, assign, distribute, transmit, host, outsource, disclose or otherwise commercially exploit the Library or make the Library available to any third party;
23
+ provide or make available any features or functionality of the Library to any person or entity outside of your organization;
24
+ change, decompile or disassemble the Library or its source code, algorithms, methods or techniques;
25
+ remove, alter or obscure any proprietary notices, labels or marks in the Library;
26
+ translate, adapt, arrange, or create derivative works based on, or otherwise modify the Library for any purpose except of the purpose which is stated in this EULA;
27
+ use the Application in excess of, or in any manner inconsistent with your entitlements.
28
+ The Library may only be used for the purpose of creating products for ŠKODA AUTO. You agree not to use the Library for any other purpose and outside of the scope of business with ŠKODA AUTO.
29
+
30
+ Copyright
31
+
32
+ ŠKODA AUTO and its licensors retain title to and ownership of, and all other rights with respect to, the Library, including, without limitation, any related copyrights, trademarks, trade secrets, patents, and other intellectual property rights. You have only the limited license granted with respect to the Library expressly set forth in this EULA. You acknowledge and agree that the Library is licensed, not sold, and that rights to use the Library are acquired only under the license from ŠKODA AUTO.
33
+
34
+ Modifications of the Library
35
+
36
+ ŠKODA AUTO reserves the right to modify, suspend or discontinue, temporarily or permanently, the Library or any service to which it connects, with or without notice and without liability to you.
37
+
38
+ The Library will not be updated or maintained regularly. All updates depend on the decision of ŠKODA AUTO.
39
+
40
+ In Mladá Boleslav on 2022
package/build/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from './design';
2
2
  export * from './components';
3
3
  export * from './organisms';
4
4
  export * from './utils';
5
+ export * from './layout';