@godxjp/ui-mcp 0.15.0 → 0.16.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
@@ -6904,6 +6904,61 @@ export function InvoiceListHeader() {
6904
6904
  storyPath: "data-entry/PasswordInput.stories.tsx",
6905
6905
  rules: [3, 6]
6906
6906
  },
6907
+ {
6908
+ name: "PasswordStrength",
6909
+ group: "data-entry",
6910
+ tagline: "Evaluates password quality with a 0-4 score and optional rule checklist. Use with PasswordInput in secure forms.",
6911
+ props: [
6912
+ {
6913
+ name: "value",
6914
+ type: "string",
6915
+ required: true,
6916
+ description: "The current password value to evaluate."
6917
+ },
6918
+ {
6919
+ name: "rules",
6920
+ type: "PasswordRule[]",
6921
+ description: "`length` | `upper` | `lower` | `number` | `symbol`. Omit to use defaults."
6922
+ },
6923
+ {
6924
+ name: "showChecklist",
6925
+ type: "boolean",
6926
+ defaultValue: "true",
6927
+ description: "Render an optional checklist of rule checks below the bar."
6928
+ },
6929
+ {
6930
+ name: "labels",
6931
+ type: "{ weak: string; fair: string; strong: string }",
6932
+ description: "Text labels for the three score buckets."
6933
+ }
6934
+ ],
6935
+ usage: [
6936
+ "DO show PasswordStrength immediately below PasswordInput so users understand password quality before submitting.",
6937
+ "DO keep `rules` stable (default list is recommended for broad UI compatibility).",
6938
+ "DON'T treat the score as cryptographic strength; use it as a UI hint only."
6939
+ ],
6940
+ useCases: [
6941
+ "Account signup password field",
6942
+ "Password reset workflow",
6943
+ "Admin user invite form"
6944
+ ],
6945
+ related: ["PasswordInput", "FormField", "Input"],
6946
+ example: `import { PasswordInput, PasswordStrength } from "@godxjp/ui/data-entry";
6947
+
6948
+ const rules = ["length", "upper", "lower", "number", "symbol"] as const;
6949
+
6950
+ export default function PasswordBlock() {
6951
+ const [value, setValue] = useState("");
6952
+ return (
6953
+ <div className="ui-stack">
6954
+ <PasswordInput value={value} onChange={(event) => setValue(event.target.value)} />
6955
+ <PasswordStrength value={value} rules={rules} />
6956
+ </div>
6957
+ );
6958
+ }`,
6959
+ storyPath: "data-entry/PasswordStrength.stories.tsx",
6960
+ rules: [3, 6]
6961
+ },
6907
6962
  {
6908
6963
  name: "Drawer",
6909
6964
  group: "feedback",