@oxy.so/bloom 7.2.0 → 7.4.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 (148) hide show
  1. package/docs/adoption-matrix.mdx +15 -15
  2. package/docs/app-shell.mdx +22 -0
  3. package/docs/appearance.mdx +1 -1
  4. package/docs/card.mdx +14 -0
  5. package/docs/chip.mdx +5 -0
  6. package/docs/content-panel.mdx +22 -0
  7. package/docs/error-boundary.mdx +35 -0
  8. package/docs/mail-thread.mdx +9 -1
  9. package/docs/settings-modal.mdx +5 -0
  10. package/lib/commonjs/app-shell/AppShellSplit.js +26 -14
  11. package/lib/commonjs/app-shell/AppShellSplit.js.map +1 -1
  12. package/lib/commonjs/card/Card.js +6 -2
  13. package/lib/commonjs/card/Card.js.map +1 -1
  14. package/lib/commonjs/chip/Chip.js +51 -7
  15. package/lib/commonjs/chip/Chip.js.map +1 -1
  16. package/lib/commonjs/content-panel/ContentPanel.js +16 -8
  17. package/lib/commonjs/content-panel/ContentPanel.js.map +1 -1
  18. package/lib/commonjs/content-panel/ContentPanel.web.js +18 -8
  19. package/lib/commonjs/content-panel/ContentPanel.web.js.map +1 -1
  20. package/lib/commonjs/error-boundary/ErrorBoundary.js +10 -0
  21. package/lib/commonjs/error-boundary/ErrorBoundary.js.map +1 -1
  22. package/lib/commonjs/error-boundary/PanelErrorBoundary.js +64 -0
  23. package/lib/commonjs/error-boundary/PanelErrorBoundary.js.map +1 -0
  24. package/lib/commonjs/error-boundary/index.js +7 -0
  25. package/lib/commonjs/error-boundary/index.js.map +1 -1
  26. package/lib/commonjs/index.js +7 -0
  27. package/lib/commonjs/index.js.map +1 -1
  28. package/lib/commonjs/index.web.js +7 -0
  29. package/lib/commonjs/index.web.js.map +1 -1
  30. package/lib/commonjs/mail-thread/MailMessage.js +1 -1
  31. package/lib/commonjs/mail-thread/MailMessage.js.map +1 -1
  32. package/lib/commonjs/mail-thread/MailThread.js +3 -4
  33. package/lib/commonjs/mail-thread/MailThread.js.map +1 -1
  34. package/lib/commonjs/mail-thread/shared.js +3 -3
  35. package/lib/commonjs/mail-thread/shared.js.map +1 -1
  36. package/lib/commonjs/settings-modal/SettingsPlanCard.js +11 -7
  37. package/lib/commonjs/settings-modal/SettingsPlanCard.js.map +1 -1
  38. package/lib/module/app-shell/AppShellSplit.js +26 -14
  39. package/lib/module/app-shell/AppShellSplit.js.map +1 -1
  40. package/lib/module/card/Card.js +6 -2
  41. package/lib/module/card/Card.js.map +1 -1
  42. package/lib/module/chip/Chip.js +51 -7
  43. package/lib/module/chip/Chip.js.map +1 -1
  44. package/lib/module/content-panel/ContentPanel.js +17 -9
  45. package/lib/module/content-panel/ContentPanel.js.map +1 -1
  46. package/lib/module/content-panel/ContentPanel.web.js +19 -9
  47. package/lib/module/content-panel/ContentPanel.web.js.map +1 -1
  48. package/lib/module/error-boundary/ErrorBoundary.js +10 -0
  49. package/lib/module/error-boundary/ErrorBoundary.js.map +1 -1
  50. package/lib/module/error-boundary/PanelErrorBoundary.js +59 -0
  51. package/lib/module/error-boundary/PanelErrorBoundary.js.map +1 -0
  52. package/lib/module/error-boundary/index.js +1 -0
  53. package/lib/module/error-boundary/index.js.map +1 -1
  54. package/lib/module/index.js +1 -1
  55. package/lib/module/index.js.map +1 -1
  56. package/lib/module/index.web.js +1 -1
  57. package/lib/module/index.web.js.map +1 -1
  58. package/lib/module/mail-thread/MailMessage.js +1 -1
  59. package/lib/module/mail-thread/MailMessage.js.map +1 -1
  60. package/lib/module/mail-thread/MailThread.js +1 -2
  61. package/lib/module/mail-thread/MailThread.js.map +1 -1
  62. package/lib/module/mail-thread/shared.js +3 -3
  63. package/lib/module/mail-thread/shared.js.map +1 -1
  64. package/lib/module/settings-modal/SettingsPlanCard.js +7 -3
  65. package/lib/module/settings-modal/SettingsPlanCard.js.map +1 -1
  66. package/lib/typescript/commonjs/app-shell/AppShellSplit.d.ts.map +1 -1
  67. package/lib/typescript/commonjs/app-shell/types.d.ts +5 -0
  68. package/lib/typescript/commonjs/app-shell/types.d.ts.map +1 -1
  69. package/lib/typescript/commonjs/card/Card.d.ts.map +1 -1
  70. package/lib/typescript/commonjs/card/types.d.ts +5 -5
  71. package/lib/typescript/commonjs/card/types.d.ts.map +1 -1
  72. package/lib/typescript/commonjs/chip/Chip.d.ts.map +1 -1
  73. package/lib/typescript/commonjs/content-panel/ContentPanel.d.ts.map +1 -1
  74. package/lib/typescript/commonjs/content-panel/ContentPanel.web.d.ts.map +1 -1
  75. package/lib/typescript/commonjs/content-panel/types.d.ts +10 -0
  76. package/lib/typescript/commonjs/content-panel/types.d.ts.map +1 -1
  77. package/lib/typescript/commonjs/error-boundary/ErrorBoundary.d.ts +1 -0
  78. package/lib/typescript/commonjs/error-boundary/ErrorBoundary.d.ts.map +1 -1
  79. package/lib/typescript/commonjs/error-boundary/PanelErrorBoundary.d.ts +4 -0
  80. package/lib/typescript/commonjs/error-boundary/PanelErrorBoundary.d.ts.map +1 -0
  81. package/lib/typescript/commonjs/error-boundary/index.d.ts +2 -1
  82. package/lib/typescript/commonjs/error-boundary/index.d.ts.map +1 -1
  83. package/lib/typescript/commonjs/error-boundary/types.d.ts +16 -0
  84. package/lib/typescript/commonjs/error-boundary/types.d.ts.map +1 -1
  85. package/lib/typescript/commonjs/index.d.ts +2 -2
  86. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  87. package/lib/typescript/commonjs/index.web.d.ts +2 -2
  88. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  89. package/lib/typescript/commonjs/mail-thread/MailThread.d.ts.map +1 -1
  90. package/lib/typescript/commonjs/mail-thread/shared.d.ts +2 -2
  91. package/lib/typescript/commonjs/mail-thread/shared.d.ts.map +1 -1
  92. package/lib/typescript/commonjs/note-card/shared.d.ts +1 -1
  93. package/lib/typescript/commonjs/note-card/shared.d.ts.map +1 -1
  94. package/lib/typescript/commonjs/settings-modal/SettingsPlanCard.d.ts.map +1 -1
  95. package/lib/typescript/commonjs/settings-modal/types.d.ts +3 -0
  96. package/lib/typescript/commonjs/settings-modal/types.d.ts.map +1 -1
  97. package/lib/typescript/module/app-shell/AppShellSplit.d.ts.map +1 -1
  98. package/lib/typescript/module/app-shell/types.d.ts +5 -0
  99. package/lib/typescript/module/app-shell/types.d.ts.map +1 -1
  100. package/lib/typescript/module/card/Card.d.ts.map +1 -1
  101. package/lib/typescript/module/card/types.d.ts +5 -5
  102. package/lib/typescript/module/card/types.d.ts.map +1 -1
  103. package/lib/typescript/module/chip/Chip.d.ts.map +1 -1
  104. package/lib/typescript/module/content-panel/ContentPanel.d.ts.map +1 -1
  105. package/lib/typescript/module/content-panel/ContentPanel.web.d.ts.map +1 -1
  106. package/lib/typescript/module/content-panel/types.d.ts +10 -0
  107. package/lib/typescript/module/content-panel/types.d.ts.map +1 -1
  108. package/lib/typescript/module/error-boundary/ErrorBoundary.d.ts +1 -0
  109. package/lib/typescript/module/error-boundary/ErrorBoundary.d.ts.map +1 -1
  110. package/lib/typescript/module/error-boundary/PanelErrorBoundary.d.ts +4 -0
  111. package/lib/typescript/module/error-boundary/PanelErrorBoundary.d.ts.map +1 -0
  112. package/lib/typescript/module/error-boundary/index.d.ts +2 -1
  113. package/lib/typescript/module/error-boundary/index.d.ts.map +1 -1
  114. package/lib/typescript/module/error-boundary/types.d.ts +16 -0
  115. package/lib/typescript/module/error-boundary/types.d.ts.map +1 -1
  116. package/lib/typescript/module/index.d.ts +2 -2
  117. package/lib/typescript/module/index.d.ts.map +1 -1
  118. package/lib/typescript/module/index.web.d.ts +2 -2
  119. package/lib/typescript/module/index.web.d.ts.map +1 -1
  120. package/lib/typescript/module/mail-thread/MailThread.d.ts.map +1 -1
  121. package/lib/typescript/module/mail-thread/shared.d.ts +2 -2
  122. package/lib/typescript/module/mail-thread/shared.d.ts.map +1 -1
  123. package/lib/typescript/module/note-card/shared.d.ts +1 -1
  124. package/lib/typescript/module/note-card/shared.d.ts.map +1 -1
  125. package/lib/typescript/module/settings-modal/SettingsPlanCard.d.ts.map +1 -1
  126. package/lib/typescript/module/settings-modal/types.d.ts +3 -0
  127. package/lib/typescript/module/settings-modal/types.d.ts.map +1 -1
  128. package/package.json +1 -1
  129. package/src/app-shell/AppShellSplit.tsx +16 -7
  130. package/src/app-shell/types.ts +5 -0
  131. package/src/card/Card.tsx +6 -2
  132. package/src/card/types.ts +5 -5
  133. package/src/chip/Chip.tsx +26 -5
  134. package/src/content-panel/ContentPanel.tsx +16 -11
  135. package/src/content-panel/ContentPanel.web.tsx +16 -10
  136. package/src/content-panel/types.ts +10 -0
  137. package/src/error-boundary/ErrorBoundary.tsx +6 -0
  138. package/src/error-boundary/PanelErrorBoundary.tsx +38 -0
  139. package/src/error-boundary/index.ts +3 -0
  140. package/src/error-boundary/types.ts +18 -0
  141. package/src/index.ts +3 -1
  142. package/src/index.web.ts +3 -1
  143. package/src/mail-thread/MailMessage.tsx +1 -1
  144. package/src/mail-thread/MailThread.tsx +0 -2
  145. package/src/mail-thread/shared.ts +3 -3
  146. package/src/note-card/shared.ts +1 -1
  147. package/src/settings-modal/SettingsPlanCard.tsx +2 -0
  148. package/src/settings-modal/types.ts +3 -0
@@ -40,7 +40,7 @@ export interface NoteCardGeometry {
40
40
  padding: number;
41
41
  gap: number;
42
42
  /** A rung of the `RADIUS` scale — `Card` takes the rung, the focus ring takes its px. */
43
- radius: CardRadius;
43
+ radius: Exclude<CardRadius, 'panel'>;
44
44
  excerptLines: number;
45
45
  titleLines: number;
46
46
  maxTags: number;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { EmptyState } from '../empty-state';
2
3
  import { StyleSheet, View } from 'react-native';
3
4
 
4
5
  import { useMessages } from '../locale/messages';
@@ -81,6 +82,7 @@ function Sections({ sections }: { sections: SettingsPageSection[] }) {
81
82
  {sections.map((section) => {
82
83
  const card = (
83
84
  <SettingsCard>
85
+ {section.rows.length === 0 && section.emptyState ? <EmptyState variant="compact" {...section.emptyState} /> : null}
84
86
  {section.rows.map((row) => (
85
87
  <SettingsRow key={row.key} label={row.label} description={row.description}>
86
88
  {row.control}
@@ -1,3 +1,4 @@
1
+ import type { EmptyStateProps } from '../empty-state/types';
1
2
  import type { ComponentType, ReactNode } from 'react';
2
3
  import type { StyleProp, ViewStyle } from 'react-native';
3
4
 
@@ -212,6 +213,8 @@ export interface SettingsPageSection {
212
213
  description?: string;
213
214
  action?: ReactNode;
214
215
  rows: SettingsRowData[];
216
+ /** Rendered inside the section card only when rows is empty. */
217
+ emptyState?: EmptyStateProps;
215
218
  }
216
219
 
217
220
  export interface SettingsGeneralPageProps {