@1money/component-ui 0.0.33 → 0.0.35
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/Dialog/Dialog.js +9 -31
- package/es/components/Dialog/constants.d.ts +0 -3
- package/es/components/Dialog/constants.js +1 -4
- package/es/components/Dialog/interface.d.ts +0 -1
- package/es/components/Dialog/style/Dialog.css +1 -1
- package/es/components/Icons/Icons.d.ts +2 -1
- package/es/components/Icons/Icons.js +3 -2
- package/es/components/Icons/Illustrations.d.ts +1 -0
- package/es/components/Icons/Illustrations.js +70 -8
- package/es/index.css +1 -1
- package/lib/components/Dialog/Dialog.js +9 -31
- package/lib/components/Dialog/constants.d.ts +0 -3
- package/lib/components/Dialog/constants.js +1 -4
- package/lib/components/Dialog/interface.d.ts +0 -1
- package/lib/components/Dialog/style/Dialog.css +1 -1
- package/lib/components/Icons/Icons.d.ts +2 -1
- package/lib/components/Icons/Icons.js +2 -1
- package/lib/components/Icons/Illustrations.d.ts +1 -0
- package/lib/components/Icons/Illustrations.js +71 -9
- package/lib/index.css +1 -1
- package/package.json +1 -1
- package/scripts/mcp-server/examples.generated.json +12 -12
- package/scripts/mcp-server/index.generated.json +5 -10
package/package.json
CHANGED
|
@@ -445,12 +445,6 @@
|
|
|
445
445
|
"source": "stories",
|
|
446
446
|
"compilable": true
|
|
447
447
|
},
|
|
448
|
-
"341d33a3398e2a18e0d6bd76c9602a448d9a775132d0ccb1e3591038cec0fa5c": {
|
|
449
|
-
"title": "Usage",
|
|
450
|
-
"code": "<Dialog\n open={open}\n title=\"Confirm transfer\"\n description=\"Review the details before submitting.\"\n onCancel={() => setOpen(false)}\n onOk={handleSubmit}\n/>",
|
|
451
|
-
"source": "readme",
|
|
452
|
-
"compilable": true
|
|
453
|
-
},
|
|
454
448
|
"34536f5f5abc20bc7255387d21700a4725ea8d6f9806b09cb947375f7afde43c": {
|
|
455
449
|
"title": "Label Right",
|
|
456
450
|
"code": "<div style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>\n <Switch {...args} label=\"Label\" description=\"Description\" labelPlacement=\"right\" />\n <Switch {...args} label=\"Label\" description=\"Description\" labelPlacement=\"right\" defaultChecked />\n </div>",
|
|
@@ -1297,12 +1291,6 @@
|
|
|
1297
1291
|
"source": "stories",
|
|
1298
1292
|
"compilable": false
|
|
1299
1293
|
},
|
|
1300
|
-
"92d700fd2da1bf06587fe4c86118bff9b3b4b42eb3ec5a4c9a790f7ac8950ff6": {
|
|
1301
|
-
"title": "Illustrations",
|
|
1302
|
-
"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 </div>;\n }",
|
|
1303
|
-
"source": "stories",
|
|
1304
|
-
"compilable": false
|
|
1305
|
-
},
|
|
1306
1294
|
"93778978611c05850a486471281bd8bb01ceeac22d3d7708ec1c59aaefb0ae95": {
|
|
1307
1295
|
"title": "Canonical usage",
|
|
1308
1296
|
"code": "import { Alert } from '@1money/components-ui';\n// or\nimport { Alert } from '@1money/components-ui/Alert';",
|
|
@@ -2029,6 +2017,12 @@
|
|
|
2029
2017
|
"source": "readme",
|
|
2030
2018
|
"compilable": true
|
|
2031
2019
|
},
|
|
2020
|
+
"e57037f057f4da5ac90baae9ad1d85153cb48c9cfff34a65cbe2a927bf5cb713": {
|
|
2021
|
+
"title": "Usage",
|
|
2022
|
+
"code": "<Dialog\n open={open}\n title=\"Confirm transfer\"\n onCancel={() => setOpen(false)}\n onOk={handleSubmit}\n/>",
|
|
2023
|
+
"source": "readme",
|
|
2024
|
+
"compilable": true
|
|
2025
|
+
},
|
|
2032
2026
|
"e590bf2afc81b30b930dada6662ca8d5f1563febfe83f4e804b82bdeaa55d9e3": {
|
|
2033
2027
|
"title": "Value Enum",
|
|
2034
2028
|
"code": "<ProForm\n {...args}\n onFinish={(values) => alert(JSON.stringify(values, null, 2))}\n >\n <ProFormSelect\n name=\"status\"\n label=\"Status\"\n valueEnum={{ active: 'Active', inactive: 'Inactive', pending: { text: 'Pending', disabled: true } }}\n />\n <ProFormRadioGroup\n name=\"role\"\n label=\"Role\"\n valueEnum={{ admin: 'Admin', editor: 'Editor', viewer: 'Viewer' }}\n />\n </ProForm>",
|
|
@@ -2083,6 +2077,12 @@
|
|
|
2083
2077
|
"source": "stories",
|
|
2084
2078
|
"compilable": true
|
|
2085
2079
|
},
|
|
2080
|
+
"ed5aa33f8e734dad460aa9b2a7c6fc0690efc9cda3b0854c642d59b2bbf55870": {
|
|
2081
|
+
"title": "Illustrations",
|
|
2082
|
+
"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 }",
|
|
2083
|
+
"source": "stories",
|
|
2084
|
+
"compilable": false
|
|
2085
|
+
},
|
|
2086
2086
|
"ede4a5629c02420f621373a9169c9671b906cc09439931df34b222da85911147": {
|
|
2087
2087
|
"title": "With Action",
|
|
2088
2088
|
"code": "<Alert\n {...args}\n status=\"info\"\n title=\"Payment instruction ready\"\n body=\"Share the deposit instruction with your treasury team or copy it directly.\"\n link={{ label: 'Preview instruction', onClick: fn() }}\n action={<Button onClick={fn()}>Copy details</Button>}\n closable={false}\n />",
|
|
@@ -2102,14 +2102,6 @@
|
|
|
2102
2102
|
"description": "",
|
|
2103
2103
|
"inheritedFrom": null
|
|
2104
2104
|
},
|
|
2105
|
-
{
|
|
2106
|
-
"name": "description",
|
|
2107
|
-
"type": "ReactNode",
|
|
2108
|
-
"optional": true,
|
|
2109
|
-
"default": null,
|
|
2110
|
-
"description": "",
|
|
2111
|
-
"inheritedFrom": null
|
|
2112
|
-
},
|
|
2113
2105
|
{
|
|
2114
2106
|
"name": "children",
|
|
2115
2107
|
"type": "ReactNode",
|
|
@@ -2286,7 +2278,7 @@
|
|
|
2286
2278
|
"source": "readme"
|
|
2287
2279
|
},
|
|
2288
2280
|
{
|
|
2289
|
-
"hash": "
|
|
2281
|
+
"hash": "e57037f057f4da5ac90baae9ad1d85153cb48c9cfff34a65cbe2a927bf5cb713",
|
|
2290
2282
|
"source": "readme"
|
|
2291
2283
|
},
|
|
2292
2284
|
{
|
|
@@ -4506,7 +4498,7 @@
|
|
|
4506
4498
|
"source": "stories"
|
|
4507
4499
|
},
|
|
4508
4500
|
{
|
|
4509
|
-
"hash": "
|
|
4501
|
+
"hash": "ed5aa33f8e734dad460aa9b2a7c6fc0690efc9cda3b0854c642d59b2bbf55870",
|
|
4510
4502
|
"source": "stories"
|
|
4511
4503
|
},
|
|
4512
4504
|
{
|
|
@@ -18112,6 +18104,9 @@
|
|
|
18112
18104
|
{
|
|
18113
18105
|
"name": "illusRegionNotSupported"
|
|
18114
18106
|
},
|
|
18107
|
+
{
|
|
18108
|
+
"name": "illusRewards"
|
|
18109
|
+
},
|
|
18115
18110
|
{
|
|
18116
18111
|
"name": "illusVerification"
|
|
18117
18112
|
},
|