@vantageos/mosaic 0.3.1 → 0.5.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 (157) hide show
  1. package/CHANGELOG.md +88 -2
  2. package/LICENSE +110 -0
  3. package/README.md +193 -21
  4. package/dist/PipelineBoard-FucyGArR.d.cts +759 -0
  5. package/dist/PipelineBoard-FucyGArR.d.ts +759 -0
  6. package/dist/PipelineBoard.markdown-DIcvrS-2.d.cts +16 -0
  7. package/dist/PipelineBoard.markdown-DIcvrS-2.d.ts +16 -0
  8. package/dist/{StatusBadge.schema-1tOjB4Ir.d.cts → StatusBadge.schema-BEjSH2_4.d.cts} +2 -2
  9. package/dist/{StatusBadge.schema-1tOjB4Ir.d.ts → StatusBadge.schema-BEjSH2_4.d.ts} +2 -2
  10. package/dist/{Tabs.schema-BzcEyeq8.d.cts → Tabs.schema-Dqr6vwV3.d.cts} +2 -2
  11. package/dist/{Tabs.schema-BzcEyeq8.d.ts → Tabs.schema-Dqr6vwV3.d.ts} +2 -2
  12. package/dist/Timeline-Coo_3tA_.d.cts +114 -0
  13. package/dist/Timeline-Coo_3tA_.d.ts +114 -0
  14. package/dist/Timeline.markdown-C6UPDv1H.d.cts +4 -0
  15. package/dist/Timeline.markdown-C6UPDv1H.d.ts +4 -0
  16. package/dist/TransactionPreview-BzWDn8kE.d.cts +391 -0
  17. package/dist/TransactionPreview-BzWDn8kE.d.ts +391 -0
  18. package/dist/TransactionPreview.markdown-Dpb0VYgN.d.cts +7 -0
  19. package/dist/TransactionPreview.markdown-Dpb0VYgN.d.ts +7 -0
  20. package/dist/artifacts.cjs +190 -2
  21. package/dist/artifacts.cjs.map +1 -1
  22. package/dist/artifacts.js +190 -2
  23. package/dist/artifacts.js.map +1 -1
  24. package/dist/confirmation.cjs +728 -2
  25. package/dist/confirmation.cjs.map +1 -1
  26. package/dist/confirmation.d.cts +2 -1
  27. package/dist/confirmation.d.ts +2 -1
  28. package/dist/confirmation.js +726 -4
  29. package/dist/confirmation.js.map +1 -1
  30. package/dist/display.cjs +1555 -203
  31. package/dist/display.cjs.map +1 -1
  32. package/dist/display.d.cts +6 -229
  33. package/dist/display.d.ts +6 -229
  34. package/dist/display.js +1539 -206
  35. package/dist/display.js.map +1 -1
  36. package/dist/forms.cjs +139 -46
  37. package/dist/forms.cjs.map +1 -1
  38. package/dist/forms.d.cts +2 -2
  39. package/dist/forms.d.ts +2 -2
  40. package/dist/forms.js +139 -46
  41. package/dist/forms.js.map +1 -1
  42. package/dist/host.cjs +822 -0
  43. package/dist/host.cjs.map +1 -0
  44. package/dist/host.d.cts +287 -0
  45. package/dist/host.d.ts +287 -0
  46. package/dist/host.js +794 -0
  47. package/dist/host.js.map +1 -0
  48. package/dist/{index-CwXVgtGb.d.cts → index-BadRcCbm.d.cts} +28 -11
  49. package/dist/{index-CwXVgtGb.d.ts → index-BadRcCbm.d.ts} +28 -11
  50. package/dist/index.cjs +2202 -247
  51. package/dist/index.cjs.map +1 -1
  52. package/dist/index.d.cts +42 -8
  53. package/dist/index.d.ts +42 -8
  54. package/dist/index.js +2167 -251
  55. package/dist/index.js.map +1 -1
  56. package/dist/input.d.cts +2 -2
  57. package/dist/input.d.ts +2 -2
  58. package/dist/media.cjs +190 -2
  59. package/dist/media.cjs.map +1 -1
  60. package/dist/media.d.cts +1 -1
  61. package/dist/media.d.ts +1 -1
  62. package/dist/media.js +190 -2
  63. package/dist/media.js.map +1 -1
  64. package/dist/preact/artifacts.js +190 -2
  65. package/dist/preact/artifacts.js.map +1 -1
  66. package/dist/preact/confirmation.d.ts +321 -1
  67. package/dist/preact/confirmation.js +629 -4
  68. package/dist/preact/confirmation.js.map +1 -1
  69. package/dist/preact/display.d.ts +570 -31
  70. package/dist/preact/display.js +1248 -126
  71. package/dist/preact/display.js.map +1 -1
  72. package/dist/preact/forms.d.ts +32 -15
  73. package/dist/preact/forms.js +139 -46
  74. package/dist/preact/forms.js.map +1 -1
  75. package/dist/preact/host.d.ts +307 -0
  76. package/dist/preact/host.js +875 -0
  77. package/dist/preact/host.js.map +1 -0
  78. package/dist/preact/media.d.ts +37 -1
  79. package/dist/preact/media.js +423 -0
  80. package/dist/preact/media.js.map +1 -1
  81. package/dist/preact/progress.d.ts +92 -1
  82. package/dist/preact/progress.js +469 -3
  83. package/dist/preact/progress.js.map +1 -1
  84. package/dist/progress.cjs +525 -2
  85. package/dist/progress.cjs.map +1 -1
  86. package/dist/progress.d.cts +2 -1
  87. package/dist/progress.d.ts +2 -1
  88. package/dist/progress.js +522 -3
  89. package/dist/progress.js.map +1 -1
  90. package/dist/react/artifacts.cjs +190 -2
  91. package/dist/react/artifacts.cjs.map +1 -1
  92. package/dist/react/artifacts.js +190 -2
  93. package/dist/react/artifacts.js.map +1 -1
  94. package/dist/react/confirmation.cjs +630 -2
  95. package/dist/react/confirmation.cjs.map +1 -1
  96. package/dist/react/confirmation.d.cts +3 -3
  97. package/dist/react/confirmation.d.ts +3 -3
  98. package/dist/react/confirmation.js +629 -4
  99. package/dist/react/confirmation.js.map +1 -1
  100. package/dist/react/display.cjs +1137 -123
  101. package/dist/react/display.cjs.map +1 -1
  102. package/dist/react/display.d.cts +42 -14
  103. package/dist/react/display.d.ts +42 -14
  104. package/dist/react/display.js +1122 -126
  105. package/dist/react/display.js.map +1 -1
  106. package/dist/react/forms.cjs +139 -46
  107. package/dist/react/forms.cjs.map +1 -1
  108. package/dist/react/forms.d.cts +1 -1
  109. package/dist/react/forms.d.ts +1 -1
  110. package/dist/react/forms.js +139 -46
  111. package/dist/react/forms.js.map +1 -1
  112. package/dist/react/host.cjs +910 -0
  113. package/dist/react/host.cjs.map +1 -0
  114. package/dist/react/host.d.cts +24 -0
  115. package/dist/react/host.d.ts +24 -0
  116. package/dist/react/host.js +875 -0
  117. package/dist/react/host.js.map +1 -0
  118. package/dist/react/input.d.cts +1 -1
  119. package/dist/react/input.d.ts +1 -1
  120. package/dist/react/media.cjs +426 -0
  121. package/dist/react/media.cjs.map +1 -1
  122. package/dist/react/media.d.cts +19 -1
  123. package/dist/react/media.d.ts +19 -1
  124. package/dist/react/media.js +423 -0
  125. package/dist/react/media.js.map +1 -1
  126. package/dist/react/progress.cjs +471 -2
  127. package/dist/react/progress.cjs.map +1 -1
  128. package/dist/react/progress.d.cts +1 -1
  129. package/dist/react/progress.d.ts +1 -1
  130. package/dist/react/progress.js +469 -3
  131. package/dist/react/progress.js.map +1 -1
  132. package/dist/server/resource.cjs +151 -0
  133. package/dist/server/resource.cjs.map +1 -0
  134. package/dist/server/resource.d.cts +90 -0
  135. package/dist/server/resource.d.ts +90 -0
  136. package/dist/server/resource.js +147 -0
  137. package/dist/server/resource.js.map +1 -0
  138. package/dist/server.cjs +1100 -25
  139. package/dist/server.cjs.map +1 -1
  140. package/dist/server.d.cts +84 -5
  141. package/dist/server.d.ts +84 -5
  142. package/dist/server.js +1087 -27
  143. package/dist/server.js.map +1 -1
  144. package/dist/tokens.cjs +73 -22
  145. package/dist/tokens.cjs.map +1 -1
  146. package/dist/tokens.d.cts +23 -3
  147. package/dist/tokens.d.ts +23 -3
  148. package/dist/tokens.js +73 -22
  149. package/dist/tokens.js.map +1 -1
  150. package/package.json +250 -231
  151. package/registry.yaml +51 -2
  152. package/dist/Alert.schema-LPJE5gFP.d.cts +0 -71
  153. package/dist/Alert.schema-LPJE5gFP.d.ts +0 -71
  154. package/dist/ProgressBar.schema-CdVYx0Wq.d.cts +0 -22
  155. package/dist/ProgressBar.schema-CdVYx0Wq.d.ts +0 -22
  156. package/dist/{ConfirmDialog-B3CQQGmJ.d.cts → ConfirmDialog-BCtOcmHe.d.cts} +1 -1
  157. package/dist/{ConfirmDialog-B3CQQGmJ.d.ts → ConfirmDialog-BCtOcmHe.d.ts} +1 -1
@@ -1,229 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
- import { Observable } from 'rxjs';
4
- import { z } from 'zod';
5
-
6
- type ColumnDef<TRow extends Record<string, unknown> = Record<string, unknown>> = {
7
- key: string;
8
- header: string;
9
- render?: (row: TRow) => ReactNode;
10
- };
11
- /**
12
- * Validates the serialisable (non-function) portion of TableView props.
13
- * The `rows$` Observable and `render` callbacks are not Zod-parseable and
14
- * must be validated at the call-site type level.
15
- */
16
- declare const TableViewPropsSchema: z.ZodObject<{
17
- columns: z.ZodArray<z.ZodObject<{
18
- key: z.ZodString;
19
- header: z.ZodString;
20
- }, "strip", z.ZodTypeAny, {
21
- key: string;
22
- header: string;
23
- }, {
24
- key: string;
25
- header: string;
26
- }>, "many">;
27
- virtualizeThreshold: z.ZodDefault<z.ZodNumber>;
28
- ariaLabel: z.ZodString;
29
- locale: z.ZodDefault<z.ZodEnum<["en", "fr"]>>;
30
- }, "strip", z.ZodTypeAny, {
31
- locale: "en" | "fr";
32
- columns: {
33
- key: string;
34
- header: string;
35
- }[];
36
- virtualizeThreshold: number;
37
- ariaLabel: string;
38
- }, {
39
- columns: {
40
- key: string;
41
- header: string;
42
- }[];
43
- ariaLabel: string;
44
- locale?: "en" | "fr" | undefined;
45
- virtualizeThreshold?: number | undefined;
46
- }>;
47
- type TableViewPropsSchemaInput = z.input<typeof TableViewPropsSchema>;
48
- type TableViewPropsSchemaOutput = z.output<typeof TableViewPropsSchema>;
49
- /**
50
- * Props for the static TableView — accepts a plain array of rows.
51
- * Primary API for already-fetched data (no rxjs required).
52
- */
53
- type TableViewProps<TRow extends Record<string, unknown> = Record<string, unknown>> = {
54
- columns: ColumnDef<TRow>[];
55
- rows: Partial<TRow>[];
56
- virtualizeThreshold?: number;
57
- ariaLabel: string;
58
- locale?: "en" | "fr";
59
- /** v0.2.1+: when provided, rows become keyboard-activable (role=button + tabIndex=0 + Enter/Space). 5-BU ABSOLUTE blocker fix. */
60
- onRowClick?: (row: TRow, index: number) => void;
61
- };
62
- /**
63
- * Props for StreamingTableView — accepts an RxJS Observable for incremental row appending.
64
- * Consumers using this variant MUST install rxjs ^7.8.0 in their project.
65
- */
66
- type StreamingTableViewProps<TRow extends Record<string, unknown> = Record<string, unknown>> = {
67
- columns: ColumnDef<TRow>[];
68
- rows$: Observable<Partial<TRow>[]>;
69
- virtualizeThreshold?: number;
70
- ariaLabel: string;
71
- locale?: "en" | "fr";
72
- /** v0.2.1+: same semantics as static TableView. */
73
- onRowClick?: (row: TRow, index: number) => void;
74
- };
75
- declare function validateTableViewProps(raw: unknown): TableViewPropsSchemaOutput;
76
-
77
- /**
78
- * TableView — Static rows variant (primary API).
79
- *
80
- * Accepts `rows: Row[]` for already-fetched data — no rxjs required.
81
- * Activates TanStack Virtual v3 windowing when rows.length > virtualizeThreshold.
82
- * Zod-validates serialisable props; renders role="alert" fallback on failure.
83
- * Fully accessible: aria-rowcount, aria-label, scope="col".
84
- */
85
- declare function TableView<TRow extends Record<string, unknown> = Record<string, unknown>>(props: TableViewProps<TRow>): react_jsx_runtime.JSX.Element;
86
- /**
87
- * StreamingTableView — Streaming rows variant (advanced, opt-in).
88
- *
89
- * Pattern 4 Streaming Hydration reference implementation.
90
- * Consumes an RxJS Observable<Row[]> for incremental row appending.
91
- * Consumers MUST install rxjs ^7.8.0 in their project.
92
- * Activates TanStack Virtual v3 windowing when rows.length > virtualizeThreshold.
93
- * Zod-validates serialisable props; renders role="alert" fallback on failure.
94
- * Fully accessible: aria-rowcount, aria-label, scope="col".
95
- */
96
- declare function StreamingTableView<TRow extends Record<string, unknown> = Record<string, unknown>>(props: StreamingTableViewProps<TRow>): react_jsx_runtime.JSX.Element;
97
-
98
- /**
99
- * EmptyState component props schema.
100
- *
101
- * Empty-set illustration + title + description + optional CTA.
102
- * Consumer-driven i18n: caller passes already-localized strings.
103
- *
104
- * icon — optional ReactNode / PreactNode passed by the caller
105
- * title — required heading (h2, consumer-driven i18n)
106
- * description — optional supporting text
107
- * action — optional CTA: { label, onClick, variant? }
108
- */
109
- declare const EmptyStatePropsSchema: z.ZodObject<{
110
- title: z.ZodString;
111
- description: z.ZodOptional<z.ZodString>;
112
- action: z.ZodOptional<z.ZodObject<{
113
- label: z.ZodString;
114
- variant: z.ZodDefault<z.ZodEnum<["primary", "secondary"]>>;
115
- }, "strip", z.ZodTypeAny, {
116
- label: string;
117
- variant: "primary" | "secondary";
118
- }, {
119
- label: string;
120
- variant?: "primary" | "secondary" | undefined;
121
- }>>;
122
- locale: z.ZodDefault<z.ZodEnum<["en", "fr"]>>;
123
- }, "strip", z.ZodTypeAny, {
124
- locale: "en" | "fr";
125
- title: string;
126
- description?: string | undefined;
127
- action?: {
128
- label: string;
129
- variant: "primary" | "secondary";
130
- } | undefined;
131
- }, {
132
- title: string;
133
- locale?: "en" | "fr" | undefined;
134
- description?: string | undefined;
135
- action?: {
136
- label: string;
137
- variant?: "primary" | "secondary" | undefined;
138
- } | undefined;
139
- }>;
140
- type EmptyStatePropsSchemaInput = z.input<typeof EmptyStatePropsSchema>;
141
- type EmptyStatePropsSchemaOutput = z.output<typeof EmptyStatePropsSchema>;
142
- /**
143
- * Full EmptyState props including framework-specific node types and callback.
144
- * `icon` and `action.onClick` are excluded from Zod (functions/nodes are not serializable).
145
- *
146
- * Note: action.variant is optional for callers — Zod applies "primary" default at parse time.
147
- */
148
- type EmptyStateProps = Omit<EmptyStatePropsSchemaOutput, "action"> & {
149
- icon?: any;
150
- action?: {
151
- label: string;
152
- variant?: "primary" | "secondary";
153
- onClick: () => void;
154
- };
155
- };
156
- declare function validateEmptyStateProps(raw: unknown): EmptyStatePropsSchemaOutput;
157
-
158
- /**
159
- * Skeleton — cross-runtime loading placeholder (React 19 implementation).
160
- *
161
- * Accepts `Record<string, unknown>` for MCP postMessage injection safety.
162
- * Zod validation narrows before render. Invalid props → accessible error span.
163
- *
164
- * Animation "none" is auto-applied when prefers-reduced-motion is set (via
165
- * Tailwind's animate-pulse which respects the media query natively), or by
166
- * passing animation="none" explicitly.
167
- *
168
- * WCAG-AA:
169
- * - role="status" + aria-busy="true" on the container
170
- * - aria-label resolves via t() in EN/FR
171
- * - aria-hidden="true" on individual line spans (status role covers the group)
172
- */
173
- declare function Skeleton(raw: Record<string, unknown>): react_jsx_runtime.JSX.Element;
174
-
175
- /**
176
- * Skeleton component props schema.
177
- *
178
- * variant — shape of the placeholder:
179
- * "rect" → rectangular block (default)
180
- * "circle" → circular avatar / icon placeholder
181
- * "text" → single or multi-line text placeholder
182
- *
183
- * width / height — CSS values (string) or pixels (number).
184
- * "rect" defaults: width="100%", height=100
185
- * "circle" defaults: width=height (equal, square rendered as circle)
186
- * "text" defaults: width="100%", height=16
187
- *
188
- * count — number of text line spans (only meaningful for variant="text").
189
- * Default 1. Ignored for rect/circle.
190
- *
191
- * animation — shimmer style:
192
- * "pulse" → opacity pulse (default)
193
- * "wave" → left-to-right gradient sweep
194
- * "none" → static placeholder (auto-selected when prefers-reduced-motion)
195
- */
196
- declare const SkeletonPropsSchema: z.ZodObject<{
197
- variant: z.ZodDefault<z.ZodEnum<["rect", "circle", "text"]>>;
198
- width: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
199
- height: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
200
- count: z.ZodDefault<z.ZodNumber>;
201
- animation: z.ZodDefault<z.ZodEnum<["pulse", "wave", "none"]>>;
202
- locale: z.ZodDefault<z.ZodEnum<["en", "fr"]>>;
203
- }, "strip", z.ZodTypeAny, {
204
- locale: "en" | "fr";
205
- variant: "text" | "rect" | "circle";
206
- count: number;
207
- animation: "none" | "pulse" | "wave";
208
- width?: string | number | undefined;
209
- height?: string | number | undefined;
210
- }, {
211
- locale?: "en" | "fr" | undefined;
212
- width?: string | number | undefined;
213
- variant?: "text" | "rect" | "circle" | undefined;
214
- count?: number | undefined;
215
- height?: string | number | undefined;
216
- animation?: "none" | "pulse" | "wave" | undefined;
217
- }>;
218
- type SkeletonProps = z.infer<typeof SkeletonPropsSchema>;
219
- declare function validateSkeletonProps(raw: unknown): SkeletonProps;
220
- /**
221
- * Resolve final width/height CSS values given the variant and raw props.
222
- * Centralised here so React + Preact runtimes share identical defaults.
223
- */
224
- declare function resolveSkeletonDimensions(variant: SkeletonProps["variant"], width: SkeletonProps["width"], height: SkeletonProps["height"]): {
225
- widthCss: string;
226
- heightCss: string;
227
- };
228
-
229
- export { type ColumnDef, type EmptyStateProps, EmptyStatePropsSchema, type EmptyStatePropsSchemaInput, type EmptyStatePropsSchemaOutput, Skeleton, type SkeletonProps, SkeletonPropsSchema, StreamingTableView, type StreamingTableViewProps, TableView, type TableViewProps, TableViewPropsSchema, type TableViewPropsSchemaInput, type TableViewPropsSchemaOutput, resolveSkeletonDimensions, validateEmptyStateProps, validateSkeletonProps, validateTableViewProps };
1
+ export { B as BalanceCard, a as BalanceCardProps, b as BalanceCardPropsOutput, c as BalanceCardPropsSchema, C as ColumnDef, d as ColumnKind, E as EmptyStateProps, e as EmptyStatePropsSchema, f as EmptyStatePropsSchemaInput, g as EmptyStatePropsSchemaOutput, F as FeedMessage, M as MessageFeed, h as MessageFeedProps, i as MessageFeedPropsOutput, j as MessageFeedPropsSchema, k as MessageFeedViewProps, P as PipelineBoard, l as PipelineBoardProps, m as PipelineBoardPropsOutput, n as PipelineBoardPropsSchema, o as PipelineBoardViewProps, p as PipelineDeal, q as PipelineStage, S as SelectionMode, r as Skeleton, s as SkeletonProps, t as SkeletonPropsSchema, u as SortDirection, v as SortState, w as StatCard, x as StatCardProps, y as StatCardPropsOutput, z as StatCardPropsSchema, A as StreamingTableView, D as StreamingTableViewProps, T as TableView, G as TableViewOptions, H as TableViewProps, I as TableViewPropsSchema, J as TableViewPropsSchemaInput, K as TableViewPropsSchemaOutput, L as compareDecimalStrings, N as nextSort, O as resolveSkeletonDimensions, Q as sortItems, R as validateBalanceCardProps, U as validateEmptyStateProps, V as validateMessageFeedProps, W as validatePipelineBoardProps, X as validateSkeletonProps, Y as validateStatCardProps, Z as validateTableViewProps } from './PipelineBoard-FucyGArR.cjs';
2
+ export { b as balanceCardToMarkdown, m as messageFeedToMarkdown, p as pipelineBoardToMarkdown, s as statCardToMarkdown } from './PipelineBoard.markdown-DIcvrS-2.cjs';
3
+ import 'react/jsx-runtime';
4
+ import 'react';
5
+ import 'rxjs';
6
+ import 'zod';
package/dist/display.d.ts CHANGED
@@ -1,229 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
- import { Observable } from 'rxjs';
4
- import { z } from 'zod';
5
-
6
- type ColumnDef<TRow extends Record<string, unknown> = Record<string, unknown>> = {
7
- key: string;
8
- header: string;
9
- render?: (row: TRow) => ReactNode;
10
- };
11
- /**
12
- * Validates the serialisable (non-function) portion of TableView props.
13
- * The `rows$` Observable and `render` callbacks are not Zod-parseable and
14
- * must be validated at the call-site type level.
15
- */
16
- declare const TableViewPropsSchema: z.ZodObject<{
17
- columns: z.ZodArray<z.ZodObject<{
18
- key: z.ZodString;
19
- header: z.ZodString;
20
- }, "strip", z.ZodTypeAny, {
21
- key: string;
22
- header: string;
23
- }, {
24
- key: string;
25
- header: string;
26
- }>, "many">;
27
- virtualizeThreshold: z.ZodDefault<z.ZodNumber>;
28
- ariaLabel: z.ZodString;
29
- locale: z.ZodDefault<z.ZodEnum<["en", "fr"]>>;
30
- }, "strip", z.ZodTypeAny, {
31
- locale: "en" | "fr";
32
- columns: {
33
- key: string;
34
- header: string;
35
- }[];
36
- virtualizeThreshold: number;
37
- ariaLabel: string;
38
- }, {
39
- columns: {
40
- key: string;
41
- header: string;
42
- }[];
43
- ariaLabel: string;
44
- locale?: "en" | "fr" | undefined;
45
- virtualizeThreshold?: number | undefined;
46
- }>;
47
- type TableViewPropsSchemaInput = z.input<typeof TableViewPropsSchema>;
48
- type TableViewPropsSchemaOutput = z.output<typeof TableViewPropsSchema>;
49
- /**
50
- * Props for the static TableView — accepts a plain array of rows.
51
- * Primary API for already-fetched data (no rxjs required).
52
- */
53
- type TableViewProps<TRow extends Record<string, unknown> = Record<string, unknown>> = {
54
- columns: ColumnDef<TRow>[];
55
- rows: Partial<TRow>[];
56
- virtualizeThreshold?: number;
57
- ariaLabel: string;
58
- locale?: "en" | "fr";
59
- /** v0.2.1+: when provided, rows become keyboard-activable (role=button + tabIndex=0 + Enter/Space). 5-BU ABSOLUTE blocker fix. */
60
- onRowClick?: (row: TRow, index: number) => void;
61
- };
62
- /**
63
- * Props for StreamingTableView — accepts an RxJS Observable for incremental row appending.
64
- * Consumers using this variant MUST install rxjs ^7.8.0 in their project.
65
- */
66
- type StreamingTableViewProps<TRow extends Record<string, unknown> = Record<string, unknown>> = {
67
- columns: ColumnDef<TRow>[];
68
- rows$: Observable<Partial<TRow>[]>;
69
- virtualizeThreshold?: number;
70
- ariaLabel: string;
71
- locale?: "en" | "fr";
72
- /** v0.2.1+: same semantics as static TableView. */
73
- onRowClick?: (row: TRow, index: number) => void;
74
- };
75
- declare function validateTableViewProps(raw: unknown): TableViewPropsSchemaOutput;
76
-
77
- /**
78
- * TableView — Static rows variant (primary API).
79
- *
80
- * Accepts `rows: Row[]` for already-fetched data — no rxjs required.
81
- * Activates TanStack Virtual v3 windowing when rows.length > virtualizeThreshold.
82
- * Zod-validates serialisable props; renders role="alert" fallback on failure.
83
- * Fully accessible: aria-rowcount, aria-label, scope="col".
84
- */
85
- declare function TableView<TRow extends Record<string, unknown> = Record<string, unknown>>(props: TableViewProps<TRow>): react_jsx_runtime.JSX.Element;
86
- /**
87
- * StreamingTableView — Streaming rows variant (advanced, opt-in).
88
- *
89
- * Pattern 4 Streaming Hydration reference implementation.
90
- * Consumes an RxJS Observable<Row[]> for incremental row appending.
91
- * Consumers MUST install rxjs ^7.8.0 in their project.
92
- * Activates TanStack Virtual v3 windowing when rows.length > virtualizeThreshold.
93
- * Zod-validates serialisable props; renders role="alert" fallback on failure.
94
- * Fully accessible: aria-rowcount, aria-label, scope="col".
95
- */
96
- declare function StreamingTableView<TRow extends Record<string, unknown> = Record<string, unknown>>(props: StreamingTableViewProps<TRow>): react_jsx_runtime.JSX.Element;
97
-
98
- /**
99
- * EmptyState component props schema.
100
- *
101
- * Empty-set illustration + title + description + optional CTA.
102
- * Consumer-driven i18n: caller passes already-localized strings.
103
- *
104
- * icon — optional ReactNode / PreactNode passed by the caller
105
- * title — required heading (h2, consumer-driven i18n)
106
- * description — optional supporting text
107
- * action — optional CTA: { label, onClick, variant? }
108
- */
109
- declare const EmptyStatePropsSchema: z.ZodObject<{
110
- title: z.ZodString;
111
- description: z.ZodOptional<z.ZodString>;
112
- action: z.ZodOptional<z.ZodObject<{
113
- label: z.ZodString;
114
- variant: z.ZodDefault<z.ZodEnum<["primary", "secondary"]>>;
115
- }, "strip", z.ZodTypeAny, {
116
- label: string;
117
- variant: "primary" | "secondary";
118
- }, {
119
- label: string;
120
- variant?: "primary" | "secondary" | undefined;
121
- }>>;
122
- locale: z.ZodDefault<z.ZodEnum<["en", "fr"]>>;
123
- }, "strip", z.ZodTypeAny, {
124
- locale: "en" | "fr";
125
- title: string;
126
- description?: string | undefined;
127
- action?: {
128
- label: string;
129
- variant: "primary" | "secondary";
130
- } | undefined;
131
- }, {
132
- title: string;
133
- locale?: "en" | "fr" | undefined;
134
- description?: string | undefined;
135
- action?: {
136
- label: string;
137
- variant?: "primary" | "secondary" | undefined;
138
- } | undefined;
139
- }>;
140
- type EmptyStatePropsSchemaInput = z.input<typeof EmptyStatePropsSchema>;
141
- type EmptyStatePropsSchemaOutput = z.output<typeof EmptyStatePropsSchema>;
142
- /**
143
- * Full EmptyState props including framework-specific node types and callback.
144
- * `icon` and `action.onClick` are excluded from Zod (functions/nodes are not serializable).
145
- *
146
- * Note: action.variant is optional for callers — Zod applies "primary" default at parse time.
147
- */
148
- type EmptyStateProps = Omit<EmptyStatePropsSchemaOutput, "action"> & {
149
- icon?: any;
150
- action?: {
151
- label: string;
152
- variant?: "primary" | "secondary";
153
- onClick: () => void;
154
- };
155
- };
156
- declare function validateEmptyStateProps(raw: unknown): EmptyStatePropsSchemaOutput;
157
-
158
- /**
159
- * Skeleton — cross-runtime loading placeholder (React 19 implementation).
160
- *
161
- * Accepts `Record<string, unknown>` for MCP postMessage injection safety.
162
- * Zod validation narrows before render. Invalid props → accessible error span.
163
- *
164
- * Animation "none" is auto-applied when prefers-reduced-motion is set (via
165
- * Tailwind's animate-pulse which respects the media query natively), or by
166
- * passing animation="none" explicitly.
167
- *
168
- * WCAG-AA:
169
- * - role="status" + aria-busy="true" on the container
170
- * - aria-label resolves via t() in EN/FR
171
- * - aria-hidden="true" on individual line spans (status role covers the group)
172
- */
173
- declare function Skeleton(raw: Record<string, unknown>): react_jsx_runtime.JSX.Element;
174
-
175
- /**
176
- * Skeleton component props schema.
177
- *
178
- * variant — shape of the placeholder:
179
- * "rect" → rectangular block (default)
180
- * "circle" → circular avatar / icon placeholder
181
- * "text" → single or multi-line text placeholder
182
- *
183
- * width / height — CSS values (string) or pixels (number).
184
- * "rect" defaults: width="100%", height=100
185
- * "circle" defaults: width=height (equal, square rendered as circle)
186
- * "text" defaults: width="100%", height=16
187
- *
188
- * count — number of text line spans (only meaningful for variant="text").
189
- * Default 1. Ignored for rect/circle.
190
- *
191
- * animation — shimmer style:
192
- * "pulse" → opacity pulse (default)
193
- * "wave" → left-to-right gradient sweep
194
- * "none" → static placeholder (auto-selected when prefers-reduced-motion)
195
- */
196
- declare const SkeletonPropsSchema: z.ZodObject<{
197
- variant: z.ZodDefault<z.ZodEnum<["rect", "circle", "text"]>>;
198
- width: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
199
- height: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
200
- count: z.ZodDefault<z.ZodNumber>;
201
- animation: z.ZodDefault<z.ZodEnum<["pulse", "wave", "none"]>>;
202
- locale: z.ZodDefault<z.ZodEnum<["en", "fr"]>>;
203
- }, "strip", z.ZodTypeAny, {
204
- locale: "en" | "fr";
205
- variant: "text" | "rect" | "circle";
206
- count: number;
207
- animation: "none" | "pulse" | "wave";
208
- width?: string | number | undefined;
209
- height?: string | number | undefined;
210
- }, {
211
- locale?: "en" | "fr" | undefined;
212
- width?: string | number | undefined;
213
- variant?: "text" | "rect" | "circle" | undefined;
214
- count?: number | undefined;
215
- height?: string | number | undefined;
216
- animation?: "none" | "pulse" | "wave" | undefined;
217
- }>;
218
- type SkeletonProps = z.infer<typeof SkeletonPropsSchema>;
219
- declare function validateSkeletonProps(raw: unknown): SkeletonProps;
220
- /**
221
- * Resolve final width/height CSS values given the variant and raw props.
222
- * Centralised here so React + Preact runtimes share identical defaults.
223
- */
224
- declare function resolveSkeletonDimensions(variant: SkeletonProps["variant"], width: SkeletonProps["width"], height: SkeletonProps["height"]): {
225
- widthCss: string;
226
- heightCss: string;
227
- };
228
-
229
- export { type ColumnDef, type EmptyStateProps, EmptyStatePropsSchema, type EmptyStatePropsSchemaInput, type EmptyStatePropsSchemaOutput, Skeleton, type SkeletonProps, SkeletonPropsSchema, StreamingTableView, type StreamingTableViewProps, TableView, type TableViewProps, TableViewPropsSchema, type TableViewPropsSchemaInput, type TableViewPropsSchemaOutput, resolveSkeletonDimensions, validateEmptyStateProps, validateSkeletonProps, validateTableViewProps };
1
+ export { B as BalanceCard, a as BalanceCardProps, b as BalanceCardPropsOutput, c as BalanceCardPropsSchema, C as ColumnDef, d as ColumnKind, E as EmptyStateProps, e as EmptyStatePropsSchema, f as EmptyStatePropsSchemaInput, g as EmptyStatePropsSchemaOutput, F as FeedMessage, M as MessageFeed, h as MessageFeedProps, i as MessageFeedPropsOutput, j as MessageFeedPropsSchema, k as MessageFeedViewProps, P as PipelineBoard, l as PipelineBoardProps, m as PipelineBoardPropsOutput, n as PipelineBoardPropsSchema, o as PipelineBoardViewProps, p as PipelineDeal, q as PipelineStage, S as SelectionMode, r as Skeleton, s as SkeletonProps, t as SkeletonPropsSchema, u as SortDirection, v as SortState, w as StatCard, x as StatCardProps, y as StatCardPropsOutput, z as StatCardPropsSchema, A as StreamingTableView, D as StreamingTableViewProps, T as TableView, G as TableViewOptions, H as TableViewProps, I as TableViewPropsSchema, J as TableViewPropsSchemaInput, K as TableViewPropsSchemaOutput, L as compareDecimalStrings, N as nextSort, O as resolveSkeletonDimensions, Q as sortItems, R as validateBalanceCardProps, U as validateEmptyStateProps, V as validateMessageFeedProps, W as validatePipelineBoardProps, X as validateSkeletonProps, Y as validateStatCardProps, Z as validateTableViewProps } from './PipelineBoard-FucyGArR.js';
2
+ export { b as balanceCardToMarkdown, m as messageFeedToMarkdown, p as pipelineBoardToMarkdown, s as statCardToMarkdown } from './PipelineBoard.markdown-DIcvrS-2.js';
3
+ import 'react/jsx-runtime';
4
+ import 'react';
5
+ import 'rxjs';
6
+ import 'zod';