@godxjp/ui-mcp 0.11.0 → 0.12.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/index.js CHANGED
@@ -6916,6 +6916,85 @@ export function InvoiceListHeader() {
6916
6916
  </InputOTP>`,
6917
6917
  storyPath: "data-entry/InputOTP.stories.tsx",
6918
6918
  rules: [3, 6]
6919
+ },
6920
+ {
6921
+ name: "Rating",
6922
+ group: "data-entry",
6923
+ tagline: "Star-rating input (radiogroup) \u2014 controlled via value/onValueChange, form-submittable via name, supports readOnly display.",
6924
+ props: [
6925
+ { name: "value", type: "number", description: "Controlled rating (1..max)." },
6926
+ {
6927
+ name: "defaultValue",
6928
+ type: "number",
6929
+ defaultValue: "0",
6930
+ description: "Uncontrolled initial rating."
6931
+ },
6932
+ { name: "onValueChange", type: "(value: number) => void", description: "Rating callback." },
6933
+ { name: "max", type: "number", defaultValue: "5", description: "Number of stars." },
6934
+ { name: "readOnly", type: "boolean", description: "Display-only (e.g. an average score)." },
6935
+ {
6936
+ name: "name",
6937
+ type: "string",
6938
+ description: "Hidden input name for native form submission."
6939
+ }
6940
+ ],
6941
+ usage: [
6942
+ "DO use readOnly to DISPLAY a score (e.g. product average); interactive (default) for collecting a rating.",
6943
+ "DO pass `name` to submit the value in a plain form.",
6944
+ "DON'T render raw star icons for input \u2014 this handles keyboard (radiogroup), hover preview, and a11y."
6945
+ ],
6946
+ useCases: [
6947
+ "Product / vendor review input",
6948
+ "Display an average score (readOnly)",
6949
+ "Feedback / CSAT survey",
6950
+ "Priority or quality scoring in admin"
6951
+ ],
6952
+ related: ["RadioGroup (non-star single choice)", "Slider (continuous 0-100 value)"],
6953
+ example: `import { Rating } from "@godxjp/ui/data-entry";
6954
+
6955
+ <Rating name="score" defaultValue={4} onValueChange={(v) => console.log(v)} />`,
6956
+ storyPath: "data-entry/Rating.stories.tsx",
6957
+ rules: [3, 6, 23]
6958
+ },
6959
+ {
6960
+ name: "TagInput",
6961
+ group: "data-entry",
6962
+ tagline: "Chips/tags input \u2014 type + Enter (or comma) to add a tag, Backspace to remove the last; controlled via value/onValueChange (string[]).",
6963
+ props: [
6964
+ { name: "value", type: "string[]", description: "Controlled tag list." },
6965
+ { name: "defaultValue", type: "string[]", description: "Uncontrolled initial tags." },
6966
+ {
6967
+ name: "onValueChange",
6968
+ type: "(tags: string[]) => void",
6969
+ description: "Tag-list callback."
6970
+ },
6971
+ { name: "placeholder", type: "string", description: "Shown when empty." },
6972
+ {
6973
+ name: "name",
6974
+ type: "string",
6975
+ description: "Hidden input (comma-joined) for native form submission."
6976
+ }
6977
+ ],
6978
+ usage: [
6979
+ "DO use for free-form multi-value entry (labels, emails, keywords) where options aren't a fixed list.",
6980
+ "DO note dedupe is built in; Enter/comma commits, Backspace on empty removes the last chip.",
6981
+ "DON'T use for choosing from a KNOWN set \u2014 use Select (multiple) or a multi-Combobox instead."
6982
+ ],
6983
+ useCases: [
6984
+ "Labels / tags on a record",
6985
+ "Recipient email entry",
6986
+ "Keyword / skill lists",
6987
+ "Ad-hoc filter terms"
6988
+ ],
6989
+ related: [
6990
+ "Select (multiple) \u2014 when the values come from a fixed option set",
6991
+ "Combobox (multi) \u2014 searchable known set"
6992
+ ],
6993
+ example: `import { TagInput } from "@godxjp/ui/data-entry";
6994
+
6995
+ <TagInput name="labels" placeholder="\u30E9\u30D9\u30EB\u3092\u8FFD\u52A0\u2026" onValueChange={(tags) => setTags(tags)} />`,
6996
+ storyPath: "data-entry/TagInput.stories.tsx",
6997
+ rules: [3, 6, 23]
6919
6998
  }
6920
6999
  ];
6921
7000
  function findComponent(name) {