@bayonai/mui-design 1.8.0 → 1.10.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 (296) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +26 -0
  3. package/package.json +1 -1
  4. package/dist/cjs/actions/ActionMenu.d.ts +0 -24
  5. package/dist/cjs/actions/ActionMenu.js +0 -36
  6. package/dist/cjs/actions/DialogActionButtons.d.ts +0 -23
  7. package/dist/cjs/actions/DialogActionButtons.js +0 -33
  8. package/dist/cjs/actions/LoadingIconButton.d.ts +0 -11
  9. package/dist/cjs/actions/LoadingIconButton.js +0 -10
  10. package/dist/cjs/actions/StickyActionFooter.d.ts +0 -14
  11. package/dist/cjs/actions/StickyActionFooter.js +0 -27
  12. package/dist/cjs/actions/StickySubmitButton.d.ts +0 -10
  13. package/dist/cjs/actions/StickySubmitButton.js +0 -10
  14. package/dist/cjs/actions/index.d.ts +0 -5
  15. package/dist/cjs/actions/index.js +0 -18
  16. package/dist/cjs/client.d.ts +0 -4
  17. package/dist/cjs/client.js +0 -21
  18. package/dist/cjs/components/BayonFlowVisual.d.ts +0 -12
  19. package/dist/cjs/components/BayonFlowVisual.js +0 -87
  20. package/dist/cjs/components/BayonThemeModeToggle.d.ts +0 -6
  21. package/dist/cjs/components/BayonThemeModeToggle.js +0 -34
  22. package/dist/cjs/components/IconTooltipButton.d.ts +0 -10
  23. package/dist/cjs/components/IconTooltipButton.js +0 -50
  24. package/dist/cjs/components/panels.d.ts +0 -37
  25. package/dist/cjs/components/panels.js +0 -92
  26. package/dist/cjs/drawers/BottomDrawer.d.ts +0 -16
  27. package/dist/cjs/drawers/BottomDrawer.js +0 -43
  28. package/dist/cjs/drawers/MobileBottomDrawer.d.ts +0 -20
  29. package/dist/cjs/drawers/MobileBottomDrawer.js +0 -102
  30. package/dist/cjs/drawers/MobileBottomDrawerHeader.d.ts +0 -11
  31. package/dist/cjs/drawers/MobileBottomDrawerHeader.js +0 -36
  32. package/dist/cjs/drawers/ResponsiveDrawer.d.ts +0 -25
  33. package/dist/cjs/drawers/ResponsiveDrawer.js +0 -22
  34. package/dist/cjs/drawers/WorkspaceSidePane.d.ts +0 -25
  35. package/dist/cjs/drawers/WorkspaceSidePane.js +0 -206
  36. package/dist/cjs/drawers/WorkspaceSidePaneRoot.d.ts +0 -1
  37. package/dist/cjs/drawers/WorkspaceSidePaneRoot.js +0 -93
  38. package/dist/cjs/drawers/drawerAppearance.d.ts +0 -8
  39. package/dist/cjs/drawers/drawerAppearance.js +0 -10
  40. package/dist/cjs/drawers/index.d.ts +0 -7
  41. package/dist/cjs/drawers/index.js +0 -19
  42. package/dist/cjs/drawers/useVisualViewportBottomInset.d.ts +0 -6
  43. package/dist/cjs/drawers/useVisualViewportBottomInset.js +0 -33
  44. package/dist/cjs/drawers/workspaceSidePaneGeometry.d.ts +0 -11
  45. package/dist/cjs/drawers/workspaceSidePaneGeometry.js +0 -15
  46. package/dist/cjs/feedback/StatusNotice.d.ts +0 -13
  47. package/dist/cjs/feedback/StatusNotice.js +0 -62
  48. package/dist/cjs/feedback/index.d.ts +0 -1
  49. package/dist/cjs/feedback/index.js +0 -7
  50. package/dist/cjs/index.d.ts +0 -9
  51. package/dist/cjs/index.js +0 -25
  52. package/dist/cjs/internal/DialogChoiceTile.d.ts +0 -20
  53. package/dist/cjs/internal/DialogChoiceTile.js +0 -60
  54. package/dist/cjs/links/LinkAddressPreview.d.ts +0 -19
  55. package/dist/cjs/links/LinkAddressPreview.js +0 -80
  56. package/dist/cjs/links/index.d.ts +0 -3
  57. package/dist/cjs/links/index.js +0 -9
  58. package/dist/cjs/links/useLinkAddressPreview.d.ts +0 -26
  59. package/dist/cjs/links/useLinkAddressPreview.js +0 -162
  60. package/dist/cjs/location/GeographicLocationField.d.ts +0 -26
  61. package/dist/cjs/location/GeographicLocationField.js +0 -49
  62. package/dist/cjs/location/GoogleMapsAttribution.d.ts +0 -1
  63. package/dist/cjs/location/GoogleMapsAttribution.js +0 -12
  64. package/dist/cjs/location/MetadataFieldGroup.d.ts +0 -5
  65. package/dist/cjs/location/MetadataFieldGroup.js +0 -13
  66. package/dist/cjs/location/MetadataValueField.d.ts +0 -23
  67. package/dist/cjs/location/MetadataValueField.js +0 -27
  68. package/dist/cjs/location/SearchInputAction.d.ts +0 -9
  69. package/dist/cjs/location/SearchInputAction.js +0 -14
  70. package/dist/cjs/location/TemplateBadge.d.ts +0 -5
  71. package/dist/cjs/location/TemplateBadge.js +0 -9
  72. package/dist/cjs/location/VenueSearchDialog.d.ts +0 -33
  73. package/dist/cjs/location/VenueSearchDialog.js +0 -112
  74. package/dist/cjs/location/index.d.ts +0 -6
  75. package/dist/cjs/location/index.js +0 -20
  76. package/dist/cjs/package.json +0 -3
  77. package/dist/cjs/pending/PendingChangesDialogShell.d.ts +0 -2
  78. package/dist/cjs/pending/PendingChangesDialogShell.js +0 -16
  79. package/dist/cjs/pending/PendingChangesDialogView.d.ts +0 -2
  80. package/dist/cjs/pending/PendingChangesDialogView.js +0 -140
  81. package/dist/cjs/pending/PendingChangesIndicatorView.d.ts +0 -10
  82. package/dist/cjs/pending/PendingChangesIndicatorView.js +0 -27
  83. package/dist/cjs/pending/index.d.ts +0 -3
  84. package/dist/cjs/pending/index.js +0 -9
  85. package/dist/cjs/pending/types.d.ts +0 -55
  86. package/dist/cjs/pending/types.js +0 -2
  87. package/dist/cjs/pricing/PlanUpgradeDialog.d.ts +0 -17
  88. package/dist/cjs/pricing/PlanUpgradeDialog.js +0 -22
  89. package/dist/cjs/pricing/PricingTable.d.ts +0 -28
  90. package/dist/cjs/pricing/PricingTable.js +0 -60
  91. package/dist/cjs/pricing/index.d.ts +0 -3
  92. package/dist/cjs/pricing/index.js +0 -8
  93. package/dist/cjs/providers/BayonThemeProvider.d.ts +0 -20
  94. package/dist/cjs/providers/BayonThemeProvider.js +0 -163
  95. package/dist/cjs/sections/ExpandableSectionToggle.d.ts +0 -12
  96. package/dist/cjs/sections/ExpandableSectionToggle.js +0 -32
  97. package/dist/cjs/sections/index.d.ts +0 -2
  98. package/dist/cjs/sections/index.js +0 -7
  99. package/dist/cjs/styles/pageStyles.d.ts +0 -15
  100. package/dist/cjs/styles/pageStyles.js +0 -103
  101. package/dist/cjs/swipe/SwipeActionRow.d.ts +0 -8
  102. package/dist/cjs/swipe/SwipeActionRow.js +0 -123
  103. package/dist/cjs/swipe/index.d.ts +0 -1
  104. package/dist/cjs/swipe/index.js +0 -8
  105. package/dist/cjs/theme/components.d.ts +0 -2
  106. package/dist/cjs/theme/components.js +0 -123
  107. package/dist/cjs/theme/createBayonTheme.d.ts +0 -4
  108. package/dist/cjs/theme/createBayonTheme.js +0 -45
  109. package/dist/cjs/theme/palette.d.ts +0 -146
  110. package/dist/cjs/theme/palette.js +0 -109
  111. package/dist/cjs/theme/shadows.d.ts +0 -2
  112. package/dist/cjs/theme/shadows.js +0 -21
  113. package/dist/cjs/theme/types.d.ts +0 -47
  114. package/dist/cjs/theme/types.js +0 -2
  115. package/dist/cjs/theme/typography.d.ts +0 -2
  116. package/dist/cjs/theme/typography.js +0 -58
  117. package/dist/cjs/toasts/ActionToast.d.ts +0 -11
  118. package/dist/cjs/toasts/ActionToast.js +0 -12
  119. package/dist/cjs/toasts/Toast.d.ts +0 -16
  120. package/dist/cjs/toasts/Toast.js +0 -55
  121. package/dist/cjs/toasts/index.d.ts +0 -5
  122. package/dist/cjs/toasts/index.js +0 -12
  123. package/dist/cjs/toasts/useUpwardToastDismiss.d.ts +0 -15
  124. package/dist/cjs/toasts/useUpwardToastDismiss.js +0 -73
  125. package/dist/cjs/uploads/CameraCaptureDialog.d.ts +0 -22
  126. package/dist/cjs/uploads/CameraCaptureDialog.js +0 -187
  127. package/dist/cjs/uploads/FileRow.d.ts +0 -10
  128. package/dist/cjs/uploads/FileRow.js +0 -23
  129. package/dist/cjs/uploads/FileSwipeActionRow.d.ts +0 -1
  130. package/dist/cjs/uploads/FileSwipeActionRow.js +0 -11
  131. package/dist/cjs/uploads/FileThumbnail.d.ts +0 -5
  132. package/dist/cjs/uploads/FileThumbnail.js +0 -104
  133. package/dist/cjs/uploads/FileUpload.d.ts +0 -26
  134. package/dist/cjs/uploads/FileUpload.js +0 -98
  135. package/dist/cjs/uploads/FileViewer.d.ts +0 -9
  136. package/dist/cjs/uploads/FileViewer.js +0 -155
  137. package/dist/cjs/uploads/ImageCropDialog.d.ts +0 -26
  138. package/dist/cjs/uploads/ImageCropDialog.js +0 -215
  139. package/dist/cjs/uploads/ImageInfoPanel.d.ts +0 -24
  140. package/dist/cjs/uploads/ImageInfoPanel.js +0 -41
  141. package/dist/cjs/uploads/ImageUploadQualityDialog.d.ts +0 -13
  142. package/dist/cjs/uploads/ImageUploadQualityDialog.js +0 -57
  143. package/dist/cjs/uploads/UploadProgressRing.d.ts +0 -24
  144. package/dist/cjs/uploads/UploadProgressRing.js +0 -32
  145. package/dist/cjs/uploads/cameraCropPresentation.d.ts +0 -2
  146. package/dist/cjs/uploads/cameraCropPresentation.js +0 -12
  147. package/dist/cjs/uploads/index.d.ts +0 -12
  148. package/dist/cjs/uploads/index.js +0 -24
  149. package/dist/cjs/utils/createBayonEmotionCache.d.ts +0 -1
  150. package/dist/cjs/utils/createBayonEmotionCache.js +0 -21
  151. package/dist/esm/actions/ActionMenu.js +0 -30
  152. package/dist/esm/actions/DialogActionButtons.js +0 -24
  153. package/dist/esm/actions/LoadingIconButton.js +0 -7
  154. package/dist/esm/actions/StickyActionFooter.js +0 -24
  155. package/dist/esm/actions/StickySubmitButton.js +0 -7
  156. package/dist/esm/actions/index.js +0 -7
  157. package/dist/esm/client.js +0 -5
  158. package/dist/esm/components/BayonFlowVisual.js +0 -81
  159. package/dist/esm/components/BayonThemeModeToggle.js +0 -28
  160. package/dist/esm/components/IconTooltipButton.js +0 -11
  161. package/dist/esm/components/panels.js +0 -76
  162. package/dist/esm/drawers/BottomDrawer.js +0 -37
  163. package/dist/esm/drawers/MobileBottomDrawer.js +0 -95
  164. package/dist/esm/drawers/MobileBottomDrawerHeader.js +0 -30
  165. package/dist/esm/drawers/ResponsiveDrawer.js +0 -19
  166. package/dist/esm/drawers/WorkspaceSidePane.js +0 -200
  167. package/dist/esm/drawers/WorkspaceSidePaneRoot.js +0 -90
  168. package/dist/esm/drawers/drawerAppearance.js +0 -7
  169. package/dist/esm/drawers/index.js +0 -8
  170. package/dist/esm/drawers/useVisualViewportBottomInset.js +0 -29
  171. package/dist/esm/drawers/workspaceSidePaneGeometry.js +0 -11
  172. package/dist/esm/feedback/StatusNotice.js +0 -56
  173. package/dist/esm/feedback/index.js +0 -3
  174. package/dist/esm/index.js +0 -9
  175. package/dist/esm/internal/DialogChoiceTile.js +0 -54
  176. package/dist/esm/links/LinkAddressPreview.js +0 -74
  177. package/dist/esm/links/index.js +0 -4
  178. package/dist/esm/links/useLinkAddressPreview.js +0 -159
  179. package/dist/esm/location/GeographicLocationField.js +0 -43
  180. package/dist/esm/location/GoogleMapsAttribution.js +0 -9
  181. package/dist/esm/location/MetadataFieldGroup.js +0 -9
  182. package/dist/esm/location/MetadataValueField.js +0 -23
  183. package/dist/esm/location/SearchInputAction.js +0 -8
  184. package/dist/esm/location/TemplateBadge.js +0 -6
  185. package/dist/esm/location/VenueSearchDialog.js +0 -109
  186. package/dist/esm/location/index.js +0 -7
  187. package/dist/esm/pending/PendingChangesDialogShell.js +0 -10
  188. package/dist/esm/pending/PendingChangesDialogView.js +0 -134
  189. package/dist/esm/pending/PendingChangesIndicatorView.js +0 -21
  190. package/dist/esm/pending/index.js +0 -4
  191. package/dist/esm/pending/types.js +0 -1
  192. package/dist/esm/pricing/PlanUpgradeDialog.js +0 -19
  193. package/dist/esm/pricing/PricingTable.js +0 -54
  194. package/dist/esm/pricing/index.js +0 -3
  195. package/dist/esm/providers/BayonThemeProvider.js +0 -123
  196. package/dist/esm/sections/ExpandableSectionToggle.js +0 -26
  197. package/dist/esm/sections/index.js +0 -3
  198. package/dist/esm/styles/pageStyles.js +0 -100
  199. package/dist/esm/swipe/SwipeActionRow.js +0 -116
  200. package/dist/esm/swipe/index.js +0 -3
  201. package/dist/esm/theme/components.js +0 -120
  202. package/dist/esm/theme/createBayonTheme.js +0 -41
  203. package/dist/esm/theme/palette.js +0 -106
  204. package/dist/esm/theme/shadows.js +0 -18
  205. package/dist/esm/theme/types.js +0 -1
  206. package/dist/esm/theme/typography.js +0 -55
  207. package/dist/esm/toasts/ActionToast.js +0 -9
  208. package/dist/esm/toasts/Toast.js +0 -52
  209. package/dist/esm/toasts/index.js +0 -5
  210. package/dist/esm/toasts/useUpwardToastDismiss.js +0 -69
  211. package/dist/esm/uploads/CameraCaptureDialog.js +0 -181
  212. package/dist/esm/uploads/FileRow.js +0 -17
  213. package/dist/esm/uploads/FileSwipeActionRow.js +0 -7
  214. package/dist/esm/uploads/FileThumbnail.js +0 -98
  215. package/dist/esm/uploads/FileUpload.js +0 -92
  216. package/dist/esm/uploads/FileViewer.js +0 -149
  217. package/dist/esm/uploads/ImageCropDialog.js +0 -212
  218. package/dist/esm/uploads/ImageInfoPanel.js +0 -35
  219. package/dist/esm/uploads/ImageUploadQualityDialog.js +0 -51
  220. package/dist/esm/uploads/UploadProgressRing.js +0 -29
  221. package/dist/esm/uploads/cameraCropPresentation.js +0 -5
  222. package/dist/esm/uploads/index.js +0 -11
  223. package/dist/esm/utils/createBayonEmotionCache.js +0 -15
  224. package/dist/types/actions/ActionMenu.d.ts +0 -24
  225. package/dist/types/actions/DialogActionButtons.d.ts +0 -23
  226. package/dist/types/actions/LoadingIconButton.d.ts +0 -11
  227. package/dist/types/actions/StickyActionFooter.d.ts +0 -14
  228. package/dist/types/actions/StickySubmitButton.d.ts +0 -10
  229. package/dist/types/actions/index.d.ts +0 -5
  230. package/dist/types/client.d.ts +0 -4
  231. package/dist/types/components/BayonFlowVisual.d.ts +0 -12
  232. package/dist/types/components/BayonThemeModeToggle.d.ts +0 -6
  233. package/dist/types/components/IconTooltipButton.d.ts +0 -10
  234. package/dist/types/components/panels.d.ts +0 -37
  235. package/dist/types/drawers/BottomDrawer.d.ts +0 -16
  236. package/dist/types/drawers/MobileBottomDrawer.d.ts +0 -20
  237. package/dist/types/drawers/MobileBottomDrawerHeader.d.ts +0 -11
  238. package/dist/types/drawers/ResponsiveDrawer.d.ts +0 -25
  239. package/dist/types/drawers/WorkspaceSidePane.d.ts +0 -25
  240. package/dist/types/drawers/WorkspaceSidePaneRoot.d.ts +0 -1
  241. package/dist/types/drawers/drawerAppearance.d.ts +0 -8
  242. package/dist/types/drawers/index.d.ts +0 -7
  243. package/dist/types/drawers/useVisualViewportBottomInset.d.ts +0 -6
  244. package/dist/types/drawers/workspaceSidePaneGeometry.d.ts +0 -11
  245. package/dist/types/feedback/StatusNotice.d.ts +0 -13
  246. package/dist/types/feedback/index.d.ts +0 -1
  247. package/dist/types/index.d.ts +0 -9
  248. package/dist/types/internal/DialogChoiceTile.d.ts +0 -20
  249. package/dist/types/links/LinkAddressPreview.d.ts +0 -19
  250. package/dist/types/links/index.d.ts +0 -3
  251. package/dist/types/links/useLinkAddressPreview.d.ts +0 -26
  252. package/dist/types/location/GeographicLocationField.d.ts +0 -26
  253. package/dist/types/location/GoogleMapsAttribution.d.ts +0 -1
  254. package/dist/types/location/MetadataFieldGroup.d.ts +0 -5
  255. package/dist/types/location/MetadataValueField.d.ts +0 -23
  256. package/dist/types/location/SearchInputAction.d.ts +0 -9
  257. package/dist/types/location/TemplateBadge.d.ts +0 -5
  258. package/dist/types/location/VenueSearchDialog.d.ts +0 -33
  259. package/dist/types/location/index.d.ts +0 -6
  260. package/dist/types/pending/PendingChangesDialogShell.d.ts +0 -2
  261. package/dist/types/pending/PendingChangesDialogView.d.ts +0 -2
  262. package/dist/types/pending/PendingChangesIndicatorView.d.ts +0 -10
  263. package/dist/types/pending/index.d.ts +0 -3
  264. package/dist/types/pending/types.d.ts +0 -55
  265. package/dist/types/pricing/PlanUpgradeDialog.d.ts +0 -17
  266. package/dist/types/pricing/PricingTable.d.ts +0 -28
  267. package/dist/types/pricing/index.d.ts +0 -3
  268. package/dist/types/providers/BayonThemeProvider.d.ts +0 -20
  269. package/dist/types/sections/ExpandableSectionToggle.d.ts +0 -12
  270. package/dist/types/sections/index.d.ts +0 -2
  271. package/dist/types/styles/pageStyles.d.ts +0 -15
  272. package/dist/types/swipe/SwipeActionRow.d.ts +0 -8
  273. package/dist/types/swipe/index.d.ts +0 -1
  274. package/dist/types/theme/components.d.ts +0 -2
  275. package/dist/types/theme/createBayonTheme.d.ts +0 -4
  276. package/dist/types/theme/palette.d.ts +0 -146
  277. package/dist/types/theme/shadows.d.ts +0 -2
  278. package/dist/types/theme/types.d.ts +0 -47
  279. package/dist/types/theme/typography.d.ts +0 -2
  280. package/dist/types/toasts/ActionToast.d.ts +0 -11
  281. package/dist/types/toasts/Toast.d.ts +0 -16
  282. package/dist/types/toasts/index.d.ts +0 -5
  283. package/dist/types/toasts/useUpwardToastDismiss.d.ts +0 -15
  284. package/dist/types/uploads/CameraCaptureDialog.d.ts +0 -22
  285. package/dist/types/uploads/FileRow.d.ts +0 -10
  286. package/dist/types/uploads/FileSwipeActionRow.d.ts +0 -1
  287. package/dist/types/uploads/FileThumbnail.d.ts +0 -5
  288. package/dist/types/uploads/FileUpload.d.ts +0 -26
  289. package/dist/types/uploads/FileViewer.d.ts +0 -9
  290. package/dist/types/uploads/ImageCropDialog.d.ts +0 -26
  291. package/dist/types/uploads/ImageInfoPanel.d.ts +0 -24
  292. package/dist/types/uploads/ImageUploadQualityDialog.d.ts +0 -13
  293. package/dist/types/uploads/UploadProgressRing.d.ts +0 -24
  294. package/dist/types/uploads/cameraCropPresentation.d.ts +0 -2
  295. package/dist/types/uploads/index.d.ts +0 -12
  296. package/dist/types/utils/createBayonEmotionCache.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.10.0 — 2026-11-27
4
+
5
+ - Load the URL preview's optional icons and tooltip on demand through the existing `/links` entry. The destination is usable while they load.
6
+ - Animate the URL preview on open and fade it on dismissal. Dismissed previews stop accepting interaction immediately.
7
+ - Keep the docked `WorkspaceSidePane` and rail pinned during document scrolling by default. Hosts with their own scroll layout can set `pinToViewport={false}`.
8
+
9
+ ## 1.9.0 — 2026-11-23
10
+
11
+ - Add host-owned width preferences to `WorkspaceSidePane`. Responsive fit and modal presentation preserve the saved preference, and pointer and keyboard resize report user changes.
12
+
3
13
  ## 1.8.0 — 2026-11-21 (candidate)
4
14
 
5
15
  - Add `WorkspaceSidePane` to the drawers entry for a docked, resizable workspace pane that becomes a modal on narrow layouts.
package/README.md CHANGED
@@ -95,6 +95,21 @@ docked when the workspace can retain 640px of usable content and otherwise
95
95
  opens as a modal overlay. Resize by dragging the docked edge or by focusing
96
96
  its separator and pressing Left, Right, Home, End, or Enter.
97
97
 
98
+ By default the docked pane and rail stay flush with the viewport bottom as
99
+ the document scrolls. While enabled, the component clips horizontal overflow
100
+ on `body` so document scrolling can drive sticky positioning. Keep wrappers
101
+ between the pane and the document free of overflow rules that create a scroll
102
+ container. Pass `pinToViewport={false}` to keep the host's body overflow
103
+ policy, for example when the workspace scrolls inside its own container.
104
+
105
+ Pass `preferredWidth` and `onPreferredWidthChange` to store the docked width.
106
+ The component constrains finite preferences to 320–480 CSS pixels, and a
107
+ workspace that can fit the default width may temporarily render a smaller
108
+ pane without changing its preference. Modal presentation uses the default
109
+ geometry. The callback reports explicit pointer and keyboard resize changes.
110
+ Without a finite host preference, the component tracks its own width.
111
+ Hosts choose where to store the preference and feed the new value back.
112
+
98
113
  Pass a heading ID and ref for naming the pane and directing focus. Render
99
114
  rail buttons with `renderActions`, connecting `aria-controls` to `paneId` and
100
115
  `aria-expanded` to `visible`. Call `openFrom(event)` from the opener and
@@ -142,6 +157,17 @@ props unchanged. The root theme exports and existing `/client` exports remain
142
157
  unchanged; the new components are available through their explicit subpaths.
143
158
  Each subpath has ESM, CommonJS, and declaration outputs and a client boundary.
144
159
 
160
+ `useLinkAddressPreview` gives the URL card a short opening animation and a
161
+ quicker fade on dismissal, respecting reduced motion. The card loses focus
162
+ and pointer access as soon as dismissal begins. Hosts rendering
163
+ `LinkAddressPreview` directly can use `open` and `onExited` to keep it mounted
164
+ through the fade.
165
+
166
+ The hook renders the card on first activation. The URL and label are available
167
+ immediately, and Arrow Down can focus the destination while the two icons and
168
+ tooltip load independently. The same progressive rendering applies to hosts
169
+ that render `LinkAddressPreview` directly from `/links`.
170
+
145
171
  TL-M250 additionally moves file widgets to the client-only `@bayonai/mui-design/uploads`
146
172
  entry. It exports `FileUpload`, `FileRow`, `FileThumbnail`, `FileViewer`,
147
173
  `UploadProgressRing`, `UploadProgressRingProps`, and compatibility reexports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bayonai/mui-design",
3
- "version": "1.8.0",
3
+ "version": "1.10.0",
4
4
  "description": "Shared Bayon AI Material UI theme, style recipes, and reusable design components.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -1,24 +0,0 @@
1
- import { type SxProps, type Theme } from "@mui/material";
2
- import { type ReactNode } from "react";
3
- export type ActionMenuColor = "default" | "primary" | "secondary" | "error";
4
- export type ActionMenuItem = {
5
- color?: ActionMenuColor;
6
- disabled?: boolean;
7
- icon?: ReactNode;
8
- label: string;
9
- onClick: () => void;
10
- section?: string;
11
- };
12
- export type ActionMenuProps = {
13
- actionColorSx?: Partial<Record<ActionMenuColor, SxProps<Theme>>>;
14
- actions: ActionMenuItem[];
15
- buttonSx?: SxProps<Theme>;
16
- containerSx?: SxProps<Theme>;
17
- disabled?: boolean;
18
- label?: string;
19
- loading?: boolean;
20
- loadingLabel?: string;
21
- size?: "small" | "medium" | "large";
22
- };
23
- /** A compact, grouped action menu with an optional in-flight trigger state. */
24
- export declare function ActionMenu({ actionColorSx, actions, buttonSx, containerSx, disabled, label, loading, loadingLabel, size, }: ActionMenuProps): import("react").JSX.Element;
@@ -1,36 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __importDefault = (this && this.__importDefault) || function (mod) {
4
- return (mod && mod.__esModule) ? mod : { "default": mod };
5
- };
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.ActionMenu = ActionMenu;
8
- const jsx_runtime_1 = require("react/jsx-runtime");
9
- const MoreHoriz_1 = __importDefault(require("@mui/icons-material/MoreHoriz"));
10
- const material_1 = require("@mui/material");
11
- const react_1 = require("react");
12
- const LoadingIconButton_js_1 = require("./LoadingIconButton.js");
13
- /** A compact, grouped action menu with an optional in-flight trigger state. */
14
- function ActionMenu({ actionColorSx, actions, buttonSx, containerSx, disabled = false, label = "Actions", loading = false, loadingLabel = `${label} loading`, size = "small", }) {
15
- const menuId = (0, react_1.useId)();
16
- const [anchorElement, setAnchorElement] = (0, react_1.useState)(null);
17
- const open = Boolean(anchorElement);
18
- function handleAction(action) {
19
- setAnchorElement(null);
20
- action.onClick();
21
- }
22
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: loading ? loadingLabel : label, children: (0, jsx_runtime_1.jsx)(material_1.Box, { component: "span", sx: containerSx, children: (0, jsx_runtime_1.jsx)(LoadingIconButton_js_1.LoadingIconButton, { "aria-controls": open ? menuId : undefined, "aria-expanded": open ? "true" : undefined, "aria-haspopup": "menu", "aria-label": label, disabled: disabled, loading: loading, loadingLabel: loadingLabel, onClick: (event) => setAnchorElement(event.currentTarget), size: size, sx: buttonSx, children: (0, jsx_runtime_1.jsx)(MoreHoriz_1.default, { fontSize: size === "large" ? "medium" : "small" }) }) }) }), (0, jsx_runtime_1.jsx)(material_1.Menu, { anchorEl: anchorElement, anchorOrigin: { horizontal: "right", vertical: "bottom" }, disableScrollLock: true, id: menuId, onClose: () => setAnchorElement(null), open: open, transformOrigin: { horizontal: "right", vertical: "top" }, children: actions.map((action, index) => {
23
- var _a, _b, _c, _d;
24
- return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [action.section &&
25
- action.section !== ((_a = actions[index - 1]) === null || _a === void 0 ? void 0 : _a.section) ? ((0, jsx_runtime_1.jsx)(material_1.ListSubheader, { children: action.section })) : null, (0, jsx_runtime_1.jsxs)(material_1.MenuItem, { disabled: action.disabled, onClick: () => handleAction(action), sx: (_c = actionColorSx === null || actionColorSx === void 0 ? void 0 : actionColorSx[(_b = action.color) !== null && _b !== void 0 ? _b : "default"]) !== null && _c !== void 0 ? _c : getDefaultActionColorSx(action.color), children: [action.icon ? (0, jsx_runtime_1.jsx)(material_1.ListItemIcon, { children: action.icon }) : null, action.label] })] }, `${(_d = action.section) !== null && _d !== void 0 ? _d : "default"}:${action.label}`));
26
- }) })] }));
27
- }
28
- function getDefaultActionColorSx(color) {
29
- if (color === "primary")
30
- return { color: "primary.main" };
31
- if (color === "secondary")
32
- return { color: "secondary.main" };
33
- if (color === "error")
34
- return { color: "error.main" };
35
- return undefined;
36
- }
@@ -1,23 +0,0 @@
1
- import type { SxProps, Theme } from "@mui/material/styles";
2
- import type { ReactNode } from "react";
3
- export declare const compactDialogPaperSx: SxProps<Theme>;
4
- export type DialogActionButtonsProps = {
5
- confirmLabel: string;
6
- confirmText?: string;
7
- confirmDisabled?: boolean;
8
- confirmColor?: "error" | "primary" | "secondary" | "success" | "warning";
9
- confirmIcon?: ReactNode;
10
- confirmType?: "button" | "submit";
11
- onConfirm?: () => void;
12
- sx?: SxProps<Theme>;
13
- };
14
- /** Keeps the modal's primary decision compact and explicitly labelled. */
15
- export declare function DialogActionButtons({ confirmColor, confirmDisabled, confirmIcon, confirmLabel, confirmText, confirmType, onConfirm, sx, }: DialogActionButtonsProps): import("react").JSX.Element;
16
- export declare function DialogActionProgress(): import("react").JSX.Element;
17
- export type DialogCloseButtonProps = {
18
- disabled?: boolean;
19
- label?: string;
20
- onClose: () => void;
21
- sx?: SxProps<Theme>;
22
- };
23
- export declare function DialogCloseButton({ disabled, label, onClose, sx, }: DialogCloseButtonProps): import("react").JSX.Element;
@@ -1,33 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __importDefault = (this && this.__importDefault) || function (mod) {
4
- return (mod && mod.__esModule) ? mod : { "default": mod };
5
- };
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.compactDialogPaperSx = void 0;
8
- exports.DialogActionButtons = DialogActionButtons;
9
- exports.DialogActionProgress = DialogActionProgress;
10
- exports.DialogCloseButton = DialogCloseButton;
11
- const jsx_runtime_1 = require("react/jsx-runtime");
12
- const Check_1 = __importDefault(require("@mui/icons-material/Check"));
13
- const Close_1 = __importDefault(require("@mui/icons-material/Close"));
14
- const material_1 = require("@mui/material");
15
- // Product decision: concise decisions/info fit content above a readable 320px floor.
16
- // Keep MUI's readable maxWidth/viewport cap; forms and previews own their sizing.
17
- exports.compactDialogPaperSx = {
18
- width: "fit-content",
19
- // Preserve MUI's 32px margins even when the viewport is narrower than the floor.
20
- minWidth: "min(320px, calc(100% - 64px))",
21
- overflowWrap: "anywhere",
22
- };
23
- /** Keeps the modal's primary decision compact and explicitly labelled. */
24
- function DialogActionButtons({ confirmColor = "success", confirmDisabled = false, confirmIcon, confirmLabel, confirmText, confirmType = "button", onConfirm, sx, }) {
25
- return ((0, jsx_runtime_1.jsx)(material_1.DialogActions, { sx: sx, children: confirmText ? ((0, jsx_runtime_1.jsx)(material_1.Button, { "aria-label": confirmLabel, color: confirmColor, disabled: confirmDisabled, onClick: confirmType === "submit" ? undefined : onConfirm, startIcon: confirmIcon, type: confirmType, variant: "contained", children: confirmText })) : ((0, jsx_runtime_1.jsx)(material_1.Stack, { direction: "row", spacing: 1, children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: confirmLabel, children: (0, jsx_runtime_1.jsx)("span", { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { "aria-label": confirmLabel, color: confirmColor, disabled: confirmDisabled, onClick: confirmType === "submit" ? undefined : onConfirm, type: confirmType, children: confirmIcon !== null && confirmIcon !== void 0 ? confirmIcon : (0, jsx_runtime_1.jsx)(Check_1.default, {}) }) }) }) })) }));
26
- }
27
- function DialogActionProgress() {
28
- return (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { color: "inherit", size: 20 });
29
- }
30
- function DialogCloseButton({ disabled = false, label = "Close", onClose, sx, }) {
31
- // Product decision: dismissible dialogs have one close action in the title's top-right corner.
32
- return ((0, jsx_runtime_1.jsx)(material_1.Stack, { sx: { position: "absolute", right: 16, top: 16, ...sx }, children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, { title: label, children: (0, jsx_runtime_1.jsx)("span", { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { "aria-label": label, disabled: disabled, onClick: onClose, size: "small", type: "button", children: (0, jsx_runtime_1.jsx)(Close_1.default, { fontSize: "small" }) }) }) }) }));
33
- }
@@ -1,11 +0,0 @@
1
- import { type IconButtonProps } from "@mui/material";
2
- import type { ReactNode } from "react";
3
- export type LoadingIconButtonProps = Omit<IconButtonProps, "aria-label" | "children"> & {
4
- "aria-label": string;
5
- children: ReactNode;
6
- loading?: boolean;
7
- loadingLabel: string;
8
- spinnerSize?: number;
9
- };
10
- /** Keeps an icon action's footprint while making an in-flight request visible. */
11
- export declare function LoadingIconButton({ "aria-label": ariaLabel, children, disabled, loading, loadingLabel, spinnerSize, ...props }: LoadingIconButtonProps): import("react").JSX.Element;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- "use client";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.LoadingIconButton = LoadingIconButton;
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const material_1 = require("@mui/material");
7
- /** Keeps an icon action's footprint while making an in-flight request visible. */
8
- function LoadingIconButton({ "aria-label": ariaLabel, children, disabled, loading = false, loadingLabel, spinnerSize = 20, ...props }) {
9
- return ((0, jsx_runtime_1.jsx)(material_1.IconButton, { ...props, "aria-busy": loading || undefined, "aria-label": loading ? loadingLabel : ariaLabel, disabled: disabled || loading, children: loading ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { "aria-label": loadingLabel, color: "inherit", size: spinnerSize })) : (children) }));
10
- }
@@ -1,14 +0,0 @@
1
- import { type SxProps, type Theme } from "@mui/material";
2
- import type { ReactNode } from "react";
3
- export type StickyActionFooterProps = {
4
- children: ReactNode;
5
- sx?: SxProps<Theme>;
6
- };
7
- /**
8
- * Keeps the final actions of a long, scrollable form in view.
9
- *
10
- * Product decision: this component owns local sticky positioning and neutral
11
- * footer chrome only. The host owns its scroll container, any edge-to-edge
12
- * bleed required by a padded surface, action layout, and form submission.
13
- */
14
- export declare function StickyActionFooter({ children, sx }: StickyActionFooterProps): import("react").JSX.Element;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- "use client";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.StickyActionFooter = StickyActionFooter;
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const material_1 = require("@mui/material");
7
- /**
8
- * Keeps the final actions of a long, scrollable form in view.
9
- *
10
- * Product decision: this component owns local sticky positioning and neutral
11
- * footer chrome only. The host owns its scroll container, any edge-to-edge
12
- * bleed required by a padded surface, action layout, and form submission.
13
- */
14
- function StickyActionFooter({ children, sx }) {
15
- return ((0, jsx_runtime_1.jsx)(material_1.Box, { component: "footer", "data-component": "sticky-action-footer", sx: {
16
- backgroundColor: "background.paper",
17
- borderColor: "divider",
18
- borderTop: 1,
19
- bottom: 0,
20
- mt: 1,
21
- p: 2,
22
- position: "sticky",
23
- // Local stacking keeps the footer above fields without escaping its form.
24
- zIndex: 1,
25
- ...sx,
26
- }, children: children }));
27
- }
@@ -1,10 +0,0 @@
1
- import { type ButtonProps, type SxProps, type Theme } from "@mui/material";
2
- export type StickySubmitButtonProps = {
3
- buttonSx?: SxProps<Theme>;
4
- disabled?: boolean;
5
- footerSx?: SxProps<Theme>;
6
- label?: string;
7
- loading?: boolean;
8
- variant?: ButtonProps["variant"];
9
- };
10
- export declare function StickySubmitButton({ buttonSx, disabled, footerSx, label, loading, variant, }: StickySubmitButtonProps): import("react").JSX.Element;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- "use client";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.StickySubmitButton = StickySubmitButton;
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const material_1 = require("@mui/material");
7
- const StickyActionFooter_js_1 = require("./StickyActionFooter.js");
8
- function StickySubmitButton({ buttonSx, disabled = false, footerSx, label = "Save", loading = false, variant = "contained", }) {
9
- return ((0, jsx_runtime_1.jsx)(StickyActionFooter_js_1.StickyActionFooter, { sx: footerSx, children: (0, jsx_runtime_1.jsx)(material_1.Button, { color: "secondary", disabled: disabled, fullWidth: true, loading: loading, sx: { minHeight: 44, ...buttonSx }, type: "submit", variant: variant, children: label }) }));
10
- }
@@ -1,5 +0,0 @@
1
- export { ActionMenu, type ActionMenuColor, type ActionMenuItem, type ActionMenuProps, } from "./ActionMenu.js";
2
- export { LoadingIconButton, type LoadingIconButtonProps, } from "./LoadingIconButton.js";
3
- export { StickyActionFooter, type StickyActionFooterProps, } from "./StickyActionFooter.js";
4
- export { StickySubmitButton, type StickySubmitButtonProps, } from "./StickySubmitButton.js";
5
- export { compactDialogPaperSx, DialogActionButtons, DialogActionProgress, DialogCloseButton, type DialogActionButtonsProps, type DialogCloseButtonProps, } from "./DialogActionButtons.js";
@@ -1,18 +0,0 @@
1
- "use strict";
2
- "use client";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.DialogCloseButton = exports.DialogActionProgress = exports.DialogActionButtons = exports.compactDialogPaperSx = exports.StickySubmitButton = exports.StickyActionFooter = exports.LoadingIconButton = exports.ActionMenu = void 0;
5
- // TL-M249: preserve the established MUI presentation under its owning package.
6
- var ActionMenu_js_1 = require("./ActionMenu.js");
7
- Object.defineProperty(exports, "ActionMenu", { enumerable: true, get: function () { return ActionMenu_js_1.ActionMenu; } });
8
- var LoadingIconButton_js_1 = require("./LoadingIconButton.js");
9
- Object.defineProperty(exports, "LoadingIconButton", { enumerable: true, get: function () { return LoadingIconButton_js_1.LoadingIconButton; } });
10
- var StickyActionFooter_js_1 = require("./StickyActionFooter.js");
11
- Object.defineProperty(exports, "StickyActionFooter", { enumerable: true, get: function () { return StickyActionFooter_js_1.StickyActionFooter; } });
12
- var StickySubmitButton_js_1 = require("./StickySubmitButton.js");
13
- Object.defineProperty(exports, "StickySubmitButton", { enumerable: true, get: function () { return StickySubmitButton_js_1.StickySubmitButton; } });
14
- var DialogActionButtons_js_1 = require("./DialogActionButtons.js");
15
- Object.defineProperty(exports, "compactDialogPaperSx", { enumerable: true, get: function () { return DialogActionButtons_js_1.compactDialogPaperSx; } });
16
- Object.defineProperty(exports, "DialogActionButtons", { enumerable: true, get: function () { return DialogActionButtons_js_1.DialogActionButtons; } });
17
- Object.defineProperty(exports, "DialogActionProgress", { enumerable: true, get: function () { return DialogActionButtons_js_1.DialogActionProgress; } });
18
- Object.defineProperty(exports, "DialogCloseButton", { enumerable: true, get: function () { return DialogActionButtons_js_1.DialogCloseButton; } });
@@ -1,4 +0,0 @@
1
- export * from './components/IconTooltipButton.js';
2
- export * from './components/BayonFlowVisual.js';
3
- export * from './components/BayonThemeModeToggle.js';
4
- export * from './providers/BayonThemeProvider.js';
@@ -1,21 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
- };
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- __exportStar(require("./components/IconTooltipButton.js"), exports);
19
- __exportStar(require("./components/BayonFlowVisual.js"), exports);
20
- __exportStar(require("./components/BayonThemeModeToggle.js"), exports);
21
- __exportStar(require("./providers/BayonThemeProvider.js"), exports);
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { type BoxProps } from '@mui/material/Box';
3
- export type BayonFlowItem = {
4
- label: React.ReactNode;
5
- value: React.ReactNode;
6
- color: string;
7
- };
8
- export interface BayonFlowVisualProps extends BoxProps {
9
- items?: BayonFlowItem[];
10
- caption?: React.ReactNode;
11
- }
12
- export declare function BayonFlowVisual({ items, caption, sx, ...props }: BayonFlowVisualProps): React.JSX.Element;
@@ -1,87 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.BayonFlowVisual = BayonFlowVisual;
7
- const jsx_runtime_1 = require("react/jsx-runtime");
8
- const react_1 = require("@emotion/react");
9
- const Box_1 = __importDefault(require("@mui/material/Box"));
10
- const Stack_1 = __importDefault(require("@mui/material/Stack"));
11
- const Typography_1 = __importDefault(require("@mui/material/Typography"));
12
- const drift = (0, react_1.keyframes) `
13
- 0% { transform: translate3d(0, 0, 0); }
14
- 50% { transform: translate3d(0, -10px, 0); }
15
- 100% { transform: translate3d(0, 0, 0); }
16
- `;
17
- const flow = (0, react_1.keyframes) `
18
- 0% { transform: translateX(-36%); opacity: 0.28; }
19
- 50% { opacity: 0.8; }
20
- 100% { transform: translateX(36%); opacity: 0.28; }
21
- `;
22
- const tilePulse = (0, react_1.keyframes) `
23
- 0%, 100% { transform: scale(1); filter: brightness(1); }
24
- 50% { transform: scale(1.04); filter: brightness(1.18); }
25
- `;
26
- function mergeSx(...items) {
27
- return items.filter(Boolean);
28
- }
29
- const defaultItems = [
30
- { label: 'Prompt', value: 'Design brief', color: '#2DD4BF' },
31
- { label: 'Model', value: 'Context map', color: '#60A5FA' },
32
- { label: 'Build', value: 'App surface', color: '#FDE047' },
33
- { label: 'Ship', value: 'Live product', color: '#FF6B6B' },
34
- ];
35
- function BayonFlowVisual({ items = defaultItems, caption = 'idea -> AI system design -> production app', sx, ...props }) {
36
- return ((0, jsx_runtime_1.jsxs)(Box_1.default, { "aria-hidden": "true", sx: mergeSx({
37
- minHeight: { xs: 320, md: 520 },
38
- border: '1px solid var(--bayon-border-strong)',
39
- borderRadius: 2,
40
- bgcolor: 'var(--bayon-panel-solid)',
41
- boxShadow: '0 34px 110px rgba(2, 6, 23, 0.48), inset 0 1px 0 var(--bayon-border)',
42
- p: { xs: 3, md: 4 },
43
- display: 'grid',
44
- gridTemplateRows: 'auto 1fr auto',
45
- gap: 3,
46
- animation: `${drift} 8s ease-in-out infinite`,
47
- position: 'relative',
48
- overflow: 'hidden',
49
- '@media (prefers-reduced-motion: reduce)': {
50
- animation: 'none',
51
- },
52
- }, sx), ...props, children: [(0, jsx_runtime_1.jsx)(Stack_1.default, { direction: "row", spacing: 1.2, children: ['#2DD4BF', '#FF6B6B', '#FDE047'].map((color) => ((0, jsx_runtime_1.jsx)(Box_1.default, { sx: { width: 10, height: 10, borderRadius: '50%', bgcolor: color } }, color))) }), (0, jsx_runtime_1.jsx)(Box_1.default, { sx: {
53
- display: 'grid',
54
- gridTemplateColumns: '1fr 1.1fr',
55
- gridTemplateRows: '1fr 1fr',
56
- gap: 2,
57
- position: 'relative',
58
- '&::before': {
59
- content: '""',
60
- position: 'absolute',
61
- left: '10%',
62
- right: '10%',
63
- top: '50%',
64
- height: 2,
65
- background: 'linear-gradient(90deg, transparent, #2DD4BF, #FDE047, #FF6B6B, transparent)',
66
- animation: `${flow} 5s ease-in-out infinite`,
67
- },
68
- '@media (prefers-reduced-motion: reduce)': {
69
- '&::before': {
70
- animation: 'none',
71
- },
72
- },
73
- }, children: items.map((item, index) => ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: {
74
- borderRadius: 2,
75
- border: '1px solid var(--bayon-border)',
76
- bgcolor: index === 2 ? 'rgba(253, 224, 71, 0.12)' : 'var(--bayon-grid-line)',
77
- p: 2.5,
78
- display: 'flex',
79
- flexDirection: 'column',
80
- justifyContent: 'space-between',
81
- minHeight: 128,
82
- animation: `${tilePulse} ${5 + index}s ease-in-out infinite`,
83
- '@media (prefers-reduced-motion: reduce)': {
84
- animation: 'none',
85
- },
86
- }, children: [(0, jsx_runtime_1.jsx)(Typography_1.default, { sx: { color: item.color, fontWeight: 800, fontSize: '0.8rem', textTransform: 'uppercase' }, children: item.label }), (0, jsx_runtime_1.jsx)(Typography_1.default, { sx: { color: 'var(--bayon-fg)', fontWeight: 700, fontSize: { xs: '1rem', md: '1.18rem' } }, children: item.value })] }, `${String(item.label)}-${index}`))) }), (0, jsx_runtime_1.jsx)(Typography_1.default, { sx: { color: 'var(--bayon-muted)', fontSize: '0.95rem' }, children: caption })] }));
87
- }
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import type { SxProps, Theme } from '@mui/material/styles';
3
- export interface BayonThemeModeToggleProps {
4
- sx?: SxProps<Theme>;
5
- }
6
- export declare function BayonThemeModeToggle({ sx }: BayonThemeModeToggleProps): React.JSX.Element;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __importDefault = (this && this.__importDefault) || function (mod) {
4
- return (mod && mod.__esModule) ? mod : { "default": mod };
5
- };
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.BayonThemeModeToggle = BayonThemeModeToggle;
8
- const jsx_runtime_1 = require("react/jsx-runtime");
9
- const DarkMode_1 = __importDefault(require("@mui/icons-material/DarkMode"));
10
- const LightMode_1 = __importDefault(require("@mui/icons-material/LightMode"));
11
- const BayonThemeProvider_js_1 = require("../providers/BayonThemeProvider.js");
12
- const IconTooltipButton_js_1 = require("./IconTooltipButton.js");
13
- function mergeSx(...items) {
14
- return items.flat().filter(Boolean);
15
- }
16
- function BayonThemeModeToggle({ sx }) {
17
- const { mode, toggleMode } = (0, BayonThemeProvider_js_1.useBayonThemeMode)();
18
- const nextMode = mode === 'dark' ? 'light' : 'dark';
19
- return ((0, jsx_runtime_1.jsx)(IconTooltipButton_js_1.IconTooltipButton, { label: `Switch to ${nextMode} mode`, onClick: toggleMode, sx: mergeSx({
20
- color: 'var(--bayon-fg)',
21
- border: '1px solid var(--bayon-border)',
22
- bgcolor: 'var(--bayon-panel)',
23
- transition: 'border-color 180ms ease, background-color 180ms ease, color 180ms ease',
24
- '&:hover': {
25
- bgcolor: 'rgba(45, 212, 191, 0.12)',
26
- borderColor: 'var(--bayon-link-hover)',
27
- color: 'var(--bayon-link-hover)',
28
- },
29
- '&:focus-visible': {
30
- outline: '2px solid rgba(45, 212, 191, 0.52)',
31
- outlineOffset: 3,
32
- },
33
- }, sx), children: mode === 'dark' ? (0, jsx_runtime_1.jsx)(LightMode_1.default, { fontSize: "small" }) : (0, jsx_runtime_1.jsx)(DarkMode_1.default, { fontSize: "small" }) }));
34
- }
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { type IconButtonProps } from '@mui/material/IconButton';
3
- import type { TooltipProps } from '@mui/material/Tooltip';
4
- export interface IconTooltipButtonProps extends Omit<IconButtonProps, 'aria-label'> {
5
- component?: React.ElementType;
6
- href?: string;
7
- label: string;
8
- tooltipProps?: Omit<TooltipProps, 'title' | 'children'>;
9
- }
10
- export declare const IconTooltipButton: React.ForwardRefExoticComponent<Omit<IconTooltipButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
27
- };
28
- return function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
35
- })();
36
- var __importDefault = (this && this.__importDefault) || function (mod) {
37
- return (mod && mod.__esModule) ? mod : { "default": mod };
38
- };
39
- Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.IconTooltipButton = void 0;
41
- const jsx_runtime_1 = require("react/jsx-runtime");
42
- const React = __importStar(require("react"));
43
- const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
44
- const LazyTooltip = React.lazy(async () => ({
45
- default: (await Promise.resolve().then(() => __importStar(require('@mui/material/Tooltip')))).default,
46
- }));
47
- exports.IconTooltipButton = React.forwardRef(function IconTooltipButton({ label, tooltipProps, children, ...props }, ref) {
48
- const button = ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ref: ref, "aria-label": label, ...props, children: children }));
49
- return ((0, jsx_runtime_1.jsx)(React.Suspense, { fallback: button, children: (0, jsx_runtime_1.jsx)(LazyTooltip, { title: label, ...tooltipProps, children: button }) }));
50
- });
@@ -1,37 +0,0 @@
1
- import * as React from 'react';
2
- import { type BoxProps } from '@mui/material/Box';
3
- import { type StackProps } from '@mui/material/Stack';
4
- export interface BayonPanelProps extends BoxProps {
5
- hover?: boolean;
6
- }
7
- export declare function BayonPageShell({ sx, ...props }: BoxProps): React.JSX.Element;
8
- export declare function BayonGradientHero({ sx, ...props }: BoxProps): React.JSX.Element;
9
- export declare function BayonDarkPanel({ hover, sx, ...props }: BayonPanelProps): React.JSX.Element;
10
- export declare function BayonAccentPanel({ hover, sx, ...props }: BayonPanelProps): React.JSX.Element;
11
- export declare function BayonCtaPanel({ sx, ...props }: BoxProps): React.JSX.Element;
12
- export declare function BayonContentBox({ sx, ...props }: BoxProps): React.JSX.Element;
13
- export interface BayonMethodBoxProps extends BoxProps {
14
- accentColor?: string;
15
- }
16
- export declare function BayonMethodBox({ accentColor, sx, ...props }: BayonMethodBoxProps): React.JSX.Element;
17
- export interface BayonProjectCardProps extends Omit<BayonPanelProps, 'title'> {
18
- category?: React.ReactNode;
19
- status?: React.ReactNode;
20
- title?: React.ReactNode;
21
- body?: React.ReactNode;
22
- actions?: React.ReactNode;
23
- }
24
- export declare function BayonProjectCard({ category, status, title, body, actions, children, hover, sx, ...props }: BayonProjectCardProps): React.JSX.Element;
25
- export interface BayonPillarCardProps extends Omit<BoxProps, 'title'> {
26
- accentColor?: string;
27
- eyebrow?: React.ReactNode;
28
- title?: React.ReactNode;
29
- body?: React.ReactNode;
30
- actions?: React.ReactNode;
31
- }
32
- export declare function BayonPillarCard({ accentColor, eyebrow, title, body, actions, children, sx, ...props }: BayonPillarCardProps): React.JSX.Element;
33
- export interface BayonTechChipProps extends BoxProps {
34
- label?: React.ReactNode;
35
- }
36
- export declare function BayonTechChip({ label, children, sx, ...props }: BayonTechChipProps): React.JSX.Element;
37
- export declare function BayonPanelStack({ sx, ...props }: StackProps): React.JSX.Element;