@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
@@ -1,146 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- import type { BayonCustomShadows } from './types.js';
2
- export declare const bayonShadows: BayonCustomShadows;
@@ -1,47 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- import type { ThemeOptions } from '@mui/material/styles';
2
- export declare const bayonTypography: NonNullable<ThemeOptions['typography']>;
@@ -1,11 +0,0 @@
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;
@@ -1,16 +0,0 @@
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;
@@ -1,5 +0,0 @@
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";
@@ -1,15 +0,0 @@
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
- };
@@ -1,22 +0,0 @@
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;
@@ -1,10 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { SwipeActionRow } from "../swipe/SwipeActionRow.js";
@@ -1,5 +0,0 @@
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;
@@ -1,26 +0,0 @@
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;
@@ -1,9 +0,0 @@
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 {};
@@ -1,26 +0,0 @@
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;
@@ -1,24 +0,0 @@
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;
@@ -1,13 +0,0 @@
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;
@@ -1,24 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- export { DialogActionButtons, DialogActionProgress, DialogCloseButton, } from "../actions/DialogActionButtons.js";
2
- export { StatusNotice } from "../feedback/StatusNotice.js";
@@ -1,12 +0,0 @@
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";
@@ -1 +0,0 @@
1
- export declare function createBayonEmotionCache(key?: string): import("@emotion/cache").EmotionCache;