@loworbitstudio/visor 1.18.1 → 1.20.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "0.4.0",
3
- "generated_at": "2026-07-15T17:44:38.978Z",
3
+ "generated_at": "2026-07-21T04:26:48.821Z",
4
4
  "components": {
5
5
  "accessibility-specimen": {
6
6
  "category": "specimen",
@@ -1004,7 +1004,8 @@
1004
1004
  "size": [
1005
1005
  "sm",
1006
1006
  "md",
1007
- "lg"
1007
+ "lg",
1008
+ "dlg"
1008
1009
  ]
1009
1010
  },
1010
1011
  "props": [
@@ -1015,8 +1016,9 @@
1015
1016
  },
1016
1017
  {
1017
1018
  "name": "size",
1018
- "type": "'sm' | 'md' | 'lg'",
1019
- "default": "md"
1019
+ "type": "'sm' | 'md' | 'lg' | 'dlg'",
1020
+ "default": "md",
1021
+ "description": "Standard sizes plus `dlg` — the compact dialog-footer button (dlg-btn) from the Animal dialog substrate (VI-620): 11px/600 text, tokenized ~8/12px padding, radius-lg. Its three intents reuse the variant axis — primary via variant=\"default\", ghost via variant=\"ghost\" (renders a hairline-outlined, secondary-ink face at dlg size), danger via variant=\"destructive\" (renders a subtle-danger face at dlg size).\n"
1020
1022
  },
1021
1023
  {
1022
1024
  "name": "asChild",
@@ -1050,12 +1052,16 @@
1050
1052
  "--border-default",
1051
1053
  "--border-focus",
1052
1054
  "--border-strong",
1055
+ "--destructive",
1053
1056
  "--focus-ring-offset",
1054
1057
  "--focus-ring-width",
1058
+ "--font-size-2xs",
1055
1059
  "--font-size-base",
1056
1060
  "--font-size-sm",
1057
1061
  "--font-size-xs",
1058
1062
  "--font-weight-medium",
1063
+ "--font-weight-semibold",
1064
+ "--hairline",
1059
1065
  "--interactive-destructive-bg",
1060
1066
  "--interactive-destructive-bg-hover",
1061
1067
  "--interactive-destructive-text",
@@ -1071,15 +1077,19 @@
1071
1077
  "--motion-easing-default",
1072
1078
  "--opacity-40",
1073
1079
  "--primary",
1080
+ "--radius-lg",
1074
1081
  "--radius-md",
1075
1082
  "--spacing-2",
1076
1083
  "--spacing-3",
1077
1084
  "--spacing-4",
1078
1085
  "--spacing-6",
1079
1086
  "--surface-card",
1087
+ "--surface-error-subtle",
1080
1088
  "--surface-muted",
1081
1089
  "--surface-subtle",
1082
- "--text-primary"
1090
+ "--text-error",
1091
+ "--text-primary",
1092
+ "--text-secondary"
1083
1093
  ],
1084
1094
  "example": "<Button variant=\"default\" size=\"md\">Save changes</Button>\n\n<Button variant=\"destructive\">Delete account</Button>\n\n<Button variant=\"ghost\" size=\"sm\">Cancel</Button>\n\n{/* Gated — no reason (tooltip suppressed) */}\n<Button gated>Delete organization</Button>\n\n{/* Gated with reason — tooltip shown on hover/focus */}\n<TooltipProvider>\n <Button gated gatedReason=\"You can't delete this — you're not an owner\">\n Delete organization\n </Button>\n</TooltipProvider>\n"
1085
1095
  },
@@ -2170,6 +2180,7 @@
2170
2180
  "--color-picker-indicator-shadow",
2171
2181
  "--color-picker-indicator-shadow-color",
2172
2182
  "--focus-ring-width",
2183
+ "--font-mono",
2173
2184
  "--font-size-sm",
2174
2185
  "--font-size-xs",
2175
2186
  "--motion-duration-150",
@@ -8736,6 +8747,12 @@
8736
8747
  "type": "boolean",
8737
8748
  "default": false,
8738
8749
  "description": "Animate the indicator dot with a soft pulse. Respects prefers-reduced-motion."
8750
+ },
8751
+ {
8752
+ "name": "mono",
8753
+ "type": "boolean",
8754
+ "default": false,
8755
+ "description": "Render the label in the monospace token face (--font-mono, 11px) — the dot + mono-token treatment from the Animal dialog substrate (VI-620), for ID / code / token-style status readouts.\n"
8739
8756
  }
8740
8757
  ],
8741
8758
  "dependencies": [
@@ -8743,6 +8760,7 @@
8743
8760
  ],
8744
8761
  "tokens_used": [
8745
8762
  "--color-white",
8763
+ "--font-mono",
8746
8764
  "--motion-duration-800",
8747
8765
  "--motion-easing-standard",
8748
8766
  "--radius-full",
@@ -8750,6 +8768,7 @@
8750
8768
  "--surface-info-default",
8751
8769
  "--surface-success-default",
8752
8770
  "--surface-warning-default",
8771
+ "--text-11",
8753
8772
  "--text-inverse",
8754
8773
  "--text-tertiary"
8755
8774
  ],
@@ -11436,6 +11455,43 @@
11436
11455
  "Production user-facing pages"
11437
11456
  ]
11438
11457
  },
11458
+ "dialog-field": {
11459
+ "category": "form",
11460
+ "description": "Compact dialog field block (dlg-field, the Animal dialog substrate VI-620): a flex-column field with a 5px label→control gap, an 11px/600 primary-ink label, and a recessed control \"well\" (a surface deeper than the card in both modes + a hairline border) hosting a leading icon slot, the control, and a trailing control/caret slot. Composes the Label atom; token-driven so the active theme swaps the treatment.\n",
11461
+ "components_used": [
11462
+ "label",
11463
+ "input"
11464
+ ],
11465
+ "when_to_use": [
11466
+ "Form fields inside a DialogForm / admin modal",
11467
+ "Fields that need a leading icon or a trailing caret / stepper / unit control",
11468
+ "Any compact form control that would otherwise hand-roll a recessed input well"
11469
+ ],
11470
+ "when_not_to_use": [
11471
+ "Standard page forms (use the Field component)",
11472
+ "Standalone labels (use Label directly)",
11473
+ "Non-form content grouping (use a div or Card)"
11474
+ ]
11475
+ },
11476
+ "dialog-form": {
11477
+ "category": "overlay",
11478
+ "description": "Compact admin modal shell (the Animal dialog substrate, VI-620) composing the Dialog atom into a backdrop + centered panel + header + footer. Exposes a titled header with a size axis (13px default / 16px), a body stack for DialogField blocks, and a right-aligned dlg-btn footer row. Token-driven — the active theme swaps the surface, hairline, radius, and title scale.\n",
11479
+ "components_used": [
11480
+ "dialog",
11481
+ "button"
11482
+ ],
11483
+ "when_to_use": [
11484
+ "Create / edit modals in an admin app (invite user, edit venue, add artist)",
11485
+ "Confirmation and destructive-action prompts that need a titled shell + actions",
11486
+ "Any pop-up form that would otherwise hand-roll a backdrop + panel + footer"
11487
+ ],
11488
+ "when_not_to_use": [
11489
+ "⌘K command palette (use command-dialog)",
11490
+ "Right-side detail editing (use admin-detail-drawer / Sheet)",
11491
+ "Non-blocking notifications (use Toast)",
11492
+ "A plain full-page form (use a page, not a modal)"
11493
+ ]
11494
+ },
11439
11495
  "export-menu": {
11440
11496
  "category": "admin",
11441
11497
  "description": "Export button + popover composing a format-picker radio group, optional scope checkboxes, and an async-aware Cancel/Export footer. Drop-in for any admin list's export affordance.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loworbitstudio/visor",
3
- "version": "1.18.1",
3
+ "version": "1.20.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.17.1",
49
+ "@loworbitstudio/visor-theme-engine": "^0.18.0",
50
50
  "commander": "^13.1.0",
51
51
  "diff": "^8.0.4",
52
52
  "picocolors": "^1.1.1",