@particle-academy/react-fancy 5.13.1 → 5.15.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 (49) hide show
  1. package/dist/chunk-3F66SAE7.js +40 -0
  2. package/dist/chunk-3F66SAE7.js.map +1 -0
  3. package/dist/chunk-5LHG7HEY.cjs +42 -0
  4. package/dist/chunk-5LHG7HEY.cjs.map +1 -0
  5. package/dist/chunk-AY3JABE3.cjs +32 -0
  6. package/dist/chunk-AY3JABE3.cjs.map +1 -0
  7. package/dist/chunk-DBJWHDWP.js +31 -0
  8. package/dist/chunk-DBJWHDWP.js.map +1 -0
  9. package/dist/chunk-MKFWFZVX.js +30 -0
  10. package/dist/chunk-MKFWFZVX.js.map +1 -0
  11. package/dist/chunk-PG3ILQIW.js +30 -0
  12. package/dist/chunk-PG3ILQIW.js.map +1 -0
  13. package/dist/chunk-SYXLPCQP.cjs +33 -0
  14. package/dist/chunk-SYXLPCQP.cjs.map +1 -0
  15. package/dist/chunk-VQ4M25U3.cjs +32 -0
  16. package/dist/chunk-VQ4M25U3.cjs.map +1 -0
  17. package/dist/container.cjs +13 -0
  18. package/dist/container.cjs.map +1 -0
  19. package/dist/container.d.cts +21 -0
  20. package/dist/container.d.ts +21 -0
  21. package/dist/container.js +4 -0
  22. package/dist/container.js.map +1 -0
  23. package/dist/editor.cjs +1 -1
  24. package/dist/editor.js +1 -1
  25. package/dist/grid.cjs +13 -0
  26. package/dist/grid.cjs.map +1 -0
  27. package/dist/grid.d.cts +30 -0
  28. package/dist/grid.d.ts +30 -0
  29. package/dist/grid.js +4 -0
  30. package/dist/grid.js.map +1 -0
  31. package/dist/index.cjs +118 -98
  32. package/dist/index.d.cts +4 -0
  33. package/dist/index.d.ts +4 -0
  34. package/dist/index.js +24 -20
  35. package/dist/inputs.cjs +25 -25
  36. package/dist/inputs.js +5 -5
  37. package/dist/section.cjs +13 -0
  38. package/dist/section.cjs.map +1 -0
  39. package/dist/section.d.cts +23 -0
  40. package/dist/section.d.ts +23 -0
  41. package/dist/section.js +4 -0
  42. package/dist/section.js.map +1 -0
  43. package/dist/stat-list.cjs +13 -0
  44. package/dist/stat-list.cjs.map +1 -0
  45. package/dist/stat-list.d.cts +43 -0
  46. package/dist/stat-list.d.ts +43 -0
  47. package/dist/stat-list.js +4 -0
  48. package/dist/stat-list.js.map +1 -0
  49. package/package.json +52 -12
@@ -0,0 +1,23 @@
1
+ import * as react from 'react';
2
+ import { HTMLAttributes, ReactNode, ElementType } from 'react';
3
+
4
+ interface SectionProps extends HTMLAttributes<HTMLElement> {
5
+ children?: ReactNode;
6
+ /** Vertical rhythm between sections. Default `md`. */
7
+ space?: "sm" | "md" | "lg";
8
+ /** Draw the hairline rule that opens the section. */
9
+ divider?: boolean;
10
+ /** The element to render. Defaults to `section`. */
11
+ as?: ElementType;
12
+ }
13
+
14
+ /**
15
+ * Vertical rhythm between page sections, with the optional opening hairline.
16
+ *
17
+ * Pairs with `Eyebrow`, which is what usually sits at the top of one. The rule
18
+ * is a prop rather than a caller-drawn border because half the gallery styles
19
+ * drew it and half forgot, and an inconsistent rule reads as a bug.
20
+ */
21
+ declare const Section: react.ForwardRefExoticComponent<SectionProps & react.RefAttributes<HTMLElement>>;
22
+
23
+ export { Section, type SectionProps };
@@ -0,0 +1,4 @@
1
+ export { Section } from './chunk-PG3ILQIW.js';
2
+ import './chunk-DSUHZO6T.js';
3
+ //# sourceMappingURL=section.js.map
4
+ //# sourceMappingURL=section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"section.js"}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ var chunk5LHG7HEY_cjs = require('./chunk-5LHG7HEY.cjs');
4
+ require('./chunk-3Z6ALUWP.cjs');
5
+
6
+
7
+
8
+ Object.defineProperty(exports, "StatList", {
9
+ enumerable: true,
10
+ get: function () { return chunk5LHG7HEY_cjs.StatList; }
11
+ });
12
+ //# sourceMappingURL=stat-list.cjs.map
13
+ //# sourceMappingURL=stat-list.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"stat-list.cjs"}
@@ -0,0 +1,43 @@
1
+ import * as react from 'react';
2
+ import { HTMLAttributes, ReactNode } from 'react';
3
+
4
+ /** One figure and what it counts. */
5
+ interface StatListItem {
6
+ /** The figure. Emphasised — it is what the eye lands on first. */
7
+ value: ReactNode;
8
+ /** What the figure counts. */
9
+ label: ReactNode;
10
+ /**
11
+ * Stable handle for this row, for an agent reading a figure off the page.
12
+ *
13
+ * Defaults to `label` when it is a plain string, which covers the common
14
+ * case without asking a caller to repeat themselves.
15
+ */
16
+ key?: string;
17
+ }
18
+ interface StatListProps extends HTMLAttributes<HTMLDivElement> {
19
+ /** The figures. Data rather than children — the repeated thing is a shape. */
20
+ items: StatListItem[];
21
+ /** Which edge the stack aligns to. Default `"right"`. */
22
+ align?: "left" | "right";
23
+ }
24
+
25
+ /**
26
+ * The mono figure stack — `70 packages / 261 components / MIT licensed`.
27
+ *
28
+ * The Inspiration index and `/packages` each hand-rolled this from tokens, which
29
+ * is the gallery working as intended: it stress-tests the kit, and what it
30
+ * hand-rolls is the gap list. The list only pays off when the gap comes back
31
+ * here, otherwise every surface keeps a copy and they drift apart.
32
+ *
33
+ * Takes `items` as DATA rather than children. What those surfaces repeat is a
34
+ * shape, not a layout, so there is nothing to assemble at the call site — and a
35
+ * data prop is what an agent can emit, which children are not.
36
+ *
37
+ * The value is a `<b>` rather than a colour, because in most of these stacks the
38
+ * figure is the only part that is not muted, and expressing that structurally
39
+ * keeps it meaningful when a design replaces the styling wholesale.
40
+ */
41
+ declare const StatList: react.ForwardRefExoticComponent<StatListProps & react.RefAttributes<HTMLDivElement>>;
42
+
43
+ export { StatList, type StatListItem, type StatListProps };
@@ -0,0 +1,43 @@
1
+ import * as react from 'react';
2
+ import { HTMLAttributes, ReactNode } from 'react';
3
+
4
+ /** One figure and what it counts. */
5
+ interface StatListItem {
6
+ /** The figure. Emphasised — it is what the eye lands on first. */
7
+ value: ReactNode;
8
+ /** What the figure counts. */
9
+ label: ReactNode;
10
+ /**
11
+ * Stable handle for this row, for an agent reading a figure off the page.
12
+ *
13
+ * Defaults to `label` when it is a plain string, which covers the common
14
+ * case without asking a caller to repeat themselves.
15
+ */
16
+ key?: string;
17
+ }
18
+ interface StatListProps extends HTMLAttributes<HTMLDivElement> {
19
+ /** The figures. Data rather than children — the repeated thing is a shape. */
20
+ items: StatListItem[];
21
+ /** Which edge the stack aligns to. Default `"right"`. */
22
+ align?: "left" | "right";
23
+ }
24
+
25
+ /**
26
+ * The mono figure stack — `70 packages / 261 components / MIT licensed`.
27
+ *
28
+ * The Inspiration index and `/packages` each hand-rolled this from tokens, which
29
+ * is the gallery working as intended: it stress-tests the kit, and what it
30
+ * hand-rolls is the gap list. The list only pays off when the gap comes back
31
+ * here, otherwise every surface keeps a copy and they drift apart.
32
+ *
33
+ * Takes `items` as DATA rather than children. What those surfaces repeat is a
34
+ * shape, not a layout, so there is nothing to assemble at the call site — and a
35
+ * data prop is what an agent can emit, which children are not.
36
+ *
37
+ * The value is a `<b>` rather than a colour, because in most of these stacks the
38
+ * figure is the only part that is not muted, and expressing that structurally
39
+ * keeps it meaningful when a design replaces the styling wholesale.
40
+ */
41
+ declare const StatList: react.ForwardRefExoticComponent<StatListProps & react.RefAttributes<HTMLDivElement>>;
42
+
43
+ export { StatList, type StatListItem, type StatListProps };
@@ -0,0 +1,4 @@
1
+ export { StatList } from './chunk-3F66SAE7.js';
2
+ import './chunk-DSUHZO6T.js';
3
+ //# sourceMappingURL=stat-list.js.map
4
+ //# sourceMappingURL=stat-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"stat-list.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-academy/react-fancy",
3
- "version": "5.13.1",
3
+ "version": "5.15.0",
4
4
  "description": "React UI component library for Human+ UX \u2014 controlled, agent-bridgeable primitives",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,17 +23,6 @@
23
23
  "default": "./dist/index.cjs"
24
24
  }
25
25
  },
26
- "./icons": {
27
- "import": {
28
- "types": "./dist/icons.d.ts",
29
- "default": "./dist/icons.js"
30
- },
31
- "require": {
32
- "types": "./dist/icons.d.cts",
33
- "default": "./dist/icons.cjs"
34
- }
35
- },
36
- "./styles.css": "./dist/styles.css",
37
26
  "./accordion": {
38
27
  "import": {
39
28
  "types": "./dist/accordion.d.ts",
@@ -244,6 +233,16 @@
244
233
  "default": "./dist/composer.cjs"
245
234
  }
246
235
  },
236
+ "./container": {
237
+ "import": {
238
+ "types": "./dist/container.d.ts",
239
+ "default": "./dist/container.js"
240
+ },
241
+ "require": {
242
+ "types": "./dist/container.d.cts",
243
+ "default": "./dist/container.cjs"
244
+ }
245
+ },
247
246
  "./content-renderer": {
248
247
  "import": {
249
248
  "types": "./dist/content-renderer.d.ts",
@@ -374,6 +373,16 @@
374
373
  "default": "./dist/file-upload.cjs"
375
374
  }
376
375
  },
376
+ "./grid": {
377
+ "import": {
378
+ "types": "./dist/grid.d.ts",
379
+ "default": "./dist/grid.js"
380
+ },
381
+ "require": {
382
+ "types": "./dist/grid.d.cts",
383
+ "default": "./dist/grid.cjs"
384
+ }
385
+ },
377
386
  "./heading": {
378
387
  "import": {
379
388
  "types": "./dist/heading.d.ts",
@@ -394,6 +403,16 @@
394
403
  "default": "./dist/icon.cjs"
395
404
  }
396
405
  },
406
+ "./icons": {
407
+ "import": {
408
+ "types": "./dist/icons.d.ts",
409
+ "default": "./dist/icons.js"
410
+ },
411
+ "require": {
412
+ "types": "./dist/icons.d.cts",
413
+ "default": "./dist/icons.cjs"
414
+ }
415
+ },
397
416
  "./image-viewer": {
398
417
  "import": {
399
418
  "types": "./dist/image-viewer.d.ts",
@@ -684,6 +703,16 @@
684
703
  "default": "./dist/reason-tag.cjs"
685
704
  }
686
705
  },
706
+ "./section": {
707
+ "import": {
708
+ "types": "./dist/section.d.ts",
709
+ "default": "./dist/section.js"
710
+ },
711
+ "require": {
712
+ "types": "./dist/section.d.cts",
713
+ "default": "./dist/section.cjs"
714
+ }
715
+ },
687
716
  "./select": {
688
717
  "import": {
689
718
  "types": "./dist/select.d.ts",
@@ -744,6 +773,16 @@
744
773
  "default": "./dist/stat.cjs"
745
774
  }
746
775
  },
776
+ "./stat-list": {
777
+ "import": {
778
+ "types": "./dist/stat-list.d.ts",
779
+ "default": "./dist/stat-list.js"
780
+ },
781
+ "require": {
782
+ "types": "./dist/stat-list.d.cts",
783
+ "default": "./dist/stat-list.cjs"
784
+ }
785
+ },
747
786
  "./sticky-note": {
748
787
  "import": {
749
788
  "types": "./dist/sticky-note.d.ts",
@@ -754,6 +793,7 @@
754
793
  "default": "./dist/sticky-note.cjs"
755
794
  }
756
795
  },
796
+ "./styles.css": "./dist/styles.css",
757
797
  "./switch": {
758
798
  "import": {
759
799
  "types": "./dist/switch.d.ts",