@bayonai/mui-design 1.10.0 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cjs/actions/ActionMenu.d.ts +24 -0
  3. package/dist/cjs/actions/ActionMenu.js +36 -0
  4. package/dist/cjs/actions/DialogActionButtons.d.ts +23 -0
  5. package/dist/cjs/actions/DialogActionButtons.js +33 -0
  6. package/dist/cjs/actions/LoadingIconButton.d.ts +11 -0
  7. package/dist/cjs/actions/LoadingIconButton.js +10 -0
  8. package/dist/cjs/actions/StickyActionFooter.d.ts +14 -0
  9. package/dist/cjs/actions/StickyActionFooter.js +27 -0
  10. package/dist/cjs/actions/StickySubmitButton.d.ts +10 -0
  11. package/dist/cjs/actions/StickySubmitButton.js +10 -0
  12. package/dist/cjs/actions/index.d.ts +5 -0
  13. package/dist/cjs/actions/index.js +18 -0
  14. package/dist/cjs/client.d.ts +4 -0
  15. package/dist/cjs/client.js +21 -0
  16. package/dist/cjs/components/BayonFlowVisual.d.ts +12 -0
  17. package/dist/cjs/components/BayonFlowVisual.js +87 -0
  18. package/dist/cjs/components/BayonThemeModeToggle.d.ts +6 -0
  19. package/dist/cjs/components/BayonThemeModeToggle.js +34 -0
  20. package/dist/cjs/components/IconTooltipButton.d.ts +10 -0
  21. package/dist/cjs/components/IconTooltipButton.js +50 -0
  22. package/dist/cjs/components/panels.d.ts +37 -0
  23. package/dist/cjs/components/panels.js +92 -0
  24. package/dist/cjs/drawers/BottomDrawer.d.ts +16 -0
  25. package/dist/cjs/drawers/BottomDrawer.js +43 -0
  26. package/dist/cjs/drawers/MobileBottomDrawer.d.ts +20 -0
  27. package/dist/cjs/drawers/MobileBottomDrawer.js +102 -0
  28. package/dist/cjs/drawers/MobileBottomDrawerHeader.d.ts +11 -0
  29. package/dist/cjs/drawers/MobileBottomDrawerHeader.js +36 -0
  30. package/dist/cjs/drawers/ResponsiveDrawer.d.ts +25 -0
  31. package/dist/cjs/drawers/ResponsiveDrawer.js +22 -0
  32. package/dist/cjs/drawers/WorkspaceSidePane.d.ts +31 -0
  33. package/dist/cjs/drawers/WorkspaceSidePane.js +228 -0
  34. package/dist/cjs/drawers/WorkspaceSidePaneRoot.d.ts +1 -0
  35. package/dist/cjs/drawers/WorkspaceSidePaneRoot.js +93 -0
  36. package/dist/cjs/drawers/drawerAppearance.d.ts +8 -0
  37. package/dist/cjs/drawers/drawerAppearance.js +10 -0
  38. package/dist/cjs/drawers/index.d.ts +7 -0
  39. package/dist/cjs/drawers/index.js +19 -0
  40. package/dist/cjs/drawers/useVisualViewportBottomInset.d.ts +6 -0
  41. package/dist/cjs/drawers/useVisualViewportBottomInset.js +33 -0
  42. package/dist/cjs/drawers/workspaceSidePaneGeometry.d.ts +11 -0
  43. package/dist/cjs/drawers/workspaceSidePaneGeometry.js +15 -0
  44. package/dist/cjs/feedback/StatusNotice.d.ts +13 -0
  45. package/dist/cjs/feedback/StatusNotice.js +62 -0
  46. package/dist/cjs/feedback/index.d.ts +1 -0
  47. package/dist/cjs/feedback/index.js +7 -0
  48. package/dist/cjs/index.d.ts +9 -0
  49. package/dist/cjs/index.js +25 -0
  50. package/dist/cjs/internal/DialogChoiceTile.d.ts +20 -0
  51. package/dist/cjs/internal/DialogChoiceTile.js +60 -0
  52. package/dist/cjs/links/LinkAddressPreview.d.ts +21 -0
  53. package/dist/cjs/links/LinkAddressPreview.js +130 -0
  54. package/dist/cjs/links/index.d.ts +3 -0
  55. package/dist/cjs/links/index.js +9 -0
  56. package/dist/cjs/links/useLinkAddressPreview.d.ts +26 -0
  57. package/dist/cjs/links/useLinkAddressPreview.js +171 -0
  58. package/dist/cjs/location/GeographicLocationField.d.ts +26 -0
  59. package/dist/cjs/location/GeographicLocationField.js +49 -0
  60. package/dist/cjs/location/GoogleMapsAttribution.d.ts +1 -0
  61. package/dist/cjs/location/GoogleMapsAttribution.js +12 -0
  62. package/dist/cjs/location/MetadataFieldGroup.d.ts +5 -0
  63. package/dist/cjs/location/MetadataFieldGroup.js +13 -0
  64. package/dist/cjs/location/MetadataValueField.d.ts +23 -0
  65. package/dist/cjs/location/MetadataValueField.js +27 -0
  66. package/dist/cjs/location/SearchInputAction.d.ts +9 -0
  67. package/dist/cjs/location/SearchInputAction.js +14 -0
  68. package/dist/cjs/location/TemplateBadge.d.ts +5 -0
  69. package/dist/cjs/location/TemplateBadge.js +9 -0
  70. package/dist/cjs/location/VenueSearchDialog.d.ts +33 -0
  71. package/dist/cjs/location/VenueSearchDialog.js +112 -0
  72. package/dist/cjs/location/index.d.ts +6 -0
  73. package/dist/cjs/location/index.js +20 -0
  74. package/dist/cjs/package.json +3 -0
  75. package/dist/cjs/pending/PendingChangesDialogShell.d.ts +2 -0
  76. package/dist/cjs/pending/PendingChangesDialogShell.js +16 -0
  77. package/dist/cjs/pending/PendingChangesDialogView.d.ts +2 -0
  78. package/dist/cjs/pending/PendingChangesDialogView.js +140 -0
  79. package/dist/cjs/pending/PendingChangesIndicatorView.d.ts +10 -0
  80. package/dist/cjs/pending/PendingChangesIndicatorView.js +27 -0
  81. package/dist/cjs/pending/index.d.ts +3 -0
  82. package/dist/cjs/pending/index.js +9 -0
  83. package/dist/cjs/pending/types.d.ts +55 -0
  84. package/dist/cjs/pending/types.js +2 -0
  85. package/dist/cjs/pricing/PlanUpgradeDialog.d.ts +17 -0
  86. package/dist/cjs/pricing/PlanUpgradeDialog.js +22 -0
  87. package/dist/cjs/pricing/PricingTable.d.ts +28 -0
  88. package/dist/cjs/pricing/PricingTable.js +60 -0
  89. package/dist/cjs/pricing/index.d.ts +3 -0
  90. package/dist/cjs/pricing/index.js +8 -0
  91. package/dist/cjs/providers/BayonThemeProvider.d.ts +20 -0
  92. package/dist/cjs/providers/BayonThemeProvider.js +163 -0
  93. package/dist/cjs/sections/ExpandableSectionToggle.d.ts +12 -0
  94. package/dist/cjs/sections/ExpandableSectionToggle.js +32 -0
  95. package/dist/cjs/sections/index.d.ts +2 -0
  96. package/dist/cjs/sections/index.js +7 -0
  97. package/dist/cjs/styles/pageStyles.d.ts +15 -0
  98. package/dist/cjs/styles/pageStyles.js +103 -0
  99. package/dist/cjs/swipe/SwipeActionRow.d.ts +8 -0
  100. package/dist/cjs/swipe/SwipeActionRow.js +123 -0
  101. package/dist/cjs/swipe/index.d.ts +1 -0
  102. package/dist/cjs/swipe/index.js +8 -0
  103. package/dist/cjs/theme/components.d.ts +2 -0
  104. package/dist/cjs/theme/components.js +123 -0
  105. package/dist/cjs/theme/createBayonTheme.d.ts +4 -0
  106. package/dist/cjs/theme/createBayonTheme.js +45 -0
  107. package/dist/cjs/theme/palette.d.ts +146 -0
  108. package/dist/cjs/theme/palette.js +109 -0
  109. package/dist/cjs/theme/shadows.d.ts +2 -0
  110. package/dist/cjs/theme/shadows.js +21 -0
  111. package/dist/cjs/theme/types.d.ts +47 -0
  112. package/dist/cjs/theme/types.js +2 -0
  113. package/dist/cjs/theme/typography.d.ts +2 -0
  114. package/dist/cjs/theme/typography.js +58 -0
  115. package/dist/cjs/toasts/ActionToast.d.ts +11 -0
  116. package/dist/cjs/toasts/ActionToast.js +12 -0
  117. package/dist/cjs/toasts/Toast.d.ts +16 -0
  118. package/dist/cjs/toasts/Toast.js +55 -0
  119. package/dist/cjs/toasts/index.d.ts +5 -0
  120. package/dist/cjs/toasts/index.js +12 -0
  121. package/dist/cjs/toasts/useUpwardToastDismiss.d.ts +15 -0
  122. package/dist/cjs/toasts/useUpwardToastDismiss.js +73 -0
  123. package/dist/cjs/uploads/CameraCaptureDialog.d.ts +22 -0
  124. package/dist/cjs/uploads/CameraCaptureDialog.js +187 -0
  125. package/dist/cjs/uploads/FileRow.d.ts +10 -0
  126. package/dist/cjs/uploads/FileRow.js +23 -0
  127. package/dist/cjs/uploads/FileSwipeActionRow.d.ts +1 -0
  128. package/dist/cjs/uploads/FileSwipeActionRow.js +11 -0
  129. package/dist/cjs/uploads/FileThumbnail.d.ts +5 -0
  130. package/dist/cjs/uploads/FileThumbnail.js +104 -0
  131. package/dist/cjs/uploads/FileUpload.d.ts +26 -0
  132. package/dist/cjs/uploads/FileUpload.js +98 -0
  133. package/dist/cjs/uploads/FileViewer.d.ts +9 -0
  134. package/dist/cjs/uploads/FileViewer.js +173 -0
  135. package/dist/cjs/uploads/ImageCropDialog.d.ts +26 -0
  136. package/dist/cjs/uploads/ImageCropDialog.js +215 -0
  137. package/dist/cjs/uploads/ImageInfoPanel.d.ts +24 -0
  138. package/dist/cjs/uploads/ImageInfoPanel.js +41 -0
  139. package/dist/cjs/uploads/ImageUploadQualityDialog.d.ts +13 -0
  140. package/dist/cjs/uploads/ImageUploadQualityDialog.js +57 -0
  141. package/dist/cjs/uploads/UploadProgressRing.d.ts +24 -0
  142. package/dist/cjs/uploads/UploadProgressRing.js +32 -0
  143. package/dist/cjs/uploads/cameraCropPresentation.d.ts +2 -0
  144. package/dist/cjs/uploads/cameraCropPresentation.js +12 -0
  145. package/dist/cjs/uploads/index.d.ts +12 -0
  146. package/dist/cjs/uploads/index.js +24 -0
  147. package/dist/cjs/utils/createBayonEmotionCache.d.ts +1 -0
  148. package/dist/cjs/utils/createBayonEmotionCache.js +21 -0
  149. package/dist/esm/actions/ActionMenu.js +30 -0
  150. package/dist/esm/actions/DialogActionButtons.js +24 -0
  151. package/dist/esm/actions/LoadingIconButton.js +7 -0
  152. package/dist/esm/actions/StickyActionFooter.js +24 -0
  153. package/dist/esm/actions/StickySubmitButton.js +7 -0
  154. package/dist/esm/actions/index.js +7 -0
  155. package/dist/esm/client.js +5 -0
  156. package/dist/esm/components/BayonFlowVisual.js +81 -0
  157. package/dist/esm/components/BayonThemeModeToggle.js +28 -0
  158. package/dist/esm/components/IconTooltipButton.js +11 -0
  159. package/dist/esm/components/panels.js +76 -0
  160. package/dist/esm/drawers/BottomDrawer.js +37 -0
  161. package/dist/esm/drawers/MobileBottomDrawer.js +95 -0
  162. package/dist/esm/drawers/MobileBottomDrawerHeader.js +30 -0
  163. package/dist/esm/drawers/ResponsiveDrawer.js +19 -0
  164. package/dist/esm/drawers/WorkspaceSidePane.js +222 -0
  165. package/dist/esm/drawers/WorkspaceSidePaneRoot.js +90 -0
  166. package/dist/esm/drawers/drawerAppearance.js +7 -0
  167. package/dist/esm/drawers/index.js +8 -0
  168. package/dist/esm/drawers/useVisualViewportBottomInset.js +29 -0
  169. package/dist/esm/drawers/workspaceSidePaneGeometry.js +11 -0
  170. package/dist/esm/feedback/StatusNotice.js +56 -0
  171. package/dist/esm/feedback/index.js +3 -0
  172. package/dist/esm/index.js +9 -0
  173. package/dist/esm/internal/DialogChoiceTile.js +54 -0
  174. package/dist/esm/links/LinkAddressPreview.js +91 -0
  175. package/dist/esm/links/index.js +4 -0
  176. package/dist/esm/links/useLinkAddressPreview.js +168 -0
  177. package/dist/esm/location/GeographicLocationField.js +43 -0
  178. package/dist/esm/location/GoogleMapsAttribution.js +9 -0
  179. package/dist/esm/location/MetadataFieldGroup.js +9 -0
  180. package/dist/esm/location/MetadataValueField.js +23 -0
  181. package/dist/esm/location/SearchInputAction.js +8 -0
  182. package/dist/esm/location/TemplateBadge.js +6 -0
  183. package/dist/esm/location/VenueSearchDialog.js +109 -0
  184. package/dist/esm/location/index.js +7 -0
  185. package/dist/esm/pending/PendingChangesDialogShell.js +10 -0
  186. package/dist/esm/pending/PendingChangesDialogView.js +134 -0
  187. package/dist/esm/pending/PendingChangesIndicatorView.js +21 -0
  188. package/dist/esm/pending/index.js +4 -0
  189. package/dist/esm/pending/types.js +1 -0
  190. package/dist/esm/pricing/PlanUpgradeDialog.js +19 -0
  191. package/dist/esm/pricing/PricingTable.js +54 -0
  192. package/dist/esm/pricing/index.js +3 -0
  193. package/dist/esm/providers/BayonThemeProvider.js +123 -0
  194. package/dist/esm/sections/ExpandableSectionToggle.js +26 -0
  195. package/dist/esm/sections/index.js +3 -0
  196. package/dist/esm/styles/pageStyles.js +100 -0
  197. package/dist/esm/swipe/SwipeActionRow.js +116 -0
  198. package/dist/esm/swipe/index.js +3 -0
  199. package/dist/esm/theme/components.js +120 -0
  200. package/dist/esm/theme/createBayonTheme.js +41 -0
  201. package/dist/esm/theme/palette.js +106 -0
  202. package/dist/esm/theme/shadows.js +18 -0
  203. package/dist/esm/theme/types.js +1 -0
  204. package/dist/esm/theme/typography.js +55 -0
  205. package/dist/esm/toasts/ActionToast.js +9 -0
  206. package/dist/esm/toasts/Toast.js +52 -0
  207. package/dist/esm/toasts/index.js +5 -0
  208. package/dist/esm/toasts/useUpwardToastDismiss.js +69 -0
  209. package/dist/esm/uploads/CameraCaptureDialog.js +181 -0
  210. package/dist/esm/uploads/FileRow.js +17 -0
  211. package/dist/esm/uploads/FileSwipeActionRow.js +7 -0
  212. package/dist/esm/uploads/FileThumbnail.js +98 -0
  213. package/dist/esm/uploads/FileUpload.js +92 -0
  214. package/dist/esm/uploads/FileViewer.js +167 -0
  215. package/dist/esm/uploads/ImageCropDialog.js +212 -0
  216. package/dist/esm/uploads/ImageInfoPanel.js +35 -0
  217. package/dist/esm/uploads/ImageUploadQualityDialog.js +51 -0
  218. package/dist/esm/uploads/UploadProgressRing.js +29 -0
  219. package/dist/esm/uploads/cameraCropPresentation.js +5 -0
  220. package/dist/esm/uploads/index.js +11 -0
  221. package/dist/esm/utils/createBayonEmotionCache.js +15 -0
  222. package/dist/types/actions/ActionMenu.d.ts +24 -0
  223. package/dist/types/actions/DialogActionButtons.d.ts +23 -0
  224. package/dist/types/actions/LoadingIconButton.d.ts +11 -0
  225. package/dist/types/actions/StickyActionFooter.d.ts +14 -0
  226. package/dist/types/actions/StickySubmitButton.d.ts +10 -0
  227. package/dist/types/actions/index.d.ts +5 -0
  228. package/dist/types/client.d.ts +4 -0
  229. package/dist/types/components/BayonFlowVisual.d.ts +12 -0
  230. package/dist/types/components/BayonThemeModeToggle.d.ts +6 -0
  231. package/dist/types/components/IconTooltipButton.d.ts +10 -0
  232. package/dist/types/components/panels.d.ts +37 -0
  233. package/dist/types/drawers/BottomDrawer.d.ts +16 -0
  234. package/dist/types/drawers/MobileBottomDrawer.d.ts +20 -0
  235. package/dist/types/drawers/MobileBottomDrawerHeader.d.ts +11 -0
  236. package/dist/types/drawers/ResponsiveDrawer.d.ts +25 -0
  237. package/dist/types/drawers/WorkspaceSidePane.d.ts +31 -0
  238. package/dist/types/drawers/WorkspaceSidePaneRoot.d.ts +1 -0
  239. package/dist/types/drawers/drawerAppearance.d.ts +8 -0
  240. package/dist/types/drawers/index.d.ts +7 -0
  241. package/dist/types/drawers/useVisualViewportBottomInset.d.ts +6 -0
  242. package/dist/types/drawers/workspaceSidePaneGeometry.d.ts +11 -0
  243. package/dist/types/feedback/StatusNotice.d.ts +13 -0
  244. package/dist/types/feedback/index.d.ts +1 -0
  245. package/dist/types/index.d.ts +9 -0
  246. package/dist/types/internal/DialogChoiceTile.d.ts +20 -0
  247. package/dist/types/links/LinkAddressPreview.d.ts +21 -0
  248. package/dist/types/links/index.d.ts +3 -0
  249. package/dist/types/links/useLinkAddressPreview.d.ts +26 -0
  250. package/dist/types/location/GeographicLocationField.d.ts +26 -0
  251. package/dist/types/location/GoogleMapsAttribution.d.ts +1 -0
  252. package/dist/types/location/MetadataFieldGroup.d.ts +5 -0
  253. package/dist/types/location/MetadataValueField.d.ts +23 -0
  254. package/dist/types/location/SearchInputAction.d.ts +9 -0
  255. package/dist/types/location/TemplateBadge.d.ts +5 -0
  256. package/dist/types/location/VenueSearchDialog.d.ts +33 -0
  257. package/dist/types/location/index.d.ts +6 -0
  258. package/dist/types/pending/PendingChangesDialogShell.d.ts +2 -0
  259. package/dist/types/pending/PendingChangesDialogView.d.ts +2 -0
  260. package/dist/types/pending/PendingChangesIndicatorView.d.ts +10 -0
  261. package/dist/types/pending/index.d.ts +3 -0
  262. package/dist/types/pending/types.d.ts +55 -0
  263. package/dist/types/pricing/PlanUpgradeDialog.d.ts +17 -0
  264. package/dist/types/pricing/PricingTable.d.ts +28 -0
  265. package/dist/types/pricing/index.d.ts +3 -0
  266. package/dist/types/providers/BayonThemeProvider.d.ts +20 -0
  267. package/dist/types/sections/ExpandableSectionToggle.d.ts +12 -0
  268. package/dist/types/sections/index.d.ts +2 -0
  269. package/dist/types/styles/pageStyles.d.ts +15 -0
  270. package/dist/types/swipe/SwipeActionRow.d.ts +8 -0
  271. package/dist/types/swipe/index.d.ts +1 -0
  272. package/dist/types/theme/components.d.ts +2 -0
  273. package/dist/types/theme/createBayonTheme.d.ts +4 -0
  274. package/dist/types/theme/palette.d.ts +146 -0
  275. package/dist/types/theme/shadows.d.ts +2 -0
  276. package/dist/types/theme/types.d.ts +47 -0
  277. package/dist/types/theme/typography.d.ts +2 -0
  278. package/dist/types/toasts/ActionToast.d.ts +11 -0
  279. package/dist/types/toasts/Toast.d.ts +16 -0
  280. package/dist/types/toasts/index.d.ts +5 -0
  281. package/dist/types/toasts/useUpwardToastDismiss.d.ts +15 -0
  282. package/dist/types/uploads/CameraCaptureDialog.d.ts +22 -0
  283. package/dist/types/uploads/FileRow.d.ts +10 -0
  284. package/dist/types/uploads/FileSwipeActionRow.d.ts +1 -0
  285. package/dist/types/uploads/FileThumbnail.d.ts +5 -0
  286. package/dist/types/uploads/FileUpload.d.ts +26 -0
  287. package/dist/types/uploads/FileViewer.d.ts +9 -0
  288. package/dist/types/uploads/ImageCropDialog.d.ts +26 -0
  289. package/dist/types/uploads/ImageInfoPanel.d.ts +24 -0
  290. package/dist/types/uploads/ImageUploadQualityDialog.d.ts +13 -0
  291. package/dist/types/uploads/UploadProgressRing.d.ts +24 -0
  292. package/dist/types/uploads/cameraCropPresentation.d.ts +2 -0
  293. package/dist/types/uploads/index.d.ts +12 -0
  294. package/dist/types/utils/createBayonEmotionCache.d.ts +1 -0
  295. package/docs/uploads-contract.md +15 -0
  296. package/package.json +2 -1
@@ -0,0 +1,146 @@
1
+ import type { BayonColorScale } from './types.js';
2
+ export declare const bayonAccent: {
3
+ readonly teal: "#2DD4BF";
4
+ readonly tealLight: "#5EEAD4";
5
+ readonly tealSoft: "#A7F3D0";
6
+ readonly blue: "#60A5FA";
7
+ readonly yellow: "#FDE047";
8
+ readonly coral: "#FF6B6B";
9
+ readonly night: "#0B1020";
10
+ readonly panel: "#111827";
11
+ readonly ink: "#031B20";
12
+ readonly foreground: "#F8FAFC";
13
+ };
14
+ export declare const bayonPrimary: BayonColorScale;
15
+ export declare const bayonSecondary: BayonColorScale;
16
+ export declare const bayonPalette: {
17
+ readonly primary: BayonColorScale;
18
+ readonly secondary: BayonColorScale;
19
+ readonly info: {
20
+ readonly lighter: "#D0F2FF";
21
+ readonly light: "#74CAFF";
22
+ readonly main: "#1890FF";
23
+ readonly dark: "#0C53B7";
24
+ readonly darker: "#04297A";
25
+ readonly contrastText: "#FFFFFF";
26
+ };
27
+ readonly success: {
28
+ readonly lighter: "#E9FCD4";
29
+ readonly light: "#AAF27F";
30
+ readonly main: "#54D62C";
31
+ readonly dark: "#229A16";
32
+ readonly darker: "#08660D";
33
+ readonly contrastText: "#FFFFFF";
34
+ };
35
+ readonly warning: {
36
+ readonly lighter: "#FFF7CD";
37
+ readonly light: "#FFE16A";
38
+ readonly main: "#FFC107";
39
+ readonly dark: "#B78103";
40
+ readonly darker: "#7A4F01";
41
+ readonly contrastText: "#212B36";
42
+ };
43
+ readonly error: {
44
+ readonly lighter: "#FFE7D9";
45
+ readonly light: "#FFA48D";
46
+ readonly main: "#FF4842";
47
+ readonly dark: "#B72136";
48
+ readonly darker: "#7A0C2E";
49
+ readonly contrastText: "#FFFFFF";
50
+ };
51
+ readonly grey: {
52
+ readonly 0: "#FFFFFF";
53
+ readonly 100: "#F9FAFB";
54
+ readonly 200: "#F4F6F8";
55
+ readonly 300: "#DFE3E8";
56
+ readonly 400: "#C4CDD5";
57
+ readonly 500: "#919EAB";
58
+ readonly 600: "#637381";
59
+ readonly 700: "#454F5B";
60
+ readonly 800: "#212B36";
61
+ readonly 900: "#161C24";
62
+ };
63
+ readonly text: {
64
+ readonly primary: "#212B36";
65
+ readonly secondary: "#637381";
66
+ readonly disabled: "#919EAB";
67
+ };
68
+ readonly background: {
69
+ readonly paper: "#FFFFFF";
70
+ readonly default: "#F9FAFB";
71
+ };
72
+ readonly action: {
73
+ readonly active: "#637381";
74
+ readonly hover: "rgba(99, 115, 129, 0.08)";
75
+ readonly selected: "rgba(99, 115, 129, 0.16)";
76
+ readonly disabled: "rgba(99, 115, 129, 0.8)";
77
+ readonly disabledBackground: "rgba(99, 115, 129, 0.24)";
78
+ readonly focus: "rgba(99, 115, 129, 0.24)";
79
+ };
80
+ };
81
+ export declare const bayonDarkPalette: {
82
+ readonly mode: "dark";
83
+ readonly background: {
84
+ readonly default: "#0B1020";
85
+ readonly paper: "#111827";
86
+ };
87
+ readonly text: {
88
+ readonly primary: "#FFFFFF";
89
+ readonly secondary: "rgba(255, 255, 255, 0.72)";
90
+ readonly disabled: "rgba(255, 255, 255, 0.5)";
91
+ };
92
+ readonly primary: BayonColorScale;
93
+ readonly secondary: BayonColorScale;
94
+ readonly info: {
95
+ readonly lighter: "#D0F2FF";
96
+ readonly light: "#74CAFF";
97
+ readonly main: "#1890FF";
98
+ readonly dark: "#0C53B7";
99
+ readonly darker: "#04297A";
100
+ readonly contrastText: "#FFFFFF";
101
+ };
102
+ readonly success: {
103
+ readonly lighter: "#E9FCD4";
104
+ readonly light: "#AAF27F";
105
+ readonly main: "#54D62C";
106
+ readonly dark: "#229A16";
107
+ readonly darker: "#08660D";
108
+ readonly contrastText: "#FFFFFF";
109
+ };
110
+ readonly warning: {
111
+ readonly lighter: "#FFF7CD";
112
+ readonly light: "#FFE16A";
113
+ readonly main: "#FFC107";
114
+ readonly dark: "#B78103";
115
+ readonly darker: "#7A4F01";
116
+ readonly contrastText: "#212B36";
117
+ };
118
+ readonly error: {
119
+ readonly lighter: "#FFE7D9";
120
+ readonly light: "#FFA48D";
121
+ readonly main: "#FF4842";
122
+ readonly dark: "#B72136";
123
+ readonly darker: "#7A0C2E";
124
+ readonly contrastText: "#FFFFFF";
125
+ };
126
+ readonly grey: {
127
+ readonly 0: "#FFFFFF";
128
+ readonly 100: "#F9FAFB";
129
+ readonly 200: "#F4F6F8";
130
+ readonly 300: "#DFE3E8";
131
+ readonly 400: "#C4CDD5";
132
+ readonly 500: "#919EAB";
133
+ readonly 600: "#637381";
134
+ readonly 700: "#454F5B";
135
+ readonly 800: "#212B36";
136
+ readonly 900: "#161C24";
137
+ };
138
+ readonly action: {
139
+ readonly active: "#637381";
140
+ readonly hover: "rgba(99, 115, 129, 0.08)";
141
+ readonly selected: "rgba(99, 115, 129, 0.16)";
142
+ readonly disabled: "rgba(99, 115, 129, 0.8)";
143
+ readonly disabledBackground: "rgba(99, 115, 129, 0.24)";
144
+ readonly focus: "rgba(99, 115, 129, 0.24)";
145
+ };
146
+ };
@@ -0,0 +1,2 @@
1
+ import type { BayonCustomShadows } from './types.js';
2
+ export declare const bayonShadows: BayonCustomShadows;
@@ -0,0 +1,47 @@
1
+ import type { ThemeOptions } from '@mui/material/styles';
2
+ export type BayonColorScale = {
3
+ lighter: string;
4
+ light: string;
5
+ main: string;
6
+ dark: string;
7
+ darker: string;
8
+ contrastText: string;
9
+ };
10
+ export type BayonCustomShadows = {
11
+ z1: string;
12
+ z8: string;
13
+ z12: string;
14
+ z16: string;
15
+ z20: string;
16
+ z24: string;
17
+ primary: string;
18
+ secondary: string;
19
+ info: string;
20
+ success: string;
21
+ warning: string;
22
+ error: string;
23
+ card: string;
24
+ dialog: string;
25
+ dropdown: string;
26
+ };
27
+ export type BayonThemeMode = 'light' | 'dark';
28
+ export type CreateBayonThemeOptions = {
29
+ mode?: BayonThemeMode;
30
+ overrides?: ThemeOptions;
31
+ };
32
+ declare module '@mui/material/styles' {
33
+ interface PaletteColor {
34
+ lighter?: string;
35
+ darker?: string;
36
+ }
37
+ interface SimplePaletteColorOptions {
38
+ lighter?: string;
39
+ darker?: string;
40
+ }
41
+ interface Theme {
42
+ customShadows: BayonCustomShadows;
43
+ }
44
+ interface ThemeOptions {
45
+ customShadows?: Partial<BayonCustomShadows>;
46
+ }
47
+ }
@@ -0,0 +1,2 @@
1
+ import type { ThemeOptions } from '@mui/material/styles';
2
+ export declare const bayonTypography: NonNullable<ThemeOptions['typography']>;
@@ -0,0 +1,11 @@
1
+ import type { ComponentType, ReactNode } from "react";
2
+ import { type ToastProps } from "./Toast.js";
3
+ export type ActionToastProps = Omit<ToastProps, "children"> & {
4
+ message: ReactNode;
5
+ actionLabel: string;
6
+ actionAriaLabel: string;
7
+ onAction: () => void;
8
+ actionDisabled?: boolean;
9
+ ToastComponent?: ComponentType<ToastProps>;
10
+ };
11
+ export declare function ActionToast({ message, actionLabel, actionAriaLabel, onAction, actionDisabled, ToastComponent, ...toastProps }: ActionToastProps): import("react").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { type SxProps, type Theme } from "@mui/material";
2
+ import type { ReactNode } from "react";
3
+ export type ToastProps = {
4
+ mobileTopOffset?: number | string;
5
+ mobileBottomOffset?: number | string;
6
+ ariaLive?: "assertive" | "polite";
7
+ children: ReactNode;
8
+ contained?: boolean;
9
+ dataComponent?: string;
10
+ onDismiss?: () => void;
11
+ placement?: "bottom-end" | "top-center";
12
+ role?: "alert" | "status";
13
+ sx?: SxProps<Theme>;
14
+ variant?: "standard" | "unstyled";
15
+ };
16
+ export declare function Toast({ ariaLive, mobileTopOffset, mobileBottomOffset, children, contained, dataComponent, onDismiss, placement, role, sx, variant, }: ToastProps): import("react").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export { Toast } from "./Toast.js";
2
+ export type { ToastProps } from "./Toast.js";
3
+ export { ActionToast } from "./ActionToast.js";
4
+ export type { ActionToastProps } from "./ActionToast.js";
5
+ export { useUpwardToastDismiss, TOAST_UPWARD_DISMISS_DISTANCE_PX, } from "./useUpwardToastDismiss.js";
@@ -0,0 +1,15 @@
1
+ import type { SxProps, Theme } from "@mui/material";
2
+ import { type PointerEvent } from "react";
3
+ export declare const TOAST_UPWARD_DISMISS_DISTANCE_PX = 64;
4
+ export declare function useUpwardToastDismiss({ onDismiss, transform, }: {
5
+ onDismiss?: () => void;
6
+ transform: string;
7
+ }): {
8
+ pointerHandlers: {
9
+ onPointerCancel: () => void;
10
+ onPointerDown: (event: PointerEvent<HTMLElement>) => void;
11
+ onPointerMove: (event: PointerEvent<HTMLElement>) => void;
12
+ onPointerUp: (event: PointerEvent<HTMLElement>) => void;
13
+ } | undefined;
14
+ sx: SxProps<Theme> | undefined;
15
+ };
@@ -0,0 +1,22 @@
1
+ export type CameraCaptureLabels = {
2
+ title: string;
3
+ close: string;
4
+ preview: string;
5
+ capture: string;
6
+ opening: string;
7
+ ready: string;
8
+ denied: string;
9
+ unavailable: string;
10
+ previewError: string;
11
+ captureError: string;
12
+ };
13
+ export type CameraCaptureDialogProps = {
14
+ onClose: () => void;
15
+ onCapture: (file: File) => void;
16
+ labels?: Partial<CameraCaptureLabels>;
17
+ facingMode?: VideoFacingModeEnum;
18
+ fileName?: string;
19
+ previewMaxHeight?: string | number;
20
+ };
21
+ /** Owns camera resources only; the host owns crop, upload and persistence. */
22
+ export declare function CameraCaptureDialog({ onClose, onCapture, labels, facingMode, fileName, previewMaxHeight, }: CameraCaptureDialogProps): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from "react";
2
+ import type { UploadFile } from "@bayonai/file-uploads";
3
+ export declare function FileRow<T extends UploadFile>({ attachment, canDelete, onDelete, onPreview, thumbnail, sizeLabel, }: {
4
+ attachment: T;
5
+ canDelete: boolean;
6
+ onDelete: (file: T) => void;
7
+ onPreview: (file: T) => void;
8
+ thumbnail: ReactNode;
9
+ sizeLabel: string;
10
+ }): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export { SwipeActionRow } from "../swipe/SwipeActionRow.js";
@@ -0,0 +1,5 @@
1
+ import type { LoadFile, UploadFile } from "@bayonai/file-uploads";
2
+ export declare function FileThumbnail<T extends UploadFile>({ attachment, loadFile, }: {
3
+ attachment: T;
4
+ loadFile: LoadFile<T>;
5
+ }): import("react").JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { type ReactNode, type ComponentType } from "react";
2
+ import type { UploadFile } from "@bayonai/file-uploads";
3
+ export declare function FileUpload<T extends UploadFile>({ attachments, canUpload, onUploadAttachment, label, accept, errorMessage, renderFile, renderViewer, RowShell, FieldIcon, colors, }: {
4
+ attachments: T[];
5
+ canUpload?: boolean;
6
+ onUploadAttachment: (file: File) => Promise<void> | void;
7
+ label: string;
8
+ accept: string;
9
+ errorMessage: (error: unknown) => string | null;
10
+ renderFile: (file: T, onPreview: (file: T) => void) => ReactNode;
11
+ renderViewer: (file: T | null, onClose: () => void) => ReactNode;
12
+ RowShell: ComponentType<{
13
+ children: ReactNode;
14
+ hasBottomBorder?: boolean;
15
+ }>;
16
+ FieldIcon: ComponentType<{
17
+ children: ReactNode;
18
+ ariaLabel?: string;
19
+ onClick?: () => void;
20
+ }>;
21
+ colors: {
22
+ text: string;
23
+ divider: string;
24
+ transition: string;
25
+ };
26
+ }): import("react").JSX.Element | null;
@@ -0,0 +1,9 @@
1
+ import type { LoadFile, UploadFile } from "@bayonai/file-uploads";
2
+ type FileViewerProps<T extends UploadFile> = {
3
+ attachment: T | null;
4
+ onClose: () => void;
5
+ loadFile: LoadFile<T>;
6
+ onDownload: (file: T) => Promise<void>;
7
+ };
8
+ export declare function FileViewer<T extends UploadFile>(props: FileViewerProps<T>): import("react").JSX.Element;
9
+ export {};
@@ -0,0 +1,26 @@
1
+ import type { ImageCrop } from "@bayonai/file-uploads";
2
+ export type ImageCropLabels = {
3
+ title: string;
4
+ close: string;
5
+ preview: string;
6
+ confirm: string;
7
+ opening: string;
8
+ instruction: string;
9
+ zoom: string;
10
+ horizontal: string;
11
+ vertical: string;
12
+ decodeError: string;
13
+ previewError: string;
14
+ };
15
+ export type ImageCropDialogProps = {
16
+ file: File;
17
+ busy: boolean;
18
+ error: string | null;
19
+ onClose: () => void;
20
+ onConfirm: (crop: ImageCrop) => Promise<void>;
21
+ labels?: Partial<ImageCropLabels>;
22
+ previewShape?: "circle" | "square";
23
+ previewWidth?: string | number;
24
+ };
25
+ /** Emits orientation-correct decoded-pixel coordinates; the host persists them. */
26
+ export declare function ImageCropDialog({ file, busy, error, onClose, onConfirm, labels, previewShape, previewWidth, }: ImageCropDialogProps): import("react").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { type SxProps, type Theme } from "@mui/material";
2
+ import type { ReactNode } from "react";
3
+ export type ImageDimensions = {
4
+ width: number;
5
+ height: number;
6
+ };
7
+ export type ImageInfoPanelProps = {
8
+ id: string;
9
+ dimensions?: ImageDimensions;
10
+ captureTime?: string;
11
+ captureOffset?: string;
12
+ camera?: string;
13
+ location?: {
14
+ coordinates: string;
15
+ approximateName?: string;
16
+ action?: ReactNode;
17
+ };
18
+ loading: boolean;
19
+ failed: boolean;
20
+ onClose: () => void;
21
+ sx?: SxProps<Theme>;
22
+ };
23
+ /** Read-only image facts. The host supplies data and any map action. */
24
+ export declare function ImageInfoPanel({ id, dimensions, captureTime, captureOffset, camera, location, loading, failed, onClose, sx, }: ImageInfoPanelProps): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ export type ImageUploadQuality = "compressed" | "high";
2
+ export type ImageUploadQualityDialogProps = {
3
+ file: File;
4
+ quality: ImageUploadQuality;
5
+ highQualityAccess: "available" | "locked" | "unavailable";
6
+ focusLockedChoice?: boolean;
7
+ hint?: string;
8
+ onQualityChange: (quality: ImageUploadQuality) => void;
9
+ onLockedChoice: () => void;
10
+ onClose: () => void;
11
+ onConfirm: () => void;
12
+ };
13
+ export declare function ImageUploadQualityDialog({ file, quality, highQualityAccess, focusLockedChoice, hint, onQualityChange, onLockedChoice, onClose, onConfirm, }: ImageUploadQualityDialogProps): import("react").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { type SxProps, type Theme } from "@mui/material";
2
+ import type { ReactNode } from "react";
3
+ export type UploadProgressRingProps = {
4
+ /** The interactive upload target, such as an avatar picker. */
5
+ children: ReactNode;
6
+ /** A short accessible description of the in-flight upload. */
7
+ progressLabel: string;
8
+ /** `null` hides the ring; supplied values are clamped to the valid 0–100 range. */
9
+ progress: number | null;
10
+ /** The diameter of the target and progress ring. */
11
+ size?: number;
12
+ /** The MUI circular-progress stroke width. */
13
+ thickness?: number;
14
+ sx?: SxProps<Theme>;
15
+ };
16
+ /**
17
+ * Presents determinate upload progress at the object being changed.
18
+ *
19
+ * Product decision: progress belongs with a compact upload target rather than
20
+ * in a separate status row. The host owns file selection, upload lifecycle,
21
+ * validation, errors, and disabled interaction; this primitive only renders
22
+ * the accessible visual state around its child.
23
+ */
24
+ export declare function UploadProgressRing({ children, progress, progressLabel, size, sx, thickness, }: UploadProgressRingProps): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { DialogActionButtons, DialogActionProgress, DialogCloseButton, } from "../actions/DialogActionButtons.js";
2
+ export { StatusNotice } from "../feedback/StatusNotice.js";
@@ -0,0 +1,12 @@
1
+ export { FileUpload } from "./FileUpload.js";
2
+ export { FileRow } from "./FileRow.js";
3
+ export { FileThumbnail } from "./FileThumbnail.js";
4
+ export { FileViewer } from "./FileViewer.js";
5
+ export { ImageInfoPanel, type ImageDimensions, type ImageInfoPanelProps } from "./ImageInfoPanel.js";
6
+ export { UploadProgressRing } from "./UploadProgressRing.js";
7
+ export { useUploadLock } from "@bayonai/file-uploads/hooks";
8
+ export type { UploadFile, LoadFile } from "@bayonai/file-uploads";
9
+ export type { UploadProgressRingProps } from "./UploadProgressRing.js";
10
+ export { CameraCaptureDialog, type CameraCaptureDialogProps, type CameraCaptureLabels } from "./CameraCaptureDialog.js";
11
+ export { ImageCropDialog, type ImageCropDialogProps, type ImageCropLabels } from "./ImageCropDialog.js";
12
+ export { ImageUploadQualityDialog, type ImageUploadQuality, type ImageUploadQualityDialogProps } from "./ImageUploadQualityDialog.js";
@@ -0,0 +1 @@
1
+ export declare function createBayonEmotionCache(key?: string): import("@emotion/cache").EmotionCache;
@@ -47,3 +47,18 @@ coordinates and a nearby-place label. The host supplies display facts and an
47
47
  optional location action. The component owns the read-only presentation and
48
48
  close control. The host owns viewer lifecycle, authorization, byte access,
49
49
  lookup, navigation and focus restoration.
50
+
51
+ ## Attachment viewer layout
52
+
53
+ `FileViewer` uses the host dialog theme and a narrow side gutter on phone
54
+ screens. It widens on desktop and keeps a content-driven height within the
55
+ existing media bounds. Images keep their original proportions. The gray
56
+ Download and Close controls share the filename header, in that keyboard
57
+ order, with 44 px targets. The full filename names the accessible dialog
58
+ even when the visible heading truncates. Recoverable download feedback
59
+ appears in the preview body. The host still owns byte access and saving.
60
+
61
+ Package coverage lives in `tests/uploads/FileViewer.test.tsx`. The
62
+ Thunderlist consumer's Chromium regression
63
+ `tests/components/attachment-viewer.spec.ts` exercises the responsive shape,
64
+ keyboard order, focus restoration, and browser download.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bayonai/mui-design",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "Shared Bayon AI Material UI theme, style recipes, and reusable design components.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -166,6 +166,7 @@
166
166
  "scripts": {
167
167
  "clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",
168
168
  "build": "npm run clean && tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json && tsc -p tsconfig.types.json && node scripts/rename-cjs.cjs",
169
+ "prepack": "npm run build",
169
170
  "typecheck": "tsc -p tsconfig.types.json --noEmit",
170
171
  "test": "vitest run --config vitest.config.mts"
171
172
  },