@peerproblem/sw3-ui 0.0.0-stage → 0.3.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 (144) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +109 -2
  3. package/agent/components/accordion.md +95 -0
  4. package/agent/components/action-square.md +106 -0
  5. package/agent/components/agent-bridge.md +87 -0
  6. package/agent/components/agent-console.md +123 -0
  7. package/agent/components/alert-dialog.md +82 -0
  8. package/agent/components/app-shell.md +105 -0
  9. package/agent/components/area-chart.md +56 -0
  10. package/agent/components/async-options.md +47 -0
  11. package/agent/components/autocomplete.md +69 -0
  12. package/agent/components/avatar.md +88 -0
  13. package/agent/components/badge.md +51 -0
  14. package/agent/components/bar-chart.md +56 -0
  15. package/agent/components/bar-list.md +49 -0
  16. package/agent/components/breadcrumbs.md +43 -0
  17. package/agent/components/button.md +109 -0
  18. package/agent/components/calendar.md +114 -0
  19. package/agent/components/canvas.md +105 -0
  20. package/agent/components/card.md +78 -0
  21. package/agent/components/carousel.md +113 -0
  22. package/agent/components/chart-card.md +41 -0
  23. package/agent/components/chart-surface.md +56 -0
  24. package/agent/components/checkbox.md +88 -0
  25. package/agent/components/citation-chip.md +61 -0
  26. package/agent/components/collapsible.md +69 -0
  27. package/agent/components/color-picker.md +82 -0
  28. package/agent/components/combobox.md +104 -0
  29. package/agent/components/command.md +92 -0
  30. package/agent/components/dashboard-grid.md +73 -0
  31. package/agent/components/date-input.md +87 -0
  32. package/agent/components/date-picker.md +122 -0
  33. package/agent/components/dialog.md +97 -0
  34. package/agent/components/donut-chart.md +50 -0
  35. package/agent/components/drawer.md +101 -0
  36. package/agent/components/empty-state.md +52 -0
  37. package/agent/components/field.md +80 -0
  38. package/agent/components/file-input.md +84 -0
  39. package/agent/components/hover-card.md +64 -0
  40. package/agent/components/image-cropper.md +77 -0
  41. package/agent/components/input.md +49 -0
  42. package/agent/components/label.md +53 -0
  43. package/agent/components/line-chart.md +60 -0
  44. package/agent/components/listbox.md +84 -0
  45. package/agent/components/map-view.md +104 -0
  46. package/agent/components/menu.md +117 -0
  47. package/agent/components/menubar.md +67 -0
  48. package/agent/components/meter.md +59 -0
  49. package/agent/components/navigation-menu.md +98 -0
  50. package/agent/components/number-input.md +81 -0
  51. package/agent/components/otp-input.md +67 -0
  52. package/agent/components/pagination.md +80 -0
  53. package/agent/components/password-input.md +67 -0
  54. package/agent/components/pill-button.md +116 -0
  55. package/agent/components/popover.md +85 -0
  56. package/agent/components/poster-card.md +61 -0
  57. package/agent/components/preferences.md +92 -0
  58. package/agent/components/progress.md +63 -0
  59. package/agent/components/provider.md +47 -0
  60. package/agent/components/radio.md +91 -0
  61. package/agent/components/rating.md +66 -0
  62. package/agent/components/reorder.md +61 -0
  63. package/agent/components/resizable.md +87 -0
  64. package/agent/components/scatter-chart.md +49 -0
  65. package/agent/components/scroll-area.md +81 -0
  66. package/agent/components/segmented-control.md +56 -0
  67. package/agent/components/select.md +130 -0
  68. package/agent/components/separator.md +60 -0
  69. package/agent/components/shortcuts.md +50 -0
  70. package/agent/components/sidebar-nav.md +68 -0
  71. package/agent/components/skeleton.md +58 -0
  72. package/agent/components/slider.md +79 -0
  73. package/agent/components/sparkline.md +39 -0
  74. package/agent/components/squircle.md +58 -0
  75. package/agent/components/stat.md +58 -0
  76. package/agent/components/switch.md +48 -0
  77. package/agent/components/table.md +58 -0
  78. package/agent/components/tabs.md +108 -0
  79. package/agent/components/textarea.md +68 -0
  80. package/agent/components/time-input.md +84 -0
  81. package/agent/components/timeline.md +91 -0
  82. package/agent/components/toast.md +85 -0
  83. package/agent/components/toggle.md +76 -0
  84. package/agent/components/token-input.md +66 -0
  85. package/agent/components/toolbar.md +76 -0
  86. package/agent/components/tooltip.md +83 -0
  87. package/agent/components/tracker.md +47 -0
  88. package/agent/components/tree.md +87 -0
  89. package/agent/components/treemap.md +72 -0
  90. package/agent/components/trend-chart.md +80 -0
  91. package/agent/components/trigger-menu.md +67 -0
  92. package/agent/components/typography.md +51 -0
  93. package/agent/components/waterfall.md +78 -0
  94. package/agent/components/week-schedule.md +113 -0
  95. package/agent/llms/actions-and-layout.txt +1749 -0
  96. package/agent/llms/agents.txt +505 -0
  97. package/agent/llms/charts.txt +778 -0
  98. package/agent/llms/dashboards.txt +457 -0
  99. package/agent/llms/extend.txt +132 -0
  100. package/agent/llms/extras.txt +527 -0
  101. package/agent/llms/forms.txt +2152 -0
  102. package/agent/llms/foundations.txt +674 -0
  103. package/agent/llms/hooks.txt +178 -0
  104. package/agent/llms/maps.txt +229 -0
  105. package/agent/llms/overlays-and-navigation.txt +1167 -0
  106. package/agent/llms-full.txt +8717 -0
  107. package/agent/llms.txt +145 -0
  108. package/agent/registry.json +11289 -0
  109. package/agent/tokens.md +66 -0
  110. package/dist/agent/index.d.ts +235 -0
  111. package/dist/agent/index.js +21 -0
  112. package/dist/card-Ipm-Cj5f.d.ts +490 -0
  113. package/dist/charts/index.d.ts +289 -0
  114. package/dist/charts/index.js +815 -0
  115. package/dist/check/cli.d.ts +1 -0
  116. package/dist/check/cli.js +48 -0
  117. package/dist/check/rendered.d.ts +11 -0
  118. package/dist/check/rendered.js +77 -0
  119. package/dist/check/source.d.ts +13 -0
  120. package/dist/check/source.js +182 -0
  121. package/dist/chunk-3DXBM65D.js +65 -0
  122. package/dist/chunk-3H5X4ZP6.js +55 -0
  123. package/dist/chunk-6XC4BC5C.js +92 -0
  124. package/dist/chunk-7H6TEAWD.js +507 -0
  125. package/dist/chunk-I63ZTJOI.js +1089 -0
  126. package/dist/chunk-JCIRUM4W.js +33 -0
  127. package/dist/chunk-LTBEHZ3P.js +25 -0
  128. package/dist/chunk-QDPPLO4U.js +60 -0
  129. package/dist/chunk-U2XFBPU4.js +56 -0
  130. package/dist/chunk-UY2WH5AY.js +681 -0
  131. package/dist/extras.d.ts +203 -0
  132. package/dist/extras.js +904 -0
  133. package/dist/icons-BJiGEAnU.d.ts +68 -0
  134. package/dist/index.d.ts +3737 -0
  135. package/dist/index.js +14477 -0
  136. package/dist/map/index.d.ts +115 -0
  137. package/dist/map/index.js +394 -0
  138. package/dist/meta/index.d.ts +3314 -0
  139. package/dist/meta/index.js +5106 -0
  140. package/dist/rules-1RIZ_JZr.d.ts +38 -0
  141. package/dist/styles.css +4037 -0
  142. package/dist/themes/calm.css +42 -0
  143. package/dist/themes/frost.css +40 -0
  144. package/package.json +142 -4
@@ -0,0 +1,490 @@
1
+ import * as react from 'react';
2
+ import { ReactNode } from 'react';
3
+ import { HTMLMotionProps } from 'motion/react';
4
+
5
+ /**
6
+ * Design tokens — the single source of truth.
7
+ *
8
+ * Edit values here, then run `npm run agent:build`. That regenerates
9
+ * `src/styles/tokens.css` (CSS variables) and the agent registry, so humans,
10
+ * CSS and agents always agree on the same numbers.
11
+ *
12
+ * Every color token has a light and a dark value. CSS variable names are
13
+ * `--sw-<group>-<name>` for groups and `--sw-<name>` for colors.
14
+ */
15
+ declare const color: {
16
+ readonly canvas: {
17
+ readonly light: "#f0f2f5";
18
+ readonly dark: "#101010";
19
+ readonly usage: "Page background behind cards and posters.";
20
+ };
21
+ readonly background: {
22
+ readonly light: "#ffffff";
23
+ readonly dark: "#0a0a0a";
24
+ readonly usage: "Surface of cards, inputs and posters.";
25
+ };
26
+ readonly foreground: {
27
+ readonly light: "#0a0a0a";
28
+ readonly dark: "#fafafa";
29
+ readonly usage: "Primary text and the primary (ink) button fill.";
30
+ };
31
+ readonly muted: {
32
+ readonly light: "#f5f5f5";
33
+ readonly dark: "#262626";
34
+ readonly usage: "Quiet fills: secondary buttons, tracks, wells.";
35
+ };
36
+ readonly 'muted-foreground': {
37
+ readonly light: "#6f6f6f";
38
+ readonly dark: "#a1a1a1";
39
+ readonly usage: "Secondary text, captions, axis labels.";
40
+ };
41
+ readonly subtle: {
42
+ readonly light: "#5d5d5d";
43
+ readonly dark: "#a4a4a4";
44
+ readonly usage: "Body copy one step quieter than foreground.";
45
+ };
46
+ readonly frame: {
47
+ readonly light: "#c8c8c8";
48
+ readonly dark: "#303030";
49
+ readonly usage: "Card and poster borders (1px).";
50
+ };
51
+ readonly hairline: {
52
+ readonly light: "#ebebeb";
53
+ readonly dark: "#1b1b1b";
54
+ readonly usage: "Dividers, hatch patterns, grid lines.";
55
+ };
56
+ readonly border: {
57
+ readonly light: "#e5e5e5";
58
+ readonly dark: "rgba(255,255,255,0.1)";
59
+ readonly usage: "Input and control borders.";
60
+ };
61
+ readonly accent: {
62
+ readonly light: "#424242";
63
+ readonly dark: "#c9c9c9";
64
+ readonly usage: "Emphasis for text, focus rings and selected indicators. Apps can supply a brand color.";
65
+ };
66
+ readonly 'accent-solid': {
67
+ readonly light: "#0a0a0a";
68
+ readonly dark: "#fafafa";
69
+ readonly usage: "Fill for accent buttons and selected controls.";
70
+ };
71
+ readonly 'accent-solid-hover': {
72
+ readonly light: "#2d2d2d";
73
+ readonly dark: "#dedede";
74
+ readonly usage: "Hover fill for accent-solid.";
75
+ };
76
+ readonly 'accent-foreground': {
77
+ readonly light: "#ffffff";
78
+ readonly dark: "#0a0a0a";
79
+ readonly usage: "Text and marks on accent-solid.";
80
+ };
81
+ readonly success: {
82
+ readonly light: "#00a74a";
83
+ readonly dark: "#7bf1a8";
84
+ readonly usage: "Positive deltas, success state.";
85
+ };
86
+ readonly warning: {
87
+ readonly light: "#c27800";
88
+ readonly dark: "#f5b544";
89
+ readonly usage: "Caution: meters in the sub-optimum range, warning toasts.";
90
+ };
91
+ readonly danger: {
92
+ readonly light: "#e40014";
93
+ readonly dark: "#ff6568";
94
+ readonly usage: "Destructive actions, negative deltas, errors.";
95
+ };
96
+ readonly selection: {
97
+ readonly light: "#e4e4e4";
98
+ readonly dark: "#323232";
99
+ readonly usage: "Text selection and soft selected backgrounds.";
100
+ };
101
+ };
102
+ /**
103
+ * Corner radius in px for smoothed squircle surfaces.
104
+ */
105
+ declare const radius: {
106
+ readonly none: 0;
107
+ readonly xs: 6;
108
+ readonly sm: 10;
109
+ readonly md: 14;
110
+ readonly lg: 20;
111
+ readonly xl: 28;
112
+ readonly '2xl': 36;
113
+ readonly full: 9999;
114
+ };
115
+ /**
116
+ * Corner smoothing from 0 to 1. SW3 uses 0.6 by default.
117
+ */
118
+ declare const smoothing: {
119
+ readonly none: 0;
120
+ readonly soft: 0.6;
121
+ readonly max: 1;
122
+ };
123
+ declare const tokens: {
124
+ color: {
125
+ readonly canvas: {
126
+ readonly light: "#f0f2f5";
127
+ readonly dark: "#101010";
128
+ readonly usage: "Page background behind cards and posters.";
129
+ };
130
+ readonly background: {
131
+ readonly light: "#ffffff";
132
+ readonly dark: "#0a0a0a";
133
+ readonly usage: "Surface of cards, inputs and posters.";
134
+ };
135
+ readonly foreground: {
136
+ readonly light: "#0a0a0a";
137
+ readonly dark: "#fafafa";
138
+ readonly usage: "Primary text and the primary (ink) button fill.";
139
+ };
140
+ readonly muted: {
141
+ readonly light: "#f5f5f5";
142
+ readonly dark: "#262626";
143
+ readonly usage: "Quiet fills: secondary buttons, tracks, wells.";
144
+ };
145
+ readonly 'muted-foreground': {
146
+ readonly light: "#6f6f6f";
147
+ readonly dark: "#a1a1a1";
148
+ readonly usage: "Secondary text, captions, axis labels.";
149
+ };
150
+ readonly subtle: {
151
+ readonly light: "#5d5d5d";
152
+ readonly dark: "#a4a4a4";
153
+ readonly usage: "Body copy one step quieter than foreground.";
154
+ };
155
+ readonly frame: {
156
+ readonly light: "#c8c8c8";
157
+ readonly dark: "#303030";
158
+ readonly usage: "Card and poster borders (1px).";
159
+ };
160
+ readonly hairline: {
161
+ readonly light: "#ebebeb";
162
+ readonly dark: "#1b1b1b";
163
+ readonly usage: "Dividers, hatch patterns, grid lines.";
164
+ };
165
+ readonly border: {
166
+ readonly light: "#e5e5e5";
167
+ readonly dark: "rgba(255,255,255,0.1)";
168
+ readonly usage: "Input and control borders.";
169
+ };
170
+ readonly accent: {
171
+ readonly light: "#424242";
172
+ readonly dark: "#c9c9c9";
173
+ readonly usage: "Emphasis for text, focus rings and selected indicators. Apps can supply a brand color.";
174
+ };
175
+ readonly 'accent-solid': {
176
+ readonly light: "#0a0a0a";
177
+ readonly dark: "#fafafa";
178
+ readonly usage: "Fill for accent buttons and selected controls.";
179
+ };
180
+ readonly 'accent-solid-hover': {
181
+ readonly light: "#2d2d2d";
182
+ readonly dark: "#dedede";
183
+ readonly usage: "Hover fill for accent-solid.";
184
+ };
185
+ readonly 'accent-foreground': {
186
+ readonly light: "#ffffff";
187
+ readonly dark: "#0a0a0a";
188
+ readonly usage: "Text and marks on accent-solid.";
189
+ };
190
+ readonly success: {
191
+ readonly light: "#00a74a";
192
+ readonly dark: "#7bf1a8";
193
+ readonly usage: "Positive deltas, success state.";
194
+ };
195
+ readonly warning: {
196
+ readonly light: "#c27800";
197
+ readonly dark: "#f5b544";
198
+ readonly usage: "Caution: meters in the sub-optimum range, warning toasts.";
199
+ };
200
+ readonly danger: {
201
+ readonly light: "#e40014";
202
+ readonly dark: "#ff6568";
203
+ readonly usage: "Destructive actions, negative deltas, errors.";
204
+ };
205
+ readonly selection: {
206
+ readonly light: "#e4e4e4";
207
+ readonly dark: "#323232";
208
+ readonly usage: "Text selection and soft selected backgrounds.";
209
+ };
210
+ };
211
+ chart: {
212
+ readonly light: readonly ["#006bff", "#0a0a0a", "#00a74a", "#ff7a00", "#8b5cf6", "#e40014", "#00b8d9", "#a1a1a1"];
213
+ readonly dark: readonly ["#5fa1f3", "#fafafa", "#7bf1a8", "#ffa94d", "#b197fc", "#ff6568", "#66d9e8", "#737373"];
214
+ };
215
+ radius: {
216
+ readonly none: 0;
217
+ readonly xs: 6;
218
+ readonly sm: 10;
219
+ readonly md: 14;
220
+ readonly lg: 20;
221
+ readonly xl: 28;
222
+ readonly '2xl': 36;
223
+ readonly full: 9999;
224
+ };
225
+ smoothing: {
226
+ readonly none: 0;
227
+ readonly soft: 0.6;
228
+ readonly max: 1;
229
+ };
230
+ space: {
231
+ readonly 0: 0;
232
+ readonly 1: 4;
233
+ readonly 2: 8;
234
+ readonly 3: 12;
235
+ readonly 4: 16;
236
+ readonly 5: 20;
237
+ readonly 6: 24;
238
+ readonly 8: 32;
239
+ readonly 10: 40;
240
+ readonly 12: 48;
241
+ readonly 16: 64;
242
+ readonly 20: 80;
243
+ };
244
+ font: {
245
+ readonly sans: "'Geist Variable', 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif";
246
+ readonly mono: "'Geist Mono Variable', 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace";
247
+ };
248
+ type: {
249
+ readonly caption: {
250
+ readonly size: 11;
251
+ readonly line: 1.55;
252
+ readonly tracking: "0.08em";
253
+ readonly weight: 400;
254
+ readonly family: "mono";
255
+ readonly usage: "UPPERCASE mono labels on posters.";
256
+ };
257
+ readonly xs: {
258
+ readonly size: 12;
259
+ readonly line: 1.33;
260
+ readonly tracking: "0";
261
+ readonly weight: 400;
262
+ readonly family: "sans";
263
+ readonly usage: "Meta text, badges.";
264
+ };
265
+ readonly sm: {
266
+ readonly size: 14;
267
+ readonly line: 1.43;
268
+ readonly tracking: "0";
269
+ readonly weight: 400;
270
+ readonly family: "sans";
271
+ readonly usage: "Descriptions, secondary text.";
272
+ };
273
+ readonly base: {
274
+ readonly size: 16;
275
+ readonly line: 1.5;
276
+ readonly tracking: "-0.011em";
277
+ readonly weight: 400;
278
+ readonly family: "sans";
279
+ readonly usage: "Body copy.";
280
+ };
281
+ readonly lg: {
282
+ readonly size: 20;
283
+ readonly line: 1.5;
284
+ readonly tracking: "-0.015em";
285
+ readonly weight: 400;
286
+ readonly family: "sans";
287
+ readonly usage: "Lede paragraphs.";
288
+ };
289
+ readonly title: {
290
+ readonly size: 24;
291
+ readonly line: 1.2;
292
+ readonly tracking: "-0.03em";
293
+ readonly weight: 450;
294
+ readonly family: "sans";
295
+ readonly usage: "Card titles, big buttons.";
296
+ };
297
+ readonly heading: {
298
+ readonly size: 48;
299
+ readonly line: 1.08;
300
+ readonly tracking: "-0.045em";
301
+ readonly weight: 450;
302
+ readonly family: "sans";
303
+ readonly usage: "Section headings.";
304
+ };
305
+ readonly display: {
306
+ readonly size: 72;
307
+ readonly line: 1;
308
+ readonly tracking: "-0.055em";
309
+ readonly weight: 450;
310
+ readonly family: "sans";
311
+ readonly usage: "Hero and poster words.";
312
+ };
313
+ };
314
+ motion: {
315
+ readonly duration: {
316
+ readonly instant: 0.1;
317
+ readonly fast: 0.15;
318
+ readonly base: 0.2;
319
+ readonly slow: 0.35;
320
+ readonly slower: 0.6;
321
+ };
322
+ readonly ease: {
323
+ readonly standard: readonly [0.4, 0, 0.2, 1];
324
+ readonly out: readonly [0, 0, 0.2, 1];
325
+ readonly in: readonly [0.4, 0, 1, 1];
326
+ readonly emphasized: readonly [0.2, 0, 0, 1];
327
+ };
328
+ readonly spring: {
329
+ readonly snappy: {
330
+ readonly type: "spring";
331
+ readonly stiffness: 520;
332
+ readonly damping: 34;
333
+ readonly mass: 0.7;
334
+ };
335
+ readonly gentle: {
336
+ readonly type: "spring";
337
+ readonly stiffness: 260;
338
+ readonly damping: 28;
339
+ };
340
+ readonly bouncy: {
341
+ readonly type: "spring";
342
+ readonly stiffness: 400;
343
+ readonly damping: 18;
344
+ };
345
+ };
346
+ };
347
+ };
348
+ type Tokens = typeof tokens;
349
+ type ColorToken = keyof typeof color;
350
+ type RadiusToken = keyof typeof radius;
351
+ type SmoothingToken = keyof typeof smoothing;
352
+
353
+ type RadiusValue = RadiusToken | number;
354
+ type SmoothingValue = SmoothingToken | number;
355
+ declare function resolveRadius(r: RadiusValue | undefined, fallback?: RadiusValue): number;
356
+ declare function resolveSmoothing(s: SmoothingValue | undefined): number;
357
+ interface SquircleOptions {
358
+ /** Corner radius token or px. Clamped to half the shortest side. */
359
+ radius?: RadiusValue;
360
+ /** Corner smoothing from 0 to 1 (`soft` = 0.6). */
361
+ smoothing?: SmoothingValue;
362
+ /** A horizontal capsule with curvature continuous joins between the straight edges and end caps. */
363
+ shape?: 'squircle' | 'smooth-capsule';
364
+ /** Keep smoothing even when the radius has to shrink to fit. */
365
+ preserveSmoothing?: boolean;
366
+ /** Extra px to outset the focus-ring path. */
367
+ ringOffset?: number;
368
+ /**
369
+ * Follow the enclosing squircle's radius and smoothing. `--sw-inset` is the
370
+ * distance from the frame to this surface. `radius` is the fallback without a frame and inset.
371
+ */
372
+ concentric?: boolean;
373
+ /**
374
+ * Draw the squircle. Default true. Always pass `ref` and switch this instead of passing the ref
375
+ * conditionally: motion elements bind their ref once at mount, so a ref added later is never called.
376
+ */
377
+ enabled?: boolean;
378
+ }
379
+ interface SquirclePaths {
380
+ /** Path for the surface (fill + border). */
381
+ d: string;
382
+ /** Path for the focus ring, sized to the element plus `ringOffset` on every side. */
383
+ ring: string;
384
+ /**
385
+ * Centre line of a 1px border: the surface inset by half a pixel. Stroked at 1px without
386
+ * clipping, it has the same width on straight edges and corners.
387
+ */
388
+ border?: string;
389
+ width: number;
390
+ height: number;
391
+ }
392
+ /**
393
+ * Measures an element and returns smoothed squircle paths for it.
394
+ * Re-computes on resize. Works with any element; pair with <SquircleLayers/>.
395
+ */
396
+ declare function useSquircle<T extends HTMLElement>(opts?: SquircleOptions): {
397
+ ref: (el: T | null) => void;
398
+ paths: SquirclePaths;
399
+ radius: number;
400
+ smoothing: number;
401
+ ringOffset: number;
402
+ };
403
+ interface SquircleLayersProps {
404
+ paths: SquirclePaths;
405
+ radius: number;
406
+ ringOffset?: number;
407
+ /** Border width in px (drawn inside the shape). 0 = no border. */
408
+ borderWidth?: number;
409
+ }
410
+ /**
411
+ * The visual layers of a squircle surface: fill, border and focus ring.
412
+ * Colors come from CSS variables on the host so states can be pure CSS:
413
+ * --sw-sq-bg, --sw-sq-border, --sw-sq-ring
414
+ * Content is never clipped, so focus rings, tooltips and overflow still work.
415
+ */
416
+ declare function SquircleLayers({ paths, radius, ringOffset, borderWidth }: SquircleLayersProps): react.JSX.Element;
417
+ interface SquircleProps extends SquircleOptions, Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
418
+ children?: ReactNode;
419
+ borderWidth?: number;
420
+ /** Clip children to the squircle (for images/maps that touch the edges). Disables the outer focus ring. */
421
+ clipContent?: boolean;
422
+ }
423
+ /**
424
+ * A div whose background and border follow a smoothed squircle. Set colors with CSS: `--sw-sq-bg`, `--sw-sq-border`.
425
+ */
426
+ declare const Squircle: react.ForwardRefExoticComponent<SquircleProps & react.RefAttributes<HTMLDivElement>>;
427
+ declare function cx(...parts: Array<string | false | null | undefined>): string;
428
+
429
+ /**
430
+ * Set by containers that already draw the frame (a joined DashboardGrid, an Accordion, another Card).
431
+ * A Card or Listbox inside drops its own frame so there is one frame per group.
432
+ */
433
+ declare const FrameContext: react.Context<boolean>;
434
+ type CardVariant = 'surface' | 'muted' | 'inverse' | 'ghost';
435
+ type CardPadding = 'none' | 'sm' | 'md' | 'lg';
436
+ interface CardOwnProps {
437
+ variant?: CardVariant;
438
+ padding?: CardPadding;
439
+ /** Squircle radius token or px. Default `lg` (20). Use `none` for sharp poster edges. */
440
+ radius?: RadiusValue;
441
+ /** Corner smoothing from 0 to 1. Default `soft` (0.6). */
442
+ smoothing?: SmoothingValue;
443
+ /** Draw the 1px frame border. Default true (false for `ghost`). */
444
+ bordered?: boolean;
445
+ /** The whole card is clickable: pointer cursor, frame darkens on hover, focus ring. No movement. */
446
+ interactive?: boolean;
447
+ /** Make the card a navigation target with a native link. */
448
+ href?: string;
449
+ target?: React.AnchorHTMLAttributes<HTMLAnchorElement>['target'];
450
+ rel?: string;
451
+ /** Clip children to the squircle (images, maps, charts that touch the edge). */
452
+ clipContent?: boolean;
453
+ /** Header title (13px). Turns on the panel layout: a 40px header bar, then toolbar, body and footer. */
454
+ title?: ReactNode;
455
+ /** 15px icon before the title. */
456
+ icon?: ReactNode;
457
+ /** Count or short status after the title (mono, muted). Stays visible while folded. */
458
+ count?: ReactNode;
459
+ /** Header controls on the trailing edge: `Button size="xs" variant="ghost"`, a Menu trigger, `Pagination variant="compact"`. */
460
+ actions?: ReactNode;
461
+ /** A row under the header for search, sort and filters (a `Toolbar`). */
462
+ toolbar?: ReactNode;
463
+ /** Pinned row under the body with a line above it. */
464
+ footer?: ReactNode;
465
+ /** The header folds the card to its header bar. */
466
+ collapsible?: boolean;
467
+ open?: boolean;
468
+ defaultOpen?: boolean;
469
+ onOpenChange?(open: boolean): void;
470
+ /** Heading element for the title. Default 3. */
471
+ headingLevel?: 2 | 3 | 4 | 5 | 6;
472
+ /** Content before the title, outside the fold button (DashboardTile puts its drag grip here). */
473
+ leading?: ReactNode;
474
+ /** Draw the frame. Default: true, or false inside a container that already frames it (FrameContext). */
475
+ framed?: boolean;
476
+ children?: ReactNode;
477
+ }
478
+ type CardProps = CardOwnProps & Omit<HTMLMotionProps<'div'>, keyof CardOwnProps>;
479
+ declare const Card: react.ForwardRefExoticComponent<Omit<CardProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
480
+ type DivProps = React.HTMLAttributes<HTMLDivElement>;
481
+ declare function CardHeader({ className, ...p }: DivProps): react.JSX.Element;
482
+ declare function CardTitle({ className, as: As, ...p }: React.HTMLAttributes<HTMLHeadingElement> & {
483
+ as?: 'h2' | 'h3' | 'h4' | 'div';
484
+ }): react.JSX.Element;
485
+ declare function CardDescription({ className, ...p }: React.HTMLAttributes<HTMLParagraphElement>): react.JSX.Element;
486
+ declare function CardContent({ className, ...p }: DivProps): react.JSX.Element;
487
+ declare function CardFooter({ className, ...p }: DivProps): react.JSX.Element;
488
+
489
+ export { FrameContext as F, Card as a, CardContent as b, CardDescription as c, CardFooter as d, CardHeader as e, CardTitle as g, Squircle as l, SquircleLayers as m, cx as q, resolveRadius as r, resolveSmoothing as s, tokens as t, useSquircle as u };
490
+ export type { CardProps as C, RadiusValue as R, SmoothingValue as S, Tokens as T, CardPadding as f, CardVariant as h, ColorToken as i, RadiusToken as j, SmoothingToken as k, SquircleOptions as n, SquirclePaths as o, SquircleProps as p };