@skodaflow/web-library 7.13.1 → 7.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. package/cjs/components/backdrop/backdrop.d.ts +1 -2
  2. package/cjs/components/backdrop/backdrop.js.map +1 -1
  3. package/cjs/components/cardMenu/cardMenu.d.ts +1 -2
  4. package/cjs/components/cardMenu/cardMenu.js.map +1 -1
  5. package/cjs/components/cardMenu/styled/drawerStyled.d.ts +1 -1
  6. package/cjs/components/cardMenu/styled/drawerStyled.js +1 -1
  7. package/cjs/components/cardMenu/styled/drawerStyled.js.map +1 -1
  8. package/cjs/components/cardMenu/styled/popperStyled.d.ts +1 -1
  9. package/cjs/components/cardMenu/styled/popperStyled.js +1 -1
  10. package/cjs/components/cardMenu/styled/popperStyled.js.map +1 -1
  11. package/cjs/components/carousel/navigation.js +1 -1
  12. package/cjs/components/carousel/navigation.js.map +1 -1
  13. package/cjs/components/carousel/pagination.d.ts +5 -1
  14. package/cjs/components/carousel/pagination.js +1 -1
  15. package/cjs/components/carousel/pagination.js.map +1 -1
  16. package/cjs/components/chip/chipFocusVisibleStyled.d.ts +1 -1
  17. package/cjs/components/chip/chipFocusVisibleStyled.js +1 -1
  18. package/cjs/components/chip/chipFocusVisibleStyled.js.map +1 -1
  19. package/cjs/components/common/menuContainer.js +1 -1
  20. package/cjs/components/common/menuContainer.js.map +1 -1
  21. package/cjs/components/common/styled/buttonFocusVisibleStyled.d.ts +1 -1
  22. package/cjs/components/common/styled/buttonFocusVisibleStyled.js +1 -1
  23. package/cjs/components/common/styled/buttonFocusVisibleStyled.js.map +1 -1
  24. package/cjs/components/common/styled/formControlLabelStyled.d.ts +1 -1
  25. package/cjs/components/common/styled/formControlLabelStyled.js +1 -1
  26. package/cjs/components/common/styled/formControlLabelStyled.js.map +1 -1
  27. package/cjs/components/common/styled/helperTextContainerStyled.d.ts +1 -1
  28. package/cjs/components/common/styled/sliderValuesStyled.d.ts +1 -1
  29. package/cjs/components/common/styled/sliderValuesStyled.js +1 -1
  30. package/cjs/components/common/styled/sliderValuesStyled.js.map +1 -1
  31. package/cjs/components/customPickersActionBar/index.js +1 -1
  32. package/cjs/components/customPickersActionBar/index.js.map +1 -1
  33. package/cjs/components/grid/grid.d.ts +3 -100
  34. package/cjs/components/grid/grid.js.map +1 -1
  35. package/cjs/components/icon/filled/BatteryDischargeFilledIcon.d.ts +6 -0
  36. package/cjs/components/icon/filled/BatteryDischargeFilledIcon.js +2 -0
  37. package/cjs/components/icon/filled/BatteryDischargeFilledIcon.js.map +1 -0
  38. package/cjs/components/icon/filled/BicycleFilledIcon.d.ts +6 -0
  39. package/cjs/components/icon/filled/BicycleFilledIcon.js +2 -0
  40. package/cjs/components/icon/filled/BicycleFilledIcon.js.map +1 -0
  41. package/cjs/components/icon/filled/BoltDischargeFilledIcon.d.ts +6 -0
  42. package/cjs/components/icon/filled/BoltDischargeFilledIcon.js +2 -0
  43. package/cjs/components/icon/filled/BoltDischargeFilledIcon.js.map +1 -0
  44. package/cjs/components/icon/filled/BoltOffFilledIcon.d.ts +6 -0
  45. package/cjs/components/icon/filled/BoltOffFilledIcon.js +2 -0
  46. package/cjs/components/icon/filled/BoltOffFilledIcon.js.map +1 -0
  47. package/cjs/components/icon/filled/index.d.ts +4 -0
  48. package/cjs/components/icon/icon.definitions.js +1 -1
  49. package/cjs/components/icon/icon.definitions.js.map +1 -1
  50. package/cjs/components/icon/stroke/BatteryDischargeIcon.d.ts +6 -0
  51. package/cjs/components/icon/stroke/BatteryDischargeIcon.js +2 -0
  52. package/cjs/components/icon/stroke/BatteryDischargeIcon.js.map +1 -0
  53. package/cjs/components/icon/stroke/BicycleIcon.d.ts +6 -0
  54. package/cjs/components/icon/stroke/BicycleIcon.js +2 -0
  55. package/cjs/components/icon/stroke/BicycleIcon.js.map +1 -0
  56. package/cjs/components/icon/stroke/BoltDischargeIcon.d.ts +6 -0
  57. package/cjs/components/icon/stroke/BoltDischargeIcon.js +2 -0
  58. package/cjs/components/icon/stroke/BoltDischargeIcon.js.map +1 -0
  59. package/cjs/components/icon/stroke/BoltOffIcon.d.ts +6 -0
  60. package/cjs/components/icon/stroke/BoltOffIcon.js +2 -0
  61. package/cjs/components/icon/stroke/BoltOffIcon.js.map +1 -0
  62. package/cjs/components/icon/stroke/index.d.ts +4 -0
  63. package/cjs/components/label/label.d.ts +1 -1
  64. package/cjs/components/label/label.js +1 -1
  65. package/cjs/components/label/label.js.map +1 -1
  66. package/cjs/components/logo/Logo.d.ts +1 -1
  67. package/cjs/components/logo/Logo.js.map +1 -1
  68. package/cjs/components/mobileStepper/mobileStepperButton.js +1 -1
  69. package/cjs/components/mobileStepper/mobileStepperButton.js.map +1 -1
  70. package/cjs/components/search/search.js +1 -1
  71. package/cjs/components/search/search.js.map +1 -1
  72. package/cjs/components/segmentedControls/{segmentedControls.js → SegmentedControls.js} +1 -1
  73. package/cjs/components/segmentedControls/{segmentedControls.js.map → SegmentedControls.js.map} +1 -1
  74. package/cjs/components/segmentedControls/index.d.ts +1 -1
  75. package/cjs/components/stepper/model.d.ts +1 -3
  76. package/cjs/components/stepper/model.js.map +1 -1
  77. package/cjs/components/textAndCta/textAndCta.js +1 -1
  78. package/cjs/components/textAndCta/textAndCta.js.map +1 -1
  79. package/cjs/components/upload/UploadPreviewList.js +1 -1
  80. package/cjs/components/upload/UploadPreviewList.js.map +1 -1
  81. package/cjs/index.js +1 -1
  82. package/cjs/layout/Header/Header.js +1 -1
  83. package/cjs/layout/Header/Header.js.map +1 -1
  84. package/cjs/layout/Header/HeaderLanguageSelect.d.ts +1 -1
  85. package/cjs/layout/Header/HeaderLanguageSelect.js +1 -1
  86. package/cjs/layout/Header/HeaderLanguageSelect.js.map +1 -1
  87. package/cjs/layout/Header/HeaderNavigationHero.js +1 -1
  88. package/cjs/layout/Header/HeaderNavigationHero.js.map +1 -1
  89. package/cjs/layout/Header/HeaderOverheadItem.js +1 -1
  90. package/cjs/layout/Header/HeaderOverheadItem.js.map +1 -1
  91. package/cjs/materialui/accordion/AccordionSummaryExpandIcon.js +1 -1
  92. package/cjs/materialui/accordion/AccordionSummaryExpandIcon.js.map +1 -1
  93. package/cjs/materialui/accordion/accordionSummary.theme.js +1 -1
  94. package/cjs/materialui/accordion/accordionSummary.theme.js.map +1 -1
  95. package/cjs/materialui/button/button.theme.js +1 -1
  96. package/cjs/materialui/button/button.theme.js.map +1 -1
  97. package/cjs/materialui/button/interactive.d.ts +2 -1
  98. package/cjs/materialui/button/interactive.js +1 -1
  99. package/cjs/materialui/button/interactive.js.map +1 -1
  100. package/cjs/materialui/card/Card.js +1 -1
  101. package/cjs/materialui/card/Card.js.map +1 -1
  102. package/cjs/materialui/card/FlippingCardContent.d.ts +2 -2
  103. package/cjs/materialui/card/FlippingCardContent.js +1 -1
  104. package/cjs/materialui/card/FlippingCardContent.js.map +1 -1
  105. package/cjs/materialui/card/card.theme.js +1 -1
  106. package/cjs/materialui/card/card.theme.js.map +1 -1
  107. package/cjs/materialui/chip/chip.theme.js +1 -1
  108. package/cjs/materialui/chip/chip.theme.js.map +1 -1
  109. package/cjs/materialui/fab/fab.theme.js +1 -1
  110. package/cjs/materialui/fab/fab.theme.js.map +1 -1
  111. package/cjs/materialui/iconButton/iconButton.theme.js +1 -1
  112. package/cjs/materialui/iconButton/iconButton.theme.js.map +1 -1
  113. package/cjs/materialui/skeleton/skeleton.theme.js +1 -1
  114. package/cjs/materialui/skeleton/skeleton.theme.js.map +1 -1
  115. package/cjs/materialui/slider/sliderValues.js +1 -1
  116. package/cjs/materialui/slider/sliderValues.js.map +1 -1
  117. package/cjs/materialui/stepper/StepLabelIcon.js +1 -1
  118. package/cjs/materialui/stepper/StepLabelIcon.js.map +1 -1
  119. package/cjs/materialui/stepper/stepper.theme.js +1 -1
  120. package/cjs/materialui/stepper/stepper.theme.js.map +1 -1
  121. package/{materialui/tabs/scrollButtonComponent.d.ts → cjs/materialui/tabs/ScrollButton.d.ts} +2 -1
  122. package/cjs/materialui/tabs/ScrollButton.js +2 -0
  123. package/cjs/materialui/tabs/ScrollButton.js.map +1 -0
  124. package/cjs/materialui/tabs/{tabComponent.d.ts → Tab.d.ts} +1 -1
  125. package/cjs/materialui/tabs/{tabComponent.js → Tab.js} +2 -2
  126. package/cjs/materialui/tabs/Tab.js.map +1 -0
  127. package/cjs/materialui/tabs/{tabPanel.d.ts → TabPanel.d.ts} +0 -4
  128. package/cjs/materialui/tabs/{tabPanel.js → TabPanel.js} +2 -2
  129. package/cjs/materialui/tabs/TabPanel.js.map +1 -0
  130. package/cjs/materialui/tabs/index.d.ts +3 -3
  131. package/cjs/materialui/tabs/tab.theme.js +1 -1
  132. package/cjs/materialui/tabs/tab.theme.js.map +1 -1
  133. package/cjs/materialui/tabs/tabs.theme.js +1 -1
  134. package/cjs/materialui/tabs/tabs.theme.js.map +1 -1
  135. package/cjs/materialui/textfield/textField.theme.js +1 -1
  136. package/cjs/materialui/textfield/textField.theme.js.map +1 -1
  137. package/cjs/node_modules/swiper/modules/keyboard.js +1 -1
  138. package/cjs/node_modules/swiper/modules/keyboard.js.map +1 -1
  139. package/cjs/node_modules/swiper/shared/ssr-window.esm.js.map +1 -1
  140. package/cjs/node_modules/swiper/shared/swiper-core.js +1 -1
  141. package/cjs/node_modules/swiper/shared/swiper-core.js.map +1 -1
  142. package/cjs/node_modules/swiper/swiper-react.js.map +1 -1
  143. package/cjs/organisms/cardPhotoFixed/cardPhotoFixed.js +1 -1
  144. package/cjs/organisms/cardPhotoFixed/cardPhotoFixed.js.map +1 -1
  145. package/cjs/organisms/carousel/styledComponents/styledCarouselHorizontal.d.ts +1 -1
  146. package/cjs/organisms/carousel/styledComponents/styledCarouselHorizontal.js +1 -1
  147. package/cjs/organisms/carousel/styledComponents/styledCarouselHorizontal.js.map +1 -1
  148. package/cjs/organisms/carousel/styledComponents/styledCarouselVertical.d.ts +1 -1
  149. package/cjs/organisms/carousel/styledComponents/styledCarouselVertical.js +1 -1
  150. package/cjs/organisms/carousel/styledComponents/styledCarouselVertical.js.map +1 -1
  151. package/cjs/organisms/carousel2/galleryCarousel/galleryCarousel.js +1 -1
  152. package/cjs/organisms/carousel2/galleryCarousel/galleryCarousel.js.map +1 -1
  153. package/cjs/organisms/carousel2/galleryCarousel/galleryCarouselItem.js +1 -1
  154. package/cjs/organisms/carousel2/galleryCarousel/galleryCarouselItem.js.map +1 -1
  155. package/cjs/organisms/carousel2/styledComponents/styledCarouselHorizontal.d.ts +1 -1
  156. package/cjs/organisms/common/menuCardComponent/menuCardComponent.d.ts +1 -2
  157. package/cjs/organisms/common/menuCardComponent/menuCardComponent.js +1 -1
  158. package/cjs/organisms/common/menuCardComponent/menuCardComponent.js.map +1 -1
  159. package/cjs/organisms/notification/NotificationCenterHeaderButton.js +1 -1
  160. package/cjs/organisms/notification/NotificationCenterHeaderButton.js.map +1 -1
  161. package/cjs/organisms/textCta/textCta.js +1 -1
  162. package/cjs/organisms/textCta/textCta.js.map +1 -1
  163. package/cjs/organisms/tile/tile.js +1 -1
  164. package/cjs/organisms/tile/tile.js.map +1 -1
  165. package/cjs/production/Button/Button.js +1 -1
  166. package/cjs/production/Button/Button.js.map +1 -1
  167. package/components/backdrop/backdrop.d.ts +1 -2
  168. package/components/backdrop/backdrop.js.map +1 -1
  169. package/components/cardMenu/cardMenu.d.ts +1 -2
  170. package/components/cardMenu/cardMenu.js.map +1 -1
  171. package/components/cardMenu/styled/drawerStyled.d.ts +1 -1
  172. package/components/cardMenu/styled/drawerStyled.js +1 -1
  173. package/components/cardMenu/styled/drawerStyled.js.map +1 -1
  174. package/components/cardMenu/styled/popperStyled.d.ts +1 -1
  175. package/components/cardMenu/styled/popperStyled.js +1 -1
  176. package/components/cardMenu/styled/popperStyled.js.map +1 -1
  177. package/components/carousel/navigation.js +1 -1
  178. package/components/carousel/navigation.js.map +1 -1
  179. package/components/carousel/pagination.d.ts +5 -1
  180. package/components/carousel/pagination.js +1 -1
  181. package/components/carousel/pagination.js.map +1 -1
  182. package/components/chip/chipFocusVisibleStyled.d.ts +1 -1
  183. package/components/chip/chipFocusVisibleStyled.js +1 -1
  184. package/components/chip/chipFocusVisibleStyled.js.map +1 -1
  185. package/components/common/menuContainer.js +1 -1
  186. package/components/common/menuContainer.js.map +1 -1
  187. package/components/common/styled/buttonFocusVisibleStyled.d.ts +1 -1
  188. package/components/common/styled/buttonFocusVisibleStyled.js +1 -1
  189. package/components/common/styled/buttonFocusVisibleStyled.js.map +1 -1
  190. package/components/common/styled/formControlLabelStyled.d.ts +1 -1
  191. package/components/common/styled/formControlLabelStyled.js +1 -1
  192. package/components/common/styled/formControlLabelStyled.js.map +1 -1
  193. package/components/common/styled/helperTextContainerStyled.d.ts +1 -1
  194. package/components/common/styled/sliderValuesStyled.d.ts +1 -1
  195. package/components/common/styled/sliderValuesStyled.js +1 -1
  196. package/components/common/styled/sliderValuesStyled.js.map +1 -1
  197. package/components/customPickersActionBar/index.js +1 -1
  198. package/components/customPickersActionBar/index.js.map +1 -1
  199. package/components/grid/grid.d.ts +3 -100
  200. package/components/grid/grid.js.map +1 -1
  201. package/components/icon/filled/BatteryDischargeFilledIcon.d.ts +6 -0
  202. package/components/icon/filled/BatteryDischargeFilledIcon.js +2 -0
  203. package/components/icon/filled/BatteryDischargeFilledIcon.js.map +1 -0
  204. package/components/icon/filled/BicycleFilledIcon.d.ts +6 -0
  205. package/components/icon/filled/BicycleFilledIcon.js +2 -0
  206. package/components/icon/filled/BicycleFilledIcon.js.map +1 -0
  207. package/components/icon/filled/BoltDischargeFilledIcon.d.ts +6 -0
  208. package/components/icon/filled/BoltDischargeFilledIcon.js +2 -0
  209. package/components/icon/filled/BoltDischargeFilledIcon.js.map +1 -0
  210. package/components/icon/filled/BoltOffFilledIcon.d.ts +6 -0
  211. package/components/icon/filled/BoltOffFilledIcon.js +2 -0
  212. package/components/icon/filled/BoltOffFilledIcon.js.map +1 -0
  213. package/components/icon/filled/index.d.ts +4 -0
  214. package/components/icon/icon.definitions.js +1 -1
  215. package/components/icon/icon.definitions.js.map +1 -1
  216. package/components/icon/stroke/BatteryDischargeIcon.d.ts +6 -0
  217. package/components/icon/stroke/BatteryDischargeIcon.js +2 -0
  218. package/components/icon/stroke/BatteryDischargeIcon.js.map +1 -0
  219. package/components/icon/stroke/BicycleIcon.d.ts +6 -0
  220. package/components/icon/stroke/BicycleIcon.js +2 -0
  221. package/components/icon/stroke/BicycleIcon.js.map +1 -0
  222. package/components/icon/stroke/BoltDischargeIcon.d.ts +6 -0
  223. package/components/icon/stroke/BoltDischargeIcon.js +2 -0
  224. package/components/icon/stroke/BoltDischargeIcon.js.map +1 -0
  225. package/components/icon/stroke/BoltOffIcon.d.ts +6 -0
  226. package/components/icon/stroke/BoltOffIcon.js +2 -0
  227. package/components/icon/stroke/BoltOffIcon.js.map +1 -0
  228. package/components/icon/stroke/index.d.ts +4 -0
  229. package/components/label/label.d.ts +1 -1
  230. package/components/label/label.js +1 -1
  231. package/components/label/label.js.map +1 -1
  232. package/components/logo/Logo.d.ts +1 -1
  233. package/components/logo/Logo.js.map +1 -1
  234. package/components/mobileStepper/mobileStepperButton.js +1 -1
  235. package/components/mobileStepper/mobileStepperButton.js.map +1 -1
  236. package/components/search/search.js +1 -1
  237. package/components/search/search.js.map +1 -1
  238. package/components/segmentedControls/{segmentedControls.js → SegmentedControls.js} +1 -1
  239. package/components/segmentedControls/{segmentedControls.js.map → SegmentedControls.js.map} +1 -1
  240. package/components/segmentedControls/index.d.ts +1 -1
  241. package/components/stepper/model.d.ts +1 -3
  242. package/components/stepper/model.js.map +1 -1
  243. package/components/textAndCta/textAndCta.js +1 -1
  244. package/components/textAndCta/textAndCta.js.map +1 -1
  245. package/components/upload/UploadPreviewList.js +1 -1
  246. package/components/upload/UploadPreviewList.js.map +1 -1
  247. package/index.js +1 -1
  248. package/layout/Header/Header.js +1 -1
  249. package/layout/Header/Header.js.map +1 -1
  250. package/layout/Header/HeaderLanguageSelect.d.ts +1 -1
  251. package/layout/Header/HeaderLanguageSelect.js +1 -1
  252. package/layout/Header/HeaderLanguageSelect.js.map +1 -1
  253. package/layout/Header/HeaderNavigationHero.js +1 -1
  254. package/layout/Header/HeaderNavigationHero.js.map +1 -1
  255. package/layout/Header/HeaderOverheadItem.js +1 -1
  256. package/layout/Header/HeaderOverheadItem.js.map +1 -1
  257. package/materialui/accordion/AccordionSummaryExpandIcon.js +1 -1
  258. package/materialui/accordion/AccordionSummaryExpandIcon.js.map +1 -1
  259. package/materialui/accordion/accordionSummary.theme.js +1 -1
  260. package/materialui/accordion/accordionSummary.theme.js.map +1 -1
  261. package/materialui/button/button.theme.js +1 -1
  262. package/materialui/button/button.theme.js.map +1 -1
  263. package/materialui/button/interactive.d.ts +2 -1
  264. package/materialui/button/interactive.js +1 -1
  265. package/materialui/button/interactive.js.map +1 -1
  266. package/materialui/card/Card.js +1 -1
  267. package/materialui/card/Card.js.map +1 -1
  268. package/materialui/card/FlippingCardContent.d.ts +2 -2
  269. package/materialui/card/FlippingCardContent.js +1 -1
  270. package/materialui/card/FlippingCardContent.js.map +1 -1
  271. package/materialui/card/card.theme.js +1 -1
  272. package/materialui/card/card.theme.js.map +1 -1
  273. package/materialui/chip/chip.theme.js +1 -1
  274. package/materialui/chip/chip.theme.js.map +1 -1
  275. package/materialui/fab/fab.theme.js +1 -1
  276. package/materialui/fab/fab.theme.js.map +1 -1
  277. package/materialui/iconButton/iconButton.theme.js +1 -1
  278. package/materialui/iconButton/iconButton.theme.js.map +1 -1
  279. package/materialui/skeleton/skeleton.theme.js +1 -1
  280. package/materialui/skeleton/skeleton.theme.js.map +1 -1
  281. package/materialui/slider/sliderValues.js +1 -1
  282. package/materialui/slider/sliderValues.js.map +1 -1
  283. package/materialui/stepper/StepLabelIcon.js +1 -1
  284. package/materialui/stepper/StepLabelIcon.js.map +1 -1
  285. package/materialui/stepper/stepper.theme.js +1 -1
  286. package/materialui/stepper/stepper.theme.js.map +1 -1
  287. package/{cjs/materialui/tabs/scrollButtonComponent.d.ts → materialui/tabs/ScrollButton.d.ts} +2 -1
  288. package/materialui/tabs/ScrollButton.js +2 -0
  289. package/materialui/tabs/ScrollButton.js.map +1 -0
  290. package/materialui/tabs/{tabComponent.d.ts → Tab.d.ts} +1 -1
  291. package/materialui/tabs/{tabComponent.js → Tab.js} +2 -2
  292. package/materialui/tabs/Tab.js.map +1 -0
  293. package/materialui/tabs/{tabPanel.d.ts → TabPanel.d.ts} +0 -4
  294. package/materialui/tabs/TabPanel.js +2 -0
  295. package/materialui/tabs/TabPanel.js.map +1 -0
  296. package/materialui/tabs/index.d.ts +3 -3
  297. package/materialui/tabs/tab.theme.js +1 -1
  298. package/materialui/tabs/tab.theme.js.map +1 -1
  299. package/materialui/tabs/tabs.theme.js +1 -1
  300. package/materialui/tabs/tabs.theme.js.map +1 -1
  301. package/materialui/textfield/textField.theme.js +1 -1
  302. package/materialui/textfield/textField.theme.js.map +1 -1
  303. package/organisms/cardPhotoFixed/cardPhotoFixed.js +1 -1
  304. package/organisms/cardPhotoFixed/cardPhotoFixed.js.map +1 -1
  305. package/organisms/carousel/styledComponents/styledCarouselHorizontal.d.ts +1 -1
  306. package/organisms/carousel/styledComponents/styledCarouselHorizontal.js +1 -1
  307. package/organisms/carousel/styledComponents/styledCarouselHorizontal.js.map +1 -1
  308. package/organisms/carousel/styledComponents/styledCarouselVertical.d.ts +1 -1
  309. package/organisms/carousel/styledComponents/styledCarouselVertical.js +1 -1
  310. package/organisms/carousel/styledComponents/styledCarouselVertical.js.map +1 -1
  311. package/organisms/carousel2/galleryCarousel/galleryCarousel.js +1 -1
  312. package/organisms/carousel2/galleryCarousel/galleryCarousel.js.map +1 -1
  313. package/organisms/carousel2/galleryCarousel/galleryCarouselItem.js +1 -1
  314. package/organisms/carousel2/galleryCarousel/galleryCarouselItem.js.map +1 -1
  315. package/organisms/carousel2/styledComponents/styledCarouselHorizontal.d.ts +1 -1
  316. package/organisms/common/menuCardComponent/menuCardComponent.d.ts +1 -2
  317. package/organisms/common/menuCardComponent/menuCardComponent.js +1 -1
  318. package/organisms/common/menuCardComponent/menuCardComponent.js.map +1 -1
  319. package/organisms/notification/NotificationCenterHeaderButton.js +1 -1
  320. package/organisms/notification/NotificationCenterHeaderButton.js.map +1 -1
  321. package/organisms/textCta/textCta.js +1 -1
  322. package/organisms/textCta/textCta.js.map +1 -1
  323. package/organisms/tile/tile.js +1 -1
  324. package/organisms/tile/tile.js.map +1 -1
  325. package/package.json +1 -1
  326. package/production/Button/Button.js +1 -1
  327. package/production/Button/Button.js.map +1 -1
  328. package/cjs/materialui/tabs/scrollButtonComponent.js +0 -2
  329. package/cjs/materialui/tabs/scrollButtonComponent.js.map +0 -1
  330. package/cjs/materialui/tabs/tabComponent.js.map +0 -1
  331. package/cjs/materialui/tabs/tabPanel.js.map +0 -1
  332. package/materialui/tabs/scrollButtonComponent.js +0 -2
  333. package/materialui/tabs/scrollButtonComponent.js.map +0 -1
  334. package/materialui/tabs/tabComponent.js.map +0 -1
  335. package/materialui/tabs/tabPanel.js +0 -2
  336. package/materialui/tabs/tabPanel.js.map +0 -1
  337. /package/cjs/components/segmentedControls/{segmentedControls.d.ts → SegmentedControls.d.ts} +0 -0
  338. /package/components/segmentedControls/{segmentedControls.d.ts → SegmentedControls.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoltDischargeIcon.js","sources":["../../../../src/components/icon/stroke/BoltDischargeIcon.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { SvgIcon, SvgIconProps } from '@mui/material';\n\n/**\n * Flow brand exclusive icon\n */\nexport const BoltDischargeIcon: React.FC<SvgIconProps> = forwardRef((props, ref) => {\n return (\n <SvgIcon viewBox=\"2 2 20 20\" ref={ref} {...props}>\n <path d=\"M19.4531 19.2656L21.5869 17.1084L21.7637 16.9297L21.9414 17.1074L22.5664 17.7334L22.7432 17.9102L18.8721 21.7812L18.6953 21.959L18.5186 21.7812L14.8232 18.0869L14.6465 17.9102L15.627 16.9297L15.8037 17.1084L17.9365 19.2656V13.75H19.4531V19.2656ZM11.9502 10.0801H18.75L8.91016 21.2803H6.4502L8.0498 13.8604H1.25L11.0898 2.66016H13.5498L11.9502 10.0801ZM4.62988 12.4199H10.0098L8.46973 19.4199L15.3701 11.5205H9.99023L11.5303 4.52051L4.62988 12.4199Z\" />\n </SvgIcon>\n );\n});\n"],"names":["BoltDischargeIcon","forwardRef","props","ref","_jsx","SvgIcon","Object","assign","viewBox","d"],"mappings":"mHAMa,MAAAA,EAA4CC,GAAW,CAACC,EAAOC,IAExEC,EAACC,EAAOC,OAAAC,OAAA,CAACC,QAAQ,YAAYL,IAAKA,GAASD,YACzCE,EAAM,OAAA,CAAAK,EAAE"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { SvgIconProps } from '@mui/material';
3
+ /**
4
+ * Flow brand exclusive icon
5
+ */
6
+ export declare const BoltOffIcon: React.FC<SvgIconProps>;
@@ -0,0 +1,2 @@
1
+ import{jsx as L}from"react/jsx-runtime";import{forwardRef as r}from"react";import{SvgIcon as t}from"@mui/material";const e=r(((r,e)=>L(t,Object.assign({viewBox:"2 2 20 20",ref:e},r,{children:L("path",{d:"M22.0452 3.03613L15.0012 10.0801H15.0198L13.5793 11.5205H13.5608L11.8254 13.2549L11.8206 13.2783L9.7229 15.376L9.72681 15.3535L2.96997 22.1113L1.69751 20.8389L8.67603 13.8604H3.25024L13.0901 2.66016H15.55L14.3606 8.1748L20.7727 1.76367L22.0452 3.03613ZM10.9104 21.2803H8.45044L9.02271 18.6221L11.1028 16.542L10.47 19.4199L17.3704 11.5205H16.1252L17.5657 10.0801H20.7502L10.9104 21.2803ZM6.63013 12.4199H10.1165L12.2649 10.2705L13.5305 4.52051L6.63013 12.4199Z"})}))));export{e as BoltOffIcon};
2
+ //# sourceMappingURL=BoltOffIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BoltOffIcon.js","sources":["../../../../src/components/icon/stroke/BoltOffIcon.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { SvgIcon, SvgIconProps } from '@mui/material';\n\n/**\n * Flow brand exclusive icon\n */\nexport const BoltOffIcon: React.FC<SvgIconProps> = forwardRef((props, ref) => {\n return (\n <SvgIcon viewBox=\"2 2 20 20\" ref={ref} {...props}>\n <path d=\"M22.0452 3.03613L15.0012 10.0801H15.0198L13.5793 11.5205H13.5608L11.8254 13.2549L11.8206 13.2783L9.7229 15.376L9.72681 15.3535L2.96997 22.1113L1.69751 20.8389L8.67603 13.8604H3.25024L13.0901 2.66016H15.55L14.3606 8.1748L20.7727 1.76367L22.0452 3.03613ZM10.9104 21.2803H8.45044L9.02271 18.6221L11.1028 16.542L10.47 19.4199L17.3704 11.5205H16.1252L17.5657 10.0801H20.7502L10.9104 21.2803ZM6.63013 12.4199H10.1165L12.2649 10.2705L13.5305 4.52051L6.63013 12.4199Z\" />\n </SvgIcon>\n );\n});\n"],"names":["BoltOffIcon","forwardRef","props","ref","_jsx","SvgIcon","Object","assign","viewBox","d"],"mappings":"mHAMa,MAAAA,EAAsCC,GAAW,CAACC,EAAOC,IAElEC,EAACC,EAAOC,OAAAC,OAAA,CAACC,QAAQ,YAAYL,IAAKA,GAASD,YACzCE,EAAM,OAAA,CAAAK,EAAE"}
@@ -55,11 +55,15 @@ export * from './BatteryHighVoltageIcon';
55
55
  export * from './BatteryOneThirdIcon';
56
56
  export * from './BatteryTwoThirdsIcon';
57
57
  export * from './BatteryChargingIcon';
58
+ export * from './BatteryDischargeIcon';
58
59
  export * from './BatteryErrorIcon';
59
60
  export * from './BatteryIcon';
60
61
  export * from './BellIcon';
62
+ export * from './BicycleIcon';
63
+ export * from './BoltDischargeIcon';
61
64
  export * from './BoltIcon';
62
65
  export * from './BoltMotionIcon';
66
+ export * from './BoltOffIcon';
63
67
  export * from './BonnetClosedIcon';
64
68
  export * from './BonnetOpenIcon';
65
69
  export * from './BookmarkIcon';
@@ -12,7 +12,7 @@ export interface GeneralLabelProps extends LabelBaseProps {
12
12
  export interface SimpleLabelProps extends LabelBaseProps {
13
13
  type?: 'simple';
14
14
  }
15
- export type FeatureVariants = 'primary' | 'neutral' | 'secondary';
15
+ export type FeatureVariants = 'primary' | 'neutral' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
16
16
  export interface FeatureLabelProps extends LabelBaseProps {
17
17
  type: 'feature';
18
18
  variant?: FeatureVariants;
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"tslib";import{jsx as r,jsxs as t}from"react/jsx-runtime";import{forwardRef as a,useMemo as s}from"react";import{Box as n,useTheme as o}from"@mui/material";import{CircleExclamationIcon as i}from"../icon/stroke/CircleExclamationIcon.js";import{CircleInformationIcon as c}from"../icon/stroke/CircleInformationIcon.js";import{getFocusRingStyle as l}from"../focusring/focusring.js";import{getInteractiveStyle as p}from"../../materialui/button/interactive.js";const b={display:"inline-flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"nowrap",flexShrink:"0",fontSize:"11px",lineHeight:"12px",letterSpacing:"3px",textTransform:"uppercase",fontWeight:"900",whiteSpace:"nowrap",textRendering:"geometricPrecision"},x=a(((t,a)=>{var{type:s,label:o,children:i,sx:c}=t,l=e(t,["type","label","children","sx"]);return r(n,Object.assign({ref:a,"data-testid":"Label-general",sx:Object.assign(Object.assign(Object.assign({},b),{color:e=>"dark"===e.palette.mode?"onSurface.os200":"onSurface.os600"}),c)},l,{children:o||i}))})),d=a(((t,a)=>{var{type:s,label:o,children:i,sx:c}=t,l=e(t,["type","label","children","sx"]);return r(n,Object.assign({ref:a,"data-testid":"Label-simple",sx:e=>Object.assign(Object.assign(Object.assign(Object.assign({},b),e.typography.list),{backgroundColor:"transparent.primary",color:"text.primary",p:"2px 10px"}),c)},l,{children:o||i}))})),g=a(((t,a)=>{var{type:s,label:o,children:i,variant:c="primary",sx:l}=t,p=e(t,["type","label","children","variant","sx"]);return r(n,Object.assign({ref:a,"data-testid":`Label-feature${c}`,sx:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b),{color:"onSurface.os0",backgroundColor:"brand.tertiary",padding:"4px 8px 4px 10px",borderRadius:"2px"}),"neutral"===c&&{backgroundColor:"onSurface.os600"}),"secondary"===c&&{backgroundColor:"brand.secondary",color:"brand.tertiary"}),l)},p,{children:o||i}))})),u=a(((t,a)=>{var{type:s,label:o,children:i,variant:c,sx:l,labelBoxProps:p,labelNextProps:x}=t,d=e(t,["type","label","children","variant","sx","labelBoxProps","labelNextProps"]);const g=p||{},{sx:u}=g,j=e(g,["sx"]),O=x||{},{sx:m}=O,f=e(O,["sx"]);return r(n,Object.assign({ref:a,"data-testid":"Label-promotional",sx:Object.assign(Object.assign(Object.assign({},b),{color:"brand.secondary",overflow:"hidden",borderRadius:"2px"}),l)},d,{children:r(n,Object.assign({sx:Object.assign({margin:"0 6px 0 -6px",transform:"skew(-21deg, 0deg)",backgroundColor:"brand.tertiary",position:"relative",borderRadius:"3px",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",zIndex:"100"},u)},j,{children:r(n,Object.assign({sx:Object.assign({fontSize:{xs:"12px",xl:"14px"},padding:{xs:"8px 10px 8px 16px",xl:"10px 14px 10px 20px"},letterSpacing:"1px",textTransform:"uppercase",lineHeight:"12px",fontWeight:"bold",transform:"skew(21deg, 0deg)"},m)},f,{children:o||i}))}))}))}));function j(e,r){return Object.assign(Object.assign({},e),{"&.MuiButtonBase-root":Object.assign({},p(e,r))})}const O=a(((a,p)=>{var{type:x,label:d,children:g,variant:u="positive",sx:O,iconProps:m,IconComponent:f,onClick:h}=a,y=e(a,["type","label","children","variant","sx","iconProps","IconComponent","onClick"]);const C=m||{},{sx:k}=C,v=e(C,["sx"]),w=s((()=>{switch(u){case"alert":case"warning":return i;default:return c}}),[u]),S=f||w,P=o();return t(n,Object.assign({ref:p,"data-testid":`Label-semantic${u}`,sx:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b),{gap:"6px",padding:"2px 8px 2px 4px",borderRadius:"4px",border:1,borderColor:"currentColor",transition:"transform 0.3s ease-out, color 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out, opacity 0.3s ease-out","&&.MuiButtonBase-root":Object.assign({},l(P,!0,1))}),j({color:"brand.primary",backgroundColor:"transparent.transparent"},{color:"brandHover.primary",backgroundColor:"transparent.primary"})),"alert"===u&&Object.assign({},j({color:"error.main",backgroundColor:"transparent.transparent"},{color:"error.dark",backgroundColor:"transparent.primary"}))),"warning"===u&&Object.assign({},j({color:"warning.main",backgroundColor:"transparent.transparent"},{color:"warning.dark",backgroundColor:"transparent.primary"}))),"info"===u&&Object.assign({},j({color:"info.main",backgroundColor:"transparent.transparent"},{color:"info.dark",backgroundColor:"transparent.primary"}))),O),onClick:h},y,{children:[r(S,Object.assign({"data-testid":`icon-${u}`,sx:Object.assign({fontSize:"18px"},k)},v)),d||g]}))})),m=a(((a,s)=>{var{type:o,label:i,children:c,variant:l="positive",labelPlacement:p="end",dotProps:x,sx:d}=a,g=e(a,["type","label","children","variant","labelPlacement","dotProps","sx"]);const u=x||{},{sx:j}=u,O=e(u,["sx"]);return t(n,Object.assign({ref:s,"data-testid":`Label-status${l}`,sx:e=>{var r;return Object.assign(Object.assign(Object.assign(Object.assign({},b),{color:"text.primary",flexDirection:null!==(r={start:"row-reverse",top:"column-reverse",bottom:"column"}[p])&&void 0!==r?r:"row",gap:1}),"indicator"===o&&e.typography.disclaimer1),d)}},"disabled"===l&&{disabled:!0,tabIndex:-1},g,{children:[r(n,Object.assign({sx:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({width:"10px",height:"10px"},"indicator"===o&&{width:"14px",height:"14px"}),{borderRadius:"50%",backgroundColor:"success.main"}),"warning"===l&&{backgroundColor:"warning.main"}),"alert"===l&&{backgroundColor:"error.main"}),"neutral"===l&&{backgroundColor:"onSurface.os500"}),"disabled"===l&&{backgroundColor:"disabled.secondary"}),j)},O)),i||c]}))})),f=a(((a,o)=>{var{type:i,label:c,children:l,variant:p="A+++",size:x="large",sx:d,labelBoxProps:g,labelNextProps:u}=a,j=e(a,["type","label","children","variant","size","sx","labelBoxProps","labelNextProps"]);const O=s((()=>({B:"#019A01",C:"#69CC00",D:"#FFCC01",E:"#F99601",F:"#FE6501",G:"#FF3100",H:"#2A78CD"})),[]),m=e=>O[e]||"#016703",f=g||{},{sx:h}=f,y=e(f,["sx"]),C=u||{},{sx:k}=C,v=e(C,["sx"]);return t(n,Object.assign({ref:o,"data-testid":`Label-CO2${p}`,sx:Object.assign(Object.assign({},b),d)},j,{children:[r(n,Object.assign({component:"span",sx:Object.assign(Object.assign(Object.assign({alignItems:"center",backgroundColor:m(p),boxSizing:"border-box",color:"surface.tertiary",display:"inline-flex",justifyContent:"flex-start",fontWeight:"700",height:{xs:"20px",xl:"22px"},fontSize:{xs:"12px",xl:"14px"}},"small"===x&&{fontSize:{xs:"10px",xl:"12px"},height:{xs:"16px",xl:"18px"}}),{padding:"0 5px",position:"relative",letterSpacing:"1px"}),h)},y,{children:c||l||p})),r(n,Object.assign({sx:Object.assign(Object.assign({content:'""',display:"block",width:"0",height:"0",borderStyle:"solid",borderColor:`transparent transparent transparent ${m(p)}`,borderWidth:{xs:"10px 0 10px 7px",lg:"11px 0 11px 8px"}},"small"===x&&{borderWidth:{xs:"8px 0 8px 5px",lg:"9px 0 9px 7px"}}),k)},v))]}))})),h=a(((e,t)=>{const a=s((()=>{switch(e.type){case"simple":return d;case"feature":return g;case"promotional":return u;case"semantic":return O;case"status":case"indicator":return m;case"CO2":return f;default:return x}}),[e.type]);return r(a,Object.assign({component:"span"},e,{ref:t}))})),y=a(((e,t)=>r(h,Object.assign({},e,{type:"feature",ref:t})))),C=a(((e,t)=>r(h,Object.assign({},e,{type:"status",ref:t})))),k=a(((e,t)=>r(h,Object.assign({},e,{type:"CO2",ref:t})))),v=a(((e,t)=>r(h,Object.assign({},e,{type:"promotional",ref:t})))),w=a(((e,t)=>r(h,Object.assign({},e,{ref:t}))));export{h as Label,k as LabelCO2,y as LabelFeature,w as LabelGeneral,v as LabelPromotional,C as LabelStatus};
1
+ import{__rest as e}from"tslib";import{jsx as r,jsxs as a}from"react/jsx-runtime";import{forwardRef as t,useMemo as s}from"react";import{Box as n,useTheme as o}from"@mui/material";import{CircleExclamationIcon as i}from"../icon/stroke/CircleExclamationIcon.js";import{CircleInformationIcon as c}from"../icon/stroke/CircleInformationIcon.js";import{getFocusRingStyle as l}from"../focusring/focusring.js";import{getInteractiveStyle as p}from"../../materialui/button/interactive.js";const b={display:"inline-flex",alignItems:"center",justifyContent:"flex-start",flexWrap:"nowrap",flexShrink:"0",fontSize:"11px",lineHeight:"12px",letterSpacing:"3px",textTransform:"uppercase",fontWeight:"900",whiteSpace:"nowrap",textRendering:"geometricPrecision"},d=t(((a,t)=>{var{type:s,label:o,children:i,sx:c}=a,l=e(a,["type","label","children","sx"]);return r(n,Object.assign({ref:t,"data-testid":"Label-general",sx:Object.assign(Object.assign(Object.assign({},b),{color:e=>"dark"===e.palette.mode?"onSurface.os200":"onSurface.os600"}),c)},l,{children:o||i}))})),g=t(((a,t)=>{var{type:s,label:o,children:i,sx:c}=a,l=e(a,["type","label","children","sx"]);return r(n,Object.assign({ref:t,"data-testid":"Label-simple",sx:e=>Object.assign(Object.assign(Object.assign(Object.assign({},b),e.typography.list),{backgroundColor:"transparent.primary",color:"text.primary",p:"2px 10px"}),c)},l,{children:o||i}))})),x=t(((a,t)=>{var{type:s,label:o,children:i,variant:c="primary",sx:l}=a,p=e(a,["type","label","children","variant","sx"]);return r(n,Object.assign({ref:t,"data-testid":`Label-feature${c}`,sx:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b),{color:"onSurface.os0",backgroundColor:"brand.tertiary",padding:"4px 8px 4px 10px",borderRadius:"2px"}),"neutral"===c&&{backgroundColor:"onSurface.os600"}),"secondary"===c&&{backgroundColor:"brand.secondary",color:"brand.tertiary"}),"error"===c&&{backgroundColor:"error.main"}),"info"===c&&{backgroundColor:"info.main"}),"warning"===c&&{backgroundColor:"warning.main"}),"success"===c&&{backgroundColor:"brand.primary"}),l)},p,{children:o||i}))})),u=t(((a,t)=>{var{type:s,label:o,children:i,variant:c,sx:l,labelBoxProps:p,labelNextProps:d}=a,g=e(a,["type","label","children","variant","sx","labelBoxProps","labelNextProps"]);const x=p||{},{sx:u}=x,j=e(x,["sx"]),O=d||{},{sx:m}=O,f=e(O,["sx"]);return r(n,Object.assign({ref:t,"data-testid":"Label-promotional",sx:Object.assign(Object.assign(Object.assign({},b),{color:"brand.secondary",overflow:"hidden",borderRadius:"2px"}),l)},g,{children:r(n,Object.assign({sx:Object.assign({margin:"0 6px 0 -6px",transform:"skew(-21deg, 0deg)",backgroundColor:"brand.tertiary",position:"relative",borderRadius:"3px",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",zIndex:"100"},u)},j,{children:r(n,Object.assign({sx:Object.assign({fontSize:{xs:"12px",xl:"14px"},padding:{xs:"8px 10px 8px 16px",xl:"10px 14px 10px 20px"},letterSpacing:"1px",textTransform:"uppercase",lineHeight:"12px",fontWeight:"bold",transform:"skew(21deg, 0deg)"},m)},f,{children:o||i}))}))}))}));function j(e,r){return Object.assign(Object.assign({},e),{"&.MuiButtonBase-root":Object.assign({},p(e,r))})}const O=t(((t,p)=>{var{type:d,label:g,children:x,variant:u="positive",sx:O,iconProps:m,IconComponent:f,onClick:h}=t,y=e(t,["type","label","children","variant","sx","iconProps","IconComponent","onClick"]);const C=m||{},{sx:k}=C,v=e(C,["sx"]),w=s((()=>{switch(u){case"alert":case"warning":return i;default:return c}}),[u]),S=f||w,P=o();return a(n,Object.assign({ref:p,"data-testid":`Label-semantic${u}`,sx:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b),{gap:"6px",padding:"2px 8px 2px 4px",borderRadius:"4px",border:1,borderColor:"currentColor",transition:"transform 0.3s ease-out, color 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out, opacity 0.3s ease-out","&&.MuiButtonBase-root":Object.assign({},l(P,!0,1))}),j({color:"brand.primary",backgroundColor:"transparent.transparent"},{color:"brandHover.primary",backgroundColor:"transparent.primary"})),"alert"===u&&Object.assign({},j({color:"error.main",backgroundColor:"transparent.transparent"},{color:"error.dark",backgroundColor:"transparent.primary"}))),"warning"===u&&Object.assign({},j({color:"warning.main",backgroundColor:"transparent.transparent"},{color:"warning.dark",backgroundColor:"transparent.primary"}))),"info"===u&&Object.assign({},j({color:"info.main",backgroundColor:"transparent.transparent"},{color:"info.dark",backgroundColor:"transparent.primary"}))),O),onClick:h},y,{children:[r(S,Object.assign({"data-testid":`icon-${u}`,sx:Object.assign({fontSize:"18px"},k)},v)),g||x]}))})),m=t(((t,s)=>{var{type:o,label:i,children:c,variant:l="positive",labelPlacement:p="end",dotProps:d,sx:g}=t,x=e(t,["type","label","children","variant","labelPlacement","dotProps","sx"]);const u=d||{},{sx:j}=u,O=e(u,["sx"]);return a(n,Object.assign({ref:s,"data-testid":`Label-status${l}`,sx:e=>{var r;return Object.assign(Object.assign(Object.assign(Object.assign({},b),{color:"text.primary",flexDirection:null!==(r={start:"row-reverse",top:"column-reverse",bottom:"column"}[p])&&void 0!==r?r:"row",gap:1}),"indicator"===o&&e.typography.disclaimer1),g)}},"disabled"===l&&{disabled:!0,tabIndex:-1},x,{children:[r(n,Object.assign({sx:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({width:"10px",height:"10px"},"indicator"===o&&{width:"14px",height:"14px"}),{borderRadius:"50%",backgroundColor:"success.main"}),"warning"===l&&{backgroundColor:"warning.main"}),"alert"===l&&{backgroundColor:"error.main"}),"neutral"===l&&{backgroundColor:"onSurface.os500"}),"disabled"===l&&{backgroundColor:"disabled.secondary"}),j)},O)),i||c]}))})),f=t(((t,o)=>{var{type:i,label:c,children:l,variant:p="A+++",size:d="large",sx:g,labelBoxProps:x,labelNextProps:u}=t,j=e(t,["type","label","children","variant","size","sx","labelBoxProps","labelNextProps"]);const O=s((()=>({B:"#019A01",C:"#69CC00",D:"#FFCC01",E:"#F99601",F:"#FE6501",G:"#FF3100",H:"#2A78CD"})),[]),m=e=>O[e]||"#016703",f=x||{},{sx:h}=f,y=e(f,["sx"]),C=u||{},{sx:k}=C,v=e(C,["sx"]);return a(n,Object.assign({ref:o,"data-testid":`Label-CO2${p}`,sx:Object.assign(Object.assign({},b),g)},j,{children:[r(n,Object.assign({component:"span",sx:Object.assign(Object.assign(Object.assign({alignItems:"center",backgroundColor:m(p),boxSizing:"border-box",color:"surface.tertiary",display:"inline-flex",justifyContent:"flex-start",fontWeight:"700",height:{xs:"20px",xl:"22px"},fontSize:{xs:"12px",xl:"14px"}},"small"===d&&{fontSize:{xs:"10px",xl:"12px"},height:{xs:"16px",xl:"18px"}}),{padding:"0 5px",position:"relative",letterSpacing:"1px"}),h)},y,{children:c||l||p})),r(n,Object.assign({sx:Object.assign(Object.assign({content:'""',display:"block",width:"0",height:"0",borderStyle:"solid",borderColor:`transparent transparent transparent ${m(p)}`,borderWidth:{xs:"10px 0 10px 7px",lg:"11px 0 11px 8px"}},"small"===d&&{borderWidth:{xs:"8px 0 8px 5px",lg:"9px 0 9px 7px"}}),k)},v))]}))})),h=t(((e,a)=>{const t=s((()=>{switch(e.type){case"simple":return g;case"feature":return x;case"promotional":return u;case"semantic":return O;case"status":case"indicator":return m;case"CO2":return f;default:return d}}),[e.type]);return r(t,Object.assign({component:"span"},e,{ref:a}))})),y=t(((e,a)=>r(h,Object.assign({},e,{type:"feature",ref:a})))),C=t(((e,a)=>r(h,Object.assign({},e,{type:"status",ref:a})))),k=t(((e,a)=>r(h,Object.assign({},e,{type:"CO2",ref:a})))),v=t(((e,a)=>r(h,Object.assign({},e,{type:"promotional",ref:a})))),w=t(((e,a)=>r(h,Object.assign({},e,{ref:a}))));export{h as Label,k as LabelCO2,y as LabelFeature,w as LabelGeneral,v as LabelPromotional,C as LabelStatus};
2
2
  //# sourceMappingURL=label.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"label.js","sources":["../../../src/components/label/label.tsx"],"sourcesContent":["import React, { ReactNode, useMemo, forwardRef, ElementType } from 'react';\nimport { Box, BoxProps, CSSObject, SvgIconProps, useTheme } from '@mui/material';\nimport { CircleExclamationIcon } from '@/src/components/icon/stroke/CircleExclamationIcon';\nimport { CircleInformationIcon } from '@/src/components/icon/stroke/CircleInformationIcon';\nimport { getFocusRingStyle } from '@/src/components/focusring/focusring';\nimport { getInteractiveStyle } from '@/src/materialui/button/interactive';\n\nexport interface LabelBaseProps extends BoxProps<ElementType> {\n /**\n * Content to be rendered inside Label, alternatively children are used\n */\n label?: ReactNode;\n}\n\nexport interface GeneralLabelProps extends LabelBaseProps {\n type?: 'general';\n}\n\nexport interface SimpleLabelProps extends LabelBaseProps {\n type?: 'simple';\n}\n\nexport type FeatureVariants = 'primary' | 'neutral' | 'secondary';\nexport interface FeatureLabelProps extends LabelBaseProps {\n type: 'feature';\n variant?: FeatureVariants;\n}\n\nexport type PromotionalVariants = 'small' | 'large';\nexport interface PromotionalLabelProps extends LabelBaseProps {\n type: 'promotional';\n /**\n * @deprecated no longer has any effect\n */\n variant?: PromotionalVariants;\n labelBoxProps?: BoxProps<ElementType>;\n labelNextProps?: BoxProps<ElementType>;\n}\n\nexport type SemanticVariants = 'positive' | 'info' | 'warning' | 'alert';\nexport interface SemanticLabelProps extends LabelBaseProps {\n type: 'semantic';\n variant?: SemanticVariants;\n iconProps?: SvgIconProps;\n IconComponent?: ElementType<SvgIconProps>;\n}\n\nexport type StatusVariants = 'positive' | 'warning' | 'alert' | 'neutral' | 'disabled';\nexport interface StatusLabelProps extends LabelBaseProps {\n type: 'status' | 'indicator';\n variant?: StatusVariants;\n dotProps?: BoxProps<ElementType>;\n labelPlacement?: 'end' | 'start' | 'top' | 'bottom';\n}\n\nexport type CO2Variants = 'A+++' | 'A++' | 'A+' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G';\nexport interface CO2LabelProps extends LabelBaseProps {\n type: 'CO2';\n variant?: CO2Variants;\n size?: 'small' | 'large';\n labelBoxProps?: BoxProps<ElementType>;\n labelNextProps?: BoxProps<ElementType>;\n}\n\nexport type LabelProps =\n | GeneralLabelProps\n | SimpleLabelProps\n | FeatureLabelProps\n | PromotionalLabelProps\n | SemanticLabelProps\n | StatusLabelProps\n | CO2LabelProps;\n\n// Shared style for all variants\nconst baseSx: CSSObject = {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'flex-start',\n flexWrap: 'nowrap',\n flexShrink: '0',\n // font\n fontSize: '11px',\n lineHeight: '12px',\n letterSpacing: '3px',\n textTransform: 'uppercase',\n fontWeight: '900',\n whiteSpace: 'nowrap',\n textRendering: 'geometricPrecision',\n};\n\nconst GeneralVariant: React.FC<GeneralLabelProps> = forwardRef(({ type: _, label, children, sx, ...rest }, ref) => (\n <Box\n ref={ref}\n data-testid=\"Label-general\"\n sx={{\n ...baseSx,\n color: (theme) => (theme.palette.mode === 'dark' ? 'onSurface.os200' : 'onSurface.os600'),\n ...sx,\n }}\n {...rest}\n >\n {label || children}\n </Box>\n));\n\nconst SimpleVariant: React.FC<SimpleLabelProps> = forwardRef(({ type: _, label, children, sx, ...rest }, ref) => (\n <Box\n ref={ref}\n data-testid=\"Label-simple\"\n sx={(theme) => ({\n ...baseSx,\n ...theme.typography.list,\n backgroundColor: 'transparent.primary',\n color: 'text.primary',\n p: '2px 10px',\n ...sx,\n })}\n {...rest}\n >\n {label || children}\n </Box>\n));\n\nconst FeatureVariant: React.FC<FeatureLabelProps> = forwardRef(\n ({ type: _, label, children, variant = 'primary', sx, ...rest }, ref) => (\n <Box\n ref={ref}\n data-testid={`Label-feature${variant}`}\n sx={{\n ...baseSx,\n color: 'onSurface.os0',\n backgroundColor: 'brand.tertiary',\n padding: '4px 8px 4px 10px',\n borderRadius: '2px',\n ...(variant === 'neutral' && {\n backgroundColor: 'onSurface.os600',\n }),\n ...(variant === 'secondary' && {\n backgroundColor: 'brand.secondary',\n color: 'brand.tertiary',\n }),\n ...sx,\n }}\n {...rest}\n >\n {label || children}\n </Box>\n ),\n);\n\nconst PromotionalVariant: React.FC<PromotionalLabelProps> = forwardRef(\n ({ type: _, label, children, variant, sx, labelBoxProps, labelNextProps, ...rest }, ref) => {\n const { sx: labelBoxSx, ...restLabelBox } = labelBoxProps || {};\n const { sx: labelNextSx, ...restLabelNext } = labelNextProps || {};\n\n return (\n <Box\n ref={ref}\n data-testid=\"Label-promotional\"\n sx={{\n ...baseSx,\n color: 'brand.secondary',\n overflow: 'hidden',\n borderRadius: '2px',\n ...sx,\n }}\n {...rest}\n >\n <Box\n sx={{\n margin: '0 6px 0 -6px',\n transform: 'skew(-21deg, 0deg)',\n backgroundColor: 'brand.tertiary',\n position: 'relative',\n borderRadius: '3px',\n display: 'inline-flex',\n alignItems: 'flex-start',\n justifyContent: 'center',\n zIndex: '100',\n ...labelBoxSx,\n }}\n {...restLabelBox}\n >\n <Box\n sx={{\n fontSize: { xs: '12px', xl: '14px' },\n padding: { xs: '8px 10px 8px 16px', xl: '10px 14px 10px 20px' },\n letterSpacing: '1px',\n textTransform: 'uppercase',\n lineHeight: '12px',\n fontWeight: 'bold',\n transform: 'skew(21deg, 0deg)',\n ...labelNextSx,\n }}\n {...restLabelNext}\n >\n {label || children}\n </Box>\n </Box>\n </Box>\n );\n },\n);\n\n/**\n * Wrapper around getInteractiveStyle() function to provide interactive style\n * only for label that is actually a button\n */\nfunction getLabelInteractiveStyle(defaultStyle: CSSObject, hoverStyle: CSSObject): CSSObject {\n return {\n ...defaultStyle,\n '&.MuiButtonBase-root': {\n ...getInteractiveStyle(defaultStyle, hoverStyle),\n },\n };\n}\n\nconst SemanticVariant: React.FC<SemanticLabelProps> = forwardRef(\n ({ type: _, label, children, variant = 'positive', sx, iconProps, IconComponent, onClick, ...rest }, ref) => {\n const { sx: iconSx, ...restIconProps } = iconProps || {};\n const VariantIconComponent = useMemo(() => {\n switch (variant) {\n case 'alert':\n case 'warning':\n return CircleExclamationIcon;\n case 'info':\n case 'positive':\n default:\n return CircleInformationIcon;\n }\n }, [variant]);\n const SemanticIcon = IconComponent || VariantIconComponent;\n const theme = useTheme();\n\n return (\n <Box\n ref={ref}\n data-testid={`Label-semantic${variant}`}\n sx={{\n ...baseSx,\n gap: '6px',\n padding: '2px 8px 2px 4px',\n borderRadius: '4px',\n border: 1,\n borderColor: 'currentColor',\n transition:\n 'transform 0.3s ease-out, color 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out, opacity 0.3s ease-out',\n // clickable style\n '&&.MuiButtonBase-root': {\n // focused style\n ...getFocusRingStyle(theme, true, 1),\n },\n // default, positive\n ...getLabelInteractiveStyle(\n {\n color: 'brand.primary',\n backgroundColor: 'transparent.transparent',\n },\n {\n color: 'brandHover.primary',\n backgroundColor: 'transparent.primary',\n },\n ),\n ...(variant === 'alert' && {\n ...getLabelInteractiveStyle(\n {\n color: 'error.main',\n backgroundColor: 'transparent.transparent',\n },\n {\n color: 'error.dark',\n backgroundColor: 'transparent.primary',\n },\n ),\n }),\n ...(variant === 'warning' && {\n ...getLabelInteractiveStyle(\n {\n color: 'warning.main',\n backgroundColor: 'transparent.transparent',\n },\n {\n color: 'warning.dark',\n backgroundColor: 'transparent.primary',\n },\n ),\n }),\n ...(variant === 'info' && {\n ...getLabelInteractiveStyle(\n {\n color: 'info.main',\n backgroundColor: 'transparent.transparent',\n },\n {\n color: 'info.dark',\n backgroundColor: 'transparent.primary',\n },\n ),\n }),\n ...sx,\n }}\n onClick={onClick}\n {...rest}\n >\n <SemanticIcon data-testid={`icon-${variant}`} sx={{ fontSize: '18px', ...iconSx }} {...restIconProps} />\n {label || children}\n </Box>\n );\n },\n);\n\nconst StatusVariant: React.FC<StatusLabelProps> = forwardRef(\n ({ type, label, children, variant = 'positive', labelPlacement = 'end', dotProps, sx, ...rest }, ref) => {\n const { sx: dotSx, ...restDot } = dotProps || {};\n\n return (\n <Box\n ref={ref}\n data-testid={`Label-status${variant}`}\n sx={(theme) => ({\n ...baseSx,\n color: 'text.primary',\n flexDirection: { start: 'row-reverse', top: 'column-reverse', bottom: 'column' }[labelPlacement] ?? 'row',\n gap: 1,\n ...(type === 'indicator' && theme.typography.disclaimer1),\n ...sx,\n })}\n {...(variant === 'disabled' && {\n disabled: true,\n tabIndex: -1,\n })}\n {...rest}\n >\n <Box\n sx={{\n width: '10px',\n height: '10px',\n ...(type === 'indicator' && {\n width: '14px',\n height: '14px',\n }),\n borderRadius: '50%',\n backgroundColor: 'success.main',\n ...(variant === 'warning' && {\n backgroundColor: 'warning.main',\n }),\n ...(variant === 'alert' && {\n backgroundColor: 'error.main',\n }),\n ...(variant === 'neutral' && {\n backgroundColor: 'onSurface.os500',\n }),\n ...(variant === 'disabled' && {\n backgroundColor: 'disabled.secondary',\n }),\n ...dotSx,\n }}\n {...restDot}\n />\n {label || children}\n </Box>\n );\n },\n);\n\nconst CO2Variant: React.FC<CO2LabelProps> = forwardRef(\n ({ type: _, label, children, variant = 'A+++', size = 'large', sx, labelBoxProps, labelNextProps, ...rest }, ref) => {\n const colorMap = useMemo(\n () => ({\n B: '#019A01',\n C: '#69CC00',\n D: '#FFCC01',\n E: '#F99601',\n F: '#FE6501',\n G: '#FF3100',\n H: '#2A78CD',\n }),\n [],\n );\n const getColor = (_variant: string) => colorMap[_variant] || '#016703';\n\n const { sx: labelBoxSx, ...restLabelBox } = labelBoxProps || {};\n const { sx: labelNextSx, ...restLabelNext } = labelNextProps || {};\n\n return (\n <Box\n ref={ref}\n data-testid={`Label-CO2${variant}`}\n sx={{\n ...baseSx,\n ...sx,\n }}\n {...rest}\n >\n <Box\n component=\"span\"\n sx={{\n alignItems: 'center',\n backgroundColor: getColor(variant),\n boxSizing: 'border-box',\n color: 'surface.tertiary',\n display: 'inline-flex',\n justifyContent: 'flex-start',\n fontWeight: '700',\n height: { xs: '20px', xl: '22px' },\n fontSize: { xs: '12px', xl: '14px' },\n ...(size === 'small' && {\n fontSize: { xs: '10px', xl: '12px' },\n height: { xs: '16px', xl: '18px' },\n }),\n padding: '0 5px',\n position: 'relative',\n letterSpacing: '1px',\n ...labelBoxSx,\n }}\n {...restLabelBox}\n >\n {label || children || variant}\n </Box>\n <Box\n sx={{\n content: '\"\"',\n display: 'block',\n width: '0',\n height: '0',\n borderStyle: 'solid',\n borderColor: `transparent transparent transparent ${getColor(variant)}`,\n borderWidth: {\n xs: `10px 0 10px 7px`,\n lg: `11px 0 11px 8px`,\n },\n ...(size === 'small' && {\n borderWidth: {\n xs: '8px 0 8px 5px',\n lg: '9px 0 9px 7px',\n },\n }),\n ...labelNextSx,\n }}\n {...restLabelNext}\n />\n </Box>\n );\n },\n);\n\nexport const Label: React.FC<LabelProps> = forwardRef((props, ref) => {\n const LabelComponent = useMemo<React.FC<LabelProps>>(() => {\n switch (props.type) {\n case 'simple':\n return SimpleVariant;\n case 'feature':\n return FeatureVariant;\n case 'promotional':\n return PromotionalVariant;\n case 'semantic':\n return SemanticVariant;\n case 'status':\n case 'indicator':\n return StatusVariant;\n case 'CO2':\n return CO2Variant;\n case 'general':\n default:\n return GeneralVariant;\n }\n }, [props.type]);\n\n return <LabelComponent component=\"span\" {...props} ref={ref} />;\n});\n\n/**\n * @deprecated Use <Label type=\"feature\" /> instead.\n */\nexport const LabelFeature: React.FC<Omit<FeatureLabelProps, 'type'>> = forwardRef((props, ref) => {\n return <Label {...props} type=\"feature\" ref={ref} />;\n});\n\n/**\n * @deprecated Use <Label type=\"status\" /> instead.\n */\nexport const LabelStatus: React.FC<Omit<StatusLabelProps, 'type'>> = forwardRef((props, ref) => {\n return <Label {...props} type=\"status\" ref={ref} />;\n});\n\n/**\n * @deprecated Use <Label type=\"CO2\" /> instead.\n */\nexport const LabelCO2: React.FC<Omit<CO2LabelProps, 'type'>> = forwardRef((props, ref) => {\n return <Label {...props} type=\"CO2\" ref={ref} />;\n});\n\n/**\n * @deprecated Use <Label type=\"promotional\" /> instead.\n */\nexport const LabelPromotional: React.FC<Omit<PromotionalLabelProps, 'type'>> = forwardRef((props, ref) => {\n return <Label {...props} type=\"promotional\" ref={ref} />;\n});\n\n/**\n * @deprecated Use <Label type=\"general\" /> instead.\n */\nexport const LabelGeneral: React.FC<Omit<GeneralLabelProps, 'type'>> = forwardRef((props, ref) => {\n return <Label {...props} ref={ref} />;\n});\n"],"names":["baseSx","display","alignItems","justifyContent","flexWrap","flexShrink","fontSize","lineHeight","letterSpacing","textTransform","fontWeight","whiteSpace","textRendering","GeneralVariant","forwardRef","_a","ref","type","_","label","children","sx","rest","__rest","_jsx","Box","Object","assign","color","theme","palette","mode","SimpleVariant","typography","list","backgroundColor","p","FeatureVariant","variant","padding","borderRadius","PromotionalVariant","labelBoxProps","labelNextProps","_b","labelBoxSx","restLabelBox","_c","labelNextSx","restLabelNext","overflow","margin","transform","position","zIndex","xs","xl","getLabelInteractiveStyle","defaultStyle","hoverStyle","getInteractiveStyle","SemanticVariant","iconProps","IconComponent","onClick","iconSx","restIconProps","VariantIconComponent","useMemo","CircleExclamationIcon","CircleInformationIcon","SemanticIcon","useTheme","_jsxs","gap","border","borderColor","transition","getFocusRingStyle","StatusVariant","labelPlacement","dotProps","dotSx","restDot","flexDirection","start","top","bottom","disclaimer1","disabled","tabIndex","width","height","CO2Variant","size","colorMap","B","C","D","E","F","G","H","getColor","_variant","component","boxSizing","content","borderStyle","borderWidth","lg","Label","props","LabelComponent","LabelFeature","LabelStatus","LabelCO2","LabelPromotional","LabelGeneral"],"mappings":"8dA0EA,MAAMA,EAAoB,CACxBC,QAAS,cACTC,WAAY,SACZC,eAAgB,aAChBC,SAAU,SACVC,WAAY,IAEZC,SAAU,OACVC,WAAY,OACZC,cAAe,MACfC,cAAe,YACfC,WAAY,MACZC,WAAY,SACZC,cAAe,sBAGXC,EAA8CC,GAAW,CAACC,EAA2CC,KAA3C,IAAEC,KAAMC,EAACC,MAAEA,EAAKC,SAAEA,EAAQC,GAAEA,GAAaN,EAANO,EAAIC,EAAAR,EAAvC,kCAAmD,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G,GAAW,CAACkG,EAAOhG,KAC5D,MAAMiG,EAAiB7C,GAA8B,KACnD,OAAQ4C,EAAM/F,MACZ,IAAK,SACH,OAAOe,EACT,IAAK,UACH,OAAOK,EACT,IAAK,cACH,OAAOI,EACT,IAAK,WACH,OAAOoB,EACT,IAAK,SACL,IAAK,YACH,OAAOkB,EACT,IAAK,MACH,OAAOc,EAET,QACE,OAAOhF,KAEV,CAACmG,EAAM/F,OAEV,OAAOO,EAACyF,EAAevF,OAAAC,OAAA,CAAA8E,UAAU,QAAWO,EAAO,CAAAhG,IAAKA,IAAO,IAMpDkG,EAA0DpG,GAAW,CAACkG,EAAOhG,IACjFQ,EAACuF,EAAUrF,OAAAC,OAAA,CAAA,EAAAqF,EAAO,CAAA/F,KAAK,UAAUD,IAAKA,OAMlCmG,EAAwDrG,GAAW,CAACkG,EAAOhG,IAC/EQ,EAACuF,EAAUrF,OAAAC,OAAA,CAAA,EAAAqF,EAAO,CAAA/F,KAAK,SAASD,IAAKA,OAMjCoG,EAAkDtG,GAAW,CAACkG,EAAOhG,IACzEQ,EAACuF,EAAUrF,OAAAC,OAAA,CAAA,EAAAqF,EAAO,CAAA/F,KAAK,MAAMD,IAAKA,OAM9BqG,EAAkEvG,GAAW,CAACkG,EAAOhG,IACzFQ,EAACuF,EAAUrF,OAAAC,OAAA,CAAA,EAAAqF,EAAO,CAAA/F,KAAK,cAAcD,IAAKA,OAMtCsG,EAA0DxG,GAAW,CAACkG,EAAOhG,IACjFQ,EAACuF,EAAUrF,OAAAC,OAAA,GAAAqF,GAAOhG,IAAKA"}
1
+ {"version":3,"file":"label.js","sources":["../../../src/components/label/label.tsx"],"sourcesContent":["import React, { ReactNode, useMemo, forwardRef, ElementType } from 'react';\nimport { Box, BoxProps, CSSObject, SvgIconProps, useTheme } from '@mui/material';\nimport { CircleExclamationIcon } from '@/src/components/icon/stroke/CircleExclamationIcon';\nimport { CircleInformationIcon } from '@/src/components/icon/stroke/CircleInformationIcon';\nimport { getFocusRingStyle } from '@/src/components/focusring/focusring';\nimport { getInteractiveStyle } from '@/src/materialui/button/interactive';\n\nexport interface LabelBaseProps extends BoxProps<ElementType> {\n /**\n * Content to be rendered inside Label, alternatively children are used\n */\n label?: ReactNode;\n}\n\nexport interface GeneralLabelProps extends LabelBaseProps {\n type?: 'general';\n}\n\nexport interface SimpleLabelProps extends LabelBaseProps {\n type?: 'simple';\n}\n\nexport type FeatureVariants = 'primary' | 'neutral' | 'secondary' | 'error' | 'info' | 'success' | 'warning';\nexport interface FeatureLabelProps extends LabelBaseProps {\n type: 'feature';\n variant?: FeatureVariants;\n}\n\nexport type PromotionalVariants = 'small' | 'large';\nexport interface PromotionalLabelProps extends LabelBaseProps {\n type: 'promotional';\n /**\n * @deprecated no longer has any effect\n */\n variant?: PromotionalVariants;\n labelBoxProps?: BoxProps<ElementType>;\n labelNextProps?: BoxProps<ElementType>;\n}\n\nexport type SemanticVariants = 'positive' | 'info' | 'warning' | 'alert';\nexport interface SemanticLabelProps extends LabelBaseProps {\n type: 'semantic';\n variant?: SemanticVariants;\n iconProps?: SvgIconProps;\n IconComponent?: ElementType<SvgIconProps>;\n}\n\nexport type StatusVariants = 'positive' | 'warning' | 'alert' | 'neutral' | 'disabled';\nexport interface StatusLabelProps extends LabelBaseProps {\n type: 'status' | 'indicator';\n variant?: StatusVariants;\n dotProps?: BoxProps<ElementType>;\n labelPlacement?: 'end' | 'start' | 'top' | 'bottom';\n}\n\nexport type CO2Variants = 'A+++' | 'A++' | 'A+' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G';\nexport interface CO2LabelProps extends LabelBaseProps {\n type: 'CO2';\n variant?: CO2Variants;\n size?: 'small' | 'large';\n labelBoxProps?: BoxProps<ElementType>;\n labelNextProps?: BoxProps<ElementType>;\n}\n\nexport type LabelProps =\n | GeneralLabelProps\n | SimpleLabelProps\n | FeatureLabelProps\n | PromotionalLabelProps\n | SemanticLabelProps\n | StatusLabelProps\n | CO2LabelProps;\n\n// Shared style for all variants\nconst baseSx: CSSObject = {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'flex-start',\n flexWrap: 'nowrap',\n flexShrink: '0',\n // font\n fontSize: '11px',\n lineHeight: '12px',\n letterSpacing: '3px',\n textTransform: 'uppercase',\n fontWeight: '900',\n whiteSpace: 'nowrap',\n textRendering: 'geometricPrecision',\n};\n\nconst GeneralVariant: React.FC<GeneralLabelProps> = forwardRef(({ type: _, label, children, sx, ...rest }, ref) => (\n <Box\n ref={ref}\n data-testid=\"Label-general\"\n sx={{\n ...baseSx,\n color: (theme) => (theme.palette.mode === 'dark' ? 'onSurface.os200' : 'onSurface.os600'),\n ...sx,\n }}\n {...rest}\n >\n {label || children}\n </Box>\n));\n\nconst SimpleVariant: React.FC<SimpleLabelProps> = forwardRef(({ type: _, label, children, sx, ...rest }, ref) => (\n <Box\n ref={ref}\n data-testid=\"Label-simple\"\n sx={(theme) => ({\n ...baseSx,\n ...theme.typography.list,\n backgroundColor: 'transparent.primary',\n color: 'text.primary',\n p: '2px 10px',\n ...sx,\n })}\n {...rest}\n >\n {label || children}\n </Box>\n));\n\nconst FeatureVariant: React.FC<FeatureLabelProps> = forwardRef(\n ({ type: _, label, children, variant = 'primary', sx, ...rest }, ref) => (\n <Box\n ref={ref}\n data-testid={`Label-feature${variant}`}\n sx={{\n ...baseSx,\n color: 'onSurface.os0',\n backgroundColor: 'brand.tertiary',\n padding: '4px 8px 4px 10px',\n borderRadius: '2px',\n ...(variant === 'neutral' && {\n backgroundColor: 'onSurface.os600',\n }),\n // dark mode\n ...(variant === 'secondary' && {\n backgroundColor: 'brand.secondary',\n color: 'brand.tertiary',\n }),\n // semantic labels\n ...(variant === 'error' && {\n backgroundColor: 'error.main',\n }),\n ...(variant === 'info' && {\n backgroundColor: 'info.main',\n }),\n ...(variant === 'warning' && {\n backgroundColor: 'warning.main',\n }),\n ...(variant === 'success' && {\n backgroundColor: 'brand.primary',\n }),\n ...sx,\n }}\n {...rest}\n >\n {label || children}\n </Box>\n ),\n);\n\nconst PromotionalVariant: React.FC<PromotionalLabelProps> = forwardRef(\n ({ type: _, label, children, variant, sx, labelBoxProps, labelNextProps, ...rest }, ref) => {\n const { sx: labelBoxSx, ...restLabelBox } = labelBoxProps || {};\n const { sx: labelNextSx, ...restLabelNext } = labelNextProps || {};\n\n return (\n <Box\n ref={ref}\n data-testid=\"Label-promotional\"\n sx={{\n ...baseSx,\n color: 'brand.secondary',\n overflow: 'hidden',\n borderRadius: '2px',\n ...sx,\n }}\n {...rest}\n >\n <Box\n sx={{\n margin: '0 6px 0 -6px',\n transform: 'skew(-21deg, 0deg)',\n backgroundColor: 'brand.tertiary',\n position: 'relative',\n borderRadius: '3px',\n display: 'inline-flex',\n alignItems: 'flex-start',\n justifyContent: 'center',\n zIndex: '100',\n ...labelBoxSx,\n }}\n {...restLabelBox}\n >\n <Box\n sx={{\n fontSize: { xs: '12px', xl: '14px' },\n padding: { xs: '8px 10px 8px 16px', xl: '10px 14px 10px 20px' },\n letterSpacing: '1px',\n textTransform: 'uppercase',\n lineHeight: '12px',\n fontWeight: 'bold',\n transform: 'skew(21deg, 0deg)',\n ...labelNextSx,\n }}\n {...restLabelNext}\n >\n {label || children}\n </Box>\n </Box>\n </Box>\n );\n },\n);\n\n/**\n * Wrapper around getInteractiveStyle() function to provide interactive style\n * only for label that is actually a button\n */\nfunction getLabelInteractiveStyle(defaultStyle: CSSObject, hoverStyle: CSSObject): CSSObject {\n return {\n ...defaultStyle,\n '&.MuiButtonBase-root': {\n ...getInteractiveStyle(defaultStyle, hoverStyle),\n },\n };\n}\n\nconst SemanticVariant: React.FC<SemanticLabelProps> = forwardRef(\n ({ type: _, label, children, variant = 'positive', sx, iconProps, IconComponent, onClick, ...rest }, ref) => {\n const { sx: iconSx, ...restIconProps } = iconProps || {};\n const VariantIconComponent = useMemo(() => {\n switch (variant) {\n case 'alert':\n case 'warning':\n return CircleExclamationIcon;\n case 'info':\n case 'positive':\n default:\n return CircleInformationIcon;\n }\n }, [variant]);\n const SemanticIcon = IconComponent || VariantIconComponent;\n const theme = useTheme();\n\n return (\n <Box\n ref={ref}\n data-testid={`Label-semantic${variant}`}\n sx={{\n ...baseSx,\n gap: '6px',\n padding: '2px 8px 2px 4px',\n borderRadius: '4px',\n border: 1,\n borderColor: 'currentColor',\n transition:\n 'transform 0.3s ease-out, color 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out, box-shadow 0.3s ease-out, opacity 0.3s ease-out',\n // clickable style\n '&&.MuiButtonBase-root': {\n // focused style\n ...getFocusRingStyle(theme, true, 1),\n },\n // default, positive\n ...getLabelInteractiveStyle(\n {\n color: 'brand.primary',\n backgroundColor: 'transparent.transparent',\n },\n {\n color: 'brandHover.primary',\n backgroundColor: 'transparent.primary',\n },\n ),\n ...(variant === 'alert' && {\n ...getLabelInteractiveStyle(\n {\n color: 'error.main',\n backgroundColor: 'transparent.transparent',\n },\n {\n color: 'error.dark',\n backgroundColor: 'transparent.primary',\n },\n ),\n }),\n ...(variant === 'warning' && {\n ...getLabelInteractiveStyle(\n {\n color: 'warning.main',\n backgroundColor: 'transparent.transparent',\n },\n {\n color: 'warning.dark',\n backgroundColor: 'transparent.primary',\n },\n ),\n }),\n ...(variant === 'info' && {\n ...getLabelInteractiveStyle(\n {\n color: 'info.main',\n backgroundColor: 'transparent.transparent',\n },\n {\n color: 'info.dark',\n backgroundColor: 'transparent.primary',\n },\n ),\n }),\n ...sx,\n }}\n onClick={onClick}\n {...rest}\n >\n <SemanticIcon data-testid={`icon-${variant}`} sx={{ fontSize: '18px', ...iconSx }} {...restIconProps} />\n {label || children}\n </Box>\n );\n },\n);\n\nconst StatusVariant: React.FC<StatusLabelProps> = forwardRef(\n ({ type, label, children, variant = 'positive', labelPlacement = 'end', dotProps, sx, ...rest }, ref) => {\n const { sx: dotSx, ...restDot } = dotProps || {};\n\n return (\n <Box\n ref={ref}\n data-testid={`Label-status${variant}`}\n sx={(theme) => ({\n ...baseSx,\n color: 'text.primary',\n flexDirection: { start: 'row-reverse', top: 'column-reverse', bottom: 'column' }[labelPlacement] ?? 'row',\n gap: 1,\n ...(type === 'indicator' && theme.typography.disclaimer1),\n ...sx,\n })}\n {...(variant === 'disabled' && {\n disabled: true,\n tabIndex: -1,\n })}\n {...rest}\n >\n <Box\n sx={{\n width: '10px',\n height: '10px',\n ...(type === 'indicator' && {\n width: '14px',\n height: '14px',\n }),\n borderRadius: '50%',\n backgroundColor: 'success.main',\n ...(variant === 'warning' && {\n backgroundColor: 'warning.main',\n }),\n ...(variant === 'alert' && {\n backgroundColor: 'error.main',\n }),\n ...(variant === 'neutral' && {\n backgroundColor: 'onSurface.os500',\n }),\n ...(variant === 'disabled' && {\n backgroundColor: 'disabled.secondary',\n }),\n ...dotSx,\n }}\n {...restDot}\n />\n {label || children}\n </Box>\n );\n },\n);\n\nconst CO2Variant: React.FC<CO2LabelProps> = forwardRef(\n ({ type: _, label, children, variant = 'A+++', size = 'large', sx, labelBoxProps, labelNextProps, ...rest }, ref) => {\n const colorMap = useMemo(\n () => ({\n B: '#019A01',\n C: '#69CC00',\n D: '#FFCC01',\n E: '#F99601',\n F: '#FE6501',\n G: '#FF3100',\n H: '#2A78CD',\n }),\n [],\n );\n const getColor = (_variant: string) => colorMap[_variant] || '#016703';\n\n const { sx: labelBoxSx, ...restLabelBox } = labelBoxProps || {};\n const { sx: labelNextSx, ...restLabelNext } = labelNextProps || {};\n\n return (\n <Box\n ref={ref}\n data-testid={`Label-CO2${variant}`}\n sx={{\n ...baseSx,\n ...sx,\n }}\n {...rest}\n >\n <Box\n component=\"span\"\n sx={{\n alignItems: 'center',\n backgroundColor: getColor(variant),\n boxSizing: 'border-box',\n color: 'surface.tertiary',\n display: 'inline-flex',\n justifyContent: 'flex-start',\n fontWeight: '700',\n height: { xs: '20px', xl: '22px' },\n fontSize: { xs: '12px', xl: '14px' },\n ...(size === 'small' && {\n fontSize: { xs: '10px', xl: '12px' },\n height: { xs: '16px', xl: '18px' },\n }),\n padding: '0 5px',\n position: 'relative',\n letterSpacing: '1px',\n ...labelBoxSx,\n }}\n {...restLabelBox}\n >\n {label || children || variant}\n </Box>\n <Box\n sx={{\n content: '\"\"',\n display: 'block',\n width: '0',\n height: '0',\n borderStyle: 'solid',\n borderColor: `transparent transparent transparent ${getColor(variant)}`,\n borderWidth: {\n xs: `10px 0 10px 7px`,\n lg: `11px 0 11px 8px`,\n },\n ...(size === 'small' && {\n borderWidth: {\n xs: '8px 0 8px 5px',\n lg: '9px 0 9px 7px',\n },\n }),\n ...labelNextSx,\n }}\n {...restLabelNext}\n />\n </Box>\n );\n },\n);\n\nexport const Label: React.FC<LabelProps> = forwardRef((props, ref) => {\n const LabelComponent = useMemo<React.FC<LabelProps>>(() => {\n switch (props.type) {\n case 'simple':\n return SimpleVariant;\n case 'feature':\n return FeatureVariant;\n case 'promotional':\n return PromotionalVariant;\n case 'semantic':\n return SemanticVariant;\n case 'status':\n case 'indicator':\n return StatusVariant;\n case 'CO2':\n return CO2Variant;\n case 'general':\n default:\n return GeneralVariant;\n }\n }, [props.type]);\n\n return <LabelComponent component=\"span\" {...props} ref={ref} />;\n});\n\n/**\n * @deprecated Use <Label type=\"feature\" /> instead.\n */\nexport const LabelFeature: React.FC<Omit<FeatureLabelProps, 'type'>> = forwardRef((props, ref) => {\n return <Label {...props} type=\"feature\" ref={ref} />;\n});\n\n/**\n * @deprecated Use <Label type=\"status\" /> instead.\n */\nexport const LabelStatus: React.FC<Omit<StatusLabelProps, 'type'>> = forwardRef((props, ref) => {\n return <Label {...props} type=\"status\" ref={ref} />;\n});\n\n/**\n * @deprecated Use <Label type=\"CO2\" /> instead.\n */\nexport const LabelCO2: React.FC<Omit<CO2LabelProps, 'type'>> = forwardRef((props, ref) => {\n return <Label {...props} type=\"CO2\" ref={ref} />;\n});\n\n/**\n * @deprecated Use <Label type=\"promotional\" /> instead.\n */\nexport const LabelPromotional: React.FC<Omit<PromotionalLabelProps, 'type'>> = forwardRef((props, ref) => {\n return <Label {...props} type=\"promotional\" ref={ref} />;\n});\n\n/**\n * @deprecated Use <Label type=\"general\" /> instead.\n */\nexport const LabelGeneral: React.FC<Omit<GeneralLabelProps, 'type'>> = forwardRef((props, ref) => {\n return <Label {...props} ref={ref} />;\n});\n"],"names":["baseSx","display","alignItems","justifyContent","flexWrap","flexShrink","fontSize","lineHeight","letterSpacing","textTransform","fontWeight","whiteSpace","textRendering","GeneralVariant","forwardRef","_a","ref","type","_","label","children","sx","rest","__rest","_jsx","Box","Object","assign","color","theme","palette","mode","SimpleVariant","typography","list","backgroundColor","p","FeatureVariant","variant","padding","borderRadius","PromotionalVariant","labelBoxProps","labelNextProps","_b","labelBoxSx","restLabelBox","_c","labelNextSx","restLabelNext","overflow","margin","transform","position","zIndex","xs","xl","getLabelInteractiveStyle","defaultStyle","hoverStyle","getInteractiveStyle","SemanticVariant","iconProps","IconComponent","onClick","iconSx","restIconProps","VariantIconComponent","useMemo","CircleExclamationIcon","CircleInformationIcon","SemanticIcon","useTheme","_jsxs","gap","border","borderColor","transition","getFocusRingStyle","StatusVariant","labelPlacement","dotProps","dotSx","restDot","flexDirection","start","top","bottom","disclaimer1","disabled","tabIndex","width","height","CO2Variant","size","colorMap","B","C","D","E","F","G","H","getColor","_variant","component","boxSizing","content","borderStyle","borderWidth","lg","Label","props","LabelComponent","LabelFeature","LabelStatus","LabelCO2","LabelPromotional","LabelGeneral"],"mappings":"8dA0EA,MAAMA,EAAoB,CACxBC,QAAS,cACTC,WAAY,SACZC,eAAgB,aAChBC,SAAU,SACVC,WAAY,IAEZC,SAAU,OACVC,WAAY,OACZC,cAAe,MACfC,cAAe,YACfC,WAAY,MACZC,WAAY,SACZC,cAAe,sBAGXC,EAA8CC,GAAW,CAACC,EAA2CC,KAA3C,IAAEC,KAAMC,EAACC,MAAEA,EAAKC,SAAEA,EAAQC,GAAEA,GAAaN,EAANO,EAAIC,EAAAR,EAAvC,kCAAmD,OACjHS,EAACC,EAAGC,OAAAC,OAAA,CACFX,IAAKA,EACO,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EAASjE,KAC7DuE,YAAa,CACXtD,GAAI,kBACJuD,GAAI,oBAEO,UAAThB,GAAoB,CACtBe,YAAa,CACXtD,GAAI,gBACJuD,GAAI,mBAGL9D,IAEDC,OAEF,IAKC8D,EAA8BjG,GAAW,CAACkG,EAAOhG,KAC5D,MAAMiG,EAAiB7C,GAA8B,KACnD,OAAQ4C,EAAM/F,MACZ,IAAK,SACH,OAAOe,EACT,IAAK,UACH,OAAOK,EACT,IAAK,cACH,OAAOI,EACT,IAAK,WACH,OAAOoB,EACT,IAAK,SACL,IAAK,YACH,OAAOkB,EACT,IAAK,MACH,OAAOc,EAET,QACE,OAAOhF,KAEV,CAACmG,EAAM/F,OAEV,OAAOO,EAACyF,EAAevF,OAAAC,OAAA,CAAA8E,UAAU,QAAWO,EAAO,CAAAhG,IAAKA,IAAO,IAMpDkG,EAA0DpG,GAAW,CAACkG,EAAOhG,IACjFQ,EAACuF,EAAUrF,OAAAC,OAAA,CAAA,EAAAqF,EAAO,CAAA/F,KAAK,UAAUD,IAAKA,OAMlCmG,EAAwDrG,GAAW,CAACkG,EAAOhG,IAC/EQ,EAACuF,EAAUrF,OAAAC,OAAA,CAAA,EAAAqF,EAAO,CAAA/F,KAAK,SAASD,IAAKA,OAMjCoG,EAAkDtG,GAAW,CAACkG,EAAOhG,IACzEQ,EAACuF,EAAUrF,OAAAC,OAAA,CAAA,EAAAqF,EAAO,CAAA/F,KAAK,MAAMD,IAAKA,OAM9BqG,EAAkEvG,GAAW,CAACkG,EAAOhG,IACzFQ,EAACuF,EAAUrF,OAAAC,OAAA,CAAA,EAAAqF,EAAO,CAAA/F,KAAK,cAAcD,IAAKA,OAMtCsG,EAA0DxG,GAAW,CAACkG,EAAOhG,IACjFQ,EAACuF,EAAUrF,OAAAC,OAAA,GAAAqF,GAAOhG,IAAKA"}
@@ -21,6 +21,6 @@ export type LogoProps = {
21
21
  breakpoint?: number | Breakpoint;
22
22
  };
23
23
  /**
24
- * Component that renders Skoda logo. There are several variants of the logo. Design can be found here https://www.figma.com/file/8ct8rVAKCJyZmDmpjJuVlv/FLOW---Web-%2F-UI-1.10.0?node-id=9546%3A14370&mode=dev
24
+ * Component that renders Skoda logo. There are several variants of the logo. Design can be found here https://www.figma.com/file/8ct8rVAKCJyZmDmpjJuVlv/FLOW---Web---UI-1.10.0?node-id=9546%3A14370&mode=dev
25
25
  */
26
26
  export declare const Logo: (props: LogoProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.js","sources":["../../../src/components/logo/Logo.tsx"],"sourcesContent":["import { Box, BoxProps, Typography, SvgIcon, useTheme, useMediaQuery, Breakpoint } from '@mui/material';\nimport { useMemo } from 'react';\n\nexport type LogoProps = {\n /** Variant of logo that should be rendered */\n variant?: 'horizontal' | 'vertical' | 'symbol';\n /**\n * Specifies which color should be used, default value is brand emerald green (tertiary)\n * @note Do not use `string` anymore. Choose from default color names instead\n */\n color?: 'emerald' | 'electric' | 'white' | 'black' | string;\n /** Specifies width of component */\n width?: number | string;\n /** Specifies height of component */\n height?: number | string;\n /** Specifies the subbrand type that will be added next to the brand logo */\n subbrandVariant?: 'horizontal' | 'vertical';\n /** Actual subbrand text */\n subbrandText?: string;\n /**\n * Breakpoint for hiding the Subbrand variant\n */\n breakpoint?: number | Breakpoint;\n};\n\n/**\n * Component that renders Skoda logo. There are several variants of the logo. Design can be found here https://www.figma.com/file/8ct8rVAKCJyZmDmpjJuVlv/FLOW---Web-%2F-UI-1.10.0?node-id=9546%3A14370&mode=dev\n */\nexport const Logo = (props: LogoProps) => {\n const { variant, color, width, height, subbrandText, subbrandVariant = 'horizontal', breakpoint = 'lg' } = props;\n\n const theme = useTheme();\n const matches = useMediaQuery(theme.breakpoints.down(breakpoint));\n\n const LogoIcon = useMemo(() => {\n if (variant === 'symbol') {\n return SymbolLogoIcon;\n }\n if (variant === 'vertical') {\n return VerticalLogoIcon;\n }\n return HorizontalLogoIcon;\n }, [variant]);\n\n const logoColor = useMemo(() => {\n switch (color) {\n case 'emerald':\n return 'brand.tertiary';\n case 'electric':\n return 'brand.secondary';\n case 'white':\n return '#fff';\n case 'black':\n return '#000';\n default:\n return color;\n }\n }, [color]);\n\n return (\n <LogoWrapper wrap={(!variant || variant === 'horizontal') && !!subbrandText} variant={subbrandVariant}>\n <Box\n data-testid=\"Logo\"\n sx={{\n width: width ?? '100%',\n height: height ?? 'auto',\n color: logoColor,\n display: 'flex',\n alignItems: 'baseline',\n }}\n >\n <LogoIcon />\n </Box>\n {!matches && (!variant || variant === 'horizontal') && !!subbrandText && (\n <Typography\n component=\"div\"\n sx={{\n display: 'flex',\n lineHeight: { xs: 1 },\n fontSize: { xs: `calc(${width} / 5.5)` },\n userSelect: 'none',\n color: logoColor,\n whiteSpace: 'nowrap',\n ...(subbrandVariant === 'vertical'\n ? {\n marginTop: '0.25em',\n }\n : {\n marginLeft: '0.25em',\n }),\n }}\n >\n {subbrandText}\n </Typography>\n )}\n </LogoWrapper>\n );\n};\n\n/**\n * Wrapper aligning logo and subbrand\n */\nfunction LogoWrapper({ children, wrap, variant }: { wrap: boolean; variant: LogoProps['subbrandVariant'] } & BoxProps) {\n return wrap ? (\n <Box\n sx={{\n display: 'inline-flex',\n alignItems: variant === 'vertical' ? 'flex-start' : 'baseline',\n justifyContent: 'flex-start',\n flexDirection: variant === 'vertical' ? 'column' : 'row',\n }}\n >\n {children}\n </Box>\n ) : (\n <>{children}</>\n );\n}\n\nconst SymbolLogoIcon = () => (\n <SvgIcon viewBox=\"0 0 32 32\" sx={{ width: '100%', height: '100%', fill: 'currentColor' }} data-testid=\"Logo.symbol\">\n <path d=\"M16 0C7.16345 0 0 7.16345 0 16C0 24.8366 7.16345 32 16 32C24.8366 32 32 24.8366 32 16C32 7.16345 24.8366 0 16 0ZM16 30.6181C7.92664 30.6181 1.38188 24.0734 1.38188 16C1.38188 7.92664 7.92664 1.38188 16 1.38188C24.0734 1.38188 30.6181 7.92664 30.6181 16C30.6181 24.0734 24.0734 30.6181 16 30.6181ZM22.9186 20.9748L22.5599 21.9432H21.2481C21.5987 20.998 26.0191 10.4529 17.3331 3.30067C15.5096 3.10748 13.666 3.31141 11.9289 3.89843C12.2186 4.1318 15.2275 6.60184 16.6453 9.65167L16.2293 9.76367C15.4478 8.91211 12.6085 5.78599 9.90293 4.7799C8.44709 5.57356 7.15898 6.64201 6.10992 7.92608C7.3806 8.57612 10.7008 10.5592 11.9627 12.0997C11.8904 12.1322 11.6067 12.285 11.6067 12.285C9.29207 10.5258 5.18018 9.61266 4.97001 9.56732C4.1056 11.0449 3.54923 12.6821 3.33443 14.3804C9.70223 15.6621 11.4168 18.6091 11.7101 21.9432H10.504L8.43136 21.0398C8.32338 20.9993 8.2099 20.9754 8.09477 20.9689H4.23562C4.84653 22.4112 5.7173 23.7288 6.80453 24.8563H8.44907C8.59079 24.8563 8.7148 24.8386 8.8388 24.7677L10.504 23.9174H22.5599L22.9186 24.8859C24.4165 24.7132 25.8066 24.0213 26.8475 22.9303C25.8066 21.8394 24.4165 21.1475 22.9186 20.9748ZM18.2763 20.4696C17.9639 20.4696 17.6585 20.3769 17.3987 20.2033C17.1389 20.0298 16.9365 19.7831 16.8169 19.4944C16.6974 19.2058 16.6661 18.8881 16.727 18.5817C16.788 18.2753 16.9384 17.9938 17.1593 17.7729C17.3803 17.552 17.6617 17.4015 17.9682 17.3406C18.2746 17.2796 18.5922 17.3109 18.8808 17.4305C19.1695 17.55 19.4162 17.7525 19.5898 18.0123C19.7634 18.2721 19.856 18.5775 19.856 18.8899C19.856 19.3088 19.6896 19.7106 19.3933 20.0069C19.0971 20.3031 18.6953 20.4696 18.2763 20.4696Z\" />\n </SvgIcon>\n);\n\nconst VerticalLogoIcon = () => (\n <SvgIcon\n viewBox=\"0 0 138 130\"\n sx={{ width: '100%', height: '100%', fill: 'currentcolor' }}\n data-testid=\"Logo.vertical\"\n >\n <path d=\"M66 21C51.6406 21 40 32.6406 40 47C40 61.3594 51.6406 73 66 73C80.3594 73 92 61.3594 92 47C92 32.6406 80.3594 21 66 21ZM66 70.7544C52.8808 70.7544 42.2456 60.1192 42.2456 47C42.2456 33.8808 52.8808 23.2456 66 23.2456C79.1192 23.2456 89.7544 33.8808 89.7544 47C89.7544 60.1192 79.1192 70.7544 66 70.7544ZM77.2427 55.084L76.6598 56.6578H74.5282C75.0979 55.1218 82.281 37.9859 68.1662 26.3636C65.2032 26.0497 62.2073 26.381 59.3845 27.335C59.8553 27.7142 64.7448 31.728 67.0487 36.684L66.3727 36.866C65.1026 35.4822 60.4889 30.4023 56.0923 28.7673C53.7265 30.057 51.6333 31.7933 49.9286 33.8799C51.9935 34.9361 57.3888 38.1586 59.4393 40.6619C59.3219 40.7147 58.8608 40.9631 58.8608 40.9631C55.0996 38.1043 48.4178 36.6205 48.0763 36.5469C46.6716 38.9479 45.7675 41.6084 45.4184 44.3681C55.7661 46.4509 58.5524 51.2397 59.0289 56.6578H57.069L53.701 55.1897C53.5255 55.1239 53.3411 55.0851 53.154 55.0745H46.8829C47.8756 57.4181 49.2906 59.5594 51.0574 61.3915H53.7297C53.95 61.4023 54.1691 61.3525 54.363 61.2476L57.069 59.8658H76.6598L77.2427 61.4396C79.6768 61.1589 81.9357 60.0345 83.6271 58.2618C81.9357 56.4891 79.6768 55.3647 77.2427 55.084ZM69.699 54.263C69.1913 54.263 68.695 54.1125 68.2729 53.8304C67.8508 53.5483 67.5218 53.1474 67.3275 52.6784C67.1332 52.2093 67.0824 51.6932 67.1814 51.1953C67.2805 50.6973 67.5249 50.24 67.8839 49.881C68.2429 49.522 68.7003 49.2775 69.1982 49.1785C69.6962 49.0794 70.2123 49.1302 70.6814 49.3245C71.1504 49.5188 71.5513 49.8478 71.8334 50.27C72.1154 50.6921 72.266 51.1884 72.266 51.6961C72.266 52.3769 71.9955 53.0298 71.5141 53.5112C71.0327 53.9926 70.3798 54.263 69.699 54.263H69.699Z\" />\n <path d=\"M10 101L12.1675 97.6125H24.739C25.4511 97.6125 25.9156 97.1587 25.9156 96.4631V94.4971H15.1091C11.8888 94.4971 10.4645 93.1059 10.4645 90.0208V88.69C10.4645 86.3913 11.8579 85 14.0563 85H14.304V89.9603C14.304 90.6559 14.7685 91.1096 15.4807 91.1096H25.9466C28.3308 91.1096 29.7552 92.5009 29.7552 94.7694V96.5236C29.7552 99.5179 28.2379 101 25.1105 101L10 101ZM85.3338 97.552H95.0565C96.6666 97.552 97.6885 96.5841 97.6885 95.0718V90.9282C97.6885 89.4159 96.6666 88.448 95.0565 88.448H85.3338V97.552ZM81.4323 101V85H95.1494C99.2367 85 101.59 87.2987 101.59 91.1096V94.8903C101.59 98.7013 99.2367 101 95.1494 101H81.4323ZM62.5252 97.552H70.7308C72.217 97.552 73.1769 96.6446 73.1769 95.2231V90.7769C73.1769 89.3554 72.217 88.448 70.7308 88.448H62.5252C61.039 88.448 60.0791 89.3554 60.0791 90.7769V95.223C60.0791 96.6446 61.039 97.552 62.5252 97.552ZM70.8236 101H62.4324C58.469 101 56.1776 98.7618 56.1776 95.0416V90.9584C56.1776 87.2382 58.4689 85 62.4324 85H70.8236C74.787 85 77.0784 87.2382 77.0784 90.9584V95.0416C77.0784 98.7618 74.7871 101 70.8236 101ZM103.189 101L112.385 85H117.804L127 101H122.541L120.962 98.2476H113.128L111.022 94.9811L107.554 101H103.189ZM111.115 94.7996H118.98L115.048 87.9943L111.115 94.7996ZM18.1436 88.327L15.9142 85H29.3836L27.2161 88.327H18.1436ZM34.0483 101V85H37.9498V91.2306H43.1208L49.8401 85H55.0111L46.465 92.9546L55.1659 101H49.6852L42.966 94.6786H37.9498V101H34.0483Z\" />\n </SvgIcon>\n);\n\nconst HorizontalLogoIcon = () => (\n <SvgIcon\n viewBox=\"0 0 120 16\"\n sx={{ width: '100%', height: '100%', fill: 'currentcolor' }}\n data-testid=\"Logo.horizontal\"\n >\n <path d=\"M0 16L2.22307 12.6125H15.1169C15.8473 12.6125 16.3237 12.1587 16.3237 11.4631V9.49713H5.24009C1.93724 9.49713 0.4764 8.10585 0.4764 5.02078V3.68997C0.4764 1.3913 1.90549 0 4.16032 0H4.41438V4.96029C4.41438 5.65595 4.89078 6.10964 5.6212 6.10964H16.3554C18.8008 6.10964 20.2617 7.50094 20.2617 9.76936V11.5236C20.2617 14.5179 18.7055 16 15.498 16L0 16ZM77.2654 12.552H87.2374C88.8889 12.552 89.9369 11.5841 89.9369 10.0718V5.92816C89.9369 4.41587 88.8889 3.44801 87.2374 3.44801H77.2654V12.552ZM73.2639 16V0H87.3328C91.5248 0 93.9385 2.29867 93.9385 6.10964V9.89034C93.9385 13.7013 91.5248 16 87.3328 16H73.2639ZM53.872 12.552H62.288C63.8123 12.552 64.7968 11.6446 64.7968 10.2231V5.77693C64.7968 4.35538 63.8123 3.44801 62.288 3.44801H53.872C52.3477 3.44801 51.3632 4.35538 51.3632 5.77693V10.223C51.3632 11.6446 52.3477 12.552 53.872 12.552ZM62.3832 16H53.7768C49.7118 16 47.3616 13.7618 47.3616 10.0416V5.9584C47.3616 2.23818 49.7117 0 53.7768 0H62.3832C66.4482 0 68.7984 2.23818 68.7984 5.9584V10.0416C68.7984 13.7618 66.4483 16 62.3832 16ZM95.578 16L105.01 0H110.568L120 16H115.427L113.807 13.2476H105.772L103.613 9.98108L100.056 16H95.578ZM103.708 9.79961H111.775L107.741 2.99428L103.708 9.79961ZM8.3524 3.32702L6.06581 0H19.8806L17.6575 3.32702H8.3524ZM24.6649 16V0H28.6665V6.23062H33.9701L40.8616 0H46.1652L37.4 7.95462L46.324 16H40.7028L33.8113 9.67863H28.6665V16H24.6649Z\" />\n </SvgIcon>\n);\n"],"names":["Logo","props","variant","color","width","height","subbrandText","subbrandVariant","breakpoint","theme","useTheme","matches","useMediaQuery","breakpoints","down","LogoIcon","useMemo","SymbolLogoIcon","VerticalLogoIcon","HorizontalLogoIcon","logoColor","_jsxs","LogoWrapper","wrap","children","_jsx","Box","sx","display","alignItems","Typography","component","Object","assign","lineHeight","xs","fontSize","userSelect","whiteSpace","marginTop","marginLeft","justifyContent","flexDir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pDsB,SAAAA,IAGHC,EAAGkB,EAAA,CAAAnB,SAAAA,GAEP,CAEA,MAAMP,EAAiB,IACrBQ,EAACmB,EAAQ,CAAAC,QAAQ,YAAYlB,GAAI,CAAEvB,MAAO,OAAQC,OAAQ,OAAQyC,KAAM,gBAAgB,cAAc,cAAatB,SACjHC,UAAMsB,EAAE,mmDAIN7B,EAAmB,IACvBG,EAACuB,EACC,CAAAC,QAAQ,cACRlB,GAAI,CAAEvB,MAAO,OAAQC,OAAQ,OAAQyC,KAAM,8BAC/B,gBAAetB,SAAA,CAE3BC,UAAMsB,EAAE,qmDACRtB,UAAMsB,EAAE,w4CAIN5B,EAAqB,IACzBM,EAACmB,EACC,CAAAC,QAAQ,aACRlB,GAAI,CAAEvB,MAAO,OAAQC,OAAQ,OAAQyC,KAAM,gBAAgB,cAC/C,kBAAiBtB,SAE7BC,UAAMsB,EAAE"}
1
+ {"version":3,"file":"Logo.js","sources":["../../../src/components/logo/Logo.tsx"],"sourcesContent":["import { Box, BoxProps, Typography, SvgIcon, useTheme, useMediaQuery, Breakpoint } from '@mui/material';\nimport { useMemo } from 'react';\n\nexport type LogoProps = {\n /** Variant of logo that should be rendered */\n variant?: 'horizontal' | 'vertical' | 'symbol';\n /**\n * Specifies which color should be used, default value is brand emerald green (tertiary)\n * @note Do not use `string` anymore. Choose from default color names instead\n */\n color?: 'emerald' | 'electric' | 'white' | 'black' | string;\n /** Specifies width of component */\n width?: number | string;\n /** Specifies height of component */\n height?: number | string;\n /** Specifies the subbrand type that will be added next to the brand logo */\n subbrandVariant?: 'horizontal' | 'vertical';\n /** Actual subbrand text */\n subbrandText?: string;\n /**\n * Breakpoint for hiding the Subbrand variant\n */\n breakpoint?: number | Breakpoint;\n};\n\n/**\n * Component that renders Skoda logo. There are several variants of the logo. Design can be found here https://www.figma.com/file/8ct8rVAKCJyZmDmpjJuVlv/FLOW---Web---UI-1.10.0?node-id=9546%3A14370&mode=dev\n */\nexport const Logo = (props: LogoProps) => {\n const { variant, color, width, height, subbrandText, subbrandVariant = 'horizontal', breakpoint = 'lg' } = props;\n\n const theme = useTheme();\n const matches = useMediaQuery(theme.breakpoints.down(breakpoint));\n\n const LogoIcon = useMemo(() => {\n if (variant === 'symbol') {\n return SymbolLogoIcon;\n }\n if (variant === 'vertical') {\n return VerticalLogoIcon;\n }\n return HorizontalLogoIcon;\n }, [variant]);\n\n const logoColor = useMemo(() => {\n switch (color) {\n case 'emerald':\n return 'brand.tertiary';\n case 'electric':\n return 'brand.secondary';\n case 'white':\n return '#fff';\n case 'black':\n return '#000';\n default:\n return color;\n }\n }, [color]);\n\n return (\n <LogoWrapper wrap={(!variant || variant === 'horizontal') && !!subbrandText} variant={subbrandVariant}>\n <Box\n data-testid=\"Logo\"\n sx={{\n width: width ?? '100%',\n height: height ?? 'auto',\n color: logoColor,\n display: 'flex',\n alignItems: 'baseline',\n }}\n >\n <LogoIcon />\n </Box>\n {!matches && (!variant || variant === 'horizontal') && !!subbrandText && (\n <Typography\n component=\"div\"\n sx={{\n display: 'flex',\n lineHeight: { xs: 1 },\n fontSize: { xs: `calc(${width} / 5.5)` },\n userSelect: 'none',\n color: logoColor,\n whiteSpace: 'nowrap',\n ...(subbrandVariant === 'vertical'\n ? {\n marginTop: '0.25em',\n }\n : {\n marginLeft: '0.25em',\n }),\n }}\n >\n {subbrandText}\n </Typography>\n )}\n </LogoWrapper>\n );\n};\n\n/**\n * Wrapper aligning logo and subbrand\n */\nfunction LogoWrapper({ children, wrap, variant }: { wrap: boolean; variant: LogoProps['subbrandVariant'] } & BoxProps) {\n return wrap ? (\n <Box\n sx={{\n display: 'inline-flex',\n alignItems: variant === 'vertical' ? 'flex-start' : 'baseline',\n justifyContent: 'flex-start',\n flexDirection: variant === 'vertical' ? 'column' : 'row',\n }}\n >\n {children}\n </Box>\n ) : (\n <>{children}</>\n );\n}\n\nconst SymbolLogoIcon = () => (\n <SvgIcon viewBox=\"0 0 32 32\" sx={{ width: '100%', height: '100%', fill: 'currentColor' }} data-testid=\"Logo.symbol\">\n <path d=\"M16 0C7.16345 0 0 7.16345 0 16C0 24.8366 7.16345 32 16 32C24.8366 32 32 24.8366 32 16C32 7.16345 24.8366 0 16 0ZM16 30.6181C7.92664 30.6181 1.38188 24.0734 1.38188 16C1.38188 7.92664 7.92664 1.38188 16 1.38188C24.0734 1.38188 30.6181 7.92664 30.6181 16C30.6181 24.0734 24.0734 30.6181 16 30.6181ZM22.9186 20.9748L22.5599 21.9432H21.2481C21.5987 20.998 26.0191 10.4529 17.3331 3.30067C15.5096 3.10748 13.666 3.31141 11.9289 3.89843C12.2186 4.1318 15.2275 6.60184 16.6453 9.65167L16.2293 9.76367C15.4478 8.91211 12.6085 5.78599 9.90293 4.7799C8.44709 5.57356 7.15898 6.64201 6.10992 7.92608C7.3806 8.57612 10.7008 10.5592 11.9627 12.0997C11.8904 12.1322 11.6067 12.285 11.6067 12.285C9.29207 10.5258 5.18018 9.61266 4.97001 9.56732C4.1056 11.0449 3.54923 12.6821 3.33443 14.3804C9.70223 15.6621 11.4168 18.6091 11.7101 21.9432H10.504L8.43136 21.0398C8.32338 20.9993 8.2099 20.9754 8.09477 20.9689H4.23562C4.84653 22.4112 5.7173 23.7288 6.80453 24.8563H8.44907C8.59079 24.8563 8.7148 24.8386 8.8388 24.7677L10.504 23.9174H22.5599L22.9186 24.8859C24.4165 24.7132 25.8066 24.0213 26.8475 22.9303C25.8066 21.8394 24.4165 21.1475 22.9186 20.9748ZM18.2763 20.4696C17.9639 20.4696 17.6585 20.3769 17.3987 20.2033C17.1389 20.0298 16.9365 19.7831 16.8169 19.4944C16.6974 19.2058 16.6661 18.8881 16.727 18.5817C16.788 18.2753 16.9384 17.9938 17.1593 17.7729C17.3803 17.552 17.6617 17.4015 17.9682 17.3406C18.2746 17.2796 18.5922 17.3109 18.8808 17.4305C19.1695 17.55 19.4162 17.7525 19.5898 18.0123C19.7634 18.2721 19.856 18.5775 19.856 18.8899C19.856 19.3088 19.6896 19.7106 19.3933 20.0069C19.0971 20.3031 18.6953 20.4696 18.2763 20.4696Z\" />\n </SvgIcon>\n);\n\nconst VerticalLogoIcon = () => (\n <SvgIcon\n viewBox=\"0 0 138 130\"\n sx={{ width: '100%', height: '100%', fill: 'currentcolor' }}\n data-testid=\"Logo.vertical\"\n >\n <path d=\"M66 21C51.6406 21 40 32.6406 40 47C40 61.3594 51.6406 73 66 73C80.3594 73 92 61.3594 92 47C92 32.6406 80.3594 21 66 21ZM66 70.7544C52.8808 70.7544 42.2456 60.1192 42.2456 47C42.2456 33.8808 52.8808 23.2456 66 23.2456C79.1192 23.2456 89.7544 33.8808 89.7544 47C89.7544 60.1192 79.1192 70.7544 66 70.7544ZM77.2427 55.084L76.6598 56.6578H74.5282C75.0979 55.1218 82.281 37.9859 68.1662 26.3636C65.2032 26.0497 62.2073 26.381 59.3845 27.335C59.8553 27.7142 64.7448 31.728 67.0487 36.684L66.3727 36.866C65.1026 35.4822 60.4889 30.4023 56.0923 28.7673C53.7265 30.057 51.6333 31.7933 49.9286 33.8799C51.9935 34.9361 57.3888 38.1586 59.4393 40.6619C59.3219 40.7147 58.8608 40.9631 58.8608 40.9631C55.0996 38.1043 48.4178 36.6205 48.0763 36.5469C46.6716 38.9479 45.7675 41.6084 45.4184 44.3681C55.7661 46.4509 58.5524 51.2397 59.0289 56.6578H57.069L53.701 55.1897C53.5255 55.1239 53.3411 55.0851 53.154 55.0745H46.8829C47.8756 57.4181 49.2906 59.5594 51.0574 61.3915H53.7297C53.95 61.4023 54.1691 61.3525 54.363 61.2476L57.069 59.8658H76.6598L77.2427 61.4396C79.6768 61.1589 81.9357 60.0345 83.6271 58.2618C81.9357 56.4891 79.6768 55.3647 77.2427 55.084ZM69.699 54.263C69.1913 54.263 68.695 54.1125 68.2729 53.8304C67.8508 53.5483 67.5218 53.1474 67.3275 52.6784C67.1332 52.2093 67.0824 51.6932 67.1814 51.1953C67.2805 50.6973 67.5249 50.24 67.8839 49.881C68.2429 49.522 68.7003 49.2775 69.1982 49.1785C69.6962 49.0794 70.2123 49.1302 70.6814 49.3245C71.1504 49.5188 71.5513 49.8478 71.8334 50.27C72.1154 50.6921 72.266 51.1884 72.266 51.6961C72.266 52.3769 71.9955 53.0298 71.5141 53.5112C71.0327 53.9926 70.3798 54.263 69.699 54.263H69.699Z\" />\n <path d=\"M10 101L12.1675 97.6125H24.739C25.4511 97.6125 25.9156 97.1587 25.9156 96.4631V94.4971H15.1091C11.8888 94.4971 10.4645 93.1059 10.4645 90.0208V88.69C10.4645 86.3913 11.8579 85 14.0563 85H14.304V89.9603C14.304 90.6559 14.7685 91.1096 15.4807 91.1096H25.9466C28.3308 91.1096 29.7552 92.5009 29.7552 94.7694V96.5236C29.7552 99.5179 28.2379 101 25.1105 101L10 101ZM85.3338 97.552H95.0565C96.6666 97.552 97.6885 96.5841 97.6885 95.0718V90.9282C97.6885 89.4159 96.6666 88.448 95.0565 88.448H85.3338V97.552ZM81.4323 101V85H95.1494C99.2367 85 101.59 87.2987 101.59 91.1096V94.8903C101.59 98.7013 99.2367 101 95.1494 101H81.4323ZM62.5252 97.552H70.7308C72.217 97.552 73.1769 96.6446 73.1769 95.2231V90.7769C73.1769 89.3554 72.217 88.448 70.7308 88.448H62.5252C61.039 88.448 60.0791 89.3554 60.0791 90.7769V95.223C60.0791 96.6446 61.039 97.552 62.5252 97.552ZM70.8236 101H62.4324C58.469 101 56.1776 98.7618 56.1776 95.0416V90.9584C56.1776 87.2382 58.4689 85 62.4324 85H70.8236C74.787 85 77.0784 87.2382 77.0784 90.9584V95.0416C77.0784 98.7618 74.7871 101 70.8236 101ZM103.189 101L112.385 85H117.804L127 101H122.541L120.962 98.2476H113.128L111.022 94.9811L107.554 101H103.189ZM111.115 94.7996H118.98L115.048 87.9943L111.115 94.7996ZM18.1436 88.327L15.9142 85H29.3836L27.2161 88.327H18.1436ZM34.0483 101V85H37.9498V91.2306H43.1208L49.8401 85H55.0111L46.465 92.9546L55.1659 101H49.6852L42.966 94.6786H37.9498V101H34.0483Z\" />\n </SvgIcon>\n);\n\nconst HorizontalLogoIcon = () => (\n <SvgIcon\n viewBox=\"0 0 120 16\"\n sx={{ width: '100%', height: '100%', fill: 'currentcolor' }}\n data-testid=\"Logo.horizontal\"\n >\n <path d=\"M0 16L2.22307 12.6125H15.1169C15.8473 12.6125 16.3237 12.1587 16.3237 11.4631V9.49713H5.24009C1.93724 9.49713 0.4764 8.10585 0.4764 5.02078V3.68997C0.4764 1.3913 1.90549 0 4.16032 0H4.41438V4.96029C4.41438 5.65595 4.89078 6.10964 5.6212 6.10964H16.3554C18.8008 6.10964 20.2617 7.50094 20.2617 9.76936V11.5236C20.2617 14.5179 18.7055 16 15.498 16L0 16ZM77.2654 12.552H87.2374C88.8889 12.552 89.9369 11.5841 89.9369 10.0718V5.92816C89.9369 4.41587 88.8889 3.44801 87.2374 3.44801H77.2654V12.552ZM73.2639 16V0H87.3328C91.5248 0 93.9385 2.29867 93.9385 6.10964V9.89034C93.9385 13.7013 91.5248 16 87.3328 16H73.2639ZM53.872 12.552H62.288C63.8123 12.552 64.7968 11.6446 64.7968 10.2231V5.77693C64.7968 4.35538 63.8123 3.44801 62.288 3.44801H53.872C52.3477 3.44801 51.3632 4.35538 51.3632 5.77693V10.223C51.3632 11.6446 52.3477 12.552 53.872 12.552ZM62.3832 16H53.7768C49.7118 16 47.3616 13.7618 47.3616 10.0416V5.9584C47.3616 2.23818 49.7117 0 53.7768 0H62.3832C66.4482 0 68.7984 2.23818 68.7984 5.9584V10.0416C68.7984 13.7618 66.4483 16 62.3832 16ZM95.578 16L105.01 0H110.568L120 16H115.427L113.807 13.2476H105.772L103.613 9.98108L100.056 16H95.578ZM103.708 9.79961H111.775L107.741 2.99428L103.708 9.79961ZM8.3524 3.32702L6.06581 0H19.8806L17.6575 3.32702H8.3524ZM24.6649 16V0H28.6665V6.23062H33.9701L40.8616 0H46.1652L37.4 7.95462L46.324 16H40.7028L33.8113 9.67863H28.6665V16H24.6649Z\" />\n </SvgIcon>\n);\n"],"names":["Logo","props","variant","color","width","height","subbrandText","subbrandVariant","breakpoint","theme","useTheme","matches","useMediaQuery","breakpoints","down","LogoIcon","useMemo","SymbolLogoIcon","VerticalLogoIcon","HorizontalLogoIcon","logoColor","_jsxs","LogoWrapper","wrap","children","_jsx","Box","sx","display","alignItems","Typography","component","Object","assign","lineHeight","xs","fontSize","userSelect","whiteSpace","marginTop","marginLeft","justifyContent","flexDirection","_Fragment","SvgIcon","viewBox","fill","d"],"mappings":"kMA4Ba,MAAAA,EAAQC,IACnB,MAAMC,QAAEA,EAAOC,MAAEA,EAAKC,MAAEA,EAAKC,OAAEA,EAAMC,aAAEA,EAAYC,gBAAEA,EAAkB,aAAYC,WAAEA,EAAa,MAASP,EAErGQ,EAAQC,IACRC,EAAUC,EAAcH,EAAMI,YAAYC,KAAKN,IAE/CO,EAAWC,GAAQ,IACP,WAAZd,EACKe,EAEO,aAAZf,EACKgB,EAEFC,GACN,CAACjB,IAEEkB,EAAYJ,GAAQ,KACxB,OAAQb,GACN,IAAK,UACH,MAAO,iBACT,IAAK,WACH,MAAO,kBACT,IAAK,QACH,MAAO,OACT,IAAK,QACH,MAAO,OACT,QACE,OAAOA,KAEV,CAACA,IAEJ,OACEkB,EAACC,EAAW,CAACC,OAAQrB,GAAuB,eAAZA,IAA+BI,GAAcJ,QAASK,EACpFiB,SAAA,CAAAC,EAACC,EAAG,CAAA,cACU,OACZC,GAAI,CACFvB,MAAOA,QAAAA,EAAS,OAChBC,OAAQA,QAAAA,EAAU,OAClBF,MAAOiB,EACPQ,QAAS,OACTC,WAAY,YACbL,SAEDC,EAACV,EAAW,CAAA,MAEZJ,KAAaT,GAAuB,eAAZA,MAA+BI,GACvDmB,EAACK,EAAU,CACTC,UAAU,MACVJ,GAAEK,OAAAC,OAAA,CACAL,QAAS,OACTM,WAAY,CAAEC,GAAI,GAClBC,SAAU,CAAED,GAAI,QAAQ/B,YACxBiC,WAAY,OACZlC,MAAOiB,EACPkB,WAAY,UACY,aAApB/B,EACA,CACEgC,UAAW,UAEb,CACEC,WAAY,oBAInBlC,MAGO,EAOlB,SAASgB,GAAYE,SAAEA,EAAQD,KAAEA,EAAIrB,QAAEA,IACrC,OAAOqB,EACLE,EAACC,EACC,CAAAC,GAAI,CACFC,QAAS,cACTC,WAAwB,aAAZ3B,EAAyB,aAAe,WACpDuC,eAAgB,aAChBC,cAA2B,aAAZxC,EAAyB,SAAW,OAGpDsB,SAAAA,IAGHC,EAAGkB,EAAA,CAAAnB,SAAAA,GAEP,CAEA,MAAMP,EAAiB,IACrBQ,EAACmB,EAAQ,CAAAC,QAAQ,YAAYlB,GAAI,CAAEvB,MAAO,OAAQC,OAAQ,OAAQyC,KAAM,gBAAgB,cAAc,cAAatB,SACjHC,UAAMsB,EAAE,mmDAIN7B,EAAmB,IACvBG,EAACuB,EACC,CAAAC,QAAQ,cACRlB,GAAI,CAAEvB,MAAO,OAAQC,OAAQ,OAAQyC,KAAM,8BAC/B,gBAAetB,SAAA,CAE3BC,UAAMsB,EAAE,qmDACRtB,UAAMsB,EAAE,w4CAIN5B,EAAqB,IACzBM,EAACmB,EACC,CAAAC,QAAQ,aACRlB,GAAI,CAAEvB,MAAO,OAAQC,OAAQ,OAAQyC,KAAM,gBAAgB,cAC/C,kBAAiBtB,SAE7BC,UAAMsB,EAAE"}
@@ -1,2 +1,2 @@
1
- import{jsx as t}from"react/jsx-runtime";import{styled as i,Button as e}from"@mui/material";import{Icon as r}from"../icon/icon.js";import"../icon/icon.definitions.js";import{useTheme as n}from"@mui/system";const o=i=>t(s,Object.assign({variant:"text",disableFocusRipple:!0,disableRipple:!0,"data-testid":"MobileStepperButton"},i)),a=i=>{const e=n();return t(o,Object.assign({},i,{endIcon:t(r,{name:"arrow-"+("rtl"===e.direction?"left":"right")}),children:i.children}))},l=i=>{const e=n();return t(o,Object.assign({},i,{startIcon:t(r,{name:"arrow-"+("rtl"===e.direction?"right":"left")}),children:i.children}))},s=i(e)((({theme:t})=>({borderRadius:"0",padding:0,display:"flex",alignItems:"center",gap:8,fontStyle:"normal",fontWeight:"400",fontSize:"16px",lineHeight:"16px",height:"100%",minHeight:"0",color:t.palette.text.primary,"&:hover":{backgroundColor:"transparent"},"&.Mui-disabled":{color:t.palette.disabled.primary},"& .MuiButton-startIcon":{marginLeft:"8px",marginRight:"0"},"& .MuiButton-endIcon":{marginLeft:"0",marginRight:"8px"}})));export{o as MobileStepperButton,l as MobileStepperButtonBack,a as MobileStepperButtonNext};
1
+ import{jsx as t}from"react/jsx-runtime";import{styled as i,Button as e,useTheme as r}from"@mui/material";import{Icon as n}from"../icon/icon.js";import"../icon/icon.definitions.js";const o=i=>t(c,Object.assign({variant:"text",disableFocusRipple:!0,disableRipple:!0,"data-testid":"MobileStepperButton"},i)),a=i=>{const e=r();return t(o,Object.assign({},i,{endIcon:t(n,{name:"arrow-"+("rtl"===e.direction?"left":"right")}),children:i.children}))},l=i=>{const e=r();return t(o,Object.assign({},i,{startIcon:t(n,{name:"arrow-"+("rtl"===e.direction?"right":"left")}),children:i.children}))},c=i(e)((({theme:t})=>({borderRadius:"0",padding:0,display:"flex",alignItems:"center",gap:8,fontStyle:"normal",fontWeight:"400",fontSize:"16px",lineHeight:"16px",height:"100%",minHeight:"0",color:t.palette.text.primary,"&:hover":{backgroundColor:"transparent"},"&.Mui-disabled":{color:t.palette.disabled.primary},"& .MuiButton-startIcon":{marginLeft:"8px",marginRight:"0"},"& .MuiButton-endIcon":{marginLeft:"0",marginRight:"8px"}})));export{o as MobileStepperButton,l as MobileStepperButtonBack,a as MobileStepperButtonNext};
2
2
  //# sourceMappingURL=mobileStepperButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mobileStepperButton.js","sources":["../../../src/components/mobileStepper/mobileStepperButton.tsx"],"sourcesContent":["import { Button, ButtonProps, styled } from '@mui/material';\nimport { Icon } from '../icon';\nimport { useTheme } from '@mui/system';\n\nexport const MobileStepperButton = (props: ButtonProps) => {\n return (\n <MobileStepperButtonStyled\n variant=\"text\"\n disableFocusRipple\n disableRipple\n data-testid=\"MobileStepperButton\"\n {...props}\n />\n );\n};\n\nexport const MobileStepperButtonNext = (props: ButtonProps) => {\n const theme = useTheme();\n\n return (\n <MobileStepperButton {...props} endIcon={<Icon name={`arrow-${theme.direction === 'rtl' ? 'left' : 'right'}`} />}>\n {props.children}\n </MobileStepperButton>\n );\n};\n\nexport const MobileStepperButtonBack = (props: ButtonProps) => {\n const theme = useTheme();\n\n return (\n <MobileStepperButton {...props} startIcon={<Icon name={`arrow-${theme.direction === 'rtl' ? 'right' : 'left'}`} />}>\n {props.children}\n </MobileStepperButton>\n );\n};\n\nconst MobileStepperButtonStyled = styled(Button)(({ theme }) => ({\n borderRadius: '0',\n padding: 0,\n display: 'flex',\n alignItems: 'center',\n gap: 8,\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: '16px',\n lineHeight: '16px',\n height: '100%',\n minHeight: '0',\n color: theme.palette.text.primary,\n '&:hover': {\n backgroundColor: 'transparent',\n },\n '&.Mui-disabled': {\n color: theme.palette.disabled.primary,\n },\n '& .MuiButton-startIcon': {\n marginLeft: '8px',\n marginRight: '0',\n },\n '& .MuiButton-endIcon': {\n marginLeft: '0',\n marginRight: '8px',\n },\n}));\n"],"names":["MobileStepperButton","props","_jsx","MobileStepperButtonStyled","Object","assign","variant","disableFocusRipple","disableRipple","MobileStepperButtonNext","theme","useTheme","endIcon","Icon","name","direction","children","MobileStepperButtonBack","startIcon","styled","Button","borderRadius","padding","display","alignItems","gap","fontStyle","fontWeight","fontSize","lineHeight","height","minHeight","color","palette","text","primary","backgroundColor","disabled","marginLeft","marginRight"],"mappings":"6MAIa,MAAAA,EAAuBC,GAEhCC,EAACC,EACCC,OAAAC,OAAA,CAAAC,QAAQ,OACRC,oBAAkB,EAClBC,eACY,EAAA,cAAA,uBACRP,IAKGQ,EAA2BR,IACtC,MAAMS,EAAQC,IAEd,OACET,EAACF,EAAmBI,OAAAC,OAAA,CAAA,EAAKJ,EAAO,CAAAW,QAASV,EAACW,EAAK,CAAAC,KAAM,UAA6B,QAApBJ,EAAMK,UAAsB,OAAS,oBAChGd,EAAMe,WACa,EAIbC,EAA2BhB,IACtC,MAAMS,EAAQC,IAEd,OACET,EAACF,EAAmBI,OAAAC,OAAA,CAAA,EAAKJ,EAAO,CAAAiB,UAAWhB,EAACW,EAAK,CAAAC,KAAM,UAA6B,QAApBJ,EAAMK,UAAsB,QAAU,mBACnGd,EAAMe,WACa,EAIpBb,EAA4BgB,EAAOC,EAAPD,EAAe,EAAGT,YAAa,CAC/DW,aAAc,IACdC,QAAS,EACTC,QAAS,OACTC,WAAY,SACZC,IAAK,EACLC,UAAW,SACXC,WAAY,MACZC,SAAU,OACVC,WAAY,OACZC,OAAQ,OACRC,UAAW,IACXC,MAAOtB,EAAMuB,QAAQC,KAAKC,QAC1B,UAAW,CACTC,gBAAiB,eAEnB,iBAAkB,CAChBJ,MAAOtB,EAAMuB,QAAQI,SAASF,SAEhC,yBAA0B,CACxBG,WAAY,MACZC,YAAa,KAEf,uBAAwB,CACtBD,WAAY,IACZC,YAAa"}
1
+ {"version":3,"file":"mobileStepperButton.js","sources":["../../../src/components/mobileStepper/mobileStepperButton.tsx"],"sourcesContent":["import { Button, ButtonProps, styled, useTheme } from '@mui/material';\nimport { Icon } from '../icon';\n\nexport const MobileStepperButton = (props: ButtonProps) => {\n return (\n <MobileStepperButtonStyled\n variant=\"text\"\n disableFocusRipple\n disableRipple\n data-testid=\"MobileStepperButton\"\n {...props}\n />\n );\n};\n\nexport const MobileStepperButtonNext = (props: ButtonProps) => {\n const theme = useTheme();\n\n return (\n <MobileStepperButton {...props} endIcon={<Icon name={`arrow-${theme.direction === 'rtl' ? 'left' : 'right'}`} />}>\n {props.children}\n </MobileStepperButton>\n );\n};\n\nexport const MobileStepperButtonBack = (props: ButtonProps) => {\n const theme = useTheme();\n\n return (\n <MobileStepperButton {...props} startIcon={<Icon name={`arrow-${theme.direction === 'rtl' ? 'right' : 'left'}`} />}>\n {props.children}\n </MobileStepperButton>\n );\n};\n\nconst MobileStepperButtonStyled = styled(Button)(({ theme }) => ({\n borderRadius: '0',\n padding: 0,\n display: 'flex',\n alignItems: 'center',\n gap: 8,\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: '16px',\n lineHeight: '16px',\n height: '100%',\n minHeight: '0',\n color: theme.palette.text.primary,\n '&:hover': {\n backgroundColor: 'transparent',\n },\n '&.Mui-disabled': {\n color: theme.palette.disabled.primary,\n },\n '& .MuiButton-startIcon': {\n marginLeft: '8px',\n marginRight: '0',\n },\n '& .MuiButton-endIcon': {\n marginLeft: '0',\n marginRight: '8px',\n },\n}));\n"],"names":["MobileStepperButton","props","_jsx","MobileStepperButtonStyled","Object","assign","variant","disableFocusRipple","disableRipple","MobileStepperButtonNext","theme","useTheme","endIcon","Icon","name","direction","children","MobileStepperButtonBack","startIcon","styled","Button","borderRadius","padding","display","alignItems","gap","fontStyle","fontWeight","fontSize","lineHeight","height","minHeight","color","palette","text","primary","backgroundColor","disabled","marginLeft","marginRight"],"mappings":"oLAGa,MAAAA,EAAuBC,GAEhCC,EAACC,EACCC,OAAAC,OAAA,CAAAC,QAAQ,OACRC,oBAAkB,EAClBC,eACY,EAAA,cAAA,uBACRP,IAKGQ,EAA2BR,IACtC,MAAMS,EAAQC,IAEd,OACET,EAACF,EAAmBI,OAAAC,OAAA,CAAA,EAAKJ,EAAO,CAAAW,QAASV,EAACW,EAAK,CAAAC,KAAM,UAA6B,QAApBJ,EAAMK,UAAsB,OAAS,oBAChGd,EAAMe,WACa,EAIbC,EAA2BhB,IACtC,MAAMS,EAAQC,IAEd,OACET,EAACF,EAAmBI,OAAAC,OAAA,CAAA,EAAKJ,EAAO,CAAAiB,UAAWhB,EAACW,EAAK,CAAAC,KAAM,UAA6B,QAApBJ,EAAMK,UAAsB,QAAU,mBACnGd,EAAMe,WACa,EAIpBb,EAA4BgB,EAAOC,EAAPD,EAAe,EAAGT,YAAa,CAC/DW,aAAc,IACdC,QAAS,EACTC,QAAS,OACTC,WAAY,SACZC,IAAK,EACLC,UAAW,SACXC,WAAY,MACZC,SAAU,OACVC,WAAY,OACZC,OAAQ,OACRC,UAAW,IACXC,MAAOtB,EAAMuB,QAAQC,KAAKC,QAC1B,UAAW,CACTC,gBAAiB,eAEnB,iBAAkB,CAChBJ,MAAOtB,EAAMuB,QAAQI,SAASF,SAEhC,yBAA0B,CACxBG,WAAY,MACZC,YAAa,KAEf,uBAAwB,CACtBD,WAAY,IACZC,YAAa"}
@@ -1,2 +1,2 @@
1
- import{__rest as e}from"tslib";import{jsx as n}from"react/jsx-runtime";import{CloseIcon as a}from"../icon/stroke/CloseIcon.js";import{SearchIcon as r}from"../icon/stroke/SearchIcon.js";import{TextField as s,InputAdornment as o,IconButton as t}from"@mui/material";import{forwardRef as i,useState as l,useMemo as c,useEffect as p,useCallback as d}from"react";import u from"../../utils/useDebounce/useDebounce.js";import{updateFocusRingStyle as b}from"../focusring/focusring.js";import{getInteractiveStyle as m}from"../../materialui/button/interactive.js";const g=i(((i,g)=>{var{debounce:x=200,defaultValue:h="",cancelIconProps:j={},CancelIconComponent:f,disableInput:C,onCancel:O,onSearch:v,onChange:I,searchIconProps:P={},SearchIconComponent:S,slotProps:k,sx:w,value:y="",variant:D}=i,z=e(i,["debounce","defaultValue","cancelIconProps","CancelIconComponent","disableInput","onCancel","onSearch","onChange","searchIconProps","SearchIconComponent","slotProps","sx","value","variant"]);const A=S||r,M=f||a,[V,N]=l(h||y),R=V,U=u(V,x,{instantClear:!0}),{sx:q}=P,B=e(P,["sx"]),E=k||{},{input:F={}}=E,G=e(E,["input"]),H=c((()=>{switch(D){case"transparent":return{bgcolor:"transparent.primary"};case"mapShadow":return{bgcolor:"onSurface.os0",boxShadow:e=>e.flowShadows.l};default:return{bgcolor:"surface.primary"}}}),[D]);p((()=>{null==I||I(x<=0?R:U)}),[x<=0?R:U]);const J=d((e=>{e.preventDefault(),e.stopPropagation(),null==v||v(V)}),[V]);return n(s,Object.assign({onChange:e=>N(e.target.value),ref:g,sx:Object.assign(Object.assign({position:"relative",borderRadius:"200px",border:1,borderColor:(null==z?void 0:z.disabled)?"disabled.primary":"onSurface.os900",py:"5px",pl:"15px",pr:"5px",mb:0,"&&":Object.assign({},b(1,!1,"&:has(.Mui-focused)"))},H),w)},z,{value:V,variant:"standard",slotProps:Object.assign(Object.assign(Object.assign({},F),{input:{className:""+(""!==V?"filled":""),disabled:C||(null==z?void 0:z.disabled),inputProps:Object.assign(Object.assign({},"inputProps"in F&&Object.assign({},F.inputProps)),{sx:Object.assign({p:0,ml:1,color:"text.primary","&::-webkit-input-placeholder":{color:"onSurface.os700"},"&.Mui-disabled":{"&, &::-webkit-input-placeholder":{color:"disabled.tertiary"}}},"inputProps"in F&&"sx"in F.inputProps&&Object.assign({},F.inputProps.sx))}),disableUnderline:!0,startAdornment:n(o,{position:"start",sx:{transition:"all .4s ease",mr:"5px"},children:n(t,{disabled:null==z?void 0:z.disabled,tabIndex:v?0:-1,onClick:J,size:"medium","aria-label":"Search",sx:Object.assign(Object.assign({width:"34px",height:"34px"},b("0px")),m({backgroundColor:"transparent.transparent"},{backgroundColor:"transparent.transparent"})),children:n(A,Object.assign({sx:Object.assign({transition:"all .5s ease"},q)},B))})}),endAdornment:n(o,{position:"end",sx:{opacity:""!==V?"1":"0",transition:"opacity .3s ease"},children:n(t,{disabled:""===V||(null==z?void 0:z.disabled),onClick:()=>{N(""),null==O||O()},size:"medium",tabIndex:C?-1:0,"aria-label":"Clear search",sx:Object.assign(Object.assign({cursor:""!==V?"pointer":"default",width:"34px",height:"34px"},b("0px")),m({backgroundColor:"transparent.transparent"},{backgroundColor:"transparent.transparent"})),children:n(M,Object.assign({},j))})})}}),G)}))}));export{g as Search};
1
+ import{__rest as e}from"tslib";import{jsx as n}from"react/jsx-runtime";import{CloseIcon as a}from"../icon/stroke/CloseIcon.js";import{SearchIcon as r}from"../icon/stroke/SearchIcon.js";import{TextField as s,InputAdornment as o,IconButton as t}from"@mui/material";import{forwardRef as i,useState as l,useMemo as c,useEffect as p,useCallback as d}from"react";import u from"../../utils/useDebounce/useDebounce.js";import{updateFocusRingStyle as b}from"../focusring/focusring.js";import{getInteractiveStyle as m}from"../../materialui/button/interactive.js";const g=i(((i,g)=>{var{debounce:x=200,defaultValue:h="",cancelIconProps:j={},CancelIconComponent:f,disableInput:C,onCancel:O,onSearch:v,onChange:I,searchIconProps:P={},SearchIconComponent:S,slotProps:k,sx:w,value:y="",variant:D}=i,z=e(i,["debounce","defaultValue","cancelIconProps","CancelIconComponent","disableInput","onCancel","onSearch","onChange","searchIconProps","SearchIconComponent","slotProps","sx","value","variant"]);const A=S||r,M=f||a,[V,N]=l(h||y),R=V,U=u(V,x,{instantClear:!0}),{sx:q}=P,B=e(P,["sx"]),E=k||{},{input:F={}}=E,G=e(E,["input"]),H=c((()=>{switch(D){case"transparent":return{bgcolor:"transparent.primary"};case"mapShadow":return{bgcolor:"onSurface.os0",boxShadow:e=>e.flowShadows.l};default:return{bgcolor:"surface.primary"}}}),[D]);p((()=>{null==I||I(x<=0?R:U)}),[x<=0?R:U]);const J=d((e=>{e.preventDefault(),e.stopPropagation(),null==v||v(V)}),[V]);return n(s,Object.assign({onChange:e=>N(e.target.value),ref:g,sx:Object.assign(Object.assign({position:"relative",borderRadius:"200px",border:1,borderColor:(null==z?void 0:z.disabled)?"disabled.primary":"onSurface.os500",py:"5px",pl:"15px",pr:"5px",mb:0,"&&":Object.assign({},b(1,!1,"&:has(.Mui-focused)"))},H),w)},z,{value:V,variant:"standard",slotProps:Object.assign(Object.assign(Object.assign({},F),{input:{className:""+(""!==V?"filled":""),disabled:C||(null==z?void 0:z.disabled),inputProps:Object.assign(Object.assign({},"inputProps"in F&&Object.assign({},F.inputProps)),{sx:Object.assign({p:0,ml:1,color:"text.primary","&::-webkit-input-placeholder":{color:"onSurface.os700"},"&.Mui-disabled":{"&, &::-webkit-input-placeholder":{color:"disabled.tertiary"}}},"inputProps"in F&&"sx"in F.inputProps&&Object.assign({},F.inputProps.sx))}),disableUnderline:!0,startAdornment:n(o,{position:"start",sx:{transition:"all .4s ease",mr:"5px"},children:n(t,{disabled:null==z?void 0:z.disabled,tabIndex:v?0:-1,onClick:J,size:"medium","aria-label":"Search",sx:Object.assign(Object.assign({width:"34px",height:"34px"},b("0px")),m({backgroundColor:"transparent.transparent"},{backgroundColor:"transparent.transparent"})),children:n(A,Object.assign({sx:Object.assign({transition:"all .5s ease"},q)},B))})}),endAdornment:n(o,{position:"end",sx:{opacity:""!==V?"1":"0",transition:"opacity .3s ease"},children:n(t,{disabled:""===V||(null==z?void 0:z.disabled),onClick:()=>{N(""),null==O||O()},size:"medium",tabIndex:C?-1:0,"aria-label":"Clear search",sx:Object.assign(Object.assign({cursor:""!==V?"pointer":"default",width:"34px",height:"34px"},b("0px")),m({backgroundColor:"transparent.transparent"},{backgroundColor:"transparent.transparent"})),children:n(M,Object.assign({},j))})})}}),G)}))}));export{g as Search};
2
2
  //# sourceMappingURL=search.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"search.js","sources":["../../../src/components/search/search.tsx"],"sourcesContent":["import { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\nimport { SearchIcon as FlowSearchIcon } from '@/src/components/icon/stroke/SearchIcon';\nimport { IconButton, InputAdornment, StandardTextFieldProps, SvgIconProps, TextField, Theme } from '@mui/material';\nimport { SystemStyleObject } from '@mui/system';\nimport React, { ElementType, forwardRef, MouseEventHandler, useCallback, useEffect, useMemo, useState } from 'react';\nimport useDebounce from '../../utils/useDebounce/useDebounce';\nimport { updateFocusRingStyle } from '@/src/components/focusring/focusring';\nimport { getInteractiveStyle } from '@/src/materialui/button/interactive';\n\nexport type SearchProps = Omit<StandardTextFieldProps, 'onChange' | 'variant' | 'value' | 'size'> & {\n /**\n * Defines whether the input is disabled or not\n */\n disableInput?: boolean;\n /**\n * Defines the time (ms) of debounce for the onChange effect\n *\n * @default 50\n */\n debounce?: number;\n /**\n * Click handler for the cancel button\n */\n onCancel?: () => void;\n /**\n * Click handler for the search button\n *\n * @param value the current value of search input\n */\n onSearch?: (value: string) => void | boolean;\n /**\n * Function that will bed called on every change of value, can be debounced by debounce value\n * If debounce is set to 0, the onChange is being called when deferred value changes\n *\n * @see debounce\n *\n * @param value current value of searchbar\n */\n onChange?: (value: string) => void;\n /**\n * Defines which variant of Searchbar component should be rendered\n * @default solid\n */\n variant?: 'solid' | 'transparent' | 'mapShadow';\n /**\n * Defines default value in the initial render\n * If set along with `value` property the `defaultValue` field takes precedence\n *\n * @see value\n */\n defaultValue?: string;\n /**\n * Overrides TextField value property so it can be string only\n * If set along with `defaultValue` property the `defaultValue` field takes precedence\n *\n * @see defaultValue\n */\n value?: string;\n /**\n * Properties passed to the search icon\n */\n searchIconProps?: SvgIconProps;\n /**\n * Node for search icon\n */\n SearchIconComponent?: ElementType<SvgIconProps>;\n /**\n * Properties passed to the cancel icon\n */\n cancelIconProps?: SvgIconProps;\n /**\n * Node for search icon\n */\n CancelIconComponent?: ElementType<SvgIconProps>;\n};\n\nexport const Search: React.FC<SearchProps> = forwardRef(\n (\n {\n debounce = 200,\n defaultValue = '',\n cancelIconProps = {},\n CancelIconComponent,\n disableInput,\n onCancel,\n onSearch,\n onChange,\n searchIconProps = {},\n SearchIconComponent,\n slotProps,\n sx,\n value = '',\n variant,\n ...rest\n },\n ref,\n ) => {\n const SearchIcon = SearchIconComponent || FlowSearchIcon;\n const CancelIcon = CancelIconComponent || CloseIcon;\n\n const [search, setSearch] = useState(defaultValue || value);\n\n // useDeferredValue not used due to compatibility with React 17\n // const deferredValue = useDeferredValue(search);\n const deferredValue = search;\n const debouncedValue = useDebounce(search, debounce, { instantClear: true });\n\n const { sx: searchIconSx, ...restSearchIconProps } = searchIconProps;\n const { input: slotPropsInput = {}, ...restSlot } = slotProps || {};\n\n const variantStyle = useMemo<SystemStyleObject<Theme>>(() => {\n switch (variant) {\n case 'transparent':\n return { bgcolor: 'transparent.primary' };\n case 'mapShadow':\n return { bgcolor: 'onSurface.os0', boxShadow: (theme) => theme.flowShadows.l };\n default: // solid\n return { bgcolor: 'surface.primary' };\n }\n }, [variant]);\n\n // if debounce is set use debouncedValue otherwise use deferredValue as dependency and as value\n useEffect(() => {\n onChange?.(debounce <= 0 ? deferredValue : debouncedValue);\n }, [debounce <= 0 ? deferredValue : debouncedValue]);\n\n // this handler is assigned to the magnifier button\n const handleSearchIconClick: MouseEventHandler = useCallback(\n (e) => {\n e.preventDefault();\n e.stopPropagation();\n\n onSearch?.(search);\n },\n [search],\n );\n\n // this handler is assigned to 'X' button\n const handleCancelIconClick = () => {\n setSearch('');\n onCancel?.();\n };\n\n return (\n <TextField\n onChange={(e) => setSearch(e.target.value)}\n ref={ref}\n sx={{\n position: 'relative',\n borderRadius: '200px',\n border: 1,\n borderColor: rest?.disabled ? 'disabled.primary' : 'onSurface.os900',\n py: '5px',\n pl: '15px',\n pr: '5px',\n mb: 0,\n // focus ring\n '&&': {\n ...updateFocusRingStyle(1, false, '&:has(.Mui-focused)'),\n },\n ...variantStyle,\n ...sx,\n }}\n {...rest}\n value={search}\n variant=\"standard\"\n slotProps={{\n ...slotPropsInput,\n input: {\n className: `${search !== '' ? 'filled' : ''}`,\n disabled: disableInput || rest?.disabled,\n inputProps: {\n ...('inputProps' in slotPropsInput && { ...slotPropsInput.inputProps }),\n sx: {\n p: 0,\n ml: 1,\n color: 'text.primary',\n '&::-webkit-input-placeholder': {\n color: 'onSurface.os700',\n },\n '&.Mui-disabled': {\n '&, &::-webkit-input-placeholder': {\n color: 'disabled.tertiary',\n },\n },\n ...('inputProps' in slotPropsInput &&\n 'sx' in slotPropsInput.inputProps && { ...slotPropsInput.inputProps.sx }),\n },\n },\n disableUnderline: true,\n startAdornment: (\n <InputAdornment\n position=\"start\"\n sx={{\n transition: 'all .4s ease',\n mr: '5px',\n }}\n >\n <IconButton\n disabled={rest?.disabled}\n tabIndex={!onSearch ? -1 : 0}\n onClick={handleSearchIconClick}\n size=\"medium\"\n aria-label=\"Search\"\n sx={{\n width: '34px',\n height: '34px',\n ...updateFocusRingStyle('0px'),\n ...getInteractiveStyle(\n {\n backgroundColor: 'transparent.transparent',\n },\n {\n backgroundColor: 'transparent.transparent',\n },\n ),\n }}\n >\n <SearchIcon\n sx={{\n transition: 'all .5s ease',\n ...searchIconSx,\n }}\n {...restSearchIconProps}\n />\n </IconButton>\n </InputAdornment>\n ),\n endAdornment: (\n <InputAdornment\n position=\"end\"\n sx={{\n opacity: search !== '' ? '1' : '0',\n transition: 'opacity .3s ease',\n }}\n >\n <IconButton\n disabled={search === '' || rest?.disabled}\n onClick={handleCancelIconClick}\n size=\"medium\"\n tabIndex={disableInput ? -1 : 0}\n aria-label=\"Clear search\"\n sx={{\n cursor: search !== '' ? 'pointer' : 'default',\n width: '34px',\n height: '34px',\n ...updateFocusRingStyle('0px'),\n ...getInteractiveStyle(\n {\n backgroundColor: 'transparent.transparent',\n },\n {\n backgroundColor: 'transparent.transparent',\n },\n ),\n }}\n >\n <CancelIcon {...cancelIconProps} />\n </IconButton>\n </InputAdornment>\n ),\n },\n ...restSlot,\n }}\n />\n );\n },\n);\n"],"names":["Search","forwardRef","_a","ref","debounce","defaultValue","cancelIconProps","CancelIconComponent","disableInput","onCancel","onSearch","onChange","searchIconProps","SearchIconComponent","slotProps","sx","value","variant","rest","__rest","SearchIcon","FlowSearchIcon","CancelIcon","CloseIcon","search","setSearch","useState","deferredValue","debouncedValue","useDebounce","instantClear","searchIconSx","restSearchIconProps","_b","input","slotPropsInput","restSlot","variantStyle","useMemo","bgcolor","boxShadow","theme","flowShadows","l","useEffect","handleSearchIconClick","useCallback","e","preventDefault","stopPropagation","_jsx","TextField","Object","assign","target","position","borderRadius","border","borderColor","disabled","py","pl","pr","mb","updateFocusRingStyle","className","inputProps","p","ml","color","disableUnderline","startAdornment","InputAdornment","transition","mr","children","IconButton","tabIndex","onClick","size","width","height","getInteractiveStyle","backgroundColor","endAdornment","opacity","cursor"],"mappings":"yiBA4Ea,MAAAA,EAAgCC,GAC3C,CACEC,E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EAAgB,IAAM,IAC/BiD,WAAY,oBACbE,SAEDzB,EAAC0B,EACC,CAAAjB,SAAqB,KAAXnC,IAAiBN,aAAI,EAAJA,EAAMyC,UACjCmB,QApGgB,KAC5BrD,EAAU,IACVhB,SAAAA,GAAY,EAmGAsE,KAAK,SACLF,SAAUrE,GAAiB,EAAG,EAAC,aACpB,eACXO,GACEqC,OAAAC,OAAAD,OAAAC,OAAA,CAAAiC,OAAmB,KAAX9D,EAAgB,UAAY,UACpCwD,MAAO,OACPC,OAAQ,QACLjB,EAAqB,QACrBkB,EACD,CACEC,gBAAiB,2BAEnB,CACEA,gBAAiB,6BAEpBR,SAGHzB,EAAC5B,EAAU8B,OAAAC,OAAA,CAAA,EAAK/C,WAKrB8B,KAEL"}
1
+ {"version":3,"file":"search.js","sources":["../../../src/components/search/search.tsx"],"sourcesContent":["import { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\nimport { SearchIcon as FlowSearchIcon } from '@/src/components/icon/stroke/SearchIcon';\nimport { IconButton, InputAdornment, StandardTextFieldProps, SvgIconProps, TextField } from '@mui/material';\nimport React, { ElementType, forwardRef, MouseEventHandler, useCallback, useEffect, useMemo, useState } from 'react';\nimport useDebounce from '../../utils/useDebounce/useDebounce';\nimport { updateFocusRingStyle } from '@/src/components/focusring/focusring';\nimport { getInteractiveStyle } from '@/src/materialui/button/interactive';\n\nexport type SearchProps = Omit<StandardTextFieldProps, 'onChange' | 'variant' | 'value' | 'size'> & {\n /**\n * Defines whether the input is disabled or not\n */\n disableInput?: boolean;\n /**\n * Defines the time (ms) of debounce for the onChange effect\n *\n * @default 50\n */\n debounce?: number;\n /**\n * Click handler for the cancel button\n */\n onCancel?: () => void;\n /**\n * Click handler for the search button\n *\n * @param value the current value of search input\n */\n onSearch?: (value: string) => void | boolean;\n /**\n * Function that will bed called on every change of value, can be debounced by debounce value\n * If debounce is set to 0, the onChange is being called when deferred value changes\n *\n * @see debounce\n *\n * @param value current value of searchbar\n */\n onChange?: (value: string) => void;\n /**\n * Defines which variant of Searchbar component should be rendered\n * @default solid\n */\n variant?: 'solid' | 'transparent' | 'mapShadow';\n /**\n * Defines default value in the initial render\n * If set along with `value` property the `defaultValue` field takes precedence\n *\n * @see value\n */\n defaultValue?: string;\n /**\n * Overrides TextField value property so it can be string only\n * If set along with `defaultValue` property the `defaultValue` field takes precedence\n *\n * @see defaultValue\n */\n value?: string;\n /**\n * Properties passed to the search icon\n */\n searchIconProps?: SvgIconProps;\n /**\n * Node for search icon\n */\n SearchIconComponent?: ElementType<SvgIconProps>;\n /**\n * Properties passed to the cancel icon\n */\n cancelIconProps?: SvgIconProps;\n /**\n * Node for search icon\n */\n CancelIconComponent?: ElementType<SvgIconProps>;\n};\n\nexport const Search: React.FC<SearchProps> = forwardRef(\n (\n {\n debounce = 200,\n defaultValue = '',\n cancelIconProps = {},\n CancelIconComponent,\n disableInput,\n onCancel,\n onSearch,\n onChange,\n searchIconProps = {},\n SearchIconComponent,\n slotProps,\n sx,\n value = '',\n variant,\n ...rest\n },\n ref,\n ) => {\n const SearchIcon = SearchIconComponent || FlowSearchIcon;\n const CancelIcon = CancelIconComponent || CloseIcon;\n\n const [search, setSearch] = useState(defaultValue || value);\n\n // useDeferredValue not used due to compatibility with React 17\n // const deferredValue = useDeferredValue(search);\n const deferredValue = search;\n const debouncedValue = useDebounce(search, debounce, { instantClear: true });\n\n const { sx: searchIconSx, ...restSearchIconProps } = searchIconProps;\n const { input: slotPropsInput = {}, ...restSlot } = slotProps || {};\n\n const variantStyle = useMemo(() => {\n switch (variant) {\n case 'transparent':\n return { bgcolor: 'transparent.primary' };\n case 'mapShadow':\n return { bgcolor: 'onSurface.os0', boxShadow: (theme) => theme.flowShadows.l };\n default: // solid\n return { bgcolor: 'surface.primary' };\n }\n }, [variant]);\n\n // if debounce is set use debouncedValue otherwise use deferredValue as dependency and as value\n useEffect(() => {\n onChange?.(debounce <= 0 ? deferredValue : debouncedValue);\n }, [debounce <= 0 ? deferredValue : debouncedValue]);\n\n // this handler is assigned to the magnifier button\n const handleSearchIconClick: MouseEventHandler = useCallback(\n (e) => {\n e.preventDefault();\n e.stopPropagation();\n\n onSearch?.(search);\n },\n [search],\n );\n\n // this handler is assigned to 'X' button\n const handleCancelIconClick = () => {\n setSearch('');\n onCancel?.();\n };\n\n return (\n <TextField\n onChange={(e) => setSearch(e.target.value)}\n ref={ref}\n sx={{\n position: 'relative',\n borderRadius: '200px',\n border: 1,\n borderColor: rest?.disabled ? 'disabled.primary' : 'onSurface.os500',\n py: '5px',\n pl: '15px',\n pr: '5px',\n mb: 0,\n // focus ring\n '&&': {\n ...updateFocusRingStyle(1, false, '&:has(.Mui-focused)'),\n },\n ...variantStyle,\n ...sx,\n }}\n {...rest}\n value={search}\n variant=\"standard\"\n slotProps={{\n ...slotPropsInput,\n input: {\n className: `${search !== '' ? 'filled' : ''}`,\n disabled: disableInput || rest?.disabled,\n inputProps: {\n ...('inputProps' in slotPropsInput && { ...slotPropsInput.inputProps }),\n sx: {\n p: 0,\n ml: 1,\n color: 'text.primary',\n '&::-webkit-input-placeholder': {\n color: 'onSurface.os700',\n },\n '&.Mui-disabled': {\n '&, &::-webkit-input-placeholder': {\n color: 'disabled.tertiary',\n },\n },\n ...('inputProps' in slotPropsInput &&\n 'sx' in slotPropsInput.inputProps && { ...slotPropsInput.inputProps.sx }),\n },\n },\n disableUnderline: true,\n startAdornment: (\n <InputAdornment\n position=\"start\"\n sx={{\n transition: 'all .4s ease',\n mr: '5px',\n }}\n >\n <IconButton\n disabled={rest?.disabled}\n tabIndex={!onSearch ? -1 : 0}\n onClick={handleSearchIconClick}\n size=\"medium\"\n aria-label=\"Search\"\n sx={{\n width: '34px',\n height: '34px',\n ...updateFocusRingStyle('0px'),\n ...getInteractiveStyle(\n {\n backgroundColor: 'transparent.transparent',\n },\n {\n backgroundColor: 'transparent.transparent',\n },\n ),\n }}\n >\n <SearchIcon\n sx={{\n transition: 'all .5s ease',\n ...searchIconSx,\n }}\n {...restSearchIconProps}\n />\n </IconButton>\n </InputAdornment>\n ),\n endAdornment: (\n <InputAdornment\n position=\"end\"\n sx={{\n opacity: search !== '' ? '1' : '0',\n transition: 'opacity .3s ease',\n }}\n >\n <IconButton\n disabled={search === '' || rest?.disabled}\n onClick={handleCancelIconClick}\n size=\"medium\"\n tabIndex={disableInput ? -1 : 0}\n aria-label=\"Clear search\"\n sx={{\n cursor: search !== '' ? 'pointer' : 'default',\n width: '34px',\n height: '34px',\n ...updateFocusRingStyle('0px'),\n ...getInteractiveStyle(\n {\n backgroundColor: 'transparent.transparent',\n },\n {\n backgroundColor: 'transparent.transparent',\n },\n ),\n }}\n >\n <CancelIcon {...cancelIconProps} />\n </IconButton>\n </InputAdornment>\n ),\n },\n ...restSlot,\n }}\n />\n );\n },\n);\n"],"names":["Search","forwardRef","_a","ref","debounce","defaultValue","cancelIconProps","CancelIconComponent","disableInput","onCancel","onSearch","onChange","searchIconProps","SearchIconComponent","slotProps","sx","value","variant","rest","__rest","SearchIcon","FlowSearchIcon","CancelIcon","CloseIcon","search","setSearch","useState","deferredValue","debouncedValue","useDebounce","instantClear","searchIconSx","restSearchIconProps","_b","input","slotPropsInput","restSlot","variantStyle","useMemo","bgcolor","boxShadow","theme","flowShadows","l","useEffect","handleSearchIconClick","useCallback","e","preventDefault","stopPropagation","_jsx","TextField","Object","assign","target","position","borderRadius","border","borderColor","disabled","py","pl","pr","mb","updateFocusRingStyle","className","inputProps","p","ml","color","disableUnderline","startAdornment","InputAdornment","transition","mr","children","IconButton","tabIndex","onClick","size","width","height","getInteractiveStyle","backgroundColor","endAdornment","opacity","cursor"],"mappings":"yiBA2Ea,MAAAA,EAAgCC,GAC3C,CACEC,EAiBAC,KAjBA,IAAAC,SACEA,EAAW,IAAGC,aACdA,EAAe,GAAEC,gBACjBA,EAAkB,CAAA,EAAEC,oBACpBA,EAAmBC,aACnBA,EAAYC,SACZA,EAAQC,SACRA,EAAQC,SACRA,EAAQC,gBACRA,EAAkB,CAAE,EAAAC,oBACpB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,GAAiB,EAAG,EAAC,aACpB,eACXO,GACEqC,OAAAC,OAAAD,OAAAC,OAAA,CAAAiC,OAAmB,KAAX9D,EAAgB,UAAY,UACpCwD,MAAO,OACPC,OAAQ,QACLjB,EAAqB,QACrBkB,EACD,CACEC,gBAAiB,2BAEnB,CACEA,gBAAiB,6BAEpBR,SAGHzB,EAAC5B,EAAU8B,OAAAC,OAAA,CAAA,EAAK/C,WAKrB8B,KAEL"}
@@ -1,2 +1,2 @@
1
1
  import{jsx as t}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Tabs as r}from"@mui/material";const m=e(((e,m)=>t(r,Object.assign({},e,{ref:m,template:"segmented"}))));export{m as SegmentedControls};
2
- //# sourceMappingURL=segmentedControls.js.map
2
+ //# sourceMappingURL=SegmentedControls.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"segmentedControls.js","sources":["../../../src/components/segmentedControls/segmentedControls.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { Tabs, TabsProps } from '@mui/material';\n\nexport interface SegmentedControlsProps extends Omit<TabsProps, 'template'> {}\n\n/**\n * Segmented Controls is a proxy component to <Tabs template=\"segmented\" />\n */\nexport const SegmentedControls: React.FC<SegmentedControlsProps> = forwardRef((props, ref) => {\n return <Tabs {...props} ref={ref} template=\"segmented\" />;\n});\n"],"names":["SegmentedControls","forwardRef","props","ref","_jsx","Tabs","Object","assign","template"],"mappings":"gHAQa,MAAAA,EAAsDC,GAAW,CAACC,EAAOC,IAC7EC,EAACC,EAASC,OAAAC,OAAA,CAAA,EAAAL,EAAO,CAAAC,IAAKA,EAAKK,SAAS"}
1
+ {"version":3,"file":"SegmentedControls.js","sources":["../../../src/components/segmentedControls/SegmentedControls.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { Tabs, TabsProps } from '@mui/material';\n\nexport interface SegmentedControlsProps extends Omit<TabsProps, 'template'> {}\n\n/**\n * Segmented Controls is a proxy component to <Tabs template=\"segmented\" />\n */\nexport const SegmentedControls: React.FC<SegmentedControlsProps> = forwardRef((props, ref) => {\n return <Tabs {...props} ref={ref} template=\"segmented\" />;\n});\n"],"names":["SegmentedControls","forwardRef","props","ref","_jsx","Tabs","Object","assign","template"],"mappings":"gHAQa,MAAAA,EAAsDC,GAAW,CAACC,EAAOC,IAC7EC,EAACC,EAASC,OAAAC,OAAA,CAAA,EAAAL,EAAO,CAAAC,IAAKA,EAAKK,SAAS"}
@@ -1 +1 @@
1
- export * from './segmentedControls';
1
+ export * from './SegmentedControls';
@@ -1,6 +1,4 @@
1
- import { Theme } from '@mui/material';
2
- import { TooltipProps } from '@mui/material/Tooltip/Tooltip';
3
- import { SxProps } from '@mui/system';
1
+ import { Theme, SxProps, TooltipProps } from '@mui/material';
4
2
  import { HTMLAttributes } from 'react';
5
3
  type Location = 'top' | 'bottom';
6
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","sources":["../../../src/components/stepper/model.ts"],"sourcesContent":["import { Theme } from '@mui/material';\nimport { TooltipProps } from '@mui/material/Tooltip/Tooltip';\nimport { SxProps } from '@mui/system';\nimport { HTMLAttributes } from 'react';\n\ntype Location = 'top' | 'bottom';\n\n/**\n * @deprecated\n */\ninterface StepDescriptionDefinition {\n text?: string;\n width?: string;\n tooltipProps?: TooltipProps;\n}\n\n/**\n * @deprecated\n */\ninterface StepDefinition {\n label: string;\n stepDescription?: StepDescriptionDefinition;\n}\n\n/**\n * @deprecated\n */\nconst StepperIconsEnum = Object.seal({\n default: 'QontoStepIcon-circle',\n active: 'QontoStepIcon-active',\n completed: 'QontoStepIcon-completedIcon',\n});\n\n/**\n * @deprecated Use StepperProps from @mui/material instead\n */\ninterface StepperProps extends HTMLAttributes<HTMLDivElement> {\n /**\n * The activeStep of a stepper.\n */\n activeStep?: number;\n /**\n * if true, orientation is horizontal, then the step label will be positioned under the icon..\n */\n alternativeLabel?: boolean;\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx?: SxProps<Theme>;\n /**\n * Override or extend the styles applied to the component.\n */\n classes?: object;\n /**\n * An element to be placed between each step.\n */\n connector?: Element;\n /**\n * If set the Stepper will not assist in controlling steps for linear flow.\n */\n nonLinear?: boolean;\n /**\n * The component orientation (layout flow direction).\n */\n orientation?: 'horizontal';\n /**\n * The total steps.\n */\n step?: Array<string | StepDefinition>;\n}\n\nexport { StepperIconsEnum };\nexport type { StepDescriptionDefinition, Location, StepDefinition, StepperProps };\n"],"names":["StepperIconsEnum","Object","seal","default","active","completed"],"mappings":"AA2BA,MAAMA,EAAmBC,OAAOC,KAAK,CACnCC,QAAS,uBACTC,OAAQ,uBACRC,UAAW"}
1
+ {"version":3,"file":"model.js","sources":["../../../src/components/stepper/model.ts"],"sourcesContent":["import { Theme, SxProps, TooltipProps } from '@mui/material';\nimport { HTMLAttributes } from 'react';\n\ntype Location = 'top' | 'bottom';\n\n/**\n * @deprecated\n */\ninterface StepDescriptionDefinition {\n text?: string;\n width?: string;\n tooltipProps?: TooltipProps;\n}\n\n/**\n * @deprecated\n */\ninterface StepDefinition {\n label: string;\n stepDescription?: StepDescriptionDefinition;\n}\n\n/**\n * @deprecated\n */\nconst StepperIconsEnum = Object.seal({\n default: 'QontoStepIcon-circle',\n active: 'QontoStepIcon-active',\n completed: 'QontoStepIcon-completedIcon',\n});\n\n/**\n * @deprecated Use StepperProps from @mui/material instead\n */\ninterface StepperProps extends HTMLAttributes<HTMLDivElement> {\n /**\n * The activeStep of a stepper.\n */\n activeStep?: number;\n /**\n * if true, orientation is horizontal, then the step label will be positioned under the icon..\n */\n alternativeLabel?: boolean;\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx?: SxProps<Theme>;\n /**\n * Override or extend the styles applied to the component.\n */\n classes?: object;\n /**\n * An element to be placed between each step.\n */\n connector?: Element;\n /**\n * If set the Stepper will not assist in controlling steps for linear flow.\n */\n nonLinear?: boolean;\n /**\n * The component orientation (layout flow direction).\n */\n orientation?: 'horizontal';\n /**\n * The total steps.\n */\n step?: Array<string | StepDefinition>;\n}\n\nexport { StepperIconsEnum };\nexport type { StepDescriptionDefinition, Location, StepDefinition, StepperProps };\n"],"names":["StepperIconsEnum","Object","seal","default","active","completed"],"mappings":"AAyBA,MAAMA,EAAmBC,OAAOC,KAAK,CACnCC,QAAS,uBACTC,OAAQ,uBACRC,UAAW"}
@@ -1,2 +1,2 @@
1
- import{__rest as s}from"tslib";import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as i}from"react";import{Box as n,Typography as l}from"@mui/material";import{Label as a}from"../label/label.js";const r=i(((i,r)=>{var{sx:o,children:b,label:c,labelProps:d,headline:x,headlineProps:m,subheadline:p,subheadlineProps:h,body:j,bodyProps:u,buttons:g,buttonsProps:f}=i,O=s(i,["sx","children","label","labelProps","headline","headlineProps","subheadline","subheadlineProps","body","bodyProps","buttons","buttonsProps"]);const y=d||{},{sx:P}=y,k=s(y,["sx"]),v=m||{},{sx:w}=v,C=s(v,["sx"]),D=h||{},{sx:I}=D,W=s(D,["sx"]),q=u||{},{sx:z}=q,A=s(q,["sx"]),B=f||{},{sx:E}=B,F=s(B,["sx"]);return e(n,Object.assign({sx:Object.assign({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",p:3,width:"320px",maxWidth:"100%"},o),ref:r},O,{children:[c&&t(a,Object.assign({sx:Object.assign({mb:1},P)},k,{children:c})),x&&t(l,Object.assign({variant:"h4",sx:Object.assign({display:"block",mb:1},w)},C,{children:x})),p&&t(l,Object.assign({variant:"subheadline",sx:Object.assign({display:"block",mb:1},I)},W,{children:p})),j&&t(l,Object.assign({sx:Object.assign({display:"block",mb:2},z)},A,{children:j})),b,g&&t(n,Object.assign({sx:Object.assign({display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:{xs:"stretch",md:"center"},justifyContent:"stretch",gap:1},E)},F,{children:g}))]}))}));export{r as TextAndCta};
1
+ import{__rest as s}from"tslib";import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as i}from"react";import{Box as l,Typography as n}from"@mui/material";import{Label as a}from"../label/label.js";const r=i(((i,r)=>{var{sx:o,children:b,label:c,labelProps:d,headline:x,headlineProps:m,subheadline:p,subheadlineProps:h,body:g,bodyProps:j,buttons:u,buttonsProps:f}=i,O=s(i,["sx","children","label","labelProps","headline","headlineProps","subheadline","subheadlineProps","body","bodyProps","buttons","buttonsProps"]);const y=d||{},{sx:P}=y,k=s(y,["sx"]),v=m||{},{sx:w}=v,C=s(v,["sx"]),D=h||{},{sx:I}=D,S=s(D,["sx"]),W=j||{},{sx:q}=W,z=s(W,["sx"]),A=f||{},{sx:B}=A,E=s(A,["sx"]);return e(l,Object.assign({sx:Object.assign({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",p:3,width:"320px",maxWidth:"100%"},o),ref:r},O,{children:[c&&t(a,Object.assign({sx:Object.assign({mb:1},P)},k,{children:c})),x&&t(n,Object.assign({variant:"h4",sx:Object.assign({display:"block",mb:1},w)},C,{children:x})),p&&t(n,Object.assign({variant:"subheadline",sx:Object.assign({display:"block",mb:1},I)},S,{children:p})),g&&t(n,Object.assign({sx:Object.assign({display:"block",mb:2},q)},z,{children:g})),b,u&&t(l,Object.assign({sx:Object.assign({display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:{xs:"stretch",md:"center"},justifyContent:"stretch",alignSelf:"stretch",gap:1},B)},E,{children:u}))]}))}));export{r as TextAndCta};
2
2
  //# sourceMappingURL=textAndCta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"textAndCta.js","sources":["../../../src/components/textAndCta/textAndCta.tsx"],"sourcesContent":["import React, { ReactNode, forwardRef, ElementType } from 'react';\nimport { Box, BoxProps, Typography, TypographyProps } from '@mui/material';\nimport { Label, LabelProps } from '@/src/components/label';\n\nexport interface TextAndCtaProps extends BoxProps<ElementType> {\n /**\n * Top label above the headlines\n */\n label?: ReactNode;\n /**\n * Label customization\n */\n labelProps?: LabelProps;\n /**\n * Main Headline at the top\n */\n headline?: ReactNode;\n /**\n * Headline customization\n */\n headlineProps?: TypographyProps;\n /**\n * Main Headline at the top\n */\n subheadline?: ReactNode;\n /**\n * Subheading customization\n */\n subheadlineProps?: TypographyProps;\n /**\n * Main text body\n */\n body?: ReactNode;\n /**\n * Body text customization\n */\n bodyProps?: TypographyProps;\n /**\n * Bottom CTA buttons\n */\n buttons?: ReactNode;\n /**\n * Body text customization\n */\n buttonsProps?: BoxProps;\n}\n\nexport const TextAndCta: React.FC<TextAndCtaProps> = forwardRef(\n (\n {\n sx,\n children,\n label,\n labelProps,\n headline,\n headlineProps,\n subheadline,\n subheadlineProps,\n body,\n bodyProps,\n buttons,\n buttonsProps,\n ...rest\n },\n ref,\n ) => {\n const { sx: labelSx, ...restLabelProps } = labelProps || {};\n const { sx: headlineSx, ...restHeadlineProps } = headlineProps || {};\n const { sx: subHeadlineSx, ...restSubHeadlineProps } = subheadlineProps || {};\n const { sx: bodySx, ...restBodyProps } = bodyProps || {};\n const { sx: buttonsSx, ...restButtonsProps } = buttonsProps || {};\n\n return (\n <Box\n sx={{\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n p: 3,\n width: '320px',\n maxWidth: '100%',\n ...sx,\n }}\n ref={ref}\n {...rest}\n >\n {label && (\n <Label sx={{ mb: 1, ...labelSx }} {...restLabelProps}>\n {label}\n </Label>\n )}\n {headline && (\n <Typography variant=\"h4\" sx={{ display: 'block', mb: 1, ...headlineSx }} {...restHeadlineProps}>\n {headline}\n </Typography>\n )}\n {subheadline && (\n <Typography\n variant=\"subheadline\"\n sx={{ display: 'block', mb: 1, ...subHeadlineSx }}\n {...restSubHeadlineProps}\n >\n {subheadline}\n </Typography>\n )}\n {body && (\n <Typography sx={{ display: 'block', mb: 2, ...bodySx }} {...restBodyProps}>\n {body}\n </Typography>\n )}\n {children}\n {buttons && (\n <Box\n sx={{\n display: 'flex',\n flexDirection: { xs: 'column', md: 'row' },\n alignItems: { xs: 'stretch', md: 'center' },\n justifyContent: 'stretch',\n gap: 1,\n ...buttonsSx,\n }}\n {...restButtonsProps}\n >\n {buttons}\n </Box>\n )}\n </Box>\n );\n },\n);\n"],"names":["TextAndCta","forwardRef","_a","ref","sx","children","label","labelProps","headline","headlineProps","subheadline","subheadlineProps","body","bodyProps","buttons","buttonsProps","rest","__rest","_b","labelSx","restLabelProps","_c","headlineSx","restHeadlineProps","_d","subHeadlineSx","restSubHeadlineProps","_e","bodySx","restBodyProps","_f","buttonsSx","restButtonsProps","_jsxs","Box","Object","assign","display","flexDirection","alignItems","justifyContent","p","width","maxWidth","_jsx","Label","mb","Typography","variant","xs","md","gap"],"mappings":"kNA+Ca,MAAAA,EAAwCC,GACnD,CACEC,EAeAC,KAfA,IAAAC,GACEA,EAAEC,SACFA,EAAQC,MACRA,EAAKC,WACLA,EAAUC,SACVA,EAAQC,cACRA,EAAaC,YACbA,EAAWC,iBACXA,EAAgBC,KAChBA,EAAIC,UACJA,EAASC,QACTA,EAAOC,aACPA,GAAYb,EACTc,EAbLC,EAAAf,EAAA,CAAA,KAAA,WAAA,QAAA,aAAA,WAAA,gBAAA,cAAA,mBAAA,OAAA,YAAA,UAAA,iBAiBA,MAAMgB,EAAqCX,GAAc,IAAjDH,GAAIe,KAAYC,EAAlBH,EAAAC,EAAA,CAAA,OACAG,EAA2CZ,GAAiB,IAA1DL,GAAIkB,KAAeC,EAArBN,EAAAI,EAAA,CAAA,OACAG,EAAiDb,GAAoB,IAAnEP,GAAIqB,KAAkBC,EAAxBT,EAAAO,EAAA,CAAA,OACAG,EAAmCd,GAAa,IAA9CT,GAAIwB,KAAWC,EAAjBZ,EAAAU,EAAA,CAAA,OACAG,EAAyCf,GAAgB,IAAvDX,GAAI2B,KAAcC,EAApBf,EAAAa,EAAA,CAAA,OAEN,OACEG,EAACC,EAAGC,OAAAC,OAAA,CACFhC,GACE+B,OAAAC,OAAA,CAAAC,QAAS,OACTC,cAAe,SACfC,WAAY,aACZC,eAAgB,aAChBC,EAAG,EACHC,MAAO,QACPC,SAAU,QACPvC,GAELD,IAAKA,GACDa,aAEHV,GACCsC,EAACC,EAAKV,OAAAC,OAAA,CAAChC,GAAM+B,OAAAC,OAAA,CAAAU,GAAI,GAAM3B,IAAeC,YACnCd,KAGJE,GACCoC,EAACG,EAAWZ,OAAAC,OAAA,CAAAY,QAAQ,KAAK5C,kBAAMiC,QAAS,QAASS,GAAI,GAAMxB,IAAkBC,YAC1Ef,KAGJE,GACCkC,EAACG,EAAUZ,OAAAC,OAAA,CACTY,QAAQ,cACR5C,kBAAMiC,QAAS,QAASS,GAAI,GAAMrB,IAC9BC,YAEHhB,KAGJE,GACCgC,EAACG,iBAAW3C,GAAE+B,OAAAC,OAAA,CAAIC,QAAS,QAASS,GAAI,GAAMlB,IAAcC,EAAa,CAAAxB,SACtEO,KAGJP,EACAS,GACC8B,EAACV,EACCC,OAAAC,OAAA,CAAAhC,kBACEiC,QAAS,OACTC,cAAe,CAAEW,GAAI,SAAUC,GAAI,OACnCX,WAAY,CAAEU,GAAI,UAAWC,GAAI,UACjCV,eAAgB,UAChBW,IAAK,GACFpB,IAEDC,EAAgB,CAAA3B,SAEnBS,QAGD"}
1
+ {"version":3,"file":"textAndCta.js","sources":["../../../src/components/textAndCta/textAndCta.tsx"],"sourcesContent":["import React, { ReactNode, forwardRef, ElementType } from 'react';\nimport { Box, BoxProps, Typography, TypographyProps } from '@mui/material';\nimport { Label, LabelProps } from '@/src/components/label';\n\nexport interface TextAndCtaProps extends BoxProps<ElementType> {\n /**\n * Top label above the headlines\n */\n label?: ReactNode;\n /**\n * Label customization\n */\n labelProps?: LabelProps;\n /**\n * Main Headline at the top\n */\n headline?: ReactNode;\n /**\n * Headline customization\n */\n headlineProps?: TypographyProps;\n /**\n * Main Headline at the top\n */\n subheadline?: ReactNode;\n /**\n * Subheading customization\n */\n subheadlineProps?: TypographyProps;\n /**\n * Main text body\n */\n body?: ReactNode;\n /**\n * Body text customization\n */\n bodyProps?: TypographyProps;\n /**\n * Bottom CTA buttons\n */\n buttons?: ReactNode;\n /**\n * Body text customization\n */\n buttonsProps?: BoxProps;\n}\n\nexport const TextAndCta: React.FC<TextAndCtaProps> = forwardRef(\n (\n {\n sx,\n children,\n label,\n labelProps,\n headline,\n headlineProps,\n subheadline,\n subheadlineProps,\n body,\n bodyProps,\n buttons,\n buttonsProps,\n ...rest\n },\n ref,\n ) => {\n const { sx: labelSx, ...restLabelProps } = labelProps || {};\n const { sx: headlineSx, ...restHeadlineProps } = headlineProps || {};\n const { sx: subHeadlineSx, ...restSubHeadlineProps } = subheadlineProps || {};\n const { sx: bodySx, ...restBodyProps } = bodyProps || {};\n const { sx: buttonsSx, ...restButtonsProps } = buttonsProps || {};\n\n return (\n <Box\n sx={{\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n justifyContent: 'flex-start',\n p: 3,\n width: '320px',\n maxWidth: '100%',\n ...sx,\n }}\n ref={ref}\n {...rest}\n >\n {label && (\n <Label sx={{ mb: 1, ...labelSx }} {...restLabelProps}>\n {label}\n </Label>\n )}\n {headline && (\n <Typography variant=\"h4\" sx={{ display: 'block', mb: 1, ...headlineSx }} {...restHeadlineProps}>\n {headline}\n </Typography>\n )}\n {subheadline && (\n <Typography\n variant=\"subheadline\"\n sx={{ display: 'block', mb: 1, ...subHeadlineSx }}\n {...restSubHeadlineProps}\n >\n {subheadline}\n </Typography>\n )}\n {body && (\n <Typography sx={{ display: 'block', mb: 2, ...bodySx }} {...restBodyProps}>\n {body}\n </Typography>\n )}\n {children}\n {buttons && (\n <Box\n sx={{\n display: 'flex',\n flexDirection: { xs: 'column', md: 'row' },\n alignItems: { xs: 'stretch', md: 'center' },\n justifyContent: 'stretch',\n alignSelf: 'stretch',\n gap: 1,\n ...buttonsSx,\n }}\n {...restButtonsProps}\n >\n {buttons}\n </Box>\n )}\n </Box>\n );\n },\n);\n"],"names":["TextAndCta","forwardRef","_a","ref","sx","children","label","labelProps","headline","headlineProps","subheadline","subheadlineProps","body","bodyProps","buttons","buttonsProps","rest","__rest","_b","labelSx","restLabelProps","_c","headlineSx","restHeadlineProps","_d","subHeadlineSx","restSubHeadlineProps","_e","bodySx","restBodyProps","_f","buttonsSx","restButtonsProps","_jsxs","Box","Object","assign","display","flexDirection","alignItems","justifyContent","p","width","maxWidth","_jsx","Label","mb","Typography","variant","xs","md","alignSelf","gap"],"mappings":"kNA+Ca,MAAAA,EAAwCC,GACnD,CACEC,EAeAC,KAfA,IAAAC,GACEA,EAAEC,SACFA,EAAQC,MACRA,EAAKC,WACLA,EAAUC,SACVA,EAAQC,cACRA,EAAaC,YACbA,EAAWC,iBACXA,EAAgBC,KAChBA,EAAIC,UACJA,EAASC,QACTA,EAAOC,aACPA,GAAYb,EACTc,EAbLC,EAAAf,EAAA,CAAA,KAAA,WAAA,QAAA,aAAA,WAAA,gBAAA,cAAA,mBAAA,OAAA,YAAA,UAAA,iBAiBA,MAAMgB,EAAqCX,GAAc,IAAjDH,GAAIe,KAAYC,EAAlBH,EAAAC,EAAA,CAAA,OACAG,EAA2CZ,GAAiB,IAA1DL,GAAIkB,KAAeC,EAArBN,EAAAI,EAAA,CAAA,OACAG,EAAiDb,GAAoB,IAAnEP,GAAIqB,KAAkBC,EAAxBT,EAAAO,EAAA,CAAA,OACAG,EAAmCd,GAAa,IAA9CT,GAAIwB,KAAWC,EAAjBZ,EAAAU,EAAA,CAAA,OACAG,EAAyCf,GAAgB,IAAvDX,GAAI2B,KAAcC,EAApBf,EAAAa,EAAA,CAAA,OAEN,OACEG,EAACC,EAAGC,OAAAC,OAAA,CACFhC,GACE+B,OAAAC,OAAA,CAAAC,QAAS,OACTC,cAAe,SACfC,WAAY,aACZC,eAAgB,aAChBC,EAAG,EACHC,MAAO,QACPC,SAAU,QACPvC,GAELD,IAAKA,GACDa,EAAI,CAAAX,SAAA,CAEPC,GACCsC,EAACC,EAAMV,OAAAC,OAAA,CAAAhC,kBAAM0C,GAAI,GAAM3B,IAAeC,EAAc,CAAAf,SACjDC,KAGJE,GACCoC,EAACG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