@loworbitstudio/visor 1.47.0 → 1.50.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.
- package/dist/CHANGELOG.json +25 -1
- package/dist/index.js +34 -0
- package/dist/registry.json +114 -7
- package/dist/visor-manifest.json +532 -29
- package/package.json +2 -2
package/dist/visor-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "0.4.0",
|
|
3
|
-
"generated_at": "2026-11-
|
|
3
|
+
"generated_at": "2026-11-14T03:05:37.052Z",
|
|
4
4
|
"components": {
|
|
5
5
|
"accessibility-specimen": {
|
|
6
6
|
"category": "specimen",
|
|
@@ -614,7 +614,8 @@
|
|
|
614
614
|
"info",
|
|
615
615
|
"warning",
|
|
616
616
|
"error",
|
|
617
|
-
"success"
|
|
617
|
+
"success",
|
|
618
|
+
"neutral"
|
|
618
619
|
],
|
|
619
620
|
"position": [
|
|
620
621
|
"inline",
|
|
@@ -624,7 +625,7 @@
|
|
|
624
625
|
"props": [
|
|
625
626
|
{
|
|
626
627
|
"name": "intent",
|
|
627
|
-
"type": "'info' | 'warning' | 'error' | 'success'",
|
|
628
|
+
"type": "'info' | 'warning' | 'error' | 'success' | 'neutral'",
|
|
628
629
|
"default": "info"
|
|
629
630
|
},
|
|
630
631
|
{
|
|
@@ -656,21 +657,28 @@
|
|
|
656
657
|
"--banner-description-font-size",
|
|
657
658
|
"--banner-error-bg",
|
|
658
659
|
"--banner-error-border-color",
|
|
660
|
+
"--banner-error-description-color",
|
|
659
661
|
"--banner-error-text-color",
|
|
660
662
|
"--banner-font-size",
|
|
661
663
|
"--banner-gap",
|
|
662
664
|
"--banner-info-bg",
|
|
663
665
|
"--banner-info-border-color",
|
|
666
|
+
"--banner-info-description-color",
|
|
664
667
|
"--banner-info-text-color",
|
|
668
|
+
"--banner-neutral-bg",
|
|
669
|
+
"--banner-neutral-description-color",
|
|
670
|
+
"--banner-neutral-text-color",
|
|
665
671
|
"--banner-padding",
|
|
666
672
|
"--banner-radius",
|
|
667
673
|
"--banner-shadow",
|
|
668
674
|
"--banner-success-bg",
|
|
669
675
|
"--banner-success-border-color",
|
|
676
|
+
"--banner-success-description-color",
|
|
670
677
|
"--banner-success-text-color",
|
|
671
678
|
"--banner-title-font-weight",
|
|
672
679
|
"--banner-warning-bg",
|
|
673
680
|
"--banner-warning-border-color",
|
|
681
|
+
"--banner-warning-description-color",
|
|
674
682
|
"--banner-warning-text-color",
|
|
675
683
|
"--border-error",
|
|
676
684
|
"--border-info",
|
|
@@ -685,10 +693,12 @@
|
|
|
685
693
|
"--spacing-4",
|
|
686
694
|
"--surface-error-subtle",
|
|
687
695
|
"--surface-info-subtle",
|
|
696
|
+
"--surface-page",
|
|
688
697
|
"--surface-success-subtle",
|
|
689
698
|
"--surface-warning-subtle",
|
|
690
699
|
"--text-error",
|
|
691
700
|
"--text-info",
|
|
701
|
+
"--text-primary",
|
|
692
702
|
"--text-secondary",
|
|
693
703
|
"--text-success",
|
|
694
704
|
"--text-warning"
|
|
@@ -915,6 +925,173 @@
|
|
|
915
925
|
],
|
|
916
926
|
"example": "<BentoGrid cols={{ base: 1, md: 2 }} gap=\"4\">\n <BentoTile span=\"full\" aspect=\"21/9\">\n <BentoTileMedia src=\"/projects/knowmentum.jpg\" alt=\"Knowmentum project hero\" />\n <BentoTileBody>\n <h3>Knowmentum</h3>\n <p>Knowledge platform for high-performers.</p>\n </BentoTileBody>\n </BentoTile>\n\n <BentoTile span=\"half\" aspect=\"2/1\" href=\"https://animal.nyc/\" target=\"_blank\">\n <BentoTileMedia src=\"/projects/animal-nyc.jpg\" alt=\"Animal NYC\" />\n <BentoTileBody>\n <h3>Animal NYC</h3>\n </BentoTileBody>\n </BentoTile>\n\n <BentoTile span=\"half\" aspect=\"2/1\" href=\"https://animal.la/\" target=\"_blank\">\n <BentoTileMedia src=\"/projects/animal-la.jpg\" alt=\"Animal LA\" />\n <BentoTileBody>\n <h3>Animal LA</h3>\n </BentoTileBody>\n </BentoTile>\n\n <BentoTile span=\"half\" aspect=\"4/3\" fit=\"contain\">\n <BentoTileMedia src=\"/logos/client-logo.png\" alt=\"Client logo\" />\n <BentoTileBody>\n <p>Natural-fit logo tile</p>\n </BentoTileBody>\n </BentoTile>\n</BentoGrid>\n"
|
|
917
927
|
},
|
|
928
|
+
"billing-slider": {
|
|
929
|
+
"category": "form",
|
|
930
|
+
"description": "A range slider for how many hours a package bills. The track starts at a floor, carries marks as notches, stripes past the high, draws worked, agent and proposed hours along its foot with a tick at the evidence, stripes the gap between the thumb and that tick, and ends at a computed maximum.",
|
|
931
|
+
"when_to_use": [
|
|
932
|
+
"Choosing how many hours a by-estimate package bills, between its signed low and what the ceiling allows",
|
|
933
|
+
"An amount the operator sets against evidence, where the evidence should sit on the track itself",
|
|
934
|
+
"A range with a soft limit inside it (a package's high) that the value may pass with a reason",
|
|
935
|
+
"Showing money at stake between what something bills and what was worked"
|
|
936
|
+
],
|
|
937
|
+
"when_not_to_use": [
|
|
938
|
+
"A plain numeric value or a two-thumb range (use Slider)",
|
|
939
|
+
"A slider with a label and a value readout and nothing else (use SliderControl)",
|
|
940
|
+
"Use against a limit that nobody edits (use Meter)",
|
|
941
|
+
"Typing an exact number (use NumberInput)"
|
|
942
|
+
],
|
|
943
|
+
"variants": {
|
|
944
|
+
"size": [
|
|
945
|
+
"md",
|
|
946
|
+
"lg"
|
|
947
|
+
],
|
|
948
|
+
"status": [
|
|
949
|
+
"saving",
|
|
950
|
+
"failed"
|
|
951
|
+
]
|
|
952
|
+
},
|
|
953
|
+
"props": [
|
|
954
|
+
{
|
|
955
|
+
"name": "value",
|
|
956
|
+
"type": "number",
|
|
957
|
+
"required": true,
|
|
958
|
+
"description": "What it bills. Controlled."
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
"name": "onValueChange",
|
|
962
|
+
"type": "(value: number) => void",
|
|
963
|
+
"required": true,
|
|
964
|
+
"description": "Called while dragging and on every key step."
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"name": "onValueCommit",
|
|
968
|
+
"type": "(value: number) => void",
|
|
969
|
+
"description": "Enter, or releasing the thumb after a drag. Arrow keys never commit."
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"name": "savedValue",
|
|
973
|
+
"type": "number",
|
|
974
|
+
"description": "The last saved value. Escape returns the thumb here."
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"name": "min",
|
|
978
|
+
"type": "number",
|
|
979
|
+
"required": true,
|
|
980
|
+
"description": "The floor. Nothing below it."
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"name": "max",
|
|
984
|
+
"type": "number",
|
|
985
|
+
"required": true,
|
|
986
|
+
"description": "The track's end, computed by the caller."
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"name": "step",
|
|
990
|
+
"type": "number",
|
|
991
|
+
"default": "0.25",
|
|
992
|
+
"description": "The arrow step. Shift + arrows step four times it (an hour)."
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"name": "marks",
|
|
996
|
+
"type": "{ value: number; label?: ReactNode; hatchPast?: boolean }[]",
|
|
997
|
+
"default": "[]",
|
|
998
|
+
"description": "Notches across the track with their text in the labels row. Past the mark with `hatchPast` the filled range stripes."
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
"name": "evidence",
|
|
1002
|
+
"type": "{ value: number; agent?: number; proposed?: number }",
|
|
1003
|
+
"description": "Worked hours as a solid strip along the foot with a tick at the end. `agent` extends it dotted and moves the tick; `proposed` extends it pale with a dashed tick. A tick past max becomes an arrow at the end."
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"name": "gap",
|
|
1007
|
+
"type": "boolean",
|
|
1008
|
+
"default": "false",
|
|
1009
|
+
"description": "Stripe the gap between the thumb and the evidence tick, in --billing-slider-gap-color."
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"name": "hue",
|
|
1013
|
+
"type": "number",
|
|
1014
|
+
"description": "A Paper project-hue angle (75 to 339). Reads --paper-hue-<angle>-fill-strong and -ink."
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
"name": "size",
|
|
1018
|
+
"type": "\"md\" | \"lg\"",
|
|
1019
|
+
"default": "\"md\"",
|
|
1020
|
+
"description": "\"md\" is the 40px row track; \"lg\" is the 56px hero track."
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"name": "status",
|
|
1024
|
+
"type": "\"saving\" | \"failed\"",
|
|
1025
|
+
"description": "\"saving\" pulses the thumb. On \"failed\" put value back to savedValue."
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"name": "disabled",
|
|
1029
|
+
"type": "boolean",
|
|
1030
|
+
"default": "false"
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"name": "formatValue",
|
|
1034
|
+
"type": "(value: number) => string",
|
|
1035
|
+
"description": "Formats a value for the bubble and the labels row."
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"name": "valueText",
|
|
1039
|
+
"type": "(value: number) => string",
|
|
1040
|
+
"description": "aria-valuetext, the formatted value and its amount. Defaults to formatValue."
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"name": "minLabel",
|
|
1044
|
+
"type": "ReactNode",
|
|
1045
|
+
"description": "Text before the floor's value (\"Low\")."
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"name": "maxLabel",
|
|
1049
|
+
"type": "ReactNode",
|
|
1050
|
+
"description": "Text before the end's value (\"Ceiling allows\")."
|
|
1051
|
+
}
|
|
1052
|
+
],
|
|
1053
|
+
"dependencies": [
|
|
1054
|
+
"@radix-ui/react-slider"
|
|
1055
|
+
],
|
|
1056
|
+
"tokens_used": [
|
|
1057
|
+
"--_fill",
|
|
1058
|
+
"--_foot-h",
|
|
1059
|
+
"--_gap",
|
|
1060
|
+
"--_grip-inset",
|
|
1061
|
+
"--_hatch",
|
|
1062
|
+
"--_ink",
|
|
1063
|
+
"--_rail-h",
|
|
1064
|
+
"--_rail-r",
|
|
1065
|
+
"--_ring",
|
|
1066
|
+
"--_thumb-h",
|
|
1067
|
+
"--_thumb-w",
|
|
1068
|
+
"--billing-slider-gap-color",
|
|
1069
|
+
"--billing-slider-hue-fill-strong",
|
|
1070
|
+
"--billing-slider-hue-ink",
|
|
1071
|
+
"--billing-slider-thumb-bg",
|
|
1072
|
+
"--billing-slider-thumb-grip",
|
|
1073
|
+
"--billing-slider-track-bg",
|
|
1074
|
+
"--border-focus",
|
|
1075
|
+
"--color-success-600",
|
|
1076
|
+
"--focus-ring-offset",
|
|
1077
|
+
"--focus-ring-width",
|
|
1078
|
+
"--font-size-xs",
|
|
1079
|
+
"--font-weight-bold",
|
|
1080
|
+
"--font-weight-medium",
|
|
1081
|
+
"--motion-duration-1000",
|
|
1082
|
+
"--motion-duration-150",
|
|
1083
|
+
"--motion-easing-default",
|
|
1084
|
+
"--shadow-md",
|
|
1085
|
+
"--spacing-1",
|
|
1086
|
+
"--spacing-2",
|
|
1087
|
+
"--surface-interactive-active",
|
|
1088
|
+
"--surface-page",
|
|
1089
|
+
"--surface-popover",
|
|
1090
|
+
"--text-primary",
|
|
1091
|
+
"--text-secondary"
|
|
1092
|
+
],
|
|
1093
|
+
"example": "<BillingSlider\n aria-label=\"Hours Website embeds bills\"\n value={hours}\n onValueChange={setHours}\n onValueCommit={save}\n savedValue={saved}\n min={8}\n max={16.75}\n hue={339}\n marks={[{ value: 10, label: \"High\", hatchPast: true }]}\n evidence={{ value: 10.5, agent: 3 }}\n gap\n minLabel=\"Low\"\n maxLabel=\"Ceiling allows\"\n formatValue={(h) => `${h} h`}\n valueText={(h) => `Bills ${h} h, $${h * 120}`}\n/>\n"
|
|
1094
|
+
},
|
|
918
1095
|
"bottom-nav": {
|
|
919
1096
|
"category": "navigation",
|
|
920
1097
|
"description": "A bottom navigation bar of icon destinations for phone widths. Filled active destination, an optional unread mark, a hairline group break, safe-area padding, and its height published as --bottom-nav-height.",
|
|
@@ -6085,6 +6262,127 @@
|
|
|
6085
6262
|
],
|
|
6086
6263
|
"example": "<Label htmlFor=\"email\">Email address</Label>\n<Input id=\"email\" type=\"email\" />\n"
|
|
6087
6264
|
},
|
|
6265
|
+
"layer-chart": {
|
|
6266
|
+
"category": "data-display",
|
|
6267
|
+
"description": "A zoomable icicle that opens a tree layer by layer. Rows are layers; clicking a block grows it to full width and opens its children below it, animated. One hue per top-level node, lighter by depth, with solid, covered, not-billable, unresolved and today fills. SpanStrip draws a day's 5-minute spans in lanes on a time axis, the layer below the last.",
|
|
6268
|
+
"when_to_use": [
|
|
6269
|
+
"Hours or money broken down layer by layer (all clients, client, engagement, package, ticket, day) where the order of the layers matters",
|
|
6270
|
+
"Drilling into one branch of a deep tree while the path above it stays in view",
|
|
6271
|
+
"Showing what share of a parent each child takes, with thin children still clickable",
|
|
6272
|
+
"Re-measuring the same tree in a second measure (hours, then money) without changing its shapes",
|
|
6273
|
+
"A day's time in 5-minute cells per lane (SpanStrip), opened from the day layer"
|
|
6274
|
+
],
|
|
6275
|
+
"when_not_to_use": [
|
|
6276
|
+
"A flat list of parts that add up to a whole (use a stacked bar or ProportionBar)",
|
|
6277
|
+
"Use against a limit (use Meter)",
|
|
6278
|
+
"Trends over time (use Chart)",
|
|
6279
|
+
"A tree where sizes do not matter, only structure (use a tree view or nested list)"
|
|
6280
|
+
],
|
|
6281
|
+
"variants": {
|
|
6282
|
+
"kind": [
|
|
6283
|
+
"solid",
|
|
6284
|
+
"covered",
|
|
6285
|
+
"not-billable",
|
|
6286
|
+
"unresolved"
|
|
6287
|
+
]
|
|
6288
|
+
},
|
|
6289
|
+
"props": [
|
|
6290
|
+
{
|
|
6291
|
+
"name": "data",
|
|
6292
|
+
"type": "LayerNode",
|
|
6293
|
+
"description": "The tree. Each node has an id, a name, and optionally ref, layer, value, hue, kind, today, sub and children."
|
|
6294
|
+
},
|
|
6295
|
+
{
|
|
6296
|
+
"name": "measure",
|
|
6297
|
+
"type": "(node: LayerNode) => number | undefined",
|
|
6298
|
+
"default": "(node) => node.value",
|
|
6299
|
+
"description": "Reads a node's value in the current measure. Undefined on a parent sums its children; zero leaves the chart."
|
|
6300
|
+
},
|
|
6301
|
+
{
|
|
6302
|
+
"name": "focusId",
|
|
6303
|
+
"type": "string",
|
|
6304
|
+
"description": "The open block (controlled)."
|
|
6305
|
+
},
|
|
6306
|
+
{
|
|
6307
|
+
"name": "defaultFocusId",
|
|
6308
|
+
"type": "string",
|
|
6309
|
+
"description": "The block open at first (uncontrolled). Defaults to the root."
|
|
6310
|
+
},
|
|
6311
|
+
{
|
|
6312
|
+
"name": "onFocusChange",
|
|
6313
|
+
"type": "(id: string, node: LayerNode, reason: 'open' | 'up' | 'more') => void",
|
|
6314
|
+
"description": "Called when a block opens, by a click, Enter, Esc (up a layer) or a \"+n\" block (opens its parent)."
|
|
6315
|
+
},
|
|
6316
|
+
{
|
|
6317
|
+
"name": "format",
|
|
6318
|
+
"type": "(value: number, info: { node: LayerNode; short: boolean }) => string",
|
|
6319
|
+
"description": "Formats a value. short is the number alone, for thin blocks."
|
|
6320
|
+
},
|
|
6321
|
+
{
|
|
6322
|
+
"name": "renderBlock",
|
|
6323
|
+
"type": "(node: LayerNode, info: { role, width }) => ReactNode",
|
|
6324
|
+
"description": "Content drawn at the foot of a wide block one or two layers down, such as an estimate Meter in a package block."
|
|
6325
|
+
},
|
|
6326
|
+
{
|
|
6327
|
+
"name": "renderCard",
|
|
6328
|
+
"type": "(node: LayerNode, info: { value, share, more }) => ReactNode",
|
|
6329
|
+
"description": "The hover card's content. Defaults to the name, the layer, the value and the share of the parent."
|
|
6330
|
+
},
|
|
6331
|
+
{
|
|
6332
|
+
"name": "band",
|
|
6333
|
+
"type": "{ value: (node) => number | undefined; label?: string; format?: (v) => string; note?: (layer) => ReactNode }",
|
|
6334
|
+
"description": "An optional paler band under the rows where it is measured (agent time), with a one-line note where it is not."
|
|
6335
|
+
}
|
|
6336
|
+
],
|
|
6337
|
+
"dependencies": [],
|
|
6338
|
+
"tokens_used": [
|
|
6339
|
+
"--_c",
|
|
6340
|
+
"--_dur",
|
|
6341
|
+
"--_ease",
|
|
6342
|
+
"--_ground",
|
|
6343
|
+
"--_hf",
|
|
6344
|
+
"--_hfs",
|
|
6345
|
+
"--_hi",
|
|
6346
|
+
"--_hs",
|
|
6347
|
+
"--_segment",
|
|
6348
|
+
"--border-focus",
|
|
6349
|
+
"--color-error-500",
|
|
6350
|
+
"--focus-ring-offset",
|
|
6351
|
+
"--focus-ring-width",
|
|
6352
|
+
"--font-weight-bold",
|
|
6353
|
+
"--font-weight-medium",
|
|
6354
|
+
"--font-weight-semibold",
|
|
6355
|
+
"--layer-chart-alert-fill",
|
|
6356
|
+
"--layer-chart-alert-text",
|
|
6357
|
+
"--layer-chart-duration",
|
|
6358
|
+
"--layer-chart-easing",
|
|
6359
|
+
"--layer-chart-ground",
|
|
6360
|
+
"--layer-chart-investment-fill",
|
|
6361
|
+
"--layer-chart-investment-fill-strong",
|
|
6362
|
+
"--layer-chart-investment-ink",
|
|
6363
|
+
"--layer-chart-investment-solid",
|
|
6364
|
+
"--layer-hue-fill",
|
|
6365
|
+
"--layer-hue-fill-strong",
|
|
6366
|
+
"--layer-hue-ink",
|
|
6367
|
+
"--layer-hue-solid",
|
|
6368
|
+
"--paper-track-label",
|
|
6369
|
+
"--paper-track-tight",
|
|
6370
|
+
"--shadow-lg",
|
|
6371
|
+
"--spacing-1",
|
|
6372
|
+
"--spacing-2",
|
|
6373
|
+
"--spacing-3",
|
|
6374
|
+
"--spacing-4",
|
|
6375
|
+
"--surface-card",
|
|
6376
|
+
"--surface-interactive-active",
|
|
6377
|
+
"--surface-muted",
|
|
6378
|
+
"--surface-page",
|
|
6379
|
+
"--surface-popover",
|
|
6380
|
+
"--text-error",
|
|
6381
|
+
"--text-primary",
|
|
6382
|
+
"--text-secondary"
|
|
6383
|
+
],
|
|
6384
|
+
"example": "<LayerChart\n data={tree}\n measure={(n) => (mode === \"money\" ? n.money : n.hours)}\n focusId={focus}\n onFocusChange={(id) => setFocus(id)}\n format={(v) => `${v} h`}\n/>\n"
|
|
6385
|
+
},
|
|
6088
6386
|
"lightbox": {
|
|
6089
6387
|
"category": "media",
|
|
6090
6388
|
"description": "A full-screen image viewer with gallery navigation, keyboard and touch support, built on Radix Dialog.",
|
|
@@ -6462,6 +6760,117 @@
|
|
|
6462
6760
|
],
|
|
6463
6761
|
"example": "<Menubar>\n <MenubarMenu>\n <MenubarTrigger>File</MenubarTrigger>\n <MenubarContent>\n <MenubarItem>New <MenubarShortcut>Cmd+N</MenubarShortcut></MenubarItem>\n <MenubarItem>Open <MenubarShortcut>Cmd+O</MenubarShortcut></MenubarItem>\n <MenubarSeparator />\n <MenubarItem>Save <MenubarShortcut>Cmd+S</MenubarShortcut></MenubarItem>\n </MenubarContent>\n </MenubarMenu>\n</Menubar>\n"
|
|
6464
6762
|
},
|
|
6763
|
+
"meter": {
|
|
6764
|
+
"category": "data-display",
|
|
6765
|
+
"description": "A thin meter for use against a limit. The track is a hue's tint, the fill its ink, ticks mark a heads-up threshold and a ceiling, and a one-line label sits under it. The contract size adds zones (up to the low, hatched to the high), mark text and striped use past the limit.",
|
|
6766
|
+
"when_to_use": [
|
|
6767
|
+
"Hours used against a contract's ceiling, with a tick at the heads-up point (usually 80%)",
|
|
6768
|
+
"One compact meter per row in a list of clients or accounts",
|
|
6769
|
+
"A full contract meter with the low and high totals as zones and labelled marks",
|
|
6770
|
+
"A retainer month against its included hours, with billable overage striped in ink",
|
|
6771
|
+
"Quota or plan usage where crossing a threshold matters more than the exact percentage"
|
|
6772
|
+
],
|
|
6773
|
+
"when_not_to_use": [
|
|
6774
|
+
"Task completion or upload progress (use Progress)",
|
|
6775
|
+
"Discrete steps (use SegmentedProgress or Stepper)",
|
|
6776
|
+
"Parts of a whole that add up to 100% (use a stacked bar or chart)",
|
|
6777
|
+
"An editable amount (use Slider)"
|
|
6778
|
+
],
|
|
6779
|
+
"variants": {
|
|
6780
|
+
"size": [
|
|
6781
|
+
"compact",
|
|
6782
|
+
"contract"
|
|
6783
|
+
],
|
|
6784
|
+
"overflow": [
|
|
6785
|
+
"alert",
|
|
6786
|
+
"ink"
|
|
6787
|
+
]
|
|
6788
|
+
},
|
|
6789
|
+
"props": [
|
|
6790
|
+
{
|
|
6791
|
+
"name": "value",
|
|
6792
|
+
"type": "number",
|
|
6793
|
+
"description": "What has been used."
|
|
6794
|
+
},
|
|
6795
|
+
{
|
|
6796
|
+
"name": "max",
|
|
6797
|
+
"type": "number",
|
|
6798
|
+
"description": "The limit (a contract's ceiling, a month's included hours)."
|
|
6799
|
+
},
|
|
6800
|
+
{
|
|
6801
|
+
"name": "marks",
|
|
6802
|
+
"type": "{ value: number; label?: ReactNode; caption?: ReactNode; align?: 'start' | 'center' | 'end'; variant?: 'tick' | 'limit'; threshold?: boolean; hideWhenNarrow?: boolean }[]",
|
|
6803
|
+
"default": "[]",
|
|
6804
|
+
"description": "Ticks on the track. `threshold` marks the heads-up point. `label` and `caption` draw text under the tick; `hideWhenNarrow` hides that text under 30rem."
|
|
6805
|
+
},
|
|
6806
|
+
{
|
|
6807
|
+
"name": "zones",
|
|
6808
|
+
"type": "{ from?: number; to: number; variant?: 'solid' | 'hatched' }[]",
|
|
6809
|
+
"default": "[]",
|
|
6810
|
+
"description": "Bands behind the fill, in the hue's strong fill, solid or hatched."
|
|
6811
|
+
},
|
|
6812
|
+
{
|
|
6813
|
+
"name": "hue",
|
|
6814
|
+
"type": "number",
|
|
6815
|
+
"description": "A Paper project-hue angle (75 to 339). Reads --paper-hue-<angle>-fill, -fill-strong and -ink. Set --meter-hue-fill, --meter-hue-fill-strong and --meter-hue-ink yourself for any other colour."
|
|
6816
|
+
},
|
|
6817
|
+
{
|
|
6818
|
+
"name": "size",
|
|
6819
|
+
"type": "\"compact\" | \"contract\"",
|
|
6820
|
+
"default": "\"compact\"",
|
|
6821
|
+
"description": "\"compact\" is the 10px row meter; \"contract\" is the 30px meter with a thinner used bar."
|
|
6822
|
+
},
|
|
6823
|
+
{
|
|
6824
|
+
"name": "overflow",
|
|
6825
|
+
"type": "\"alert\" | \"ink\"",
|
|
6826
|
+
"default": "\"alert\"",
|
|
6827
|
+
"description": "How use past max draws. \"alert\" stripes it coral (unresolved hours); \"ink\" stripes it in ink (billable overage) and runs the fill through it."
|
|
6828
|
+
},
|
|
6829
|
+
{
|
|
6830
|
+
"name": "scale",
|
|
6831
|
+
"type": "number",
|
|
6832
|
+
"description": "The value at the track's right edge. Defaults to max, or 6% past value when it overflows. Pass one scale to line several meters up."
|
|
6833
|
+
},
|
|
6834
|
+
{
|
|
6835
|
+
"name": "children",
|
|
6836
|
+
"type": "ReactNode",
|
|
6837
|
+
"description": "The one-line label under the meter. Wrap the figure in <strong>."
|
|
6838
|
+
}
|
|
6839
|
+
],
|
|
6840
|
+
"dependencies": [],
|
|
6841
|
+
"tokens_used": [
|
|
6842
|
+
"--_alert",
|
|
6843
|
+
"--_fill",
|
|
6844
|
+
"--_fill-strong",
|
|
6845
|
+
"--_hatch",
|
|
6846
|
+
"--_ink",
|
|
6847
|
+
"--_inset-x",
|
|
6848
|
+
"--_inset-y",
|
|
6849
|
+
"--_tick",
|
|
6850
|
+
"--_tick-out",
|
|
6851
|
+
"--_track-h",
|
|
6852
|
+
"--_track-radius",
|
|
6853
|
+
"--color-error-500",
|
|
6854
|
+
"--font-size-xs",
|
|
6855
|
+
"--font-weight-bold",
|
|
6856
|
+
"--font-weight-medium",
|
|
6857
|
+
"--line-height-snug",
|
|
6858
|
+
"--meter-alert",
|
|
6859
|
+
"--meter-hatch-width",
|
|
6860
|
+
"--meter-hue-fill",
|
|
6861
|
+
"--meter-hue-fill-strong",
|
|
6862
|
+
"--meter-hue-ink",
|
|
6863
|
+
"--meter-tick",
|
|
6864
|
+
"--radius-full",
|
|
6865
|
+
"--spacing-1",
|
|
6866
|
+
"--spacing-2",
|
|
6867
|
+
"--surface-interactive-active",
|
|
6868
|
+
"--surface-muted",
|
|
6869
|
+
"--text-primary",
|
|
6870
|
+
"--text-secondary"
|
|
6871
|
+
],
|
|
6872
|
+
"example": "<Meter value={141} max={220} hue={219} marks={[{ value: 176, threshold: true }]}>\n <strong>64%</strong> of 220 h · heads-up at 80%\n</Meter>\n"
|
|
6873
|
+
},
|
|
6465
6874
|
"motion-specimen": {
|
|
6466
6875
|
"category": "specimen",
|
|
6467
6876
|
"description": "Duration and easing preview components with interactive play-animation controls.",
|
|
@@ -7568,6 +7977,96 @@
|
|
|
7568
7977
|
],
|
|
7569
7978
|
"example": "<Progress value={65} />\n\n{/* Static 4px chrome (e.g. door-open capacity meter — caller normalizes 0-1 to 0-100) */}\n<Progress\n value={Math.round(ratio * 100)}\n size=\"thin\"\n animate={false}\n aria-label=\"Time until door opens\"\n/>\n"
|
|
7570
7979
|
},
|
|
7980
|
+
"proportion-bar": {
|
|
7981
|
+
"category": "data-display",
|
|
7982
|
+
"description": "One measured total split into named parts, widths proportional to value, with an optional legend of swatch, label and value. Parts are told apart by the ground between them; hatched, striped and alert fills are built in.",
|
|
7983
|
+
"when_to_use": [
|
|
7984
|
+
"Hours split by bucket, money split by state, earned split into invoiced and waiting",
|
|
7985
|
+
"Two totals compared on one width, stacked one above the other (hours above money)",
|
|
7986
|
+
"A thin summary bar inside a card (`size=\"thin\"`)"
|
|
7987
|
+
],
|
|
7988
|
+
"when_not_to_use": [
|
|
7989
|
+
"One value against a maximum (use Progress)",
|
|
7990
|
+
"Equal steps of a flow (use SegmentedProgress)",
|
|
7991
|
+
"A share over time or many series (use Chart)"
|
|
7992
|
+
],
|
|
7993
|
+
"variants": {
|
|
7994
|
+
"size": [
|
|
7995
|
+
"default",
|
|
7996
|
+
"thin"
|
|
7997
|
+
]
|
|
7998
|
+
},
|
|
7999
|
+
"props": [
|
|
8000
|
+
{
|
|
8001
|
+
"name": "parts",
|
|
8002
|
+
"type": "{ label: string; value: number; fill?: string | 'hatched' | 'striped' | 'alert' }[]",
|
|
8003
|
+
"required": true,
|
|
8004
|
+
"description": "The parts, left to right. A part of zero or less is left out of the bar and kept in the legend. Without `fill` a part takes --proportion-bar-fill-1 to -4 by position; any other string is the part's CSS background."
|
|
8005
|
+
},
|
|
8006
|
+
{
|
|
8007
|
+
"name": "size",
|
|
8008
|
+
"type": "\"default\" | \"thin\"",
|
|
8009
|
+
"default": "\"default\"",
|
|
8010
|
+
"description": "Bar height. default=30px (a main balance), thin=8px (inside a card)."
|
|
8011
|
+
},
|
|
8012
|
+
{
|
|
8013
|
+
"name": "legend",
|
|
8014
|
+
"type": "boolean",
|
|
8015
|
+
"default": "false",
|
|
8016
|
+
"description": "Draw the legend row under the bar — swatch, label, value. The alert part's label and value read in --proportion-bar-alert-text."
|
|
8017
|
+
},
|
|
8018
|
+
{
|
|
8019
|
+
"name": "formatValue",
|
|
8020
|
+
"type": "(value: number) => string",
|
|
8021
|
+
"default": "String",
|
|
8022
|
+
"description": "Formats every value in the legend, the summary and the part tooltips (e.g. v => `${v} h`)."
|
|
8023
|
+
},
|
|
8024
|
+
{
|
|
8025
|
+
"name": "summary",
|
|
8026
|
+
"type": "string",
|
|
8027
|
+
"description": "The bar's accessible text (it is a role=\"img\"). Defaults to \"186.5 h: On a package 92.25 h, Outside a package 41.5 h, …\"."
|
|
8028
|
+
}
|
|
8029
|
+
],
|
|
8030
|
+
"dependencies": [
|
|
8031
|
+
"@loworbitstudio/visor-core"
|
|
8032
|
+
],
|
|
8033
|
+
"tokens_used": [
|
|
8034
|
+
"--chart-1",
|
|
8035
|
+
"--chart-2",
|
|
8036
|
+
"--chart-3",
|
|
8037
|
+
"--chart-4",
|
|
8038
|
+
"--color-success-500",
|
|
8039
|
+
"--color-success-600",
|
|
8040
|
+
"--font-size-xs",
|
|
8041
|
+
"--font-weight-bold",
|
|
8042
|
+
"--font-weight-medium",
|
|
8043
|
+
"--interactive-destructive-bg",
|
|
8044
|
+
"--line-height-snug",
|
|
8045
|
+
"--proportion-bar-alert-bg",
|
|
8046
|
+
"--proportion-bar-alert-text",
|
|
8047
|
+
"--proportion-bar-fill-1",
|
|
8048
|
+
"--proportion-bar-fill-2",
|
|
8049
|
+
"--proportion-bar-fill-3",
|
|
8050
|
+
"--proportion-bar-fill-4",
|
|
8051
|
+
"--proportion-bar-hatch-color",
|
|
8052
|
+
"--proportion-bar-hatch-gap",
|
|
8053
|
+
"--proportion-bar-stripe-a",
|
|
8054
|
+
"--proportion-bar-stripe-b",
|
|
8055
|
+
"--proportion-bar-track-bg",
|
|
8056
|
+
"--radius-full",
|
|
8057
|
+
"--radius-sm",
|
|
8058
|
+
"--spacing-1",
|
|
8059
|
+
"--spacing-2",
|
|
8060
|
+
"--spacing-4",
|
|
8061
|
+
"--surface-card",
|
|
8062
|
+
"--surface-muted",
|
|
8063
|
+
"--text-error",
|
|
8064
|
+
"--text-primary",
|
|
8065
|
+
"--text-secondary",
|
|
8066
|
+
"--text-tertiary"
|
|
8067
|
+
],
|
|
8068
|
+
"example": "<ProportionBar\n legend\n formatValue={(v) => `${v} h`}\n parts={[\n { label: \"On a package\", value: 92.25 },\n { label: \"Outside a package\", value: 41.5 },\n { label: \"Not billable\", value: 4, fill: \"hatched\" },\n { label: \"Unresolved\", value: 9.25, fill: \"alert\" },\n ]}\n/>\n<ProportionBar size=\"thin\" parts={[{ label: \"Invoiced\", value: 12455 }, { label: \"Waiting\", value: 9025, fill: \"striped\" }]} />\n"
|
|
8069
|
+
},
|
|
7571
8070
|
"quick-actions": {
|
|
7572
8071
|
"category": "navigation",
|
|
7573
8072
|
"description": "Vertical list of action rows pairing a left-aligned label with a right-aligned Kbd shortcut.",
|
|
@@ -14142,8 +14641,11 @@
|
|
|
14142
14641
|
"chart",
|
|
14143
14642
|
"fidelity-mirror",
|
|
14144
14643
|
"key-value-list",
|
|
14644
|
+
"layer-chart",
|
|
14145
14645
|
"marquee",
|
|
14646
|
+
"meter",
|
|
14146
14647
|
"name-roster",
|
|
14648
|
+
"proportion-bar",
|
|
14147
14649
|
"segmented-progress",
|
|
14148
14650
|
"sparkline",
|
|
14149
14651
|
"spinner",
|
|
@@ -14185,33 +14687,8 @@
|
|
|
14185
14687
|
"toast-card",
|
|
14186
14688
|
"tooltip"
|
|
14187
14689
|
],
|
|
14188
|
-
"navigation": [
|
|
14189
|
-
"bottom-nav",
|
|
14190
|
-
"breadcrumb",
|
|
14191
|
-
"command",
|
|
14192
|
-
"doc-frame",
|
|
14193
|
-
"doc-nav",
|
|
14194
|
-
"navbar",
|
|
14195
|
-
"page-header",
|
|
14196
|
-
"pagination",
|
|
14197
|
-
"quick-actions",
|
|
14198
|
-
"section-header",
|
|
14199
|
-
"section-nav",
|
|
14200
|
-
"stepper",
|
|
14201
|
-
"tabs"
|
|
14202
|
-
],
|
|
14203
|
-
"layout": [
|
|
14204
|
-
"box",
|
|
14205
|
-
"collapsible",
|
|
14206
|
-
"container",
|
|
14207
|
-
"grid",
|
|
14208
|
-
"inline",
|
|
14209
|
-
"scroll-area",
|
|
14210
|
-
"separator",
|
|
14211
|
-
"sidebar",
|
|
14212
|
-
"stack"
|
|
14213
|
-
],
|
|
14214
14690
|
"form": [
|
|
14691
|
+
"billing-slider",
|
|
14215
14692
|
"button",
|
|
14216
14693
|
"calendar",
|
|
14217
14694
|
"checkbox",
|
|
@@ -14248,6 +14725,32 @@
|
|
|
14248
14725
|
"tin-input",
|
|
14249
14726
|
"toggle-group"
|
|
14250
14727
|
],
|
|
14728
|
+
"navigation": [
|
|
14729
|
+
"bottom-nav",
|
|
14730
|
+
"breadcrumb",
|
|
14731
|
+
"command",
|
|
14732
|
+
"doc-frame",
|
|
14733
|
+
"doc-nav",
|
|
14734
|
+
"navbar",
|
|
14735
|
+
"page-header",
|
|
14736
|
+
"pagination",
|
|
14737
|
+
"quick-actions",
|
|
14738
|
+
"section-header",
|
|
14739
|
+
"section-nav",
|
|
14740
|
+
"stepper",
|
|
14741
|
+
"tabs"
|
|
14742
|
+
],
|
|
14743
|
+
"layout": [
|
|
14744
|
+
"box",
|
|
14745
|
+
"collapsible",
|
|
14746
|
+
"container",
|
|
14747
|
+
"grid",
|
|
14748
|
+
"inline",
|
|
14749
|
+
"scroll-area",
|
|
14750
|
+
"separator",
|
|
14751
|
+
"sidebar",
|
|
14752
|
+
"stack"
|
|
14753
|
+
],
|
|
14251
14754
|
"media": [
|
|
14252
14755
|
"carousel",
|
|
14253
14756
|
"image",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loworbitstudio/visor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.50.0",
|
|
4
4
|
"description": "CLI for the Visor design system — add components, hooks, and utilities to your project.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@aws-sdk/client-s3": "^3.1021.0",
|
|
48
48
|
"@babel/parser": "^7.26.0",
|
|
49
|
-
"@loworbitstudio/visor-theme-engine": "^0.
|
|
49
|
+
"@loworbitstudio/visor-theme-engine": "^0.38.0",
|
|
50
50
|
"commander": "^13.1.0",
|
|
51
51
|
"diff": "^8.0.4",
|
|
52
52
|
"picocolors": "^1.1.1",
|