@godxjp/ui-mcp 0.21.2 → 0.21.3
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 +216 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -63,6 +63,11 @@ var COMPONENTS = [
|
|
|
63
63
|
type: "boolean",
|
|
64
64
|
defaultValue: "false",
|
|
65
65
|
description: "Grow the body to fill the remaining shell height. Default false = top-packed, content-height (short pages leave no stretched void). Enable for a full-height DataTable, SplitPane, or a chat surface."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "linkComponent",
|
|
69
|
+
type: "React.ElementType",
|
|
70
|
+
description: "Link component used for breadcrumb / header links (e.g. an Inertia or React Router `Link`). Defaults to a native `<a>`."
|
|
66
71
|
}
|
|
67
72
|
],
|
|
68
73
|
usage: [
|
|
@@ -275,6 +280,11 @@ import { StatCard } from "@godxjp/ui/data-display";
|
|
|
275
280
|
name: "footer",
|
|
276
281
|
type: "ReactNode",
|
|
277
282
|
description: "App-level footer outside the main content area."
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: "breadcrumb",
|
|
286
|
+
type: "BreadcrumbProp",
|
|
287
|
+
description: "Breadcrumb trail rendered in the topbar header for back-navigation."
|
|
278
288
|
}
|
|
279
289
|
],
|
|
280
290
|
usage: [
|
|
@@ -758,6 +768,23 @@ function MyShell({ children }: { content: React.ReactNode }) {
|
|
|
758
768
|
name: "onClick",
|
|
759
769
|
type: "React.MouseEventHandler<HTMLButtonElement>",
|
|
760
770
|
description: "Click handler. Does not fire while `loading` or `disabled`."
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
name: "count",
|
|
774
|
+
type: "number",
|
|
775
|
+
description: 'Trailing borderless counter pill after the label (filter tabs / segmented toggles, e.g. "Ch\u1EDD bay 18"). Localized via `Intl.NumberFormat`; styled per variant \u2014 never nest a `Badge` in a Button for this. Ignored when `asChild`.'
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
name: "overflowCount",
|
|
779
|
+
type: "number",
|
|
780
|
+
defaultValue: "99",
|
|
781
|
+
description: "Cap for `count` (Ant Badge parity) \u2014 when `count` exceeds it the pill renders `{overflowCount}+` (e.g. `99+`)."
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
name: "showZero",
|
|
785
|
+
type: "boolean",
|
|
786
|
+
defaultValue: "true",
|
|
787
|
+
description: "Whether the pill renders when `count` is 0 (Ant Badge parity). Pass `false` to hide the pill at zero."
|
|
761
788
|
}
|
|
762
789
|
],
|
|
763
790
|
usage: [
|
|
@@ -826,6 +853,11 @@ import { Trash2 } from "lucide-react";
|
|
|
826
853
|
type: '"span" | "p" | "div" | "label" | "strong" | "em" | "small" | "code" | "kbd" | "dt" | "dd" | "caption" | "abbr"',
|
|
827
854
|
defaultValue: '"span"',
|
|
828
855
|
description: "Rendered element. `code`/`kbd` are monospace by default."
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
name: "htmlFor",
|
|
859
|
+
type: "string",
|
|
860
|
+
description: "When set, Text renders as a `<label>` bound to this control id (polymorphic label use)."
|
|
829
861
|
}
|
|
830
862
|
],
|
|
831
863
|
usage: [
|
|
@@ -1423,6 +1455,11 @@ import { ResponsiveGrid } from "@godxjp/ui/layout";
|
|
|
1423
1455
|
type: "ReactNode",
|
|
1424
1456
|
required: true,
|
|
1425
1457
|
description: "Descriptions.Item elements."
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
name: "items",
|
|
1461
|
+
type: "DescriptionsItemProp[]",
|
|
1462
|
+
description: "Data-driven rows `{ label, value, span? }` (label/value are ReactNode) \u2014 the alternative to composing `Descriptions.Item` children."
|
|
1426
1463
|
}
|
|
1427
1464
|
],
|
|
1428
1465
|
usage: [
|
|
@@ -1908,6 +1945,17 @@ import { ResponsiveGrid } from "@godxjp/ui/layout";
|
|
|
1908
1945
|
name: "onChange",
|
|
1909
1946
|
type: "React.ChangeEventHandler<HTMLInputElement>",
|
|
1910
1947
|
description: "Native change handler."
|
|
1948
|
+
},
|
|
1949
|
+
{
|
|
1950
|
+
name: "allowClear",
|
|
1951
|
+
type: "boolean",
|
|
1952
|
+
defaultValue: "false",
|
|
1953
|
+
description: "Opt-in inline \u2715 that clears the field while it holds text (works controlled + uncontrolled). Off by default, so existing inputs are unchanged."
|
|
1954
|
+
},
|
|
1955
|
+
{
|
|
1956
|
+
name: "onClear",
|
|
1957
|
+
type: "() => void",
|
|
1958
|
+
description: "Called after the field is cleared via the inline \u2715 (requires `allowClear`)."
|
|
1911
1959
|
}
|
|
1912
1960
|
],
|
|
1913
1961
|
usage: [
|
|
@@ -2074,6 +2122,32 @@ import { ResponsiveGrid } from "@godxjp/ui/layout";
|
|
|
2074
2122
|
type: "number",
|
|
2075
2123
|
defaultValue: "250",
|
|
2076
2124
|
description: "Debounce delay (ms)."
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
name: "id",
|
|
2128
|
+
type: "string",
|
|
2129
|
+
description: "Input id; pair with `label` or an external `<label htmlFor>`."
|
|
2130
|
+
},
|
|
2131
|
+
{
|
|
2132
|
+
name: "label",
|
|
2133
|
+
type: "React.ReactNode",
|
|
2134
|
+
description: "Optional visible label rendered above the search box (falls back to an sr-only label)."
|
|
2135
|
+
},
|
|
2136
|
+
{
|
|
2137
|
+
name: "onChange",
|
|
2138
|
+
type: "(value: string) => void",
|
|
2139
|
+
description: "Fires on EVERY keystroke (immediate) \u2014 required to keep a controlled `value` responsive."
|
|
2140
|
+
},
|
|
2141
|
+
{
|
|
2142
|
+
name: "onSearchChange",
|
|
2143
|
+
type: "(value: string) => void",
|
|
2144
|
+
description: "Fires the DEBOUNCED search term after `debounceMs` \u2014 wire your query/filter here, not onChange."
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
name: "debounceMs",
|
|
2148
|
+
type: "number",
|
|
2149
|
+
defaultValue: "250",
|
|
2150
|
+
description: "Debounce delay (ms) before `onSearchChange` / `onSearch` fires."
|
|
2077
2151
|
}
|
|
2078
2152
|
],
|
|
2079
2153
|
usage: [
|
|
@@ -2111,7 +2185,7 @@ import { ResponsiveGrid } from "@godxjp/ui/layout";
|
|
|
2111
2185
|
{
|
|
2112
2186
|
name: "options",
|
|
2113
2187
|
type: "SearchSelectOptionProp[]",
|
|
2114
|
-
description: "Static option list. Passing this (or loadOptions) switches Select from the compound API to the data-driven API. Each option has { value, label, sublabel?, group?, disabled? }. group buckets the option under an optgroup-style heading."
|
|
2188
|
+
description: "Static option list. Passing this (or loadOptions) switches Select from the compound API to the data-driven API. Each option has { value, label, sublabel?, icon?, group?, disabled? }. `icon` (avatar / flag / lucide node) renders before the label in the rows AND on the trigger once selected. group buckets the option under an optgroup-style heading."
|
|
2115
2189
|
},
|
|
2116
2190
|
{
|
|
2117
2191
|
name: "loadOptions",
|
|
@@ -2143,13 +2217,23 @@ import { ResponsiveGrid } from "@godxjp/ui/layout";
|
|
|
2143
2217
|
{
|
|
2144
2218
|
name: "renderOption",
|
|
2145
2219
|
type: "(option: SearchSelectOptionProp) => React.ReactNode",
|
|
2146
|
-
description: "Custom per-option renderer (Ant-Design style). Defaults to label + optional sublabel."
|
|
2220
|
+
description: "Custom per-option renderer for the dropdown ROWS (Ant-Design style). Defaults to label + optional sublabel. Does not change the trigger \u2014 use `labelRender` for that."
|
|
2221
|
+
},
|
|
2222
|
+
{
|
|
2223
|
+
name: "labelRender",
|
|
2224
|
+
type: "(selected: { value: string; label: React.ReactNode; option?: SearchSelectOptionProp }) => React.ReactNode",
|
|
2225
|
+
description: "Custom renderer for the SELECTED value shown on the TRIGGER (Ant Design `labelRender`) \u2014 avatar + name + role badge, etc. `option` is undefined for an async preset whose page hasn't loaded. Only used while a value is selected; the placeholder still shows when empty."
|
|
2147
2226
|
},
|
|
2148
2227
|
{
|
|
2149
2228
|
name: "selectedLabel",
|
|
2150
2229
|
type: "string",
|
|
2151
2230
|
description: "Display label for the current value when its option is not in the loaded page (async). Prevents a flash of the raw id."
|
|
2152
2231
|
},
|
|
2232
|
+
{
|
|
2233
|
+
name: "selectedIcon",
|
|
2234
|
+
type: "React.ReactNode",
|
|
2235
|
+
description: "Leading icon shown on the trigger for the current value when its option isn't loaded yet (async preset) \u2014 the trigger counterpart of `selectedLabel`, so an edit form pre-filled from the server shows the avatar/flag at rest."
|
|
2236
|
+
},
|
|
2153
2237
|
{
|
|
2154
2238
|
name: "placeholder",
|
|
2155
2239
|
type: "string",
|
|
@@ -2398,6 +2482,17 @@ export function PrioritySelect({ value, onValueChange }) {
|
|
|
2398
2482
|
name: "onChange",
|
|
2399
2483
|
type: "React.ChangeEventHandler<HTMLTextAreaElement>",
|
|
2400
2484
|
description: "Change handler."
|
|
2485
|
+
},
|
|
2486
|
+
{
|
|
2487
|
+
name: "allowClear",
|
|
2488
|
+
type: "boolean",
|
|
2489
|
+
defaultValue: "false",
|
|
2490
|
+
description: "Opt-in inline \u2715 at the top-end that clears the field while it holds text (controlled + uncontrolled). Off by default."
|
|
2491
|
+
},
|
|
2492
|
+
{
|
|
2493
|
+
name: "onClear",
|
|
2494
|
+
type: "() => void",
|
|
2495
|
+
description: "Called after the field is cleared via the inline \u2715 (requires `allowClear`)."
|
|
2401
2496
|
}
|
|
2402
2497
|
],
|
|
2403
2498
|
usage: [
|
|
@@ -2532,6 +2627,21 @@ export function PrioritySelect({ value, onValueChange }) {
|
|
|
2532
2627
|
type: '"horizontal" | "vertical"',
|
|
2533
2628
|
defaultValue: '"vertical"',
|
|
2534
2629
|
description: "Layout direction."
|
|
2630
|
+
},
|
|
2631
|
+
{
|
|
2632
|
+
name: "defaultValue",
|
|
2633
|
+
type: "string",
|
|
2634
|
+
description: "Uncontrolled initial selected value."
|
|
2635
|
+
},
|
|
2636
|
+
{
|
|
2637
|
+
name: "disabled",
|
|
2638
|
+
type: "boolean",
|
|
2639
|
+
description: "Disable the whole group."
|
|
2640
|
+
},
|
|
2641
|
+
{
|
|
2642
|
+
name: "name",
|
|
2643
|
+
type: "string",
|
|
2644
|
+
description: "Form field name for native submission."
|
|
2535
2645
|
}
|
|
2536
2646
|
],
|
|
2537
2647
|
usage: [
|
|
@@ -2621,6 +2731,22 @@ export function PrioritySelect({ value, onValueChange }) {
|
|
|
2621
2731
|
name: "toDate",
|
|
2622
2732
|
type: "Date",
|
|
2623
2733
|
description: "Latest selectable date in the calendar. Days after this date are disabled in the grid, and the calendar navigation ends at this month."
|
|
2734
|
+
},
|
|
2735
|
+
{
|
|
2736
|
+
name: "allowClear",
|
|
2737
|
+
type: "boolean",
|
|
2738
|
+
defaultValue: "true",
|
|
2739
|
+
description: "Inline \u2715 on the trigger that resets the value when one is set (Ant-style). Pass `false` to hide it (e.g. a required field)."
|
|
2740
|
+
},
|
|
2741
|
+
{
|
|
2742
|
+
name: "defaultValue",
|
|
2743
|
+
type: "Date",
|
|
2744
|
+
description: "Uncontrolled initial date."
|
|
2745
|
+
},
|
|
2746
|
+
{
|
|
2747
|
+
name: "onValueChange",
|
|
2748
|
+
type: "(value: Date | undefined) => void",
|
|
2749
|
+
description: "Fires with the selected date (undefined when cleared)."
|
|
2624
2750
|
}
|
|
2625
2751
|
],
|
|
2626
2752
|
usage: [
|
|
@@ -2889,6 +3015,11 @@ import { Button } from "@godxjp/ui/general";
|
|
|
2889
3015
|
name: "icon",
|
|
2890
3016
|
type: "LucideIcon | false",
|
|
2891
3017
|
description: "Override or hide (false) the icon."
|
|
3018
|
+
},
|
|
3019
|
+
{
|
|
3020
|
+
name: "tone",
|
|
3021
|
+
type: '"success" | "warning" | "destructive" | "info" | "neutral"',
|
|
3022
|
+
description: "Semantic tone driving the colour + leading icon."
|
|
2892
3023
|
}
|
|
2893
3024
|
],
|
|
2894
3025
|
usage: [
|
|
@@ -3080,6 +3211,16 @@ toast.error("\u4FDD\u5B58\u306B\u5931\u6557\u3057\u307E\u3057\u305F");`,
|
|
|
3080
3211
|
name: "onValueChange",
|
|
3081
3212
|
type: "(page: number, pageSize: number) => void",
|
|
3082
3213
|
description: "Page / page-size change handler."
|
|
3214
|
+
},
|
|
3215
|
+
{
|
|
3216
|
+
name: "pageSizeOptions",
|
|
3217
|
+
type: "number[]",
|
|
3218
|
+
description: "Selectable page sizes shown in the size changer."
|
|
3219
|
+
},
|
|
3220
|
+
{
|
|
3221
|
+
name: "showSizeChanger",
|
|
3222
|
+
type: "boolean",
|
|
3223
|
+
description: "Show the page-size selector beside the pager."
|
|
3083
3224
|
}
|
|
3084
3225
|
],
|
|
3085
3226
|
usage: [
|
|
@@ -3184,6 +3325,31 @@ import { Button } from "@godxjp/ui/general";
|
|
|
3184
3325
|
type: '"horizontal" | "vertical"',
|
|
3185
3326
|
defaultValue: '"horizontal"',
|
|
3186
3327
|
description: "Layout direction."
|
|
3328
|
+
},
|
|
3329
|
+
{
|
|
3330
|
+
name: "status",
|
|
3331
|
+
type: '"wait" | "process" | "finish" | "error"',
|
|
3332
|
+
description: "Status of the CURRENT step (drives the active step colour)."
|
|
3333
|
+
},
|
|
3334
|
+
{
|
|
3335
|
+
name: "type",
|
|
3336
|
+
type: '"default" | "dot"',
|
|
3337
|
+
description: "Render full steps or compact dots."
|
|
3338
|
+
},
|
|
3339
|
+
{
|
|
3340
|
+
name: "size",
|
|
3341
|
+
type: '"md" | "sm"',
|
|
3342
|
+
description: "Step size."
|
|
3343
|
+
},
|
|
3344
|
+
{
|
|
3345
|
+
name: "titlePlacement",
|
|
3346
|
+
type: '"horizontal" | "vertical"',
|
|
3347
|
+
description: "Lay step titles beside or below the step icons."
|
|
3348
|
+
},
|
|
3349
|
+
{
|
|
3350
|
+
name: "onValueChange",
|
|
3351
|
+
type: "(value: number) => void",
|
|
3352
|
+
description: "Fires with the clicked step index (0-based)."
|
|
3187
3353
|
}
|
|
3188
3354
|
],
|
|
3189
3355
|
usage: [
|
|
@@ -3373,6 +3539,17 @@ formatDate(order.createdAt, { kind: "relative" }); // "3\u65E5\u524D"`,
|
|
|
3373
3539
|
name: "className",
|
|
3374
3540
|
type: "string",
|
|
3375
3541
|
description: "Extra Tailwind classes applied to the outer wrapper `<div>`. Use for width overrides (e.g. `w-32`)."
|
|
3542
|
+
},
|
|
3543
|
+
{
|
|
3544
|
+
name: "allowClear",
|
|
3545
|
+
type: "boolean",
|
|
3546
|
+
defaultValue: "true",
|
|
3547
|
+
description: "Inline \u2715 on the trigger that resets the value when one is set (Ant-style). Pass `false` to hide it (e.g. a required field)."
|
|
3548
|
+
},
|
|
3549
|
+
{
|
|
3550
|
+
name: "onValueChange",
|
|
3551
|
+
type: "(value: string) => void",
|
|
3552
|
+
description: "Fires with the canonical 24h `HH:mm` string (empty when cleared)."
|
|
3376
3553
|
}
|
|
3377
3554
|
],
|
|
3378
3555
|
usage: [
|
|
@@ -3493,6 +3670,22 @@ export function CutoffTimeForm() {
|
|
|
3493
3670
|
name: "className",
|
|
3494
3671
|
type: "string",
|
|
3495
3672
|
description: "Extra CSS classes applied to the root flex container (flex items-center gap-1). Use to constrain width or adjust layout; avoid overriding token colors."
|
|
3673
|
+
},
|
|
3674
|
+
{
|
|
3675
|
+
name: "allowClear",
|
|
3676
|
+
type: "boolean",
|
|
3677
|
+
defaultValue: "true",
|
|
3678
|
+
description: "Inline \u2715 on the trigger that resets the range when one is set (Ant-style). Pass `false` to hide it."
|
|
3679
|
+
},
|
|
3680
|
+
{
|
|
3681
|
+
name: "defaultValue",
|
|
3682
|
+
type: "DateRange",
|
|
3683
|
+
description: "Uncontrolled initial range."
|
|
3684
|
+
},
|
|
3685
|
+
{
|
|
3686
|
+
name: "onValueChange",
|
|
3687
|
+
type: "(value: DateRange | undefined) => void",
|
|
3688
|
+
description: "Fires with the selected range (undefined when cleared)."
|
|
3496
3689
|
}
|
|
3497
3690
|
],
|
|
3498
3691
|
usage: [
|
|
@@ -3972,6 +4165,11 @@ export function DepartmentFilter() {
|
|
|
3972
4165
|
name: "onSelectChange",
|
|
3973
4166
|
type: "(sourceSelectedKeys: string[], targetSelectedKeys: string[]) => void",
|
|
3974
4167
|
description: "Called whenever the checked selection in either panel changes. Provides updated arrays for source and target selections. Required when `selectedKeys` is controlled."
|
|
4168
|
+
},
|
|
4169
|
+
{
|
|
4170
|
+
name: "onValueChange",
|
|
4171
|
+
type: '(targetKeys: string[], direction: "left" | "right", moveKeys: string[]) => void',
|
|
4172
|
+
description: "Fires when items move between panels; you own `targetKeys` state."
|
|
3975
4173
|
}
|
|
3976
4174
|
],
|
|
3977
4175
|
usage: [
|
|
@@ -4094,6 +4292,11 @@ export function AccountMapping() {
|
|
|
4094
4292
|
name: "children",
|
|
4095
4293
|
type: "React.ReactNode",
|
|
4096
4294
|
description: "Custom button label for variant='button'. Falls back to the i18n 'Upload file' string."
|
|
4295
|
+
},
|
|
4296
|
+
{
|
|
4297
|
+
name: "onValueChange",
|
|
4298
|
+
type: "(items: UploadFileItemProp[]) => void",
|
|
4299
|
+
description: "Fires with the current file list."
|
|
4097
4300
|
}
|
|
4098
4301
|
],
|
|
4099
4302
|
usage: [
|
|
@@ -4303,6 +4506,11 @@ export function AvatarField() {
|
|
|
4303
4506
|
type: "string",
|
|
4304
4507
|
defaultValue: "undefined",
|
|
4305
4508
|
description: "DOM id applied to the hidden native <input type='color'>. Pass the FormField id here so the label's htmlFor targets this control correctly."
|
|
4509
|
+
},
|
|
4510
|
+
{
|
|
4511
|
+
name: "onValueChange",
|
|
4512
|
+
type: "(value: string) => void",
|
|
4513
|
+
description: "Fires with the committed hex string."
|
|
4306
4514
|
}
|
|
4307
4515
|
],
|
|
4308
4516
|
usage: [
|
|
@@ -5017,6 +5225,11 @@ function AccountQuickPick({ onSelect }: { onSelect: (id: string) => void }) {
|
|
|
5017
5225
|
name: "children",
|
|
5018
5226
|
type: "React.ReactNode",
|
|
5019
5227
|
description: "Manual children mode: used when `options` is omitted or empty. Render Checkbox items directly as children. You are responsible for composing each Checkbox with a Field for correct label/description layout."
|
|
5228
|
+
},
|
|
5229
|
+
{
|
|
5230
|
+
name: "onValueChange",
|
|
5231
|
+
type: "(value: string[]) => void",
|
|
5232
|
+
description: "Fires with the checked values array."
|
|
5020
5233
|
}
|
|
5021
5234
|
],
|
|
5022
5235
|
usage: [
|
|
@@ -10235,7 +10448,7 @@ ${c.example}
|
|
|
10235
10448
|
// package.json
|
|
10236
10449
|
var package_default = {
|
|
10237
10450
|
name: "@godxjp/ui-mcp",
|
|
10238
|
-
version: "0.21.
|
|
10451
|
+
version: "0.21.3",
|
|
10239
10452
|
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, 34 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).",
|
|
10240
10453
|
type: "module",
|
|
10241
10454
|
main: "./dist/index.js",
|