@1money/component-ui 0.0.26 → 0.0.27
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/es/components/ProForm/ProFormItem.js +19 -12
- package/es/components/ProForm/core/constants.d.ts +4 -2
- package/es/components/ProForm/core/constants.js +7 -5
- package/es/components/ProForm/fields/ProFormFieldSet.js +5 -3
- package/es/components/ProForm/fields/createProFormField.js +6 -4
- package/es/components/ProForm/interface.d.ts +6 -3
- package/es/components/ProForm/style/ProForm.css +1 -1
- package/es/index.css +1 -1
- package/lib/components/ProForm/ProFormItem.js +18 -11
- package/lib/components/ProForm/core/constants.d.ts +4 -2
- package/lib/components/ProForm/core/constants.js +8 -6
- package/lib/components/ProForm/fields/ProFormFieldSet.js +5 -3
- package/lib/components/ProForm/fields/createProFormField.js +6 -4
- package/lib/components/ProForm/interface.d.ts +6 -3
- package/lib/components/ProForm/style/ProForm.css +1 -1
- package/lib/index.css +1 -1
- package/package.json +1 -1
- package/scripts/mcp-server/examples.generated.json +6 -0
- package/scripts/mcp-server/index.generated.json +22 -2
package/package.json
CHANGED
|
@@ -1219,6 +1219,12 @@
|
|
|
1219
1219
|
"source": "canonical",
|
|
1220
1220
|
"compilable": true
|
|
1221
1221
|
},
|
|
1222
|
+
"7a3a92935f0b863855900ffe5295cb58ad8e6a2f83cdf8ae82ea0a93ff8b829b": {
|
|
1223
|
+
"title": "Description And Feedback",
|
|
1224
|
+
"code": "<ProForm\n {...args}\n initialValues={{ username: '', email: '', bio: '', agree: false }}\n onFinish={(values) => alert(JSON.stringify(values, null, 2))}\n >\n <ProFormText\n name=\"username\"\n label=\"Username\"\n description=\"Only letters, numbers, and underscores. 3-20 characters.\"\n placeholder=\"Enter username\"\n feedback=\"This will be your public display name.\"\n rules={[\n { required: true, message: 'Username is required' },\n { min: 3, message: 'At least 3 characters' },\n ]}\n />\n <ProFormText\n name=\"email\"\n label=\"Email\"\n description=\"We'll never share your email with anyone else.\"\n placeholder=\"Enter email\"\n rules={[\n { required: true, message: 'Email is required' },\n { type: 'email', message: 'Invalid email format' },\n ]}\n />\n <ProFormTextArea\n name=\"bio\"\n label=\"Bio\"\n description=\"Markdown is supported. Max 500 characters.\"\n placeholder=\"Tell us about yourself\"\n />\n <ProFormPassword\n name=\"password\"\n label=\"Password\"\n description=\"Must contain at least 8 characters, one uppercase and one number.\"\n rules={[{ required: true, message: 'Password is required' }]}\n />\n <ProFormCheckbox\n name=\"agree\"\n label=\"I accept the terms\"\n feedback=\"You must agree before submitting.\"\n />\n </ProForm>",
|
|
1225
|
+
"source": "stories",
|
|
1226
|
+
"compilable": false
|
|
1227
|
+
},
|
|
1222
1228
|
"7ae894e8181a0534204e98888ca38826cde3925bb26787a732a0829c181669a3": {
|
|
1223
1229
|
"title": "Canonical usage",
|
|
1224
1230
|
"code": "import type { TourStep } from '@1money/component-ui';",
|
|
@@ -6538,6 +6538,10 @@
|
|
|
6538
6538
|
"hash": "0caa8e66489f540fb7f7969ee8d11091048124739a3d26ddcbc22e6ba567048f",
|
|
6539
6539
|
"source": "stories"
|
|
6540
6540
|
},
|
|
6541
|
+
{
|
|
6542
|
+
"hash": "7a3a92935f0b863855900ffe5295cb58ad8e6a2f83cdf8ae82ea0a93ff8b829b",
|
|
6543
|
+
"source": "stories"
|
|
6544
|
+
},
|
|
6541
6545
|
{
|
|
6542
6546
|
"hash": "74f28ec19da10ee7a3cecb129f444ca1e9b9bfa6a44bda5422d89c70a079ddc3",
|
|
6543
6547
|
"source": "stories"
|
|
@@ -7366,7 +7370,15 @@
|
|
|
7366
7370
|
"inheritedFrom": null
|
|
7367
7371
|
},
|
|
7368
7372
|
{
|
|
7369
|
-
"name": "
|
|
7373
|
+
"name": "description",
|
|
7374
|
+
"type": "ReactNode",
|
|
7375
|
+
"optional": true,
|
|
7376
|
+
"default": null,
|
|
7377
|
+
"description": "",
|
|
7378
|
+
"inheritedFrom": null
|
|
7379
|
+
},
|
|
7380
|
+
{
|
|
7381
|
+
"name": "feedback",
|
|
7370
7382
|
"type": "ReactNode",
|
|
7371
7383
|
"optional": true,
|
|
7372
7384
|
"default": null,
|
|
@@ -7950,7 +7962,15 @@
|
|
|
7950
7962
|
"inheritedFrom": null
|
|
7951
7963
|
},
|
|
7952
7964
|
{
|
|
7953
|
-
"name": "
|
|
7965
|
+
"name": "description",
|
|
7966
|
+
"type": "ReactNode",
|
|
7967
|
+
"optional": true,
|
|
7968
|
+
"default": null,
|
|
7969
|
+
"description": "",
|
|
7970
|
+
"inheritedFrom": null
|
|
7971
|
+
},
|
|
7972
|
+
{
|
|
7973
|
+
"name": "feedback",
|
|
7954
7974
|
"type": "ReactNode",
|
|
7955
7975
|
"optional": true,
|
|
7956
7976
|
"default": null,
|