@1money/component-ui 0.0.95-alpha.8 → 0.0.96-alpha.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.
Files changed (29) hide show
  1. package/es/business/Form/PageForm/PageForm.js +5 -4
  2. package/es/business/Form/PageForm/interface.d.ts +5 -5
  3. package/es/components/ActionBar/ActionBar.js +35 -13
  4. package/es/components/ActionBar/constants.d.ts +8 -0
  5. package/es/components/ActionBar/constants.js +8 -1
  6. package/es/components/ActionBar/interface.d.ts +23 -6
  7. package/es/components/ActionBar/style/ActionBar.css +3 -0
  8. package/es/components/FormLayout/config.d.ts +13 -16
  9. package/es/components/FormLayout/config.js +11 -14
  10. package/es/components/ProForm/ProFormItem.js +3 -2
  11. package/es/components/ProForm/fields/createProFormField.js +4 -2
  12. package/es/components/ProForm/interface.d.ts +18 -0
  13. package/es/index.css +1 -1
  14. package/lib/business/Form/PageForm/PageForm.js +5 -4
  15. package/lib/business/Form/PageForm/interface.d.ts +5 -5
  16. package/lib/components/ActionBar/ActionBar.js +34 -12
  17. package/lib/components/ActionBar/constants.d.ts +8 -0
  18. package/lib/components/ActionBar/constants.js +9 -2
  19. package/lib/components/ActionBar/interface.d.ts +23 -6
  20. package/lib/components/ActionBar/style/ActionBar.css +3 -0
  21. package/lib/components/FormLayout/config.d.ts +13 -16
  22. package/lib/components/FormLayout/config.js +11 -14
  23. package/lib/components/ProForm/ProFormItem.js +3 -2
  24. package/lib/components/ProForm/fields/createProFormField.js +4 -2
  25. package/lib/components/ProForm/interface.d.ts +18 -0
  26. package/lib/index.css +1 -1
  27. package/package.json +1 -1
  28. package/scripts/mcp-server/examples.generated.json +6 -6
  29. package/scripts/mcp-server/index.generated.json +12 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1money/component-ui",
3
- "version": "0.0.95-alpha.8",
3
+ "version": "0.0.96-alpha.2",
4
4
  "description": "React Components based on primereact for 1money front-end projects",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -1729,12 +1729,6 @@
1729
1729
  "source": "canonical",
1730
1730
  "compilable": true
1731
1731
  },
1732
- "93b172e8804898e8e815d5d9dc1ec3f3a8273cccd7b35f0c5ce46a2ef5bbd885": {
1733
- "title": "Usage",
1734
- "code": "// Form dialog footer (compact, left-aligned, medium buttons)\n<ActionBar layout='compact' secondary={{ label: 'Cancel', onClick: close }} primary={{ label: 'Add', loading, onClick: submit }} />\n\n// Result dialog / page form (fill: one action spans the row, two split it)\n<ActionBar primary={{ label: 'Done', onClick: close }} />\n\n// Stacked full-width (result dialogs)\n<ActionBar direction='vertical' primary={{ label: 'Sign Up' }} secondary={{ label: 'Use Another Email' }} />",
1735
- "source": "readme",
1736
- "compilable": true
1737
- },
1738
1732
  "93d23d9eeea4da875fbe248ae5096c5ebccefaab935749a8067d38b9c0485be9": {
1739
1733
  "title": "With Description",
1740
1734
  "code": "<Switch {...args} label=\"Label\" description=\"Description\" />",
@@ -2785,6 +2779,12 @@
2785
2779
  "source": "stories",
2786
2780
  "compilable": true
2787
2781
  },
2782
+ "ed506fd616f28cc8969e82408b26b408a595eaefb002a6e49234db091c1d111d": {
2783
+ "title": "Usage",
2784
+ "code": "// Form dialog footer (compact, left-aligned, medium buttons)\n<ActionBar layout='compact' secondary={{ label: 'Cancel', onClick: close }} primary={{ label: 'Add', loading, onClick: submit }} />\n\n// Result dialog / page form (fill: one action spans the row, two split it)\n<ActionBar primary={{ label: 'Done', onClick: close }} />\n\n// Stacked full-width (result dialogs)\n<ActionBar direction='vertical' primary={{ label: 'Sign Up' }} secondary={{ label: 'Use Another Email' }} />\n\n// Auth card footer: two footnote rows with different alignment\n<ActionBar\n direction='vertical'\n primary={{ label: 'Continue' }}\n secondary={{ label: 'Cancel' }}\n footnote={[\n // `onClick` when the flow swaps the card in place; `href` only when it\n // really navigates — an anchor with no destination loses open-in-new-tab,\n // middle click, and copy address.\n { action: 'Forgot your password?', align: 'start', onClick: showResetCard },\n { prompt: 'Have a passkey to log in?', action: 'Use Passkey', divided: true, onClick: usePasskey },\n ]}\n/>",
2785
+ "source": "readme",
2786
+ "compilable": true
2787
+ },
2788
2788
  "ed5aa33f8e734dad460aa9b2a7c6fc0690efc9cda3b0854c642d59b2bbf55870": {
2789
2789
  "title": "Illustrations",
2790
2790
  "code": "{\n const handleCopy = (el: string) => {\n copy(el);\n };\n\n return <div style={{ display: 'grid', gap: 24, gridTemplateColumns: 'repeat(auto-fill, minmax(200px, 1fr))' }}>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusChecked' />\")}>\n <Icons {...args} name='illusChecked' />\n <span>illusChecked</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusEmailError' />\")}>\n <Icons {...args} name='illusEmailError' />\n <span>illusEmailError</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusLinkExpired' />\")}>\n <Icons {...args} name='illusLinkExpired' />\n <span>illusLinkExpired</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illus2FA' />\")}>\n <Icons {...args} name='illus2FA' />\n <span>illus2FA</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusLocked' />\")}>\n <Icons {...args} name='illusLocked' />\n <span>illusLocked</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusError' />\")}>\n <Icons {...args} name='illusError' />\n <span>illusError</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusRegionNotSupported' />\")}>\n <Icons {...args} name='illusRegionNotSupported' />\n <span>illusRegionNotSupported</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusID' />\")}>\n <Icons {...args} name='illusID' />\n <span>illusID</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusVerification' />\")}>\n <Icons {...args} name='illusVerification' />\n <span>illusVerification</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusPending' />\")}>\n <Icons {...args} name='illusPending' color='#F4C600' />\n <span>illusPending</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusPasskey' />\")}>\n <Icons {...args} name='illusPasskey' />\n <span>illusPasskey</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusAddAccount' />\")}>\n <Icons {...args} name='illusAddAccount' />\n <span>illusAddAccount</span>\n </CopyIconBox>\n <CopyIconBox onClick={() => handleCopy(\"<Icons name='illusRewards' />\")}>\n <Icons {...args} name='illusRewards' />\n <span>illusRewards</span>\n </CopyIconBox>\n </div>;\n }",
@@ -201,10 +201,10 @@
201
201
  },
202
202
  {
203
203
  "name": "footnote",
204
- "type": "ActionBarFootnote",
204
+ "type": "ActionBarFootnote | ActionBarFootnote[]",
205
205
  "optional": true,
206
206
  "default": null,
207
- "description": "Optional centered footnote row below the actions.",
207
+ "description": "Footnote row(s) below the actions.",
208
208
  "inheritedFrom": null
209
209
  },
210
210
  {
@@ -243,7 +243,7 @@
243
243
  "source": "readme"
244
244
  },
245
245
  {
246
- "hash": "93b172e8804898e8e815d5d9dc1ec3f3a8273cccd7b35f0c5ce46a2ef5bbd885",
246
+ "hash": "ed506fd616f28cc8969e82408b26b408a595eaefb002a6e49234db091c1d111d",
247
247
  "source": "readme"
248
248
  }
249
249
  ]
@@ -278,7 +278,7 @@
278
278
  "name": "ActionBarFootnote",
279
279
  "kind": "type",
280
280
  "category": "misc",
281
- "summary": "Optional centered footnote row under the actions, e.g.",
281
+ "summary": "Optional footnote row under the actions, e.g.",
282
282
  "importPath": "@1money/component-ui",
283
283
  "subpathImport": "@1money/component-ui/ActionBar",
284
284
  "sourceFile": "src/components/ActionBar/interface.ts",
@@ -10678,6 +10678,14 @@
10678
10678
  "description": "",
10679
10679
  "inheritedFrom": null
10680
10680
  },
10681
+ {
10682
+ "name": "hideError",
10683
+ "type": "boolean",
10684
+ "optional": true,
10685
+ "default": null,
10686
+ "description": "Suppress the item's own error-message row.",
10687
+ "inheritedFrom": null
10688
+ },
10681
10689
  {
10682
10690
  "name": "hidden",
10683
10691
  "type": "boolean",