@1money/component-ui 0.0.95-alpha.2 → 0.0.95-alpha.4

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 (39) hide show
  1. package/es/business/Form/ResultForm/ResultForm.js +19 -13
  2. package/es/business/Form/index.d.ts +1 -0
  3. package/es/business/Form/index.js +2 -1
  4. package/es/business/Form/variants/ExpiredForm.d.ts +3 -0
  5. package/es/business/Form/variants/ExpiredForm.js +21 -0
  6. package/es/business/Form/variants/FailureForm.d.ts +3 -0
  7. package/es/business/Form/variants/FailureForm.js +20 -0
  8. package/es/business/Form/variants/PendingForm.d.ts +3 -0
  9. package/es/business/Form/variants/PendingForm.js +20 -0
  10. package/es/business/Form/variants/SuccessForm.d.ts +3 -0
  11. package/es/business/Form/variants/SuccessForm.js +20 -0
  12. package/es/business/Form/variants/index.d.ts +8 -0
  13. package/es/business/Form/variants/index.js +12 -0
  14. package/es/components/ActionBar/interface.d.ts +7 -2
  15. package/es/components/PanelLayout/PanelLayout.js +30 -10
  16. package/es/components/PanelLayout/interface.d.ts +6 -1
  17. package/es/components/PanelLayout/style/PanelLayout.css +3 -0
  18. package/es/index.css +1 -1
  19. package/lib/business/Form/ResultForm/ResultForm.js +19 -13
  20. package/lib/business/Form/index.d.ts +1 -0
  21. package/lib/business/Form/index.js +12 -1
  22. package/lib/business/Form/variants/ExpiredForm.d.ts +3 -0
  23. package/lib/business/Form/variants/ExpiredForm.js +27 -0
  24. package/lib/business/Form/variants/FailureForm.d.ts +3 -0
  25. package/lib/business/Form/variants/FailureForm.js +26 -0
  26. package/lib/business/Form/variants/PendingForm.d.ts +3 -0
  27. package/lib/business/Form/variants/PendingForm.js +26 -0
  28. package/lib/business/Form/variants/SuccessForm.d.ts +3 -0
  29. package/lib/business/Form/variants/SuccessForm.js +26 -0
  30. package/lib/business/Form/variants/index.d.ts +8 -0
  31. package/lib/business/Form/variants/index.js +34 -0
  32. package/lib/components/ActionBar/interface.d.ts +7 -2
  33. package/lib/components/PanelLayout/PanelLayout.js +30 -10
  34. package/lib/components/PanelLayout/interface.d.ts +6 -1
  35. package/lib/components/PanelLayout/style/PanelLayout.css +3 -0
  36. package/lib/index.css +1 -1
  37. package/package.json +6 -1
  38. package/scripts/mcp-server/examples.generated.json +42 -0
  39. package/scripts/mcp-server/index.generated.json +234 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1money/component-ui",
3
- "version": "0.0.95-alpha.2",
3
+ "version": "0.0.95-alpha.4",
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",
@@ -360,6 +360,11 @@
360
360
  "import": "./es/business/Form/ResultForm/index.js",
361
361
  "require": "./lib/business/Form/ResultForm/index.js"
362
362
  },
363
+ "./business/Form/variants": {
364
+ "types": "./es/business/Form/variants/index.d.ts",
365
+ "import": "./es/business/Form/variants/index.js",
366
+ "require": "./lib/business/Form/variants/index.js"
367
+ },
363
368
  "./business/PageForm": {
364
369
  "types": "./es/business/Form/PageForm/index.d.ts",
365
370
  "import": "./es/business/Form/PageForm/index.js",
@@ -727,6 +727,18 @@
727
727
  "source": "readme",
728
728
  "compilable": true
729
729
  },
730
+ "39fe9935032c60c665210ee02ca12f4a68b4e311984cb2fe509d9eb96b10babc": {
731
+ "title": "Copy Only",
732
+ "code": "<PanelLayout\n title='Just a title and a description'\n description='With no illustration, no children and no actions, only the header region renders — there is no empty footer taking up space.'\n />",
733
+ "source": "stories",
734
+ "compilable": true
735
+ },
736
+ "3a9e8bb02e0022b3f73c4c4244db569750d767f16770fc67712e4149488d1319": {
737
+ "title": "Canonical usage",
738
+ "code": "import type { PanelLayoutProps } from '@1money/component-ui';",
739
+ "source": "canonical",
740
+ "compilable": true
741
+ },
730
742
  "3b1c013f838f3b6af14a9a63496b252a2639f729be7c2afe0f0aa6f72973e0fe": {
731
743
  "title": "Responsive",
732
744
  "code": "<Row gutter={GRID_GUTTER}>\n <Col span={SPAN_THIRD} md={SPAN_HALF} sm={SPAN_FULL}>\n <div style={DEMO_BOX_STYLE}>A</div>\n </Col>\n <Col span={SPAN_THIRD} md={SPAN_HALF} sm={SPAN_FULL}>\n <div style={DEMO_BOX_STYLE}>B</div>\n </Col>\n <Col span={SPAN_THIRD} md={SPAN_HALF} sm={SPAN_FULL}>\n <div style={DEMO_BOX_STYLE}>C</div>\n </Col>\n </Row>",
@@ -841,6 +853,12 @@
841
853
  "source": "stories",
842
854
  "compilable": true
843
855
  },
856
+ "48b287ad75a8ce2d2fc677e87875bb89c058f7727d65015ee04b2582f1104eb2": {
857
+ "title": "Canonical usage",
858
+ "code": "<PANEL_LAYOUT_CONFIG />",
859
+ "source": "canonical",
860
+ "compilable": true
861
+ },
844
862
  "48c240723515be69d8de101f9bfe1d2ff596d82504645cc07dfb281c0a6a8ca5": {
845
863
  "title": "Canonical usage",
846
864
  "code": "import { Typography } from '@1money/component-ui';\n// or\nimport {\n Typography,\n TypographyBody,\n TypographyDisplay,\n TypographyHeadline,\n TypographyLabel,\n TypographyLink,\n TypographyTitle,\n} from '@1money/component-ui/Typography';",
@@ -1213,6 +1231,12 @@
1213
1231
  "source": "stories",
1214
1232
  "compilable": false
1215
1233
  },
1234
+ "6ba971a4b0aeff2f7e112cdca257621245ec9775ed495e422836e453a3634c61": {
1235
+ "title": "Canonical usage",
1236
+ "code": "<PanelLayout />",
1237
+ "source": "canonical",
1238
+ "compilable": true
1239
+ },
1216
1240
  "6bf195e98d5a455cd0e5d43c58373b8311a4178b49a2f00f1f029af3e4b24447": {
1217
1241
  "title": "Canonical usage",
1218
1242
  "code": "import { Empty } from '@1money/component-ui';\n// or\nimport { Empty } from '@1money/component-ui/Empty';",
@@ -1231,6 +1255,12 @@
1231
1255
  "source": "readme",
1232
1256
  "compilable": true
1233
1257
  },
1258
+ "6ee4b32ff036174858e06d25b536f09d972e82dc933f56140471a5925f442f24": {
1259
+ "title": "Anatomy",
1260
+ "code": "<PanelLayout\n showBackIcon\n onBack={() => {}}\n illustration='illusChecked'\n eyebrow='eyebrow'\n title='Title (Headline sm)'\n description='Description — body md, strong, secondary. Together with the eyebrow and title it is ONE header block on 8px seams, and it lives in the header region rather than the content region.'\n primary={{ label: 'Primary' }}\n secondary={{ label: 'Secondary' }}\n footnote={{ prompt: 'Footnote prompt', action: 'action', onClick: () => {} }}\n >\n <div\n style={{\n width: '100%',\n padding: 16,\n border: '1px dashed var(--om-border-default)',\n borderRadius: 8,\n textAlign: 'center',\n }}\n >\n children — free-form content region (a QR code, an OTP input, rows…)\n </div>\n </PanelLayout>",
1261
+ "source": "stories",
1262
+ "compilable": true
1263
+ },
1234
1264
  "6f097a82d83df1982f3f442539825fbae168fd100c8516f97657fdc82d8373f1": {
1235
1265
  "title": "Dependency In List",
1236
1266
  "code": "<ProForm\n {...args}\n initialValues={{ items: [{ type: 'fixed', amount: '100' }] }}\n onFinish={(values) => alert(JSON.stringify(values, null, 2))}\n >\n <ProFormList name=\"items\" label=\"Discounts\" min={1} max={5}>\n {(fields) =>\n fields.map(({ name, key }) => (\n <div key={key} style={{ display: 'flex', gap: 8, alignItems: 'flex-end' }}>\n <ProFormSelect\n name={`${name}.type`}\n label=\"Type\"\n valueEnum={{ fixed: 'Fixed amount', percent: 'Percentage' }}\n />\n <ProFormDependency name={[`${name}.type`]}>\n {(values) =>\n values[`${name}.type`] === 'percent' ? (\n <ProFormText name={`${name}.rate`} label=\"Rate (%)\" placeholder=\"e.g. 10\" />\n ) : (\n <ProFormText name={`${name}.amount`} label=\"Amount ($)\" placeholder=\"e.g. 100\" />\n )\n }\n </ProFormDependency>\n </div>\n ))\n }\n </ProFormList>\n </ProForm>",
@@ -1399,6 +1429,12 @@
1399
1429
  "source": "stories",
1400
1430
  "compilable": true
1401
1431
  },
1432
+ "7ca726063e078417e7d43a4eb1c069ef6f4bd4c4a820fd7ff1123dcab72a6d97": {
1433
+ "title": "Canonical usage",
1434
+ "code": "import type { PanelLayoutVariant } from '@1money/component-ui';",
1435
+ "source": "canonical",
1436
+ "compilable": true
1437
+ },
1402
1438
  "7d415c46958e4b98092da361ef3a5b5a788b71628f8dfaa3a8ee1021b6871cee": {
1403
1439
  "title": "Import",
1404
1440
  "code": "import { Button, Icons } from '@1money/component-ui';\n// or\nimport { Button } from '@1money/component-ui/Button';\nimport { Icons } from '@1money/component-ui/Icons';",
@@ -1993,6 +2029,12 @@
1993
2029
  "source": "stories",
1994
2030
  "compilable": true
1995
2031
  },
2032
+ "acbf22e3c4c1387a1eecf9c090585d1ee32ba45a94e3c4c3472ba74b5f0a7ffa": {
2033
+ "title": "Stepped Page",
2034
+ "code": "<PanelLayout\n showBackIcon\n onBack={() => {}}\n eyebrow='Step 2 of 3'\n title='Scan the QR code'\n description='Use your authenticator app to link it to your 1Money account.'\n primary={{ label: 'Next' }}\n footnote={{ action: \"Can't scan the QR code?\", onClick: () => {} }}\n />",
2035
+ "source": "stories",
2036
+ "compilable": true
2037
+ },
1996
2038
  "acd535782a8b3c08a8b1bb58612e250607a8c0fae373a31b2d8e0fc704d4721e": {
1997
2039
  "title": "Usage",
1998
2040
  "code": "const items = [\n { key: '1', title: 'Section Title', children: 'Content here...' },\n { key: '2', title: 'Another Section', children: 'More content...' },\n];\n\n<Accordion items={items} />\n<Accordion items={items} variant=\"stroke\" size=\"small\" />\n<Accordion items={items} multiple defaultActiveKeys={['1', '2']} />",
@@ -172,7 +172,7 @@
172
172
  "type": "ActionBarDirection",
173
173
  "optional": true,
174
174
  "default": null,
175
- "description": "Arrangement: `horizontal` (default) or `vertical` (stacked, each button full-width — result-dialog style).",
175
+ "description": "Arrangement: `horizontal` (default — two actions split the row) or `vertical` (stacked, each button full-width).",
176
176
  "inheritedFrom": null
177
177
  },
178
178
  {
@@ -7087,6 +7087,30 @@
7087
7087
  }
7088
7088
  ]
7089
7089
  },
7090
+ {
7091
+ "name": "PANEL_LAYOUT_CONFIG",
7092
+ "kind": "component",
7093
+ "category": "misc",
7094
+ "summary": "THE density table for content panels — the single thing to edit when the design changes.",
7095
+ "importPath": "@1money/component-ui",
7096
+ "subpathImport": "@1money/component-ui/PanelLayout",
7097
+ "sourceFile": "src/components/PanelLayout/constants.ts",
7098
+ "props": [],
7099
+ "extends": [],
7100
+ "relatedSymbols": [
7101
+ "PanelLayout",
7102
+ "PanelLayoutProps",
7103
+ "PanelLayoutVariant"
7104
+ ],
7105
+ "searchTags": [],
7106
+ "canonicalUsage": "<PANEL_LAYOUT_CONFIG />",
7107
+ "examples": [
7108
+ {
7109
+ "hash": "48b287ad75a8ce2d2fc677e87875bb89c058f7727d65015ee04b2582f1104eb2",
7110
+ "source": "canonical"
7111
+ }
7112
+ ]
7113
+ },
7090
7114
  {
7091
7115
  "name": "PageInfo",
7092
7116
  "kind": "type",
@@ -7332,6 +7356,215 @@
7332
7356
  }
7333
7357
  ]
7334
7358
  },
7359
+ {
7360
+ "name": "PanelLayout",
7361
+ "kind": "component",
7362
+ "category": "misc",
7363
+ "summary": "",
7364
+ "importPath": "@1money/component-ui",
7365
+ "subpathImport": "@1money/component-ui/PanelLayout",
7366
+ "sourceFile": "src/components/PanelLayout/PanelLayout.tsx",
7367
+ "props": [
7368
+ {
7369
+ "name": "variant",
7370
+ "type": "PanelLayoutVariant",
7371
+ "optional": true,
7372
+ "default": null,
7373
+ "description": "Which host this panel renders in.",
7374
+ "inheritedFrom": null
7375
+ },
7376
+ {
7377
+ "name": "scroll",
7378
+ "type": "boolean",
7379
+ "optional": true,
7380
+ "default": null,
7381
+ "description": "Override the host's scroll policy.",
7382
+ "inheritedFrom": null
7383
+ },
7384
+ {
7385
+ "name": "showBackIcon",
7386
+ "type": "boolean",
7387
+ "optional": true,
7388
+ "default": null,
7389
+ "description": "Show the back arrow at the TOP of the header block, on the same 8px seam as everything else in it.",
7390
+ "inheritedFrom": null
7391
+ },
7392
+ {
7393
+ "name": "onBack",
7394
+ "type": "() => void",
7395
+ "optional": true,
7396
+ "default": null,
7397
+ "description": "Fires when the back arrow is activated.",
7398
+ "inheritedFrom": null
7399
+ },
7400
+ {
7401
+ "name": "backIcon",
7402
+ "type": "ReactNode",
7403
+ "optional": true,
7404
+ "default": null,
7405
+ "description": "Replace the default back arrow node (keeps its slot and seam).",
7406
+ "inheritedFrom": null
7407
+ },
7408
+ {
7409
+ "name": "eyebrow",
7410
+ "type": "ReactNode",
7411
+ "optional": true,
7412
+ "default": null,
7413
+ "description": "Small label row above the title (\"Step 2 of 3\").",
7414
+ "inheritedFrom": null
7415
+ },
7416
+ {
7417
+ "name": "title",
7418
+ "type": "ReactNode",
7419
+ "optional": true,
7420
+ "default": null,
7421
+ "description": "Heading.",
7422
+ "inheritedFrom": null
7423
+ },
7424
+ {
7425
+ "name": "description",
7426
+ "type": "ReactNode",
7427
+ "optional": true,
7428
+ "default": null,
7429
+ "description": "Supporting copy under the title.",
7430
+ "inheritedFrom": null
7431
+ },
7432
+ {
7433
+ "name": "descriptionStrong",
7434
+ "type": "boolean",
7435
+ "optional": true,
7436
+ "default": null,
7437
+ "description": "Render the description in the strong (medium) weight — the family spec.",
7438
+ "inheritedFrom": null
7439
+ },
7440
+ {
7441
+ "name": "illustration",
7442
+ "type": "ReactNode | IconName",
7443
+ "optional": true,
7444
+ "default": null,
7445
+ "description": "Illustration above the title, `IconName` or node.",
7446
+ "inheritedFrom": null
7447
+ },
7448
+ {
7449
+ "name": "primary",
7450
+ "type": "ActionBarAction",
7451
+ "optional": true,
7452
+ "default": null,
7453
+ "description": "Primary action.",
7454
+ "inheritedFrom": null
7455
+ },
7456
+ {
7457
+ "name": "secondary",
7458
+ "type": "ActionBarAction",
7459
+ "optional": true,
7460
+ "default": null,
7461
+ "description": "Optional secondary (left) action.",
7462
+ "inheritedFrom": null
7463
+ },
7464
+ {
7465
+ "name": "direction",
7466
+ "type": "ActionBarDirection",
7467
+ "optional": true,
7468
+ "default": null,
7469
+ "description": "Action arrangement, forwarded to ActionBar: `horizontal` (default, row-splitting) or `vertical` (stacked full-width).",
7470
+ "inheritedFrom": null
7471
+ },
7472
+ {
7473
+ "name": "footnote",
7474
+ "type": "ActionBarFootnote",
7475
+ "optional": true,
7476
+ "default": null,
7477
+ "description": "Optional centered footnote row below the actions.",
7478
+ "inheritedFrom": null
7479
+ },
7480
+ {
7481
+ "name": "children",
7482
+ "type": "ReactNode",
7483
+ "optional": true,
7484
+ "default": null,
7485
+ "description": "Extra content between the header block and the actions (e.g.",
7486
+ "inheritedFrom": null
7487
+ }
7488
+ ],
7489
+ "extends": [
7490
+ "Pick<FormLayoutProps, 'width' | 'className'>"
7491
+ ],
7492
+ "relatedSymbols": [
7493
+ "PANEL_LAYOUT_CONFIG",
7494
+ "PanelLayoutProps",
7495
+ "PanelLayoutVariant"
7496
+ ],
7497
+ "searchTags": [],
7498
+ "canonicalUsage": "<PanelLayout />",
7499
+ "examples": [
7500
+ {
7501
+ "hash": "6ba971a4b0aeff2f7e112cdca257621245ec9775ed495e422836e453a3634c61",
7502
+ "source": "canonical"
7503
+ },
7504
+ {
7505
+ "hash": "6ee4b32ff036174858e06d25b536f09d972e82dc933f56140471a5925f442f24",
7506
+ "source": "stories"
7507
+ },
7508
+ {
7509
+ "hash": "acbf22e3c4c1387a1eecf9c090585d1ee32ba45a94e3c4c3472ba74b5f0a7ffa",
7510
+ "source": "stories"
7511
+ },
7512
+ {
7513
+ "hash": "39fe9935032c60c665210ee02ca12f4a68b4e311984cb2fe509d9eb96b10babc",
7514
+ "source": "stories"
7515
+ }
7516
+ ]
7517
+ },
7518
+ {
7519
+ "name": "PanelLayoutProps",
7520
+ "kind": "type",
7521
+ "category": "misc",
7522
+ "summary": "",
7523
+ "importPath": "@1money/component-ui",
7524
+ "subpathImport": "@1money/component-ui/PanelLayout",
7525
+ "sourceFile": "src/components/PanelLayout/interface.ts",
7526
+ "props": [],
7527
+ "extends": [],
7528
+ "relatedSymbols": [
7529
+ "PANEL_LAYOUT_CONFIG",
7530
+ "PanelLayout",
7531
+ "PanelLayoutVariant"
7532
+ ],
7533
+ "searchTags": [],
7534
+ "typeText": "interface PanelLayoutProps extends Pick<FormLayoutProps, 'width' | 'className'> { ... }",
7535
+ "canonicalUsage": "import type { PanelLayoutProps } from '@1money/component-ui';",
7536
+ "examples": [
7537
+ {
7538
+ "hash": "3a9e8bb02e0022b3f73c4c4244db569750d767f16770fc67712e4149488d1319",
7539
+ "source": "canonical"
7540
+ }
7541
+ ]
7542
+ },
7543
+ {
7544
+ "name": "PanelLayoutVariant",
7545
+ "kind": "type",
7546
+ "category": "misc",
7547
+ "summary": "",
7548
+ "importPath": "@1money/component-ui",
7549
+ "subpathImport": "@1money/component-ui/PanelLayout",
7550
+ "sourceFile": "src/components/PanelLayout/constants.ts",
7551
+ "props": [],
7552
+ "extends": [],
7553
+ "relatedSymbols": [
7554
+ "PANEL_LAYOUT_CONFIG",
7555
+ "PanelLayout",
7556
+ "PanelLayoutProps"
7557
+ ],
7558
+ "searchTags": [],
7559
+ "typeText": "keyof typeof PANEL_LAYOUT_CONFIG",
7560
+ "canonicalUsage": "import type { PanelLayoutVariant } from '@1money/component-ui';",
7561
+ "examples": [
7562
+ {
7563
+ "hash": "7ca726063e078417e7d43a4eb1c069ef6f4bd4c4a820fd7ff1123dcab72a6d97",
7564
+ "source": "canonical"
7565
+ }
7566
+ ]
7567
+ },
7335
7568
  {
7336
7569
  "name": "Popconfirm",
7337
7570
  "kind": "component",