@you-agent-factory/components 0.0.0 → 0.0.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 (182) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +38 -7
  3. package/dist/category-paths.d.ts +3 -0
  4. package/dist/charts/chart-state-panel.d.ts +11 -0
  5. package/dist/charts/chart.d.ts +35 -0
  6. package/dist/charts/index.d.ts +5 -0
  7. package/dist/charts/index.js +287 -0
  8. package/dist/chunks/action-row.js +39 -0
  9. package/dist/chunks/alert-panel.js +182 -0
  10. package/dist/chunks/button.js +193 -0
  11. package/dist/chunks/cn.js +6 -0
  12. package/dist/chunks/factory-emulator-controls.js +123 -0
  13. package/dist/chunks/package-form-field.js +546 -0
  14. package/dist/chunks/scroll-area.js +261 -0
  15. package/dist/chunks/surface-panel.js +73 -0
  16. package/dist/chunks/table-layout.js +292 -0
  17. package/dist/chunks/typography-roles.js +26 -0
  18. package/dist/chunks/typography.js +129 -0
  19. package/dist/chunks/widget-frame.js +344 -0
  20. package/dist/data-display/code-panel.d.ts +12 -0
  21. package/dist/data-display/data-table.d.ts +27 -0
  22. package/dist/data-display/description-list.d.ts +4 -0
  23. package/{src/data-display/index.ts → dist/data-display/index.d.ts} +4 -26
  24. package/dist/data-display/index.js +20 -0
  25. package/dist/data-display/table-layout.d.ts +8 -0
  26. package/dist/data-display/table.d.ts +14 -0
  27. package/dist/factory-emulator/factory-emulator-controls.d.ts +23 -0
  28. package/dist/factory-emulator/index.d.ts +6 -0
  29. package/dist/factory-emulator/index.js +6 -0
  30. package/dist/feedback/alert-panel-semantics.d.ts +11 -0
  31. package/dist/feedback/alert-panel.d.ts +29 -0
  32. package/dist/feedback/index.d.ts +6 -0
  33. package/dist/feedback/index.js +10 -0
  34. package/dist/feedback/skeleton.d.ts +2 -0
  35. package/dist/forms/index.d.ts +19 -0
  36. package/dist/forms/index.js +37 -0
  37. package/dist/forms/package-checkbox.d.ts +3 -0
  38. package/dist/forms/package-enum-select.d.ts +42 -0
  39. package/dist/forms/package-file-input.d.ts +3 -0
  40. package/dist/forms/package-form-field.d.ts +49 -0
  41. package/dist/forms/package-input.d.ts +6 -0
  42. package/dist/forms/package-native-select.d.ts +3 -0
  43. package/dist/forms/package-select.d.ts +32 -0
  44. package/dist/forms/package-textarea.d.ts +10 -0
  45. package/dist/forms/select-icons.d.ts +3 -0
  46. package/dist/graphs/graph-edge-path.d.ts +18 -0
  47. package/dist/graphs/graph-edge.d.ts +15 -0
  48. package/dist/graphs/graph-node-button.d.ts +11 -0
  49. package/dist/graphs/graph-node-handle-badge.d.ts +5 -0
  50. package/dist/graphs/graph-node-handle.d.ts +18 -0
  51. package/dist/graphs/graph-node-shell.d.ts +13 -0
  52. package/dist/graphs/graph-node-state-indicator.d.ts +6 -0
  53. package/dist/graphs/graph-node-state.d.ts +23 -0
  54. package/dist/graphs/graph-viewport-surface.d.ts +5 -0
  55. package/dist/graphs/index.d.ts +13 -0
  56. package/dist/graphs/index.js +614 -0
  57. package/{src/icons/index.ts → dist/icons/index.d.ts} +1 -2
  58. package/dist/icons/index.js +4 -0
  59. package/dist/index.d.ts +26 -0
  60. package/dist/index.js +145 -0
  61. package/dist/layout/action-row.d.ts +8 -0
  62. package/{src/layout/index.ts → dist/layout/index.d.ts} +1 -3
  63. package/dist/layout/index.js +9 -0
  64. package/dist/layout/surface-panel.d.ts +15 -0
  65. package/{src/navigation/index.ts → dist/navigation/index.d.ts} +1 -2
  66. package/dist/navigation/index.js +4 -0
  67. package/dist/overlays/collapsible.d.ts +5 -0
  68. package/dist/overlays/dialog.d.ts +16 -0
  69. package/dist/overlays/index.d.ts +10 -0
  70. package/dist/overlays/index.js +27 -0
  71. package/dist/overlays/overlay-layout.d.ts +6 -0
  72. package/dist/overlays/popover.d.ts +6 -0
  73. package/dist/overlays/scroll-area.d.ts +9 -0
  74. package/dist/primitives/button-link.d.ts +5 -0
  75. package/dist/primitives/button.d.ts +9 -0
  76. package/dist/primitives/icon-button-shell.d.ts +10 -0
  77. package/{src/primitives/index.ts → dist/primitives/index.d.ts} +2 -19
  78. package/dist/primitives/index.js +49 -0
  79. package/dist/primitives/package-text.d.ts +6 -0
  80. package/dist/primitives/typography-roles.d.ts +12 -0
  81. package/dist/primitives/typography.d.ts +36 -0
  82. package/dist/recipes/index.d.ts +14 -0
  83. package/dist/recipes/index.js +32 -0
  84. package/dist/recipes/widget-frame-content.d.ts +24 -0
  85. package/dist/recipes/widget-frame-disclosure.d.ts +33 -0
  86. package/dist/recipes/widget-frame-layout.d.ts +12 -0
  87. package/dist/recipes/widget-frame-skeleton.d.ts +2 -0
  88. package/dist/recipes/widget-frame-states.d.ts +15 -0
  89. package/dist/recipes/widget-frame-typography.d.ts +10 -0
  90. package/dist/recipes/widget-frame.d.ts +12 -0
  91. package/{src → dist}/styles.css +36 -0
  92. package/dist/testing/index.d.ts +4 -0
  93. package/dist/testing/index.js +16 -0
  94. package/dist/testing/render.d.ts +5 -0
  95. package/{src/tokens/index.ts → dist/tokens/index.d.ts} +1 -2
  96. package/dist/tokens/index.js +4 -0
  97. package/dist/utilities/cn.d.ts +1 -0
  98. package/{src/utilities/index.ts → dist/utilities/index.d.ts} +1 -3
  99. package/dist/utilities/index.js +6 -0
  100. package/package.json +65 -64
  101. package/docs/README.md +0 -83
  102. package/docs/button.md +0 -119
  103. package/docs/charts.md +0 -325
  104. package/docs/data-display-code-panel.md +0 -120
  105. package/docs/feedback-alert-panel.md +0 -117
  106. package/docs/feedback-skeleton.md +0 -54
  107. package/docs/forms-form-field.md +0 -490
  108. package/docs/forms-input-primitives.md +0 -311
  109. package/docs/forms-select-primitives.md +0 -362
  110. package/docs/graphs.md +0 -250
  111. package/docs/layout-display-primitives.md +0 -211
  112. package/docs/overlays.md +0 -414
  113. package/docs/table-data-table.md +0 -331
  114. package/docs/typography-roles.md +0 -182
  115. package/docs/widget-frame-recipes.md +0 -273
  116. package/src/category-paths.ts +0 -20
  117. package/src/charts/chart-state-panel.tsx +0 -103
  118. package/src/charts/chart.tsx +0 -287
  119. package/src/charts/index.ts +0 -21
  120. package/src/data-display/code-panel.tsx +0 -67
  121. package/src/data-display/data-table.tsx +0 -180
  122. package/src/data-display/description-list.tsx +0 -24
  123. package/src/data-display/table-layout.ts +0 -12
  124. package/src/data-display/table.tsx +0 -131
  125. package/src/feedback/alert-panel-semantics.ts +0 -75
  126. package/src/feedback/alert-panel.tsx +0 -187
  127. package/src/feedback/index.ts +0 -21
  128. package/src/feedback/skeleton.tsx +0 -16
  129. package/src/forms/index.ts +0 -73
  130. package/src/forms/package-checkbox.tsx +0 -50
  131. package/src/forms/package-enum-select.tsx +0 -185
  132. package/src/forms/package-file-input.tsx +0 -25
  133. package/src/forms/package-form-field.tsx +0 -202
  134. package/src/forms/package-input.tsx +0 -25
  135. package/src/forms/package-native-select.tsx +0 -25
  136. package/src/forms/package-select.tsx +0 -209
  137. package/src/forms/package-textarea.tsx +0 -35
  138. package/src/forms/select-icons.tsx +0 -35
  139. package/src/graphs/graph-edge-path.ts +0 -241
  140. package/src/graphs/graph-edge.tsx +0 -130
  141. package/src/graphs/graph-interactive-example.tsx +0 -187
  142. package/src/graphs/graph-node-button.tsx +0 -51
  143. package/src/graphs/graph-node-handle-badge.tsx +0 -108
  144. package/src/graphs/graph-node-handle.ts +0 -28
  145. package/src/graphs/graph-node-shell.tsx +0 -111
  146. package/src/graphs/graph-node-state-indicator.tsx +0 -47
  147. package/src/graphs/graph-node-state.ts +0 -111
  148. package/src/graphs/graph-viewport-surface.tsx +0 -27
  149. package/src/graphs/index.ts +0 -41
  150. package/src/index.ts +0 -209
  151. package/src/layout/action-row.tsx +0 -53
  152. package/src/layout/surface-panel.tsx +0 -91
  153. package/src/overlays/collapsible.tsx +0 -22
  154. package/src/overlays/dialog.tsx +0 -148
  155. package/src/overlays/index.ts +0 -31
  156. package/src/overlays/overlay-layout.ts +0 -9
  157. package/src/overlays/popover.tsx +0 -29
  158. package/src/overlays/scroll-area.tsx +0 -78
  159. package/src/primitives/button-link.tsx +0 -22
  160. package/src/primitives/button.tsx +0 -258
  161. package/src/primitives/icon-button-shell.tsx +0 -49
  162. package/src/primitives/package-text.tsx +0 -29
  163. package/src/primitives/typography-roles.ts +0 -12
  164. package/src/primitives/typography.tsx +0 -165
  165. package/src/recipes/index.ts +0 -61
  166. package/src/recipes/widget-frame-content.tsx +0 -114
  167. package/src/recipes/widget-frame-disclosure.tsx +0 -161
  168. package/src/recipes/widget-frame-layout.ts +0 -40
  169. package/src/recipes/widget-frame-skeleton.tsx +0 -16
  170. package/src/recipes/widget-frame-states.tsx +0 -99
  171. package/src/recipes/widget-frame-typography.ts +0 -19
  172. package/src/recipes/widget-frame.tsx +0 -84
  173. package/src/testing/index.ts +0 -13
  174. package/src/testing/render.tsx +0 -16
  175. package/src/utilities/cn.ts +0 -5
  176. /package/{src → dist}/styles/color-palette-presets.css +0 -0
  177. /package/{src → dist}/styles/color-role-tokens.css +0 -0
  178. /package/{src → dist}/styles/layout-role-tokens.css +0 -0
  179. /package/{src → dist}/styles/text-color-role-tokens.css +0 -0
  180. /package/{src → dist}/styles/typography-role-tokens.css +0 -0
  181. /package/{src → dist}/styles/typography-role-utilities.css +0 -0
  182. /package/{src → dist}/styles/typography-roles.css +0 -0
package/dist/index.js ADDED
@@ -0,0 +1,145 @@
1
+ import { B, b } from "./chunks/button.js";
2
+ import { B as B2, C, H, I, L, T } from "./chunks/typography.js";
3
+ import { C as C2, D, a, T as T2, b as b2, c, d, e, f, g, h, t, i, j, k } from "./chunks/table-layout.js";
4
+ import { A, a as a2, b as b3, c as c2, S } from "./chunks/alert-panel.js";
5
+ import { W, a as a3, b as b4, c as c3, d as d2, e as e2, f as f2, g as g2, h as h2, i as i2, j as j2, k as k2, l, m, n, o, p, q, r, s, t as t2, u, v, w, x, y, z } from "./chunks/widget-frame.js";
6
+ import { E, a as a4, F, b as b5, c as c4, d as d3, e as e3, f as f3, g as g3, h as h3, i as i3, N, O, P, j as j3, k as k3, l as l2, R, S as S2, m as m2, n as n2, o as o2, p as p2, q as q2, r as r2, s as s2, t as t3, u as u2, v as v2, w as w2, x as x2, y as y2 } from "./chunks/package-form-field.js";
7
+ import { F as F2 } from "./chunks/factory-emulator-controls.js";
8
+ import { A as A2 } from "./chunks/action-row.js";
9
+ import { S as S3, s as s3 } from "./chunks/surface-panel.js";
10
+ import { C as C3, a as a5, b as b6, D as D2, c as c5, d as d4, e as e4, f as f4, g as g4, h as h4, i as i4, j as j4, k as k4, O as O2, l as l3, m as m3, P as P2, n as n3, o as o3, p as p3, S as S4, q as q3 } from "./chunks/scroll-area.js";
11
+ const COMPONENT_CATEGORY_EXPORT_PATHS = [
12
+ "primitives",
13
+ "forms",
14
+ "layout",
15
+ "feedback",
16
+ "data-display",
17
+ "navigation",
18
+ "overlays",
19
+ "charts",
20
+ "factory-emulator",
21
+ "graphs",
22
+ "recipes",
23
+ "icons",
24
+ "utilities",
25
+ "testing",
26
+ "tokens"
27
+ ];
28
+ const COMPONENTS_PACKAGE_NAME = "@you-agent-factory/components";
29
+ export {
30
+ A2 as ActionRow,
31
+ A as AlertPanel,
32
+ a2 as AlertPanelStatusLabel,
33
+ b3 as AlertPanelText,
34
+ c2 as AlertPanelTitle,
35
+ B as Button,
36
+ B2 as ButtonLink,
37
+ COMPONENTS_PACKAGE_NAME,
38
+ COMPONENT_CATEGORY_EXPORT_PATHS,
39
+ C as Code,
40
+ C2 as CodePanel,
41
+ C3 as Collapsible,
42
+ a5 as CollapsibleContent,
43
+ b6 as CollapsibleTrigger,
44
+ D as DataTable,
45
+ a as DescriptionList,
46
+ D2 as Dialog,
47
+ c5 as DialogClose,
48
+ d4 as DialogContent,
49
+ e4 as DialogDescription,
50
+ f4 as DialogFooter,
51
+ g4 as DialogHeader,
52
+ h4 as DialogOverlay,
53
+ i4 as DialogPortal,
54
+ j4 as DialogTitle,
55
+ k4 as DialogTrigger,
56
+ E as ENUM_SELECT_EMPTY_VALUE,
57
+ a4 as EnumSelect,
58
+ F2 as FactoryEmulatorControls,
59
+ F as FormDescription,
60
+ b5 as FormError,
61
+ c4 as FormField,
62
+ d3 as FormFieldGroup,
63
+ e3 as FormFieldGroupLabel,
64
+ f3 as FormHelperText,
65
+ g3 as FormLabel,
66
+ h3 as FormSuccess,
67
+ i3 as FormWarning,
68
+ H as Heading,
69
+ I as IconButtonShell,
70
+ L as Label,
71
+ N as NativeSelect,
72
+ O2 as OVERLAY_DIALOG_BODY_CLASS,
73
+ l3 as OVERLAY_DIALOG_CONTENT_SHELL_CLASS,
74
+ m3 as OVERLAY_FORM_GROUP_CLASS,
75
+ O as OptionalEnumSelect,
76
+ P as PackageCheckbox,
77
+ j3 as PackageFileInput,
78
+ k3 as PackageInput,
79
+ l2 as PackageTextarea,
80
+ P2 as Popover,
81
+ n3 as PopoverAnchor,
82
+ o3 as PopoverContent,
83
+ p3 as PopoverTrigger,
84
+ R as ResetEnumSelect,
85
+ S2 as SELECT_EMPTY_STATE_VALUE,
86
+ S4 as ScrollArea,
87
+ q3 as ScrollBar,
88
+ m2 as Select,
89
+ n2 as SelectContent,
90
+ o2 as SelectEmpty,
91
+ p2 as SelectField,
92
+ q2 as SelectGroup,
93
+ r2 as SelectItem,
94
+ s2 as SelectLabel,
95
+ t3 as SelectSeparator,
96
+ u2 as SelectTrigger,
97
+ v2 as SelectValue,
98
+ S as Skeleton,
99
+ S3 as SurfacePanel,
100
+ T2 as Table,
101
+ b2 as TableBody,
102
+ c as TableCaption,
103
+ d as TableCell,
104
+ e as TableHead,
105
+ f as TableHeader,
106
+ g as TableRow,
107
+ T as Text,
108
+ W as WIDGET_FRAME_BODY_TEXT_CLASS,
109
+ a3 as WIDGET_FRAME_MIN_WIDTH_CLASS,
110
+ b4 as WIDGET_FRAME_OVERFLOW_TOLERANCE_PX,
111
+ c3 as WIDGET_FRAME_RESPONSIVE_SHELL_CLASS,
112
+ d2 as WIDGET_FRAME_SECTION_HEADING_CLASS,
113
+ e2 as WIDGET_FRAME_STORY_SHELL_DATA_ATTR,
114
+ f2 as WIDGET_FRAME_SUBTITLE_CLASS,
115
+ g2 as WIDGET_FRAME_SUPPORTING_LABELS_CLASS,
116
+ h2 as WIDGET_FRAME_SUPPORTING_LABEL_CLASS,
117
+ i2 as WIDGET_FRAME_WIDE_BODY_CLASS,
118
+ j2 as WidgetDetailCopy,
119
+ k2 as WidgetEmptyState,
120
+ l as WidgetEmptyStateText,
121
+ m as WidgetEmptyStateTitle,
122
+ n as WidgetErrorState,
123
+ o as WidgetFrame,
124
+ p as WidgetFrameDisclosure,
125
+ q as WidgetFrameDisclosureIcon,
126
+ r as WidgetFrameDisclosurePanel,
127
+ s as WidgetFrameDisclosureTrigger,
128
+ t2 as WidgetFrameSkeleton,
129
+ u as WidgetLoadingState,
130
+ v as WidgetSubtitle,
131
+ w as WidgetSuccessState,
132
+ w2 as buildFormFieldAriaDescribedBy,
133
+ b as buttonVariants,
134
+ h as codePanelVariants,
135
+ x2 as inputVariants,
136
+ s3 as surfacePanelVariants,
137
+ t as tableCellTruncateClassName,
138
+ i as tableCellWrapClassName,
139
+ j as tableMinWidthWideClassName,
140
+ k as tableNarrowContainerClassName,
141
+ y2 as textareaVariants,
142
+ x as widgetFrameDetailCardClass,
143
+ y as widgetFrameHasNoHorizontalOverflow,
144
+ z as widgetFrameStoryShellStyle
145
+ };
@@ -0,0 +1,8 @@
1
+ import type { HTMLAttributes, ReactNode } from "react";
2
+ export interface ActionRowProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
3
+ actions?: ReactNode;
4
+ actionsClassName?: string;
5
+ statuses?: ReactNode;
6
+ statusesClassName?: string;
7
+ }
8
+ export declare function ActionRow({ actions, actionsClassName, className, statuses, statusesClassName, ...props }: ActionRowProps): import("react").JSX.Element | null;
@@ -1,8 +1,6 @@
1
1
  /** Stable category path for `@you-agent-factory/components/layout`. */
2
- export const COMPONENTS_CATEGORY = "layout" as const;
3
-
2
+ export declare const COMPONENTS_CATEGORY: "layout";
4
3
  export type ComponentsCategory = typeof COMPONENTS_CATEGORY;
5
-
6
4
  export { ActionRow } from "./action-row";
7
5
  export type { ActionRowProps } from "./action-row";
8
6
  export { SurfacePanel, surfacePanelVariants } from "./surface-panel";
@@ -0,0 +1,9 @@
1
+ import { A } from "../chunks/action-row.js";
2
+ import { S, s } from "../chunks/surface-panel.js";
3
+ const COMPONENTS_CATEGORY = "layout";
4
+ export {
5
+ A as ActionRow,
6
+ COMPONENTS_CATEGORY,
7
+ S as SurfacePanel,
8
+ s as surfacePanelVariants
9
+ };
@@ -0,0 +1,15 @@
1
+ import { type HTMLAttributes } from "react";
2
+ type SurfacePanelPadding = "compact" | "default" | "none";
3
+ type SurfacePanelRadius = "lg" | "xl" | "2xl" | "3xl" | "full";
4
+ type SurfacePanelSurface = "high" | "low";
5
+ type SurfacePanelTone = "default" | "accent" | "selected";
6
+ export interface SurfacePanelProps extends HTMLAttributes<HTMLDivElement> {
7
+ asChild?: boolean;
8
+ padding?: SurfacePanelPadding;
9
+ radius?: SurfacePanelRadius;
10
+ surface?: SurfacePanelSurface;
11
+ tone?: SurfacePanelTone;
12
+ }
13
+ export declare function surfacePanelVariants({ className, padding, radius, surface, tone, }: Pick<SurfacePanelProps, "className" | "padding" | "radius" | "surface" | "tone">): string;
14
+ export declare const SurfacePanel: import("react").ForwardRefExoticComponent<SurfacePanelProps & import("react").RefAttributes<HTMLDivElement>>;
15
+ export {};
@@ -1,4 +1,3 @@
1
1
  /** Stable category path for `@you-agent-factory/components/navigation`. */
2
- export const COMPONENTS_CATEGORY = "navigation" as const;
3
-
2
+ export declare const COMPONENTS_CATEGORY: "navigation";
4
3
  export type ComponentsCategory = typeof COMPONENTS_CATEGORY;
@@ -0,0 +1,4 @@
1
+ const COMPONENTS_CATEGORY = "navigation";
2
+ export {
3
+ COMPONENTS_CATEGORY
4
+ };
@@ -0,0 +1,5 @@
1
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
2
+ import type { ComponentProps } from "react";
3
+ export declare const Collapsible: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ export declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
5
+ export declare function CollapsibleContent({ className, ...props }: ComponentProps<typeof CollapsiblePrimitive.Content>): import("react").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
2
+ import type { ComponentProps, HTMLAttributes } from "react";
3
+ export declare const Dialog: import("react").FC<DialogPrimitive.DialogProps>;
4
+ export declare const DialogTrigger: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
5
+ export declare const DialogPortal: import("react").FC<DialogPrimitive.DialogPortalProps>;
6
+ export declare const DialogClose: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
7
+ export declare function DialogOverlay({ className, ...props }: ComponentProps<typeof DialogPrimitive.Overlay>): import("react").JSX.Element;
8
+ export type DialogContentProps = ComponentProps<typeof DialogPrimitive.Content> & {
9
+ closeDisabled?: boolean;
10
+ closeLabel?: string;
11
+ };
12
+ export declare function DialogContent({ children, className, closeDisabled, closeLabel, ...props }: DialogContentProps): import("react").JSX.Element;
13
+ export declare function DialogHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
14
+ export declare function DialogFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
15
+ export declare function DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): import("react").JSX.Element;
16
+ export declare function DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ /** Stable category path for `@you-agent-factory/components/overlays`. */
2
+ export declare const COMPONENTS_CATEGORY: "overlays";
3
+ export type ComponentsCategory = typeof COMPONENTS_CATEGORY;
4
+ export { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "./collapsible";
5
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, } from "./dialog";
6
+ export type { DialogContentProps } from "./dialog";
7
+ export { OVERLAY_DIALOG_BODY_CLASS, OVERLAY_DIALOG_CONTENT_SHELL_CLASS, OVERLAY_FORM_GROUP_CLASS, } from "./overlay-layout";
8
+ export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./popover";
9
+ export { ScrollArea, ScrollBar } from "./scroll-area";
10
+ export type { ScrollAreaProps, ScrollBarProps } from "./scroll-area";
@@ -0,0 +1,27 @@
1
+ import { C, a, b, D, c, d, e, f, g, h, i, j, k, O, l, m, P, n, o, p, S, q } from "../chunks/scroll-area.js";
2
+ const COMPONENTS_CATEGORY = "overlays";
3
+ export {
4
+ COMPONENTS_CATEGORY,
5
+ C as Collapsible,
6
+ a as CollapsibleContent,
7
+ b as CollapsibleTrigger,
8
+ D as Dialog,
9
+ c as DialogClose,
10
+ d as DialogContent,
11
+ e as DialogDescription,
12
+ f as DialogFooter,
13
+ g as DialogHeader,
14
+ h as DialogOverlay,
15
+ i as DialogPortal,
16
+ j as DialogTitle,
17
+ k as DialogTrigger,
18
+ O as OVERLAY_DIALOG_BODY_CLASS,
19
+ l as OVERLAY_DIALOG_CONTENT_SHELL_CLASS,
20
+ m as OVERLAY_FORM_GROUP_CLASS,
21
+ P as Popover,
22
+ n as PopoverAnchor,
23
+ o as PopoverContent,
24
+ p as PopoverTrigger,
25
+ S as ScrollArea,
26
+ q as ScrollBar
27
+ };
@@ -0,0 +1,6 @@
1
+ /** Interior stack for dialog header, body, and footer regions. */
2
+ export declare const OVERLAY_FORM_GROUP_CLASS = "grid gap-layout-tight";
3
+ /** Dialog and modal body regions between header and footer. */
4
+ export declare const OVERLAY_DIALOG_BODY_CLASS = "grid gap-layout-group";
5
+ /** Radix dialog content shell spacing for package-owned dialogs. */
6
+ export declare const OVERLAY_DIALOG_CONTENT_SHELL_CLASS = "grid gap-layout-group p-layout-inset-dialog";
@@ -0,0 +1,6 @@
1
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
2
+ import type { ComponentProps } from "react";
3
+ export declare const Popover: import("react").FC<PopoverPrimitive.PopoverProps>;
4
+ export declare const PopoverTrigger: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
5
+ export declare const PopoverAnchor: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare function PopoverContent({ align, className, sideOffset, ...props }: ComponentProps<typeof PopoverPrimitive.Content>): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
2
+ import { type ComponentProps } from "react";
3
+ export type ScrollAreaProps = ComponentProps<typeof ScrollAreaPrimitive.Root> & {
4
+ viewportClassName?: string;
5
+ viewportProps?: ComponentProps<typeof ScrollAreaPrimitive.Viewport>;
6
+ };
7
+ export declare const ScrollArea: import("react").ForwardRefExoticComponent<Omit<ScrollAreaProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
+ export type ScrollBarProps = ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>;
9
+ export declare const ScrollBar: import("react").ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,5 @@
1
+ import { type AnchorHTMLAttributes } from "react";
2
+ import { type ButtonProps } from "./button";
3
+ export interface ButtonLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement>, Pick<ButtonProps, "size" | "tone"> {
4
+ }
5
+ export declare const ButtonLink: import("react").ForwardRefExoticComponent<ButtonLinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -0,0 +1,9 @@
1
+ import { type ButtonHTMLAttributes } from "react";
2
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
+ asChild?: boolean;
4
+ loading?: boolean;
5
+ tone?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "warning";
6
+ size?: "default" | "icon" | "iconPill" | "lg" | "pill" | "sm";
7
+ }
8
+ export declare const buttonVariants: ({ className, size, tone, }: Pick<ButtonProps, "className" | "size" | "tone">) => string;
9
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,10 @@
1
+ import { type ButtonProps } from "./button";
2
+ declare const ICON_BUTTON_SHELL_TONE_CLASS: {
3
+ readonly dangerGhost: "text-on-surface-subtle hover:border-af-danger-border hover:bg-error-container hover:text-on-error-container";
4
+ };
5
+ type IconButtonShellTone = ButtonProps["tone"] | keyof typeof ICON_BUTTON_SHELL_TONE_CLASS;
6
+ export interface IconButtonShellProps extends Omit<ButtonProps, "size" | "tone"> {
7
+ tone?: IconButtonShellTone;
8
+ }
9
+ export declare const IconButtonShell: import("react").ForwardRefExoticComponent<IconButtonShellProps & import("react").RefAttributes<HTMLButtonElement>>;
10
+ export {};
@@ -1,8 +1,6 @@
1
1
  /** Stable category path for `@you-agent-factory/components/primitives`. */
2
- export const COMPONENTS_CATEGORY = "primitives" as const;
3
-
2
+ export declare const COMPONENTS_CATEGORY: "primitives";
4
3
  export type ComponentsCategory = typeof COMPONENTS_CATEGORY;
5
-
6
4
  export { Button, buttonVariants } from "./button";
7
5
  export type { ButtonProps } from "./button";
8
6
  export { ButtonLink } from "./button-link";
@@ -11,21 +9,6 @@ export { IconButtonShell } from "./icon-button-shell";
11
9
  export type { IconButtonShellProps } from "./icon-button-shell";
12
10
  export { PackageText } from "./package-text";
13
11
  export type { PackageTextProps, PackageTextVariant } from "./package-text";
14
-
15
12
  export { Code, Heading, Label, Text } from "./typography";
16
13
  export type { CodeProps, HeadingProps, LabelProps, TextProps, TextVariant } from "./typography";
17
-
18
- export {
19
- BODY_CODE_CLASS,
20
- BODY_TEXT_CLASS,
21
- CAPTION_TEXT_CLASS,
22
- DENSE_BODY_TEXT_CLASS,
23
- MUTED_TEXT_CLASS,
24
- PAGE_HEADING_CLASS,
25
- SECTION_HEADING_CLASS,
26
- SUPPORTING_CODE_CLASS,
27
- SUPPORTING_LABEL_CLASS,
28
- SUPPORTING_TEXT_CLASS,
29
- TEXT_TRUNCATE_CLASS,
30
- TEXT_WRAP_CLASS,
31
- } from "./typography-roles";
14
+ export { BODY_CODE_CLASS, BODY_TEXT_CLASS, CAPTION_TEXT_CLASS, DENSE_BODY_TEXT_CLASS, MUTED_TEXT_CLASS, PAGE_HEADING_CLASS, SECTION_HEADING_CLASS, SUPPORTING_CODE_CLASS, SUPPORTING_LABEL_CLASS, SUPPORTING_TEXT_CLASS, TEXT_TRUNCATE_CLASS, TEXT_WRAP_CLASS, } from "./typography-roles";
@@ -0,0 +1,49 @@
1
+ import { B, b } from "../chunks/button.js";
2
+ import { B as B2, C, H, I, L, T } from "../chunks/typography.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { c as cn } from "../chunks/cn.js";
5
+ import { a, B as B3, C as C2, D, M, P, S, b as b2, c, d, T as T2, e } from "../chunks/typography-roles.js";
6
+ function PackageText({
7
+ children,
8
+ className,
9
+ variant = "body",
10
+ ...props
11
+ }) {
12
+ return /* @__PURE__ */ jsx(
13
+ "p",
14
+ {
15
+ className: cn(
16
+ variant === "title" ? "text-title-large" : "text-body-medium",
17
+ "text-on-surface",
18
+ className
19
+ ),
20
+ ...props,
21
+ children
22
+ }
23
+ );
24
+ }
25
+ const COMPONENTS_CATEGORY = "primitives";
26
+ export {
27
+ a as BODY_CODE_CLASS,
28
+ B3 as BODY_TEXT_CLASS,
29
+ B as Button,
30
+ B2 as ButtonLink,
31
+ C2 as CAPTION_TEXT_CLASS,
32
+ COMPONENTS_CATEGORY,
33
+ C as Code,
34
+ D as DENSE_BODY_TEXT_CLASS,
35
+ H as Heading,
36
+ I as IconButtonShell,
37
+ L as Label,
38
+ M as MUTED_TEXT_CLASS,
39
+ P as PAGE_HEADING_CLASS,
40
+ PackageText,
41
+ S as SECTION_HEADING_CLASS,
42
+ b2 as SUPPORTING_CODE_CLASS,
43
+ c as SUPPORTING_LABEL_CLASS,
44
+ d as SUPPORTING_TEXT_CLASS,
45
+ T2 as TEXT_TRUNCATE_CLASS,
46
+ e as TEXT_WRAP_CLASS,
47
+ T as Text,
48
+ b as buttonVariants
49
+ };
@@ -0,0 +1,6 @@
1
+ import type { ComponentPropsWithoutRef } from "react";
2
+ export type PackageTextVariant = "body" | "title";
3
+ export type PackageTextProps = ComponentPropsWithoutRef<"p"> & {
4
+ variant?: PackageTextVariant;
5
+ };
6
+ export declare function PackageText({ children, className, variant, ...props }: PackageTextProps): import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ export declare const PAGE_HEADING_CLASS = "af-page-heading";
2
+ export declare const SECTION_HEADING_CLASS = "af-section-heading";
3
+ export declare const BODY_TEXT_CLASS = "af-body-text";
4
+ export declare const SUPPORTING_TEXT_CLASS = "af-supporting-text";
5
+ export declare const MUTED_TEXT_CLASS = "af-muted-text";
6
+ export declare const CAPTION_TEXT_CLASS = "af-caption-text";
7
+ export declare const DENSE_BODY_TEXT_CLASS = "af-dense-body-text";
8
+ export declare const SUPPORTING_LABEL_CLASS = "af-supporting-label";
9
+ export declare const BODY_CODE_CLASS = "af-body-code";
10
+ export declare const SUPPORTING_CODE_CLASS = "af-supporting-code";
11
+ export declare const TEXT_TRUNCATE_CLASS = "af-text-truncate";
12
+ export declare const TEXT_WRAP_CLASS = "af-text-wrap";
@@ -0,0 +1,36 @@
1
+ import { type ElementType, type HTMLAttributes, type ReactNode } from "react";
2
+ type TypographyElementProps = HTMLAttributes<HTMLElement> & {
3
+ as?: ElementType;
4
+ children?: ReactNode;
5
+ dateTime?: string;
6
+ htmlFor?: string;
7
+ type?: "button" | "reset" | "submit";
8
+ };
9
+ type TypographyOverflowProps = {
10
+ truncate?: boolean;
11
+ wrap?: boolean;
12
+ };
13
+ declare const TEXT_VARIANT_CLASS: {
14
+ readonly body: "af-body-text";
15
+ readonly supporting: "af-supporting-text";
16
+ readonly muted: "af-muted-text";
17
+ readonly caption: "af-caption-text";
18
+ readonly dense: "af-dense-body-text";
19
+ };
20
+ export type TextVariant = keyof typeof TEXT_VARIANT_CLASS;
21
+ export interface TextProps extends TypographyElementProps, TypographyOverflowProps {
22
+ variant?: TextVariant;
23
+ }
24
+ export declare const Text: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<HTMLElement>>;
25
+ export interface HeadingProps extends TypographyElementProps, TypographyOverflowProps {
26
+ level?: "page" | "section";
27
+ }
28
+ export declare const Heading: import("react").ForwardRefExoticComponent<HeadingProps & import("react").RefAttributes<HTMLElement>>;
29
+ export interface LabelProps extends TypographyElementProps, TypographyOverflowProps {
30
+ }
31
+ export declare const Label: import("react").ForwardRefExoticComponent<LabelProps & import("react").RefAttributes<HTMLElement>>;
32
+ export interface CodeProps extends TypographyElementProps {
33
+ size?: "body" | "supporting";
34
+ }
35
+ export declare const Code: import("react").ForwardRefExoticComponent<CodeProps & import("react").RefAttributes<HTMLElement>>;
36
+ export {};
@@ -0,0 +1,14 @@
1
+ /** Stable category path for `@you-agent-factory/components/recipes`. */
2
+ export declare const COMPONENTS_CATEGORY: "recipes";
3
+ export type ComponentsCategory = typeof COMPONENTS_CATEGORY;
4
+ export { WidgetFrameDisclosure, WidgetFrameDisclosureIcon, WidgetFrameDisclosurePanel, WidgetFrameDisclosureTrigger, } from "./widget-frame-disclosure";
5
+ export type { WidgetFrameDisclosureIconProps, WidgetFrameDisclosurePanelProps, WidgetFrameDisclosureProps, WidgetFrameDisclosureTriggerProps, } from "./widget-frame-disclosure";
6
+ export { WidgetDetailCopy, WidgetEmptyState, WidgetEmptyStateText, WidgetEmptyStateTitle, WidgetSubtitle, } from "./widget-frame-content";
7
+ export type { WidgetDetailCopyProps, WidgetEmptyStateProps, WidgetEmptyStateTextProps, WidgetEmptyStateTitleProps, WidgetSubtitleProps, } from "./widget-frame-content";
8
+ export { WidgetFrameSkeleton } from "./widget-frame-skeleton";
9
+ export { WidgetErrorState, WidgetLoadingState, WidgetSuccessState, } from "./widget-frame-states";
10
+ export type { WidgetErrorStateProps, WidgetLoadingStateProps, WidgetSuccessStateProps, } from "./widget-frame-states";
11
+ export { WIDGET_FRAME_MIN_WIDTH_CLASS, WIDGET_FRAME_OVERFLOW_TOLERANCE_PX, WIDGET_FRAME_RESPONSIVE_SHELL_CLASS, WIDGET_FRAME_STORY_SHELL_DATA_ATTR, WIDGET_FRAME_WIDE_BODY_CLASS, widgetFrameDetailCardClass, widgetFrameHasNoHorizontalOverflow, widgetFrameStoryShellStyle, } from "./widget-frame-layout";
12
+ export { WidgetFrame } from "./widget-frame";
13
+ export type { WidgetFrameProps } from "./widget-frame";
14
+ export { WIDGET_FRAME_BODY_TEXT_CLASS, WIDGET_FRAME_SECTION_HEADING_CLASS, WIDGET_FRAME_SUBTITLE_CLASS, WIDGET_FRAME_SUPPORTING_LABEL_CLASS, WIDGET_FRAME_SUPPORTING_LABELS_CLASS, } from "./widget-frame-typography";
@@ -0,0 +1,32 @@
1
+ import { W, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z } from "../chunks/widget-frame.js";
2
+ const COMPONENTS_CATEGORY = "recipes";
3
+ export {
4
+ COMPONENTS_CATEGORY,
5
+ W as WIDGET_FRAME_BODY_TEXT_CLASS,
6
+ a as WIDGET_FRAME_MIN_WIDTH_CLASS,
7
+ b as WIDGET_FRAME_OVERFLOW_TOLERANCE_PX,
8
+ c as WIDGET_FRAME_RESPONSIVE_SHELL_CLASS,
9
+ d as WIDGET_FRAME_SECTION_HEADING_CLASS,
10
+ e as WIDGET_FRAME_STORY_SHELL_DATA_ATTR,
11
+ f as WIDGET_FRAME_SUBTITLE_CLASS,
12
+ g as WIDGET_FRAME_SUPPORTING_LABELS_CLASS,
13
+ h as WIDGET_FRAME_SUPPORTING_LABEL_CLASS,
14
+ i as WIDGET_FRAME_WIDE_BODY_CLASS,
15
+ j as WidgetDetailCopy,
16
+ k as WidgetEmptyState,
17
+ l as WidgetEmptyStateText,
18
+ m as WidgetEmptyStateTitle,
19
+ n as WidgetErrorState,
20
+ o as WidgetFrame,
21
+ p as WidgetFrameDisclosure,
22
+ q as WidgetFrameDisclosureIcon,
23
+ r as WidgetFrameDisclosurePanel,
24
+ s as WidgetFrameDisclosureTrigger,
25
+ t as WidgetFrameSkeleton,
26
+ u as WidgetLoadingState,
27
+ v as WidgetSubtitle,
28
+ w as WidgetSuccessState,
29
+ x as widgetFrameDetailCardClass,
30
+ y as widgetFrameHasNoHorizontalOverflow,
31
+ z as widgetFrameStoryShellStyle
32
+ };
@@ -0,0 +1,24 @@
1
+ import type { ElementType, HTMLAttributes, ReactNode } from "react";
2
+ export interface WidgetSubtitleProps extends HTMLAttributes<HTMLElement> {
3
+ as?: ElementType;
4
+ children: ReactNode;
5
+ }
6
+ export declare function WidgetSubtitle({ as: Component, children, className, ...props }: WidgetSubtitleProps): import("react").JSX.Element;
7
+ export interface WidgetDetailCopyProps extends HTMLAttributes<HTMLParagraphElement> {
8
+ children: ReactNode;
9
+ }
10
+ export declare function WidgetDetailCopy({ children, className, ...props }: WidgetDetailCopyProps): import("react").JSX.Element;
11
+ export interface WidgetEmptyStateProps extends HTMLAttributes<HTMLDivElement> {
12
+ children: ReactNode;
13
+ compact?: boolean;
14
+ }
15
+ export declare function WidgetEmptyState({ children, className, compact, ...props }: WidgetEmptyStateProps): import("react").JSX.Element;
16
+ export interface WidgetEmptyStateTitleProps extends HTMLAttributes<HTMLElement> {
17
+ as?: ElementType;
18
+ children: ReactNode;
19
+ }
20
+ export declare function WidgetEmptyStateTitle({ as: Component, children, className, ...props }: WidgetEmptyStateTitleProps): import("react").JSX.Element;
21
+ export interface WidgetEmptyStateTextProps extends HTMLAttributes<HTMLParagraphElement> {
22
+ children: ReactNode;
23
+ }
24
+ export declare function WidgetEmptyStateText({ children, className, ...props }: WidgetEmptyStateTextProps): import("react").JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { type ButtonHTMLAttributes, type HTMLAttributes, type ReactNode } from "react";
2
+ export interface WidgetFrameDisclosureProps extends HTMLAttributes<HTMLDivElement> {
3
+ children: ReactNode;
4
+ }
5
+ export declare function WidgetFrameDisclosure({ children, className, ...props }: WidgetFrameDisclosureProps): import("react").JSX.Element;
6
+ export interface WidgetFrameDisclosureIconProps {
7
+ expanded: boolean;
8
+ className?: string;
9
+ }
10
+ export declare function WidgetFrameDisclosureIcon({ className, expanded, }: WidgetFrameDisclosureIconProps): import("react").JSX.Element;
11
+ type WidgetFrameDisclosureTriggerBaseProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "aria-expanded" | "aria-controls" | "children" | "type"> & {
12
+ controlsID: string;
13
+ expanded: boolean;
14
+ onExpandedChange?: (expanded: boolean) => void;
15
+ type?: "button";
16
+ };
17
+ type WidgetFrameDisclosureTriggerWithLabelProps = WidgetFrameDisclosureTriggerBaseProps & {
18
+ children: ReactNode;
19
+ "aria-label"?: string;
20
+ };
21
+ type WidgetFrameDisclosureTriggerIconOnlyProps = WidgetFrameDisclosureTriggerBaseProps & {
22
+ children?: never;
23
+ "aria-label": string;
24
+ };
25
+ export type WidgetFrameDisclosureTriggerProps = WidgetFrameDisclosureTriggerWithLabelProps | WidgetFrameDisclosureTriggerIconOnlyProps;
26
+ export declare const WidgetFrameDisclosureTrigger: import("react").ForwardRefExoticComponent<WidgetFrameDisclosureTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
27
+ export interface WidgetFrameDisclosurePanelProps extends HTMLAttributes<HTMLDivElement> {
28
+ children: ReactNode;
29
+ expanded: boolean;
30
+ id: string;
31
+ }
32
+ export declare function WidgetFrameDisclosurePanel({ children, className, expanded, id, ...props }: WidgetFrameDisclosurePanelProps): import("react").JSX.Element;
33
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { CSSProperties } from "react";
2
+ export declare const WIDGET_FRAME_MIN_WIDTH_CLASS = "min-w-0";
3
+ export declare const WIDGET_FRAME_WIDE_BODY_CLASS = "min-h-72";
4
+ export declare const WIDGET_FRAME_RESPONSIVE_SHELL_CLASS = "min-w-0 w-full";
5
+ export declare const WIDGET_FRAME_STORY_SHELL_DATA_ATTR = "data-widget-frame-story-shell";
6
+ export declare const WIDGET_FRAME_OVERFLOW_TOLERANCE_PX = 1;
7
+ /** Detail-card layout recipe for description lists inside widget frames. */
8
+ export declare const widgetFrameDetailCardClass: string;
9
+ export declare function widgetFrameStoryShellStyle(maxWidth: string): {
10
+ style: CSSProperties;
11
+ };
12
+ export declare function widgetFrameHasNoHorizontalOverflow(element: HTMLElement, tolerancePx?: number): boolean;
@@ -0,0 +1,2 @@
1
+ import type { HTMLAttributes } from "react";
2
+ export declare function WidgetFrameSkeleton({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import type { HTMLAttributes, ReactNode } from "react";
2
+ export interface WidgetLoadingStateProps extends HTMLAttributes<HTMLDivElement> {
3
+ children: ReactNode;
4
+ placeholder?: ReactNode;
5
+ showDefaultPlaceholder?: boolean;
6
+ }
7
+ export declare function WidgetLoadingState({ children, className, placeholder, showDefaultPlaceholder, ...props }: WidgetLoadingStateProps): import("react").JSX.Element;
8
+ export interface WidgetErrorStateProps extends HTMLAttributes<HTMLDivElement> {
9
+ children: ReactNode;
10
+ }
11
+ export declare function WidgetErrorState({ children, className, ...props }: WidgetErrorStateProps): import("react").JSX.Element;
12
+ export interface WidgetSuccessStateProps extends HTMLAttributes<HTMLDivElement> {
13
+ children: ReactNode;
14
+ }
15
+ export declare function WidgetSuccessState({ children, className, ...props }: WidgetSuccessStateProps): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ /** Section heading typography for widget frame titles and empty-state headings. */
2
+ export declare const WIDGET_FRAME_SECTION_HEADING_CLASS = "text-title-large uppercase text-on-surface";
3
+ /** Body copy typography for widget frame detail regions. */
4
+ export declare const WIDGET_FRAME_BODY_TEXT_CLASS = "text-body-medium text-on-surface-variant";
5
+ /** Monospace subtitle typography for metric and metadata values. */
6
+ export declare const WIDGET_FRAME_SUBTITLE_CLASS = "font-mono text-display-small text-on-surface-variant [overflow-wrap:anywhere]";
7
+ /** Supporting label typography for description-list terms. */
8
+ export declare const WIDGET_FRAME_SUPPORTING_LABEL_CLASS = "text-label-medium uppercase text-on-surface-subtle";
9
+ /** Description-list label styling for widget detail cards. */
10
+ export declare const WIDGET_FRAME_SUPPORTING_LABELS_CLASS = "[&_dt]:text-label-medium [&_dt]:uppercase [&_dt]:text-on-surface-subtle";
@@ -0,0 +1,12 @@
1
+ import type { HTMLAttributes, ReactNode } from "react";
2
+ export interface WidgetFrameProps {
3
+ bodyClassName?: string;
4
+ bodyProps?: HTMLAttributes<HTMLDivElement>;
5
+ bodyScroll?: boolean;
6
+ children: ReactNode;
7
+ className?: string;
8
+ headerAction?: ReactNode;
9
+ title: string;
10
+ wide?: boolean;
11
+ }
12
+ export declare function WidgetFrame({ bodyClassName, bodyProps, bodyScroll, children, className, headerAction, title, wide, }: WidgetFrameProps): import("react").JSX.Element;