@skodaflow/web-library 7.1.0 → 7.1.2

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 (769) hide show
  1. package/cjs/components/accordion/accordion.js +1 -1
  2. package/cjs/components/accordion/accordion.js.map +1 -1
  3. package/cjs/components/alert/Alert.js.map +1 -1
  4. package/cjs/components/alert/AlertButton.js.map +1 -1
  5. package/cjs/components/avatar/Avatar.js.map +1 -1
  6. package/cjs/components/backdrop/backdrop.js +1 -1
  7. package/cjs/components/backdrop/backdrop.js.map +1 -1
  8. package/cjs/components/banner/banner.js +1 -1
  9. package/cjs/components/banner/banner.js.map +1 -1
  10. package/cjs/components/box/index.d.ts +1 -0
  11. package/cjs/components/button/button.js +1 -1
  12. package/cjs/components/button/button.js.map +1 -1
  13. package/cjs/components/card/Card.js +1 -1
  14. package/cjs/components/card/Card.js.map +1 -1
  15. package/cjs/components/card/FlippingCard.js +1 -1
  16. package/cjs/components/card/FlippingCard.js.map +1 -1
  17. package/cjs/components/card/LinkCard.js.map +1 -1
  18. package/cjs/components/card/SelectableCard.js.map +1 -1
  19. package/cjs/components/card/SimpleCard.js.map +1 -1
  20. package/cjs/components/cardContainer/cardContainer.js +1 -1
  21. package/cjs/components/cardContainer/cardContainer.js.map +1 -1
  22. package/cjs/components/cardMenu/cardMenu.js.map +1 -1
  23. package/cjs/components/cardMenu/hooks/useCardMenu.js.map +1 -1
  24. package/cjs/components/cardMenu/styled/drawerStyled.js.map +1 -1
  25. package/cjs/components/cardMenu/styled/menuListStyled.js.map +1 -1
  26. package/cjs/components/cardMenu/styled/popperStyled.js.map +1 -1
  27. package/cjs/components/checkbox/checkbox.js +1 -1
  28. package/cjs/components/checkbox/checkbox.js.map +1 -1
  29. package/cjs/components/chip/chipDropdownChildren/chipDropdownChildren.js +1 -1
  30. package/cjs/components/chip/chipDropdownChildren/chipDropdownChildren.js.map +1 -1
  31. package/cjs/components/chip/chipFocusVisibleStyled.d.ts +1 -1
  32. package/cjs/components/chip/chipFocusVisibleStyled.js.map +1 -1
  33. package/cjs/components/chip/chipImage/chipImage.js +1 -1
  34. package/cjs/components/chip/chipImage/chipImage.js.map +1 -1
  35. package/cjs/components/chip/chipMultiselect/multiSelectChip.js +1 -1
  36. package/cjs/components/chip/chipMultiselect/multiSelectChip.js.map +1 -1
  37. package/cjs/components/chip/regular/chip.js +1 -1
  38. package/cjs/components/chip/regular/chip.js.map +1 -1
  39. package/cjs/components/closeDialogButton/index.js.map +1 -1
  40. package/cjs/components/common/helperText.js.map +1 -1
  41. package/cjs/components/common/hook/backdrop.js.map +1 -1
  42. package/cjs/components/common/hook/useWindowSize.js.map +1 -1
  43. package/cjs/components/common/imageComponent.js.map +1 -1
  44. package/cjs/components/common/menuContainer.js +1 -1
  45. package/cjs/components/common/menuContainer.js.map +1 -1
  46. package/cjs/components/common/menuEmpty.js +1 -1
  47. package/cjs/components/common/menuEmpty.js.map +1 -1
  48. package/cjs/components/common/resizableSliderInput.js.map +1 -1
  49. package/cjs/components/common/styled/buttonFocusVisibleStyled.d.ts +1 -1
  50. package/cjs/components/common/styled/buttonFocusVisibleStyled.js.map +1 -1
  51. package/cjs/components/common/styled/formControlLabelStyled.js.map +1 -1
  52. package/cjs/components/common/styled/helperTextContainerStyled.d.ts +1 -1
  53. package/cjs/components/common/styled/sliderValuesStyled.d.ts +1 -1
  54. package/cjs/components/common/styled/sliderValuesStyled.js.map +1 -1
  55. package/cjs/components/common/styled/textFieldStyled.js +1 -1
  56. package/cjs/components/common/styled/textFieldStyled.js.map +1 -1
  57. package/cjs/components/controls/controls.js +1 -1
  58. package/cjs/components/controls/controls.js.map +1 -1
  59. package/cjs/components/customPickersActionBar/index.js +1 -1
  60. package/cjs/components/customPickersActionBar/index.js.map +1 -1
  61. package/cjs/components/divider/divider.js +1 -1
  62. package/cjs/components/divider/divider.js.map +1 -1
  63. package/cjs/components/drawer/drawer.js +1 -1
  64. package/cjs/components/drawer/drawer.js.map +1 -1
  65. package/cjs/components/flag/flag.js +1 -1
  66. package/cjs/components/flag/flag.js.map +1 -1
  67. package/cjs/components/grid/grid.js +1 -1
  68. package/cjs/components/grid/grid.js.map +1 -1
  69. package/cjs/components/helperTextContent/index.js.map +1 -1
  70. package/cjs/components/icon/icon.definitions.js.map +1 -1
  71. package/cjs/components/icon/icon.js +1 -1
  72. package/cjs/components/icon/icon.js.map +1 -1
  73. package/cjs/components/iconButton/index.d.ts +1 -1
  74. package/cjs/components/iconButton/index.js +1 -1
  75. package/cjs/components/iconButton/index.js.map +1 -1
  76. package/cjs/components/indicator/indicator.js +1 -1
  77. package/cjs/components/indicator/indicator.js.map +1 -1
  78. package/cjs/components/label/label.js +1 -1
  79. package/cjs/components/label/label.js.map +1 -1
  80. package/cjs/components/labelCO2/labelCO2.js.map +1 -1
  81. package/cjs/components/labelFeature/labelFeature.js +4 -4
  82. package/cjs/components/labelFeature/labelFeature.js.map +1 -1
  83. package/cjs/components/labelPromotional/labelPromotional.js +1 -1
  84. package/cjs/components/labelPromotional/labelPromotional.js.map +1 -1
  85. package/cjs/components/labelStatus/labelStatus.js +1 -1
  86. package/cjs/components/labelStatus/labelStatus.js.map +1 -1
  87. package/cjs/components/logo/Logo.js.map +1 -1
  88. package/cjs/components/menu/menu.js +1 -1
  89. package/cjs/components/menu/menu.js.map +1 -1
  90. package/cjs/components/menuItem/menuItem.js +1 -1
  91. package/cjs/components/menuItem/menuItem.js.map +1 -1
  92. package/cjs/components/mobileStepper/mobileStepper.js +1 -1
  93. package/cjs/components/mobileStepper/mobileStepper.js.map +1 -1
  94. package/cjs/components/mobileStepper/mobileStepperButton.js.map +1 -1
  95. package/cjs/components/modal/contentDiv.js.map +1 -1
  96. package/cjs/components/modal/modal.js +1 -1
  97. package/cjs/components/modal/modal.js.map +1 -1
  98. package/cjs/components/modal/modalTitle.js.map +1 -1
  99. package/cjs/components/numbering/numbering.js +1 -1
  100. package/cjs/components/numbering/numbering.js.map +1 -1
  101. package/cjs/components/pagination/pagination.js +1 -1
  102. package/cjs/components/pagination/pagination.js.map +1 -1
  103. package/cjs/components/progressBar/components/loader.js +1 -1
  104. package/cjs/components/progressBar/components/loader.js.map +1 -1
  105. package/cjs/components/progressBar/components/spinner.js +1 -1
  106. package/cjs/components/progressBar/components/spinner.js.map +1 -1
  107. package/cjs/components/progressBar/components/styledProgressBarMessage.js +1 -1
  108. package/cjs/components/progressBar/components/styledProgressBarMessage.js.map +1 -1
  109. package/cjs/components/progressBar/progressBar.js +1 -1
  110. package/cjs/components/progressBar/progressBar.js.map +1 -1
  111. package/cjs/components/radioButton/radioButton.js +1 -1
  112. package/cjs/components/radioButton/radioButton.js.map +1 -1
  113. package/cjs/components/selectInput/formControlSelectStyled.d.ts +1 -1
  114. package/cjs/components/selectInput/formControlSelectStyled.js +1 -1
  115. package/cjs/components/selectInput/formControlSelectStyled.js.map +1 -1
  116. package/cjs/components/selectInput/hook/useSelectInput.js.map +1 -1
  117. package/cjs/components/selectInput/inputLabelSelect.js.map +1 -1
  118. package/cjs/components/selectInput/selectInput.js +1 -1
  119. package/cjs/components/selectInput/selectInput.js.map +1 -1
  120. package/cjs/components/slider/containerStyled.d.ts +1 -1
  121. package/cjs/components/slider/containerStyled.js +1 -1
  122. package/cjs/components/slider/containerStyled.js.map +1 -1
  123. package/cjs/components/slider/slider.js +1 -1
  124. package/cjs/components/slider/slider.js.map +1 -1
  125. package/cjs/components/snackbar/snackbar.js +1 -1
  126. package/cjs/components/snackbar/snackbar.js.map +1 -1
  127. package/cjs/components/snackbar/snackbarMessage.js +1 -1
  128. package/cjs/components/snackbar/snackbarMessage.js.map +1 -1
  129. package/cjs/components/stepper/stepper.js +1 -1
  130. package/cjs/components/stepper/stepper.js.map +1 -1
  131. package/cjs/components/tabs/index.d.ts +1 -0
  132. package/cjs/components/tabs/tabPanel.js +1 -1
  133. package/cjs/components/tabs/tabPanel.js.map +1 -1
  134. package/cjs/components/textArea/hook/useTextAreaEffect.js.map +1 -1
  135. package/cjs/components/textArea/textArea.js +1 -1
  136. package/cjs/components/textArea/textArea.js.map +1 -1
  137. package/cjs/components/textInput/hook/useTextInput.js.map +1 -1
  138. package/cjs/components/textInput/hook/useTextInputEffect.js.map +1 -1
  139. package/cjs/components/textInput/textInput.js +1 -1
  140. package/cjs/components/textInput/textInput.js.map +1 -1
  141. package/cjs/components/toggleSwitch/toggleSwitch.js +1 -1
  142. package/cjs/components/toggleSwitch/toggleSwitch.js.map +1 -1
  143. package/cjs/components/tooltip/tooltip.js +1 -1
  144. package/cjs/components/tooltip/tooltip.js.map +1 -1
  145. package/cjs/components/upload/UploadBox.js.map +1 -1
  146. package/cjs/components/upload/UploadField.js.map +1 -1
  147. package/cjs/components/upload/UploadPreview.js.map +1 -1
  148. package/cjs/components/upload/UploadPreviewList.js.map +1 -1
  149. package/cjs/components/upload/UploadProgress.js.map +1 -1
  150. package/cjs/design/skoda/SkodaThemeProvider.js +1 -1
  151. package/cjs/design/skoda/SkodaThemeProvider.js.map +1 -1
  152. package/cjs/design/skoda/SkodaThemeWidgetProvider.js +1 -1
  153. package/cjs/design/skoda/SkodaThemeWidgetProvider.js.map +1 -1
  154. package/cjs/design/skoda/components/accordion/accordion.theme.js.map +1 -1
  155. package/cjs/design/skoda/components/accordion/accordionSummary.theme.js +1 -1
  156. package/cjs/design/skoda/components/accordion/accordionSummary.theme.js.map +1 -1
  157. package/cjs/design/skoda/components/agGrid/agGrid.theme.js +1 -1
  158. package/cjs/design/skoda/components/agGrid/agGrid.theme.js.map +1 -1
  159. package/cjs/design/skoda/components/autocomplete.theme.js +1 -1
  160. package/cjs/design/skoda/components/autocomplete.theme.js.map +1 -1
  161. package/cjs/design/skoda/components/backdrop.theme.js.map +1 -1
  162. package/cjs/design/skoda/components/baseline.theme.d.ts +4 -3
  163. package/cjs/design/skoda/components/baseline.theme.js +1 -1
  164. package/cjs/design/skoda/components/baseline.theme.js.map +1 -1
  165. package/cjs/design/skoda/components/breadcrumbs.theme.js +1 -1
  166. package/cjs/design/skoda/components/breadcrumbs.theme.js.map +1 -1
  167. package/cjs/design/skoda/components/button.theme.js +1 -1
  168. package/cjs/design/skoda/components/button.theme.js.map +1 -1
  169. package/cjs/design/skoda/components/buttonBase.theme.js.map +1 -1
  170. package/cjs/design/skoda/components/checkbox.theme.js.map +1 -1
  171. package/cjs/design/skoda/components/chip.theme.js.map +1 -1
  172. package/cjs/design/skoda/components/datePickers/clock.theme.js.map +1 -1
  173. package/cjs/design/skoda/components/datePickers/dateTimePickerTabs.theme.js.map +1 -1
  174. package/cjs/design/skoda/components/datePickers/dateTimePickerToolbar.theme.js.map +1 -1
  175. package/cjs/design/skoda/components/datePickers/desktopDateTimePicker.theme.js.map +1 -1
  176. package/cjs/design/skoda/components/datePickers/desktopTimePicker.theme.js.map +1 -1
  177. package/cjs/design/skoda/components/datePickers/multiSectionDigitalClockSection.theme.js.map +1 -1
  178. package/cjs/design/skoda/components/datePickers/pickersLayout.theme.js.map +1 -1
  179. package/cjs/design/skoda/components/datePickers/pickersToolbar.theme.js.map +1 -1
  180. package/cjs/design/skoda/components/datePickers/pickersToolbarButton.theme.js.map +1 -1
  181. package/cjs/design/skoda/components/datePickers/pickersToolbarText.theme.js.map +1 -1
  182. package/cjs/design/skoda/components/datePickers/timeClock.theme.js.map +1 -1
  183. package/cjs/design/skoda/components/datePickers/timePickerToolbar.theme.js.map +1 -1
  184. package/cjs/design/skoda/components/dialog/dialog.theme.js.map +1 -1
  185. package/cjs/design/skoda/components/dialog/dialogActions.theme.js.map +1 -1
  186. package/cjs/design/skoda/components/dialog/dialogContentText.theme.js.map +1 -1
  187. package/cjs/design/skoda/components/dialog/dialogTitle.theme.js.map +1 -1
  188. package/cjs/design/skoda/components/divider.theme.js.map +1 -1
  189. package/cjs/design/skoda/components/drawer.theme.js.map +1 -1
  190. package/cjs/design/skoda/components/form/filledInput.theme.js.map +1 -1
  191. package/cjs/design/skoda/components/form/formControl.theme.js.map +1 -1
  192. package/cjs/design/skoda/components/form/formControlLabel.theme.js +1 -1
  193. package/cjs/design/skoda/components/form/formControlLabel.theme.js.map +1 -1
  194. package/cjs/design/skoda/components/form/formHelperText.theme.js.map +1 -1
  195. package/cjs/design/skoda/components/form/formLabel.theme.js +1 -1
  196. package/cjs/design/skoda/components/form/formLabel.theme.js.map +1 -1
  197. package/cjs/design/skoda/components/form/input.theme.js.map +1 -1
  198. package/cjs/design/skoda/components/form/inputAdornment.theme.js.map +1 -1
  199. package/cjs/design/skoda/components/form/inputBase.theme.js +1 -1
  200. package/cjs/design/skoda/components/form/inputBase.theme.js.map +1 -1
  201. package/cjs/design/skoda/components/form/inputLabel.theme.js +1 -1
  202. package/cjs/design/skoda/components/form/inputLabel.theme.js.map +1 -1
  203. package/cjs/design/skoda/components/form/radio.theme.js.map +1 -1
  204. package/cjs/design/skoda/components/form/select.theme.js +1 -1
  205. package/cjs/design/skoda/components/form/select.theme.js.map +1 -1
  206. package/cjs/design/skoda/components/form/slider.theme.js.map +1 -1
  207. package/cjs/design/skoda/components/form/switch.theme.js.map +1 -1
  208. package/cjs/design/skoda/components/form/textField.theme.js.map +1 -1
  209. package/cjs/design/skoda/components/icon.theme.js.map +1 -1
  210. package/cjs/design/skoda/components/iconButton.theme.js.map +1 -1
  211. package/cjs/design/skoda/components/layout/breakpoints.theme.js.map +1 -1
  212. package/cjs/design/skoda/components/layout/container.theme.js.map +1 -1
  213. package/cjs/design/skoda/components/layout/grid.theme.js.map +1 -1
  214. package/cjs/design/skoda/components/list.theme.js.map +1 -1
  215. package/cjs/design/skoda/components/listItemText.theme.js.map +1 -1
  216. package/cjs/design/skoda/components/menuItem.theme.js.map +1 -1
  217. package/cjs/design/skoda/components/mobileStepper.theme.js.map +1 -1
  218. package/cjs/design/skoda/components/modal.theme.d.ts +2 -1
  219. package/cjs/design/skoda/components/modal.theme.js +1 -1
  220. package/cjs/design/skoda/components/modal.theme.js.map +1 -1
  221. package/cjs/design/skoda/components/pagination.theme.js.map +1 -1
  222. package/cjs/design/skoda/components/paper.theme.js.map +1 -1
  223. package/cjs/design/skoda/components/popover.theme.js.map +1 -1
  224. package/cjs/design/skoda/components/snackbar.theme.js.map +1 -1
  225. package/cjs/design/skoda/components/stepper/stepIcon/errorStepIcon.js.map +1 -1
  226. package/cjs/design/skoda/components/stepper/stepIcon/index.js.map +1 -1
  227. package/cjs/design/skoda/components/stepper/stepIcon/qontoStepIcon.js.map +1 -1
  228. package/cjs/design/skoda/components/stepper/stepper.theme.js.map +1 -1
  229. package/cjs/design/skoda/components/tabs/tab.theme.js.map +1 -1
  230. package/cjs/design/skoda/components/tabs/tabs.theme.js +1 -1
  231. package/cjs/design/skoda/components/tabs/tabs.theme.js.map +1 -1
  232. package/cjs/design/skoda/components/tooltip.theme.js.map +1 -1
  233. package/cjs/design/skoda/organisms/card.theme.js.map +1 -1
  234. package/cjs/design/skoda/paletteDark.theme.js.map +1 -1
  235. package/cjs/design/skoda/paletteLight.theme.js.map +1 -1
  236. package/cjs/design/skoda/theme.breakpoints.js.map +1 -1
  237. package/cjs/design/skoda/theme.constants.js.map +1 -1
  238. package/cjs/design/skoda/theme.js +1 -1
  239. package/cjs/design/skoda/theme.js.map +1 -1
  240. package/cjs/design/skoda/theme.typography.d.ts +830 -3
  241. package/cjs/design/skoda/theme.typography.js +1 -1
  242. package/cjs/design/skoda/theme.typography.js.map +1 -1
  243. package/cjs/layout/Error/ErrorContent.js +1 -1
  244. package/cjs/layout/Error/ErrorContent.js.map +1 -1
  245. package/cjs/layout/Footer/Footer.js.map +1 -1
  246. package/cjs/layout/Footer/FooterAccordion.js.map +1 -1
  247. package/cjs/layout/Footer/FooterIconButton.js +1 -1
  248. package/cjs/layout/Footer/FooterIconButton.js.map +1 -1
  249. package/cjs/layout/Footer/FooterLink.js +1 -1
  250. package/cjs/layout/Footer/FooterLink.js.map +1 -1
  251. package/cjs/layout/Footer/FooterMenu.js +1 -1
  252. package/cjs/layout/Footer/FooterMenu.js.map +1 -1
  253. package/cjs/layout/Footer/FooterSectionContact.js +1 -1
  254. package/cjs/layout/Footer/FooterSectionContact.js.map +1 -1
  255. package/cjs/layout/Footer/FooterSectionMenu.js +1 -1
  256. package/cjs/layout/Footer/FooterSectionMenu.js.map +1 -1
  257. package/cjs/layout/Footer/PredefinedFooterIconButtons.js.map +1 -1
  258. package/cjs/layout/Footer/assets/FacebookIcon.js.map +1 -1
  259. package/cjs/layout/Footer/assets/InstagramIcon.js.map +1 -1
  260. package/cjs/layout/Footer/assets/TwitterIcon.js.map +1 -1
  261. package/cjs/layout/Footer/assets/YoutubeIcon.js.map +1 -1
  262. package/cjs/layout/Header/Header.js.map +1 -1
  263. package/cjs/layout/Header/HeaderButton.d.ts +1 -1
  264. package/cjs/layout/Header/HeaderButton.js +1 -1
  265. package/cjs/layout/Header/HeaderButton.js.map +1 -1
  266. package/cjs/layout/Header/HeaderContext.js.map +1 -1
  267. package/cjs/layout/Header/HeaderLogo.js +1 -1
  268. package/cjs/layout/Header/HeaderLogo.js.map +1 -1
  269. package/cjs/layout/Header/HeaderNavigationHero.js +1 -1
  270. package/cjs/layout/Header/HeaderNavigationHero.js.map +1 -1
  271. package/cjs/layout/Header/HeaderNavigationLink.js +1 -1
  272. package/cjs/layout/Header/HeaderNavigationLink.js.map +1 -1
  273. package/cjs/layout/Header/HeaderNavigationMenu.js +1 -1
  274. package/cjs/layout/Header/HeaderNavigationMenu.js.map +1 -1
  275. package/cjs/layout/Header/HeaderOverheadItem.js +1 -1
  276. package/cjs/layout/Header/HeaderOverheadItem.js.map +1 -1
  277. package/cjs/layout/Header/HeaderSkodaLogo.js +1 -1
  278. package/cjs/layout/Header/HeaderSkodaLogo.js.map +1 -1
  279. package/cjs/layout/Header/PredefinedHeaderButtons.d.ts +11 -11
  280. package/cjs/layout/Header/PredefinedHeaderButtons.js.map +1 -1
  281. package/cjs/layout/PageLayout/PageLayout.js.map +1 -1
  282. package/cjs/layout/SecondaryNavigation/SecondaryNavigation.js +1 -1
  283. package/cjs/layout/SecondaryNavigation/SecondaryNavigation.js.map +1 -1
  284. package/cjs/layout/SecondaryNavigation/SecondaryNavigationCta.js.map +1 -1
  285. package/cjs/layout/SecondaryNavigation/SecondaryNavigationItem.js +1 -1
  286. package/cjs/layout/SecondaryNavigation/SecondaryNavigationItem.js.map +1 -1
  287. package/cjs/layout/SideMenu/SideMenu.js +1 -1
  288. package/cjs/layout/SideMenu/SideMenu.js.map +1 -1
  289. package/cjs/layout/SideMenu/SideMenuItem.js +1 -1
  290. package/cjs/layout/SideMenu/SideMenuItem.js.map +1 -1
  291. package/cjs/layout/container/container.js.map +1 -1
  292. package/cjs/layout/cookieModal/CookieModal.js.map +1 -1
  293. package/cjs/layout/cookieModal/CookieModalItem.js.map +1 -1
  294. package/cjs/node_modules/tslib/tslib.es6.js +2 -0
  295. package/cjs/node_modules/tslib/tslib.es6.js.map +1 -0
  296. package/cjs/organisms/cardOwnedVehicle/cardOwnedVehicle.js.map +1 -1
  297. package/cjs/organisms/cardOwnedVehicle/cardOwnedVehicleComponent.js +1 -1
  298. package/cjs/organisms/cardOwnedVehicle/cardOwnedVehicleComponent.js.map +1 -1
  299. package/cjs/organisms/cardPhotoAdjustable/cardPhotoAdjustable.js.map +1 -1
  300. package/cjs/organisms/cardPhotoAdjustable/cardPhotoAdjustableComponent.js.map +1 -1
  301. package/cjs/organisms/cardPhotoFixed/cardPhotoFixed.js.map +1 -1
  302. package/cjs/organisms/cardPhotoFixed/cardPhotoFixedComponent.js.map +1 -1
  303. package/cjs/organisms/cardPromoVehicle/cardPromoVehicle.js.map +1 -1
  304. package/cjs/organisms/cardPromoVehicle/cardPromoVehicleComponent.js +1 -1
  305. package/cjs/organisms/cardPromoVehicle/cardPromoVehicleComponent.js.map +1 -1
  306. package/cjs/organisms/cardTypeOnly/cardTypeOnly.js.map +1 -1
  307. package/cjs/organisms/cardTypeOnly/cardTypeOnlyComponent.js.map +1 -1
  308. package/cjs/organisms/carousel/carousel.js.map +1 -1
  309. package/cjs/organisms/carousel/carouselTemplate.js.map +1 -1
  310. package/cjs/organisms/carousel/styledComponents/styledCarouselHorizontal.d.ts +1 -1
  311. package/cjs/organisms/carousel/styledComponents/styledCarouselHorizontal.js +1 -1
  312. package/cjs/organisms/carousel/styledComponents/styledCarouselHorizontal.js.map +1 -1
  313. package/cjs/organisms/carousel/styledComponents/styledCarouselVertical.d.ts +1 -1
  314. package/cjs/organisms/carousel/styledComponents/styledCarouselVertical.js.map +1 -1
  315. package/cjs/organisms/carousel2/cardCarousel/cardCarousel.js.map +1 -1
  316. package/cjs/organisms/carousel2/components/ItemsContainer.js +1 -1
  317. package/cjs/organisms/carousel2/components/ItemsContainer.js.map +1 -1
  318. package/cjs/organisms/carousel2/components/NavButton.js +1 -1
  319. package/cjs/organisms/carousel2/components/NavButton.js.map +1 -1
  320. package/cjs/organisms/carousel2/components/Numbering.js +1 -1
  321. package/cjs/organisms/carousel2/components/Numbering.js.map +1 -1
  322. package/cjs/organisms/carousel2/components/ScrollSnapDots.js.map +1 -1
  323. package/cjs/organisms/carousel2/components/ViewPort.js +1 -1
  324. package/cjs/organisms/carousel2/components/ViewPort.js.map +1 -1
  325. package/cjs/organisms/carousel2/galleryCarousel/GalleryItemText.js.map +1 -1
  326. package/cjs/organisms/carousel2/galleryCarousel/galleryCarousel.js.map +1 -1
  327. package/cjs/organisms/carousel2/galleryCarousel/galleryCarouselItem.js.map +1 -1
  328. package/cjs/organisms/carousel2/galleryCarousel/galleryContext.js.map +1 -1
  329. package/cjs/organisms/carousel2/galleryCarousel/galleryItemContext.js.map +1 -1
  330. package/cjs/organisms/carousel2/galleryCarousel/galleryItemHeading.js.map +1 -1
  331. package/cjs/organisms/carousel2/heroCarousel/HeroCarouselSlide.js.map +1 -1
  332. package/cjs/organisms/carousel2/heroCarousel/heroCarousel.js.map +1 -1
  333. package/cjs/organisms/carousel2/heroCarousel/heroCarouselContext.js.map +1 -1
  334. package/cjs/organisms/carousel2/hooks/useContainerPeek.js.map +1 -1
  335. package/cjs/organisms/carousel2/hooks/useDefaultProps.js.map +1 -1
  336. package/cjs/organisms/carousel2/hooks/useEmbla.js.map +1 -1
  337. package/cjs/organisms/carousel2/styledComponents/styledCarouselHorizontal.d.ts +1 -1
  338. package/cjs/organisms/common/buttonCardComponent/buttonCardComponent.js.map +1 -1
  339. package/cjs/organisms/common/infoTextCardComponent/infoTextCardComponent.js.map +1 -1
  340. package/cjs/organisms/common/menuCardComponent/menuCardComponent.js +1 -1
  341. package/cjs/organisms/common/menuCardComponent/menuCardComponent.js.map +1 -1
  342. package/cjs/organisms/common/styled/cardStandardWrapperStyled.d.ts +1 -1
  343. package/cjs/organisms/common/styled/cardStandardWrapperStyled.js +1 -1
  344. package/cjs/organisms/common/styled/cardStandardWrapperStyled.js.map +1 -1
  345. package/cjs/organisms/gallery/Gallery.js +1 -1
  346. package/cjs/organisms/gallery/Gallery.js.map +1 -1
  347. package/cjs/organisms/gallery/GalleryItem.js +1 -1
  348. package/cjs/organisms/gallery/GalleryItem.js.map +1 -1
  349. package/cjs/organisms/gallery/GalleryTrigger.js +1 -1
  350. package/cjs/organisms/gallery/GalleryTrigger.js.map +1 -1
  351. package/cjs/organisms/heroImageCard/heroImageCard.js.map +1 -1
  352. package/cjs/organisms/heroImageCard/heroImageCardComponent.js.map +1 -1
  353. package/cjs/organisms/heroImageCard/videoCardController.js.map +1 -1
  354. package/cjs/organisms/maps/hook/useMap.js.map +1 -1
  355. package/cjs/organisms/maps/mapComponents/infoWindowConfig.js.map +1 -1
  356. package/cjs/organisms/maps/mapComponents/mapComponent.js +1 -1
  357. package/cjs/organisms/maps/mapComponents/mapComponent.js.map +1 -1
  358. package/cjs/organisms/maps/mapComponents/mapStyled.d.ts +1 -1
  359. package/cjs/organisms/maps/mapComponents/mapStyled.js.map +1 -1
  360. package/cjs/organisms/maps/mapComponents/markerComponent.js +1 -1
  361. package/cjs/organisms/maps/mapComponents/markerComponent.js.map +1 -1
  362. package/cjs/organisms/maps/maps.js.map +1 -1
  363. package/cjs/organisms/maps/utils/mapConfig.js.map +1 -1
  364. package/cjs/organisms/maps/utils/mapIcons.js.map +1 -1
  365. package/cjs/organisms/maps/utils/style.js.map +1 -1
  366. package/cjs/organisms/notification/Notification.js +1 -1
  367. package/cjs/organisms/notification/Notification.js.map +1 -1
  368. package/cjs/organisms/notification/NotificationCenter.js.map +1 -1
  369. package/cjs/organisms/notification/NotificationCenterCategory.js.map +1 -1
  370. package/cjs/organisms/notification/NotificationCenterHeaderButton.js +1 -1
  371. package/cjs/organisms/notification/NotificationCenterHeaderButton.js.map +1 -1
  372. package/cjs/organisms/shortcutLink/shortcutLink.js.map +1 -1
  373. package/cjs/organisms/textCta/textCta.js +1 -1
  374. package/cjs/organisms/textCta/textCta.js.map +1 -1
  375. package/cjs/organisms/tile/tile.js +1 -1
  376. package/cjs/organisms/tile/tile.js.map +1 -1
  377. package/cjs/production/Button/Button.js +9 -9
  378. package/cjs/production/Button/Button.js.map +1 -1
  379. package/cjs/utils/ResponsiveType.js.map +1 -1
  380. package/cjs/utils/enum.js.map +1 -1
  381. package/cjs/utils/formatFileSize/formatFileSize.js.map +1 -1
  382. package/cjs/utils/useClosure/useClosure.js.map +1 -1
  383. package/cjs/utils/useFeatureFlag/useFeatureFlag.js.map +1 -1
  384. package/cjs/utils/useKeyboardShortcut/useKeyboardShortcut.js.map +1 -1
  385. package/cjs/utils/utilities.js.map +1 -1
  386. package/components/accordion/accordion.js +1 -1
  387. package/components/accordion/accordion.js.map +1 -1
  388. package/components/alert/Alert.js.map +1 -1
  389. package/components/alert/AlertButton.js.map +1 -1
  390. package/components/avatar/Avatar.js.map +1 -1
  391. package/components/backdrop/backdrop.js +1 -1
  392. package/components/backdrop/backdrop.js.map +1 -1
  393. package/components/banner/banner.js +1 -1
  394. package/components/banner/banner.js.map +1 -1
  395. package/components/box/index.d.ts +1 -0
  396. package/components/button/button.js +1 -1
  397. package/components/button/button.js.map +1 -1
  398. package/components/card/Card.js +1 -1
  399. package/components/card/Card.js.map +1 -1
  400. package/components/card/FlippingCard.js +1 -1
  401. package/components/card/FlippingCard.js.map +1 -1
  402. package/components/card/LinkCard.js.map +1 -1
  403. package/components/card/SelectableCard.js.map +1 -1
  404. package/components/card/SimpleCard.js.map +1 -1
  405. package/components/cardContainer/cardContainer.js +1 -1
  406. package/components/cardContainer/cardContainer.js.map +1 -1
  407. package/components/cardMenu/cardMenu.js.map +1 -1
  408. package/components/cardMenu/hooks/useCardMenu.js.map +1 -1
  409. package/components/cardMenu/styled/drawerStyled.js.map +1 -1
  410. package/components/cardMenu/styled/menuListStyled.js.map +1 -1
  411. package/components/cardMenu/styled/popperStyled.js.map +1 -1
  412. package/components/checkbox/checkbox.js +1 -1
  413. package/components/checkbox/checkbox.js.map +1 -1
  414. package/components/chip/chipDropdownChildren/chipDropdownChildren.js +1 -1
  415. package/components/chip/chipDropdownChildren/chipDropdownChildren.js.map +1 -1
  416. package/components/chip/chipFocusVisibleStyled.d.ts +1 -1
  417. package/components/chip/chipFocusVisibleStyled.js.map +1 -1
  418. package/components/chip/chipImage/chipImage.js +1 -1
  419. package/components/chip/chipImage/chipImage.js.map +1 -1
  420. package/components/chip/chipMultiselect/multiSelectChip.js +1 -1
  421. package/components/chip/chipMultiselect/multiSelectChip.js.map +1 -1
  422. package/components/chip/regular/chip.js +1 -1
  423. package/components/chip/regular/chip.js.map +1 -1
  424. package/components/closeDialogButton/index.js.map +1 -1
  425. package/components/common/helperText.js.map +1 -1
  426. package/components/common/hook/backdrop.js.map +1 -1
  427. package/components/common/hook/useWindowSize.js.map +1 -1
  428. package/components/common/imageComponent.js.map +1 -1
  429. package/components/common/menuContainer.js +1 -1
  430. package/components/common/menuContainer.js.map +1 -1
  431. package/components/common/menuEmpty.js +1 -1
  432. package/components/common/menuEmpty.js.map +1 -1
  433. package/components/common/resizableSliderInput.js.map +1 -1
  434. package/components/common/styled/buttonFocusVisibleStyled.d.ts +1 -1
  435. package/components/common/styled/buttonFocusVisibleStyled.js.map +1 -1
  436. package/components/common/styled/formControlLabelStyled.js.map +1 -1
  437. package/components/common/styled/helperTextContainerStyled.d.ts +1 -1
  438. package/components/common/styled/sliderValuesStyled.d.ts +1 -1
  439. package/components/common/styled/sliderValuesStyled.js.map +1 -1
  440. package/components/common/styled/textFieldStyled.js +1 -1
  441. package/components/common/styled/textFieldStyled.js.map +1 -1
  442. package/components/controls/controls.js +1 -1
  443. package/components/controls/controls.js.map +1 -1
  444. package/components/customPickersActionBar/index.js +1 -1
  445. package/components/customPickersActionBar/index.js.map +1 -1
  446. package/components/divider/divider.js +1 -1
  447. package/components/divider/divider.js.map +1 -1
  448. package/components/drawer/drawer.js +1 -1
  449. package/components/drawer/drawer.js.map +1 -1
  450. package/components/flag/flag.js +1 -1
  451. package/components/flag/flag.js.map +1 -1
  452. package/components/grid/grid.js +1 -1
  453. package/components/grid/grid.js.map +1 -1
  454. package/components/helperTextContent/index.js.map +1 -1
  455. package/components/icon/icon.definitions.js.map +1 -1
  456. package/components/icon/icon.js +1 -1
  457. package/components/icon/icon.js.map +1 -1
  458. package/components/iconButton/index.d.ts +1 -1
  459. package/components/iconButton/index.js +1 -1
  460. package/components/iconButton/index.js.map +1 -1
  461. package/components/indicator/indicator.js +1 -1
  462. package/components/indicator/indicator.js.map +1 -1
  463. package/components/label/label.js +3 -3
  464. package/components/label/label.js.map +1 -1
  465. package/components/labelCO2/labelCO2.js.map +1 -1
  466. package/components/labelFeature/labelFeature.js +1 -1
  467. package/components/labelFeature/labelFeature.js.map +1 -1
  468. package/components/labelPromotional/labelPromotional.js +1 -1
  469. package/components/labelPromotional/labelPromotional.js.map +1 -1
  470. package/components/labelStatus/labelStatus.js +1 -1
  471. package/components/labelStatus/labelStatus.js.map +1 -1
  472. package/components/logo/Logo.js.map +1 -1
  473. package/components/menu/menu.js +1 -1
  474. package/components/menu/menu.js.map +1 -1
  475. package/components/menuItem/menuItem.js +1 -1
  476. package/components/menuItem/menuItem.js.map +1 -1
  477. package/components/mobileStepper/mobileStepper.js +1 -1
  478. package/components/mobileStepper/mobileStepper.js.map +1 -1
  479. package/components/mobileStepper/mobileStepperButton.js.map +1 -1
  480. package/components/modal/contentDiv.js.map +1 -1
  481. package/components/modal/modal.js +1 -1
  482. package/components/modal/modal.js.map +1 -1
  483. package/components/modal/modalTitle.js.map +1 -1
  484. package/components/numbering/numbering.js +1 -1
  485. package/components/numbering/numbering.js.map +1 -1
  486. package/components/pagination/pagination.js +1 -1
  487. package/components/pagination/pagination.js.map +1 -1
  488. package/components/progressBar/components/loader.js +1 -1
  489. package/components/progressBar/components/loader.js.map +1 -1
  490. package/components/progressBar/components/spinner.js +1 -1
  491. package/components/progressBar/components/spinner.js.map +1 -1
  492. package/components/progressBar/components/styledProgressBarMessage.js +1 -1
  493. package/components/progressBar/components/styledProgressBarMessage.js.map +1 -1
  494. package/components/progressBar/progressBar.js +1 -1
  495. package/components/progressBar/progressBar.js.map +1 -1
  496. package/components/radioButton/radioButton.js +1 -1
  497. package/components/radioButton/radioButton.js.map +1 -1
  498. package/components/selectInput/formControlSelectStyled.d.ts +1 -1
  499. package/components/selectInput/formControlSelectStyled.js +1 -1
  500. package/components/selectInput/formControlSelectStyled.js.map +1 -1
  501. package/components/selectInput/hook/useSelectInput.js.map +1 -1
  502. package/components/selectInput/inputLabelSelect.js.map +1 -1
  503. package/components/selectInput/selectInput.js +1 -1
  504. package/components/selectInput/selectInput.js.map +1 -1
  505. package/components/slider/containerStyled.d.ts +1 -1
  506. package/components/slider/containerStyled.js +1 -1
  507. package/components/slider/containerStyled.js.map +1 -1
  508. package/components/slider/slider.js +1 -1
  509. package/components/slider/slider.js.map +1 -1
  510. package/components/snackbar/snackbar.js +1 -1
  511. package/components/snackbar/snackbar.js.map +1 -1
  512. package/components/snackbar/snackbarMessage.js +1 -1
  513. package/components/snackbar/snackbarMessage.js.map +1 -1
  514. package/components/stepper/stepper.js +1 -1
  515. package/components/stepper/stepper.js.map +1 -1
  516. package/components/tabs/index.d.ts +1 -0
  517. package/components/tabs/tabPanel.js +1 -1
  518. package/components/tabs/tabPanel.js.map +1 -1
  519. package/components/textArea/hook/useTextAreaEffect.js.map +1 -1
  520. package/components/textArea/textArea.js +1 -1
  521. package/components/textArea/textArea.js.map +1 -1
  522. package/components/textInput/hook/useTextInput.js.map +1 -1
  523. package/components/textInput/hook/useTextInputEffect.js.map +1 -1
  524. package/components/textInput/textInput.js +1 -1
  525. package/components/textInput/textInput.js.map +1 -1
  526. package/components/toggleSwitch/toggleSwitch.js +1 -1
  527. package/components/toggleSwitch/toggleSwitch.js.map +1 -1
  528. package/components/tooltip/tooltip.js +1 -1
  529. package/components/tooltip/tooltip.js.map +1 -1
  530. package/components/upload/UploadBox.js.map +1 -1
  531. package/components/upload/UploadField.js.map +1 -1
  532. package/components/upload/UploadPreview.js.map +1 -1
  533. package/components/upload/UploadPreviewList.js.map +1 -1
  534. package/components/upload/UploadProgress.js.map +1 -1
  535. package/design/skoda/SkodaThemeProvider.js +1 -1
  536. package/design/skoda/SkodaThemeProvider.js.map +1 -1
  537. package/design/skoda/SkodaThemeWidgetProvider.js +1 -1
  538. package/design/skoda/SkodaThemeWidgetProvider.js.map +1 -1
  539. package/design/skoda/components/accordion/accordion.theme.js.map +1 -1
  540. package/design/skoda/components/accordion/accordionSummary.theme.js +1 -1
  541. package/design/skoda/components/accordion/accordionSummary.theme.js.map +1 -1
  542. package/design/skoda/components/agGrid/agGrid.theme.js +1 -1
  543. package/design/skoda/components/agGrid/agGrid.theme.js.map +1 -1
  544. package/design/skoda/components/autocomplete.theme.js +1 -1
  545. package/design/skoda/components/autocomplete.theme.js.map +1 -1
  546. package/design/skoda/components/backdrop.theme.js.map +1 -1
  547. package/design/skoda/components/baseline.theme.d.ts +4 -3
  548. package/design/skoda/components/baseline.theme.js +1 -1
  549. package/design/skoda/components/baseline.theme.js.map +1 -1
  550. package/design/skoda/components/breadcrumbs.theme.js +1 -1
  551. package/design/skoda/components/breadcrumbs.theme.js.map +1 -1
  552. package/design/skoda/components/button.theme.js +1 -1
  553. package/design/skoda/components/button.theme.js.map +1 -1
  554. package/design/skoda/components/buttonBase.theme.js.map +1 -1
  555. package/design/skoda/components/checkbox.theme.js.map +1 -1
  556. package/design/skoda/components/chip.theme.js.map +1 -1
  557. package/design/skoda/components/datePickers/clock.theme.js.map +1 -1
  558. package/design/skoda/components/datePickers/dateTimePickerTabs.theme.js.map +1 -1
  559. package/design/skoda/components/datePickers/dateTimePickerToolbar.theme.js.map +1 -1
  560. package/design/skoda/components/datePickers/desktopDateTimePicker.theme.js.map +1 -1
  561. package/design/skoda/components/datePickers/desktopTimePicker.theme.js.map +1 -1
  562. package/design/skoda/components/datePickers/multiSectionDigitalClockSection.theme.js.map +1 -1
  563. package/design/skoda/components/datePickers/pickersLayout.theme.js.map +1 -1
  564. package/design/skoda/components/datePickers/pickersToolbar.theme.js.map +1 -1
  565. package/design/skoda/components/datePickers/pickersToolbarButton.theme.js.map +1 -1
  566. package/design/skoda/components/datePickers/pickersToolbarText.theme.js.map +1 -1
  567. package/design/skoda/components/datePickers/timeClock.theme.js.map +1 -1
  568. package/design/skoda/components/datePickers/timePickerToolbar.theme.js.map +1 -1
  569. package/design/skoda/components/dialog/dialog.theme.js.map +1 -1
  570. package/design/skoda/components/dialog/dialogActions.theme.js.map +1 -1
  571. package/design/skoda/components/dialog/dialogContentText.theme.js.map +1 -1
  572. package/design/skoda/components/dialog/dialogTitle.theme.js.map +1 -1
  573. package/design/skoda/components/divider.theme.js.map +1 -1
  574. package/design/skoda/components/drawer.theme.js.map +1 -1
  575. package/design/skoda/components/form/filledInput.theme.js.map +1 -1
  576. package/design/skoda/components/form/formControl.theme.js.map +1 -1
  577. package/design/skoda/components/form/formControlLabel.theme.js +1 -1
  578. package/design/skoda/components/form/formControlLabel.theme.js.map +1 -1
  579. package/design/skoda/components/form/formHelperText.theme.js.map +1 -1
  580. package/design/skoda/components/form/formLabel.theme.js +1 -1
  581. package/design/skoda/components/form/formLabel.theme.js.map +1 -1
  582. package/design/skoda/components/form/input.theme.js.map +1 -1
  583. package/design/skoda/components/form/inputAdornment.theme.js.map +1 -1
  584. package/design/skoda/components/form/inputBase.theme.js +1 -1
  585. package/design/skoda/components/form/inputBase.theme.js.map +1 -1
  586. package/design/skoda/components/form/inputLabel.theme.js +1 -1
  587. package/design/skoda/components/form/inputLabel.theme.js.map +1 -1
  588. package/design/skoda/components/form/radio.theme.js.map +1 -1
  589. package/design/skoda/components/form/select.theme.js +1 -1
  590. package/design/skoda/components/form/select.theme.js.map +1 -1
  591. package/design/skoda/components/form/slider.theme.js.map +1 -1
  592. package/design/skoda/components/form/switch.theme.js.map +1 -1
  593. package/design/skoda/components/form/textField.theme.js.map +1 -1
  594. package/design/skoda/components/icon.theme.js.map +1 -1
  595. package/design/skoda/components/iconButton.theme.js.map +1 -1
  596. package/design/skoda/components/layout/breakpoints.theme.js.map +1 -1
  597. package/design/skoda/components/layout/container.theme.js.map +1 -1
  598. package/design/skoda/components/layout/grid.theme.js.map +1 -1
  599. package/design/skoda/components/list.theme.js.map +1 -1
  600. package/design/skoda/components/listItemText.theme.js.map +1 -1
  601. package/design/skoda/components/menuItem.theme.js.map +1 -1
  602. package/design/skoda/components/mobileStepper.theme.js.map +1 -1
  603. package/design/skoda/components/modal.theme.d.ts +2 -1
  604. package/design/skoda/components/modal.theme.js +1 -1
  605. package/design/skoda/components/modal.theme.js.map +1 -1
  606. package/design/skoda/components/pagination.theme.js.map +1 -1
  607. package/design/skoda/components/paper.theme.js.map +1 -1
  608. package/design/skoda/components/popover.theme.js.map +1 -1
  609. package/design/skoda/components/snackbar.theme.js.map +1 -1
  610. package/design/skoda/components/stepper/stepIcon/errorStepIcon.js.map +1 -1
  611. package/design/skoda/components/stepper/stepIcon/index.js.map +1 -1
  612. package/design/skoda/components/stepper/stepIcon/qontoStepIcon.js.map +1 -1
  613. package/design/skoda/components/stepper/stepper.theme.js.map +1 -1
  614. package/design/skoda/components/tabs/tab.theme.js.map +1 -1
  615. package/design/skoda/components/tabs/tabs.theme.js +1 -1
  616. package/design/skoda/components/tabs/tabs.theme.js.map +1 -1
  617. package/design/skoda/components/tooltip.theme.js.map +1 -1
  618. package/design/skoda/organisms/card.theme.js.map +1 -1
  619. package/design/skoda/paletteDark.theme.js.map +1 -1
  620. package/design/skoda/paletteLight.theme.js.map +1 -1
  621. package/design/skoda/theme.breakpoints.js.map +1 -1
  622. package/design/skoda/theme.constants.js.map +1 -1
  623. package/design/skoda/theme.js +1 -1
  624. package/design/skoda/theme.js.map +1 -1
  625. package/design/skoda/theme.typography.d.ts +830 -3
  626. package/design/skoda/theme.typography.js +1 -1
  627. package/design/skoda/theme.typography.js.map +1 -1
  628. package/layout/Error/ErrorContent.js +1 -1
  629. package/layout/Error/ErrorContent.js.map +1 -1
  630. package/layout/Footer/Footer.js.map +1 -1
  631. package/layout/Footer/FooterAccordion.js.map +1 -1
  632. package/layout/Footer/FooterIconButton.js +1 -1
  633. package/layout/Footer/FooterIconButton.js.map +1 -1
  634. package/layout/Footer/FooterLink.js +1 -1
  635. package/layout/Footer/FooterLink.js.map +1 -1
  636. package/layout/Footer/FooterMenu.js +1 -1
  637. package/layout/Footer/FooterMenu.js.map +1 -1
  638. package/layout/Footer/FooterSectionContact.js +1 -1
  639. package/layout/Footer/FooterSectionContact.js.map +1 -1
  640. package/layout/Footer/FooterSectionMenu.js +1 -1
  641. package/layout/Footer/FooterSectionMenu.js.map +1 -1
  642. package/layout/Footer/PredefinedFooterIconButtons.js.map +1 -1
  643. package/layout/Footer/assets/FacebookIcon.js.map +1 -1
  644. package/layout/Footer/assets/InstagramIcon.js.map +1 -1
  645. package/layout/Footer/assets/TwitterIcon.js.map +1 -1
  646. package/layout/Footer/assets/YoutubeIcon.js.map +1 -1
  647. package/layout/Header/Header.js.map +1 -1
  648. package/layout/Header/HeaderButton.d.ts +1 -1
  649. package/layout/Header/HeaderButton.js +1 -1
  650. package/layout/Header/HeaderButton.js.map +1 -1
  651. package/layout/Header/HeaderContext.js.map +1 -1
  652. package/layout/Header/HeaderLogo.js +1 -1
  653. package/layout/Header/HeaderLogo.js.map +1 -1
  654. package/layout/Header/HeaderNavigationHero.js +1 -1
  655. package/layout/Header/HeaderNavigationHero.js.map +1 -1
  656. package/layout/Header/HeaderNavigationLink.js +1 -1
  657. package/layout/Header/HeaderNavigationLink.js.map +1 -1
  658. package/layout/Header/HeaderNavigationMenu.js +1 -1
  659. package/layout/Header/HeaderNavigationMenu.js.map +1 -1
  660. package/layout/Header/HeaderOverheadItem.js +1 -1
  661. package/layout/Header/HeaderOverheadItem.js.map +1 -1
  662. package/layout/Header/HeaderSkodaLogo.js +1 -1
  663. package/layout/Header/HeaderSkodaLogo.js.map +1 -1
  664. package/layout/Header/PredefinedHeaderButtons.d.ts +11 -11
  665. package/layout/Header/PredefinedHeaderButtons.js.map +1 -1
  666. package/layout/PageLayout/PageLayout.js.map +1 -1
  667. package/layout/SecondaryNavigation/SecondaryNavigation.js +1 -1
  668. package/layout/SecondaryNavigation/SecondaryNavigation.js.map +1 -1
  669. package/layout/SecondaryNavigation/SecondaryNavigationCta.js.map +1 -1
  670. package/layout/SecondaryNavigation/SecondaryNavigationItem.js +1 -1
  671. package/layout/SecondaryNavigation/SecondaryNavigationItem.js.map +1 -1
  672. package/layout/SideMenu/SideMenu.js +1 -1
  673. package/layout/SideMenu/SideMenu.js.map +1 -1
  674. package/layout/SideMenu/SideMenuItem.js +1 -1
  675. package/layout/SideMenu/SideMenuItem.js.map +1 -1
  676. package/layout/container/container.js.map +1 -1
  677. package/layout/cookieModal/CookieModal.js.map +1 -1
  678. package/layout/cookieModal/CookieModalItem.js.map +1 -1
  679. package/organisms/cardOwnedVehicle/cardOwnedVehicle.js.map +1 -1
  680. package/organisms/cardOwnedVehicle/cardOwnedVehicleComponent.js +1 -1
  681. package/organisms/cardOwnedVehicle/cardOwnedVehicleComponent.js.map +1 -1
  682. package/organisms/cardPhotoAdjustable/cardPhotoAdjustable.js.map +1 -1
  683. package/organisms/cardPhotoAdjustable/cardPhotoAdjustableComponent.js.map +1 -1
  684. package/organisms/cardPhotoFixed/cardPhotoFixed.js.map +1 -1
  685. package/organisms/cardPhotoFixed/cardPhotoFixedComponent.js.map +1 -1
  686. package/organisms/cardPromoVehicle/cardPromoVehicle.js.map +1 -1
  687. package/organisms/cardPromoVehicle/cardPromoVehicleComponent.js +1 -1
  688. package/organisms/cardPromoVehicle/cardPromoVehicleComponent.js.map +1 -1
  689. package/organisms/cardTypeOnly/cardTypeOnly.js.map +1 -1
  690. package/organisms/cardTypeOnly/cardTypeOnlyComponent.js.map +1 -1
  691. package/organisms/carousel/carousel.js.map +1 -1
  692. package/organisms/carousel/carouselTemplate.js.map +1 -1
  693. package/organisms/carousel/styledComponents/styledCarouselHorizontal.d.ts +1 -1
  694. package/organisms/carousel/styledComponents/styledCarouselHorizontal.js +1 -1
  695. package/organisms/carousel/styledComponents/styledCarouselHorizontal.js.map +1 -1
  696. package/organisms/carousel/styledComponents/styledCarouselVertical.d.ts +1 -1
  697. package/organisms/carousel/styledComponents/styledCarouselVertical.js.map +1 -1
  698. package/organisms/carousel2/cardCarousel/cardCarousel.js.map +1 -1
  699. package/organisms/carousel2/components/ItemsContainer.js +1 -1
  700. package/organisms/carousel2/components/ItemsContainer.js.map +1 -1
  701. package/organisms/carousel2/components/NavButton.js +1 -1
  702. package/organisms/carousel2/components/NavButton.js.map +1 -1
  703. package/organisms/carousel2/components/Numbering.js +1 -1
  704. package/organisms/carousel2/components/Numbering.js.map +1 -1
  705. package/organisms/carousel2/components/ScrollSnapDots.js.map +1 -1
  706. package/organisms/carousel2/components/ViewPort.js +1 -1
  707. package/organisms/carousel2/components/ViewPort.js.map +1 -1
  708. package/organisms/carousel2/galleryCarousel/GalleryItemText.js.map +1 -1
  709. package/organisms/carousel2/galleryCarousel/galleryCarousel.js.map +1 -1
  710. package/organisms/carousel2/galleryCarousel/galleryCarouselItem.js.map +1 -1
  711. package/organisms/carousel2/galleryCarousel/galleryContext.js.map +1 -1
  712. package/organisms/carousel2/galleryCarousel/galleryItemContext.js.map +1 -1
  713. package/organisms/carousel2/galleryCarousel/galleryItemHeading.js.map +1 -1
  714. package/organisms/carousel2/heroCarousel/HeroCarouselSlide.js.map +1 -1
  715. package/organisms/carousel2/heroCarousel/heroCarousel.js.map +1 -1
  716. package/organisms/carousel2/heroCarousel/heroCarouselContext.js.map +1 -1
  717. package/organisms/carousel2/hooks/useContainerPeek.js.map +1 -1
  718. package/organisms/carousel2/hooks/useDefaultProps.js.map +1 -1
  719. package/organisms/carousel2/hooks/useEmbla.js.map +1 -1
  720. package/organisms/carousel2/styledComponents/styledCarouselHorizontal.d.ts +1 -1
  721. package/organisms/common/buttonCardComponent/buttonCardComponent.js.map +1 -1
  722. package/organisms/common/infoTextCardComponent/infoTextCardComponent.js.map +1 -1
  723. package/organisms/common/menuCardComponent/menuCardComponent.js +1 -1
  724. package/organisms/common/menuCardComponent/menuCardComponent.js.map +1 -1
  725. package/organisms/common/styled/cardStandardWrapperStyled.d.ts +1 -1
  726. package/organisms/common/styled/cardStandardWrapperStyled.js +1 -1
  727. package/organisms/common/styled/cardStandardWrapperStyled.js.map +1 -1
  728. package/organisms/gallery/Gallery.js +1 -1
  729. package/organisms/gallery/Gallery.js.map +1 -1
  730. package/organisms/gallery/GalleryItem.js +1 -1
  731. package/organisms/gallery/GalleryItem.js.map +1 -1
  732. package/organisms/gallery/GalleryTrigger.js +1 -1
  733. package/organisms/gallery/GalleryTrigger.js.map +1 -1
  734. package/organisms/heroImageCard/heroImageCard.js.map +1 -1
  735. package/organisms/heroImageCard/heroImageCardComponent.js.map +1 -1
  736. package/organisms/heroImageCard/videoCardController.js.map +1 -1
  737. package/organisms/maps/hook/useMap.js.map +1 -1
  738. package/organisms/maps/mapComponents/infoWindowConfig.js.map +1 -1
  739. package/organisms/maps/mapComponents/mapComponent.js +1 -1
  740. package/organisms/maps/mapComponents/mapComponent.js.map +1 -1
  741. package/organisms/maps/mapComponents/mapStyled.d.ts +1 -1
  742. package/organisms/maps/mapComponents/mapStyled.js.map +1 -1
  743. package/organisms/maps/mapComponents/markerComponent.js +1 -1
  744. package/organisms/maps/mapComponents/markerComponent.js.map +1 -1
  745. package/organisms/maps/maps.js.map +1 -1
  746. package/organisms/maps/utils/mapConfig.js.map +1 -1
  747. package/organisms/maps/utils/mapIcons.js.map +1 -1
  748. package/organisms/maps/utils/style.js.map +1 -1
  749. package/organisms/notification/Notification.js +1 -1
  750. package/organisms/notification/Notification.js.map +1 -1
  751. package/organisms/notification/NotificationCenter.js.map +1 -1
  752. package/organisms/notification/NotificationCenterCategory.js.map +1 -1
  753. package/organisms/notification/NotificationCenterHeaderButton.js +1 -1
  754. package/organisms/notification/NotificationCenterHeaderButton.js.map +1 -1
  755. package/organisms/shortcutLink/shortcutLink.js.map +1 -1
  756. package/organisms/textCta/textCta.js +1 -1
  757. package/organisms/textCta/textCta.js.map +1 -1
  758. package/organisms/tile/tile.js +1 -1
  759. package/organisms/tile/tile.js.map +1 -1
  760. package/package.json +1 -1
  761. package/production/Button/Button.js +4 -4
  762. package/production/Button/Button.js.map +1 -1
  763. package/utils/ResponsiveType.js.map +1 -1
  764. package/utils/enum.js.map +1 -1
  765. package/utils/formatFileSize/formatFileSize.js.map +1 -1
  766. package/utils/useClosure/useClosure.js.map +1 -1
  767. package/utils/useFeatureFlag/useFeatureFlag.js.map +1 -1
  768. package/utils/useKeyboardShortcut/useKeyboardShortcut.js.map +1 -1
  769. package/utils/utilities.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"selectInput.js","sources":["../../../src/components/selectInput/selectInput.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { useRef, useState } from 'react';\nimport { FormControlSelectStyled } from './formControlSelectStyled';\nimport MuiSelect from '@mui/material/Select';\nimport { Icon } from '../icon';\nimport { useSelectInput } from './hook/useSelectInput';\nimport { styled } from '@mui/material/styles';\nimport InputLabelSelect from './inputLabelSelect';\nimport { FormHelperText } from '@mui/material';\nimport HelperText from '../common/helperText';\n/**\n * @description SkodaFlow SelectInput component.\n * Properties are inherited from HTML input element.\n * @param props SelectInputProps\n * @returns React Functional Component\n * @deprecated This component is deprecated. Use themed Select component from @mui/material instead.\n */\nexport const SelectInput = (_a) => {\n var { label = null, onChange, onBlur, onFocus, value, children, staticLabel, InputProps, fullWidth = true, removeSelectMenuMaxWidth } = _a, props = __rest(_a, [\"label\", \"onChange\", \"onBlur\", \"onFocus\", \"value\", \"children\", \"staticLabel\", \"InputProps\", \"fullWidth\", \"removeSelectMenuMaxWidth\"]);\n const [currentValue, setCurrentValue] = useState('');\n const [isFocused, setIsFocused] = useState(false);\n const [hovered, setHovered] = useState(false);\n const [isRequired, setIsRequired] = useState(false);\n const [opened, setOpened] = useState(false);\n const [inputWidth, setInputWidth] = useState(null);\n const { handleOnBlur, handleOnChange, handleOnFocus } = useSelectInput(isFocused, () => { }, () => { }, fullWidth, props.helpText, value, setCurrentValue, props.required, setIsRequired);\n const inputRef = useRef(null);\n const formControlSelectRef = useRef(null);\n const menuProps = {\n sx: inputWidth\n ? {\n maxWidth: removeSelectMenuMaxWidth ? 'unset' : inputWidth,\n '& .MuiBackdrop-root': {\n background: 'transparent',\n backdropFilter: 'blur(0px)',\n },\n }\n : {\n '& .MuiBackdrop-root': {\n background: 'transparent',\n backdropFilter: 'blur(0px)',\n },\n },\n };\n return (_jsx(_Fragment, { children: _jsxs(FormControlSelectStyled, Object.assign({}, props, { ref: formControlSelectRef, staticLabel: staticLabel, sx: !fullWidth ? { width: '200px' } : {}, disabled: props.disabled, error: props.hasError, value: currentValue, hideBg: props.hideBg, onMouseEnter: () => {\n !hovered && !opened && setHovered(true);\n }, onMouseLeave: () => {\n hovered && !opened && setHovered(false);\n }, onMouseDown: (e) => {\n const elemWidth = e.currentTarget.offsetWidth;\n setInputWidth(elemWidth);\n }, icon: props.icon, hovered: hovered, focused: isFocused, variant: \"filled\", fullWidth: fullWidth, children: [props.icon && _jsx(Icon, { color: props.disabled ? 'disabled' : 'inherit', name: props.icon }), _jsx(InputLabelSelect, { staticLabel: staticLabel, label: label, opened: opened, currentValue: currentValue }), _jsx(SelectInputStyled, { MenuProps: menuProps, required: isRequired, onOpen: () => {\n setOpened(true);\n }, onClose: () => {\n setIsFocused(false);\n setHovered(false);\n setOpened(false);\n }, onBlur: () => handleOnBlur(setIsFocused, onBlur), onFocus: () => handleOnFocus(setIsFocused, onFocus), IconComponent: () => (opened ? _jsx(Icon, { name: \"chevron-up\" }) : _jsx(Icon, { name: \"chevron-down\" })), labelId: label, id: props.id, name: props.name, value: currentValue, onChange: (e) => handleOnChange(e, onChange, setCurrentValue), ref: inputRef, hasIcon: !!props.icon, fullWidth: fullWidth, children: children }), _jsx(FormHelperText, { children: _jsx(HelperText, { maxChars: 0, currentValue: currentValue, helpText: props.helpText }) })] })) }));\n};\n/**\n * @description Button styling defintion based on props\n */\nconst SelectInputStyled = styled(MuiSelect, {\n shouldForwardProp: (prop) => prop !== 'hasIcon' && prop !== 'fullWidth',\n})((_a) => {\n var { theme } = _a, args = __rest(_a, [\"theme\"]);\n if (!args.fullWidth)\n return null;\n const width = args.hasIcon ? 'calc(100% - 102px) !important' : 'calc(100% - 62px) !important';\n return {\n '& > .MuiSelect-filled': {\n position: 'absolute',\n left: 0,\n top: 0,\n width: width,\n },\n };\n});\n//# sourceMappingURL=selectInput.js.map"],"names":["SelectInput","_a","label","onChange","onBlur","onFocus","value","children","staticLabel","InputProps","fullWidth","removeSelectMenuMaxWidth","props","__rest","currentValue","setCurrentValue","useState","isFocused","setIsFocused","hovered","setHovered","isRequired","setIsRequired","opened","setOpened","inputWidth","setInputWidth","handleOnBlur","handleOnChange","handleOnFocus","useSelectInput","helpText","required","inputRef","useRef","formControlSelectRef","menuProps","sx","maxWidth","background","backdropFilter","_jsx","_Fragment","_jsxs","FormControlSelectStyled","Object","assign","ref","width","disabled","error","hasError","hideBg","onMouseEnter","onMouseLeave","onMouseDown","e","elemWidth","currentTarget","offsetWidth","icon","focused","variant","Icon","color","name","InputLabelSelect","SelectInputStyled","MenuProps","onOpen","onClose","IconComponent","labelId","id","hasIcon","FormHelperText","HelperText","maxChars","styled","MuiSelect","shouldForwardProp","prop","args","position","left","top"],"mappings":"qiBAkBY,MAACA,EAAeC,IACxB,IAAIC,MAAEA,EAAQ,KAAIC,SAAEA,EAAQC,OAAEA,EAAMC,QAAEA,EAAOC,MAAEA,EAAKC,SAAEA,EAAQC,YAAEA,EAAWC,WAAEA,EAAUC,UAAEA,GAAY,EAAIC,yBAAEA,GAA6BV,EAAIW,EAAQC,EAAOZ,EAAI,CAAC,QAAS,WAAY,SAAU,UAAW,QAAS,WAAY,cAAe,aAAc,YAAa,6BACzQ,MAAOa,EAAcC,GAAmBC,EAAS,KAC1CC,EAAWC,GAAgBF,GAAS,IACpCG,EAASC,GAAcJ,GAAS,IAChCK,EAAYC,GAAiBN,GAAS,IACtCO,EAAQC,GAAaR,GAAS,IAC9BS,EAAYC,GAAiBV,EAAS,OACvCW,aAAEA,EAAYC,eAAEA,EAAcC,cAAEA,GAAkBC,EAAeb,GAAW,SAAW,QAAWP,EAAWE,EAAMmB,SAAUzB,EAAOS,EAAiBH,EAAMoB,SAAUV,GACrKW,EAAWC,EAAO,MAClBC,EAAuBD,EAAO,MAC9BE,EAAY,CACdC,GAAIZ,EACE,CACEa,SAAU3B,EAA2B,QAAUc,EAC/C,sBAAuB,CACnBc,WAAY,cACZC,eAAgB,cAGtB,CACE,sBAAuB,CACnBD,WAAY,cACZC,eAAgB,eAIhC,OAAQC,EAAKC,EAAW,CAAEnC,SAAUoC,EAAMC,EAAyBC,OAAOC,OAAO,CAAA,EAAIlC,EAAO,CAAEmC,IAAKZ,EAAsB3B,YAAaA,EAAa6B,GAAK3B,EAAiC,CAAA,EAArB,CAAEsC,MAAO,SAAgBC,SAAUrC,EAAMqC,SAAUC,MAAOtC,EAAMuC,SAAU7C,MAAOQ,EAAcsC,OAAQxC,EAAMwC,OAAQC,aAAc,MAC1RlC,IAAYI,GA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BAAyB,CACrByE,SAAU,WACVC,KAAM,EACNC,IAAK,EACLrC,MANMkC,EAAKR,QAAU,gCAAkC,gCAQ9D"}
1
+ {"version":3,"file":"selectInput.js","sources":["../../../src/components/selectInput/selectInput.tsx"],"sourcesContent":[null],"names":["SelectInput","_a","label","onChange","onBlur","onFocus","value","children","staticLabel","InputProps","fullWidth","removeSelectMenuMaxWidth","props","__rest","currentValue","setCurrentValue","useState","isFocused","setIsFocused","hovered","setHovered","isRequired","setIsRequired","opened","setOpened","inputWidth","setInputWidth","handleOnBlur","handleOnChange","handleOnFocus","useSelectInput","helpText","required","inputRef","useRef","formControlSelectRef","menuProps","sx","maxWidth","background","backdropFilter","_jsx","_Fragment","_jsxs","FormControlSelectStyled","Object","assign","ref","width","disabled","error","hasError","hideBg","onMouseEnter","onMouseLeave","onMouseDown","e","elemWidth","currentTarget","offsetWidth","icon","focused","variant","Icon","color","name","InputLabelSelect","SelectInputStyled","MenuProps","onOpen","onClose","IconComponent","labelId","id","hasIcon","FormHelperText","HelperText","maxChars","styled","MuiSelect","shouldForwardProp","prop","args","position","left","top"],"mappings":"qkBAiHa,MAAAA,EAAqCC,IAAA,IAAAC,MAChDA,EAAQ,KAAIC,SACZA,EAAQC,OACRA,EAAMC,QACNA,EAAOC,MACPA,EAAKC,SACLA,EAAQC,YACRA,EAAWC,WACXA,EAAUC,UACVA,GAAY,EAAIC,yBAChBA,GAAwBV,EACrBW,EAX6CC,EAAAZ,EAAA,CAAA,QAAA,WAAA,SAAA,UAAA,QAAA,WAAA,cAAA,aAAA,YAAA,6BAahD,MAAOa,EAAcC,GAAmBC,EAAS,KAC1CC,EAAWC,GAAgBF,GAAS,IACpCG,EAASC,GAAcJ,GAAS,IAChCK,EAAYC,GAAiBN,GAAS,IACtCO,EAAQC,GAAaR,GAAS,IAC9BS,EAAYC,GAAiBV,EAAS,OAEvCW,aAAEA,EAAYC,eAAEA,EAAcC,cAAEA,GAAkBC,EACtDb,GACA,SACA,QACAP,EACAE,E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ACvEO,QAAStE,EACTuE,GAAI7D,EAAM6D,GACVR,KAAMrD,EAAMqD,KACZ3D,MAAOQ,EACPX,SAAWqD,GAAM5B,EAAe4B,EAAGrD,EAAUY,GAC7CgC,IAAKd,EACLyC,UAAW9D,EAAMgD,KACjBlD,UAAWA,EAASH,SAEnBA,IAEHkC,EAACkC,EAAc,CAAApE,SACbkC,EAACmC,GAAWC,SAAU,EAAG/D,aAAcA,EAAciB,SAAUnB,EAAMmB,kBAI3E,EAKEoC,EAAoBW,EAAOC,EAAW,CAC1CC,kBAAoBC,GAAkB,YAATA,GAA+B,cAATA,GAD3BH,EAEuC7E,IAAA,IAAYiF,EAAIrE,EAAAZ,EAAhB,WAC/D,IAAKiF,EAAKxE,UAAW,OAAO,KAG5B,MAAO,CACL,wBAAyB,CACvByE,SAAU,WACVC,KAAM,EACNC,IAAK,EACLrC,MANUkC,EAAKR,QAAU,gCAAkC,gCAQ9D"}
@@ -5,7 +5,7 @@ type Marks = boolean | {
5
5
  }[];
6
6
  export declare const ContainerStyled: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme;
8
- as?: import("react").ElementType<any>;
8
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements>;
9
9
  } & {
10
10
  value: any;
11
11
  marks: Marks;
@@ -1,2 +1,2 @@
1
- import{__rest as t}from"tslib";import i from"@emotion/styled";const e=i.div((i=>{var e=t(i,["theme"]);let r={};if(!e.marks)return r;let n={};return r={position:"relative",padding:"0px 3px"},n=Array.isArray(e.value)?{"& .single-value-input":{position:"relative","&:nth-of-type(1)":{marginLeft:"-3px"},"&:last-of-type":{marginRight:"-3px"}}}:{"& .single-value-input":{position:"relative",marginLeft:"-3px"}},r=Object.assign(Object.assign({},r),n),r}));export{e as ContainerStyled};
1
+ import{__rest as t}from"../../node_modules/tslib/tslib.es6.js";import e from"@emotion/styled";const i=e.div((e=>{var i=t(e,["theme"]);let r={};if(!i.marks)return r;let n={};return r={position:"relative",padding:"0px 3px"},n=Array.isArray(i.value)?{"& .single-value-input":{position:"relative","&:nth-of-type(1)":{marginLeft:"-3px"},"&:last-of-type":{marginRight:"-3px"}}}:{"& .single-value-input":{position:"relative",marginLeft:"-3px"}},r=Object.assign(Object.assign({},r),n),r}));export{i as ContainerStyled};
2
2
  //# sourceMappingURL=containerStyled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"containerStyled.js","sources":["../../../src/components/slider/containerStyled.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport styled from '@emotion/styled';\nexport const ContainerStyled = styled.div((_a) => {\n var { theme } = _a, args = __rest(_a, [\"theme\"]);\n let style = {};\n if (!args.marks)\n return style;\n let rule = {};\n const isArray = Array.isArray(args.value);\n style = {\n position: 'relative',\n padding: '0px 3px',\n };\n if (!isArray) {\n rule = {\n '& .single-value-input': {\n position: 'relative',\n marginLeft: '-3px',\n },\n };\n }\n else {\n rule = {\n '& .single-value-input': {\n position: 'relative',\n '&:nth-of-type(1)': {\n marginLeft: '-3px',\n },\n '&:last-of-type': {\n marginRight: '-3px',\n },\n },\n };\n }\n style = Object.assign(Object.assign({}, style), rule);\n return style;\n});\n//# sourceMappingURL=containerStyled.js.map"],"names":["ContainerStyled","styled","div","_a","args","__rest","style","marks","rule","position","padding","Array","isArray","value","marginLeft","marginRight","Object","assign"],"mappings":"8DAEY,MAACA,EAAkBC,EAAOC,KAAKC,IACpC,IAAiBC,EAAOC,EAAOF,EAAI,CAAC,UACvC,IAAIG,EAAQ,CAAA,EACZ,IAAKF,EAAKG,MACN,OAAOD,EACX,IAAIE,EAAO,CAAA,EA4BX,OA1BAF,EAAQ,CACJG,SAAU,WACVC,QAAS,WAWTF,EAdYG,MAAMC,QAAQR,EAAKS,OAcxB,CACH,wBAAyB,CACrBJ,SAAU,WACV,mBAAoB,CAChBK,WAAY,QAEhB,iBAAkB,CACdC,YAAa,UAflB,CACH,wBAAyB,CACrBN,SAAU,WACVK,WAAY,SAiBxBR,EAAQU,OAAOC,OAAOD,OAAOC,OAAO,GAAIX,GAAQE,GACzCF,CAAK"}
1
+ {"version":3,"file":"containerStyled.js","sources":["../../../src/components/slider/containerStyled.tsx"],"sourcesContent":[null],"names":["ContainerStyled","styled","div","_a","args","__rest","style","marks","rule","position","padding","Array","isArray","value","marginLeft","marginRight","Object","assign"],"mappings":"8FAQa,MAAAA,EAAkBC,EAAOC,KAAmCC,IAAA,IAAYC,EAAIC,EAAAF,EAAhB,WACvE,IAAIG,EAAQ,CAAA,EAEZ,IAAKF,EAAKG,MAAO,OAAOD,EAExB,IAAIE,EAAO,CAAA,EA8BX,OA3BAF,EAAQ,CACNG,SAAU,WACVC,QAAS,WAWTF,EAfcG,MAAMC,QAAQR,EAAKS,OAe1B,CACL,wBAAyB,CACvBJ,SAAU,WACV,mBAAoB,CAClBK,WAAY,QAEd,iBAAkB,CAChBC,YAAa,UAdZ,CACL,wBAAyB,CACvBN,SAAU,WACVK,WAAY,SAiBlBR,EAAaU,OAAAC,OAAAD,OAAAC,OAAA,GAAAX,GAAUE,GAChBF,CAAK"}
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"tslib";import{jsxs as a,jsx as r}from"react/jsx-runtime";import{forwardRef as t,useMemo as i,useState as l,useEffect as n,useCallback as d}from"react";import s from"@mui/material/Slider";import{styled as o}from"@mui/material/styles";import u from"../common/resizableSliderInput.js";import m from"../common/styled/sliderValuesStyled.js";import{ContainerStyled as p}from"./containerStyled.js";const c=t(((t,s)=>{var{min:o,max:c,defaultValue:h,valueComponentType:v,leftSideLabel:x,rightSideLabel:f,disabled:g,disableSwap:y,step:C,value:D,isCurrencyInFront:I,minTextDescription:T="",maxTextDescription:$="",onChange:F,onInputBlur:V,thousandsSeparator:j=" ",decimalSeparator:B=",",hiddenDecimalSeparator:L=!0}=t,A=e(t,["min","max","defaultValue","valueComponentType","leftSideLabel","rightSideLabel","disabled","disableSwap","step","value","isCurrencyInFront","minTextDescription","maxTextDescription","onChange","onInputBlur","thousandsSeparator","decimalSeparator","hiddenDecimalSeparator"]);const N=i((()=>((e,a,r,t)=>void 0!==t?t:void 0!==r?r:a&&!e?[0,a]:!a&&e?e:0)(o,c,h,D)),[o,c,h,D]),[k,w]=l(N);n((()=>{D&&w((()=>D))}),[D]);const M=d((e=>(e=>{let a=e?parseInt(e):-1;return isNaN(a)&&(a=-1),a})(e)),[]),O=d(((e,a,r)=>{if(!Array.isArray(a))return w(a),void(F&&F(e,a,r));w(0===r?[Math.min(a[0],a[1]-C),a[1]]:[a[0],Math.max(a[1],a[0]+C)]),F&&F(e,a,r)}),[F,C]),z=d((e=>{let a=M(e.target.value);a>c&&(a=c),F&&F(e,a),w((()=>a))}),[M,c,F]),P=d(((e,a)=>{let r=M(e.target.value);1===a&&r>c?r=c:0===a&&r>k[1]&&(r=k[1]),w((t=>{let i=[...t];return i[a]=r,i[0]>i[1]&&(i=[0,C]),F&&F(e,i,a),i}))}),[M,c,F,C,k]),R=i((()=>Array.isArray(k)?((e,t,i,l,n,d,s,o,m,p,c,b,h)=>{if("default"===e||!e){const e=S("number"==typeof t[0]?t[0]:parseInt(t[0]),b,c,h),i=S("number"==typeof t[1]?t[1]:parseInt(t[1]),b,c,h);return a("div",{className:"range-values",children:[r("div",{"data-testid":"Slider.minVal",children:p?`${n} ${e}`:`${e} ${n}`}),r("div",{className:"middle-side"}),r("div",{"data-testid":"Slider.maxVal",children:p?`${d} ${i}`:`${i} ${d}`})]})}return a("div",{className:"range-values",children:[r(u,{id:"slider-double-value-left-label-input",onChange:s,onBlur:o,value:t[0],thousandsSeparator:c,decimalSeparator:b,hiddenDecimalSeparator:h,thumb:0,disabled:m,textDescription:n,labelText:"input"===e?null:i,isCurrencyInFront:p,"data-testid":"Slider.minVal"}),r("div",{className:"middle-side"}),r(u,{id:"slider-double-value-right-label-input",onChange:s,onBlur:o,value:t[1],thousandsSeparator:c,decimalSeparator:b,hiddenDecimalSeparator:h,thumb:1,disabled:m,textDescription:d,labelText:"labeledInput"===e?l:null,isCurrencyInFront:p,"data-testid":"Slider.maxVal"})]})})(v,k,x,f,T,$,P,V,g,I,j,B,L):((e,t,i,l,n,d,s,o,m,p,c)=>{if("default"===e||!e){const e=S("number"==typeof t?t:parseInt(t),p,m,c);return a("div",{"data-testid":"Slider.minVal",children:[l&&o?`${l} ${e}`:l?`${e} ${l}`:e," "]})}return r(u,{id:"slider-single-value-label-input",value:t,thousandsSeparator:m,decimalSeparator:p,hiddenDecimalSeparator:c,onChange:n,onBlur:d,disabled:s,textDescription:l,labelText:"labeledInput"===e?i:null,isCurrencyInFront:o})})(v,k,x,T,z,V,g,I,j,B,L)),[g,I,x,$,T,P,z,V,f,v,k,j,B,L]);return a(p,{value:k,marks:A.marks,"data-testid":"Slider","data-state":g?"disabled":void 0,children:[r(b,Object.assign({},A,{disabled:g,ref:s,onChange:O,min:o,max:c,step:C,disableSwap:y,valueLabelFormat:e=>S(e,B,j,L),value:k})),r(m,{disabled:g,children:R})]})})),b=o(s,{shouldForwardProp:e=>"minTextDescription"!==e&&"maxTextDescription"!==e&&"leftSideLabel"!==e&&"rightSideLabel"!==e&&"valueComponentType"!==e})((a=>{var r=e(a,["theme"]);if(!r.marks)return null;let t={};Array.isArray(r.value)||(t={"& .MuiSlider-track":{left:"-3px !important"}});let i={"& .MuiSlider-rail":{left:"-3px",paddingRight:"6px"}};return i=Object.assign(Object.assign({},i),t),i})),S=(e,a,r,t)=>t?e.toFixed().replace(/\B(?=(\d{3})+(?!\d))/g,r):e.toFixed(2).replace(".",a).replace(/\B(?=(\d{3})+(?!\d))/g,r);export{c as Slider};
1
+ import{__rest as e}from"../../node_modules/tslib/tslib.es6.js";import{jsxs as a,jsx as r}from"react/jsx-runtime";import{forwardRef as t,useMemo as i,useState as l,useEffect as n,useCallback as d}from"react";import s from"@mui/material/Slider";import{styled as o}from"@mui/material/styles";import u from"../common/resizableSliderInput.js";import m from"../common/styled/sliderValuesStyled.js";import{ContainerStyled as p}from"./containerStyled.js";const c=t(((t,s)=>{var{min:o,max:c,defaultValue:h,valueComponentType:v,leftSideLabel:x,rightSideLabel:f,disabled:g,disableSwap:y,step:C,value:D,isCurrencyInFront:I,minTextDescription:T="",maxTextDescription:$="",onChange:F,onInputBlur:j,thousandsSeparator:V=" ",decimalSeparator:B=",",hiddenDecimalSeparator:L=!0}=t,A=e(t,["min","max","defaultValue","valueComponentType","leftSideLabel","rightSideLabel","disabled","disableSwap","step","value","isCurrencyInFront","minTextDescription","maxTextDescription","onChange","onInputBlur","thousandsSeparator","decimalSeparator","hiddenDecimalSeparator"]);const N=i((()=>((e,a,r,t)=>void 0!==t?t:void 0!==r?r:a&&!e?[0,a]:!a&&e?e:0)(o,c,h,D)),[o,c,h,D]),[k,w]=l(N);n((()=>{D&&w((()=>D))}),[D]);const M=d((e=>(e=>{let a=e?parseInt(e):-1;return isNaN(a)&&(a=-1),a})(e)),[]),O=d(((e,a,r)=>{if(!Array.isArray(a))return w(a),void(F&&F(e,a,r));w(0===r?[Math.min(a[0],a[1]-C),a[1]]:[a[0],Math.max(a[1],a[0]+C)]),F&&F(e,a,r)}),[F,C]),z=d((e=>{let a=M(e.target.value);a>c&&(a=c),F&&F(e,a),w((()=>a))}),[M,c,F]),P=d(((e,a)=>{let r=M(e.target.value);1===a&&r>c?r=c:0===a&&r>k[1]&&(r=k[1]),w((t=>{let i=[...t];return i[a]=r,i[0]>i[1]&&(i=[0,C]),F&&F(e,i,a),i}))}),[M,c,F,C,k]),R=i((()=>Array.isArray(k)?((e,t,i,l,n,d,s,o,m,p,c,b,h)=>{if("default"===e||!e){const e=S("number"==typeof t[0]?t[0]:parseInt(t[0]),b,c,h),i=S("number"==typeof t[1]?t[1]:parseInt(t[1]),b,c,h);return a("div",{className:"range-values",children:[r("div",{"data-testid":"Slider.minVal",children:p?`${n} ${e}`:`${e} ${n}`}),r("div",{className:"middle-side"}),r("div",{"data-testid":"Slider.maxVal",children:p?`${d} ${i}`:`${i} ${d}`})]})}return a("div",{className:"range-values",children:[r(u,{id:"slider-double-value-left-label-input",onChange:s,onBlur:o,value:t[0],thousandsSeparator:c,decimalSeparator:b,hiddenDecimalSeparator:h,thumb:0,disabled:m,textDescription:n,labelText:"input"===e?null:i,isCurrencyInFront:p,"data-testid":"Slider.minVal"}),r("div",{className:"middle-side"}),r(u,{id:"slider-double-value-right-label-input",onChange:s,onBlur:o,value:t[1],thousandsSeparator:c,decimalSeparator:b,hiddenDecimalSeparator:h,thumb:1,disabled:m,textDescription:d,labelText:"labeledInput"===e?l:null,isCurrencyInFront:p,"data-testid":"Slider.maxVal"})]})})(v,k,x,f,T,$,P,j,g,I,V,B,L):((e,t,i,l,n,d,s,o,m,p,c)=>{if("default"===e||!e){const e=S("number"==typeof t?t:parseInt(t),p,m,c);return a("div",{"data-testid":"Slider.minVal",children:[l&&o?`${l} ${e}`:l?`${e} ${l}`:e," "]})}return r(u,{id:"slider-single-value-label-input",value:t,thousandsSeparator:m,decimalSeparator:p,hiddenDecimalSeparator:c,onChange:n,onBlur:d,disabled:s,textDescription:l,labelText:"labeledInput"===e?i:null,isCurrencyInFront:o})})(v,k,x,T,z,j,g,I,V,B,L)),[g,I,x,$,T,P,z,j,f,v,k,V,B,L]);return a(p,{value:k,marks:A.marks,"data-testid":"Slider","data-state":g?"disabled":void 0,children:[r(b,Object.assign({},A,{disabled:g,ref:s,onChange:O,min:o,max:c,step:C,disableSwap:y,valueLabelFormat:e=>S(e,B,V,L),value:k})),r(m,{disabled:g,children:R})]})})),b=o(s,{shouldForwardProp:e=>"minTextDescription"!==e&&"maxTextDescription"!==e&&"leftSideLabel"!==e&&"rightSideLabel"!==e&&"valueComponentType"!==e})((a=>{var r=e(a,["theme"]);if(!r.marks)return null;let t={};Array.isArray(r.value)||(t={"& .MuiSlider-track":{left:"-3px !important"}});let i={"& .MuiSlider-rail":{left:"-3px",paddingRight:"6px"}};return i=Object.assign(Object.assign({},i),t),i})),S=(e,a,r,t)=>t?e.toFixed().replace(/\B(?=(\d{3})+(?!\d))/g,r):e.toFixed(2).replace(".",a).replace(/\B(?=(\d{3})+(?!\d))/g,r);export{c as Slider};
2
2
  //# sourceMappingURL=slider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"slider.js","sources":["../../../src/components/slider/slider.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n/* eslint-disable sonarjs/cognitive-complexity */\nimport { forwardRef, useCallback, useEffect, useMemo, useState } from 'react';\nimport MuiSlider from '@mui/material/Slider';\nimport { styled } from '@mui/material/styles';\nimport ResizableSliderInput from '../common/resizableSliderInput';\nimport SliderValuesStyled from '../common/styled/sliderValuesStyled';\nimport { ContainerStyled } from './containerStyled';\nconst getDoubleValueComponent = (type, values, leftSideLabel, rightSideLabel, minTextDescription, maxTextDescription, onChange, onBlur, disabled, isCurrencyInFront, thousandsSeparator, decimalSeparator, hiddenDecimalSeparator) => {\n if (type === 'default' || !type) {\n const minVal = getFormattedString(typeof values[0] === 'number' ? values[0] : parseInt(values[0]), decimalSeparator, thousandsSeparator, hiddenDecimalSeparator);\n const maxVal = getFormattedString(typeof values[1] === 'number' ? values[1] : parseInt(values[1]), decimalSeparator, thousandsSeparator, hiddenDecimalSeparator);\n return (_jsxs(\"div\", { className: \"range-values\", children: [_jsx(\"div\", { \"data-testid\": \"Slider.minVal\", children: isCurrencyInFront ? `${minTextDescription} ${minVal}` : `${minVal} ${minTextDescription}` }), _jsx(\"div\", { className: \"middle-side\" }), _jsx(\"div\", { \"data-testid\": \"Slider.maxVal\", children: isCurrencyInFront ? `${maxTextDescription} ${maxVal}` : `${maxVal} ${maxTextDescription}` })] }));\n }\n return (_jsxs(\"div\", { className: \"range-values\", children: [_jsx(ResizableSliderInput, { id: \"slider-double-value-left-label-input\", onChange: onChange, onBlur: onBlur, value: values[0], thousandsSeparator: thousandsSeparator, decimalSeparator: decimalSeparator, hiddenDecimalSeparator: hiddenDecimalSeparator, thumb: 0, disabled: disabled, textDescription: minTextDescription, labelText: type === 'input' ? null : leftSideLabel, isCurrencyInFront: isCurrencyInFront, \"data-testid\": \"Slider.minVal\" }), _jsx(\"div\", { className: \"middle-side\" }), _jsx(ResizableSliderInput, { id: \"slider-double-value-right-label-input\", onChange: onChange, onBlur: onBlur, value: values[1], thousandsSeparator: thousandsSeparator, decimalSeparator: decimalSeparator, hiddenDecimalSeparator: hiddenDecimalSeparator, thumb: 1, disabled: disabled, textDescription: maxTextDescription, labelText: type === 'labeledInput' ? rightSideLabel : null, isCurrencyInFront: isCurrencyInFront, \"data-testid\": \"Slider.maxVal\" })] }));\n};\nconst getSingleValueComponent = (type, values, leftSideLabel, minTextDescription, onChange, onBlur, disabled, isCurrencyInFront, thousandsSeparator, decimalSeparator, hiddenDecimalSeparator) => {\n if (type === 'default' || !type) {\n const val = getFormattedString(typeof values === 'number' ? values : parseInt(values), decimalSeparator, thousandsSeparator, hiddenDecimalSeparator);\n return (_jsxs(\"div\", { \"data-testid\": \"Slider.minVal\", children: [minTextDescription && isCurrencyInFront\n ? `${minTextDescription} ${val}`\n : minTextDescription\n ? `${val} ${minTextDescription}`\n : val, ' '] }));\n }\n return (_jsx(ResizableSliderInput, { id: \"slider-single-value-label-input\", value: values, thousandsSeparator: thousandsSeparator, decimalSeparator: decimalSeparator, hiddenDecimalSeparator: hiddenDecimalSeparator, onChange: onChange, onBlur: onBlur, disabled: disabled, textDescription: minTextDescription, labelText: type === 'labeledInput' ? leftSideLabel : null, isCurrencyInFront: isCurrencyInFront }));\n};\nconst getFormattedValue = (value) => {\n let result = value ? parseInt(value) : -1;\n if (isNaN(result))\n result = -1;\n return result;\n};\nconst getInitialValue = (min, max, defaultValue, value) => {\n if (value !== undefined)\n return value;\n if (defaultValue !== undefined)\n return defaultValue;\n if (max && !min)\n return [0, max];\n if (!max && min)\n return min;\n return 0;\n};\n/**\n * @description Styled SkodaFlow Slider component\n * @param props SliderProps\n * @returns React Functional Component\n */\nexport const Slider = forwardRef((_a, ref) => {\n var { min, max, defaultValue, valueComponentType, leftSideLabel, rightSideLabel, disabled, disableSwap, step, value, isCurrencyInFront, minTextDescription = '', maxTextDescription = '', onChange, onInputBlur, thousandsSeparator = ' ', decimalSeparator = ',', hiddenDecimalSeparator = true } = _a, props = __rest(_a, [\"min\", \"max\", \"defaultValue\", \"valueComponentType\", \"leftSideLabel\", \"rightSideLabel\", \"disabled\", \"disableSwap\", \"step\", \"value\", \"isCurrencyInFront\", \"minTextDescription\", \"maxTextDescription\", \"onChange\", \"onInputBlur\", \"thousandsSeparator\", \"decimalSeparator\", \"hiddenDecimalSeparator\"]);\n const getInitialValueWithUseCallBack = useMemo(() => {\n return getInitialValue(min, max, defaultValue, value);\n }, [min, max, defaultValue, value]);\n const [values, setValues] = useState(getInitialValueWithUseCallBack);\n useEffect(() => {\n if (value)\n setValues(() => value);\n }, [value]);\n const getFormattedValueWithUseCallBack = useCallback((_value) => {\n return getFormattedValue(_value);\n }, []);\n const onChangeHandler = useCallback((event, _value, activeThumb) => {\n if (!Array.isArray(_value)) {\n setValues(_value);\n onChange && onChange(event, _value, activeThumb);\n return;\n }\n if (activeThumb === 0) {\n setValues([Math.min(_value[0], _value[1] - step), _value[1]]);\n }\n else {\n setValues([_value[0], Math.max(_value[1], _value[0] + step)]);\n }\n onChange && onChange(event, _value, activeThumb);\n }, [onChange, step]);\n const onChangeSingleValue = useCallback((e) => {\n let newValue = getFormattedValueWithUseCallBack(e.target.value);\n if (newValue > max)\n newValue = max;\n onChange && onChange(e, newValue);\n setValues(() => newValue);\n }, [getFormattedValueWithUseCallBack, max, onChange]);\n const onChangeDoubleValue = useCallback((e, thumb) => {\n let newValue = getFormattedValueWithUseCallBack(e.target.value);\n if (thumb === 1 && newValue > max)\n newValue = max;\n else if (thumb === 0 && newValue > values[1])\n newValue = values[1];\n setValues((curr) => {\n let newArrayValue = [...curr];\n newArrayValue[thumb] = newValue;\n if (newArrayValue[0] > newArrayValue[1]) {\n newArrayValue = [0, step];\n }\n onChange && onChange(e, newArrayValue, thumb);\n return newArrayValue;\n });\n }, [getFormattedValueWithUseCallBack, max, onChange, step, values]);\n const valuesComponent = useMemo(() => {\n return Array.isArray(values)\n ? getDoubleValueComponent(valueComponentType, values, leftSideLabel, rightSideLabel, minTextDescription, maxTextDescription, onChangeDoubleValue, onInputBlur, disabled, isCurrencyInFront, thousandsSeparator, decimalSeparator, hiddenDecimalSeparator)\n : getSingleValueComponent(valueComponentType, values, leftSideLabel, minTextDescription, onChangeSingleValue, onInputBlur, disabled, isCurrencyInFront, thousandsSeparator, decimalSeparator, hiddenDecimalSeparator);\n }, [\n disabled,\n isCurrencyInFront,\n leftSideLabel,\n maxTextDescription,\n minTextDescription,\n onChangeDoubleValue,\n onChangeSingleValue,\n onInputBlur,\n rightSideLabel,\n valueComponentType,\n values,\n thousandsSeparator,\n decimalSeparator,\n hiddenDecimalSeparator,\n ]);\n return (_jsxs(ContainerStyled, { value: values, marks: props.marks, \"data-testid\": \"Slider\", \"data-state\": disabled ? 'disabled' : undefined, children: [_jsx(SliderStyled, Object.assign({}, props, { disabled: disabled, ref: ref, onChange: onChangeHandler, min: min, max: max, step: step, disableSwap: disableSwap, valueLabelFormat: (v) => getFormattedString(v, decimalSeparator, thousandsSeparator, hiddenDecimalSeparator), value: values })), _jsx(SliderValuesStyled, { disabled: disabled, children: valuesComponent })] }));\n});\n/**\n * @description Slider styling definition\n */\nconst SliderStyled = styled(MuiSlider, {\n shouldForwardProp: (prop) => prop !== 'minTextDescription' &&\n prop !== 'maxTextDescription' &&\n prop !== 'leftSideLabel' &&\n prop !== 'rightSideLabel' &&\n prop !== 'valueComponentType',\n})((_a) => {\n var { theme } = _a, args = __rest(_a, [\"theme\"]);\n if (!args.marks)\n return null;\n let rule = {};\n const isArray = Array.isArray(args.value);\n if (!isArray)\n rule = {\n '& .MuiSlider-track': {\n left: '-3px !important',\n },\n };\n let style = {\n '& .MuiSlider-rail': {\n left: '-3px',\n paddingRight: '6px',\n },\n };\n style = Object.assign(Object.assign({}, style), rule);\n return style;\n});\nconst getFormattedString = (num, decimalSeparator, thousandsSeparator, hiddenDecimalSeparator) => {\n if (hiddenDecimalSeparator)\n return num.toFixed().replace(/\\B(?=(\\d{3})+(?!\\d))/g, thousandsSeparator);\n return num\n .toFixed(2)\n .replace('.', decimalSeparator)\n .replace(/\\B(?=(\\d{3})+(?!\\d))/g, thousandsSeparator);\n};\n//# sourceMappingURL=slider.js.map"],"names":["Slider","forwardRef","_a","ref","min","max","defaultValue","valueComponentType","leftSideLabel","rightSideLabel","disabled","disableSwap","step","value","isCurrencyInFront","minTextDescription","maxTextDescription","onChange","onInputBlur","thousandsSeparator","decimalSeparator","hiddenDecimalSeparator","props","__rest","getInitialValueWithUseCallBack","useMemo","undefined","getInitialValue","values","setValues","useState","useEffect","getFormattedValueWithUseCallBack","useCallback","_value","result","parseInt","isNaN","getFormattedValue","onChangeHandler","event","activeThumb","Array","isArray","Math","onChangeSingleValue","e","newValue","target","onChangeDoubleValue","thumb","curr","newArrayValue","valuesComponent","type","onBlur","minVal","getFormattedString","maxVal","_jsxs","className","children","_jsx","ResizableSliderInput","id","textDescription","labelText","getDoubleValueComponent","val","getSingleValueComponent","ContainerStyled","marks","SliderStyled","Object","assign","valueLabelFormat","v","SliderValuesStyled","styled","MuiSlider","shouldForwardProp","prop","args","rule","left","style","paddingRight","num","toFixed","replace"],"mappings":"+ZASA,MAyCaA,EAASC,GAAW,CAACC,EAAIC,KAClC,IAAIC,IAAEA,EAAGC,IAAEA,EAAGC,aAAEA,EAAYC,mBAAEA,EAAkBC,cAAEA,EAAaC,eAAEA,EAAcC,SAAEA,EAAQC,YAAEA,EAAWC,KAAEA,EAAIC,MAAEA,EAAKC,kBAAEA,EAAiBC,mBAAEA,EAAqB,GAAEC,mBAAEA,EAAqB,GAAEC,SAAEA,EAAQC,YAAEA,EAAWC,mBAAEA,EAAqB,IAAGC,iBAAEA,EAAmB,IAAGC,uBAAEA,GAAyB,GAASnB,EAAIoB,EAAQC,EAAOrB,EAAI,CAAC,MAAO,MAAO,eAAgB,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IACnM,CACCX,EACAI,EACAN,EACAQ,EACAD,EACAkC,EACAJ,EACA3B,EACAT,EACAF,EACAqB,EACAT,EACAC,EACAC,IAEJ,OAAQsC,EAAMW,EAAiB,CAAEzD,MAAOe,EAAQ2C,MAAOjD,EAAMiD,MAAO,cAAe,SAAU,aAAc7D,EAAW,gBAAagB,EAAWmC,SAAU,CAACC,EAAKU,EAAcC,OAAOC,OAAO,CAAE,EAAEpD,EAAO,CAAEZ,SAAUA,EAAUP,IAAKA,EAAKc,SAAUsB,EAAiBnC,IAAKA,EAAKC,IAAKA,EAAKO,KAAMA,EAAMD,YAAaA,EAAagE,iBAAmBC,GAAMnB,EAAmBmB,EAAGxD,EAAkBD,EAAoBE,GAAyBR,MAAOe,KAAYkC,EAAKe,EAAoB,CAAEnE,SAAUA,EAAUmD,SAAUR,MAAwB,IAK1gBmB,EAAeM,EAAOC,EAAW,CACnCC,kBAAoBC,GAAkB,uBAATA,GAChB,uBAATA,GACS,kBAATA,GACS,mBAATA,GACS,uBAATA,GALaH,EAMjB5E,IACG,IAAiBgF,EAAO3D,EAAOrB,EAAI,CAAC,UACvC,IAAKgF,EAAKX,MACN,OAAO,KACX,IAAIY,EAAO,CAAA,EACKzC,MAAMC,QAAQuC,EAAKrE,SAE/BsE,EAAO,CACH,qBAAsB,CAClBC,KAAM,qBAGlB,IAAIC,EAAQ,CACR,oBAAqB,CACjBD,KAAM,OACNE,aAAc,QAItB,OADAD,EAAQZ,OAAOC,OAAOD,OAAOC,OAAO,GAAIW,GAAQF,GACzCE,CAAK,IAEV5B,EAAqB,CAAC8B,EAAKnE,EAAkBD,EAAoBE,IAC/DA,EACOkE,EAAIC,UAAUC,QAAQ,wBAAyBtE,GACnDoE,EACFC,QAAQ,GACRC,QAAQ,IAAKrE,GACbqE,QAAQ,wBAAyBtE"}
1
+ {"version":3,"file":"slider.js","sources":["../../../src/components/slider/slider.tsx"],"sourcesContent":[null],"names":["Slider","forwardRef","_a","ref","min","max","defaultValue","valueComponentType","leftSideLabel","rightSideLabel","disabled","disableSwap","step","value","isCurrencyInFront","minTextDescription","maxTextDescription","onChange","onInputBlur","thousandsSeparator","decimalSeparator","hiddenDecimalSeparator","props","__rest","getInitialValueWithUseCallBack","useMemo","undefined","getInitialValue","values","setValues","useState","useEffect","getFormattedValueWithUseCallBack","useCallback","_value","result","parseInt","isNaN","getFormattedValue","onChangeHandler","event","activeThumb","Array","isArray","Math","onChangeSingleValue","e","newValue","target","onChangeDoubleValue","thumb","curr","newArrayValue","valuesComponent","type","onBlur","minVal","getFormattedString","maxVal","_jsxs","className","children","_jsx","ResizableSliderInput","id","textDescription","labelText","getDoubleValueComponent","val","getSingleValueComponent","ContainerStyled","marks","SliderStyled","valueLabelFormat","v","SliderValuesStyled","styled","MuiSlider","shouldForwardProp","prop","args","rule","left","style","paddingRight","Object","assign","num","toFixed","replace"],"mappings":"+bAoLA,MAwJaA,EAASC,GACpB,CACEC,EAqBAC,SArBAC,IACEA,EAAGC,IACHA,EAAGC,aACHA,EAAYC,mBACZA,EAAkBC,cAClBA,EAAaC,eACbA,EAAcC,SACdA,EAAQC,YACRA,EAAWC,KACXA,EAAIC,MACJA,EAAKC,kBACLA,EAAiBC,mBACjBA,EAAqB,GAAEC,mBACvBA,EAAqB,GAAEC,SACvBA,EAAQC,YACRA,EAAWC,mBACXA,EAAqB,IAAGC,iBACxBA,EAAmB,IAAGC,uBACtBA,GAAyB,KACtBC,EAnBLC,EAAArB,EAAA,CAAA,MAAA,MAAA,eAAA,qBAAA,gBAAA,iBAAA,WAAA,cAAA,OAAA,QAAA,oBAAA,qBAAA,qBAAA,WAAA,cAAA,qBAAA,mBAAA,2BAuBA,MAAMsB,EAAiCC,GAAQ,IA5C3B,EACtBrB,EACAC,EACAC,EACAO,SAEca,IAAVb,EAA4BA,OACXa,IAAjBpB,EAAmCA,EACnCD,IAAQD,EAAY,CAAC,EAAGC,IACvBA,GAAOD,EAAYA,EAEjB,EAkCIuB,CAAgBvB,EAAKC,EAAKC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EAAW,CACrCC,kBAAoBC,GACT,uBAATA,GACS,uBAATA,GACS,kBAATA,GACS,mBAATA,GACS,uBAATA,GANiBH,EAOD1E,IAAA,IAAY8E,EAAIzD,EAAArB,EAAhB,WAClB,IAAK8E,EAAKT,MAAO,OAAO,KAExB,IAAIU,EAAO,CAAA,EACKvC,MAAMC,QAAQqC,EAAKnE,SAEjCoE,EAAO,CACL,qBAAsB,CACpBC,KAAM,qBAIZ,IAAIC,EAAQ,CACV,oBAAqB,CACnBD,KAAM,OACNE,aAAc,QAKlB,OADAD,EAAaE,OAAAC,OAAAD,OAAAC,OAAA,GAAAH,GAAUF,GAChBE,CAAK,IAGR1B,EAAqB,CACzB8B,EACAnE,EACAD,EACAE,IAEIA,EAA+BkE,EAAIC,UAAUC,QAAQ,wBAAyBtE,GAC3EoE,EACJC,QAAQ,GACRC,QAAQ,IAAKrE,GACbqE,QAAQ,wBAAyBtE"}
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"tslib";import{jsx as i}from"react/jsx-runtime";import{forwardRef as o,useMemo as r,useCallback as n}from"react";import{styled as t}from"@mui/material/styles";import a from"@mui/material/Snackbar";import{SnackbarMessage as s}from"./snackbarMessage.js";const c=o((({open:e,setOpen:o,icon:t,message:a,header:c,handleAction:d,autoHideDuration:l,actionButtonTitle:p,handleClose:u,closeOnClickaway:h,anchorOrigin:g,disableWindowBlurListener:f,resumeHideDuration:x,TransitionProps:b},k)=>{const B=r((()=>p&&i("button",{onClick:d,children:p})),[p,d]),T=r((()=>i(s,{icon:t,header:c,message:a})),[c,t,a]),w=n(((e,i)=>{(h||"clickaway"!==i)&&(u&&u(e,i),o(!1))}),[h,u,o]);return i(m,{actionButtonTitle:p,open:e,autoHideDuration:l,onClose:w,icon:t,header:c,message:T,action:B,anchorOrigin:g,disableWindowBlurListener:f,resumeHideDuration:x,TransitionProps:b,ref:k})})),d=e=>"alert"===e||"warning"===e||"success"===e,m=t(a,{shouldForwardProp:e=>"actionButtonTitle"!==e})((i=>{var o=e(i,["theme"]);return{"& .MuiPaper-root":{paddingLeft:d(o.icon)?"18px":"16px",paddingTop:o.header?"12px":"8px",paddingBottom:o.header?"12px":"8px","& > .MuiSnackbarContent-message":{"& > div":{"& .custom-snackbar-divider":{display:o.actionButtonTitle?"flex":"none"}}}}}}));export{c as Snackbar,d as checkForIcon};
1
+ import{__rest as e}from"../../node_modules/tslib/tslib.es6.js";import{jsx as o}from"react/jsx-runtime";import{forwardRef as i,useMemo as r,useCallback as n}from"react";import{styled as t}from"@mui/material/styles";import a from"@mui/material/Snackbar";import{SnackbarMessage as s}from"./snackbarMessage.js";const d=i((({open:e,setOpen:i,icon:t,message:a,header:d,handleAction:c,autoHideDuration:m,actionButtonTitle:u,handleClose:p,closeOnClickaway:h,anchorOrigin:g,disableWindowBlurListener:b,resumeHideDuration:f,TransitionProps:x},k)=>{const B=r((()=>u&&o("button",{onClick:c,children:u})),[u,c]),T=r((()=>o(s,{icon:t,header:d,message:a})),[d,t,a]),w=n(((e,o)=>{(h||"clickaway"!==o)&&(p&&p(e,o),i(!1))}),[h,p,i]);return o(l,{actionButtonTitle:u,open:e,autoHideDuration:m,onClose:w,icon:t,header:d,message:T,action:B,anchorOrigin:g,disableWindowBlurListener:b,resumeHideDuration:f,TransitionProps:x,ref:k})})),c=e=>"alert"===e||"warning"===e||"success"===e,l=t(a,{shouldForwardProp:e=>"actionButtonTitle"!==e})((o=>{var i=e(o,["theme"]);return{"& .MuiPaper-root":{paddingLeft:c(i.icon)?"18px":"16px",paddingTop:i.header?"12px":"8px",paddingBottom:i.header?"12px":"8px","& > .MuiSnackbarContent-message":{"& > div":{"& .custom-snackbar-divider":{display:i.actionButtonTitle?"flex":"none"}}}}}}));export{d as Snackbar,c as checkForIcon};
2
2
  //# sourceMappingURL=snackbar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"snackbar.js","sources":["../../../src/components/snackbar/snackbar.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef, useCallback, useMemo } from 'react';\nimport { styled } from '@mui/material/styles';\nimport MuiSnackbar from '@mui/material/Snackbar';\nimport { SnackbarMessage } from './snackbarMessage';\n/**\n * @description SkodaFlow Snackbar component.\n * Properties are inherited from HTML Div element.\n * @param props SnackbarProps\n * @returns React Functional Component\n */\nexport const Snackbar = forwardRef(({ open, setOpen, icon, message, header, handleAction, autoHideDuration, actionButtonTitle, handleClose, closeOnClickaway, anchorOrigin, disableWindowBlurListener, resumeHideDuration, TransitionProps, }, ref) => {\n const actionComponent = useMemo(() => {\n return actionButtonTitle && _jsx(\"button\", { onClick: handleAction, children: actionButtonTitle });\n }, [actionButtonTitle, handleAction]);\n const messageComponent = useMemo(() => _jsx(SnackbarMessage, { icon: icon, header: header, message: message }), [header, icon, message]);\n const mainHandleClose = useCallback((event, reason) => {\n if (!closeOnClickaway && reason === 'clickaway') {\n return;\n }\n if (handleClose)\n handleClose(event, reason);\n setOpen(false);\n }, [closeOnClickaway, handleClose, setOpen]);\n return (_jsx(SnackbarStyled, { actionButtonTitle: actionButtonTitle, open: open, autoHideDuration: autoHideDuration, onClose: mainHandleClose, icon: icon, header: header, message: messageComponent, action: actionComponent, anchorOrigin: anchorOrigin, disableWindowBlurListener: disableWindowBlurListener, resumeHideDuration: resumeHideDuration, TransitionProps: TransitionProps, ref: ref }));\n});\nexport const checkForIcon = (icon) => {\n return icon === 'alert' || icon === 'warning' || icon === 'success';\n};\n/**\n * @description Snackbar styling defintion based on props\n */\nconst SnackbarStyled = styled(MuiSnackbar, {\n shouldForwardProp: (prop) => prop !== 'actionButtonTitle',\n})((_a) => {\n var { theme } = _a, args = __rest(_a, [\"theme\"]);\n return {\n '& .MuiPaper-root': {\n paddingLeft: checkForIcon(args.icon) ? '18px' : '16px',\n paddingTop: args.header ? '12px' : '8px',\n paddingBottom: args.header ? '12px' : '8px',\n '& > .MuiSnackbarContent-message': {\n '& > div': {\n '& .custom-snackbar-divider': {\n display: args.actionButtonTitle ? 'flex' : 'none',\n },\n },\n },\n },\n };\n});\n//# sourceMappingURL=snackbar.js.map"],"names":["Snackbar","forwardRef","open","setOpen","icon","message","header","handleAction","autoHideDuration","actionButtonTitle","handleClose","closeOnClickaway","anchorOrigin","disableWindowBlurListener","resumeHideDuration","TransitionProps","ref","actionComponent","useMemo","_jsx","onClick","children","messageComponent","SnackbarMessage","mainHandleClose","useCallback","event","reason","SnackbarStyled","onClose","action","checkForIcon","styled","MuiSnackbar","shouldForwardProp","prop","_a","args","__rest","paddingLeft","paddingTop","paddingBottom","display"],"mappings":"mRAYY,MAACA,EAAWC,GAAW,EAAGC,OAAMC,UAASC,OAAMC,UAASC,SAAQC,eAAcC,mBAAkBC,oBAAmBC,cAAaC,mBAAkBC,eAAcC,4BAA2BC,qBAAoBC,mBAAoBC,KAC3O,MAAMC,EAAkBC,GAAQ,IACrBT,GAAqBU,EAAK,SAAU,CAAEC,QAASb,EAAcc,SAAUZ,KAC/E,CAACA,EAAmBF,IACjBe,EAAmBJ,GAAQ,IAAMC,EAAKI,EAAiB,CAAEnB,KAAMA,EAAME,OAAQA,EAAQD,QAASA,KAAY,CAACC,EAAQF,EAAMC,IACzHmB,EAAkBC,GAAY,CAACC,EAAOC,MACnChB,GAA+B,cAAXgB,KAGrBjB,GACAA,EAAYgB,EAAOC,GACvBxB,GAAQ,GAAM,GACf,CAACQ,EAAkBD,EAAaP,IACnC,OAAQgB,EAAKS,EAAgB,CAAEnB,kBAAmBA,EAAmBP,KAAMA,EAAMM,iBAAkBA,EAAkBqB,QAASL,EAAiBpB,KAAMA,EAAME,OAAQA,EAAQD,QAASiB,EAAkBQ,OAAQb,EAAiBL,aAAcA,EAAcC,0BAA2BA,EAA2BC,mBAAoBA,EAAoBC,gBAAiBA,EAAiBC,IAAKA,GAAQ,IAE/Xe,EAAgB3B,GACT,UAATA,GAA6B,YAATA,GAA+B,YAATA,EAK/CwB,EAAiBI,EAAOC,EAAa,CACvCC,kBAAoBC,GAAkB,sBAATA,GADVH,EAEnBI,IACG,IAAiBC,EAAOC,EAAOF,EAAI,CAAC,UACvC,MAAO,CACH,mBAAoB,CAChBG,YAAaR,EAAaM,EAAKjC,MAAQ,OAAS,OAChDoC,WAAYH,EAAK/B,OAAS,OAAS,MACnCmC,cAAeJ,EAAK/B,OAAS,OAAS,MACtC,kCAAmC,CAC/B,UAAW,CACP,6BAA8B,CAC1BoC,QAASL,EAAK5B,kBAAoB,OAAS,WAK9D"}
1
+ {"version":3,"file":"snackbar.js","sources":["../../../src/components/snackbar/snackbar.tsx"],"sourcesContent":[null],"names":["Snackbar","forwardRef","open","setOpen","icon","message","header","handleAction","autoHideDuration","actionButtonTitle","handleClose","closeOnClickaway","anchorOrigin","disableWindowBlurListener","resumeHideDuration","TransitionProps","ref","actionComponent","useMemo","_jsx","onClick","children","messageComponent","SnackbarMessage","mainHandleClose","useCallback","event","reason","SnackbarStyled","onClose","action","checkForIcon","styled","MuiSnackbar","shouldForwardProp","prop","_a","args","__rest","paddingLeft","paddingTop","paddingBottom","display"],"mappings":"mTAyFa,MAAAA,EAAWC,GACtB,EAEIC,OACAC,UACAC,OACAC,UACAC,SACAC,eACAC,mBACAC,oBACAC,cACAC,mBACAC,eACAC,4BACAC,qBACAC,mBAEFC,KAEA,MAAMC,EAAkBC,GAAQ,IACvBT,GAAqBU,EAAQ,SAAA,CAAAC,QAASb,EAAYc,SAAGZ,KAC3D,CAACA,EAAmBF,IACjBe,EAAmBJ,GACvB,IAAMC,EAACI,EAAe,CAACnB,KAAMA,EAAME,OAAQA,EAAQD,QAASA,KAC5D,CAACC,EAAQF,EAAMC,IAGXmB,EAAkBC,GACtB,CAACC,EAAqCC,MAC/BhB,GAA+B,cAAXgB,KAIrBjB,GAAaA,EAAYgB,EAAOC,GACpCxB,GAAQ,GAAM,GAEhB,CAACQ,EAAkBD,EAAaP,IAGlC,OACEgB,EAACS,EACC,CAAAnB,kBAAmBA,EACnBP,KAAMA,EACNM,iBAAkBA,EAClBqB,QAASL,EACTpB,KAAMA,EACNE,OAAQA,EACRD,QAASiB,EACTQ,OAAQb,EACRL,aAAcA,EACdC,0BAA2BA,EAC3BC,mBAAoBA,EACpBC,gBAAiBA,EACjBC,IAAKA,GAEP,IAIOe,EAAgB3B,GACX,UAATA,GAA6B,YAATA,GAA+B,YAATA,EAM7CwB,EAAiBI,EAAOC,EAAa,CACzCC,kBAAoBC,GAAkB,sBAATA,GADRH,EAQpBI,IAAA,IAAYC,EAAIC,EAAAF,EAAhB,WACD,MAAO,CACL,mBAAoB,CAClBG,YAAaR,EAAaM,EAAKjC,MAAQ,OAAS,OAChDoC,WAAYH,EAAK/B,OAAS,OAAS,MACnCmC,cAAeJ,EAAK/B,OAAS,OAAS,MACtC,kCAAmC,CACjC,UAAW,CACT,6BAA8B,CAC5BoC,QAASL,EAAK5B,kBAAoB,OAAS,WAKpD"}
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"tslib";import{jsxs as i,jsx as r}from"react/jsx-runtime";import{Icon as a}from"../icon/icon.js";import"../icon/icon.definitions.js";import{styled as n}from"@mui/material/styles";import{checkForIcon as c}from"./snackbar.js";const s=({header:e,icon:a,message:n})=>i(t,{header:e,icon:a,children:[a&&r(o,{icon:a}),i("div",{className:"styled-message-header-message-container",children:[e&&i("h3",{children:[" ",e]}),i("p",{children:[" ",n," "]})]}),r("div",{className:"custom-snackbar-divider",children:r("div",{})})]}),t=n("div")((i=>{var r=e(i,[]);return{"& .styled-message-header-message-container":{display:r.header?"block":"flex"},"& p":{display:r.header?"block":"inline",paddingBottom:r.header?"0px":"2px"},"& .snackbar-icon-wrapper":{"& span":{lineHeight:r.header?"20px":"unset"}},"& .custom-snackbar-divider":{paddingLeft:c(r.icon)?"24px":"56px","& > div":{borderLeft:`1px solid ${r.theme.palette.onSurface.os600}`,height:r.header?"48px":"32px"}}}})),o=({icon:e})=>{let i=null;switch(e){case"alert":i=r(a,{name:"warning",fontSize:"inherit",iconStyle:"filled"});break;case"success":i=r(a,{name:"circle-check",fontSize:"inherit",iconStyle:"filled"});break;case"warning":i=r(a,{name:"circle-exclamation",fontSize:"inherit",iconStyle:"filled"})}return i?r("span",{className:"snackbar-icon-wrapper",children:i}):i};export{s as SnackbarMessage,t as SnackbarMessageStyled};
1
+ import{__rest as e}from"../../node_modules/tslib/tslib.es6.js";import{jsxs as i,jsx as r}from"react/jsx-runtime";import{Icon as n}from"../icon/icon.js";import"../icon/icon.definitions.js";import{styled as a}from"@mui/material/styles";import{checkForIcon as s}from"./snackbar.js";const c=({header:e,icon:n,message:a})=>i(o,{header:e,icon:n,children:[n&&r(t,{icon:n}),i("div",{className:"styled-message-header-message-container",children:[e&&i("h3",{children:[" ",e]}),i("p",{children:[" ",a," "]})]}),r("div",{className:"custom-snackbar-divider",children:r("div",{})})]}),o=a("div")((i=>{var r=e(i,[]);return{"& .styled-message-header-message-container":{display:r.header?"block":"flex"},"& p":{display:r.header?"block":"inline",paddingBottom:r.header?"0px":"2px"},"& .snackbar-icon-wrapper":{"& span":{lineHeight:r.header?"20px":"unset"}},"& .custom-snackbar-divider":{paddingLeft:s(r.icon)?"24px":"56px","& > div":{borderLeft:`1px solid ${r.theme.palette.onSurface.os600}`,height:r.header?"48px":"32px"}}}})),t=({icon:e})=>{let i=null;switch(e){case"alert":i=r(n,{name:"warning",fontSize:"inherit",iconStyle:"filled"});break;case"success":i=r(n,{name:"circle-check",fontSize:"inherit",iconStyle:"filled"});break;case"warning":i=r(n,{name:"circle-exclamation",fontSize:"inherit",iconStyle:"filled"})}return i?r("span",{className:"snackbar-icon-wrapper",children:i}):i};export{c as SnackbarMessage,o as SnackbarMessageStyled};
2
2
  //# sourceMappingURL=snackbarMessage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"snackbarMessage.js","sources":["../../../src/components/snackbar/snackbarMessage.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Icon } from '../icon';\nimport { styled } from '@mui/material/styles';\nimport { checkForIcon } from './snackbar';\nexport const SnackbarMessage = ({ header, icon, message }) => {\n return (_jsxs(SnackbarMessageStyled, { header: header, icon: icon, children: [icon && _jsx(IconComponent, { icon: icon }), _jsxs(\"div\", { className: \"styled-message-header-message-container\", children: [header && _jsxs(\"h3\", { children: [\" \", header] }), _jsxs(\"p\", { children: [\" \", message, \" \"] })] }), _jsx(\"div\", { className: \"custom-snackbar-divider\", children: _jsx(\"div\", {}) })] }));\n};\n/**\n * @description SnackbarMessageStyled styling defintion based on props\n */\nexport const SnackbarMessageStyled = styled('div')((_a) => {\n var args = __rest(_a, []);\n return {\n '& .styled-message-header-message-container': {\n display: args.header ? 'block' : 'flex',\n },\n '& p': {\n display: args.header ? 'block' : 'inline',\n paddingBottom: args.header ? '0px' : '2px',\n },\n '& .snackbar-icon-wrapper': {\n '& span': {\n lineHeight: args.header ? '20px' : 'unset',\n },\n },\n '& .custom-snackbar-divider': {\n paddingLeft: checkForIcon(args.icon) ? '24px' : '56px',\n '& > div': {\n borderLeft: `1px solid ${args.theme.palette.onSurface.os600}`,\n height: args.header ? '48px' : '32px',\n },\n },\n };\n});\nconst IconComponent = ({ icon }) => {\n let iconToReturn = null;\n switch (icon) {\n case 'alert':\n iconToReturn = _jsx(Icon, { name: \"warning\", fontSize: \"inherit\", iconStyle: \"filled\" });\n break;\n case 'success':\n iconToReturn = _jsx(Icon, { name: \"circle-check\", fontSize: \"inherit\", iconStyle: \"filled\" });\n break;\n case 'warning':\n iconToReturn = _jsx(Icon, { name: \"circle-exclamation\", fontSize: \"inherit\", iconStyle: \"filled\" });\n break;\n }\n return iconToReturn ? _jsx(\"span\", { className: \"snackbar-icon-wrapper\", children: iconToReturn }) : iconToReturn;\n};\n//# sourceMappingURL=snackbarMessage.js.map"],"names":["SnackbarMessage","header","icon","message","_jsxs","SnackbarMessageStyled","children","_jsx","IconComponent","className","styled","_a","args","__rest","display","paddingBottom","lineHeight","paddingLeft","checkForIcon","borderLeft","theme","palette","onSurface","os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,CAAY"}
1
+ {"version":3,"file":"snackbarMessage.js","sources":["../../../src/components/snackbar/snackbarMessage.tsx"],"sourcesContent":[null],"names":["SnackbarMessage","header","icon","message","_jsxs","SnackbarMessageStyled","children","_jsx","IconComponent","className","styled","_a","args","__rest","display","paddingBottom","lineHeight","paddingLeft","checkForIcon","borderLeft","theme","palette","onSurface","os600","height","iconToReturn","Icon","name","fontSize","iconStyle"],"mappings":"uRAwBO,MAAMA,EAA0C,EAAGC,SAAQC,OAAMC,aAEpEC,EAACC,EAAqB,CAACJ,OAAQA,EAAQC,KAAMA,EAC1CI,SAAA,CAAAJ,GAAQK,EAACC,GAAcN,KAAMA,IAC9BE,EAAA,MAAA,CAAKK,UAAU,oDACZR,GAAUG,sBAAMH,KACjBG,EAAA,IAAA,CAAAE,SAAA,CAAA,IAAKH,EAAO,UAEdI,EAAA,MAAA,CAAKE,UAAU,mCACbF,EAAW,MAAA,CAAA,QASNF,EAAwBK,EAAO,MAAPA,EAAkEC,QAAKC,EAAIC,EAAAF,EAAT,IACrG,MAAO,CACL,6CAA8C,CAC5CG,QAASF,EAAKX,OAAS,QAAU,QAEnC,MAAO,CACLa,QAASF,EAAKX,OAAS,QAAU,SACjCc,cAAeH,EAAKX,OAAS,MAAQ,OAEvC,2BAA4B,CAC1B,SAAU,CACRe,WAAYJ,EAAKX,OAAS,OAAS,UAGvC,6BAA8B,CAC5BgB,YAAaC,EAAaN,EAAKV,MAAQ,OAAS,OAChD,UAAW,CACTiB,WAAY,aAAaP,EAAKQ,MAAMC,QAAQC,UAAUC,QACtDC,OAAQZ,EAAKX,OAAS,OAAS,SAGpC,IAGGO,EAAgB,EAAGN,WACvB,IAAIuB,EAAe,KAEnB,OAAQvB,GACN,IAAK,QACHuB,EAAelB,EAACmB,EAAK,CAAAC,KAAK,UAAUC,SAAS,UAAUC,UAAU,WACjE,MACF,IAAK,UACHJ,EAAelB,EAACmB,EAAK,CAAAC,KAAK,eAAeC,SAAS,UAAUC,UAAU,WACtE,MACF,IAAK,UACHJ,EAAelB,EAACmB,EAAK,CAAAC,KAAK,qBAAqBC,SAAS,UAAUC,UAAU,WAIhF,OAAOJ,EAAelB,UAAME,UAAU,wBAAuBH,SAAEmB,IAAuBA,CAAY"}
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"tslib";import{jsx as o}from"react/jsx-runtime";import{StepConnector as r,stepConnectorClasses as t,Step as n,StepLabel as i}from"@mui/material";import a from"@mui/material/Stepper";import{styled as l}from"@mui/material/styles";import{paletteLight as c}from"../../design/skoda/paletteLight.theme.js";const d=r=>{var{activeStep:t,alternativeLabel:l,children:c,classes:d,connector:p,nonLinear:b,orientation:u,step:f}=r,g=e(r,["activeStep","alternativeLabel","children","classes","connector","nonLinear","orientation","step"]);const x={lineHeight:"16px",fontSize:"12px",fontWeight:"400"};return o(h,{children:o("div",{children:o(a,Object.assign({className:"controllerContainer"},g,{activeStep:t,sx:{maxWidth:800,display:"flex",alignItems:"center",spacing:4},alternativeLabel:l,connector:o(m,{}),children:f.map((e=>o(n,{children:o(i,{style:x,StepIconComponent:s,children:e})},e)))}))})})};function s(e){const{active:r,completed:t,className:n}=e;return o(p,{className:n,children:o("div",r?{className:"QontoStepIcon-active"}:t?{className:"QontoStepIcon-completedIcon"}:{className:"QontoStepIcon-circle"})})}const p=l("div")((({theme:e})=>{let o={};return o={color:"dark"===e.palette.mode?e.palette.grey[700]:"#464748",display:"flex",height:22,alignItems:"center","& .QontoStepIcon-completedIcon":{color:c.onSurface.os700,width:12,height:12,borderRadius:"50%",backgroundColor:"currentColor","&:hover":{borderRadius:"50%",border:`1.5px solid ${c.onSurface.os700}`,color:c.brand.secondary}},"& .QontoStepIcon-active":{color:c.onSurface.os700,width:18,height:18,borderRadius:"50%",marginRight:"5.25px",marginLeft:"0px",backgroundColor:"currentColor","&:hover":{borderRadius:"50%",border:`1.5px solid ${c.onSurface.os700}`,color:c.brand.secondary}},"& .QontoStepIcon-circle":{width:12,height:12,borderRadius:"50%",border:"1.5px solid #C4C6C7",color:"transparent","&:hover":{cursor:"pointer",borderRadius:"50%",border:`1.5px solid ${c.disabled.tertiary}`,backgroundColor:c.disabled.secondary}}},o})),m=l(r)((({theme:e})=>({[`&.${t.alternativeLabel}`]:{top:10,left:"calc(-50% + 9px)",right:"calc(50% + 9px)"},[`&.${t.active}`]:{[`& .${t.line}`]:{borderColor:c.onSurface.os700,width:"60px"}},[`&.${t.completed}`]:{[`& .${t.line}`]:{borderColor:c.onSurface.os700}},[`& .${t.line}`]:{borderColor:"dark"===e.palette.mode?e.palette.grey[800]:c.disabled.primary,borderTopWidth:3,borderRadius:1}}))),h=l("div")((()=>{let e={};return e={"& .controllerContainer":{display:"flex",alignItems:"center",fontFamily:"SKODA Next",fontStyle:"normal",fontWeight:"700",fontSize:"12px",lineHeight:"16px"}},e}));export{d as Stepper};
1
+ import{__rest as e}from"../../node_modules/tslib/tslib.es6.js";import{jsx as o}from"react/jsx-runtime";import{StepConnector as r,stepConnectorClasses as t,Step as n,StepLabel as i}from"@mui/material";import a from"@mui/material/Stepper";import{styled as l}from"@mui/material/styles";import{paletteLight as c}from"../../design/skoda/paletteLight.theme.js";const d=r=>{var{activeStep:t,alternativeLabel:l,children:c,classes:d,connector:p,nonLinear:b,orientation:u,step:g}=r,f=e(r,["activeStep","alternativeLabel","children","classes","connector","nonLinear","orientation","step"]);const x={lineHeight:"16px",fontSize:"12px",fontWeight:"400"};return o(h,{children:o("div",{children:o(a,Object.assign({className:"controllerContainer"},f,{activeStep:t,sx:{maxWidth:800,display:"flex",alignItems:"center",spacing:4},alternativeLabel:l,connector:o(m,{}),children:g.map((e=>o(n,{children:o(i,{style:x,StepIconComponent:s,children:e})},e)))}))})})};function s(e){const{active:r,completed:t,className:n}=e;return o(p,{className:n,children:o("div",r?{className:"QontoStepIcon-active"}:t?{className:"QontoStepIcon-completedIcon"}:{className:"QontoStepIcon-circle"})})}const p=l("div")((({theme:e})=>{let o={};return o={color:"dark"===e.palette.mode?e.palette.grey[700]:"#464748",display:"flex",height:22,alignItems:"center","& .QontoStepIcon-completedIcon":{color:c.onSurface.os700,width:12,height:12,borderRadius:"50%",backgroundColor:"currentColor","&:hover":{borderRadius:"50%",border:`1.5px solid ${c.onSurface.os700}`,color:c.brand.secondary}},"& .QontoStepIcon-active":{color:c.onSurface.os700,width:18,height:18,borderRadius:"50%",marginRight:"5.25px",marginLeft:"0px",backgroundColor:"currentColor","&:hover":{borderRadius:"50%",border:`1.5px solid ${c.onSurface.os700}`,color:c.brand.secondary}},"& .QontoStepIcon-circle":{width:12,height:12,borderRadius:"50%",border:"1.5px solid #C4C6C7",color:"transparent","&:hover":{cursor:"pointer",borderRadius:"50%",border:`1.5px solid ${c.disabled.tertiary}`,backgroundColor:c.disabled.secondary}}},o})),m=l(r)((({theme:e})=>({[`&.${t.alternativeLabel}`]:{top:10,left:"calc(-50% + 9px)",right:"calc(50% + 9px)"},[`&.${t.active}`]:{[`& .${t.line}`]:{borderColor:c.onSurface.os700,width:"60px"}},[`&.${t.completed}`]:{[`& .${t.line}`]:{borderColor:c.onSurface.os700}},[`& .${t.line}`]:{borderColor:"dark"===e.palette.mode?e.palette.grey[800]:c.disabled.primary,borderTopWidth:3,borderRadius:1}}))),h=l("div")((()=>({"& .controllerContainer":{display:"flex",alignItems:"center",fontStyle:"normal",fontWeight:"700",fontSize:"12px",lineHeight:"16px"}})));export{d as Stepper};
2
2
  //# sourceMappingURL=stepper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stepper.js","sources":["../../../src/components/stepper/stepper.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Step, StepConnector, StepLabel, stepConnectorClasses } from '@mui/material';\nimport MuiStepper from '@mui/material/Stepper';\nimport { styled } from '@mui/material/styles';\nimport { paletteLight as flowColors } from '../../design/skoda/paletteLight.theme';\nexport const Stepper = (_a) => {\n var { activeStep, alternativeLabel, children, classes, connector, nonLinear, orientation, step } = _a, props = __rest(_a, [\"activeStep\", \"alternativeLabel\", \"children\", \"classes\", \"connector\", \"nonLinear\", \"orientation\", \"step\"]);\n const styles = {\n lineHeight: '16px',\n fontSize: '12px',\n fontWeight: '400',\n };\n const desktopStepper = () => (_jsx(\"div\", { children: _jsx(MuiStepper, Object.assign({ className: \"controllerContainer\" }, props, { activeStep: activeStep, sx: {\n maxWidth: 800,\n display: 'flex',\n alignItems: 'center',\n spacing: 4,\n }, alternativeLabel: alternativeLabel, connector: _jsx(QontoConnector, {}), children: step.map((label) => (_jsx(Step, { children: _jsx(StepLabel, { style: styles, StepIconComponent: QontoStepIcon, children: label }) }, label))) })) }));\n return _jsx(StepperStyled, { children: desktopStepper() });\n};\nfunction QontoStepIcon(props) {\n const { active, completed, className } = props;\n return (_jsx(QontoStepIconRoot, { className: className, children: active ? (_jsx(\"div\", { className: \"QontoStepIcon-active\" })) : completed ? (_jsx(\"div\", { className: \"QontoStepIcon-completedIcon\" })) : (_jsx(\"div\", { className: \"QontoStepIcon-circle\" })) }));\n}\nconst QontoStepIconRoot = styled('div')(({ theme }) => {\n let style = {};\n style = {\n color: theme.palette.mode === 'dark' ? theme.palette.grey[700] : '#464748',\n display: 'flex',\n height: 22,\n alignItems: 'center',\n '& .QontoStepIcon-completedIcon': {\n color: flowColors.onSurface.os700,\n width: 12,\n height: 12,\n borderRadius: '50%',\n backgroundColor: 'currentColor',\n '&:hover': {\n borderRadius: '50%',\n border: `1.5px solid ${flowColors.onSurface.os700}`,\n color: flowColors.brand.secondary,\n },\n },\n '& .QontoStepIcon-active': {\n color: flowColors.onSurface.os700,\n width: 18,\n height: 18,\n borderRadius: '50%',\n marginRight: '5.25px',\n marginLeft: '0px',\n backgroundColor: 'currentColor',\n '&:hover': {\n borderRadius: '50%',\n border: `1.5px solid ${flowColors.onSurface.os700}`,\n color: flowColors.brand.secondary,\n },\n },\n '& .QontoStepIcon-circle': {\n width: 12,\n height: 12,\n borderRadius: '50%',\n border: '1.5px solid #C4C6C7',\n color: 'transparent',\n '&:hover': {\n cursor: 'pointer',\n borderRadius: '50%',\n border: `1.5px solid ${flowColors.disabled.tertiary}`,\n backgroundColor: flowColors.disabled.secondary,\n },\n },\n };\n return style;\n});\nconst QontoConnector = styled(StepConnector)(({ theme }) => ({\n [`&.${stepConnectorClasses.alternativeLabel}`]: {\n top: 10,\n left: 'calc(-50% + 9px)',\n right: 'calc(50% + 9px)',\n },\n [`&.${stepConnectorClasses.active}`]: {\n [`& .${stepConnectorClasses.line}`]: {\n borderColor: flowColors.onSurface.os700,\n width: '60px',\n },\n },\n [`&.${stepConnectorClasses.completed}`]: {\n [`& .${stepConnectorClasses.line}`]: {\n borderColor: flowColors.onSurface.os700,\n },\n },\n [`& .${stepConnectorClasses.line}`]: {\n borderColor: theme.palette.mode === 'dark' ? theme.palette.grey[800] : flowColors.disabled.primary,\n borderTopWidth: 3,\n borderRadius: 1,\n },\n}));\nconst StepperStyled = styled('div')(() => {\n let style = {};\n const SKODA_NEXT = 'SKODA Next';\n style = {\n '& .controllerContainer': {\n display: 'flex',\n alignItems: 'center',\n fontFamily: SKODA_NEXT,\n fontStyle: 'normal',\n fontWeight: '700',\n fontSize: '12px',\n lineHeight: '16px',\n },\n };\n return style;\n});\n//# sourceMappingURL=stepper.js.map"],"names":["Stepper","_a","activeStep","alternativeLabel","children","classes","connector","nonLinear","orientation","step","props","__rest","styles","lineHeight","fontSize","fontWeight","_jsx","StepperStyled","MuiStepper","Object","assign","className","sx","maxWidth","display","alignItems","spacing","QontoConnector","map","label","Step","StepLabel","style","StepIconComponent","QontoStepIcon","active","completed","QontoStepIconRoot","styled","theme","color","palette","mode","grey","height","flowColors","onSurface","os700","width","borderRadius","backgroundColor","border","brand","secondary","marginRight","marginLeft","cursor","disabled","tertiary","StepConnector","stepConnectorClasses","top","left","right","line","borderColor","primary","borderTopWidth","fontFamily","fontStyle"],"mappings":"mUAMY,MAACA,EAAWC,IACpB,IAAIC,WAAEA,EAAUC,iBAAEA,EAAgBC,SAAEA,EAAQC,QA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,YAGhC,0BAA2B,CACvBb,MAAOK,EAAWC,UAAUC,MAC5BC,MAAO,GACPJ,OAAQ,GACRK,aAAc,MACdK,YAAa,SACbC,WAAY,MACZL,gBAAiB,eACjB,UAAW,CACPD,aAAc,MACdE,OAAQ,eAAeN,EAAWC,UAAUC,QAC5CP,MAAOK,EAAWO,MAAMC,YAGhC,0BAA2B,CACvBL,MAAO,GACPJ,OAAQ,GACRK,aAAc,MACdE,OAAQ,sBACRX,MAAO,cACP,UAAW,CACPgB,OAAQ,UACRP,aAAc,MACdE,OAAQ,eAAeN,EAAWY,SAASC,WAC3CR,gBAAiBL,EAAWY,SAASJ,aAI1CrB,CAAK,IAEVL,EAAiBW,EAAOqB,EAAPrB,EAAsB,EAAGC,YAAa,CACzD,CAAC,KAAKqB,EAAqBzD,oBAAqB,CAC5C0D,IAAK,GACLC,KAAM,mBACNC,MAAO,mBAEX,CAAC,KAAKH,EAAqBzB,UAAW,CAClC,CAAC,MAAMyB,EAAqBI,QAAS,CACjCC,YAAapB,EAAWC,UAAUC,MAClCC,MAAO,SAGf,CAAC,KAAKY,EAAqBxB,aAAc,CACrC,CAAC,MAAMwB,EAAqBI,QAAS,CACjCC,YAAapB,EAAWC,UAAUC,QAG1C,CAAC,MAAMa,EAAqBI,QAAS,CACjCC,YAAoC,SAAvB1B,EAAME,QAAQC,KAAkBH,EAAME,QAAQE,KAAK,KAAOE,EAAWY,SAASS,QAC3FC,eAAgB,EAChBlB,aAAc,OAGhBhC,EAAgBqB,EAAO,MAAPA,EAAc,KAChC,IAAIN,EAAQ,CAAA,EAaZ,OAXAA,EAAQ,CACJ,yBAA0B,CACtBR,QAAS,OACTC,WAAY,SACZ2C,WALW,aAMXC,UAAW,SACXtD,WAAY,MACZD,SAAU,OACVD,WAAY,SAGbmB,CAAK"}
1
+ {"version":3,"file":"stepper.js","sources":["../../../src/components/stepper/stepper.tsx"],"sourcesContent":[null],"names":["Stepper","_a","activeStep","alternativeLabel","children","classes","connector","nonLinear","orientation","step","props","__rest","styles","lineHeight","fontSize","fontWeight","_jsx","StepperStyled","MuiStepper","Object","assign","className","sx","maxWidth","display","alignItems","spacing","QontoConnector","map","label","Step","StepLabel","style","StepIconComponent","QontoStepIcon","active","completed","QontoStepIconRoot","styled","theme","color","palette","mode","grey","height","flowColors","onSurface","os700","width","borderRadius","backgroundColor","border","brand","secondary","marginRight","marginLeft","cursor","disabled","tertiary","StepConnector","stepConnectorClasses","top","left","right","line","borderColor","primary","borderTopWidth","fontStyle"],"mappings":"mWA8Ca,MAAAA,EAA6BC,QAAAC,WACxCA,EAAUC,iBACVA,EAAgBC,SAChBA,EAAQC,QACRA,EAAOC,UACPA,EAASC,UACTA,EAASC,YACTA,EAAWC,KACXA,GAAIR,EACDS,EAAKC,EAAAV,EATgC,qGAWxC,MAAMW,EAAS,CACbC,WAAY,OACZC,SAAU,OACVC,WAAY,OA4Bd,OAAOC,EAACC,EAAa,CAAAb,SAzBnBY,EAAA,MAAA,CAAAZ,SACEY,EAACE,EAAUC,OAAAC,OAAA,CACTC,UAAU,uBACNX,EAAK,CACTR,WAAYA,EACZoB,GAAI,CACFC,SAAU,IACVC,QAAS,OACTC,WAAY,SACZC,QAAS,GAEXvB,iBAAkBA,EAClBG,UAAWU,EAACW,EAAiB,CAAA,GAAAvB,SAE5BK,EAAKmB,KAAKC,GACTb,EAACc,YACCd,EAACe,GAAUC,MAAOpB,EAAQqB,kBAAmBC,EAAa9B,SACvDyB,KAFMA,WAUqC,EAG1D,SAASK,EAAcxB,GACrB,MAAMyB,OAAEA,EAAMC,UAAEA,EAASf,UAAEA,GAAcX,EACzC,OACEM,EAACqB,EAAiB,CAAChB,UAAWA,WAE1BL,QADDmB,GACMd,UAAU,wBACbe,EACF,CAAKf,UAAU,gCAEVA,UAAU,0BAIvB,CAEA,MAAMgB,EAAoBC,EAAO,MAAPA,EAA+B,EAAGC,YAC1D,IAAIP,EAAQ,CAAA,EA8CZ,OA7CAA,EAAQ,CACNQ,MAA8B,SAAvB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CACL,yBAA0B,CACxBd,QAAS,OACTC,WAAY,SACZ2C,UAAW,SACXrD,WAAY,MACZD,SAAU,OACVD,WAAY"}
@@ -1,2 +1,3 @@
1
1
  export { Tab, Tabs } from '@mui/material';
2
+ export type { TabProps, TabsProps } from '@mui/material';
2
3
  export * from './tabPanel';
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"tslib";import{jsx as r}from"react/jsx-runtime";import{Box as i}from"@mui/material";function t(t){var{children:a,value:n,index:l}=t,m=e(t,["children","value","index"]);return r(i,Object.assign({role:"tabpanel","data-testid":`TabPanel-${l}`},m,{children:n===l&&a}))}export{t as TabPanel};
1
+ import{__rest as e}from"../../node_modules/tslib/tslib.es6.js";import{jsx as r}from"react/jsx-runtime";import{Box as i}from"@mui/material";function t(t){var{children:a,value:n,index:l}=t,o=e(t,["children","value","index"]);return r(i,Object.assign({role:"tabpanel","data-testid":`TabPanel-${l}`},o,{children:n===l&&a}))}export{t as TabPanel};
2
2
  //# sourceMappingURL=tabPanel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabPanel.js","sources":["../../../src/components/tabs/tabPanel.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Box } from '@mui/material';\n/**\n * Show or hide content based on the provided value and index\n */\nexport function TabPanel(_a) {\n var { children, value, index } = _a, rest = __rest(_a, [\"children\", \"value\", \"index\"]);\n return (_jsx(Box, Object.assign({ role: \"tabpanel\", \"data-testid\": `TabPanel-${index}` }, rest, { children: value === index && children })));\n}\n//# sourceMappingURL=tabPanel.js.map"],"names":["TabPanel","_a","children","value","index","rest","__rest","_jsx","Box","Object","assign","role"],"mappings":"2GAMO,SAASA,EAASC,GACrB,IAAIC,SAAEA,EAAQC,MAAEA,EAAKC,MAAEA,GAAUH,EAAII,EAAOC,EAAOL,EAAI,CAAC,WAAY,QAAS,UAC7E,OAAQM,EAAKC,EAAKC,OAAOC,OAAO,CAAEC,KAAM,WAAY,cAAe,YAAYP,KAAWC,EAAM,CAAEH,SAAUC,IAAUC,GAASF,IACnI"}
1
+ {"version":3,"file":"tabPanel.js","sources":["../../../src/components/tabs/tabPanel.tsx"],"sourcesContent":[null],"names":["TabPanel","_a","children","value","index","rest","__rest","_jsx","Box","Object","assign","role"],"mappings":"2IAsBM,SAAUA,EAASC,OAAAC,SAAEA,EAAQC,MAAEA,EAAKC,MAAEA,KAAUC,EAA7BC,EAAAL,EAAA,CAAA,WAAA,QAAA,UACvB,OACEM,EAACC,EAAGC,OAAAC,OAAA,CAACC,KAAK,yBAAwB,YAAYP,KAAaC,YACxDF,IAAUC,GAASF,IAG1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTextAreaEffect.js","sources":["../../../../src/components/textArea/hook/useTextAreaEffect.tsx"],"sourcesContent":["import { useEffect } from 'react';\nexport const useTextAreaEffect = (currentValue, value, maxChars, required, setIsShrunk, setCurrentValue, setIsRequired) => {\n //If the input text is filled make the label shrink\n useEffect(() => {\n if ((currentValue && currentValue.length > 0) || (value && value.length > 0)) {\n setIsShrunk(true);\n }\n }, [currentValue, value, setIsShrunk]);\n //If value passed from outside exists, set the label shrinked and set the current value to show\n useEffect(() => {\n if (value && value.length > 0 && value.length <= maxChars) {\n setCurrentValue(value);\n setIsShrunk(true);\n }\n }, [value, maxChars, setCurrentValue, setIsShrunk]);\n useEffect(() => {\n setIsRequired(required);\n }, [required, setIsRequired]);\n};\n//# sourceMappingURL=useTextAreaEffect.js.map"],"names":["useTextAreaEffect","currentValue","value","maxChars","required","setIsShrunk","setCurrentValue","setIsRequired","useEffect","length"],"mappings":"kCACY,MAACA,EAAoB,CAACC,EAAcC,EAAOC,EAAUC,EAAUC,EAAaC,EAAiBC,KAErGC,GAAU,MACDP,GAAgBA,EAAaQ,OAAS,GAAOP,GAASA,EAAMO,OAAS,IACtEJ,GAAY,EACf,GACF,CAACJ,EAAcC,EAAOG,IAEzBG,GAAU,KACFN,GAASA,EAAMO,OAAS,GAAKP,EAAMO,QAAUN,IAC7CG,EAAgBJ,GAChBG,GAAY,GACf,GACF,CAACH,EAAOC,EAAUG,EAAiBD,IACtCG,GAAU,KACND,EAAcH,EAAS,GACxB,CAACA,EAAUG,GAAe"}
1
+ {"version":3,"file":"useTextAreaEffect.js","sources":["../../../../src/components/textArea/hook/useTextAreaEffect.tsx"],"sourcesContent":[null],"names":["useTextAreaEffect","currentValue","value","maxChars","required","setIsShrunk","setCurrentValue","setIsRequired","useEffect","length"],"mappings":"kCAEa,MAAAA,EAAoB,CAC/BC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,KAGAC,GAAU,MACHP,GAAgBA,EAAaQ,OAAS,GAAOP,GAASA,EAAMO,OAAS,IACxEJ,GAAY,EACb,GACA,CAACJ,EAAcC,EAAOG,IAGzBG,GAAU,KACJN,GAASA,EAAMO,OAAS,GAAKP,EAAMO,QAAUN,IAC/CG,EAAgBJ,GAChBG,GAAY,GACb,GACA,CAACH,EAAOC,EAAUG,EAAiBD,IAEtCG,GAAU,KACRD,EAAcH,EAAS,GACtB,CAACA,EAAUG,GAAe"}
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"tslib";import{jsx as r}from"react/jsx-runtime";import{TextField as a}from"@mui/material";import{forwardRef as o,useState as l,useCallback as n}from"react";import t from"../common/helperText.js";import{useTextAreaEffect as m}from"./hook/useTextAreaEffect.js";const s=o(((o,s)=>{var{name:u,id:i,label:h=null,onChange:c,onBlur:p,onFocus:x,value:d}=o,f=e(o,["name","id","label","onChange","onBlur","onFocus","value"]);const[b,C]=l(""),[g,v]=l(!1),[T,j]=l(!1),[,B]=l(!1),F=n((e=>{((e,r,a,o)=>{const l=e.target.value;(!r||r<0||r&&l.length<=r)&&(a(l),o&&o(e))})(e,f.maxChars,C,c)}),[f.maxChars,c]),k=n((e=>{((e,r,a,o)=>{r(!!e),a(!1),o&&o()})(b,v,j,(()=>p?p(e):()=>{}))}),[b,p]),E=n((e=>{((e,r,a)=>{r(!0),e(!0),a&&a()})(v,j,(()=>x?x(e):()=>{}))}),[x]);return m(b,d,f.maxChars,f.required,v,C,B),r(a,Object.assign({},f,{onChange:F,value:b,onFocus:E,multiline:!0,InputLabelProps:{shrink:g},onBlur:k,focused:T,label:h||null,hiddenLabel:!h,name:u,ref:s,id:i,error:f.hasError,disabled:f.disabled,helperText:r(t,{maxChars:f.maxChars,currentValue:b,helpText:f.helpText})}))}));export{s as TextArea};
1
+ import{__rest as e}from"../../node_modules/tslib/tslib.es6.js";import{jsx as r}from"react/jsx-runtime";import{TextField as o}from"@mui/material";import{forwardRef as a,useState as l,useCallback as n}from"react";import t from"../common/helperText.js";import{useTextAreaEffect as s}from"./hook/useTextAreaEffect.js";const m=a(((a,m)=>{var{name:u,id:i,label:h=null,onChange:c,onBlur:d,onFocus:p,value:x}=a,b=e(a,["name","id","label","onChange","onBlur","onFocus","value"]);const[f,C]=l(""),[g,j]=l(!1),[v,T]=l(!1),[,B]=l(!1),F=n((e=>{((e,r,o,a)=>{const l=e.target.value;(!r||r<0||r&&l.length<=r)&&(o(l),a&&a(e))})(e,b.maxChars,C,c)}),[b.maxChars,c]),k=n((e=>{((e,r,o,a)=>{r(!!e),o(!1),a&&a()})(f,j,T,(()=>d?d(e):()=>{}))}),[f,d]),E=n((e=>{((e,r,o)=>{r(!0),e(!0),o&&o()})(j,T,(()=>p?p(e):()=>{}))}),[p]);return s(f,x,b.maxChars,b.required,j,C,B),r(o,Object.assign({},b,{onChange:F,value:f,onFocus:E,multiline:!0,InputLabelProps:{shrink:g},onBlur:k,focused:v,label:h||null,hiddenLabel:!h,name:u,ref:m,id:i,error:b.hasError,disabled:b.disabled,helperText:r(t,{maxChars:b.maxChars,currentValue:f,helpText:b.helpText})}))}));export{m as TextArea};
2
2
  //# sourceMappingURL=textArea.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textArea.js","sources":["../../../src/components/textArea/textArea.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { TextField } from '@mui/material';\nimport { forwardRef, useCallback, useState } from 'react';\nimport HelperText from '../common/helperText';\nimport { useTextAreaEffect } from './hook/useTextAreaEffect';\n/**\n * @description SkodaFlow TextArea component.\n * Properties are inherited from HTML Div element.\n * @param props TextInputProps\n * @returns React Functional Component\n */\n//-Set the currentValue state useful for:\n//1. Count the number of the characters in the helpertext\n//2. make the label shrinked while the text input is filled\n//- trigger onChange callblack from outside\nconst onChangeHandler = (e, maxChars, setCurrentValue, onChange) => {\n const inputValue = e.target.value;\n if (!maxChars || maxChars < 0 || (maxChars && inputValue.length <= maxChars)) {\n setCurrentValue(inputValue);\n onChange && onChange(e);\n }\n};\n//Set the label shrinked if there's value in the input\n//Then call the onBlur callback from the outside\nconst onBlurHandler = (currentValue, setIsShrunk, setIsFocused, onBlur) => {\n setIsShrunk(currentValue ? true : false);\n setIsFocused(false);\n onBlur && onBlur();\n};\n//Set the label shrinked\n//Then call the onFocus callback from outside\nconst onFocusHandler = (setIsShrunk, setIsFocused, onFocus) => {\n setIsFocused(true);\n setIsShrunk(true);\n onFocus && onFocus();\n};\n/**\n * @deprecated This component is deprecated. Use themed TextField component from @mui/material with multiline prop set to true.\n */\nexport const TextArea = forwardRef((_a, ref) => {\n var { name, id, label = null, onChange, onBlur, onFocus, value } = _a, props = __rest(_a, [\"name\", \"id\", \"label\", \"onChange\", \"onBlur\", \"onFocus\", \"value\"]);\n const [currentValue, setCurrentValue] = useState('');\n const [isShrunk, setIsShrunk] = useState(false);\n const [isFocused, setIsFocused] = useState(false);\n const [, setIsRequired] = useState(false);\n const handleOnChangeWithUseCallback = useCallback((e) => {\n onChangeHandler(e, props.maxChars, setCurrentValue, onChange);\n }, [props.maxChars, onChange]);\n const handleOnBlurWithUseCallback = useCallback((event) => {\n onBlurHandler(currentValue, setIsShrunk, setIsFocused, () => (onBlur ? onBlur(event) : () => { }));\n }, [currentValue, onBlur]);\n const handleOnFocusWithUseCallback = useCallback((event) => {\n onFocusHandler(setIsShrunk, setIsFocused, () => (onFocus ? onFocus(event) : () => { }));\n }, [onFocus]);\n useTextAreaEffect(currentValue, value, props.maxChars, props.required, setIsShrunk, setCurrentValue, setIsRequired);\n return (_jsx(TextField, Object.assign({}, props, { onChange: handleOnChangeWithUseCallback, value: currentValue, onFocus: handleOnFocusWithUseCallback, multiline: true, InputLabelProps: {\n shrink: isShrunk,\n }, onBlur: handleOnBlurWithUseCallback, focused: isFocused, label: label ? label : null, hiddenLabel: !label, name: name, ref: ref, id: id, error: props.hasError, disabled: props.disabled, helperText: _jsx(HelperText, { maxChars: props.maxChars, currentValue: currentValue, helpText: props.helpText }) })));\n});\n//# sourceMappingURL=textArea.js.map"],"names":["TextArea","forwardRef","_a","ref","name","id","label","onChange","onBlur","onFocus","value","props","__rest","currentValue","setCurrentValue","useState","isShrunk","setIsShrunk","isFocused","setIsFocused","setIsRequired","handleOnChangeWithUseCallback","useCallback","e","maxChars","inputValue","target","length","onChangeHandler","handleOnBlurWithUseCallback","event","onBlurHandler","handleOnFocusWithUseCallback","onFocusHandler","useTextAreaEffect","required","_jsx","TextField","Object","assign","multiline","InputLabelProps","shrink","focused","hiddenLabel","error","hasError","disabled","helperText","HelperText","helpText"],"mappings":"0RAgBA,MAwBaA,EAAWC,GAAW,CAACC,EAAIC,KACpC,IAAIC,KAAEA,EAAIC,GAAEA,EAAEC,MAAEA,EAAQ,KAAIC,SAAEA,EAAQC,OAAEA,EAAMC,QAAEA,EAAOC,MAAEA,GAAUR,EAAIS,EAAQC,EAAOV,EAAI,CAAC,OAAQ,KAAM,QAAS,WAAY,SAAU,UAAW,UACnJ,MAAOW,EAAcC,GAAmBC,EAAS,KAC1CC,EAAUC,GAAeF,GAAS,IAClCG,EAAWC,GAAgBJ,GAAS,KAClCK,GAAiBL,GAAS,GAC7BM,EAAgCC,GAAaC,IA9B/B,EAACA,EAAGC,EAAUV,EAAiBP,KACnD,MAAMkB,EAAaF,EAAEG,OAAOhB,QACvBc,GAAYA,EAAW,GAAMA,GAAYC,EAAWE,QAAUH,KAC/DV,EAAgBW,GAChBlB,GAAYA,EAASgB,GACxB,EA0BGK,CAAgBL,EAAGZ,EAAMa,SAAUV,EAAiBP,EAAS,GAC9D,CAACI,EAAMa,SAAUjB,IACdsB,EAA8BP,GAAaQ,IAxB/B,EAACjB,EAAcI,EAAaE,EAAcX,KAC5DS,IAAYJ,GACZM,GAAa,GACbX,GAAUA,GAAQ,EAsBduB,CAAclB,EAAcI,EAAaE,GAAc,IAAOX,EAASA,EAAOsB,GAAS,QAAW,GACnG,CAACjB,EAAcL,IACZwB,EAA+BV,GAAaQ,IApB/B,EAACb,EAAaE,EAAcV,KAC/CU,GAAa,GACbF,GAAY,GACZR,GAAWA,GAAS,EAkBhBwB,CAAehB,EAAaE,GAAc,IAAOV,EAAUA,EAAQqB,GAAS,QAAW,GACxF,CAACrB,IAEJ,OADAyB,EAAkBrB,EAAcH,EAAOC,EAAMa,SAAUb,EAAMwB,SAAUlB,EAAaH,EAAiBM,GAC7FgB,EAAKC,EAAWC,OAAOC,OAAO,CAAA,EAAI5B,EAAO,CAAEJ,SAAUc,EAA+BX,MAAOG,EAAcJ,QAASuB,EAA8BQ,WAAW,EAAMC,gBAAiB,CAClLC,OAAQ1B,GACTR,OAAQqB,EAA6Bc,QAASzB,EAAWZ,MAAOA,GAAgB,KAAMsC,aAActC,EAAOF,KAAMA,EAAMD,IAAKA,EAAKE,GAAIA,EAAIwC,MAAOlC,EAAMmC,SAAUC,SAAUpC,EAAMoC,SAAUC,WAAYZ,EAAKa,EAAY,CAAEzB,SAAUb,EAAMa,SAAUX,aAAcA,EAAcqC,SAAUvC,EAAMuC,aAAiB"}
1
+ {"version":3,"file":"textArea.js","sources":["../../../src/components/textArea/textArea.tsx"],"sourcesContent":[null],"names":["TextArea","forwardRef","_a","ref","name","id","label","onChange","onBlur","onFocus","value","props","__rest","currentValue","setCurrentValue","useState","isShrunk","setIsShrunk","isFocused","setIsFocused","setIsRequired","handleOnChangeWithUseCallback","useCallback","e","maxChars","inputValue","target","length","onChangeHandler","handleOnBlurWithUseCallback","event","onBlurHandler","handleOnFocusWithUseCallback","onFocusHandler","useTextAreaEffect","required","_jsx","TextField","Object","assign","multiline","InputLabelProps","shrink","focused","hiddenLabel","error","hasError","disabled","helperText","HelperText","helpText"],"mappings":"0TAiBA,MA0CaA,EAAWC,GACtB,CAACC,EAAwEC,SAAxEC,KAAEA,EAAIC,GAAEA,EAAEC,MAAEA,EAAQ,KAAIC,SAAEA,EAAQC,OAAEA,EAAMC,QAAEA,EAAOC,MAAEA,GAAKR,EAAKS,EAAKC,EAAAV,EAApE,6DACC,MAAOW,EAAcC,GAAmBC,EAAS,KAC1CC,EAAUC,GAAeF,GAAS,IAClCG,EAAWC,GAAgBJ,GAAS,KAClCK,GAAiBL,GAAS,GAE7BM,EAAgCC,GACnCC,IAlDiB,EACtBA,EACAC,EACAV,EACAP,KAEA,MAAMkB,EAAaF,EAAEG,OAAOhB,QAEvBc,GAAYA,EAAW,GAAMA,GAAYC,EAAWE,QAAUH,KACjEV,EAAgBW,GAChBlB,GAAYA,EAASgB,GACtB,EAwCKK,CAAgBL,EAAGZ,EAAMa,SAAUV,EAAiBP,EAAS,GAE/D,CAACI,EAAMa,SAAUjB,IAGbsB,EAA8BP,GACjCQ,IAzCe,EACpBjB,EACAI,EACAE,EACAX,KAEAS,IAAYJ,GACZM,GAAa,GACbX,GAAUA,GAAQ,EAkCZuB,CAAclB,EAAcI,EAAaE,GAAc,IAAOX,EAASA,EAAOsB,GAAS,QAAU,GAEnG,CAACjB,EAAcL,IAGXwB,EAA+BV,GAClCQ,IAnCgB,EACrBb,EACAE,EACAV,KAEAU,GAAa,GACbF,GAAY,GACZR,GAAWA,GAAS,EA6BdwB,CAAehB,EAAaE,GAAc,IAAOV,EAAUA,EAAQqB,GAAS,QAAU,GAExF,CAACrB,IAKH,OAFAyB,EAAkBrB,EAAcH,EAAOC,EAAMa,SAAUb,EAAMwB,SAAUlB,EAAaH,EAAiBM,GAGnGgB,EAACC,EAASC,OAAAC,OAAA,CAAA,EACJ5B,EACJ,CAAAJ,SAAUc,EACVX,MAAOG,EACPJ,QAASuB,EACTQ,WACA,EAAAC,gBAAiB,CACfC,OAAQ1B,GAEVR,OAAQqB,EACRc,QAASzB,EACTZ,MAAOA,GAAgB,KACvBsC,aAActC,EACdF,KAAMA,EACND,IAAKA,EACLE,GAAIA,EACJwC,MAAOlC,EAAMmC,SACbC,SAAUpC,EAAMoC,SAChBC,WAAYZ,EAACa,EAAW,CAAAzB,SAAUb,EAAMa,SAAUX,aAAcA,EAAcqC,SAAUvC,EAAMuC,aAEhG"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTextInput.js","sources":["../../../../src/components/textInput/hook/useTextInput.ts"],"sourcesContent":["import { useCallback, useMemo } from 'react';\nexport const useTextInput = (label, isRequired, placeholder, type) => {\n //Set the label shrinked if there's value in the input, then call the onBlur callback from the outside\n const handleOnBlur = useCallback((event, setIsShrunk, setIsFocused, onBlur, currentValue) => {\n setIsShrunk(!!currentValue);\n setIsFocused(false);\n onBlur && onBlur(event);\n }, []);\n //Set the label shrinked, then call the onFocus callback from outside\n const handleOnFocus = useCallback((event, setIsFocused, setIsShrunk, onFocus) => {\n setIsFocused(true);\n setIsShrunk(true);\n onFocus && onFocus(event);\n }, []);\n const handlePlaceholder = useMemo(() => {\n if (!label) {\n return isRequired ? `${placeholder}*` : placeholder;\n }\n else\n return null;\n }, [isRequired, label, placeholder]);\n //-Set the current value and make the labek shrink\n const handleOnChange = useCallback((e, maxChars, onChange, setCurrentValue) => {\n const inputValue = e.target.value;\n if (type === 'number' || !maxChars || maxChars < 0 || (maxChars && inputValue.length <= maxChars)) {\n setCurrentValue(inputValue);\n onChange && onChange(e);\n }\n }, [type]);\n return {\n handleOnBlur,\n handleOnFocus,\n handleOnChange,\n handlePlaceholder,\n };\n};\n//# sourceMappingURL=useTextInput.js.map"],"names":["useTextInput","label","isRequired","placeholder","type","handleOnBlur","useCallback","event","setIsShrunk","setIsFocused","onBlur","currentValue","handleOnFocus","onFocus","handlePlaceholder","useMemo","handleOnChange","e","maxChars","onChange","setCurrentValue","inputValue","target","value","length"],"mappings":"iDACY,MAACA,EAAe,CAACC,EAAOC,EAAYC,EAAaC,KAEzD,MAAMC,EAAeC,GAAY,CAACC,EAAOC,EAAaC,EAAcC,EAAQC,KACxEH,IAAcG,GACdF,GAAa,GACbC,GAAUA,EAAOH,EAAM,GACxB,IAEGK,EAAgBN,GAAY,CAACC,EAAOE,EAAcD,EAAaK,KACjEJ,GAAa,GACbD,GAAY,GACZK,GAAWA,EAAQN,EAAM,GAC1B,IACGO,EAAoBC,GAAQ,IACzBd,EAIM,KAHAC,EAAa,GAAGC,KAAiBA,GAI7C,CAACD,EAAYD,EAAOE,IASvB,MAAO,CACHE,eACAO,gBACAI,eAVmBV,GAAY,CAACW,EAAGC,EAAUC,EAAUC,KACvD,MAAMC,EAAaJ,EAAEK,OAAOC,OACf,WAATnB,IAAsBc,GAAYA,EAAW,GAAMA,GAAYG,EAAWG,QAAUN,KACpFE,EAAgBC,GAChBF,GAAYA,EAASF,GACxB,GACF,CAACb,IAKAU,oBACH"}
1
+ {"version":3,"file":"useTextInput.js","sources":["../../../../src/components/textInput/hook/useTextInput.ts"],"sourcesContent":[null],"names":["useTextInput","label","isRequired","placeholder","type","handleOnBlur","useCallback","event","setIsShrunk","setIsFocused","onBlur","currentValue","handleOnFocus","onFocus","handlePlaceholder","useMemo","handleOnChange","e","maxChars","onChange","setCurrentValue","inputValue","target","value","length"],"mappings":"iDAEO,MAAMA,EAAe,CAACC,EAAOC,EAAYC,EAAaC,KAE3D,MAAMC,EAAeC,GACnB,CACEC,EACAC,EACAC,EACAC,EACAC,KAEAH,IAAcG,GACdF,GAAa,GACbC,GAAUA,EAAOH,EAAM,GAEzB,IAIIK,EAAgBN,GACpB,CAACC,EAAiEE,EAAcD,EAAaK,KAC3FJ,GAAa,GACbD,GAAY,GACZK,GAAWA,EAAQN,EAAM,GAE3B,IAGIO,EAAoBC,GAAQ,IAC3Bd,EAES,KADLC,EAAa,GAAGC,KAAiBA,GAEzC,CAACD,EAAYD,EAAOE,IAcvB,MAAO,CACLE,eACAO,gBACAI,eAdqBV,GACrB,CAACW,EAA8DC,EAAUC,EAAUC,KACjF,MAAMC,EAAaJ,EAAEK,OAAOC,OACf,WAATnB,IAAsBc,GAAYA,EAAW,GAAMA,GAAYG,EAAWG,QAAUN,KACtFE,EAAgBC,GAChBF,GAAYA,EAASF,GACtB,GAEH,CAACb,IAODU,oBACD"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTextInputEffect.js","sources":["../../../../src/components/textInput/hook/useTextInputEffect.ts"],"sourcesContent":["import { useEffect } from 'react';\nexport const useTextInputEffect = (inputRef, setInputWidth, fullWidth, width, currentValue, value, maxChars, required, setIsShrunk, setCurrentValue, setIsRequired) => {\n //If the input text is filled make the label shrink\n useEffect(() => {\n if ((currentValue && currentValue.length > 0) || (value && value.length > 0)) {\n setIsShrunk(true);\n }\n }, [currentValue, setIsShrunk, value]);\n //If value passed from outside exists, set the label shrinked and set the current value to show\n useEffect(() => {\n if (value && value.length > 0 && value.length <= maxChars) {\n setCurrentValue(value);\n setIsShrunk(true);\n }\n }, [value, maxChars, setCurrentValue, setIsShrunk]);\n useEffect(() => {\n setIsRequired(required);\n }, [required, setIsRequired]);\n useEffect(() => {\n if (!inputRef || !inputRef.current)\n return;\n setInputWidth(inputRef.current.offsetWidth + 'px');\n }, [inputRef, fullWidth, width, setInputWidth]);\n useEffect(() => {\n if (!inputRef || !inputRef.current)\n return;\n const setWidth = () => { var _a; return setInputWidth(((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.offsetWidth) + 'px'); };\n window.addEventListener('load', function () {\n setWidth();\n });\n return () => {\n window.removeEventListener('load', setWidth);\n };\n }, [inputRef, setInputWidth]);\n};\n//# sourceMappingURL=useTextInputEffect.js.map"],"names":["useTextInputEffect","inputRef","setInputWidth","fullWidth","width","currentValue","value","maxChars","required","setIsShrunk","setCurrentValue","setIsRequired","useEffect","length","current","offsetWidth","setWidth","_a","window","addEventListener","removeEventListener"],"mappings":"kCACY,MAACA,EAAqB,CAACC,EAAUC,EAAeC,EAAWC,EAAOC,EAAcC,EAAOC,EAAUC,EAAUC,EAAaC,EAAiBC,KAEjJC,GAAU,MACDP,GAAgBA,EAAaQ,OAAS,GAAOP,GAASA,EAAMO,OAAS,IACtEJ,GAAY,EACf,GACF,CAACJ,EAAcI,EAAaH,IAE/BM,GAAU,KACFN,GAASA,EAAMO,OAAS,GAAKP,EAAMO,QAAUN,IAC7CG,EAAgBJ,GAChBG,GAAY,GACf,GACF,CAACH,EAAOC,EAAUG,EAAiBD,IACtCG,GAAU,KACND,EAAcH,EAAS,GACxB,CAACA,EAAUG,IACdC,GAAU,KACDX,GAAaA,EAASa,SAE3BZ,EAAcD,EAASa,QAAQC,YAAc,KAAK,GACnD,CAACd,EAAUE,EAAWC,EAAOF,IAChCU,GAAU,KACN,IAAKX,IAAaA,EAASa,QACvB,OACJ,MAAME,EAAW,KAAQ,IAAIC,EAAI,OAAOf,GAA2C,QAA3Be,EAAKhB,EAASa,eAA4B,IAAPG,OAAgB,EAASA,EAAGF,aAAe,KAAK,EAI3I,OAHAG,OAAOC,iBAAiB,QAAQ,WAC5BH,GACZ,IACe,KACHE,OAAOE,oBAAoB,OAAQJ,EAAS,CAC/C,GACF,CAACf,EAAUC,GAAe"}
1
+ {"version":3,"file":"useTextInputEffect.js","sources":["../../../../src/components/textInput/hook/useTextInputEffect.ts"],"sourcesContent":[null],"names":["useTextInputEffect","inputRef","setInputWidth","fullWidth","width","currentValue","value","maxChars","required","setIsShrunk","setCurrentValue","setIsRequired","useEffect","length","current","offsetWidth","setWidth","_a","window","addEventListener","removeEventListener"],"mappings":"kCAEa,MAAAA,EAAqB,CAChCC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,KAGAC,GAAU,MACHP,GAAgBA,EAAaQ,OAAS,GAAOP,GAASA,EAAMO,OAAS,IACxEJ,GAAY,EACb,GACA,CAACJ,EAAcI,EAAaH,IAG/BM,GAAU,KACJN,GAASA,EAAMO,OAAS,GAAKP,EAAMO,QAAUN,IAC/CG,EAAgBJ,GAChBG,GAAY,GACb,GACA,CAACH,EAAOC,EAAUG,EAAiBD,IAEtCG,GAAU,KACRD,EAAcH,EAAS,GACtB,CAACA,EAAUG,IAEdC,GAAU,KACHX,GAAaA,EAASa,SAC3BZ,EAAcD,EAASa,QAAQC,YAAc,KAAK,GACjD,CAACd,EAAUE,EAAWC,EAAOF,IAEhCU,GAAU,KACR,IAAKX,IAAaA,EAASa,QAAS,OAEpC,MAAME,EAAW,WAAM,OAAAd,WAAce,EAAAhB,EAASa,8BAASC,aAAc,KAAK,EAM1E,OAJAG,OAAOC,iBAAiB,QAAQ,WAC9BH,GACF,IAEO,KACLE,OAAOE,oBAAoB,OAAQJ,EAAS,CAC7C,GACA,CAACf,EAAUC,GAAe"}
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"tslib";import{jsx as o}from"react/jsx-runtime";import{useState as n,useRef as r}from"react";import{Icon as l}from"../icon/icon.js";import"../icon/icon.definitions.js";import{InputAdornment as t}from"@mui/material";import a from"../common/styled/textFieldStyled.js";import{useTextInput as i}from"./hook/useTextInput.js";import s from"../common/hook/useWindowSize.js";import{useTextInputEffect as m}from"./hook/useTextInputEffect.js";import d from"../common/helperText.js";const h=h=>{var{name:u,id:c,label:p=null,onChange:f,onBlur:x,onFocus:b,value:C,placeholder:j,hasError:v,fullWidth:F=!0,excludeChars:k}=h,y=e(h,["name","id","label","onChange","onBlur","onFocus","value","placeholder","hasError","fullWidth","excludeChars"]);const[g,T]=n(C||""),[w,I]=n(!1),[L,B]=n(!1),[D,E]=n(!1),[O,W]=n(!1),{handleOnBlur:K,handleOnFocus:P,handleOnChange:M,handlePlaceholder:N}=i(p,O,j,y.type),S=r(null),{width:q}=s();return m(S,(()=>{}),F,q,g,C,y.maxChars,y.required,I,T,W),o("div",{children:o(a,Object.assign({},y,{className:[y.icon?"textField-Icon":"",p?"textField-Label":"textField-NoLabel"].join(" "),InputLabelProps:{shrink:w},InputProps:y.icon?{startAdornment:o(t,{position:"start",children:o(l,{color:y.disabled?"disabled":"inherit",name:y.icon})})}:{},onChange:e=>M(e,y.maxChars,f,T),value:g,onFocus:e=>P(e,B,I,b),onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),hovered:D,onBlur:e=>K(e,I,B,x,g),focused:L,placeholder:N,label:j?null:p,hiddenLabel:!!j,name:u,ref:S,id:c,error:v,fullWidth:F,onKeyDown:e=>{y.onKeyDownCallback&&y.onKeyDownCallback(e),k&&k.length>0&&k.includes(e.key)&&e.preventDefault()},helperText:o(d,{maxChars:y.maxChars,currentValue:g,helpText:y.helpText})}))})};export{h as TextInput};
1
+ import{__rest as e}from"../../node_modules/tslib/tslib.es6.js";import{jsx as o}from"react/jsx-runtime";import{useState as n,useRef as r}from"react";import{Icon as l}from"../icon/icon.js";import"../icon/icon.definitions.js";import{InputAdornment as t}from"@mui/material";import a from"../common/styled/textFieldStyled.js";import{useTextInput as i}from"./hook/useTextInput.js";import s from"../common/hook/useWindowSize.js";import{useTextInputEffect as d}from"./hook/useTextInputEffect.js";import m from"../common/helperText.js";const h=h=>{var{name:u,id:c,label:p=null,onChange:f,onBlur:x,onFocus:b,value:C,placeholder:j,hasError:v,fullWidth:F=!0,excludeChars:k}=h,y=e(h,["name","id","label","onChange","onBlur","onFocus","value","placeholder","hasError","fullWidth","excludeChars"]);const[g,T]=n(C||""),[w,I]=n(!1),[L,B]=n(!1),[D,E]=n(!1),[O,W]=n(!1),{handleOnBlur:K,handleOnFocus:P,handleOnChange:M,handlePlaceholder:N}=i(p,O,j,y.type),S=r(null),{width:q}=s();return d(S,(()=>{}),F,q,g,C,y.maxChars,y.required,I,T,W),o("div",{children:o(a,Object.assign({},y,{className:[y.icon?"textField-Icon":"",p?"textField-Label":"textField-NoLabel"].join(" "),InputLabelProps:{shrink:w},InputProps:y.icon?{startAdornment:o(t,{position:"start",children:o(l,{color:y.disabled?"disabled":"inherit",name:y.icon})})}:{},onChange:e=>M(e,y.maxChars,f,T),value:g,onFocus:e=>P(e,B,I,b),onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),hovered:D,onBlur:e=>K(e,I,B,x,g),focused:L,placeholder:N,label:j?null:p,hiddenLabel:!!j,name:u,ref:S,id:c,error:v,fullWidth:F,onKeyDown:e=>{y.onKeyDownCallback&&y.onKeyDownCallback(e),k&&k.length>0&&k.includes(e.key)&&e.preventDefault()},helperText:o(m,{maxChars:y.maxChars,currentValue:g,helpText:y.helpText})}))})};export{h as TextInput};
2
2
  //# sourceMappingURL=textInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textInput.js","sources":["../../../src/components/textInput/textInput.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { useRef, useState } from 'react';\nimport { Icon } from '../icon';\nimport { InputAdornment } from '@mui/material';\nimport TextFieldStyled from '../common/styled/textFieldStyled';\nimport { useTextInput } from './hook/useTextInput';\nimport useWindowSize from '../common/hook/useWindowSize';\nimport { useTextInputEffect } from './hook/useTextInputEffect';\nimport HelperText from '../common/helperText';\n/**\n * @description SkodaFlow TextInput component.\n * Properties are inherited from HTML input element.\n * @param props TextInputProps\n * @returns React Functional Component\n * @deprecated this component is deprecated. Use themed TextField component from @mui/material instead.\n */\nexport const TextInput = (_a) => {\n var { name, id, label = null, onChange, onBlur, onFocus, value, placeholder, hasError, fullWidth = true, excludeChars } = _a, props = __rest(_a, [\"name\", \"id\", \"label\", \"onChange\", \"onBlur\", \"onFocus\", \"value\", \"placeholder\", \"hasError\", \"fullWidth\", \"excludeChars\"]);\n const [currentValue, setCurrentValue] = useState(value || '');\n const [isShrunk, setIsShrunk] = useState(false);\n const [isFocused, setIsFocused] = useState(false);\n const [hovered, setHovered] = useState(false);\n const [isRequired, setIsRequired] = useState(false);\n const { handleOnBlur, handleOnFocus, handleOnChange, handlePlaceholder } = useTextInput(label, isRequired, placeholder, props.type);\n const inputRef = useRef(null);\n const { width } = useWindowSize();\n useTextInputEffect(inputRef, () => { }, fullWidth, width, currentValue, value, props.maxChars, props.required, setIsShrunk, setCurrentValue, setIsRequired);\n return (_jsx(\"div\", { children: _jsx(TextFieldStyled, Object.assign({}, props, { className: [props.icon ? 'textField-Icon' : '', label ? 'textField-Label' : 'textField-NoLabel'].join(' '), InputLabelProps: {\n shrink: isShrunk,\n }, InputProps: props.icon\n ? {\n startAdornment: (_jsx(InputAdornment, { position: \"start\", children: _jsx(Icon, { color: props.disabled ? 'disabled' : 'inherit', name: props.icon }) })),\n }\n : {}, onChange: (event) => handleOnChange(event, props.maxChars, onChange, setCurrentValue), value: currentValue, onFocus: (event) => handleOnFocus(event, setIsFocused, setIsShrunk, onFocus), onMouseEnter: () => setHovered(true), onMouseLeave: () => setHovered(false), hovered: hovered, onBlur: (event) => handleOnBlur(event, setIsShrunk, setIsFocused, onBlur, currentValue), focused: isFocused, placeholder: handlePlaceholder, label: placeholder ? null : label, hiddenLabel: !!placeholder, name: name, ref: inputRef, id: id, error: hasError, fullWidth: fullWidth, onKeyDown: (event) => {\n if (props.onKeyDownCallback)\n props.onKeyDownCallback(event);\n if (excludeChars && excludeChars.length > 0 && excludeChars.includes(event.key)) {\n event.preventDefault();\n }\n }, helperText: _jsx(HelperText, { maxChars: props.maxChars, currentValue: currentValue, helpText: props.helpText }) })) }));\n};\n//# sourceMappingURL=textInput.js.map"],"names":["TextInput","_a","name","id","label","onChange","onBlur","onFocus","value","placeholder","hasError","fullWidth","excludeChars","props","__rest","currentValue","setCurrentValue","useState","isShrunk","setIsShrunk","isFocused","setIsFocused","hovered","setHovered","isRequired","setIsRequired","handleOnBlur","handleOnFocus","handleOnChange","handlePlaceholder","useTextInput","type","inputRef","useRef","width","useWindowSize","useTextInputEffect","maxChars","required","_jsx","children","TextFieldStyled","Object","assign","className","icon","join","InputLabelProps","shrink","InputProps","startAdornment","InputAdornment","position","Icon","color","disabled","event","onMouseEnter","onMouseLeave","focused","hiddenLabel","ref","error","onKeyDown","onKeyDownCallback","length","includes","key","preventDefault","helperText","HelperText","helpText"],"mappings":"+eAiBY,MAACA,EAAaC,IACtB,IAAIC,KAAEA,EAAIC,GAAEA,EAAEC,MAAEA,EAAQ,KAAIC,SAAEA,EAAQC,OAAEA,EAAMC,QAAEA,EAAOC,MAAEA,EAAKC,YAAEA,EAAWC,SAAEA,EAAQC,UAAEA,GAAY,EAAIC,aAAEA,GAAiBX,EAAIY,EAAQC,EAAOb,EAAI,CAAC,OAAQ,KAAM,QAAS,WAAY,SAAU,UAAW,QAAS,cAAe,WAAY,YAAa,iBAC3P,MAAOc,EAAcC,GAAmBC,EAAST,GAAS,KACnDU,EAAUC,GAAeF,GAAS,IAClCG,EAAWC,GAAgBJ,GAAS,IACpCK,EAASC,GAAcN,GAAS,IAChCO,EAAYC,GAAiBR,GAAS,IACvCS,aAAEA,EAAYC,cAAEA,EAAaC,eAAEA,EAAcC,kBAAEA,GAAsBC,EAAa1B,EAAOoB,EAAYf,EAAaI,EAAMkB,MACxHC,EAAWC,EAAO,OAClBC,MAAEA,GAAUC,IAElB,OADAC,EAAmBJ,GAAU,QAAWrB,EAAWuB,EAAOnB,EAAcP,EAAOK,EAAMwB,SAAUxB,EAAMyB,SAAUnB,EAAaH,EAAiBS,GACrIc,EAAK,MAAO,CAAEC,SAAUD,EAAKE,EAAiBC,OAAOC,OAAO,GAAI9B,EAAO,CAAE+B,UAAW,CAAC/B,EAAMgC,KAAO,iBAAmB,GAAIzC,EAAQ,kBAAoB,qBAAqB0C,KAAK,KAAMC,gBAAiB,CAClMC,OAAQ9B,GACT+B,WAAYpC,EAAMgC,KACf,CACEK,eAAiBX,EAAKY,EAAgB,CAAEC,SAAU,QAASZ,SAAUD,EAAKc,EAAM,CAAEC,MAAOzC,EAAM0C,SAAW,WAAa,UAAWrD,KAAMW,EAAMgC,UAEhJ,CAAE,EAAExC,SAAWmD,GAAU5B,EAAe4B,EAAO3C,EAAMwB,SAAUhC,EAAUW,GAAkBR,MAAOO,EAAcR,QAAUiD,GAAU7B,EAAc6B,EAAOnC,EAAcF,EAAaZ,GAAUkD,aAAc,IAAMlC,GAAW,GAAOmC,aAAc,IAAMnC,GAAW,GAAQD,QAASA,EAAShB,OAASkD,GAAU9B,EAAa8B,EAAOrC,EAAaE,EAAcf,EAAQS,GAAe4C,QAASvC,EAAWX,YAAaoB,EAAmBzB,MAAOK,EAAc,KAAOL,EAAOwD,cAAenD,EAAaP,KAAMA,EAAM2D,IAAK7B,EAAU7B,GAAIA,EAAI2D,MAAOpD,EAAUC,UAAWA,EAAWoD,UAAYP,IAC7jB3C,EAAMmD,mBACNnD,EAAMmD,kBAAkBR,GACxB5C,GAAgBA,EAAaqD,OAAS,GAAKrD,EAAasD,SAASV,EAAMW,MACvEX,EAAMY,gBACT,EACFC,WAAY9B,EAAK+B,EAAY,CAAEjC,SAAUxB,EAAMwB,SAAUtB,aAAcA,EAAcwD,SAAU1D,EAAM0D,eAAoB"}
1
+ {"version":3,"file":"textInput.js","sources":["../../../src/components/textInput/textInput.tsx"],"sourcesContent":[null],"names":["TextInput","_a","name","id","label","onChange","onBlur","onFocus","value","placeholder","hasError","fullWidth","excludeChars","props","__rest","currentValue","setCurrentValue","useState","isShrunk","setIsShrunk","isFocused","setIsFocused","hovered","setHovered","isRequired","setIsRequired","handleOnBlur","handleOnFocus","handleOnChange","handlePlaceholder","useTextInput","type","inputRef","useRef","width","useWindowSize","useTextInputEffect","maxChars","required","_jsx","children","TextFieldStyled","Object","assign","className","icon","join","InputLabelProps","shrink","InputProps","startAdornment","InputAdornment","position","Icon","color","disabled","event","onMouseEnter","onMouseLeave","focused","hiddenLabel","ref","error","onKeyDown","onKeyDownCallback","length","includes","key","preventDefault","helperText","HelperText","helpText"],"mappings":"+gBAiBa,MAAAA,EAAiCC,IAAA,IAAAC,KAC5CA,EAAIC,GACJA,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MAAOK,EAAc,KAAOL,EAC5BwD,cAAenD,EACfP,KAAMA,EACN2D,IAAK7B,EACL7B,GAAIA,EACJ2D,MAAOpD,EACPC,UAAWA,EACXoD,UAAYP,IACN3C,EAAMmD,mBAAmBnD,EAAMmD,kBAAkBR,GACjD5C,GAAgBA,EAAaqD,OAAS,GAAKrD,EAAasD,SAASV,EAAMW,MACzEX,EAAMY,gBACP,EAEHC,WAAY9B,EAAC+B,GAAWjC,SAAUxB,EAAMwB,SAAUtB,aAAcA,EAAcwD,SAAU1D,EAAM0D,eAGlG"}
@@ -1,2 +1,2 @@
1
- import{__rest as o}from"tslib";import{jsx as i}from"react/jsx-runtime";import{forwardRef as t,useState as r}from"react";import l from"@mui/material/Switch";import{styled as s}from"@mui/material/styles";import{ClassNaming as a}from"../../design/skoda/theme.constants.js";import m from"../common/styled/buttonFocusVisibleStyled.js";import e from"../common/styled/formControlLabelStyled.js";const n=t(((t,l)=>{var s,{compact:n,isNavigationVariant:u}=t,d=o(t,["compact","isNavigationVariant"]);const[b,f]=r(!1),p=null!==(s=d.label)&&void 0!==s?s:d.children,V=i(m,{focusVisible:b,isNavigationVariant:!1,children:i(c,Object.assign({},d,{ref:l,onFocusVisible:()=>f(!0),onBlur:o=>{f(!1),d.onBlur&&d.onBlur(o)},size:n?"small":"medium",className:b?a.focusVisible:""}))});return p?i(e,{control:V,label:d.label,disabled:d.disabled}):V})),c=s(l)((()=>null));export{n as ToggleSwitch};
1
+ import{__rest as o}from"../../node_modules/tslib/tslib.es6.js";import{jsx as i}from"react/jsx-runtime";import{forwardRef as t,useState as s}from"react";import l from"@mui/material/Switch";import{styled as r}from"@mui/material/styles";import{ClassNaming as e}from"../../design/skoda/theme.constants.js";import m from"../common/styled/buttonFocusVisibleStyled.js";import a from"../common/styled/formControlLabelStyled.js";const n=t(((t,l)=>{var r,{compact:n,isNavigationVariant:d}=t,u=o(t,["compact","isNavigationVariant"]);const[b,f]=s(!1),p=null!==(r=u.label)&&void 0!==r?r:u.children,V=i(m,{focusVisible:b,isNavigationVariant:!1,children:i(c,Object.assign({},u,{ref:l,onFocusVisible:()=>f(!0),onBlur:o=>{f(!1),u.onBlur&&u.onBlur(o)},size:n?"small":"medium",className:b?e.focusVisible:""}))});return p?i(a,{control:V,label:u.label,disabled:u.disabled}):V})),c=r(l)((()=>null));export{n as ToggleSwitch};
2
2
  //# sourceMappingURL=toggleSwitch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"toggleSwitch.js","sources":["../../../src/components/toggleSwitch/toggleSwitch.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef, useState } from 'react';\nimport MuiSwitch from '@mui/material/Switch';\nimport { styled } from '@mui/material/styles';\nimport { ClassNaming } from '../../design/skoda/theme.constants';\nimport ButtonFocusVisibleStyled from '../common/styled/buttonFocusVisibleStyled';\nimport FormControlLabelStyled from '../common/styled/formControlLabelStyled';\n/**\n * @description SkodaFlow ToggleSwitch component.\n * Properties are inherited from HTML Button element.\n * @param props ToggleSwitchProps\n * @returns React Functional Component\n * @deprecated This component is deprecated. Use themed Switch and FromControlLabel components from @mui/material instead.\n */\nexport const ToggleSwitch = forwardRef((_a, ref) => {\n var _b;\n var { compact, isNavigationVariant } = _a, props = __rest(_a, [\"compact\", \"isNavigationVariant\"]);\n const [focusVisible, setFocusVisible] = useState(false);\n const label = (_b = props.label) !== null && _b !== void 0 ? _b : props.children;\n const onBlur = (e) => {\n setFocusVisible(false);\n if (props.onBlur)\n props.onBlur(e);\n };\n const toggleSwitch = (_jsx(ButtonFocusVisibleStyled, { focusVisible: focusVisible, isNavigationVariant: false, children: _jsx(ToggleSwitchStyled, Object.assign({}, props, { ref: ref, onFocusVisible: () => setFocusVisible(true), onBlur: onBlur, size: compact ? 'small' : 'medium', className: focusVisible ? ClassNaming.focusVisible : '' })) }));\n return label ? (_jsx(FormControlLabelStyled, { control: toggleSwitch, label: props.label, disabled: props.disabled })) : (toggleSwitch);\n});\n/**\n * @description ToggleSwitch styling definition based on props\n */\nconst ToggleSwitchStyled = styled(MuiSwitch)(() => {\n return null;\n});\n//# sourceMappingURL=toggleSwitch.js.map"],"names":["ToggleSwitch","forwardRef","_a","ref","_b","compact","isNavigationVariant","props","__rest","focusVisible","setFocusVisible","useState","label","children","toggleSwitch","_jsx","ButtonFocusVisibleStyled","ToggleSwitchStyled","Object","assign","onFocusVisible","onBlur","e","size","className","ClassNaming","FormControlLabelStyled","control","disabled","styled","MuiSwitch"],"mappings":"oYAeY,MAACA,EAAeC,GAAW,CAACC,EAAIC,KACxC,IAAIC,GACAC,QAAEA,EAAOC,oBAAEA,GAAwBJ,EAAIK,EAAQC,EAAON,EAAI,CAAC,UAAW,wBAC1E,MAAOO,EAAcC,GAAmBC,GAAS,GAC3CC,EAA+B,QAAtBR,EAAKG,EAAMK,aAA0B,IAAPR,EAAgBA,EAAKG,EAAMM,SAMlEC,EAAgBC,EAAKC,EAA0B,CAAEP,aAAcA,EAAcH,qBAAqB,EAAOO,SAAUE,EAAKE,EAAoBC,OAAOC,OAAO,CAAA,EAAIZ,EAAO,CAAEJ,IAAKA,EAAKiB,eAAgB,IAAMV,GAAgB,GAAOW,OALpNC,IACZZ,GAAgB,GACZH,EAAMc,QACNd,EAAMc,OAAOC,EAAE,EAE6NC,KAAMlB,EAAU,QAAU,SAAUmB,UAAWf,EAAegB,EAAYhB,aAAe,QAC7U,OAAOG,EAASG,EAAKW,EAAwB,CAAEC,QAASb,EAAcF,MAAOL,EAAMK,MAAOgB,SAAUrB,EAAMqB,WAAW,CAAkB,IAKrIX,EAAqBY,EAAOC,EAAPD,EAAkB,IAClC"}
1
+ {"version":3,"file":"toggleSwitch.js","sources":["../../../src/components/toggleSwitch/toggleSwitch.tsx"],"sourcesContent":[null],"names":["ToggleSwitch","forwardRef","_a","ref","compact","isNavigationVariant","props","__rest","focusVisible","setFocusVisible","useState","label","_b","children","toggleSwitch","_jsx","ButtonFocusVisibleStyled","ToggleSwitchStyled","Object","assign","onFocusVisible","onBlur","e","size","className","ClassNaming","FormControlLabelStyled","control","disabled","styled","MuiSwitch"],"mappings":"oaA4Da,MAAAA,EAAeC,GAC1B,CAACC,EAA4CC,YAA5CC,QAAEA,EAAOC,oBAAEA,GAAmBH,EAAKI,EAAKC,EAAAL,EAAxC,mCACC,MAAOM,EAAcC,GAAmBC,GAAS,GAC3CC,EAAuB,QAAfC,EAAAN,EAAMK,aAAS,IAAAC,EAAAA,EAAAN,EAAMO,SAO7BC,EACJC,EAACC,EAAwB,CAACR,aAAcA,EAAcH,qBAAqB,EACzEQ,SAAAE,EAACE,EAAkBC,OAAAC,OAAA,CAAA,EACbb,EAAK,CACTH,IAAKA,EACLiB,eAAgB,IAAMX,GAAgB,GACtCY,OAXUC,IACdb,GAAgB,GACZH,EAAMe,QAAQf,EAAMe,OAAOC,EAAE,EAU7BC,KAAMnB,EAAU,QAAU,SAC1BoB,UAAWhB,EAAeiB,EAAYjB,aAAe,QAK3D,OAAOG,EACLI,EAACW,EAAsB,CAACC,QAASb,EAAcH,MAAOL,EAAMK,MAAOiB,SAAUtB,EAAMsB,WAAY,CAGhG,IAOCX,EAAqBY,EAAOC,EAAPD,EAAkC,IACpD"}
@@ -1,2 +1,2 @@
1
- import{__rest as t}from"tslib";import{jsx as r}from"react/jsx-runtime";import{Tooltip as i}from"@mui/material";const e=e=>{var o=t(e,["iconName"]);return r(i,Object.assign({},o,{title:o.title,children:o.children}))};export{e as Tooltip};
1
+ import{__rest as t}from"../../node_modules/tslib/tslib.es6.js";import{jsx as i}from"react/jsx-runtime";import{Tooltip as r}from"@mui/material";const e=e=>{var o=t(e,["iconName"]);return i(r,Object.assign({},o,{title:o.title,children:o.children}))};export{e as Tooltip};
2
2
  //# sourceMappingURL=tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.js","sources":["../../../src/components/tooltip/tooltip.tsx"],"sourcesContent":["import { __rest } from \"tslib\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Tooltip as MuiTooltip } from '@mui/material';\n/**\n * @description SkodaFlow Tooltip component.\n * @param props TooltipProps\n * @returns React Functional Component\n * @deprecated This component is deprecated. Use themed Tooltip component from @mui/material instead.\n */\nexport const Tooltip = (_a) => {\n var { iconName } = _a, props = __rest(_a, [\"iconName\"]);\n return (_jsx(MuiTooltip, Object.assign({}, props, { title: props.title, children: props.children })));\n};\n//# sourceMappingURL=tooltip.js.map"],"names":["Tooltip","_a","props","__rest","_jsx","MuiTooltip","Object","assign","title","children"],"mappings":"+GASY,MAACA,EAAWC,IACjB,IAAoBC,EAAQC,EAAOF,EAAI,CAAC,aAC3C,OAAQG,EAAKC,EAAYC,OAAOC,OAAO,CAAA,EAAIL,EAAO,CAAEM,MAAON,EAAMM,MAAOC,SAAUP,EAAMO,WAAc"}
1
+ {"version":3,"file":"tooltip.js","sources":["../../../src/components/tooltip/tooltip.tsx"],"sourcesContent":[null],"names":["Tooltip","_a","props","__rest","_jsx","MuiTooltip","Object","assign","title","children"],"mappings":"+IAkDa,MAAAA,EAAmCC,IAAA,IAAeC,EAAKC,EAAAF,EAApB,cAC9C,OACEG,EAACC,EAAeC,OAAAC,OAAA,CAAA,EAAAL,GAAOM,MAAON,EAAMM,MACjCC,SAAAP,EAAMO,WAET"}
@@ -1 +1 @@
1
- {"version":3,"file":"UploadBox.js","sources":["../../../src/components/upload/UploadBox.tsx"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Box, useTheme } from '@mui/material';\nimport { useMemo } from 'react';\nexport const UploadBox = ({ color = 'secondary', children }) => {\n const theme = useTheme();\n const borderColor = useMemo(() => {\n switch (color) {\n case 'primary':\n return theme.palette.brandHover.primary;\n case 'secondary':\n return theme.palette.onSurface.os200;\n case 'transparent':\n case 'white':\n return theme.palette.surface.secondary;\n case 'error':\n return theme.palette.error.main;\n }\n }, [color, theme]);\n const backgroundColor = useMemo(() => {\n switch (color) {\n case 'primary':\n return theme.palette.brand.quarternary;\n case 'secondary':\n return theme.palette.surface.primary;\n case 'transparent':\n return 'transparent';\n case 'white':\n return theme.palette.common.white;\n case 'error':\n return theme.palette.surface.primary;\n }\n }, [color, theme]);\n const borderStyle = useMemo(() => {\n if (color === 'white' || color === 'transparent') {\n return 'solid';\n }\n return 'dashed';\n }, [color]);\n return (_jsx(Box, { sx: {\n borderRadius: '8px',\n borderWidth: '1px',\n position: 'relative',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n height: '100%',\n borderStyle,\n borderColor,\n backgroundColor,\n }, children: children }));\n};\n//# sourceMappingURL=UploadBox.js.map"],"names":["UploadBox","color","children","theme","useTheme","borderColor","useMemo","palette","brandHover","primary","onSurface","os200","surface","secondary","error","main","backgroundColor","brand","quarternary","common","white","borderStyle","_jsx","Box","sx","borderRadius","borderWidth","position","display","alignItems","justifyContent","width","height"],"mappings":"0HAGY,MAACA,EAAY,EAAGC,QAAQ,YAAaC,eAC7C,MAAMC,EAAQC,IACRC,EAAcC,GAAQ,KACxB,OAAQL,GACJ,IAAK,UACD,OAAOE,EAAMI,QAAQC,WAAWC,QACpC,IAAK,YACD,OAAON,EAAMI,QAAQG,UAAUC,MACnC,IAAK,cACL,IAAK,QACD,OAAOR,EAAMI,QAAQK,QAAQC,UACjC,IAAK,QACD,OAAOV,EAAMI,QAAQO,MAAMC,KAClC,GACF,CAACd,EAAOE,IACLa,EAAkBV,GAAQ,KAC5B,OAAQL,GACJ,IAAK,UACD,OAAOE,EAAMI,QAAQU,MAAMC,YAC/B,IAAK,YAML,IAAK,QACD,OAAOf,EAAMI,QAAQK,QAAQH,QALjC,IAAK,cACD,MAAO,cACX,IAAK,QACD,OAAON,EAAMI,QAAQY,OAAOC,MAGnC,GACF,CAACnB,EAAOE,IACLkB,EAAcf,GAAQ,IACV,UAAVL,GAA+B,gBAAVA,EACd,QAEJ,UACR,CAACA,IACJ,OAAQqB,EAAKC,EAAK,CAAEC,GAAI,CAChBC,aAAc,MACdC,YAAa,MACbC,SAAU,WACVC,QAAS,OACTC,WAAY,SACZC,eAAgB,SAChBC,MAAO,OACPC,OAAQ,OACRX,cACAhB,cACAW,mBACDd,SAAUA,GAAa"}
1
+ {"version":3,"file":"UploadBox.js","sources":["../../../src/components/upload/UploadBox.tsx"],"sourcesContent":[null],"names":["UploadBox","color","children","theme","useTheme","borderColor","useMemo","palette","brandHover","primary","onSurface","os200","surface","secondary","error","main","backgroundColor","brand","quarternary","common","white","borderStyle","_jsx","Box","sx","borderRadius","borderWidth","position","display","alignItems","justifyContent","width","height"],"mappings":"0HAgBO,MAAMA,EAAgC,EAAGC,QAAQ,YAAaC,eACnE,MAAMC,EAAQC,IAERC,EAAcC,GAAQ,KAC1B,OAAQL,GACN,IAAK,UACH,OAAOE,EAAMI,QAAQC,WAAWC,QAClC,IAAK,YACH,OAAON,EAAMI,QAAQG,UAAUC,MACjC,IAAK,cACL,IAAK,QACH,OAAOR,EAAMI,QAAQK,QAAQC,UAC/B,IAAK,QACH,OAAOV,EAAMI,QAAQO,MAAMC,KAC9B,GACA,CAACd,EAAOE,IAELa,EAAkBV,GAAQ,KAC9B,OAAQL,GACN,IAAK,UACH,OAAOE,EAAMI,QAAQU,MAAMC,YAC7B,IAAK,YAML,IAAK,QACH,OAAOf,EAAMI,QAAQK,QAAQH,QAL/B,IAAK,cACH,MAAO,cACT,IAAK,QACH,OAAON,EAAMI,QAAQY,OAAOC,MAG/B,GACA,CAACnB,EAAOE,IAELkB,EAAcf,GAAQ,IACZ,UAAVL,GAA+B,gBAAVA,EAChB,QAEF,UACN,CAACA,IAEJ,OACEqB,EAACC,EAAG,CACFC,GAAI,CACFC,aAAc,MACdC,YAAa,MACbC,SAAU,WACVC,QAAS,OACTC,WAAY,SACZC,eAAgB,SAChBC,MAAO,OACPC,OAAQ,OACRX,cACAhB,cACAW,mBAGDd,SAAAA,GAEH"}
@@ -1 +1 @@
1
- {"version":3,"file":"UploadField.js","sources":["../../../src/components/upload/UploadField.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useCallback, useRef, useState } from 'react';\nimport { UploadBox } from './UploadBox';\nimport { Icon } from '../icon';\nimport { Box, IconButton, Typography } from '@mui/material';\nimport { minimatch } from 'minimatch';\nexport const UploadField = ({ uploadIcon = 'plus', maxFiles = 1, uploadLabel = 'Upload', accept = '*', onFileDrop, }) => {\n const inputRef = useRef(null);\n const [dragging, setDragging] = useState(false);\n const [dragInvalid, setDragInvalid] = useState(false);\n const preventDragOver = useCallback((event) => {\n event.stopPropagation();\n event.preventDefault();\n }, []);\n const dragOverHandler = useCallback((event) => {\n const files = [...event.dataTransfer.files];\n const matched = files.filter((file) => minimatch(file.type, accept));\n if (matched.length > 0) {\n setDragging(true);\n }\n else {\n setDragInvalid(true);\n }\n }, [setDragging, setDragInvalid]);\n const dragLeaveHandler = useCallback(() => {\n setDragging(false);\n setDragInvalid(false);\n }, [setDragging, setDragInvalid]);\n const uploadClickHandler = useCallback(() => {\n var _a;\n (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.click();\n }, []);\n const dropHandler = useCallback((event) => {\n event.preventDefault();\n event.stopPropagation();\n const files = [...event.dataTransfer.files];\n const matched = files.filter((file) => minimatch(file.type, accept)).slice(0, maxFiles);\n setDragging(false);\n setDragInvalid(false);\n if (matched.length > 0) {\n onFileDrop(matched);\n }\n }, [setDragging, setDragInvalid]);\n const inputChangeHandler = useCallback((event) => {\n event.preventDefault();\n event.stopPropagation();\n const files = [...event.target.files];\n const matched = files.filter((file) => minimatch(file.type, accept)).slice(0, maxFiles);\n if (matched.length > 0) {\n onFileDrop([...matched]);\n if (inputRef.current) {\n inputRef.current.value = '';\n }\n }\n }, []);\n return (_jsx(UploadBox, { color: dragging ? 'primary' : 'secondary', children: _jsxs(Box, { sx: {\n width: '100%',\n height: '100%',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n padding: '16px',\n gap: '8px',\n '& *': {\n pointerEvents: 'none',\n },\n cursor: dragInvalid ? 'no-drop' : 'pointer',\n }, onDragOver: preventDragOver, onDrop: dropHandler, onDragEnter: dragOverHandler, onDragLeave: dragLeaveHandler, onClick: uploadClickHandler, children: [_jsx(IconButton, { children: _jsx(Icon, { name: uploadIcon }) }), typeof uploadLabel === 'string' ? _jsx(Typography, { children: uploadLabel }) : uploadLabel, _jsx(\"input\", { ref: inputRef, hidden: true, type: \"file\", multiple: maxFiles > 1, accept: accept, onChange: inputChangeHandler })] }) }));\n};\n//# sourceMappingURL=UploadField.js.map"],"names":["UploadField","uploadIcon","maxFiles","uploadLabel","accept","onFileDrop","inputRef","useRef","dragging","setDragging","useState","dragInvalid","setDragInvalid","preventDragOver","useCallback","event","stopPropagation","preventDefault","dragOverHandler","dataTransfer","files","filter","file","minimatch","type","length","dragLeaveHandler","uploadClickHandler","_a","current","click","dropHandler","matched","slice","inputChangeHandler","target","value","_jsx","UploadBox","color","children","_jsxs","Box","sx","width","height","display","alignItems","justifyContent","padding","gap","pointerEvents","cursor","onDragOver","onDrop","onDragEnter","onDragLeave","onClick","IconButton","Icon","name","Typography","ref","hidden","multiple","onChange"],"mappings":"gVAMY,MAACA,EAAc,EAAGC,aAAa,OAAQC,WAAW,EAAGC,cAAc,SAAUC,SAAS,IAAKC,iBACnG,MAAMC,EAAWC,EAAO,OACjBC,EAAUC,GAAeC,GAAS,IAClCC,EAAaC,GAAkBF,GAAS,GACzCG,EAAkBC,GAAaC,IACjCA,EAAMC,kBACND,EAAME,gBAAgB,GACvB,IACGC,EAAkBJ,GAAaC,IACnB,IAAIA,EAAMI,aAAaC,OACfC,QAAQC,GAASC,EAAUD,EAAKE,KAAMpB,KAChDqB,OAAS,EACjBhB,GAAY,GAGZG,GAAe,EAClB,GACF,CAACH,EAAaG,IACXc,EAAmBZ,GAAY,KACjCL,GAAY,GACZG,GAAe,EAAM,GACtB,CAACH,EAAaG,IACXe,EAAqBb,GAAY,KACnC,IAAIc,EACwB,QAA3BA,EAAKtB,EAASuB,eAA4B,IAAPD,GAAyBA,EAAGE,OAAO,GACxE,IACGC,EAAcjB,GAAaC,IAC7BA,EAAME,iBACNF,EAAMC,kBACN,MACMgB,EADQ,IAAIjB,EAAMI,aAAaC,OACfC,QAAQC,GAASC,EAAUD,EAAKE,KAAMpB,KAAS6B,MAAM,EAAG/B,GAC9EO,GAAY,GACZG,GAAe,GACXoB,EAAQP,OAAS,GACjBpB,EAAW2B,EACd,GACF,CAACvB,EAAaG,IACXsB,EAAqBpB,GAAaC,IACpCA,EAAME,iBACNF,EAAMC,kBACN,MACMgB,EADQ,IAAIjB,EAAMoB,OAAOf,OACTC,QAAQC,GAASC,EAAUD,EAAKE,KAAMpB,KAAS6B,MAAM,EAAG/B,GAC1E8B,EAAQP,OAAS,IACjBpB,EAAW,IAAI2B,IACX1B,EAASuB,UACTvB,EAASuB,QAAQO,MAAQ,IAEhC,GACF,IACH,OAAQC,EAAKC,EAAW,CAAEC,MAAO/B,EAAW,UAAY,YAAagC,SAAUC,EAAMC,EAAK,CAAEC,GAAI,CACpFC,MAAO,OACPC,OAAQ,OACRC,QAAS,OACTC,WAAY,SACZC,eAAgB,SAChBC,QAAS,OACTC,IAAK,MACL,MAAO,CACHC,cAAe,QAEnBC,OAAQzC,EAAc,UAAY,WACnC0C,WAAYxC,EAAiByC,OAAQvB,EAAawB,YAAarC,EAAiBsC,YAAa9B,EAAkB+B,QAAS9B,EAAoBa,SAAU,CAACH,EAAKqB,EAAY,CAAElB,SAAUH,EAAKsB,EAAM,CAAEC,KAAM3D,MAAyC,iBAAhBE,EAA2BkC,EAAKwB,EAAY,CAAErB,SAAUrC,IAAiBA,EAAakC,EAAK,QAAS,CAAEyB,IAAKxD,EAAUyD,QAAQ,EAAMvC,KAAM,OAAQwC,SAAU9D,EAAW,EAAGE,OAAQA,EAAQ6D,SAAU/B,QAA8B"}
1
+ {"version":3,"file":"UploadField.js","sources":["../../../src/components/upload/UploadField.tsx"],"sourcesContent":[null],"names":["UploadField","uploadIcon","maxFiles","uploadLabel","accept","onFileDrop","inputRef","useRef","dragging","setDragging","useState","dragInvalid","setDragInvalid","preventDragOver","useCallback","event","stopPropagation","preventDefault","dragOverHandler","dataTransfer","files","filter","file","minimatch","type","length","dragLeaveHandler","uploadClickHandler","_a","current","click","dropHandler","matched","slice","inputChangeHandler","target","value","_jsx","UploadBox","color","children","_jsxs","Box","sx","width","height","display","alignItems","justifyContent","padding","gap","pointerEvents","cursor","onDragOver","onDrop","onDragEnter","onDragLeave","onClick","IconButton","Icon","name","Typography","ref","hidden","multiple","onChange"],"mappings":"gVAyCa,MAAAA,EAAoC,EAC/CC,aAAa,OACbC,WAAW,EACXC,cAAc,SACdC,SAAS,IACTC,iBAEA,MAAMC,EAAWC,EAAyB,OACnCC,EAAUC,GAAeC,GAAkB,IAC3CC,EAAaC,GAAkBF,GAAkB,GAElDG,EAAkBC,GAAaC,IACnCA,EAAMC,kBACND,EAAME,gBAAgB,GACrB,IAEGC,EAAkBJ,GACrBC,IACe,IAAIA,EAAMI,aAAaC,OACfC,QAAQC,GAASC,EAAUD,EAAKE,KAAMpB,KAChDqB,OAAS,EACnBhB,GAAY,GAEZG,GAAe,EAChB,GAEH,CAACH,EAAaG,IAGVc,EAAmBZ,GAAY,KACnCL,GAAY,GACZG,GAAe,EAAM,GACpB,CAACH,EAAaG,IAEXe,EAAqBb,GAAY,WACnB,QAAlBc,EAAAtB,EAASuB,eAAS,IAAAD,GAAAA,EAAAE,OAAO,GACxB,IAEGC,EAAcjB,GACjBC,IACCA,EAAME,iBACNF,EAAMC,kBACN,MACMgB,EADQ,IAAIjB,EAAMI,aAAaC,OACfC,QAAQC,GAASC,EAAUD,EAAKE,KAAMpB,KAAS6B,MAAM,EAAG/B,GAC9EO,GAAY,GACZG,GAAe,GACXoB,EAAQP,OAAS,GACnBpB,EAAW2B,EACZ,GAEH,CAACvB,EAAaG,IAGVsB,EAAqBpB,GAAaC,IACtCA,EAAME,iBACNF,EAAMC,kBACN,MACMgB,EADQ,IAAIjB,EAAMoB,OAAOf,OACTC,QAAQC,GAASC,EAAUD,EAAKE,KAAMpB,KAAS6B,MAAM,EAAG/B,GAC1E8B,EAAQP,OAAS,IACnBpB,EAAW,IAAI2B,IACX1B,EAASuB,UACXvB,EAASuB,QAAQO,MAAQ,IAE5B,GACA,IAEH,OACEC,EAACC,EAAS,CAACC,MAAO/B,EAAW,UAAY,YAAWgC,SAClDC,EAACC,EAAG,CACFC,GAAI,CACFC,MAAO,OACPC,OAAQ,OACRC,QAAS,OACTC,WAAY,SACZC,eAAgB,SAChBC,QAAS,OACTC,IAAK,MACL,MAAO,CACLC,cAAe,QAEjBC,OAAQzC,EAAc,UAAY,WAEpC0C,WAAYxC,EACZyC,OAAQvB,EACRwB,YAAarC,EACbsC,YAAa9B,EACb+B,QAAS9B,EAAkBa,SAAA,CAE3BH,EAACqB,EAAU,CAAAlB,SACTH,EAACsB,GAAKC,KAAM3D,MAEU,iBAAhBE,EAA2BkC,EAACwB,EAAY,CAAArB,SAAArC,IAA4BA,EAE5EkC,EAAA,QAAA,CACEyB,IAAKxD,EACLyD,UACAvC,KAAK,OACLwC,SAAU9D,EAAW,EACrBE,OAAQA,EACR6D,SAAU/B,QAIhB"}
@@ -1 +1 @@
1
- {"version":3,"file":"UploadPreview.js","sources":["../../../src/components/upload/UploadPreview.tsx"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { useState } from 'react';\nimport { UploadBox } from './UploadBox';\nimport { Box, Stack } from '@mui/material';\nexport const UploadPreview = (props) => {\n const [hover, setHover] = useState(false);\n return (_jsx(UploadBox, { color: \"secondary\", children: _jsxs(Box, { sx: { padding: '5px', width: '100%', height: '100%', position: 'relative' }, onMouseOver: () => setHover(true), onMouseOut: () => setHover(false), children: [props.actions && (_jsx(Box, { sx: {\n display: hover ? 'block' : 'none',\n position: 'absolute',\n left: '5px',\n right: '5px',\n top: '5px',\n bottom: '5px',\n background: '#3232324f',\n color: 'white',\n borderRadius: '4px',\n }, children: _jsx(Stack, { direction: \"row\", spacing: 1, sx: { display: 'flex', justifyContent: 'center', alignItems: 'center', height: '100%' }, children: props.actions }) })), _jsx(Box, { component: \"img\", src: props.image, sx: { display: 'block', width: '100%', height: '100%', objectFit: 'cover', borderRadius: '4px' } })] }) }));\n};\n//# sourceMappingURL=UploadPreview.js.map"],"names":["UploadPreview","props","hover","setHover","useState","_jsx","UploadBox","color","children","_jsxs","Box","sx","padding","width","height","position","onMouseOver","onMouseOut","actions","display","left","right","top","bottom","background","borderRadius","Stack","direction","spacing","justifyContent","alignItems","component","src","image","objectFit"],"mappings":"6KAIY,MAACA,EAAiBC,IAC1B,MAAOC,EAAOC,GAAYC,GAAS,GACnC,OAAQC,EAAKC,EAAW,CAAEC,MAAO,YAAaC,SAAUC,EAAMC,EAAK,CAAEC,GAAI,CAAEC,QAAS,MAAOC,MAAO,OAAQC,OAAQ,OAAQC,SAAU,YAAcC,YAAa,IAAMb,GAAS,GAAOc,WAAY,IAAMd,GAAS,GAAQK,SAAU,CAACP,EAAMiB,SAAYb,EAAKK,EAAK,CAAEC,GAAI,CACjPQ,QAASjB,EAAQ,QAAU,OAC3Ba,SAAU,WACVK,KAAM,MACNC,MAAO,MACPC,IAAK,MACLC,OAAQ,MACRC,WAAY,YACZjB,MAAO,QACPkB,aAAc,OACfjB,SAAUH,EAAKqB,EAAO,CAAEC,UAAW,MAAOC,QAAS,EAAGjB,GAAI,CAAEQ,QAAS,OAAQU,eAAgB,SAAUC,WAAY,SAAUhB,OAAQ,QAAUN,SAAUP,EAAMiB,YAAgBb,EAAKK,EAAK,CAAEqB,UAAW,MAAOC,IAAK/B,EAAMgC,MAAOtB,GAAI,CAAEQ,QAAS,QAASN,MAAO,OAAQC,OAAQ,OAAQoB,UAAW,QAAST,aAAc,aAAmB"}
1
+ {"version":3,"file":"UploadPreview.js","sources":["../../../src/components/upload/UploadPreview.tsx"],"sourcesContent":[null],"names":["UploadPreview","props","hover","setHover","useState","_jsx","UploadBox","color","children","_jsxs","Box","sx","padding","width","height","position","onMouseOver","onMouseOut","actions","display","left","right","top","bottom","background","borderRadius","Stack","direction","spacing","justifyContent","alignItems","component","src","image","objectFit"],"mappings":"6KA0Ba,MAAAA,EAAyCC,IACpD,MAAOC,EAAOC,GAAYC,GAAkB,GAE5C,OACEC,EAACC,EAAS,CAACC,MAAM,YAAWC,SAC1BC,EAACC,EACC,CAAAC,GAAI,CAAEC,QAAS,MAAOC,MAAO,OAAQC,OAAQ,OAAQC,SAAU,YAC/DC,YAAa,IAAMb,GAAS,GAC5Bc,WAAY,IAAMd,GAAS,GAE1BK,SAAA,CAAAP,EAAMiB,SACLb,EAACK,EACC,CAAAC,GAAI,CACFQ,QAASjB,EAAQ,QAAU,OAC3Ba,SAAU,WACVK,KAAM,MACNC,MAAO,MACPC,IAAK,MACLC,OAAQ,MACRC,WAAY,YACZjB,MAAO,QACPkB,aAAc,OACfjB,SAEDH,EAACqB,EAAK,CACJC,UAAU,MACVC,QAAS,EACTjB,GAAI,CAAEQ,QAAS,OAAQU,eAAgB,SAAUC,WAAY,SAAUhB,OAAQ,iBAE9Eb,EAAMiB,YAIbb,EAACK,EAAG,CACFqB,UAAU,MACVC,IAAK/B,EAAMgC,MACXtB,GAAI,CAAEQ,QAAS,QAASN,MAAO,OAAQC,OAAQ,OAAQoB,UAAW,QAAST,aAAc,aAI/F"}