@godxjp/ui-mcp 16.7.0 → 16.7.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/index.js CHANGED
@@ -1297,8 +1297,8 @@ import { ResponsiveGrid } from "@godxjp/ui/layout";
1297
1297
  },
1298
1298
  {
1299
1299
  name: "tone",
1300
- type: '"default" | "success" | "warning" | "destructive" | "info" | "muted" | "neutral"',
1301
- description: "SEMANTIC colour intent (ToneProp). This is the colour knob \u2014 success/warning/destructive/info/etc. Keep variant for structure, tone for meaning."
1300
+ type: '"default" | "primary" | "success" | "warning" | "destructive" | "info" | "muted" | "neutral"',
1301
+ description: 'SEMANTIC colour intent (BadgeTone = ToneProp + `primary`). This is the colour knob \u2014 success/warning/destructive/info/etc. `primary` is a SOFT brand pill (tinted brand fill + brand text) for the dashboard role-pill pattern; for a SOLID brand fill use `variant="default"`. Keep variant for structure, tone for meaning.'
1302
1302
  },
1303
1303
  {
1304
1304
  name: "shape",
@@ -1974,6 +1974,11 @@ import { Smartphone } from "lucide-react";
1974
1974
  type: "() => void",
1975
1975
  description: "Called after the field is cleared via the inline \u2715 (requires `allowClear`)."
1976
1976
  },
1977
+ {
1978
+ name: "leadingIcon",
1979
+ type: "React.ReactNode",
1980
+ description: "A leading affordance pinned inside the start of the field (e.g. a Mail / Lock / Search glyph) \u2014 purely decorative, rendered before the text. Sized to the control via tokens and offset with `ps-9` automatically; never hand-roll an absolutely-positioned icon over a plain Input."
1981
+ },
1977
1982
  {
1978
1983
  name: "trailingIcon",
1979
1984
  type: "React.ReactNode",
@@ -6515,7 +6520,12 @@ import { fetchInvoice } from "@/api/invoices";
6515
6520
  },
6516
6521
  { name: "name", type: "string", description: "Form field name for native submission." },
6517
6522
  { name: "placeholder", type: "string", description: "Placeholder text." },
6518
- { name: "disabled", type: "boolean", description: "Disables the field + toggle." }
6523
+ { name: "disabled", type: "boolean", description: "Disables the field + toggle." },
6524
+ {
6525
+ name: "leadingIcon",
6526
+ type: "React.ReactNode",
6527
+ description: "Inherited from Input \u2014 a leading glyph (e.g. a Lock icon) pinned inside the start of the field. The built-in show/hide eye stays on the trailing edge, so leading + trailing coexist here."
6528
+ }
6519
6529
  ],
6520
6530
  usage: [
6521
6531
  'DO use for any password / secret field instead of `<Input type="password">` so users get the show/hide affordance.',
@@ -8004,130 +8014,150 @@ var COMPONENT_TOKENS = [
8004
8014
  "value": "var(--radius)",
8005
8015
  "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8006
8016
  },
8017
+ {
8018
+ "name": "--button-radius",
8019
+ "value": "var(--radius-md)",
8020
+ "description": "Button corner radius \u2014 defaults to the button's historical `rounded-md` so nothing * changes by default, but is its OWN knob so a service theme can retune the button * radius INDEPENDENTLY of input/control radius (issue #124)."
8021
+ },
8022
+ {
8023
+ "name": "--control-font-size",
8024
+ "value": "var(--font-size-base)",
8025
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8026
+ },
8027
+ {
8028
+ "name": "--control-border-width",
8029
+ "value": "1px",
8030
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8031
+ },
8032
+ {
8033
+ "name": "--control-shadow",
8034
+ "value": "var(--shadow-xs)",
8035
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8036
+ },
8007
8037
  {
8008
8038
  "name": "--control-icon-size",
8009
8039
  "value": "calc(1rem * var(--scaling))",
8010
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8040
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8011
8041
  },
8012
8042
  {
8013
8043
  "name": "--control-icon-size-sm",
8014
8044
  "value": "calc(0.875rem * var(--scaling))",
8015
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8045
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8016
8046
  },
8017
8047
  {
8018
8048
  "name": "--control-focus-ring-width",
8019
8049
  "value": "var(--focus-ring-width)",
8020
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8050
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8021
8051
  },
8022
8052
  {
8023
8053
  "name": "--checkbox-size",
8024
8054
  "value": "calc(1rem * var(--scaling))",
8025
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8055
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8026
8056
  },
8027
8057
  {
8028
8058
  "name": "--checkbox-size-compact",
8029
8059
  "value": "0.875rem",
8030
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8060
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8031
8061
  },
8032
8062
  {
8033
8063
  "name": "--checkbox-size-comfortable",
8034
8064
  "value": "1.125rem",
8035
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8065
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8036
8066
  },
8037
8067
  {
8038
8068
  "name": "--choice-gap",
8039
8069
  "value": "var(--space-inline-sm)",
8040
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8070
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8041
8071
  },
8042
8072
  {
8043
8073
  "name": "--choice-group-gap-x",
8044
8074
  "value": "var(--space-6)",
8045
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8075
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8046
8076
  },
8047
8077
  {
8048
8078
  "name": "--choice-group-gap-y",
8049
8079
  "value": "var(--space-3)",
8050
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8080
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8051
8081
  },
8052
8082
  {
8053
8083
  "name": "--choice-description-gap",
8054
8084
  "value": "0.125rem",
8055
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8085
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8056
8086
  },
8057
8087
  {
8058
8088
  "name": "--choice-control-offset",
8059
8089
  "value": "0.125rem",
8060
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8090
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8061
8091
  },
8062
8092
  {
8063
8093
  "name": "--switch-width",
8064
8094
  "value": "calc(2.25rem * var(--scaling))",
8065
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8095
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8066
8096
  },
8067
8097
  {
8068
8098
  "name": "--switch-width-compact",
8069
8099
  "value": "2rem",
8070
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8100
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8071
8101
  },
8072
8102
  {
8073
8103
  "name": "--switch-width-comfortable",
8074
8104
  "value": "2.5rem",
8075
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8105
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8076
8106
  },
8077
8107
  {
8078
8108
  "name": "--switch-height",
8079
8109
  "value": "calc(1.25rem * var(--scaling))",
8080
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8110
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8081
8111
  },
8082
8112
  {
8083
8113
  "name": "--switch-height-compact",
8084
8114
  "value": "1.125rem",
8085
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8115
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8086
8116
  },
8087
8117
  {
8088
8118
  "name": "--switch-height-comfortable",
8089
8119
  "value": "1.375rem",
8090
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8120
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8091
8121
  },
8092
8122
  {
8093
8123
  "name": "--switch-thumb-size",
8094
8124
  "value": "calc(1rem * var(--scaling))",
8095
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8125
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8096
8126
  },
8097
8127
  {
8098
8128
  "name": "--switch-thumb-size-compact",
8099
8129
  "value": "0.875rem",
8100
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8130
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8101
8131
  },
8102
8132
  {
8103
8133
  "name": "--switch-thumb-size-comfortable",
8104
8134
  "value": "1.125rem",
8105
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8135
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8106
8136
  },
8107
8137
  {
8108
8138
  "name": "--switch-thumb-translate",
8109
8139
  "value": "calc(1rem * var(--scaling))",
8110
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8140
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8111
8141
  },
8112
8142
  {
8113
8143
  "name": "--switch-thumb-translate-compact",
8114
8144
  "value": "0.875rem",
8115
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8145
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8116
8146
  },
8117
8147
  {
8118
8148
  "name": "--switch-thumb-translate-comfortable",
8119
8149
  "value": "1.125rem",
8120
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8150
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8121
8151
  },
8122
8152
  {
8123
8153
  "name": "--slider-track-height",
8124
8154
  "value": "0.375rem",
8125
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8155
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8126
8156
  },
8127
8157
  {
8128
8158
  "name": "--slider-thumb-size",
8129
8159
  "value": "1rem",
8130
- "description": "Adjacent control sizes, derived from the active --control-height. The \xB1step * is scaled too so the whole control ladder stays proportional under --scaling."
8160
+ "description": "Control surface knobs \u2014 font-size, border width and resting shadow of every * `.ui-control` (input / picker trigger). Tokenised so a service theme tunes them * once instead of each component hard-coding Tailwind utilities. Defaults preserve * the historical look (font-size-base, 1px border, shadow-xs)."
8131
8161
  },
8132
8162
  {
8133
8163
  "name": "--checkbox-checked-background",
@@ -12580,7 +12610,7 @@ function lintJsx(jsx) {
12580
12610
  issues.push(
12581
12611
  "Tailwind heavy shadows are an AI tell \u2014 use ultra-diffuse low-opacity (< 0.05) or tinted shadows (soft.absolute-zero, minimalist)."
12582
12612
  );
12583
- if (/Inter|Roboto|Helvetica|Open\s*Sans/i.test(jsx))
12613
+ if (/\b(?:Inter|Roboto|Helvetica|Open\s+Sans)\b/i.test(jsx))
12584
12614
  issues.push(
12585
12615
  "Banned default fonts (Inter/Roboto/Helvetica/Open Sans). Use Geist/Clash Display/PP Editorial New (soft.absolute-zero, minimalist.negative-constraints)."
12586
12616
  );
@@ -12731,7 +12761,7 @@ ${c.example}
12731
12761
  // package.json
12732
12762
  var package_default = {
12733
12763
  name: "@godxjp/ui-mcp",
12734
- version: "16.7.0",
12764
+ version: "16.7.2",
12735
12765
  description: "Model Context Protocol server for @godxjp/ui \u2014 gives Claude Code / Codex CLI / Cursor / any MCP-aware agent live access to the component catalog, prop vocabulary, design tokens, 45 cardinal rules, copy-paste-ready patterns, 12 design / taste skills synthesised from Leonxlnx/taste-skill, 20+ anti-AI-tell patterns, and a 50-check redesign audit \u2014 token-efficient (list \u2192 drill-down).",
12736
12766
  type: "module",
12737
12767
  main: "./dist/index.js",