@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.
- package/dist/lib/components.css +1 -1
- package/dist/lib/icons.js +1 -0
- package/dist/lib/types/Intensity.d.ts +3 -3
- package/dist/lib/types/ProviderIcon.d.ts +5 -4
- package/dist/lib/types/StatTiles.d.ts +4 -1
- package/dist/lib/types/icons.d.ts +1 -0
- package/dist/lib/ui.js +832 -803
- package/package.json +11 -6
- package/dist/lib/README.md +0 -13
- package/dist/lib/types/Accordion.stories.d.ts +0 -91
- package/dist/lib/types/Avatar.stories.d.ts +0 -160
- package/dist/lib/types/BrandMark.stories.d.ts +0 -75
- package/dist/lib/types/Breadcrumb.stories.d.ts +0 -91
- package/dist/lib/types/Button.stories.d.ts +0 -129
- package/dist/lib/types/Card.stories.d.ts +0 -70
- package/dist/lib/types/Chart.stories.d.ts +0 -55
- package/dist/lib/types/Checkbox.stories.d.ts +0 -75
- package/dist/lib/types/Chip.stories.d.ts +0 -190
- package/dist/lib/types/CliOnboard.stories.d.ts +0 -24
- package/dist/lib/types/CommandPalette.stories.d.ts +0 -94
- package/dist/lib/types/CommitGraph.stories.d.ts +0 -17
- package/dist/lib/types/ConnectionState.stories.d.ts +0 -117
- package/dist/lib/types/ConsentDialog.stories.d.ts +0 -61
- package/dist/lib/types/DataTable.stories.d.ts +0 -240
- package/dist/lib/types/DateRange.stories.d.ts +0 -272
- package/dist/lib/types/Dialog.stories.d.ts +0 -121
- package/dist/lib/types/DiffView.stories.d.ts +0 -118
- package/dist/lib/types/EmptyState.stories.d.ts +0 -130
- package/dist/lib/types/EvidenceCaption.stories.d.ts +0 -43
- package/dist/lib/types/Explainer.stories.d.ts +0 -22
- package/dist/lib/types/FacetRail.stories.d.ts +0 -28
- package/dist/lib/types/Feedback.stories.d.ts +0 -81
- package/dist/lib/types/GroupedMultiSelect.stories.d.ts +0 -59
- package/dist/lib/types/Input.stories.d.ts +0 -181
- package/dist/lib/types/Intensity.stories.d.ts +0 -108
- package/dist/lib/types/MapCanvas.stories.d.ts +0 -174
- package/dist/lib/types/Menu.stories.d.ts +0 -173
- package/dist/lib/types/ModerationQueue.stories.d.ts +0 -34
- package/dist/lib/types/Pager.stories.d.ts +0 -100
- package/dist/lib/types/Pagination.stories.d.ts +0 -193
- package/dist/lib/types/PolicySelect.stories.d.ts +0 -130
- package/dist/lib/types/ProviderIcon.stories.d.ts +0 -44
- package/dist/lib/types/RailShell.stories.d.ts +0 -32
- package/dist/lib/types/Redaction.stories.d.ts +0 -120
- package/dist/lib/types/RoleRoster.stories.d.ts +0 -23
- package/dist/lib/types/SignIn.stories.d.ts +0 -57
- package/dist/lib/types/StatTiles.stories.d.ts +0 -31
- package/dist/lib/types/StepWizard.stories.d.ts +0 -18
- package/dist/lib/types/StepsWaterfall.stories.d.ts +0 -94
- package/dist/lib/types/Switch.stories.d.ts +0 -134
- package/dist/lib/types/Tabs.stories.d.ts +0 -75
- package/dist/lib/types/TimeStrip.stories.d.ts +0 -30
- package/dist/lib/types/Timeline.stories.d.ts +0 -974
- package/dist/lib/types/ToastHost.stories.d.ts +0 -115
- package/dist/lib/types/ToolRenderers.stories.d.ts +0 -138
- package/dist/lib/types/Tooltip.stories.d.ts +0 -116
- package/dist/lib/types/Tour.stories.d.ts +0 -39
- package/dist/lib/types/TranscriptMarkers.stories.d.ts +0 -48
- package/dist/lib/types/Treemap.stories.d.ts +0 -101
- package/dist/lib/types/VisibilityControl.stories.d.ts +0 -126
- 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 |
|
|
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 |
|
|
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 |
|
|
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
|
|
64
|
-
*
|
|
65
|
-
* the mark + name already identify the provider, so the legend
|
|
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 —
|
|
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'
|