@skodaflow/web-library 8.1.0 → 8.2.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 (398) hide show
  1. package/cjs/components/advancedTable/agGrid.js +1 -1
  2. package/cjs/components/advancedTable/agGrid.js.map +1 -1
  3. package/cjs/components/banner/Banner.js +1 -1
  4. package/cjs/components/banner/Banner.js.map +1 -1
  5. package/cjs/components/bottomSheet/BottomSheet.js +1 -1
  6. package/cjs/components/bottomSheet/BottomSheet.js.map +1 -1
  7. package/cjs/components/bypassBlock/BypassBlock.js +1 -1
  8. package/cjs/components/bypassBlock/BypassBlock.js.map +1 -1
  9. package/cjs/components/carousel/Autoplay.js +1 -1
  10. package/cjs/components/carousel/Autoplay.js.map +1 -1
  11. package/cjs/components/carousel/Carousel.js +1 -1
  12. package/cjs/components/carousel/Carousel.js.map +1 -1
  13. package/cjs/components/carousel/Navigation.js +1 -1
  14. package/cjs/components/carousel/Navigation.js.map +1 -1
  15. package/cjs/components/carousel/Pagination.d.ts +6 -6
  16. package/cjs/components/carousel/Pagination.js +1 -1
  17. package/cjs/components/carousel/Pagination.js.map +1 -1
  18. package/cjs/components/carousel/Slide.js +1 -1
  19. package/cjs/components/carousel/Slide.js.map +1 -1
  20. package/cjs/components/errorContent/ErrorContent.js +1 -1
  21. package/cjs/components/errorContent/ErrorContent.js.map +1 -1
  22. package/cjs/components/flag/FlowFlag.js +1 -1
  23. package/cjs/components/flag/FlowFlag.js.map +1 -1
  24. package/cjs/components/footer/Footer.js +1 -1
  25. package/cjs/components/footer/Footer.js.map +1 -1
  26. package/cjs/components/footer/FooterAccordion.js +1 -1
  27. package/cjs/components/footer/FooterAccordion.js.map +1 -1
  28. package/cjs/components/footer/FooterLink.js +1 -1
  29. package/cjs/components/footer/FooterLink.js.map +1 -1
  30. package/cjs/components/footer/FooterMenu.js +1 -1
  31. package/cjs/components/footer/FooterMenu.js.map +1 -1
  32. package/cjs/components/footer/FooterSectionContact.js +1 -1
  33. package/cjs/components/footer/FooterSectionContact.js.map +1 -1
  34. package/cjs/components/footer/FooterSectionLinks.js +1 -1
  35. package/cjs/components/footer/FooterSectionLinks.js.map +1 -1
  36. package/cjs/components/footer/FooterSectionMenu.js +1 -1
  37. package/cjs/components/footer/FooterSectionMenu.js.map +1 -1
  38. package/cjs/components/formMessage/FormMessage.js +1 -1
  39. package/cjs/components/formMessage/FormMessage.js.map +1 -1
  40. package/cjs/components/header/Header.js +1 -1
  41. package/cjs/components/header/Header.js.map +1 -1
  42. package/cjs/components/header/HeaderButton.js +1 -1
  43. package/cjs/components/header/HeaderButton.js.map +1 -1
  44. package/cjs/components/header/HeaderLanguageSelect.d.ts +6 -6
  45. package/cjs/components/header/HeaderLanguageSelect.js +1 -1
  46. package/cjs/components/header/HeaderLanguageSelect.js.map +1 -1
  47. package/cjs/components/header/HeaderLogo.d.ts +2 -2
  48. package/cjs/components/header/HeaderLogo.js +1 -1
  49. package/cjs/components/header/HeaderLogo.js.map +1 -1
  50. package/cjs/components/header/HeaderNavigationHero.js +1 -1
  51. package/cjs/components/header/HeaderNavigationHero.js.map +1 -1
  52. package/cjs/components/header/HeaderNavigationLink.js +1 -1
  53. package/cjs/components/header/HeaderNavigationLink.js.map +1 -1
  54. package/cjs/components/header/HeaderNavigationMenu.js +1 -1
  55. package/cjs/components/header/HeaderNavigationMenu.js.map +1 -1
  56. package/cjs/components/hotspotCard/HotspotCard.js +1 -1
  57. package/cjs/components/hotspotCard/HotspotCard.js.map +1 -1
  58. package/cjs/components/icon/stroke/SoundwaveIcon.js +1 -1
  59. package/cjs/components/icon/stroke/SoundwaveIcon.js.map +1 -1
  60. package/cjs/components/image/Image.d.ts +5 -1
  61. package/cjs/components/image/Image.js +1 -1
  62. package/cjs/components/image/Image.js.map +1 -1
  63. package/cjs/components/index.d.ts +1 -0
  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.js +1 -1
  67. package/cjs/components/logo/Logo.js.map +1 -1
  68. package/cjs/components/notification/Notification.d.ts +2 -2
  69. package/cjs/components/notification/Notification.js +1 -1
  70. package/cjs/components/notification/Notification.js.map +1 -1
  71. package/cjs/components/notification/NotificationCenter.js +1 -1
  72. package/cjs/components/notification/NotificationCenter.js.map +1 -1
  73. package/cjs/components/notification/NotificationCenterCategory.js +1 -1
  74. package/cjs/components/notification/NotificationCenterCategory.js.map +1 -1
  75. package/cjs/components/notification/NotificationCenterHeaderButton.js +1 -1
  76. package/cjs/components/notification/NotificationCenterHeaderButton.js.map +1 -1
  77. package/cjs/components/overlay/Overlay.js +1 -1
  78. package/cjs/components/overlay/Overlay.js.map +1 -1
  79. package/cjs/components/pageLayout/PageLayout.js +1 -1
  80. package/cjs/components/pageLayout/PageLayout.js.map +1 -1
  81. package/cjs/components/playPauseButton/PlayPauseButton.js +1 -1
  82. package/cjs/components/playPauseButton/PlayPauseButton.js.map +1 -1
  83. package/cjs/components/progress/Loader.js +1 -1
  84. package/cjs/components/progress/Loader.js.map +1 -1
  85. package/cjs/components/progress/LoadingText.js +1 -1
  86. package/cjs/components/progress/LoadingText.js.map +1 -1
  87. package/cjs/components/progress/ProgressState.js +1 -1
  88. package/cjs/components/progress/ProgressState.js.map +1 -1
  89. package/cjs/components/progress/Spinner.js +1 -1
  90. package/cjs/components/progress/Spinner.js.map +1 -1
  91. package/cjs/components/promptBar/PromptAttachments.d.ts +58 -0
  92. package/cjs/components/promptBar/PromptAttachments.js +2 -0
  93. package/cjs/components/promptBar/PromptAttachments.js.map +1 -0
  94. package/cjs/components/promptBar/PromptBar.d.ts +71 -0
  95. package/cjs/components/promptBar/PromptBar.js +2 -0
  96. package/cjs/components/promptBar/PromptBar.js.map +1 -0
  97. package/cjs/components/promptBar/PromptSubmitIconButton.d.ts +54 -0
  98. package/cjs/components/promptBar/PromptSubmitIconButton.js +2 -0
  99. package/cjs/components/promptBar/PromptSubmitIconButton.js.map +1 -0
  100. package/cjs/components/promptBar/index.d.ts +3 -0
  101. package/cjs/components/quickLink/QuickLink.d.ts +3 -3
  102. package/cjs/components/quickLink/QuickLink.js +1 -1
  103. package/cjs/components/quickLink/QuickLink.js.map +1 -1
  104. package/cjs/components/search/CollapsableSearch.js +1 -1
  105. package/cjs/components/search/CollapsableSearch.js.map +1 -1
  106. package/cjs/components/search/Search.d.ts +9 -1
  107. package/cjs/components/search/Search.js +1 -1
  108. package/cjs/components/search/Search.js.map +1 -1
  109. package/cjs/components/secondaryNavigation/SecondaryNavigation.js +1 -1
  110. package/cjs/components/secondaryNavigation/SecondaryNavigation.js.map +1 -1
  111. package/cjs/components/shortcut/Shortcut.js +1 -1
  112. package/cjs/components/shortcut/Shortcut.js.map +1 -1
  113. package/cjs/components/skodaThemeProvider/SkodaThemeProvider.js +1 -1
  114. package/cjs/components/skodaThemeProvider/SkodaThemeProvider.js.map +1 -1
  115. package/cjs/components/spacing/Spacing.js +1 -1
  116. package/cjs/components/spacing/Spacing.js.map +1 -1
  117. package/cjs/components/textAndCta/AppStoreButton.js +1 -1
  118. package/cjs/components/textAndCta/AppStoreButton.js.map +1 -1
  119. package/cjs/components/textAndCta/TextAndCta.js +1 -1
  120. package/cjs/components/textAndCta/TextAndCta.js.map +1 -1
  121. package/cjs/components/tooltipHeader/TooltipHeader.js +1 -1
  122. package/cjs/components/tooltipHeader/TooltipHeader.js.map +1 -1
  123. package/cjs/components/upload/components/uploadList/UploadList.js +1 -1
  124. package/cjs/components/upload/components/uploadList/UploadList.js.map +1 -1
  125. package/cjs/components/upload/components/uploadList/UploadListItem.js +1 -1
  126. package/cjs/components/upload/components/uploadList/UploadListItem.js.map +1 -1
  127. package/cjs/components/upload/components/uploadPreview/UploadPreview.js +1 -1
  128. package/cjs/components/upload/components/uploadPreview/UploadPreview.js.map +1 -1
  129. package/cjs/components/upload/components/uploadPreview/UploadPreviewImage.js +1 -1
  130. package/cjs/components/upload/components/uploadPreview/UploadPreviewImage.js.map +1 -1
  131. package/cjs/components/upload/components/uploadWrapper/UploadContent.js +1 -1
  132. package/cjs/components/upload/components/uploadWrapper/UploadContent.js.map +1 -1
  133. package/cjs/components/upload/components/uploadWrapper/UploadWrapper.js +1 -1
  134. package/cjs/components/upload/components/uploadWrapper/UploadWrapper.js.map +1 -1
  135. package/cjs/components/video/Video.js +1 -1
  136. package/cjs/components/video/Video.js.map +1 -1
  137. package/cjs/index.js +1 -1
  138. package/cjs/materialui/accordion/AccordionSummaryExpandWrapper.js +1 -1
  139. package/cjs/materialui/accordion/AccordionSummaryExpandWrapper.js.map +1 -1
  140. package/cjs/materialui/autocomplete/autocomplete.theme.js +1 -1
  141. package/cjs/materialui/autocomplete/autocomplete.theme.js.map +1 -1
  142. package/cjs/materialui/card/Card.js +1 -1
  143. package/cjs/materialui/card/Card.js.map +1 -1
  144. package/cjs/materialui/datepicker/datecalendar.theme.d.ts +150 -150
  145. package/cjs/materialui/datepicker/digitalclock.theme.d.ts +149 -149
  146. package/cjs/materialui/datepicker/pickersday.theme.d.ts +1 -1
  147. package/cjs/materialui/datepicker/pickersday.theme.js +1 -1
  148. package/cjs/materialui/datepicker/pickersday.theme.js.map +1 -1
  149. package/cjs/materialui/dialog/DialogTitle.js +1 -1
  150. package/cjs/materialui/dialog/DialogTitle.js.map +1 -1
  151. package/cjs/materialui/dialog/dialogTitle.theme.js +1 -1
  152. package/cjs/materialui/dialog/dialogTitle.theme.js.map +1 -1
  153. package/cjs/materialui/drawer/DrawerContent.d.ts +39 -0
  154. package/cjs/materialui/drawer/DrawerContent.js +2 -0
  155. package/cjs/materialui/drawer/DrawerContent.js.map +1 -0
  156. package/cjs/materialui/drawer/drawer.theme.js +1 -1
  157. package/cjs/materialui/drawer/drawer.theme.js.map +1 -1
  158. package/cjs/materialui/drawer/index.d.ts +2 -0
  159. package/cjs/materialui/iconButton/iconButton.theme.js +1 -1
  160. package/cjs/materialui/iconButton/iconButton.theme.js.map +1 -1
  161. package/cjs/materialui/list/listItemText.theme.js +1 -1
  162. package/cjs/materialui/list/listItemText.theme.js.map +1 -1
  163. package/cjs/materialui/slider/SliderContainer.js +1 -1
  164. package/cjs/materialui/slider/SliderContainer.js.map +1 -1
  165. package/cjs/materialui/slider/SliderValues.js +1 -1
  166. package/cjs/materialui/slider/SliderValues.js.map +1 -1
  167. package/cjs/materialui/stepper/stepConnector.theme.js +1 -1
  168. package/cjs/materialui/stepper/stepConnector.theme.js.map +1 -1
  169. package/cjs/materialui/stepper/stepper.theme.js +1 -1
  170. package/cjs/materialui/stepper/stepper.theme.js.map +1 -1
  171. package/cjs/materialui/tabs/tabs.theme.js +1 -1
  172. package/cjs/materialui/tabs/tabs.theme.js.map +1 -1
  173. package/cjs/materialui/textfield/FormHelperText.js +1 -1
  174. package/cjs/materialui/textfield/FormHelperText.js.map +1 -1
  175. package/cjs/materialui/textfield/HelperTextContent.js +1 -1
  176. package/cjs/materialui/textfield/HelperTextContent.js.map +1 -1
  177. package/cjs/materialui/textfield/filledInput.theme.js +1 -1
  178. package/cjs/materialui/textfield/filledInput.theme.js.map +1 -1
  179. package/cjs/materialui/textfield/inputAdornment.theme.js +1 -1
  180. package/cjs/materialui/textfield/inputAdornment.theme.js.map +1 -1
  181. package/cjs/materialui/textfield/inputBase.theme.js +1 -1
  182. package/cjs/materialui/textfield/inputBase.theme.js.map +1 -1
  183. package/cjs/materialui/textfield/inputLabel.theme.js +1 -1
  184. package/cjs/materialui/textfield/inputLabel.theme.js.map +1 -1
  185. package/cjs/materialui/textfield/textField.theme.js +1 -1
  186. package/cjs/materialui/textfield/textField.theme.js.map +1 -1
  187. package/cjs/materialui/theme/sxConfig.d.ts +2 -0
  188. package/cjs/materialui/theme/sxConfig.js +2 -0
  189. package/cjs/materialui/theme/sxConfig.js.map +1 -0
  190. package/cjs/materialui/theme/theme.extensions.d.ts +9 -0
  191. package/cjs/materialui/theme/theme.js +1 -1
  192. package/cjs/materialui/theme/theme.js.map +1 -1
  193. package/cjs/node_modules/swiper/shared/swiper-core.js +1 -1
  194. package/cjs/node_modules/swiper/shared/swiper-core.js.map +1 -1
  195. package/cjs/node_modules/swiper/swiper-react.js.map +1 -1
  196. package/cjs/utils/index.d.ts +1 -0
  197. package/cjs/utils/sxOverride/index.d.ts +1 -0
  198. package/cjs/utils/sxOverride/sxOverride.d.ts +10 -0
  199. package/cjs/utils/sxOverride/sxOverride.js +2 -0
  200. package/cjs/utils/sxOverride/sxOverride.js.map +1 -0
  201. package/components/advancedTable/agGrid.js +1 -1
  202. package/components/advancedTable/agGrid.js.map +1 -1
  203. package/components/banner/Banner.js +1 -1
  204. package/components/banner/Banner.js.map +1 -1
  205. package/components/bottomSheet/BottomSheet.js +1 -1
  206. package/components/bottomSheet/BottomSheet.js.map +1 -1
  207. package/components/bypassBlock/BypassBlock.js +1 -1
  208. package/components/bypassBlock/BypassBlock.js.map +1 -1
  209. package/components/carousel/Autoplay.js +1 -1
  210. package/components/carousel/Autoplay.js.map +1 -1
  211. package/components/carousel/Carousel.js +1 -1
  212. package/components/carousel/Carousel.js.map +1 -1
  213. package/components/carousel/Navigation.js +1 -1
  214. package/components/carousel/Navigation.js.map +1 -1
  215. package/components/carousel/Pagination.d.ts +6 -6
  216. package/components/carousel/Pagination.js +1 -1
  217. package/components/carousel/Pagination.js.map +1 -1
  218. package/components/carousel/Slide.js +1 -1
  219. package/components/carousel/Slide.js.map +1 -1
  220. package/components/errorContent/ErrorContent.js +1 -1
  221. package/components/errorContent/ErrorContent.js.map +1 -1
  222. package/components/flag/FlowFlag.js +1 -1
  223. package/components/flag/FlowFlag.js.map +1 -1
  224. package/components/footer/Footer.js +1 -1
  225. package/components/footer/Footer.js.map +1 -1
  226. package/components/footer/FooterAccordion.js +1 -1
  227. package/components/footer/FooterAccordion.js.map +1 -1
  228. package/components/footer/FooterLink.js +1 -1
  229. package/components/footer/FooterLink.js.map +1 -1
  230. package/components/footer/FooterMenu.js +1 -1
  231. package/components/footer/FooterMenu.js.map +1 -1
  232. package/components/footer/FooterSectionContact.js +1 -1
  233. package/components/footer/FooterSectionContact.js.map +1 -1
  234. package/components/footer/FooterSectionLinks.js +1 -1
  235. package/components/footer/FooterSectionLinks.js.map +1 -1
  236. package/components/footer/FooterSectionMenu.js +1 -1
  237. package/components/footer/FooterSectionMenu.js.map +1 -1
  238. package/components/formMessage/FormMessage.js +1 -1
  239. package/components/formMessage/FormMessage.js.map +1 -1
  240. package/components/header/Header.js +1 -1
  241. package/components/header/Header.js.map +1 -1
  242. package/components/header/HeaderButton.js +1 -1
  243. package/components/header/HeaderButton.js.map +1 -1
  244. package/components/header/HeaderLanguageSelect.d.ts +6 -6
  245. package/components/header/HeaderLanguageSelect.js +1 -1
  246. package/components/header/HeaderLanguageSelect.js.map +1 -1
  247. package/components/header/HeaderLogo.d.ts +2 -2
  248. package/components/header/HeaderLogo.js +1 -1
  249. package/components/header/HeaderLogo.js.map +1 -1
  250. package/components/header/HeaderNavigationHero.js +1 -1
  251. package/components/header/HeaderNavigationHero.js.map +1 -1
  252. package/components/header/HeaderNavigationLink.js +1 -1
  253. package/components/header/HeaderNavigationLink.js.map +1 -1
  254. package/components/header/HeaderNavigationMenu.js +1 -1
  255. package/components/header/HeaderNavigationMenu.js.map +1 -1
  256. package/components/hotspotCard/HotspotCard.js +1 -1
  257. package/components/hotspotCard/HotspotCard.js.map +1 -1
  258. package/components/icon/stroke/SoundwaveIcon.js +1 -1
  259. package/components/icon/stroke/SoundwaveIcon.js.map +1 -1
  260. package/components/image/Image.d.ts +5 -1
  261. package/components/image/Image.js +1 -1
  262. package/components/image/Image.js.map +1 -1
  263. package/components/index.d.ts +1 -0
  264. package/components/label/Label.js +1 -1
  265. package/components/label/Label.js.map +1 -1
  266. package/components/logo/Logo.js +1 -1
  267. package/components/logo/Logo.js.map +1 -1
  268. package/components/notification/Notification.d.ts +2 -2
  269. package/components/notification/Notification.js +1 -1
  270. package/components/notification/Notification.js.map +1 -1
  271. package/components/notification/NotificationCenter.js +1 -1
  272. package/components/notification/NotificationCenter.js.map +1 -1
  273. package/components/notification/NotificationCenterCategory.js +1 -1
  274. package/components/notification/NotificationCenterCategory.js.map +1 -1
  275. package/components/notification/NotificationCenterHeaderButton.js +1 -1
  276. package/components/notification/NotificationCenterHeaderButton.js.map +1 -1
  277. package/components/overlay/Overlay.js +1 -1
  278. package/components/overlay/Overlay.js.map +1 -1
  279. package/components/pageLayout/PageLayout.js +1 -1
  280. package/components/pageLayout/PageLayout.js.map +1 -1
  281. package/components/playPauseButton/PlayPauseButton.js +1 -1
  282. package/components/playPauseButton/PlayPauseButton.js.map +1 -1
  283. package/components/progress/Loader.js +1 -1
  284. package/components/progress/Loader.js.map +1 -1
  285. package/components/progress/LoadingText.js +1 -1
  286. package/components/progress/LoadingText.js.map +1 -1
  287. package/components/progress/ProgressState.js +1 -1
  288. package/components/progress/ProgressState.js.map +1 -1
  289. package/components/progress/Spinner.js +1 -1
  290. package/components/progress/Spinner.js.map +1 -1
  291. package/components/promptBar/PromptAttachments.d.ts +58 -0
  292. package/components/promptBar/PromptAttachments.js +2 -0
  293. package/components/promptBar/PromptAttachments.js.map +1 -0
  294. package/components/promptBar/PromptBar.d.ts +71 -0
  295. package/components/promptBar/PromptBar.js +2 -0
  296. package/components/promptBar/PromptBar.js.map +1 -0
  297. package/components/promptBar/PromptSubmitIconButton.d.ts +54 -0
  298. package/components/promptBar/PromptSubmitIconButton.js +2 -0
  299. package/components/promptBar/PromptSubmitIconButton.js.map +1 -0
  300. package/components/promptBar/index.d.ts +3 -0
  301. package/components/quickLink/QuickLink.d.ts +3 -3
  302. package/components/quickLink/QuickLink.js +1 -1
  303. package/components/quickLink/QuickLink.js.map +1 -1
  304. package/components/search/CollapsableSearch.js +1 -1
  305. package/components/search/CollapsableSearch.js.map +1 -1
  306. package/components/search/Search.d.ts +9 -1
  307. package/components/search/Search.js +1 -1
  308. package/components/search/Search.js.map +1 -1
  309. package/components/secondaryNavigation/SecondaryNavigation.js +1 -1
  310. package/components/secondaryNavigation/SecondaryNavigation.js.map +1 -1
  311. package/components/shortcut/Shortcut.js +1 -1
  312. package/components/shortcut/Shortcut.js.map +1 -1
  313. package/components/skodaThemeProvider/SkodaThemeProvider.js +1 -1
  314. package/components/skodaThemeProvider/SkodaThemeProvider.js.map +1 -1
  315. package/components/spacing/Spacing.js +1 -1
  316. package/components/spacing/Spacing.js.map +1 -1
  317. package/components/textAndCta/AppStoreButton.js +1 -1
  318. package/components/textAndCta/AppStoreButton.js.map +1 -1
  319. package/components/textAndCta/TextAndCta.js +1 -1
  320. package/components/textAndCta/TextAndCta.js.map +1 -1
  321. package/components/tooltipHeader/TooltipHeader.js +1 -1
  322. package/components/tooltipHeader/TooltipHeader.js.map +1 -1
  323. package/components/upload/components/uploadList/UploadList.js +1 -1
  324. package/components/upload/components/uploadList/UploadList.js.map +1 -1
  325. package/components/upload/components/uploadList/UploadListItem.js +1 -1
  326. package/components/upload/components/uploadList/UploadListItem.js.map +1 -1
  327. package/components/upload/components/uploadPreview/UploadPreview.js +1 -1
  328. package/components/upload/components/uploadPreview/UploadPreview.js.map +1 -1
  329. package/components/upload/components/uploadPreview/UploadPreviewImage.js +1 -1
  330. package/components/upload/components/uploadPreview/UploadPreviewImage.js.map +1 -1
  331. package/components/upload/components/uploadWrapper/UploadContent.js +1 -1
  332. package/components/upload/components/uploadWrapper/UploadContent.js.map +1 -1
  333. package/components/upload/components/uploadWrapper/UploadWrapper.js +1 -1
  334. package/components/upload/components/uploadWrapper/UploadWrapper.js.map +1 -1
  335. package/components/video/Video.js +1 -1
  336. package/components/video/Video.js.map +1 -1
  337. package/index.js +1 -1
  338. package/materialui/accordion/AccordionSummaryExpandWrapper.js +1 -1
  339. package/materialui/accordion/AccordionSummaryExpandWrapper.js.map +1 -1
  340. package/materialui/autocomplete/autocomplete.theme.js +1 -1
  341. package/materialui/autocomplete/autocomplete.theme.js.map +1 -1
  342. package/materialui/card/Card.js +1 -1
  343. package/materialui/card/Card.js.map +1 -1
  344. package/materialui/datepicker/datecalendar.theme.d.ts +150 -150
  345. package/materialui/datepicker/digitalclock.theme.d.ts +149 -149
  346. package/materialui/datepicker/pickersday.theme.d.ts +1 -1
  347. package/materialui/datepicker/pickersday.theme.js +1 -1
  348. package/materialui/datepicker/pickersday.theme.js.map +1 -1
  349. package/materialui/dialog/DialogTitle.js +1 -1
  350. package/materialui/dialog/DialogTitle.js.map +1 -1
  351. package/materialui/dialog/dialogTitle.theme.js +1 -1
  352. package/materialui/dialog/dialogTitle.theme.js.map +1 -1
  353. package/materialui/drawer/DrawerContent.d.ts +39 -0
  354. package/materialui/drawer/DrawerContent.js +2 -0
  355. package/materialui/drawer/DrawerContent.js.map +1 -0
  356. package/materialui/drawer/drawer.theme.js +1 -1
  357. package/materialui/drawer/drawer.theme.js.map +1 -1
  358. package/materialui/drawer/index.d.ts +2 -0
  359. package/materialui/iconButton/iconButton.theme.js +1 -1
  360. package/materialui/iconButton/iconButton.theme.js.map +1 -1
  361. package/materialui/list/listItemText.theme.js +1 -1
  362. package/materialui/list/listItemText.theme.js.map +1 -1
  363. package/materialui/slider/SliderContainer.js +1 -1
  364. package/materialui/slider/SliderContainer.js.map +1 -1
  365. package/materialui/slider/SliderValues.js +1 -1
  366. package/materialui/slider/SliderValues.js.map +1 -1
  367. package/materialui/stepper/stepConnector.theme.js +1 -1
  368. package/materialui/stepper/stepConnector.theme.js.map +1 -1
  369. package/materialui/stepper/stepper.theme.js +1 -1
  370. package/materialui/stepper/stepper.theme.js.map +1 -1
  371. package/materialui/tabs/tabs.theme.js +1 -1
  372. package/materialui/tabs/tabs.theme.js.map +1 -1
  373. package/materialui/textfield/FormHelperText.js +1 -1
  374. package/materialui/textfield/FormHelperText.js.map +1 -1
  375. package/materialui/textfield/HelperTextContent.js +1 -1
  376. package/materialui/textfield/HelperTextContent.js.map +1 -1
  377. package/materialui/textfield/filledInput.theme.js +1 -1
  378. package/materialui/textfield/filledInput.theme.js.map +1 -1
  379. package/materialui/textfield/inputAdornment.theme.js +1 -1
  380. package/materialui/textfield/inputAdornment.theme.js.map +1 -1
  381. package/materialui/textfield/inputBase.theme.js +1 -1
  382. package/materialui/textfield/inputBase.theme.js.map +1 -1
  383. package/materialui/textfield/inputLabel.theme.js +1 -1
  384. package/materialui/textfield/inputLabel.theme.js.map +1 -1
  385. package/materialui/textfield/textField.theme.js +1 -1
  386. package/materialui/textfield/textField.theme.js.map +1 -1
  387. package/materialui/theme/sxConfig.d.ts +2 -0
  388. package/materialui/theme/sxConfig.js +2 -0
  389. package/materialui/theme/sxConfig.js.map +1 -0
  390. package/materialui/theme/theme.extensions.d.ts +9 -0
  391. package/materialui/theme/theme.js +1 -1
  392. package/materialui/theme/theme.js.map +1 -1
  393. package/package.json +1 -1
  394. package/utils/index.d.ts +1 -0
  395. package/utils/sxOverride/index.d.ts +1 -0
  396. package/utils/sxOverride/sxOverride.d.ts +10 -0
  397. package/utils/sxOverride/sxOverride.js +2 -0
  398. package/utils/sxOverride/sxOverride.js.map +1 -0
@@ -1,3 +1,3 @@
1
1
  import { Components } from '@mui/material/styles';
2
2
  import { Theme } from '@mui/material';
3
- export declare const flowPickersDay: Components<Theme>['MuiPickersDay'];
3
+ export declare const flowPickersDay: Components<Theme>['MuiPickerDay'];
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("./datecalendar.theme.js");const t={styleOverrides:{root:({theme:t})=>({...e.flowPickersItemStyle(t),position:"relative",margin:"3px",width:"40px",height:"40px"}),today:({theme:e})=>({"&:not(.Mui-selected)":{"&, &:hover, &:focus":{borderColor:e.palette.text.primary}}})}};exports.flowPickersDay=t;
1
+ "use strict";var e=require("./datecalendar.theme.js");const t={styleOverrides:{root:({theme:t})=>({...e.flowPickersItemStyle(t),position:"relative",margin:"3px",width:"40px",height:"40px",borderRadius:"1000px"}),today:({theme:e})=>({"&:not(.Mui-selected)":{"&, &:hover, &:focus":{borderColor:e.palette.text.primary}}})}};exports.flowPickersDay=t;
2
2
  //# sourceMappingURL=pickersday.theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pickersday.theme.js","sources":["../../../../../src/materialui/datepicker/pickersday.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { flowPickersItemStyle } from './datecalendar.theme';\n\n// day button in DateCalendar\nexport const flowPickersDay: Components<Theme>['MuiPickersDay'] = {\n styleOverrides: {\n // style is reused in month, year, and digital clocks themes\n root: ({ theme }) => ({\n ...flowPickersItemStyle(theme),\n position: 'relative',\n // update proportions to match figma\n margin: '3px',\n width: '40px',\n height: '40px',\n }),\n // highlighted today\n today: ({ theme }) => ({\n '&:not(.Mui-selected)': {\n '&, &:hover, &:focus': {\n borderColor: theme.palette.text.primary,\n },\n },\n }),\n },\n};\n"],"names":["flowPickersDay","styleOverrides","root","theme","flowPickersItemStyle","position","margin","width","height","today","borderColor","palette","text","primary"],"mappings":"sDAKO,MAAMA,EAAqD,CAChEC,eAAgB,CAEdC,KAAM,EAAGC,YAAO,IACXC,EAAAA,qBAAqBD,GACxBE,SAAU,WAEVC,OAAQ,MACRC,MAAO,OACPC,OAAQ,SAGVC,MAAO,EAAGN,YAAO,CACf,uBAAwB,CACtB,sBAAuB,CACrBO,YAAaP,EAAMQ,QAAQC,KAAKC"}
1
+ {"version":3,"file":"pickersday.theme.js","sources":["../../../../../src/materialui/datepicker/pickersday.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { flowPickersItemStyle } from './datecalendar.theme';\n\n// day button in DateCalendar\nexport const flowPickersDay: Components<Theme>['MuiPickerDay'] = {\n styleOverrides: {\n // style is reused in month, year, and digital clocks themes\n root: ({ theme }) => ({\n ...flowPickersItemStyle(theme),\n position: 'relative',\n // update proportions to match Figma\n margin: '3px',\n width: '40px',\n height: '40px',\n borderRadius: '1000px',\n }),\n // highlighted today\n today: ({ theme }) => ({\n '&:not(.Mui-selected)': {\n '&, &:hover, &:focus': {\n borderColor: theme.palette.text.primary,\n },\n },\n }),\n },\n};\n"],"names":["flowPickersDay","styleOverrides","root","theme","flowPickersItemStyle","position","margin","width","height","borderRadius","today","borderColor","palette","text","primary"],"mappings":"sDAKO,MAAMA,EAAoD,CAC/DC,eAAgB,CAEdC,KAAM,EAAGC,YAAO,IACXC,EAAAA,qBAAqBD,GACxBE,SAAU,WAEVC,OAAQ,MACRC,MAAO,OACPC,OAAQ,OACRC,aAAc,WAGhBC,MAAO,EAAGP,YAAO,CACf,uBAAwB,CACtB,sBAAuB,CACrBQ,YAAaR,EAAMS,QAAQC,KAAKC"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime"),o=require("react"),r=require("@mui/material"),n=require("../../components/icon/stroke/CloseIcon.js");const s=o.forwardRef(({onClose:o,closeIconButtonProps:s,children:i,...t},l)=>{const{sx:c,...a}=s??{};return e.jsxs(r.Box,{sx:{display:"flex",justifyContent:i?"space-between":"flex-end",alignItems:"flex-start",gap:1,overflow:"hidden"},children:[i&&e.jsx(r.Typography,{component:"h2",ref:l,...t,children:i}),o&&e.jsx(r.IconButton,{size:"medium",onClick:e=>o(e,"backdropClick"),"aria-label":"Close",sx:{marginRight:"16px",marginTop:"16px",...c},...a,children:e.jsx(n.CloseIcon,{})})]})});exports.FlowDialogTitle=s;
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("react"),s=require("@mui/material"),o=require("../../utils/sxOverride/sxOverride.js"),i=require("../../components/icon/stroke/CloseIcon.js");const t=r.forwardRef(({onClose:r,closeIconButtonProps:t,children:n,...l},c)=>{const{sx:a,...x}=t??{};return e.jsxs(s.Box,{sx:{display:"flex",justifyContent:n?"space-between":"flex-end",alignItems:"flex-start",gap:1},children:[n&&e.jsx(s.Typography,{component:"h2",ref:c,...l,children:n}),r&&e.jsx(s.IconButton,{size:"medium",onClick:e=>r(e,"backdropClick"),"aria-label":"Close",sx:o.sxOverride({mr:2,mt:2},a),...x,children:e.jsx(i.CloseIcon,{})})]})});exports.FlowDialogTitle=t;
2
2
  //# sourceMappingURL=DialogTitle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DialogTitle.js","sources":["../../../../../src/materialui/dialog/DialogTitle.tsx"],"sourcesContent":["import React, { FC, forwardRef } from 'react';\nimport { DialogTitleProps, Typography, IconButton, Box } from '@mui/material';\nimport { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\n\n/**\n * This component serves as an extended title section for a dialog,\n * including an optional close button displayed when `onClose` prop is provided.\n */\nexport const FlowDialogTitle: FC<DialogTitleProps> = forwardRef(\n ({ onClose, closeIconButtonProps, children, ...rest }, ref) => {\n const { sx: closeIconButtonSx, ...restCloseIconButton } = closeIconButtonProps ?? {};\n\n return (\n <Box\n sx={{\n display: 'flex',\n justifyContent: children ? 'space-between' : 'flex-end',\n alignItems: 'flex-start',\n gap: 1,\n overflow: 'hidden',\n }}\n >\n {children && (\n <Typography component=\"h2\" ref={ref} {...rest}>\n {children}\n </Typography>\n )}\n {onClose && (\n <IconButton\n size=\"medium\"\n onClick={(e) => onClose(e, 'backdropClick')}\n aria-label=\"Close\"\n sx={{\n // move to the right side\n marginRight: '16px',\n marginTop: '16px',\n ...closeIconButtonSx,\n }}\n {...restCloseIconButton}\n >\n <CloseIcon />\n </IconButton>\n )}\n </Box>\n );\n },\n);\n"],"names":["FlowDialogTitle","forwardRef","onClose","closeIconButtonProps","children","rest","ref","sx","closeIconButtonSx","restCloseIconButton","_jsxs","Box","display","justifyContent","alignItems","gap","overflow","_jsx","Typography","component","IconButton","size","onClick","e","marginRight","marginTop","CloseIcon"],"mappings":"2JAQaA,EAAwCC,EAAAA,WACnD,EAAGC,UAASC,uBAAsBC,cAAaC,GAAQC,KACrD,MAAQC,GAAIC,KAAsBC,GAAwBN,GAAwB,CAAA,EAElF,OACEO,EAAAA,KAACC,MAAG,CACFJ,GAAI,CACFK,QAAS,OACTC,eAAgBT,EAAW,gBAAkB,WAC7CU,WAAY,aACZC,IAAK,EACLC,SAAU,UACXZ,SAAA,CAEAA,GACCa,EAAAA,IAACC,EAAAA,WAAU,CAACC,UAAU,KAAKb,IAAKA,KAASD,EAAID,SAC1CA,IAGJF,GACCe,EAAAA,IAACG,EAAAA,WAAU,CACTC,KAAK,SACLC,QAAUC,GAAMrB,EAAQqB,EAAG,iBAAgB,aAChC,QACXhB,GAAI,CAEFiB,YAAa,OACbC,UAAW,UACRjB,MAEDC,WAEJQ,EAAAA,IAACS,EAAAA"}
1
+ {"version":3,"file":"DialogTitle.js","sources":["../../../../../src/materialui/dialog/DialogTitle.tsx"],"sourcesContent":["import React, { FC, forwardRef } from 'react';\nimport { DialogTitleProps, Typography, IconButton, Box } from '@mui/material';\nimport { sxOverride } from '@/src/utils/sxOverride';\nimport { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\n\n/**\n * This component serves as an extended title section for a dialog,\n * including an optional close button displayed when `onClose` prop is provided.\n */\nexport const FlowDialogTitle: FC<DialogTitleProps> = forwardRef(\n ({ onClose, closeIconButtonProps, children, ...rest }, ref) => {\n const { sx: closeIconButtonSx, ...restCloseIconButton } = closeIconButtonProps ?? {};\n\n return (\n <Box\n sx={{\n display: 'flex',\n justifyContent: children ? 'space-between' : 'flex-end',\n alignItems: 'flex-start',\n gap: 1,\n }}\n >\n {children && (\n <Typography component=\"h2\" ref={ref} {...rest}>\n {children}\n </Typography>\n )}\n {onClose && (\n <IconButton\n size=\"medium\"\n onClick={(e) => onClose(e, 'backdropClick')}\n aria-label=\"Close\"\n sx={sxOverride(\n {\n mr: 2,\n mt: 2,\n },\n closeIconButtonSx,\n )}\n {...restCloseIconButton}\n >\n <CloseIcon />\n </IconButton>\n )}\n </Box>\n );\n },\n);\n"],"names":["FlowDialogTitle","forwardRef","onClose","closeIconButtonProps","children","rest","ref","sx","closeIconButtonSx","restCloseIconButton","_jsxs","Box","display","justifyContent","alignItems","gap","_jsx","Typography","component","IconButton","size","onClick","e","sxOverride","mr","mt","CloseIcon"],"mappings":"6MASaA,EAAwCC,EAAAA,WACnD,EAAGC,UAASC,uBAAsBC,cAAaC,GAAQC,KACrD,MAAQC,GAAIC,KAAsBC,GAAwBN,GAAwB,CAAA,EAElF,OACEO,EAAAA,KAACC,MAAG,CACFJ,GAAI,CACFK,QAAS,OACTC,eAAgBT,EAAW,gBAAkB,WAC7CU,WAAY,aACZC,IAAK,GACNX,SAAA,CAEAA,GACCY,EAAAA,IAACC,EAAAA,WAAU,CAACC,UAAU,KAAKZ,IAAKA,KAASD,EAAID,SAC1CA,IAGJF,GACCc,EAAAA,IAACG,EAAAA,WAAU,CACTC,KAAK,SACLC,QAAUC,GAAMpB,EAAQoB,EAAG,iBAAgB,aAChC,QACXf,GAAIgB,EAAAA,WACF,CACEC,GAAI,EACJC,GAAI,GAENjB,MAEEC,EAAmBL,SAEvBY,EAAAA,IAACU,EAAAA,UAAS"}
@@ -1,2 +1,2 @@
1
- "use strict";const e={defaultProps:{variant:"h3",component:require("./DialogTitle.js").FlowDialogTitle},styleOverrides:{root:({theme:e})=>({minWidth:"0",flexShrink:"1",flexGrow:"1",padding:"24px 40px 8px",[e.breakpoints.down("md")]:{paddingLeft:"24px",paddingRight:"24px"}})}};exports.flowDialogTitle=e;
1
+ "use strict";const e={defaultProps:{variant:"h3",component:require("./DialogTitle.js").FlowDialogTitle},styleOverrides:{root:({theme:e})=>({minWidth:"0",flexShrink:"1",flexGrow:"1",padding:"24px 40px 8px",overflow:"hidden",[e.breakpoints.down("md")]:{paddingLeft:"24px",paddingRight:"24px"}})}};exports.flowDialogTitle=e;
2
2
  //# sourceMappingURL=dialogTitle.theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dialogTitle.theme.js","sources":["../../../../../src/materialui/dialog/dialogTitle.theme.ts"],"sourcesContent":["import { Components, Theme } from '@mui/material/styles';\nimport { FlowDialogTitle } from './DialogTitle';\n\nexport const flowDialogTitle: Components<Theme>['MuiDialogTitle'] = {\n defaultProps: {\n variant: 'h3',\n component: FlowDialogTitle,\n },\n styleOverrides: {\n root: ({ theme }) => ({\n minWidth: '0',\n flexShrink: '1',\n flexGrow: '1',\n padding: '24px 40px 8px',\n [theme.breakpoints.down('md')]: {\n paddingLeft: '24px',\n paddingRight: '24px',\n },\n }),\n },\n};\n"],"names":["flowDialogTitle","defaultProps","variant","component","FlowDialogTitle","styleOverrides","root","theme","minWidth","flexShrink","flexGrow","padding","breakpoints","down","paddingLeft","paddingRight"],"mappings":"aAGO,MAAMA,EAAuD,CAClEC,aAAc,CACZC,QAAS,KACTC,sCAAWC,iBAEbC,eAAgB,CACdC,KAAM,EAAGC,YAAO,CACdC,SAAU,IACVC,WAAY,IACZC,SAAU,IACVC,QAAS,gBACT,CAACJ,EAAMK,YAAYC,KAAK,OAAQ,CAC9BC,YAAa,OACbC,aAAc"}
1
+ {"version":3,"file":"dialogTitle.theme.js","sources":["../../../../../src/materialui/dialog/dialogTitle.theme.ts"],"sourcesContent":["import { Components, Theme } from '@mui/material/styles';\nimport { FlowDialogTitle } from './DialogTitle';\n\nexport const flowDialogTitle: Components<Theme>['MuiDialogTitle'] = {\n defaultProps: {\n variant: 'h3',\n component: FlowDialogTitle,\n },\n styleOverrides: {\n root: ({ theme }) => ({\n minWidth: '0',\n flexShrink: '1',\n flexGrow: '1',\n padding: '24px 40px 8px',\n overflow: 'hidden',\n [theme.breakpoints.down('md')]: {\n paddingLeft: '24px',\n paddingRight: '24px',\n },\n }),\n },\n};\n"],"names":["flowDialogTitle","defaultProps","variant","component","FlowDialogTitle","styleOverrides","root","theme","minWidth","flexShrink","flexGrow","padding","overflow","breakpoints","down","paddingLeft","paddingRight"],"mappings":"aAGO,MAAMA,EAAuD,CAClEC,aAAc,CACZC,QAAS,KACTC,sCAAWC,iBAEbC,eAAgB,CACdC,KAAM,EAAGC,YAAO,CACdC,SAAU,IACVC,WAAY,IACZC,SAAU,IACVC,QAAS,gBACTC,SAAU,SACV,CAACL,EAAMM,YAAYC,KAAK,OAAQ,CAC9BC,YAAa,OACbC,aAAc"}
@@ -0,0 +1,39 @@
1
+ import { ComponentType, ElementType, FC, ReactNode } from 'react';
2
+ import { BoxProps, DrawerProps, IconButtonProps, SvgIconProps, TypographyProps } from '@mui/material';
3
+ export interface DrawerContentProps extends BoxProps<ElementType> {
4
+ /**
5
+ * Callback fired when the close button is clicked.
6
+ * Follows the same signature as DrawerProps['onClose'].
7
+ * When not provided, the close button is not rendered.
8
+ */
9
+ onClose?: DrawerProps['onClose'];
10
+ /**
11
+ * Title rendered in the header alongside the close button
12
+ */
13
+ title?: ReactNode;
14
+ /**
15
+ * Properties applied to the title wrapper Box
16
+ */
17
+ titleWrapperProps?: BoxProps<ElementType>;
18
+ /**
19
+ * Properties applied to the title Typography
20
+ */
21
+ titleProps?: TypographyProps<ElementType>;
22
+ /**
23
+ * Properties applied to the close IconButton
24
+ */
25
+ closeIconButtonProps?: IconButtonProps;
26
+ /**
27
+ * Properties applied to the close icon
28
+ */
29
+ closeIconProps?: SvgIconProps;
30
+ /**
31
+ * Icon component used as the close button icon
32
+ * @default CloseIcon
33
+ */
34
+ CloseIconComponent?: ComponentType<SvgIconProps>;
35
+ }
36
+ /**
37
+ * Content wrapper for Drawer with an optional title and close button.
38
+ */
39
+ export declare const DrawerContent: FC<DrawerContentProps>;
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("react"),s=require("@mui/material"),o=require("../../utils/sxOverride/sxOverride.js"),i=require("../../components/icon/stroke/CloseIcon.js");const t=r.forwardRef(({children:r,sx:t,onClose:n,title:x,titleWrapperProps:l,titleProps:c,closeIconButtonProps:a,closeIconProps:d,CloseIconComponent:p,...m},u)=>{const{sx:h,...f}=a??{},{sx:j,...v}=l??{},{sx:C,...I}=c??{},O=p??i.CloseIcon;return e.jsxs(e.Fragment,{children:[(x||n)&&e.jsxs(s.Box,{sx:o.sxOverride({display:"flex",justifyContent:x?"space-between":"flex-end",alignItems:"flex-start",gap:1},j),...v,children:[x&&e.jsx(s.Typography,{component:"h2",variant:"h3",sx:o.sxOverride({minWidth:"0",flexShrink:"1",flexGrow:"1",px:{xs:3,md:6},pt:3,pb:1,overflow:"hidden"},C),...I,children:x}),n&&e.jsx(s.IconButton,{size:"medium",onClick:e=>n(e,"backdropClick"),"aria-label":"Close",sx:o.sxOverride({mr:2,mt:2},h),...f,children:e.jsx(O,{...d})})]}),e.jsx(s.Box,{ref:u,sx:o.sxOverride({position:"relative",py:3,px:{xs:3,md:6}},t),...m,children:r})]})});exports.DrawerContent=t;
2
+ //# sourceMappingURL=DrawerContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerContent.js","sources":["../../../../../src/materialui/drawer/DrawerContent.tsx"],"sourcesContent":["import React, { ComponentType, ElementType, FC, ReactNode, forwardRef } from 'react';\nimport {\n Box,\n BoxProps,\n DrawerProps,\n IconButton,\n IconButtonProps,\n SvgIconProps,\n Typography,\n TypographyProps,\n} from '@mui/material';\nimport { sxOverride } from '@/src/utils/sxOverride';\nimport { CloseIcon } from '@/src/components/icon/stroke/CloseIcon';\n\nexport interface DrawerContentProps extends BoxProps<ElementType> {\n /**\n * Callback fired when the close button is clicked.\n * Follows the same signature as DrawerProps['onClose'].\n * When not provided, the close button is not rendered.\n */\n onClose?: DrawerProps['onClose'];\n /**\n * Title rendered in the header alongside the close button\n */\n title?: ReactNode;\n /**\n * Properties applied to the title wrapper Box\n */\n titleWrapperProps?: BoxProps<ElementType>;\n /**\n * Properties applied to the title Typography\n */\n titleProps?: TypographyProps<ElementType>;\n /**\n * Properties applied to the close IconButton\n */\n closeIconButtonProps?: IconButtonProps;\n /**\n * Properties applied to the close icon\n */\n closeIconProps?: SvgIconProps;\n /**\n * Icon component used as the close button icon\n * @default CloseIcon\n */\n CloseIconComponent?: ComponentType<SvgIconProps>;\n}\n\n/**\n * Content wrapper for Drawer with an optional title and close button.\n */\nexport const DrawerContent: FC<DrawerContentProps> = forwardRef(\n (\n {\n children,\n sx,\n onClose,\n title,\n titleWrapperProps,\n titleProps,\n closeIconButtonProps,\n closeIconProps,\n CloseIconComponent,\n ...rest\n },\n ref,\n ) => {\n const { sx: closeIconButtonSx, ...restCloseIconButton } = closeIconButtonProps ?? {};\n const { sx: titleWrapperSx, ...restTitleWrapper } = titleWrapperProps ?? {};\n const { sx: titleSx, ...restTitle } = titleProps ?? {};\n const CloseButtonIcon = CloseIconComponent ?? CloseIcon;\n\n return (\n <>\n {(title || onClose) && (\n <Box\n sx={sxOverride(\n {\n display: 'flex',\n justifyContent: title ? 'space-between' : 'flex-end',\n alignItems: 'flex-start',\n gap: 1,\n },\n titleWrapperSx,\n )}\n {...restTitleWrapper}\n >\n {title && (\n <Typography\n component=\"h2\"\n variant=\"h3\"\n sx={sxOverride(\n {\n minWidth: '0',\n flexShrink: '1',\n flexGrow: '1',\n px: { xs: 3, md: 6 },\n pt: 3,\n pb: 1,\n overflow: 'hidden',\n },\n titleSx,\n )}\n {...restTitle}\n >\n {title}\n </Typography>\n )}\n {onClose && (\n <IconButton\n size=\"medium\"\n onClick={(e) => onClose(e, 'backdropClick')}\n aria-label=\"Close\"\n sx={sxOverride(\n {\n mr: 2,\n mt: 2,\n },\n closeIconButtonSx,\n )}\n {...restCloseIconButton}\n >\n <CloseButtonIcon {...closeIconProps} />\n </IconButton>\n )}\n </Box>\n )}\n <Box\n ref={ref}\n sx={sxOverride(\n {\n position: 'relative',\n py: 3,\n px: { xs: 3, md: 6 },\n },\n sx,\n )}\n {...rest}\n >\n {children}\n </Box>\n </>\n );\n },\n);\n"],"names":["DrawerContent","forwardRef","children","sx","onClose","title","titleWrapperProps","titleProps","closeIconButtonProps","closeIconProps","CloseIconComponent","rest","ref","closeIconButtonSx","restCloseIconButton","titleWrapperSx","restTitleWrapper","titleSx","restTitle","CloseButtonIcon","CloseIcon","_jsxs","_Fragment","Box","sxOverride","display","justifyContent","alignItems","gap","_jsx","Typography","component","variant","minWidth","flexShrink","flexGrow","px","xs","md","pt","pb","overflow","IconButton","size","onClick","e","mr","mt","position","py"],"mappings":"uMAmDO,MAAMA,EAAwCC,EAAAA,WACnD,EAEIC,WACAC,KACAC,UACAC,QACAC,oBACAC,aACAC,uBACAC,iBACAC,wBACGC,GAELC,KAEA,MAAQT,GAAIU,KAAsBC,GAAwBN,GAAwB,CAAA,GAC1EL,GAAIY,KAAmBC,GAAqBV,GAAqB,CAAA,GACjEH,GAAIc,KAAYC,GAAcX,GAAc,CAAA,EAC9CY,EAAkBT,GAAsBU,EAAAA,UAE9C,OACEC,OAAAC,EAAAA,SAAA,CAAApB,SAAA,EACIG,GAASD,IACTiB,OAACE,EAAAA,IAAG,CACFpB,GAAIqB,EAAAA,WACF,CACEC,QAAS,OACTC,eAAgBrB,EAAQ,gBAAkB,WAC1CsB,WAAY,aACZC,IAAK,GAEPb,MAEEC,YAEHX,GACCwB,EAAAA,IAACC,EAAAA,WAAU,CACTC,UAAU,KACVC,QAAQ,KACR7B,GAAIqB,EAAAA,WACF,CACES,SAAU,IACVC,WAAY,IACZC,SAAU,IACVC,GAAI,CAAEC,GAAI,EAAGC,GAAI,GACjBC,GAAI,EACJC,GAAI,EACJC,SAAU,UAEZxB,MAEEC,EAAShB,SAEZG,IAGJD,GACCyB,MAACa,EAAAA,WAAU,CACTC,KAAK,SACLC,QAAUC,GAAMzC,EAAQyC,EAAG,iBAAgB,aAChC,QACX1C,GAAIqB,aACF,CACEsB,GAAI,EACJC,GAAI,GAENlC,MAEEC,EAAmBZ,SAEvB2B,EAAAA,IAACV,EAAe,IAAKV,SAK7BoB,MAACN,EAAAA,IAAG,CACFX,IAAKA,EACLT,GAAIqB,aACF,CACEwB,SAAU,WACVC,GAAI,EACJb,GAAI,CAAEC,GAAI,EAAGC,GAAI,IAEnBnC,MAEEQ,WAEHT"}
@@ -1,2 +1,2 @@
1
- "use strict";exports.flowDrawer={styleOverrides:{root:({ownerState:e,theme:t})=>({flexShrink:"0",..."persistent"===e.variant?{transition:t.transitions.create("width",{duration:t.transitions.duration[e.open?"leavingScreen":"enteringScreen"]})}:{}}),paper:({theme:e})=>({boxShadow:e.flowShadows.xl,..."dark"===e.palette.mode&&{backgroundImage:"none"}})}};
1
+ "use strict";exports.flowDrawer={styleOverrides:{root:({ownerState:e,theme:t})=>({flexShrink:"0",..."persistent"===e.variant?{transition:t.transitions.create("width",{duration:t.transitions.duration[e.open?"leavingScreen":"enteringScreen"]})}:{}}),paper:({theme:e,ownerState:t})=>({boxShadow:e.flowShadows.xl,borderRadius:"0",..."dark"===e.palette.mode&&{backgroundImage:"none"},...["left","right"].includes(t.anchor)&&{width:"520px",maxWidth:"100%",[e.breakpoints.down("xl")]:{width:"504px"},[e.breakpoints.down("md")]:{width:"100%"}}})}};
2
2
  //# sourceMappingURL=drawer.theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.theme.js","sources":["../../../../../src/materialui/drawer/drawer.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\n\nexport const flowDrawer: Components<Theme>['MuiDrawer'] = {\n styleOverrides: {\n root: ({ ownerState, theme }) => ({\n flexShrink: '0',\n // add smooth transition for opening/closing drawer in persistent variant\n ...(ownerState.variant === 'persistent'\n ? {\n transition: theme.transitions.create('width', {\n duration: theme.transitions.duration[ownerState.open ? 'leavingScreen' : 'enteringScreen'],\n }),\n }\n : {}),\n }),\n paper: ({ theme }) => ({\n boxShadow: theme.flowShadows.xl,\n ...(theme.palette.mode === 'dark' && {\n backgroundImage: 'none',\n }),\n }),\n },\n};\n"],"names":["styleOverrides","root","ownerState","theme","flexShrink","variant","transition","transitions","create","duration","open","paper","boxShadow","flowShadows","xl","palette","mode","backgroundImage"],"mappings":"gCAG0D,CACxDA,eAAgB,CACdC,KAAM,EAAGC,aAAYC,YAAO,CAC1BC,WAAY,OAEe,eAAvBF,EAAWG,QACX,CACEC,WAAYH,EAAMI,YAAYC,OAAO,QAAS,CAC5CC,SAAUN,EAAMI,YAAYE,SAASP,EAAWQ,KAAO,gBAAkB,qBAG7E,KAENC,MAAO,EAAGR,YAAO,CACfS,UAAWT,EAAMU,YAAYC,MACF,SAAvBX,EAAMY,QAAQC,MAAmB,CACnCC,gBAAiB"}
1
+ {"version":3,"file":"drawer.theme.js","sources":["../../../../../src/materialui/drawer/drawer.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\n\nexport const flowDrawer: Components<Theme>['MuiDrawer'] = {\n styleOverrides: {\n root: ({ ownerState, theme }) => ({\n flexShrink: '0',\n // add smooth transition for opening/closing drawer in persistent variant\n ...(ownerState.variant === 'persistent'\n ? {\n transition: theme.transitions.create('width', {\n duration: theme.transitions.duration[ownerState.open ? 'leavingScreen' : 'enteringScreen'],\n }),\n }\n : {}),\n }),\n paper: ({ theme, ownerState }) => ({\n boxShadow: theme.flowShadows.xl,\n borderRadius: '0',\n ...(theme.palette.mode === 'dark' && {\n backgroundImage: 'none',\n }),\n ...(['left', 'right'].includes(ownerState.anchor) && {\n width: '520px',\n maxWidth: '100%',\n [theme.breakpoints.down('xl')]: {\n width: '504px',\n },\n [theme.breakpoints.down('md')]: {\n width: '100%',\n },\n }),\n }),\n },\n};\n"],"names":["styleOverrides","root","ownerState","theme","flexShrink","variant","transition","transitions","create","duration","open","paper","boxShadow","flowShadows","xl","borderRadius","palette","mode","backgroundImage","includes","anchor","width","maxWidth","breakpoints","down"],"mappings":"gCAG0D,CACxDA,eAAgB,CACdC,KAAM,EAAGC,aAAYC,YAAO,CAC1BC,WAAY,OAEe,eAAvBF,EAAWG,QACX,CACEC,WAAYH,EAAMI,YAAYC,OAAO,QAAS,CAC5CC,SAAUN,EAAMI,YAAYE,SAASP,EAAWQ,KAAO,gBAAkB,qBAG7E,KAENC,MAAO,EAAGR,QAAOD,iBAAY,CAC3BU,UAAWT,EAAMU,YAAYC,GAC7BC,aAAc,OACa,SAAvBZ,EAAMa,QAAQC,MAAmB,CACnCC,gBAAiB,WAEf,CAAC,OAAQ,SAASC,SAASjB,EAAWkB,SAAW,CACnDC,MAAO,QACPC,SAAU,OACV,CAACnB,EAAMoB,YAAYC,KAAK,OAAQ,CAC9BH,MAAO,SAET,CAAClB,EAAMoB,YAAYC,KAAK,OAAQ,CAC9BH,MAAO"}
@@ -1,2 +1,4 @@
1
1
  export { Drawer, SwipeableDrawer } from '@mui/material';
2
2
  export type { DrawerProps, SwipeableDrawerProps } from '@mui/material';
3
+ export { DrawerContent } from './DrawerContent';
4
+ export type { DrawerContentProps } from './DrawerContent';
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../../components/focusring/focusring.js"),t=require("../button/interactive.js");const r={defaultProps:{disableRipple:!0,variant:"standard",color:"secondary",size:"medium"},styleOverrides:{root:({theme:r})=>({position:"relative",boxShadow:"none",outline:"none",width:"44px",height:"44px",borderRadius:"1000px",maxWidth:"none",transition:"all 0.3s ease-out",flexShrink:"0","&:hover":{boxShadow:"none"},"&&:active":{boxShadow:"none"},...t.getInteractiveStyle({backgroundColor:"transparent"},{backgroundColor:r.palette.transparent.secondary}),...e.getFocusRingStyle(r),"&.Mui-disabled":{opacity:"1",color:r.palette.disabled.primary}}),sizeSmall:{height:"32px",width:"32px","& .MuiSvgIcon-root":{fontSize:"17px"}},sizeMedium:{"& .MuiSvgIcon-root":{fontSize:"20px"}},sizeLarge:{height:"50px",width:"50px","& .MuiSvgIcon-root":{fontSize:"22px"}}},variants:[{props:{color:"secondary"},style:({theme:e})=>({...t.getInteractiveStyle({color:e.palette.text.primary},{color:e.palette.text.primary})})},{props:{variant:"filled"},style:({theme:e})=>({"&.Mui-disabled":{opacity:"1",backgroundColor:e.palette.disabled.secondary,color:e.palette.disabled.tertiary}})},{props:{variant:"filled",color:"primary"},style:({theme:e})=>({...t.getInteractiveStyle({backgroundColor:e.palette.brand.secondary,color:e.palette.onSurface.os900},{backgroundColor:e.palette.brandHover.secondary,color:e.palette.onSurface.os900})})},{props:{variant:"filled",color:"secondary"},style:({theme:e})=>({...t.getInteractiveStyle({backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},{backgroundColor:e.palette.secondary.light,color:e.palette.secondary.contrastText})})},{props:{variant:"filled",color:"error"},style:({theme:e})=>({...t.getInteractiveStyle({color:e.palette.error.contrastText,backgroundColor:e.palette.error.main},{color:e.palette.error.contrastText,backgroundColor:e.palette.error.dark})})},{props:{variant:"filled",color:"inherit"},style:({theme:e})=>({...t.getInteractiveStyle({backgroundColor:e.palette.transparent.secondary},{backgroundColor:e.palette.surface.primary})})},{props:{variant:"outlined"},style:{border:"2px solid currentColor",...e.updateFocusRingStyle(2)}},{props:{variant:"outlined",size:"small"},style:{borderWidth:"1px",...e.updateFocusRingStyle(1)}},{props:{color:"surface"},style:({theme:r})=>({border:`1px solid ${"dark"===r.palette.mode?r.palette.transparent.quarternary:r.palette.onSurface.os100}`,...e.updateFocusRingStyle(1),...t.getInteractiveStyle({backgroundColor:r.palette.surface.primary,color:r.palette.text.primary},{backgroundColor:r.palette.surface.secondary,color:r.palette.text.primary}),"&.Mui-disabled":{borderColor:r.palette.surface.secondary,color:r.palette.disabled.primary}})},{props:{color:"surface",variant:"outlined"},style:{borderWidth:"2px",...e.updateFocusRingStyle(2)}},{props:{color:"white"},style:({theme:e})=>({...t.getInteractiveStyle({backgroundColor:"transparent",color:e.palette.onSurface.os0},{color:e.palette.onSurface.os0,backgroundColor:e.palette.transparent.tertiary}),"&.Mui-disabled":{borderColor:e.palette.disabled.primary,color:e.palette.disabled.primary}})}]};exports.flowIconButton=r;
1
+ "use strict";var e=require("../../components/focusring/focusring.js"),t=require("../button/interactive.js");const r={defaultProps:{disableRipple:!0,variant:"standard",color:"secondary",size:"medium"},styleOverrides:{root:({theme:r})=>({position:"relative",boxShadow:"none",outline:"none",width:"44px",height:"44px",borderRadius:"1000px",maxWidth:"none",transition:"all 0.3s ease-out",flexShrink:"0","&:hover":{boxShadow:"none"},"&&:active":{boxShadow:"none"},...t.getInteractiveStyle({backgroundColor:"transparent"},{backgroundColor:r.palette.transparent.secondary}),...e.getFocusRingStyle(r),"&.Mui-disabled":{opacity:"1",color:r.palette.disabled.primary}}),sizeSmall:{height:"32px",width:"32px","& .MuiSvgIcon-root":{fontSize:"17px"}},sizeMedium:{"& .MuiSvgIcon-root":{fontSize:"20px"}},sizeLarge:{height:"50px",width:"50px","& .MuiSvgIcon-root":{fontSize:"22px"}}},variants:[{props:{color:"secondary"},style:({theme:e})=>({...t.getInteractiveStyle({color:e.palette.text.primary},{color:e.palette.text.primary})})},{props:{variant:"filled"},style:({theme:e})=>({"&.Mui-disabled":{opacity:"1",backgroundColor:e.palette.disabled.secondary,color:e.palette.disabled.tertiary}})},{props:{variant:"filled",color:"primary"},style:({theme:e})=>({...t.getInteractiveStyle({backgroundColor:e.palette.brand.secondary,color:e.palette.onSurface.os900},{backgroundColor:e.palette.brandHover.secondary,color:e.palette.onSurface.os900})})},{props:{variant:"filled",color:"secondary"},style:({theme:e})=>({...t.getInteractiveStyle({backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},{backgroundColor:e.palette.secondary.light,color:e.palette.secondary.contrastText})})},{props:{variant:"filled",color:"error"},style:({theme:e})=>({...t.getInteractiveStyle({color:e.palette.error.contrastText,backgroundColor:e.palette.error.main},{color:e.palette.error.contrastText,backgroundColor:e.palette.error.dark})})},{props:{variant:"filled",color:"inherit"},style:({theme:e})=>({...t.getInteractiveStyle({backgroundColor:e.palette.transparent.secondary},{backgroundColor:e.palette.surface.primary})})},{props:{variant:"outlined"},style:{border:"2px solid currentColor",...e.updateFocusRingStyle(2)}},{props:{variant:"outlined",size:"small"},style:{borderWidth:"1px",...e.updateFocusRingStyle(1)}},{props:{color:"surface"},style:({theme:r})=>({border:`1px solid ${"dark"===r.palette.mode?r.palette.transparent.quarternary:r.palette.onSurface.os100}`,...e.updateFocusRingStyle(1),...t.getInteractiveStyle({backgroundColor:r.palette.surface.primary,color:r.palette.text.primary},{backgroundColor:r.palette.surface.secondary,color:r.palette.text.primary}),"&.Mui-disabled":{backgroundColor:r.palette.surface.secondary,borderColor:r.palette.surface.secondary,color:r.palette.disabled.primary}})},{props:{color:"surface",variant:"outlined"},style:{borderWidth:"2px",...e.updateFocusRingStyle(2)}},{props:{color:"white"},style:({theme:e})=>({...t.getInteractiveStyle({backgroundColor:"transparent",color:e.palette.onSurface.os0},{color:e.palette.onSurface.os0,backgroundColor:e.palette.transparent.tertiary}),"&.Mui-disabled":{borderColor:e.palette.disabled.primary,color:e.palette.disabled.primary}})}]};exports.flowIconButton=r;
2
2
  //# sourceMappingURL=iconButton.theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"iconButton.theme.js","sources":["../../../../../src/materialui/iconButton/iconButton.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { getFocusRingStyle, updateFocusRingStyle } from '@/src/components/focusring/focusring';\nimport { getInteractiveStyle } from '@/src/materialui/button/interactive';\n\nexport const flowIconButton: Components<Theme>['MuiIconButton'] = {\n defaultProps: {\n disableRipple: true,\n variant: 'standard',\n color: 'secondary',\n size: 'medium',\n },\n styleOverrides: {\n root: ({ theme }) => ({\n position: 'relative',\n boxShadow: 'none',\n outline: 'none',\n width: '44px',\n height: '44px',\n borderRadius: '1000px',\n maxWidth: 'none',\n transition: 'all 0.3s ease-out',\n flexShrink: '0',\n '&:hover': {\n boxShadow: 'none',\n },\n '&&:active': {\n boxShadow: 'none',\n },\n ...getInteractiveStyle(\n {\n backgroundColor: 'transparent',\n },\n {\n // hover effect also in accordionSummary.theme.tsx\n backgroundColor: theme.palette.transparent.secondary,\n },\n ),\n // focused style\n ...getFocusRingStyle(theme),\n // disabled style\n '&.Mui-disabled': {\n opacity: '1',\n color: theme.palette.disabled.primary,\n },\n }),\n sizeSmall: {\n height: '32px',\n width: '32px',\n // icon itself\n '& .MuiSvgIcon-root': {\n fontSize: '17px',\n },\n },\n sizeMedium: {\n // width & height & borderRadius is default in root\n // icon itself\n '& .MuiSvgIcon-root': {\n fontSize: '20px',\n },\n },\n sizeLarge: {\n height: '50px',\n width: '50px',\n // icon itself\n '& .MuiSvgIcon-root': {\n fontSize: '22px',\n },\n },\n },\n variants: [\n {\n props: { color: 'secondary' },\n style: ({ theme }) => ({\n ...getInteractiveStyle(\n {\n color: theme.palette.text.primary,\n },\n {\n color: theme.palette.text.primary,\n },\n ),\n }),\n },\n {\n props: { variant: 'filled' },\n style: ({ theme }) => ({\n // disabled style\n '&.Mui-disabled': {\n opacity: '1',\n backgroundColor: theme.palette.disabled.secondary,\n color: theme.palette.disabled.tertiary,\n },\n }),\n },\n {\n props: { variant: 'filled', color: 'primary' },\n style: ({ theme }) => ({\n ...getInteractiveStyle(\n {\n backgroundColor: theme.palette.brand.secondary,\n color: theme.palette.onSurface.os900,\n },\n {\n backgroundColor: theme.palette.brandHover.secondary,\n color: theme.palette.onSurface.os900,\n },\n ),\n }),\n },\n {\n props: { variant: 'filled', color: 'secondary' },\n style: ({ theme }) => ({\n ...getInteractiveStyle(\n {\n backgroundColor: theme.palette.secondary.main,\n color: theme.palette.secondary.contrastText,\n },\n {\n backgroundColor: theme.palette.secondary.light,\n color: theme.palette.secondary.contrastText,\n },\n ),\n }),\n },\n {\n props: { variant: 'filled', color: 'error' },\n style: ({ theme }) => ({\n ...getInteractiveStyle(\n {\n color: theme.palette.error.contrastText,\n backgroundColor: theme.palette.error.main,\n },\n {\n color: theme.palette.error.contrastText,\n backgroundColor: theme.palette.error.dark,\n },\n ),\n }),\n },\n {\n props: { variant: 'filled', color: 'inherit' },\n style: ({ theme }) => ({\n ...getInteractiveStyle(\n {\n backgroundColor: theme.palette.transparent.secondary,\n },\n {\n backgroundColor: theme.palette.surface.primary,\n },\n ),\n }),\n },\n {\n props: { variant: 'outlined' },\n style: {\n border: '2px solid currentColor',\n ...updateFocusRingStyle(2),\n },\n },\n {\n props: { variant: 'outlined', size: 'small' },\n style: {\n borderWidth: '1px',\n ...updateFocusRingStyle(1),\n },\n },\n {\n props: { color: 'surface' },\n style: ({ theme }) => ({\n border: `1px solid ${theme.palette.mode === 'dark' ? theme.palette.transparent.quarternary : theme.palette.onSurface.os100}`,\n ...updateFocusRingStyle(1),\n ...getInteractiveStyle(\n {\n backgroundColor: theme.palette.surface.primary,\n color: theme.palette.text.primary,\n },\n {\n backgroundColor: theme.palette.surface.secondary,\n color: theme.palette.text.primary,\n },\n ),\n // disabled style\n '&.Mui-disabled': {\n borderColor: theme.palette.surface.secondary,\n color: theme.palette.disabled.primary,\n },\n }),\n },\n {\n props: { color: 'surface', variant: 'outlined' },\n style: {\n borderWidth: '2px',\n ...updateFocusRingStyle(2),\n },\n },\n {\n props: { color: 'white' },\n style: ({ theme }) => ({\n // hover effect also in accordionSummary.theme.tsx\n // hover effect also in FooterAccordion.tsx\n ...getInteractiveStyle(\n {\n backgroundColor: 'transparent',\n color: theme.palette.onSurface.os0,\n },\n {\n color: theme.palette.onSurface.os0,\n backgroundColor: theme.palette.transparent.tertiary,\n },\n ),\n // disabled style\n '&.Mui-disabled': {\n borderColor: theme.palette.disabled.primary,\n color: theme.palette.disabled.primary,\n },\n }),\n },\n ],\n};\n"],"names":["flowIconButton","defaultProps","disableRipple","variant","color","size","styleOverrides","root","theme","position","boxShadow","outline","width","height","borderRadius","maxWidth","transition","flexShrink","getInteractiveStyle","backgroundColor","palette","transparent","secondary","getFocusRingStyle","opacity","disabled","primary","sizeSmall","fontSize","sizeMedium","sizeLarge","variants","props","style","text","tertiary","brand","onSurface","os900","brandHover","main","contrastText","light","error","dark","surface","border","updateFocusRingStyle","borderWidth","mode","quarternary","os100","borderColor","os0"],"mappings":"4GAKO,MAAMA,EAAqD,CAChEC,aAAc,CACZC,eAAe,EACfC,QAAS,WACTC,MAAO,YACPC,KAAM,UAERC,eAAgB,CACdC,KAAM,EAAGC,YAAO,CACdC,SAAU,WACVC,UAAW,OACXC,QAAS,OACTC,MAAO,OACPC,OAAQ,OACRC,aAAc,SACdC,SAAU,OACVC,WAAY,oBACZC,WAAY,IACZ,UAAW,CACTP,UAAW,QAEb,YAAa,CACXA,UAAW,WAEVQ,sBACD,CACEC,gBAAiB,eAEnB,CAEEA,gBAAiBX,EAAMY,QAAQC,YAAYC,eAI5CC,EAAAA,kBAAkBf,GAErB,iBA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,YAAa5C,EAAMY,QAAQK,SAASC,QACpCtB,MAAOI,EAAMY,QAAQK,SAASC"}
1
+ {"version":3,"file":"iconButton.theme.js","sources":["../../../../../src/materialui/iconButton/iconButton.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\nimport { getFocusRingStyle, updateFocusRingStyle } from '@/src/components/focusring/focusring';\nimport { getInteractiveStyle } from '@/src/materialui/button/interactive';\n\nexport const flowIconButton: Components<Theme>['MuiIconButton'] = {\n defaultProps: {\n disableRipple: true,\n variant: 'standard',\n color: 'secondary',\n size: 'medium',\n },\n styleOverrides: {\n root: ({ theme }) => ({\n position: 'relative',\n boxShadow: 'none',\n outline: 'none',\n width: '44px',\n height: '44px',\n borderRadius: '1000px',\n maxWidth: 'none',\n transition: 'all 0.3s ease-out',\n flexShrink: '0',\n '&:hover': {\n boxShadow: 'none',\n },\n '&&:active': {\n boxShadow: 'none',\n },\n ...getInteractiveStyle(\n {\n backgroundColor: 'transparent',\n },\n {\n // hover effect also in accordionSummary.theme.tsx\n backgroundColor: theme.palette.transparent.secondary,\n },\n ),\n // focused style\n ...getFocusRingStyle(theme),\n // disabled style\n '&.Mui-disabled': {\n opacity: '1',\n color: theme.palette.disabled.primary,\n },\n }),\n sizeSmall: {\n height: '32px',\n width: '32px',\n // icon itself\n '& .MuiSvgIcon-root': {\n fontSize: '17px',\n },\n },\n sizeMedium: {\n // width & height & borderRadius is default in root\n // icon itself\n '& .MuiSvgIcon-root': {\n fontSize: '20px',\n },\n },\n sizeLarge: {\n height: '50px',\n width: '50px',\n // icon itself\n '& .MuiSvgIcon-root': {\n fontSize: '22px',\n },\n },\n },\n variants: [\n {\n props: { color: 'secondary' },\n style: ({ theme }) => ({\n ...getInteractiveStyle(\n {\n color: theme.palette.text.primary,\n },\n {\n color: theme.palette.text.primary,\n },\n ),\n }),\n },\n {\n props: { variant: 'filled' },\n style: ({ theme }) => ({\n // disabled style\n '&.Mui-disabled': {\n opacity: '1',\n backgroundColor: theme.palette.disabled.secondary,\n color: theme.palette.disabled.tertiary,\n },\n }),\n },\n {\n props: { variant: 'filled', color: 'primary' },\n style: ({ theme }) => ({\n ...getInteractiveStyle(\n {\n backgroundColor: theme.palette.brand.secondary,\n color: theme.palette.onSurface.os900,\n },\n {\n backgroundColor: theme.palette.brandHover.secondary,\n color: theme.palette.onSurface.os900,\n },\n ),\n }),\n },\n {\n props: { variant: 'filled', color: 'secondary' },\n style: ({ theme }) => ({\n ...getInteractiveStyle(\n {\n backgroundColor: theme.palette.secondary.main,\n color: theme.palette.secondary.contrastText,\n },\n {\n backgroundColor: theme.palette.secondary.light,\n color: theme.palette.secondary.contrastText,\n },\n ),\n }),\n },\n {\n props: { variant: 'filled', color: 'error' },\n style: ({ theme }) => ({\n ...getInteractiveStyle(\n {\n color: theme.palette.error.contrastText,\n backgroundColor: theme.palette.error.main,\n },\n {\n color: theme.palette.error.contrastText,\n backgroundColor: theme.palette.error.dark,\n },\n ),\n }),\n },\n {\n props: { variant: 'filled', color: 'inherit' },\n style: ({ theme }) => ({\n ...getInteractiveStyle(\n {\n backgroundColor: theme.palette.transparent.secondary,\n },\n {\n backgroundColor: theme.palette.surface.primary,\n },\n ),\n }),\n },\n {\n props: { variant: 'outlined' },\n style: {\n border: '2px solid currentColor',\n ...updateFocusRingStyle(2),\n },\n },\n {\n props: { variant: 'outlined', size: 'small' },\n style: {\n borderWidth: '1px',\n ...updateFocusRingStyle(1),\n },\n },\n {\n props: { color: 'surface' },\n style: ({ theme }) => ({\n border: `1px solid ${theme.palette.mode === 'dark' ? theme.palette.transparent.quarternary : theme.palette.onSurface.os100}`,\n ...updateFocusRingStyle(1),\n ...getInteractiveStyle(\n {\n backgroundColor: theme.palette.surface.primary,\n color: theme.palette.text.primary,\n },\n {\n backgroundColor: theme.palette.surface.secondary,\n color: theme.palette.text.primary,\n },\n ),\n // disabled style\n '&.Mui-disabled': {\n backgroundColor: theme.palette.surface.secondary,\n borderColor: theme.palette.surface.secondary,\n color: theme.palette.disabled.primary,\n },\n }),\n },\n {\n props: { color: 'surface', variant: 'outlined' },\n style: {\n borderWidth: '2px',\n ...updateFocusRingStyle(2),\n },\n },\n {\n props: { color: 'white' },\n style: ({ theme }) => ({\n // hover effect also in accordionSummary.theme.tsx\n // hover effect also in FooterAccordion.tsx\n ...getInteractiveStyle(\n {\n backgroundColor: 'transparent',\n color: theme.palette.onSurface.os0,\n },\n {\n color: theme.palette.onSurface.os0,\n backgroundColor: theme.palette.transparent.tertiary,\n },\n ),\n // disabled style\n '&.Mui-disabled': {\n borderColor: theme.palette.disabled.primary,\n color: theme.palette.disabled.primary,\n },\n }),\n },\n ],\n};\n"],"names":["flowIconButton","defaultProps","disableRipple","variant","color","size","styleOverrides","root","theme","position","boxShadow","outline","width","height","borderRadius","maxWidth","transition","flexShrink","getInteractiveStyle","backgroundColor","palette","transparent","secondary","getFocusRingStyle","opacity","disabled","primary","sizeSmall","fontSize","sizeMedium","sizeLarge","variants","props","style","text","tertiary","brand","onSurface","os900","brandHover","main","contrastText","light","error","dark","surface","border","updateFocusRingStyle","borderWidth","mode","quarternary","os100","borderColor","os0"],"mappings":"4GAKO,MAAMA,EAAqD,CAChEC,aAAc,CACZC,eAAe,EACfC,QAAS,WACTC,MAAO,YACPC,KAAM,UAERC,eAAgB,CACdC,KAAM,EAAGC,YAAO,CACdC,SAAU,WACVC,UAAW,OACXC,QAAS,OACTC,MAAO,OACPC,OAAQ,OACRC,aAAc,SACdC,SAAU,OACVC,WAAY,oBACZC,WAAY,IACZ,UAAW,CACTP,UAAW,QAEb,YAAa,CACXA,UAAW,WAEVQ,sBACD,CACEC,gBAAiB,eAEnB,CAEEA,gBAAiBX,EAAMY,QAAQC,YAAYC,eAI5CC,EAAAA,kBAAkBf,GAErB,iBAAkB,CAChBgB,QAAS,IACTpB,MAAOI,EAAMY,QAAQK,SAASC,WAGlCC,UAAW,CACTd,OAAQ,OACRD,MAAO,OAEP,qBAAsB,CACpBgB,SAAU,SAGd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
1
- "use strict";exports.flowListItemText={defaultProps:{inset:!1,primaryTypographyProps:{variant:"caption2"},secondaryTypographyProps:{variant:"disclaimer1"}},styleOverrides:{root:({theme:e})=>({margin:"0",color:e.palette.text.primary,"& ~ .MuiListItemText-root":{flexGrow:"0",flexShrink:"0",maxWidth:"100%",textAlign:"right"}}),primary:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:"2",WebkitBoxOrient:"vertical"},secondary:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:"2",WebkitBoxOrient:"vertical"},inset:{padding:"0"}}};
1
+ "use strict";exports.flowListItemText={defaultProps:{inset:!1,slotProps:{primary:{variant:"caption2"},secondary:{variant:"disclaimer1"}}},styleOverrides:{root:({theme:e})=>({margin:"0",color:e.palette.text.primary,"& ~ .MuiListItemText-root":{flexGrow:"0",flexShrink:"0",maxWidth:"100%",textAlign:"right"}}),primary:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:"2",WebkitBoxOrient:"vertical"},secondary:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:"2",WebkitBoxOrient:"vertical"},inset:{padding:"0"}}};
2
2
  //# sourceMappingURL=listItemText.theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"listItemText.theme.js","sources":["../../../../../src/materialui/list/listItemText.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\n\nexport const flowListItemText: Components<Theme>['MuiListItemText'] = {\n defaultProps: {\n // has no effect\n inset: false,\n // set default typography\n // NOTE: we are using deprecated @mui props instead of slotProps to allow projects to still use them as well\n primaryTypographyProps: {\n variant: 'caption2',\n },\n secondaryTypographyProps: {\n variant: 'disclaimer1',\n },\n // slotProps: {\n // primary: {\n // variant: 'caption2',\n // },\n // secondary: {\n // variant: 'disclaimer1',\n // },\n // },\n },\n styleOverrides: {\n root: ({ theme }) => ({\n margin: '0',\n color: theme.palette.text.primary,\n // next ListItemTexts in the ListItem\n '& ~ .MuiListItemText-root': {\n // no need to grow\n flexGrow: '0',\n // make sure text is always visible and does not shrink\n flexShrink: '0',\n maxWidth: '100%',\n // align to right side\n textAlign: 'right',\n },\n }),\n primary: {\n // restrict 2 lines\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n display: '-webkit-box',\n WebkitLineClamp: '2',\n WebkitBoxOrient: 'vertical',\n // beware, due to important nested selector applying style\n // here disallows overwrites via sx\n },\n secondary: {\n // restrict 2 lines\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n display: '-webkit-box',\n WebkitLineClamp: '2',\n WebkitBoxOrient: 'vertical',\n // beware, due to important nested selector applying style\n // here disallows overwrites via sx\n },\n inset: {\n padding: '0',\n },\n },\n};\n"],"names":["defaultProps","inset","primaryTypographyProps","variant","secondaryTypographyProps","styleOverrides","root","theme","margin","color","palette","text","primary","flexGrow","flexShrink","maxWidth","textAlign","overflow","textOverflow","display","WebkitLineClamp","WebkitBoxOrient","secondary","padding"],"mappings":"sCAGsE,CACpEA,aAAc,CAEZC,OAAO,EAGPC,uBAAwB,CACtBC,QAAS,YAEXC,yBAA0B,CACxBD,QAAS,gBAWbE,eAAgB,CACdC,KAAM,EAAGC,YAAO,CACdC,OAAQ,IACRC,MAAOF,EAAMG,QAAQC,KAAKC,QAE1B,4BAA6B,CAE3BC,SAAU,IAEVC,WAAY,IACZC,SAAU,OAEVC,UAAW,WAGfJ,QAAS,CAEPK,SAAU,SACVC,aAAc,WACdC,QAAS,cACTC,gBAAiB,IACjBC,gBAAiB,YAInBC,UAAW,CAETL,SAAU,SACVC,aAAc,WACdC,QAAS,cACTC,gBAAiB,IACjBC,gBAAiB,YAInBpB,MAAO,CACLsB,QAAS"}
1
+ {"version":3,"file":"listItemText.theme.js","sources":["../../../../../src/materialui/list/listItemText.theme.ts"],"sourcesContent":["import { Components } from '@mui/material/styles';\nimport { Theme } from '@mui/material';\n\nexport const flowListItemText: Components<Theme>['MuiListItemText'] = {\n defaultProps: {\n // has no effect\n inset: false,\n // set default typography\n slotProps: {\n primary: {\n variant: 'caption2',\n },\n secondary: {\n variant: 'disclaimer1',\n },\n },\n },\n styleOverrides: {\n root: ({ theme }) => ({\n margin: '0',\n color: theme.palette.text.primary,\n // next ListItemTexts in the ListItem\n '& ~ .MuiListItemText-root': {\n // no need to grow\n flexGrow: '0',\n // make sure text is always visible and does not shrink\n flexShrink: '0',\n maxWidth: '100%',\n // align to right side\n textAlign: 'right',\n },\n }),\n primary: {\n // restrict 2 lines\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n display: '-webkit-box',\n WebkitLineClamp: '2',\n WebkitBoxOrient: 'vertical',\n // beware, due to important nested selector applying style\n // here disallows overwrites via sx\n },\n secondary: {\n // restrict 2 lines\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n display: '-webkit-box',\n WebkitLineClamp: '2',\n WebkitBoxOrient: 'vertical',\n // beware, due to important nested selector applying style\n // here disallows overwrites via sx\n },\n inset: {\n padding: '0',\n },\n },\n};\n"],"names":["defaultProps","inset","slotProps","primary","variant","secondary","styleOverrides","root","theme","margin","color","palette","text","flexGrow","flexShrink","maxWidth","textAlign","overflow","textOverflow","display","WebkitLineClamp","WebkitBoxOrient","padding"],"mappings":"sCAGsE,CACpEA,aAAc,CAEZC,OAAO,EAEPC,UAAW,CACTC,QAAS,CACPC,QAAS,YAEXC,UAAW,CACTD,QAAS,iBAIfE,eAAgB,CACdC,KAAM,EAAGC,YAAO,CACdC,OAAQ,IACRC,MAAOF,EAAMG,QAAQC,KAAKT,QAE1B,4BAA6B,CAE3BU,SAAU,IAEVC,WAAY,IACZC,SAAU,OAEVC,UAAW,WAGfb,QAAS,CAEPc,SAAU,SACVC,aAAc,WACdC,QAAS,cACTC,gBAAiB,IACjBC,gBAAiB,YAInBhB,UAAW,CAETY,SAAU,SACVC,aAAc,WACdC,QAAS,cACTC,gBAAiB,IACjBC,gBAAiB,YAInBpB,MAAO,CACLqB,QAAS"}
@@ -1,2 +1,2 @@
1
- "use strict";var r=require("react/jsx-runtime"),i=require("react"),e=require("@mui/material"),t=require("./slider.theme.js");const o=i.forwardRef(({orientation:i,thumbSize:o=t.flowThumbWidth,sx:a,...u},d)=>r.jsx(e.Box,{ref:d,sx:{..."vertical"===i?{py:o/2+"px","& .MuiSlider-rail":{height:"auto",top:`-${o/2}px`,bottom:`-${o/2}px`},"& .MuiSlider-track":{marginBottom:`-${o/2}px`,borderTopLeftRadius:"0",borderTopRightRadius:"0"}}:{px:o/2+"px","& .MuiSlider-rail":{width:"auto",left:`-${o/2}px`,right:`-${o/2}px`,maxWidth:"none"},"& .MuiSlider-track":{marginLeft:`-${o/2}px`,borderTopRightRadius:"0",borderBottomRightRadius:"0"}},...a},...u}));exports.SliderContainer=o;
1
+ "use strict";var r=require("react/jsx-runtime"),e=require("react"),i=require("@mui/material"),t=require("../../utils/sxOverride/sxOverride.js"),o=require("./slider.theme.js");const a=e.forwardRef(({orientation:e,thumbSize:a=o.flowThumbWidth,sx:d,...u},s)=>r.jsx(i.Box,{ref:s,sx:t.sxOverride({..."vertical"===e?{py:a/2+"px","& .MuiSlider-rail":{height:"auto",top:`-${a/2}px`,bottom:`-${a/2}px`},"& .MuiSlider-track":{marginBottom:`-${a/2}px`,borderTopLeftRadius:"0",borderTopRightRadius:"0"}}:{px:a/2+"px","& .MuiSlider-rail":{width:"auto",left:`-${a/2}px`,right:`-${a/2}px`,maxWidth:"none"},"& .MuiSlider-track":{marginLeft:`-${a/2}px`,borderTopRightRadius:"0",borderBottomRightRadius:"0"}}},d),...u}));exports.SliderContainer=a;
2
2
  //# sourceMappingURL=SliderContainer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SliderContainer.js","sources":["../../../../../src/materialui/slider/SliderContainer.tsx"],"sourcesContent":["import React, { forwardRef, ElementType } from 'react';\nimport { Box, BoxProps, SliderProps } from '@mui/material';\nimport { flowThumbWidth } from './slider.theme';\n\nexport interface SliderContainer extends BoxProps<ElementType> {\n /**\n * Slider orientation\n */\n orientation?: SliderProps['orientation'];\n /**\n * Size of the slider thumb\n */\n thumbSize?: number;\n}\n\n/**\n * Simple wrapper of <Slider /> that ensures that thumb does not overflow outside the container\n */\nexport const SliderContainer: React.FC<SliderContainer> = forwardRef(\n ({ orientation, thumbSize = flowThumbWidth, sx, ...rest }, ref) => {\n return (\n <Box\n ref={ref}\n sx={{\n ...(orientation === 'vertical'\n ? {\n py: `${thumbSize / 2}px`,\n // increase the size of rail by size of thumb\n '& .MuiSlider-rail': {\n height: 'auto',\n top: `-${thumbSize / 2}px`,\n bottom: `-${thumbSize / 2}px`,\n },\n // move track into increased rail size\n '& .MuiSlider-track': {\n marginBottom: `-${thumbSize / 2}px`,\n borderTopLeftRadius: '0',\n borderTopRightRadius: '0',\n },\n }\n : {\n px: `${thumbSize / 2}px`,\n // increase the size of rail by size of thumb\n '& .MuiSlider-rail': {\n width: 'auto',\n left: `-${thumbSize / 2}px`,\n right: `-${thumbSize / 2}px`,\n maxWidth: 'none',\n },\n // move track into increased rail size\n '& .MuiSlider-track': {\n marginLeft: `-${thumbSize / 2}px`,\n borderTopRightRadius: '0',\n borderBottomRightRadius: '0',\n },\n }),\n ...sx,\n }}\n {...rest}\n />\n );\n },\n);\n"],"names":["SliderContainer","forwardRef","orientation","thumbSize","flowThumbWidth","sx","rest","ref","_jsx","Box","py","height","top","bottom","marginBottom","borderTopLeftRadius","borderTopRightRadius","px","width","left","right","maxWidth","marginLeft","borderBottomRightRadius"],"mappings":"mIAkBaA,EAA6CC,EAAAA,WACxD,EAAGC,cAAaC,YAAYC,EAAAA,eAAgBC,QAAOC,GAAQC,IAEvDC,EAAAA,IAACC,EAAAA,IAAG,CACFF,IAAKA,EACLF,GAAI,IACkB,aAAhBH,EACA,CACEQ,GAAOP,EAAY,EAAf,KAEJ,oBAAqB,CACnBQ,OAAQ,OACRC,IAAK,IAAIT,EAAY,MACrBU,OAAQ,IAAIV,EAAY,OAG1B,qBAAsB,CACpBW,aAAc,IAAIX,EAAY,MAC9BY,oBAAqB,IACrBC,qBAAsB,MAG1B,CACEC,GAAOd,EAAY,EAAf,KAEJ,oBAAqB,CACnBe,MAAO,OACPC,KAAM,IAAIhB,EAAY,MACtBiB,MAAO,IAAIjB,EAAY,MACvBkB,SAAU,QAGZ,qBAAsB,CACpBC,WAAY,IAAInB,EAAY,MAC5Ba,qBAAsB,IACtBO,wBAAyB,SAG9BlB,MAEDC"}
1
+ {"version":3,"file":"SliderContainer.js","sources":["../../../../../src/materialui/slider/SliderContainer.tsx"],"sourcesContent":["import React, { forwardRef, ElementType } from 'react';\nimport { Box, BoxProps, SliderProps } from '@mui/material';\nimport { sxOverride } from '@/src/utils/sxOverride';\nimport { flowThumbWidth } from './slider.theme';\n\nexport interface SliderContainer extends BoxProps<ElementType> {\n /**\n * Slider orientation\n */\n orientation?: SliderProps['orientation'];\n /**\n * Size of the slider thumb\n */\n thumbSize?: number;\n}\n\n/**\n * Simple wrapper of <Slider /> that ensures that thumb does not overflow outside the container\n */\nexport const SliderContainer: React.FC<SliderContainer> = forwardRef(\n ({ orientation, thumbSize = flowThumbWidth, sx, ...rest }, ref) => {\n return (\n <Box\n ref={ref}\n sx={sxOverride(\n {\n ...(orientation === 'vertical'\n ? {\n py: `${thumbSize / 2}px`,\n // increase the size of rail by size of thumb\n '& .MuiSlider-rail': {\n height: 'auto',\n top: `-${thumbSize / 2}px`,\n bottom: `-${thumbSize / 2}px`,\n },\n // move track into increased rail size\n '& .MuiSlider-track': {\n marginBottom: `-${thumbSize / 2}px`,\n borderTopLeftRadius: '0',\n borderTopRightRadius: '0',\n },\n }\n : {\n px: `${thumbSize / 2}px`,\n // increase the size of rail by size of thumb\n '& .MuiSlider-rail': {\n width: 'auto',\n left: `-${thumbSize / 2}px`,\n right: `-${thumbSize / 2}px`,\n maxWidth: 'none',\n },\n // move track into increased rail size\n '& .MuiSlider-track': {\n marginLeft: `-${thumbSize / 2}px`,\n borderTopRightRadius: '0',\n borderBottomRightRadius: '0',\n },\n }),\n },\n sx,\n )}\n {...rest}\n />\n );\n },\n);\n"],"names":["SliderContainer","forwardRef","orientation","thumbSize","flowThumbWidth","sx","rest","ref","_jsx","Box","sxOverride","py","height","top","bottom","marginBottom","borderTopLeftRadius","borderTopRightRadius","px","width","left","right","maxWidth","marginLeft","borderBottomRightRadius"],"mappings":"qLAmBaA,EAA6CC,EAAAA,WACxD,EAAGC,cAAaC,YAAYC,EAAAA,eAAgBC,QAAOC,GAAQC,IAEvDC,EAAAA,IAACC,EAAAA,IAAG,CACFF,IAAKA,EACLF,GAAIK,aACF,IACsB,aAAhBR,EACA,CACES,GAAOR,EAAY,EAAf,KAEJ,oBAAqB,CACnBS,OAAQ,OACRC,IAAK,IAAIV,EAAY,MACrBW,OAAQ,IAAIX,EAAY,OAG1B,qBAAsB,CACpBY,aAAc,IAAIZ,EAAY,MAC9Ba,oBAAqB,IACrBC,qBAAsB,MAG1B,CACEC,GAAOf,EAAY,EAAf,KAEJ,oBAAqB,CACnBgB,MAAO,OACPC,KAAM,IAAIjB,EAAY,MACtBkB,MAAO,IAAIlB,EAAY,MACvBmB,SAAU,QAGZ,qBAAsB,CACpBC,WAAY,IAAIpB,EAAY,MAC5Bc,qBAAsB,IACtBO,wBAAyB,OAInCnB,MAEEC"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime"),r=require("react"),a=require("@mui/material"),l=require("./slider.theme.js"),o=require("../../components/focusring/focusring.js");const s=r.forwardRef(({sx:r,children:o,value:s,valueProps:t,label:n,labelProps:u,valueLabelFormat:p,setValue:d,disabled:x,min:c=l.flowSlider.defaultProps.min,minLabel:b,minLabelProps:m,max:f=l.flowSlider.defaultProps.max,maxLabel:v,maxLabelProps:g,step:y=l.flowSlider.defaultProps.step,sliderValueProps:h,inputProps:P,...S},j)=>{const k={disabled:x,min:c,max:f,step:y,valueLabelFormat:p,valueProps:t,inputProps:P,...h};return e.jsxs(a.Box,{ref:j,sx:{display:"flex",alignItems:"flex-end",justifyContent:"space-between",gap:1,...r},...S,children:[Array.isArray(s)||!1===s&&(b||n)&&v?e.jsxs(e.Fragment,{children:[e.jsx(i,{value:!1!==s&&s[0],setValue:d?e=>d([e,s[1]]):void 0,label:b||n,labelProps:m||u,...k,max:s[1]}),e.jsx(i,{value:!1!==s&&s[1],setValue:d?e=>d([s[0],e]):void 0,label:v,labelProps:g,...k,min:s[0],sx:{textAlign:"right",...k?.sx}})]}):e.jsx(i,{value:s,setValue:d,label:n,labelProps:u,...k}),o]})}),i=r.forwardRef(({value:l,valueProps:s,label:i,labelProps:t,valueLabelFormat:n,setValue:u,min:p,max:d,step:x,inputProps:c,disabled:b,sx:m,...f},v)=>{const{sx:g,...y}=t??{},{sx:h,...P}=s??{},{sx:S,...j}=c??{},[k,w]=r.useState(!1),F=r.useCallback(e=>{const r=+(e||0);u(r<p?p:r>d?d:r)},[p,d,u]),V=n?n(l):l;return e.jsxs(a.Box,{ref:v,sx:{minWidth:"82px",...(!i||!1===l)&&{pt:.5},...m},onClick:u&&!b?()=>w(!0):void 0,...f,children:[i&&e.jsx(a.Typography,{...!1===l&&{variant:"disclaimer1"},sx:{display:"block",...!1===l?{color:e=>"dark"===e.palette.mode?"onSurface.os200":"onSurface.os700"}:{color:e=>"dark"===e.palette.mode?"onSurface.os300":"onSurface.os600",fontSize:{xs:"12px"},lineHeight:{xs:"12px"},fontWeight:{xs:"400"},py:.5,px:1},...g},...y,children:i}),k&&!b?e.jsx(a.FilledInput,{autoFocus:!0,onBlur:()=>w(!1),value:l,onChange:e=>F(e.target.value),onKeyUp:()=>{},inputProps:{type:"number",step:x,min:p,"aria-valuemin":p,max:d,"aria-valuemax":d,"aria-valuenow":V},disableUnderline:!0,sx:e=>({display:"block",borderRadius:"4px",py:"1px",px:1,border:1,borderColor:"onSurface.os500","&&, &:hover":{backgroundColor:"background.primary"},"& .MuiInputBase-input":{fieldSizing:"content",textAlign:"inherit",p:0,...e.typography[P?.variant??"disclaimer1"]},...o.getFocusRingStyle(e,!1,1,"&.Mui-focused"),"&&:before":{border:"none"},...S}),...j}):!1!==l&&e.jsx(a.Typography,{variant:"disclaimer1",sx:{display:"block",px:1,whiteSpace:"nowrap",color:e=>"dark"===e.palette.mode?"onSurface.os200":"onSurface.os700",...u&&{px:1,py:"1px",border:1,borderColor:"onSurface.os500",borderRadius:"4px"},...h},...u&&{tabIndex:0,onFocus:()=>w(!0)},...P,children:V})]})});exports.SliderValue=i,exports.SliderValues=s;
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("react"),a=require("@mui/material"),s=require("../../utils/sxOverride/sxOverride.js"),l=require("./slider.theme.js"),o=require("../../components/focusring/focusring.js");const i=r.forwardRef(({sx:r,children:o,value:i,valueProps:n,label:u,labelProps:p,valueLabelFormat:d,setValue:x,disabled:c,min:b=l.flowSlider.defaultProps.min,minLabel:m,minLabelProps:v,max:f=l.flowSlider.defaultProps.max,maxLabel:g,maxLabelProps:y,step:h=l.flowSlider.defaultProps.step,sliderValueProps:P,inputProps:S,...j},k)=>{const w={disabled:c,min:b,max:f,step:h,valueLabelFormat:d,valueProps:n,inputProps:S,...P};return e.jsxs(a.Box,{ref:k,sx:s.sxOverride({display:"flex",alignItems:"flex-end",justifyContent:"space-between",gap:1},r),...j,children:[Array.isArray(i)||!1===i&&(m||u)&&g?e.jsxs(e.Fragment,{children:[e.jsx(t,{value:!1!==i&&i[0],setValue:x?e=>x([e,i[1]]):void 0,label:m||u,labelProps:v||p,...w,max:i[1]}),e.jsx(t,{value:!1!==i&&i[1],setValue:x?e=>x([i[0],e]):void 0,label:g,labelProps:y,...w,min:i[0],sx:s.sxOverride({textAlign:"right"},w?.sx)})]}):e.jsx(t,{value:i,setValue:x,label:u,labelProps:p,...w}),o]})}),t=r.forwardRef(({value:l,valueProps:i,label:t,labelProps:n,valueLabelFormat:u,setValue:p,min:d,max:x,step:c,inputProps:b,disabled:m,sx:v,...f},g)=>{const{sx:y,...h}=n??{},{sx:P,...S}=i??{},{sx:j,...k}=b??{},[w,F]=r.useState(!1),O=r.useCallback(e=>{const r=+(e||0);p(r<d?d:r>x?x:r)},[d,x,p]),V=u?u(l):l;return e.jsxs(a.Box,{ref:g,sx:s.sxOverride({minWidth:"82px",...(!t||!1===l)&&{pt:.5}},v),onClick:p&&!m?()=>F(!0):void 0,...f,children:[t&&e.jsx(a.Typography,{...!1===l&&{variant:"disclaimer1"},sx:s.sxOverride({display:"block",...!1===l?{color:e=>"dark"===e.palette.mode?"onSurface.os200":"onSurface.os700"}:{color:e=>"dark"===e.palette.mode?"onSurface.os300":"onSurface.os600",fontSize:{xs:"12px"},lineHeight:{xs:"12px"},fontWeight:{xs:"400"},py:.5,px:1}},y),...h,children:t}),w&&!m?e.jsx(a.FilledInput,{autoFocus:!0,onBlur:()=>F(!1),value:l,onChange:e=>O(e.target.value),onKeyUp:()=>{},inputProps:{type:"number",step:c,min:d,"aria-valuemin":d,max:x,"aria-valuemax":x,"aria-valuenow":V},disableUnderline:!0,sx:s.sxOverride(e=>({display:"block",borderRadius:"4px",py:"1px",px:1,border:1,borderColor:"onSurface.os500","&&, &:hover":{backgroundColor:"background.primary"},"& .MuiInputBase-input":{fieldSizing:"content",textAlign:"inherit",p:0,...e.typography[S?.variant??"disclaimer1"]},...o.getFocusRingStyle(e,!1,1,"&.Mui-focused"),"&&:before":{border:"none"}}),j),...k}):!1!==l&&e.jsx(a.Typography,{variant:"disclaimer1",sx:s.sxOverride({display:"block",px:1,whiteSpace:"nowrap",color:e=>"dark"===e.palette.mode?"onSurface.os200":"onSurface.os700",...p&&{px:1,py:"1px",border:1,borderColor:"onSurface.os500",borderRadius:"4px"}},P),...p&&{tabIndex:0,onFocus:()=>F(!0)},...S,children:V})]})});exports.SliderValue=t,exports.SliderValues=i;
2
2
  //# sourceMappingURL=SliderValues.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SliderValues.js","sources":["../../../../../src/materialui/slider/SliderValues.tsx"],"sourcesContent":["import React, { forwardRef, ElementType, ReactNode, useState, useCallback } from 'react';\nimport { Box, BoxProps, SliderProps, Typography, TypographyProps, FilledInput, FilledInputProps } from '@mui/material';\nimport { flowSlider } from '@/src/materialui/slider/slider.theme';\nimport { getFocusRingStyle } from '@/src/components/focusring/focusring';\n\nexport interface SliderValuesProps extends BoxProps<ElementType> {\n /**\n * The value of the slider\n */\n value: SliderProps['value'] | false;\n /**\n * Properties applied to value wrapper\n */\n valueProps?: TypographyProps<ElementType>;\n /**\n * Label show above value\n */\n label?: ReactNode;\n /**\n * Properties applied to label wrapper\n */\n labelProps?: TypographyProps<ElementType>;\n /**\n * The format function the value label's value\n */\n valueLabelFormat?: SliderProps['valueLabelFormat'];\n /**\n * Provide this function to allow changing the slider value with inputs\n */\n setValue?: (newValue: unknown) => void;\n /**\n * Disable editing\n */\n disabled?: boolean;\n /**\n * The minimum allowed value of the slider\n */\n min?: SliderProps['min'];\n /**\n * Text shown above min selected value\n */\n minLabel?: ReactNode;\n /**\n * Properties applied to label wrapper\n */\n minLabelProps?: TypographyProps<ElementType>;\n /**\n * The maximum allowed value of the slider\n */\n max?: SliderProps['max'];\n /**\n * Text shown above max selected value\n */\n maxLabel?: ReactNode;\n /**\n * Properties applied to label wrapper\n */\n maxLabelProps?: TypographyProps<ElementType>;\n /**\n * The granularity with which the slider can step through values\n */\n step?: SliderProps['step'];\n /**\n * Properties applied to the root wrapper of each SliderValue\n */\n sliderValueProps?: BoxProps<ElementType>;\n /**\n * Properties applied to SliderValue input field\n */\n inputProps?: FilledInputProps;\n}\n\n/**\n * Wrapper that render one or two SliderValue components based on the Slider type\n */\nexport const SliderValues: React.FC<SliderValuesProps> = forwardRef(\n (\n {\n sx,\n children,\n value,\n valueProps,\n label,\n labelProps,\n valueLabelFormat,\n setValue,\n disabled,\n min = flowSlider.defaultProps.min,\n minLabel,\n minLabelProps,\n max = flowSlider.defaultProps.max,\n maxLabel,\n maxLabelProps,\n step = flowSlider.defaultProps.step,\n sliderValueProps: rawSliderValueProps,\n inputProps,\n ...rest\n },\n ref,\n ) => {\n const sliderValueProps = {\n disabled,\n min,\n max,\n step,\n valueLabelFormat,\n valueProps,\n inputProps,\n ...rawSliderValueProps,\n };\n\n return (\n <Box\n ref={ref}\n sx={{\n display: 'flex',\n alignItems: 'flex-end',\n justifyContent: 'space-between',\n gap: 1,\n ...sx,\n }}\n {...rest}\n >\n {Array.isArray(value) || (value === false && (minLabel || label) && maxLabel) ? (\n <>\n <SliderValue\n value={value !== false && value[0]}\n setValue={setValue ? (newValue) => setValue([newValue, value[1]]) : undefined}\n label={minLabel || label}\n labelProps={minLabelProps || labelProps}\n {...sliderValueProps}\n max={value[1]}\n />\n <SliderValue\n value={value !== false && value[1]}\n setValue={setValue ? (newValue) => setValue([value[0], newValue]) : undefined}\n label={maxLabel}\n labelProps={maxLabelProps}\n {...sliderValueProps}\n min={value[0]}\n sx={{ textAlign: 'right', ...sliderValueProps?.sx }}\n />\n </>\n ) : (\n <SliderValue value={value} setValue={setValue} label={label} labelProps={labelProps} {...sliderValueProps} />\n )}\n {children}\n </Box>\n );\n },\n);\n\nexport interface SliderValueProps extends Omit<\n SliderValuesProps,\n 'value' | 'minLabel' | 'minLabelProps' | 'maxLabel' | 'maxLabelProps'\n> {\n /**\n * The single value of the slider\n */\n value: number | false;\n /**\n * The single setValue for the slider value\n */\n setValue?: (newValue: number) => void;\n}\n\n/**\n * Display single value of slider, allows editing with input\n */\nexport const SliderValue: React.FC<SliderValueProps> = forwardRef(\n (\n {\n value,\n valueProps,\n label,\n labelProps,\n valueLabelFormat,\n setValue,\n min,\n max,\n step,\n inputProps,\n disabled,\n sx,\n ...rest\n },\n ref,\n ) => {\n const { sx: labelSx, ...restLabel } = labelProps ?? {};\n const { sx: valueSx, ...restValue } = valueProps ?? {};\n const { sx: inputSx, ...restInput } = inputProps ?? {};\n const [editing, setEditing] = useState(false);\n const editValue = useCallback(\n (inputValue: string) => {\n const newValue = +(inputValue || 0);\n if (newValue < min) {\n setValue(min);\n } else if (newValue > max) {\n setValue(max);\n } else {\n setValue(newValue);\n }\n },\n [min, max, setValue],\n );\n const formattedValue = valueLabelFormat ? valueLabelFormat(value) : value;\n\n return (\n <Box\n ref={ref}\n sx={{ minWidth: '82px', ...((!label || value === false) && { pt: 0.5 }), ...sx }}\n onClick={setValue && !disabled ? () => setEditing(true) : undefined}\n {...rest}\n >\n {label && (\n <Typography\n {...(value === false && {\n variant: 'disclaimer1',\n })}\n sx={{\n display: 'block',\n ...(value === false\n ? {\n color: (theme) => (theme.palette.mode === 'dark' ? 'onSurface.os200' : 'onSurface.os700'),\n }\n : {\n // os600 instead of Figma's os500 to pass A11y contrast\n color: (theme) => (theme.palette.mode === 'dark' ? 'onSurface.os300' : 'onSurface.os600'),\n fontSize: { xs: '12px' },\n lineHeight: { xs: '12px' },\n fontWeight: { xs: '400' },\n py: 0.5,\n px: 1,\n }),\n ...labelSx,\n }}\n {...restLabel}\n >\n {label}\n </Typography>\n )}\n {editing && !disabled ? (\n <FilledInput\n autoFocus\n onBlur={() => setEditing(false)}\n value={value}\n onChange={(e) => editValue(e.target.value)}\n onKeyUp={() => {}}\n inputProps={{\n type: 'number',\n step: step,\n min: min,\n ['aria-valuemin']: min,\n max: max,\n ['aria-valuemax']: max,\n ['aria-valuenow']: formattedValue,\n }}\n disableUnderline\n sx={(theme) => ({\n display: 'block',\n borderRadius: '4px',\n py: '1px', // pixel perfect matching design\n px: 1,\n border: 1,\n borderColor: 'onSurface.os500',\n '&&, &:hover': {\n backgroundColor: 'background.primary',\n },\n // input itself\n '& .MuiInputBase-input': {\n fieldSizing: 'content',\n textAlign: 'inherit',\n p: 0,\n // matching typography style with value\n ...theme.typography[restValue?.variant ?? 'disclaimer1'],\n },\n ...getFocusRingStyle(theme, false, 1, '&.Mui-focused'),\n '&&:before': {\n border: 'none',\n },\n ...inputSx,\n })}\n {...restInput}\n />\n ) : (\n value !== false && (\n <Typography\n variant=\"disclaimer1\"\n sx={{\n display: 'block',\n px: 1,\n whiteSpace: 'nowrap',\n color: (theme) => (theme.palette.mode === 'dark' ? 'onSurface.os200' : 'onSurface.os700'),\n // editable\n ...(setValue && {\n px: 1,\n py: '1px',\n border: 1,\n borderColor: 'onSurface.os500',\n borderRadius: '4px',\n }),\n ...valueSx,\n }}\n {...(setValue && {\n // allow focus with keyboard navigation\n tabIndex: 0,\n onFocus: () => setEditing(true),\n })}\n {...restValue}\n >\n {formattedValue}\n </Typography>\n )\n )}\n </Box>\n );\n },\n);\n"],"names":["SliderValues","forwardRef","sx","children","value","valueProps","label","labelProps","valueLabelFormat","setValue","disabled","min","flowSlider","defaultProps","minLabel","minLabelProps","max","maxLabel","maxLabelProps","step","sliderValueProps","rawSliderValueProps","inputProps","rest","ref","_jsxs","Box","display","alignItems","justifyContent","gap","Array","isArray","_Fragment","_jsx","SliderValue","newValue","undefined","textAlign","labelSx","restLabel","valueSx","restValue","inputSx","restInput","editing","setEditing","useState","editValue","useCallback","inputValue","formattedValue","minWidth","pt","onClick","Typography","variant","color","theme","palette","mode","fontSize","xs","lineHeight","fontWeight","py","px","FilledInput","autoFocus","onBlur","onChange","e","target","onKeyUp","type","disableUnderline","borderRadius","border","borderColor","backgroundColor","fieldSizing","p","typography","getFocusRingStyle","whiteSpace","tabIndex","onFocus"],"mappings":"kLA2EO,MAAMA,EAA4CC,EAAAA,WACvD,EAEIC,KACAC,WACAC,QACAC,aACAC,QACAC,aACAC,mBACAC,WACAC,WACAC,MAAMC,EAAAA,WAAWC,aAAaF,IAC9BG,WACAC,gBACAC,MAAMJ,EAAAA,WAAWC,aAAaG,IAC9BC,WACAC,gBACAC,OAAOP,EAAAA,WAAWC,aAAaM,KAC/BC,iBAAkBC,EAClBC,gBACGC,GAELC,KAEA,MAAMJ,EAAmB,CACvBV,WACAC,MACAK,MACAG,OACAX,mBACAH,aACAiB,gBACGD,GAGL,OACEI,EAAAA,KAACC,EAAAA,IAAG,CACFF,IAAKA,EACLtB,GAAI,CACFyB,QAAS,OACTC,WAAY,WACZC,eAAgB,gBAChBC,IAAK,KACF5B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,KAAkB,kBAAoB,qBAEnEnD,GAAY,CACdyD,GAAI,EACJD,GAAI,MACJY,OAAQ,EACRC,YAAa,kBACbF,aAAc,UAEbnC,MAEAhC,GAAY,CAEf4E,SAAU,EACVC,QAAS,IAAMxC,GAAW,OAExBJ,EAASvC,SAEZgD"}
1
+ {"version":3,"file":"SliderValues.js","sources":["../../../../../src/materialui/slider/SliderValues.tsx"],"sourcesContent":["import React, { forwardRef, ElementType, ReactNode, useState, useCallback } from 'react';\nimport { Box, BoxProps, SliderProps, Typography, TypographyProps, FilledInput, FilledInputProps } from '@mui/material';\nimport { sxOverride } from '@/src/utils/sxOverride';\nimport { flowSlider } from '@/src/materialui/slider/slider.theme';\nimport { getFocusRingStyle } from '@/src/components/focusring/focusring';\n\nexport interface SliderValuesProps extends BoxProps<ElementType> {\n /**\n * The value of the slider\n */\n value: SliderProps['value'] | false;\n /**\n * Properties applied to value wrapper\n */\n valueProps?: TypographyProps<ElementType>;\n /**\n * Label show above value\n */\n label?: ReactNode;\n /**\n * Properties applied to label wrapper\n */\n labelProps?: TypographyProps<ElementType>;\n /**\n * The format function the value label's value\n */\n valueLabelFormat?: SliderProps['valueLabelFormat'];\n /**\n * Provide this function to allow changing the slider value with inputs\n */\n setValue?: (newValue: unknown) => void;\n /**\n * Disable editing\n */\n disabled?: boolean;\n /**\n * The minimum allowed value of the slider\n */\n min?: SliderProps['min'];\n /**\n * Text shown above min selected value\n */\n minLabel?: ReactNode;\n /**\n * Properties applied to label wrapper\n */\n minLabelProps?: TypographyProps<ElementType>;\n /**\n * The maximum allowed value of the slider\n */\n max?: SliderProps['max'];\n /**\n * Text shown above max selected value\n */\n maxLabel?: ReactNode;\n /**\n * Properties applied to label wrapper\n */\n maxLabelProps?: TypographyProps<ElementType>;\n /**\n * The granularity with which the slider can step through values\n */\n step?: SliderProps['step'];\n /**\n * Properties applied to the root wrapper of each SliderValue\n */\n sliderValueProps?: BoxProps<ElementType>;\n /**\n * Properties applied to SliderValue input field\n */\n inputProps?: FilledInputProps;\n}\n\n/**\n * Wrapper that render one or two SliderValue components based on the Slider type\n */\nexport const SliderValues: React.FC<SliderValuesProps> = forwardRef(\n (\n {\n sx,\n children,\n value,\n valueProps,\n label,\n labelProps,\n valueLabelFormat,\n setValue,\n disabled,\n min = flowSlider.defaultProps.min,\n minLabel,\n minLabelProps,\n max = flowSlider.defaultProps.max,\n maxLabel,\n maxLabelProps,\n step = flowSlider.defaultProps.step,\n sliderValueProps: rawSliderValueProps,\n inputProps,\n ...rest\n },\n ref,\n ) => {\n const sliderValueProps = {\n disabled,\n min,\n max,\n step,\n valueLabelFormat,\n valueProps,\n inputProps,\n ...rawSliderValueProps,\n };\n\n return (\n <Box\n ref={ref}\n sx={sxOverride({ display: 'flex', alignItems: 'flex-end', justifyContent: 'space-between', gap: 1 }, sx)}\n {...rest}\n >\n {Array.isArray(value) || (value === false && (minLabel || label) && maxLabel) ? (\n <>\n <SliderValue\n value={value !== false && value[0]}\n setValue={setValue ? (newValue) => setValue([newValue, value[1]]) : undefined}\n label={minLabel || label}\n labelProps={minLabelProps || labelProps}\n {...sliderValueProps}\n max={value[1]}\n />\n <SliderValue\n value={value !== false && value[1]}\n setValue={setValue ? (newValue) => setValue([value[0], newValue]) : undefined}\n label={maxLabel}\n labelProps={maxLabelProps}\n {...sliderValueProps}\n min={value[0]}\n sx={sxOverride({ textAlign: 'right' }, sliderValueProps?.sx)}\n />\n </>\n ) : (\n <SliderValue value={value} setValue={setValue} label={label} labelProps={labelProps} {...sliderValueProps} />\n )}\n {children}\n </Box>\n );\n },\n);\n\nexport interface SliderValueProps extends Omit<\n SliderValuesProps,\n 'value' | 'minLabel' | 'minLabelProps' | 'maxLabel' | 'maxLabelProps'\n> {\n /**\n * The single value of the slider\n */\n value: number | false;\n /**\n * The single setValue for the slider value\n */\n setValue?: (newValue: number) => void;\n}\n\n/**\n * Display single value of slider, allows editing with input\n */\nexport const SliderValue: React.FC<SliderValueProps> = forwardRef(\n (\n {\n value,\n valueProps,\n label,\n labelProps,\n valueLabelFormat,\n setValue,\n min,\n max,\n step,\n inputProps,\n disabled,\n sx,\n ...rest\n },\n ref,\n ) => {\n const { sx: labelSx, ...restLabel } = labelProps ?? {};\n const { sx: valueSx, ...restValue } = valueProps ?? {};\n const { sx: inputSx, ...restInput } = inputProps ?? {};\n const [editing, setEditing] = useState(false);\n const editValue = useCallback(\n (inputValue: string) => {\n const newValue = +(inputValue || 0);\n if (newValue < min) {\n setValue(min);\n } else if (newValue > max) {\n setValue(max);\n } else {\n setValue(newValue);\n }\n },\n [min, max, setValue],\n );\n const formattedValue = valueLabelFormat ? valueLabelFormat(value) : value;\n\n return (\n <Box\n ref={ref}\n sx={sxOverride({ minWidth: '82px', ...((!label || value === false) && { pt: 0.5 }) }, sx)}\n onClick={setValue && !disabled ? () => setEditing(true) : undefined}\n {...rest}\n >\n {label && (\n <Typography\n {...(value === false && {\n variant: 'disclaimer1',\n })}\n sx={sxOverride(\n {\n display: 'block',\n ...(value === false\n ? {\n color: (theme) => (theme.palette.mode === 'dark' ? 'onSurface.os200' : 'onSurface.os700'),\n }\n : {\n // os600 instead of Figma's os500 to pass A11y contrast\n color: (theme) => (theme.palette.mode === 'dark' ? 'onSurface.os300' : 'onSurface.os600'),\n fontSize: { xs: '12px' },\n lineHeight: { xs: '12px' },\n fontWeight: { xs: '400' },\n py: 0.5,\n px: 1,\n }),\n },\n labelSx,\n )}\n {...restLabel}\n >\n {label}\n </Typography>\n )}\n {editing && !disabled ? (\n <FilledInput\n autoFocus\n onBlur={() => setEditing(false)}\n value={value}\n onChange={(e) => editValue(e.target.value)}\n onKeyUp={() => {}}\n inputProps={{\n type: 'number',\n step: step,\n min: min,\n ['aria-valuemin']: min,\n max: max,\n ['aria-valuemax']: max,\n ['aria-valuenow']: formattedValue,\n }}\n disableUnderline\n sx={sxOverride(\n (theme) => ({\n display: 'block',\n borderRadius: '4px',\n py: '1px', // pixel perfect matching design\n px: 1,\n border: 1,\n borderColor: 'onSurface.os500',\n '&&, &:hover': {\n backgroundColor: 'background.primary',\n },\n // input itself\n '& .MuiInputBase-input': {\n fieldSizing: 'content',\n textAlign: 'inherit',\n p: 0,\n // matching typography style with value\n ...theme.typography[restValue?.variant ?? 'disclaimer1'],\n },\n ...getFocusRingStyle(theme, false, 1, '&.Mui-focused'),\n '&&:before': {\n border: 'none',\n },\n }),\n inputSx,\n )}\n {...restInput}\n />\n ) : (\n value !== false && (\n <Typography\n variant=\"disclaimer1\"\n sx={sxOverride(\n {\n display: 'block',\n px: 1,\n whiteSpace: 'nowrap',\n color: (theme) => (theme.palette.mode === 'dark' ? 'onSurface.os200' : 'onSurface.os700'),\n // editable\n ...(setValue && {\n px: 1,\n py: '1px',\n border: 1,\n borderColor: 'onSurface.os500',\n borderRadius: '4px',\n }),\n },\n valueSx,\n )}\n {...(setValue && {\n // allow focus with keyboard navigation\n tabIndex: 0,\n onFocus: () => setEditing(true),\n })}\n {...restValue}\n >\n {formattedValue}\n </Typography>\n )\n )}\n </Box>\n );\n },\n);\n"],"names":["SliderValues","forwardRef","sx","children","value","valueProps","label","labelProps","valueLabelFormat","setValue","disabled","min","flowSlider","defaultProps","minLabel","minLabelProps","max","maxLabel","maxLabelProps","step","sliderValueProps","rawSliderValueProps","inputProps","rest","ref","_jsxs","Box","sxOverride","display","alignItems","justifyContent","gap","Array","isArray","_Fragment","_jsx","SliderValue","newValue","undefined","textAlign","labelSx","restLabel","valueSx","restValue","inputSx","restInput","editing","setEditing","useState","editValue","useCallback","inputValue","formattedValue","minWidth","pt","onClick","Typography","variant","color","theme","palette","mode","fontSize","xs","lineHeight","fontWeight","py","px","FilledInput","autoFocus","onBlur","onChange","e","target","onKeyUp","type","disableUnderline","borderRadius","border","borderColor","backgroundColor","fieldSizing","p","typography","getFocusRingStyle","whiteSpace","tabIndex","onFocus"],"mappings":"oOA4EO,MAAMA,EAA4CC,EAAAA,WACvD,EAEIC,KACAC,WACAC,QACAC,aACAC,QACAC,aACAC,mBACAC,WACAC,WACA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,IAAK,CACJ/B,QAAS,QACTiD,aAAc,MACdX,GAAI,MACJC,GAAI,EACJW,OAAQ,EACRC,YAAa,kBACb,cAAe,CACbC,gBAAiB,sBAGnB,wBAAyB,CACvBC,YAAa,UACb1C,UAAW,UACX2C,EAAG,KAEAvB,EAAMwB,WAAWxC,GAAWc,SAAW,mBAEzC2B,EAAAA,kBAAkBzB,GAAO,EAAO,EAAG,iBACtC,YAAa,CACXmB,OAAQ,UAGZlC,MAEEC,KAGI,IAAVzC,GACE+B,EAAAA,IAACqB,EAAAA,WAAU,CACTC,QAAQ,cACRvD,GAAIyB,EAAAA,WACF,CACEC,QAAS,QACTuC,GAAI,EACJkB,WAAY,SACZ3B,MAAQC,GAAkC,SAAvBA,EAAMC,QAAQC,KAAkB,kBAAoB,qBAEnEpD,GAAY,CACd0D,GAAI,EACJD,GAAI,MACJY,OAAQ,EACRC,YAAa,kBACbF,aAAc,QAGlBnC,MAEGjC,GAAY,CAEf6E,SAAU,EACVC,QAAS,IAAMxC,GAAW,OAExBJ,EAASxC,SAEZiD"}
@@ -1,2 +1,2 @@
1
- "use strict";exports.flowStepConnector={styleOverrides:{line:({theme:e})=>({border:"none","&.MuiStepConnector-lineVertical":{borderLeft:`2px solid ${e.palette.onSurface.os300}`},"&.MuiStepConnector-lineHorizontal\t":{borderTop:`2px solid ${e.palette.onSurface.os300}`}})}};
1
+ "use strict";exports.flowStepConnector={styleOverrides:{line:({theme:e})=>({border:"none",variants:[{props:{orientation:"vertical"},style:{borderLeft:`2px solid ${e.palette.onSurface.os300}`}},{props:{orientation:"horizontal"},style:{borderTop:`2px solid ${e.palette.onSurface.os300}`}}]})}};
2
2
  //# sourceMappingURL=stepConnector.theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stepConnector.theme.js","sources":["../../../../../src/materialui/stepper/stepConnector.theme.ts"],"sourcesContent":["import { Components, Theme } from '@mui/material/styles';\n\nexport const flowStepConnector: Components<Theme>['MuiStepConnector'] = {\n styleOverrides: {\n line: ({ theme }) => ({\n border: 'none',\n '&.MuiStepConnector-lineVertical': {\n borderLeft: `2px solid ${theme.palette.onSurface.os300}`,\n },\n '&.MuiStepConnector-lineHorizontal\t': {\n borderTop: `2px solid ${theme.palette.onSurface.os300}`,\n },\n }),\n },\n};\n"],"names":["styleOverrides","line","theme","border","borderLeft","palette","onSurface","os300","borderTop"],"mappings":"uCAEwE,CACtEA,eAAgB,CACdC,KAAM,EAAGC,YAAO,CACdC,OAAQ,OACR,kCAAmC,CACjCC,WAAY,aAAaF,EAAMG,QAAQC,UAAUC,SAEnD,sCAAsC,CACpCC,UAAW,aAAaN,EAAMG,QAAQC,UAAUC"}
1
+ {"version":3,"file":"stepConnector.theme.js","sources":["../../../../../src/materialui/stepper/stepConnector.theme.ts"],"sourcesContent":["import { Components, Theme } from '@mui/material/styles';\n\nexport const flowStepConnector: Components<Theme>['MuiStepConnector'] = {\n styleOverrides: {\n line: ({ theme }) => ({\n border: 'none',\n variants: [\n { props: { orientation: 'vertical' }, style: { borderLeft: `2px solid ${theme.palette.onSurface.os300}` } },\n { props: { orientation: 'horizontal' }, style: { borderTop: `2px solid ${theme.palette.onSurface.os300}` } },\n ],\n }),\n },\n};\n"],"names":["styleOverrides","line","theme","border","variants","props","orientation","style","borderLeft","palette","onSurface","os300","borderTop"],"mappings":"uCAEwE,CACtEA,eAAgB,CACdC,KAAM,EAAGC,YAAO,CACdC,OAAQ,OACRC,SAAU,CACR,CAAEC,MAAO,CAAEC,YAAa,YAAcC,MAAO,CAAEC,WAAY,aAAaN,EAAMO,QAAQC,UAAUC,UAChG,CAAEN,MAAO,CAAEC,YAAa,cAAgBC,MAAO,CAAEK,UAAW,aAAaV,EAAMO,QAAQC,UAAUC"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("./StepLabelIcon.js");const t={defaultProps:{alternativeLabel:!0,size:"medium"},styleOverrides:{horizontal:{"& .MuiStepContent-root":{borderLeft:"none"},"&:not(.MuiStepper-alternativeLabel)":{alignItems:"flex-start","& .MuiStepConnector-root":{marginTop:"13px"}}},vertical:({theme:e,size:t})=>({"& .MuiStep-alternativeLabel":{"& .MuiStepConnector-root":{display:"none"},"& .MuiStepContent-root":{paddingLeft:"0",marginLeft:"0",border:"none"}},"& .MuiStepContent-root":{paddingLeft:"24px",marginLeft:"12px",..."small"!==t&&{borderLeft:`2px solid ${e.palette.onSurface.os300}`}},"& .MuiStepLabel-alternativeLabel":{alignItems:"flex-start",textAlign:"start"},..."small"===t&&{"& .MuiStepLabel-vertical":{padding:"0"},"& .MuiStepLabel-iconContainer.Mui-active > div":{width:"20px",height:"60px"}}}),root:({size:t,theme:i})=>({..."small"===t&&{"& .MuiStepConnector-root":{display:"none"},"& .MuiStepLabel-labelContainer":{display:"none"},"& .MuiStep-root":{lineHeight:"0",flexGrow:"0",flexBasis:"auto",flexShrink:"1",padding:"0",minWidth:"24px",transition:"flex-basis 0.3s ease","& *":{maxWidth:"100%"},"& .MuiStepButton-root":{boxSizing:"border-box",padding:i.spacing(.25),[i.breakpoints.up("xl")]:{"&.MuiStepButton-horizontal":{paddingLeft:i.spacing(.5),paddingRight:i.spacing(.5)},"&.MuiStepButton-vertical":{paddingTop:i.spacing(.5),paddingBottom:i.spacing(.5)}}},"&:first-of-type":{"& .MuiStepButton-horizontal":{paddingLeft:i.spacing(.25)},"& .MuiStepButton-vertical":{paddingTop:i.spacing(.25)}},"&:last-of-type":{"& .MuiStepButton-horizontal":{paddingRight:i.spacing(.25)},"& .MuiStepButton-vertical":{paddingBottom:i.spacing(.25)}}},"& .MuiStepLabel-iconContainer":{"&:not(.Mui-error) svg":{display:"none"},"& > div":{minWidth:"20px",width:"20px",height:"20px",minHeight:"20px",fontSize:"14px",transition:"width 0.3s ease, height 0.3s ease"},"&.Mui-active > div":{width:"200px"}},[`&&& .${e.flowStepIconClasses.root}.${e.flowStepIconClasses.active}::before`]:{inset:"0",borderWidth:"0",animation:"none"}}}),nonLinear:({theme:t,size:i})=>({[`& .${e.flowStepIconClasses.root}.${e.flowStepIconClasses.disabled}`]:{..."small"!==i&&{[`&:not(.${e.flowStepIconClasses.completed})::after`]:{content:'"!"',lineHeight:"24px",fontSize:"inherit",fontWeight:"800",color:t.palette.background.primary}},[`&:not(.${e.flowStepIconClasses.active})`]:{borderColor:t.palette.disabled.secondary,backgroundColor:t.palette.disabled.secondary},[`&:.${e.flowStepIconClasses.active}`]:{borderColor:t.palette.disabled.secondary,"&::before":{backgroundColor:t.palette.disabled.secondary}}}})}};exports.flowStepper=t;
1
+ "use strict";var e=require("./StepLabelIcon.js");const t={defaultProps:{alternativeLabel:!0,size:"medium"},styleOverrides:{horizontal:{"& .MuiStepContent-root":{borderLeft:"none"},"& .MuiStepConnector-root":{top:"13px"},"&:not(.MuiStepper-alternativeLabel)":{alignItems:"flex-start","& .MuiStepConnector-root":{marginTop:"13px"}}},vertical:({theme:e,size:t})=>({"& .MuiStep-alternativeLabel":{"& .MuiStepConnector-root":{display:"none"},"& .MuiStepContent-root":{paddingLeft:"0",marginLeft:"0",border:"none"}},"& .MuiStepConnector-root":{marginLeft:"13px"},"& .MuiStepContent-root":{paddingLeft:"24px",marginLeft:"13px",..."small"!==t&&{borderLeft:`2px solid ${e.palette.onSurface.os300}`}},"& .MuiStepLabel-alternativeLabel":{alignItems:"flex-start",textAlign:"start"},..."small"===t&&{"& .MuiStepLabel-vertical":{padding:"0"},"& .MuiStepLabel-iconContainer.Mui-active > div":{width:"20px",height:"60px"}}}),root:({size:t,theme:o})=>({..."small"===t&&{"& .MuiStepConnector-root":{display:"none"},"& .MuiStepLabel-labelContainer":{display:"none"},"& .MuiStep-root":{lineHeight:"0",flexGrow:"0",flexBasis:"auto",flexShrink:"1",padding:"0",minWidth:"24px",transition:"flex-basis 0.3s ease","& *":{maxWidth:"100%"},"& .MuiStepButton-root":{boxSizing:"border-box",padding:o.spacing(.25),[o.breakpoints.up("xl")]:{"&.MuiStepButton-horizontal":{paddingLeft:o.spacing(.5),paddingRight:o.spacing(.5)},"&.MuiStepButton-vertical":{paddingTop:o.spacing(.5),paddingBottom:o.spacing(.5)}}},"&:first-of-type":{"& .MuiStepButton-horizontal":{paddingLeft:o.spacing(.25)},"& .MuiStepButton-vertical":{paddingTop:o.spacing(.25)}},"&:last-of-type":{"& .MuiStepButton-horizontal":{paddingRight:o.spacing(.25)},"& .MuiStepButton-vertical":{paddingBottom:o.spacing(.25)}}},"& .MuiStepLabel-iconContainer":{"&:not(.Mui-error) svg":{display:"none"},"& > div":{minWidth:"20px",width:"20px",height:"20px",minHeight:"20px",fontSize:"14px",transition:"width 0.3s ease, height 0.3s ease"},"&.Mui-active > div":{width:"200px"}},[`&&& .${e.flowStepIconClasses.root}.${e.flowStepIconClasses.active}::before`]:{inset:"0",borderWidth:"0",animation:"none"}}}),nonLinear:({theme:t,size:o})=>({[`& .${e.flowStepIconClasses.root}.${e.flowStepIconClasses.disabled}`]:{..."small"!==o&&{[`&:not(.${e.flowStepIconClasses.completed})::after`]:{content:'"!"',lineHeight:"24px",fontSize:"inherit",fontWeight:"800",color:t.palette.background.primary}},[`&:not(.${e.flowStepIconClasses.active})`]:{borderColor:t.palette.disabled.secondary,backgroundColor:t.palette.disabled.secondary},[`&:.${e.flowStepIconClasses.active}`]:{borderColor:t.palette.disabled.secondary,"&::before":{backgroundColor:t.palette.disabled.secondary}}}})}};exports.flowStepper=t;
2
2
  //# sourceMappingURL=stepper.theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"stepper.theme.js","sources":["../../../../../src/materialui/stepper/stepper.theme.ts"],"sourcesContent":["import { Components, Theme } from '@mui/material/styles';\nimport { flowStepIconClasses } from './StepLabelIcon';\n\nexport const flowStepper: Components<Theme>['MuiStepper'] = {\n defaultProps: {\n alternativeLabel: true,\n size: 'medium',\n },\n styleOverrides: {\n horizontal: {\n '& .MuiStepContent-root': {\n borderLeft: 'none',\n },\n '&:not(.MuiStepper-alternativeLabel)': {\n alignItems: 'flex-start',\n '& .MuiStepConnector-root': {\n marginTop: '13px',\n },\n },\n },\n vertical: ({ theme, size }) => ({\n '& .MuiStep-alternativeLabel': {\n // when vertical and alternativeLabel don't display connector\n '& .MuiStepConnector-root': {\n display: 'none',\n },\n // when vertical and alternativeLabel the content should be right on side\n '& .MuiStepContent-root': {\n paddingLeft: '0',\n marginLeft: '0',\n border: 'none',\n },\n },\n '& .MuiStepContent-root': {\n paddingLeft: '24px',\n marginLeft: '12px',\n // when the size is not small apply border\n ...(size !== 'small' && { borderLeft: `2px solid ${theme.palette.onSurface.os300}` }),\n },\n '& .MuiStepLabel-alternativeLabel': {\n alignItems: 'flex-start',\n textAlign: 'start',\n },\n ...(size === 'small' && {\n '& .MuiStepLabel-vertical': {\n padding: '0',\n },\n '& .MuiStepLabel-iconContainer.Mui-active > div': {\n width: '20px',\n height: '60px',\n },\n }),\n }),\n root: ({ size, theme }) => ({\n ...(size === 'small' && {\n // hide dividers\n '& .MuiStepConnector-root': {\n display: 'none',\n },\n // hide labels\n '& .MuiStepLabel-labelContainer': {\n display: 'none',\n },\n '& .MuiStep-root': {\n lineHeight: '0',\n flexGrow: '0',\n flexBasis: 'auto',\n flexShrink: '1',\n padding: '0',\n minWidth: '24px',\n transition: 'flex-basis 0.3s ease',\n '& *': {\n maxWidth: '100%',\n },\n '& .MuiStepButton-root': {\n boxSizing: 'border-box',\n // use of padding instead of gap to increase clickable area\n padding: theme.spacing(0.25),\n [theme.breakpoints.up('xl')]: {\n '&.MuiStepButton-horizontal': {\n paddingLeft: theme.spacing(0.5),\n paddingRight: theme.spacing(0.5),\n },\n '&.MuiStepButton-vertical': {\n paddingTop: theme.spacing(0.5),\n paddingBottom: theme.spacing(0.5),\n },\n },\n },\n '&:first-of-type': {\n '& .MuiStepButton-horizontal': {\n paddingLeft: theme.spacing(0.25),\n },\n '& .MuiStepButton-vertical': {\n paddingTop: theme.spacing(0.25),\n },\n },\n '&:last-of-type': {\n '& .MuiStepButton-horizontal': {\n paddingRight: theme.spacing(0.25),\n },\n '& .MuiStepButton-vertical': {\n paddingBottom: theme.spacing(0.25),\n },\n },\n },\n '& .MuiStepLabel-iconContainer': {\n // in compact mode show icon only for error\n '&:not(.Mui-error) svg': {\n display: 'none',\n },\n '& > div': {\n minWidth: '20px',\n width: '20px',\n height: '20px',\n minHeight: '20px',\n fontSize: '14px',\n transition: 'width 0.3s ease, height 0.3s ease',\n },\n '&.Mui-active > div': {\n width: '200px',\n },\n },\n // when the stepper is in small variant, the inset of the icon should be 0\n [`&&& .${flowStepIconClasses.root}.${flowStepIconClasses.active}::before`]: {\n inset: '0',\n borderWidth: '0',\n animation: 'none',\n },\n }),\n }),\n nonLinear: ({ theme, size }) => ({\n // only non-linear variant show disabled style\n [`& .${flowStepIconClasses.root}.${flowStepIconClasses.disabled}`]: {\n // exclamation mark\n ...(size !== 'small' && {\n [`&:not(.${flowStepIconClasses.completed})::after`]: {\n content: '\"!\"',\n lineHeight: '24px',\n fontSize: 'inherit',\n fontWeight: '800',\n color: theme.palette.background.primary,\n },\n }),\n // default\n [`&:not(.${flowStepIconClasses.active})`]: {\n borderColor: theme.palette.disabled.secondary,\n backgroundColor: theme.palette.disabled.secondary,\n },\n // active\n [`&:.${flowStepIconClasses.active}`]: {\n borderColor: theme.palette.disabled.secondary,\n '&::before': {\n backgroundColor: theme.palette.disabled.secondary,\n },\n },\n },\n }),\n },\n};\n"],"names":["flowStepper","defaultProps","alternativeLabel","size","styleOverrides","horizontal","borderLeft","alignItems","marginTop","vertical","theme","display","paddingLeft","marginLeft","border","palette","onSurface","os300","textAlign","padding","width","height","root","lineHeight","flexGrow","flexBasis","flexShrink","minWidth","transition","maxWidth","boxSizing","spacing","breakpoints","up","paddingRight","paddingTop","paddingBottom","minHeight","fontSize","flowStepIconClasses","active","inset","borderWidth","animation","nonLinear","disabled","completed","content","fontWeight","color","background","primary","borderColor","secondary","backgroundColor"],"mappings":"iDAGO,MAAMA,EAA+C,CAC1DC,aAAc,CACZC,kBAAkB,EAClBC,KAAM,UAERC,eAAgB,CACdC,WAAY,CACV,yB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OACVP,MAAO,OACPC,OAAQ,OACRgB,UAAW,OACXC,SAAU,OACVV,WAAY,qCAEd,qBAAsB,CACpBR,MAAO,UAIX,CAAC,QAAQmB,EAAAA,oBAAoBjB,QAAQiB,sBAAoBC,kBAAmB,CAC1EC,MAAO,IACPC,YAAa,IACbC,UAAW,WAIjBC,UAAW,EAAGlC,QAAOP,WAAM,CAEzB,CAAC,MAAMoC,sBAAoBjB,QAAQiB,EAAAA,oBAAoBM,YAAa,IAErD,UAAT1C,GAAoB,CACtB,CAAC,UAAUoC,EAAAA,oBAAoBO,qBAAsB,CACnDC,QAAS,MACTxB,WAAY,OACZe,SAAU,UACVU,WAAY,MACZC,MAAOvC,EAAMK,QAAQmC,WAAWC,UAIpC,CAAC,UAAUZ,EAAAA,oBAAoBC,WAAY,CACzCY,YAAa1C,EAAMK,QAAQ8B,SAASQ,UACpCC,gBAAiB5C,EAAMK,QAAQ8B,SAASQ,WAG1C,CAAC,MAAMd,sBAAoBC,UAAW,CACpCY,YAAa1C,EAAMK,QAAQ8B,SAASQ,UACpC,YAAa,CACXC,gBAAiB5C,EAAMK,QAAQ8B,SAASQ"}
1
+ {"version":3,"file":"stepper.theme.js","sources":["../../../../../src/materialui/stepper/stepper.theme.ts"],"sourcesContent":["import { Components, Theme } from '@mui/material/styles';\nimport { flowStepIconClasses } from './StepLabelIcon';\n\nexport const flowStepper: Components<Theme>['MuiStepper'] = {\n defaultProps: {\n alternativeLabel: true,\n size: 'medium',\n },\n styleOverrides: {\n horizontal: {\n '& .MuiStepContent-root': {\n borderLeft: 'none',\n },\n '& .MuiStepConnector-root': {\n top: '13px',\n },\n '&:not(.MuiStepper-alternativeLabel)': {\n alignItems: 'flex-start',\n '& .MuiStepConnector-root': {\n marginTop: '13px',\n },\n },\n },\n vertical: ({ theme, size }) => ({\n '& .MuiStep-alternativeLabel': {\n // when vertical and alternativeLabel don't display connector\n '& .MuiStepConnector-root': {\n display: 'none',\n },\n // when vertical and alternativeLabel the content should be right on side\n '& .MuiStepContent-root': {\n paddingLeft: '0',\n marginLeft: '0',\n border: 'none',\n },\n },\n '& .MuiStepConnector-root': {\n marginLeft: '13px',\n },\n '& .MuiStepContent-root': {\n paddingLeft: '24px',\n marginLeft: '13px',\n // when the size is not small apply border\n ...(size !== 'small' && { borderLeft: `2px solid ${theme.palette.onSurface.os300}` }),\n },\n '& .MuiStepLabel-alternativeLabel': {\n alignItems: 'flex-start',\n textAlign: 'start',\n },\n ...(size === 'small' && {\n '& .MuiStepLabel-vertical': {\n padding: '0',\n },\n '& .MuiStepLabel-iconContainer.Mui-active > div': {\n width: '20px',\n height: '60px',\n },\n }),\n }),\n root: ({ size, theme }) => ({\n ...(size === 'small' && {\n // hide dividers\n '& .MuiStepConnector-root': {\n display: 'none',\n },\n // hide labels\n '& .MuiStepLabel-labelContainer': {\n display: 'none',\n },\n '& .MuiStep-root': {\n lineHeight: '0',\n flexGrow: '0',\n flexBasis: 'auto',\n flexShrink: '1',\n padding: '0',\n minWidth: '24px',\n transition: 'flex-basis 0.3s ease',\n '& *': {\n maxWidth: '100%',\n },\n '& .MuiStepButton-root': {\n boxSizing: 'border-box',\n // use of padding instead of gap to increase clickable area\n padding: theme.spacing(0.25),\n [theme.breakpoints.up('xl')]: {\n '&.MuiStepButton-horizontal': {\n paddingLeft: theme.spacing(0.5),\n paddingRight: theme.spacing(0.5),\n },\n '&.MuiStepButton-vertical': {\n paddingTop: theme.spacing(0.5),\n paddingBottom: theme.spacing(0.5),\n },\n },\n },\n '&:first-of-type': {\n '& .MuiStepButton-horizontal': {\n paddingLeft: theme.spacing(0.25),\n },\n '& .MuiStepButton-vertical': {\n paddingTop: theme.spacing(0.25),\n },\n },\n '&:last-of-type': {\n '& .MuiStepButton-horizontal': {\n paddingRight: theme.spacing(0.25),\n },\n '& .MuiStepButton-vertical': {\n paddingBottom: theme.spacing(0.25),\n },\n },\n },\n '& .MuiStepLabel-iconContainer': {\n // in compact mode show icon only for error\n '&:not(.Mui-error) svg': {\n display: 'none',\n },\n '& > div': {\n minWidth: '20px',\n width: '20px',\n height: '20px',\n minHeight: '20px',\n fontSize: '14px',\n transition: 'width 0.3s ease, height 0.3s ease',\n },\n '&.Mui-active > div': {\n width: '200px',\n },\n },\n // when the stepper is in small variant, the inset of the icon should be 0\n [`&&& .${flowStepIconClasses.root}.${flowStepIconClasses.active}::before`]: {\n inset: '0',\n borderWidth: '0',\n animation: 'none',\n },\n }),\n }),\n nonLinear: ({ theme, size }) => ({\n // only non-linear variant show disabled style\n [`& .${flowStepIconClasses.root}.${flowStepIconClasses.disabled}`]: {\n // exclamation mark\n ...(size !== 'small' && {\n [`&:not(.${flowStepIconClasses.completed})::after`]: {\n content: '\"!\"',\n lineHeight: '24px',\n fontSize: 'inherit',\n fontWeight: '800',\n color: theme.palette.background.primary,\n },\n }),\n // default\n [`&:not(.${flowStepIconClasses.active})`]: {\n borderColor: theme.palette.disabled.secondary,\n backgroundColor: theme.palette.disabled.secondary,\n },\n // active\n [`&:.${flowStepIconClasses.active}`]: {\n borderColor: theme.palette.disabled.secondary,\n '&::before': {\n backgroundColor: theme.palette.disabled.secondary,\n },\n },\n },\n }),\n },\n};\n"],"names":["flowStepper","defaultProps","alternativeLabel","size","styleOverrides","horizontal","borderLeft","top","alignItems","marginTop","vertical","theme","display","paddingLeft","marginLeft","border","palette","onSurface","os300","textAlign","padding","width","height","root","lineHeight","flexGrow","flexBasis","flexShrink","minWidth","transition","maxWidth","boxSizing","spacing","breakpoints","up","paddingRight","paddingTop","paddingBottom","minHeight","fontSize","flowStepIconClasses","active","inset","borderWidth","animation","nonLinear","disabled","completed","content","fontWeight","color","background","primary","borderColor","secondary","backgroundColor"],"mappings":"iDAGO,MAAMA,EAA+C,CAC1DC,aAAc,CACZC,kBAAkB,EAClBC,KAAM,UAERC,eAAgB,CACdC,WAAY,CACV,yBAA0B,CACxBC,WAAY,QAEd,2BAA4B,CAC1BC,IAAK,QAEP,sCAAuC,CACrCC,WAAY,aACZ,2BAA4B,CAC1B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OACXC,SAAU,OACVV,WAAY,qCAEd,qBAAsB,CACpBR,MAAO,UAIX,CAAC,QAAQmB,EAAAA,oBAAoBjB,QAAQiB,sBAAoBC,kBAAmB,CAC1EC,MAAO,IACPC,YAAa,IACbC,UAAW,WAIjBC,UAAW,EAAGlC,QAAOR,WAAM,CAEzB,CAAC,MAAMqC,sBAAoBjB,QAAQiB,EAAAA,oBAAoBM,YAAa,IAErD,UAAT3C,GAAoB,CACtB,CAAC,UAAUqC,EAAAA,oBAAoBO,qBAAsB,CACnDC,QAAS,MACTxB,WAAY,OACZe,SAAU,UACVU,WAAY,MACZC,MAAOvC,EAAMK,QAAQmC,WAAWC,UAIpC,CAAC,UAAUZ,EAAAA,oBAAoBC,WAAY,CACzCY,YAAa1C,EAAMK,QAAQ8B,SAASQ,UACpCC,gBAAiB5C,EAAMK,QAAQ8B,SAASQ,WAG1C,CAAC,MAAMd,sBAAoBC,UAAW,CACpCY,YAAa1C,EAAMK,QAAQ8B,SAASQ,UACpC,YAAa,CACXC,gBAAiB5C,EAAMK,QAAQ8B,SAASQ"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("./TabsScrollButton.js"),t=require("../../components/focusring/focusring.js"),r=require("../button/interactive.js");const o={defaultProps:{template:"underlined",scrollButtons:"auto",allowScrollButtonsMobile:!0,visibleScrollbar:!1,variant:"scrollable",slots:{scrollButtons:e.TabsScrollButton}},styleOverrides:{root:({ownerState:e})=>({minHeight:"0",alignItems:"center",gap:"0",...e.fullWidth||"fullWidth"===e.variant?{"& .MuiTab-root":{flexGrow:"1"}}:{},...e.centered?{justifyContent:"center"}:{},'&:not(:has(.MuiTab-root[aria-selected="true"]))':{"& .MuiTabs-indicator":{opacity:"0"}}}),flexContainer:({theme:e})=>({gap:"16px",[e.breakpoints.up("md")]:{gap:"28px"}}),indicator:({theme:e,ownerState:t})=>({maxWidth:"none",background:"transparent",display:"block",height:"3px",color:"dark"===e.palette.mode?e.palette.brand.secondary:e.palette.brand.primary,..."secondary"===t.indicatorColor&&{color:e.palette.text.primary},"&:before":{display:"block",content:'""',position:"absolute",left:"8px",right:"8px",top:"0",bottom:"0",backgroundColor:"currentColor"}}),scroller:({ownerState:e})=>({flexGrow:e.fullWidth||"fullWidth"===e.variant?"1":"0","&::-webkit-scrollbar:horizontal":{height:"24px"},"&::-webkit-scrollbar-thumb:horizontal, &::-webkit-scrollbar-track:horizontal":{borderWidth:"10px"}}),scrollButtons:({theme:e})=>({color:e.palette.text.primary,"&.Mui-disabled":{opacity:"1",color:e.palette.disabled.primary}})},variants:[{props:{template:"underlined"},style:({theme:e})=>({marginLeft:"-6px",marginRight:"-6px",maxWidth:"none","& .MuiTabs-scroller":{"&::-webkit-scrollbar:horizontal":{height:"16px"},"&::-webkit-scrollbar-thumb:horizontal, &::-webkit-scrollbar-track:horizontal":{borderWidth:"6px"}},"& .MuiTabs-flexContainer":{padding:"6px",gap:"0"},"& .MuiTabs-indicator":{bottom:"6px","&:before":{inset:"0"}},"& .MuiTab-root":{margin:"0",padding:"12px 24px",[e.breakpoints.down("md")]:{paddingTop:"10px",paddingBottom:"10px"},borderRadius:"0",color:"dark"===e.palette.mode?e.palette.onSurface.os300:e.palette.onSurface.os700,...e.typography.subheadline,[e.breakpoints.up("xs")]:{fontWeight:"300"},"&:after":{content:'""',position:"absolute",left:"0",right:"0",bottom:"0",height:"1px",backgroundColor:e.palette.onSurface.os500},"&:hover, &.Mui-focusVisible":{"&:after":{height:"2px"}},"&.Mui-selected":{color:"dark"===e.palette.mode?e.palette.brand.secondary:e.palette.brand.primary,backgroundColor:"dark"===e.palette.mode?e.palette.surface.primary:e.palette.transparent.primary},"&.Mui-disabled":{color:e.palette.disabled.tertiary},"&.Mui-focusVisible":{zIndex:"10",boxShadow:`0 0 0 2px ${e.palette.background.primary}`,"&:before":{inset:"-2px",borderRadius:"4px"}}}})},{props:{template:"buttons"},style:({theme:e})=>({"& .MuiTabs-flexContainer":{gap:"8px"},"& .MuiTabs-indicator":{display:"none"},"& .MuiTab-root":{border:"1px solid transparent",padding:"6px 16px",borderRadius:"1000px",transition:"all 0.3s ease-out",fontSize:"14px",fontWeight:"700",marginBottom:"2px",...t.updateFocusRingStyle("0px",!1),...r.getInteractiveStyle({backgroundColor:"transparent",color:e.palette.onSurface.os500},{backgroundColor:e.palette.surface.primary,color:e.palette.text.primary}),"&.Mui-selected":{...r.getInteractiveStyle({backgroundColor:e.palette.brand.quarternary,color:e.palette.text.primary,borderColor:e.palette.brand.primary},{backgroundColor:e.palette.brand.quarternary,color:e.palette.brand.primary,borderColor:e.palette.brand.primary})},[e.breakpoints.down("md")]:{"&, &.Mui-selected, & .FlowTab-selectedLabel":{fontWeight:"400"}}}})},{props:{template:"navigation"},style:({theme:e})=>({"& .MuiTabs-flexContainer":{gap:"4px"},paddingTop:"11px",[e.breakpoints.down("xl")]:{paddingTop:"13px"},[e.breakpoints.down("lg")]:{paddingTop:"8px"},"& .MuiTab-root":{marginBottom:"11px",[e.breakpoints.down("xl")]:{marginBottom:"13px"},[e.breakpoints.down("lg")]:{marginBottom:"8px"},...e.typography.list}})},{props:{template:"segmented"},style:({theme:e})=>({color:"dark"===e.palette.mode?e.palette.surface.primary:e.palette.transparent.secondary,"& .MuiTabs-scroller":{backgroundColor:"currentColor",borderRadius:"1000px"},"& .MuiTabs-flexContainer":{gap:"8px"},"& .MuiTabs-indicator":{color:"dark"===e.palette.mode?e.palette.surface.secondary:e.palette.common.white,height:"100%",zIndex:"10",borderRadius:"1000px",overflow:"hidden","&:before":{inset:"0",borderRadius:"inherit",border:`2px solid ${"dark"===e.palette.mode?e.palette.brand.secondary:e.palette.text.primary}`}},"& .MuiTab-root":{margin:"0",padding:"6px 16px",[e.breakpoints.up("md")]:{padding:"8px 16px"},borderRadius:"1000px",transition:"all 0.3s ease-out",gap:"10px",zIndex:"20","& .MuiSvgIcon-root":{fontSize:"20px",marginTop:"4px",marginBottom:"4px"},...e.typography.subheadline,color:e.palette.text.primary,[e.breakpoints.up("xs")]:{"&, &.Mui-selected, & .FlowTab-selectedLabel":{fontWeight:"400"}},"&:hover, &.Mui-focusVisible":{backgroundColor:e.palette.surface.primary},"&.Mui-selected":{color:"dark"===e.palette.mode?e.palette.brand.secondary:e.palette.text.primary,"&:hover, &.Mui-focusVisible":{backgroundColor:"transparent"}},"&.Mui-disabled":{color:e.palette.disabled.tertiary}}})}]};exports.flowTabs=o;
1
+ "use strict";var e=require("./TabsScrollButton.js"),t=require("../../components/focusring/focusring.js"),r=require("../button/interactive.js"),o=require("../typography/typography.theme.js");const a={defaultProps:{template:"underlined",scrollButtons:"auto",allowScrollButtonsMobile:!0,visibleScrollbar:!1,variant:"scrollable",slots:{scrollButtons:e.TabsScrollButton}},styleOverrides:{root:({theme:e,ownerState:t})=>({minHeight:"0",alignItems:"center",gap:"0",...t.fullWidth||"fullWidth"===t.variant?{"& .MuiTab-root":{flexGrow:"1"}}:{},...t.centered?{justifyContent:"center"}:{},'&:not(:has(.MuiTab-root[aria-selected="true"]))':{"& .MuiTabs-indicator":{opacity:"0"}},"& .MuiTabs-list, & .MuiTabs-flexContainer":{gap:"16px",[e.breakpoints.up("md")]:{gap:"28px"}}}),indicator:({theme:e,ownerState:t})=>({maxWidth:"none",background:"transparent",display:"block",height:"3px",color:"dark"===e.palette.mode?e.palette.brand.secondary:e.palette.brand.primary,..."secondary"===t.indicatorColor&&{color:e.palette.text.primary},"&:before":{display:"block",content:'""',position:"absolute",left:"8px",right:"8px",top:"0",bottom:"0",backgroundColor:"currentColor"}}),scroller:({ownerState:e})=>({flexGrow:e.fullWidth||"fullWidth"===e.variant?"1":"0","&::-webkit-scrollbar:horizontal":{height:"24px"},"&::-webkit-scrollbar-thumb:horizontal, &::-webkit-scrollbar-track:horizontal":{borderWidth:"10px"}}),scrollButtons:({theme:e})=>({color:e.palette.text.primary,"&.Mui-disabled":{opacity:"1",color:e.palette.disabled.primary}})},variants:[{props:{template:"underlined"},style:({theme:e})=>({marginLeft:"-6px",marginRight:"-6px",maxWidth:"none","& .MuiTabs-scroller":{"&::-webkit-scrollbar:horizontal":{height:"16px"},"&::-webkit-scrollbar-thumb:horizontal, &::-webkit-scrollbar-track:horizontal":{borderWidth:"6px"}},"& .MuiTabs-list, & .MuiTabs-flexContainer":{padding:"6px",gap:"0"},"& .MuiTabs-indicator":{bottom:"6px","&:before":{inset:"0"}},"& .MuiTab-root":{margin:"0",padding:"12px 24px",[e.breakpoints.down("md")]:{paddingTop:"10px",paddingBottom:"10px"},borderRadius:"0",color:"dark"===e.palette.mode?e.palette.onSurface.os300:e.palette.onSurface.os700,...e.typography.subheadline,[e.breakpoints.up("xs")]:{fontWeight:"300"},"&:after":{content:'""',position:"absolute",left:"0",right:"0",bottom:"0",height:"1px",backgroundColor:e.palette.onSurface.os500},"&:hover, &.Mui-focusVisible":{"&:after":{height:"2px"}},"&.Mui-selected":{color:"dark"===e.palette.mode?e.palette.brand.secondary:e.palette.brand.primary,backgroundColor:"dark"===e.palette.mode?e.palette.surface.primary:e.palette.transparent.primary},"&.Mui-disabled":{color:e.palette.disabled.tertiary},"&.Mui-focusVisible":{zIndex:"10",boxShadow:`0 0 0 2px ${e.palette.background.primary}`,"&:before":{inset:"-2px",borderRadius:"4px"}}}})},{props:{template:"buttons"},style:({theme:e})=>({"& .MuiTabs-list, & .MuiTabs-flexContainer":{gap:"8px"},"& .MuiTabs-indicator":{display:"none"},"& .MuiTab-root":{border:"1px solid transparent",padding:"6px 16px",borderRadius:"1000px",transition:"all 0.3s ease-out",fontSize:"14px",fontWeight:"700",marginBottom:"2px",...t.updateFocusRingStyle("0px",!1),...r.getInteractiveStyle({backgroundColor:"transparent",color:e.palette.onSurface.os500},{backgroundColor:e.palette.surface.primary,color:e.palette.text.primary}),"&.Mui-selected":{...r.getInteractiveStyle({backgroundColor:e.palette.brand.quarternary,color:e.palette.text.primary,borderColor:e.palette.brand.primary},{backgroundColor:e.palette.brand.quarternary,color:e.palette.brand.primary,borderColor:e.palette.brand.primary})},[e.breakpoints.down("md")]:{"&, &.Mui-selected, & .FlowTab-selectedLabel":{fontWeight:"400"}}}})},{props:{template:"navigation"},style:({theme:e})=>({"& .MuiTabs-list, & .MuiTabs-flexContainer":{gap:"4px"},paddingTop:"11px",[e.breakpoints.down("xl")]:{paddingTop:"13px"},[e.breakpoints.down("lg")]:{paddingTop:"8px"},"& .MuiTab-root":{marginBottom:"11px",[e.breakpoints.down("xl")]:{marginBottom:"13px"},[e.breakpoints.down("lg")]:{marginBottom:"8px"},...e.typography.list}})},{props:{template:"segmented"},style:({theme:e})=>({color:"dark"===e.palette.mode?e.palette.surface.primary:e.palette.transparent.secondary,"& .MuiTabs-scroller":{backgroundColor:"currentColor",borderRadius:"1000px"},"& .MuiTabs-list, & .MuiTabs-flexContainer":{gap:"8px"},"& .MuiTabs-indicator":{color:"dark"===e.palette.mode?e.palette.surface.secondary:e.palette.common.white,height:"100%",zIndex:"10",borderRadius:"1000px",overflow:"hidden","&:before":{inset:"0",borderRadius:"inherit",border:`2px solid ${"dark"===e.palette.mode?e.palette.brand.secondary:e.palette.text.primary}`}},"& .MuiTab-root":{margin:"0",borderRadius:"1000px",transition:"all 0.3s ease-out",padding:"6px 16px",gap:"10px",zIndex:"20","& .MuiSvgIcon-root":{fontSize:"20px",marginTop:"4px",marginBottom:"4px"},color:e.palette.text.primary,...o.getTypography("subheadline","rtl"===e.direction,"small"),[e.breakpoints.up("md")]:{...o.getTypography("subheadline","rtl"===e.direction,"large"),padding:"8px 16px"},[e.breakpoints.up("xs")]:{"&, &.Mui-selected, & .FlowTab-selectedLabel":{fontWeight:"400"}},"&:hover, &.Mui-focusVisible":{backgroundColor:e.palette.surface.primary},"&.Mui-selected":{color:"dark"===e.palette.mode?e.palette.brand.secondary:e.palette.text.primary,"&:hover, &.Mui-focusVisible":{backgroundColor:"transparent"}},"&.Mui-disabled":{color:e.palette.disabled.tertiary}}})}]};exports.flowTabs=a;
2
2
  //# sourceMappingURL=tabs.theme.js.map