@peasant-labs/fairtrade 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 (61) hide show
  1. package/dist/lib/components.css +1 -1
  2. package/dist/lib/icons.js +1 -0
  3. package/dist/lib/types/Intensity.d.ts +3 -3
  4. package/dist/lib/types/ProviderIcon.d.ts +5 -4
  5. package/dist/lib/types/StatTiles.d.ts +4 -1
  6. package/dist/lib/types/icons.d.ts +1 -0
  7. package/dist/lib/ui.js +832 -803
  8. package/package.json +11 -6
  9. package/dist/lib/README.md +0 -13
  10. package/dist/lib/types/Accordion.stories.d.ts +0 -91
  11. package/dist/lib/types/Avatar.stories.d.ts +0 -160
  12. package/dist/lib/types/BrandMark.stories.d.ts +0 -75
  13. package/dist/lib/types/Breadcrumb.stories.d.ts +0 -91
  14. package/dist/lib/types/Button.stories.d.ts +0 -129
  15. package/dist/lib/types/Card.stories.d.ts +0 -70
  16. package/dist/lib/types/Chart.stories.d.ts +0 -55
  17. package/dist/lib/types/Checkbox.stories.d.ts +0 -75
  18. package/dist/lib/types/Chip.stories.d.ts +0 -190
  19. package/dist/lib/types/CliOnboard.stories.d.ts +0 -24
  20. package/dist/lib/types/CommandPalette.stories.d.ts +0 -94
  21. package/dist/lib/types/CommitGraph.stories.d.ts +0 -17
  22. package/dist/lib/types/ConnectionState.stories.d.ts +0 -117
  23. package/dist/lib/types/ConsentDialog.stories.d.ts +0 -61
  24. package/dist/lib/types/DataTable.stories.d.ts +0 -240
  25. package/dist/lib/types/DateRange.stories.d.ts +0 -272
  26. package/dist/lib/types/Dialog.stories.d.ts +0 -121
  27. package/dist/lib/types/DiffView.stories.d.ts +0 -118
  28. package/dist/lib/types/EmptyState.stories.d.ts +0 -130
  29. package/dist/lib/types/EvidenceCaption.stories.d.ts +0 -43
  30. package/dist/lib/types/Explainer.stories.d.ts +0 -22
  31. package/dist/lib/types/FacetRail.stories.d.ts +0 -28
  32. package/dist/lib/types/Feedback.stories.d.ts +0 -81
  33. package/dist/lib/types/GroupedMultiSelect.stories.d.ts +0 -59
  34. package/dist/lib/types/Input.stories.d.ts +0 -181
  35. package/dist/lib/types/Intensity.stories.d.ts +0 -108
  36. package/dist/lib/types/MapCanvas.stories.d.ts +0 -174
  37. package/dist/lib/types/Menu.stories.d.ts +0 -173
  38. package/dist/lib/types/ModerationQueue.stories.d.ts +0 -34
  39. package/dist/lib/types/Pager.stories.d.ts +0 -100
  40. package/dist/lib/types/Pagination.stories.d.ts +0 -193
  41. package/dist/lib/types/PolicySelect.stories.d.ts +0 -130
  42. package/dist/lib/types/ProviderIcon.stories.d.ts +0 -44
  43. package/dist/lib/types/RailShell.stories.d.ts +0 -32
  44. package/dist/lib/types/Redaction.stories.d.ts +0 -120
  45. package/dist/lib/types/RoleRoster.stories.d.ts +0 -23
  46. package/dist/lib/types/SignIn.stories.d.ts +0 -57
  47. package/dist/lib/types/StatTiles.stories.d.ts +0 -31
  48. package/dist/lib/types/StepWizard.stories.d.ts +0 -18
  49. package/dist/lib/types/StepsWaterfall.stories.d.ts +0 -94
  50. package/dist/lib/types/Switch.stories.d.ts +0 -134
  51. package/dist/lib/types/Tabs.stories.d.ts +0 -75
  52. package/dist/lib/types/TimeStrip.stories.d.ts +0 -30
  53. package/dist/lib/types/Timeline.stories.d.ts +0 -974
  54. package/dist/lib/types/ToastHost.stories.d.ts +0 -115
  55. package/dist/lib/types/ToolRenderers.stories.d.ts +0 -138
  56. package/dist/lib/types/Tooltip.stories.d.ts +0 -116
  57. package/dist/lib/types/Tour.stories.d.ts +0 -39
  58. package/dist/lib/types/TranscriptMarkers.stories.d.ts +0 -48
  59. package/dist/lib/types/Treemap.stories.d.ts +0 -101
  60. package/dist/lib/types/VisibilityControl.stories.d.ts +0 -126
  61. package/dist/lib/types/story-frame.d.ts +0 -12
@@ -0,0 +1 @@
1
+ export * from "lucide-react";
@@ -4,11 +4,11 @@ export function clampLevel(level: any): number;
4
4
  * coverage ratio (recorded / total) → ramp level. 0 / unknown = none; ≥ 0.9
5
5
  * reads as fully covered. mirrors peasant's traceabilityLevel quantiles.
6
6
  */
7
- export function coverageLevel(recorded: any, total: any): 0 | 2 | 4 | 1 | 3;
7
+ export function coverageLevel(recorded: any, total: any): 0 | 4 | 1 | 2 | 3;
8
8
  /** density (0..1) → ramp level for the bottom-edge effort bar. */
9
- export function effortLevel(density: any): 0 | 2 | 4 | 1 | 3;
9
+ export function effortLevel(density: any): 0 | 4 | 1 | 2 | 3;
10
10
  /** generic value-vs-max quantization (heatmap cells, sparklines). */
11
- export function quantize(value: any, max: any): 0 | 2 | 4 | 1 | 3;
11
+ export function quantize(value: any, max: any): 0 | 4 | 1 | 2 | 3;
12
12
  /** loc → node size class. small files are compact; large ones get real estate. */
13
13
  export function locSize(loc: any): "sm" | "md" | "lg" | "xs" | "xl";
14
14
  export function IntensitySwatch({ level, accent, size, label, className, ...rest }: {
@@ -60,10 +60,11 @@ export function ProviderName({ harness, accent, className, ...rest }: {
60
60
  /**
61
61
  * AccentLegend — the per-provider accent map, documented as a UI.
62
62
  *
63
- * one row per harness: the real mark, the provider name, and the accent swatch
64
- * with its token name written out. the swatch is the LAST column on purpose —
65
- * the mark + name already identify the provider, so the legend reads correctly
66
- * with the color stripped (the neuroinclusive rule made visible).
63
+ * one row per harness across four aligned columns: the real mark, the provider
64
+ * name, the accent swatch, then its token name written out. the swatch sits after
65
+ * the mark + name on purpose — they already identify the provider, so the legend
66
+ * reads correctly with the color stripped (the neuroinclusive rule made visible),
67
+ * and the swatch keeps its own column so the colors line up down the list.
67
68
  *
68
69
  * @param {object} props
69
70
  * @param {string} [props.className]
@@ -26,7 +26,10 @@ export function StatTile({ label, value, sub, icon: Icon, className, ...rest }:
26
26
  * @property {React.ComponentType<{className?: string}>} [icon] - optional label icon.
27
27
  */
28
28
  /**
29
- * StatGrid — an auto-fit responsive grid of StatTiles (columns min ~160px, equal gaps).
29
+ * StatGrid — a responsive grid of StatTiles with a STABLE, capped column count (1→4 across
30
+ * breakpoints) so tiles keep equal widths and their eyebrows wrap consistently. The grid keys
31
+ * off its own width via a thin query-container wrapper (an element cannot query a container it
32
+ * establishes itself), so it stays correct wherever it is dropped — not just at the page width.
30
33
  *
31
34
  * @param {object} props
32
35
  * @param {TileSpec[]} props.tiles - the KPI tiles to render, in order.
@@ -0,0 +1 @@
1
+ export * from 'lucide-react'