@1money/component-ui 0.0.32 → 0.0.33

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.
@@ -919,6 +919,12 @@
919
919
  "source": "stories",
920
920
  "compilable": false
921
921
  },
922
+ "69f29e0647a74609f6aaa9ea3dc6ffa3559143861f405d2fd72e046abddd390a": {
923
+ "title": "Import",
924
+ "code": "import { Clipboard } from '@1money/components-ui';\n// or\nimport { Clipboard } from '@1money/components-ui/Copy';",
925
+ "source": "readme",
926
+ "compilable": true
927
+ },
922
928
  "6a4d77a29ff76bfcd465b53ac79952fae765bb337ef3ca2affc7781ce487a74f": {
923
929
  "title": "With Icon End",
924
930
  "code": "<Button {...args} iconEnd={<Icons name=\"arrowRight\" />}>\n Icon End\n </Button>",
@@ -961,6 +967,12 @@
961
967
  "source": "canonical",
962
968
  "compilable": true
963
969
  },
970
+ "6ea2fa87fa2050f0e9e5f271bfbcac33d12cf62034f24d55257ec9955430ef59": {
971
+ "title": "Usage",
972
+ "code": "<Clipboard\n label=\"Setup Key\"\n content=\"GWKLDLVE25dfLIJOHUD578JPIHD24JLJGHGOUH27HLIHOUGOLIKHJ547HOU\"\n onSuccess={(val) => console.log('Copied:', val)}\n onError={(val) => console.log('Failed:', val)}\n/>",
973
+ "source": "readme",
974
+ "compilable": true
975
+ },
964
976
  "6f2b7da00479a6033fdaca36f0646a924c61cbf09cd0e07da6948a884af98a61": {
965
977
  "title": "Dependency",
966
978
  "code": "<ProForm\n {...args}\n initialValues={{ hasAccount: false, accountType: '' }}\n >\n <ProFormSwitch name=\"hasAccount\" label=\"Has Account\" />\n <ProFormDependency name={['hasAccount']}>\n {({ hasAccount }) =>\n hasAccount ? (\n <>\n <ProFormText\n name=\"accountId\"\n label=\"Account ID\"\n rules={[{ required: true }]}\n />\n <ProFormText name=\"accountName\" label=\"Account Name\" />\n </>\n ) : null\n }\n </ProFormDependency>\n </ProForm>",
@@ -1015,6 +1027,12 @@
1015
1027
  "source": "stories",
1016
1028
  "compilable": false
1017
1029
  },
1030
+ "75fc55f93a5502c927a0f7967cd25465c98417b3afe02ec8880531efc12a3362": {
1031
+ "title": "Canonical usage",
1032
+ "code": "import { Clipboard } from '@1money/components-ui';\n\n<Clipboard\n label=\"Setup Key\"\n content=\"GWKLDLVE25dfLIJOHUD578JPIHD24JLJGHGOUH27HLIHOUGOLIKHJ547HOU\"\n onSuccess={(v) => console.log(v)}\n/>",
1033
+ "source": "canonical",
1034
+ "compilable": true
1035
+ },
1018
1036
  "76052e611a155b488f8eee38973e3b050274bc58b0a974f66b8c9a55e77e28b6": {
1019
1037
  "title": "Canonical usage",
1020
1038
  "code": "import { Typography } from '@1money/components-ui';\n// or\nimport { Typography } from '@1money/components-ui/Typography';",
@@ -1957,6 +1975,12 @@
1957
1975
  "source": "canonical",
1958
1976
  "compilable": true
1959
1977
  },
1978
+ "deeed04202c3f64b444b70c4f7e483cfb165662a2c6508394c229835f70cf112": {
1979
+ "title": "Clipboard Field",
1980
+ "code": "<div style={{ display: 'flex', flexDirection: 'column', gap: 16}}>\n <Clipboard\n label=\"Setup Key\"\n content=\"GWKLDLVE25dfLIJOHUD578JPIHD24JLJGHGOUH27HLIHOUGOLIKHJ547HOU\"\n onSuccess={COPY_SUCCESS}\n onError={COPY_ERROR}\n />\n <Clipboard\n content=\"0x96789C2b0f47B3F7BbEcbB5C12a2d0eA5d9afd89\"\n onSuccess={COPY_SUCCESS}\n onError={COPY_ERROR}\n />\n </div>",
1981
+ "source": "stories",
1982
+ "compilable": true
1983
+ },
1960
1984
  "df516870a4f3b627969e2e1b0c6fc40fccc4ccb0fb7c04a34e5e169a928de479": {
1961
1985
  "title": "Usage",
1962
1986
  "code": "<Cell iconStart=\"security\" iconEnd=\"arrowRight\" active>\n Authenticator app\n</Cell>",
@@ -1421,6 +1421,118 @@
1421
1421
  }
1422
1422
  ]
1423
1423
  },
1424
+ {
1425
+ "name": "Clipboard",
1426
+ "kind": "component",
1427
+ "category": "input",
1428
+ "summary": "",
1429
+ "importPath": "@1money/component-ui",
1430
+ "subpathImport": "@1money/component-ui/Copy",
1431
+ "sourceFile": "src/components/Copy/Clipboard.tsx",
1432
+ "props": [
1433
+ {
1434
+ "name": "content",
1435
+ "type": "string",
1436
+ "optional": false,
1437
+ "default": null,
1438
+ "description": "The text content to display and copy to clipboard",
1439
+ "inheritedFrom": null
1440
+ },
1441
+ {
1442
+ "name": "label",
1443
+ "type": "string",
1444
+ "optional": true,
1445
+ "default": null,
1446
+ "description": "Optional label rendered above the content card",
1447
+ "inheritedFrom": null
1448
+ },
1449
+ {
1450
+ "name": "className",
1451
+ "type": "string",
1452
+ "optional": true,
1453
+ "default": null,
1454
+ "description": "Additional CSS class names for the root element",
1455
+ "inheritedFrom": null
1456
+ },
1457
+ {
1458
+ "name": "labelCls",
1459
+ "type": "string",
1460
+ "optional": true,
1461
+ "default": null,
1462
+ "description": "Additional CSS class names for the label",
1463
+ "inheritedFrom": null
1464
+ },
1465
+ {
1466
+ "name": "prefixCls",
1467
+ "type": "string",
1468
+ "optional": true,
1469
+ "default": null,
1470
+ "description": "CSS class name prefix (default: 'clipboard')",
1471
+ "inheritedFrom": null
1472
+ },
1473
+ {
1474
+ "name": "onSuccess",
1475
+ "type": "(value: string) => void",
1476
+ "optional": true,
1477
+ "default": null,
1478
+ "description": "Callback fired when the copy operation succeeds",
1479
+ "inheritedFrom": null
1480
+ },
1481
+ {
1482
+ "name": "onError",
1483
+ "type": "(value: string) => void",
1484
+ "optional": true,
1485
+ "default": null,
1486
+ "description": "Callback fired when the copy operation fails",
1487
+ "inheritedFrom": null
1488
+ }
1489
+ ],
1490
+ "extends": [],
1491
+ "relatedSymbols": [
1492
+ "ClipboardProps",
1493
+ "Copy",
1494
+ "CopyProps"
1495
+ ],
1496
+ "searchTags": [
1497
+ "clipboard",
1498
+ "copy",
1499
+ "copy to clipboard",
1500
+ "copyable field",
1501
+ "secret field"
1502
+ ],
1503
+ "canonicalUsage": "import { Clipboard } from '@1money/components-ui';\n\n<Clipboard\n label=\"Setup Key\"\n content=\"GWKLDLVE25dfLIJOHUD578JPIHD24JLJGHGOUH27HLIHOUGOLIKHJ547HOU\"\n onSuccess={(v) => console.log(v)}\n/>",
1504
+ "examples": [
1505
+ {
1506
+ "hash": "75fc55f93a5502c927a0f7967cd25465c98417b3afe02ec8880531efc12a3362",
1507
+ "source": "canonical"
1508
+ }
1509
+ ]
1510
+ },
1511
+ {
1512
+ "name": "ClipboardProps",
1513
+ "kind": "type",
1514
+ "category": "input",
1515
+ "summary": "",
1516
+ "importPath": "@1money/component-ui",
1517
+ "subpathImport": "@1money/component-ui/Copy",
1518
+ "sourceFile": "src/components/Copy/interface.ts",
1519
+ "props": [],
1520
+ "extends": [],
1521
+ "relatedSymbols": [
1522
+ "Clipboard",
1523
+ "Copy",
1524
+ "CopyProps"
1525
+ ],
1526
+ "searchTags": [],
1527
+ "typeText": "interface ClipboardProps { ... }",
1528
+ "canonicalUsage": "import { Copy } from '@1money/components-ui';\n// or\nimport { Copy } from '@1money/components-ui/Copy';",
1529
+ "examples": [
1530
+ {
1531
+ "hash": "95dc922235c54890ef40e287095692b232702132d592073e3c6b66efd6929f50",
1532
+ "source": "canonical"
1533
+ }
1534
+ ]
1535
+ },
1424
1536
  {
1425
1537
  "name": "CoachMark",
1426
1538
  "kind": "component",
@@ -1779,9 +1891,15 @@
1779
1891
  ],
1780
1892
  "extends": [],
1781
1893
  "relatedSymbols": [
1894
+ "Clipboard",
1895
+ "ClipboardProps",
1782
1896
  "CopyProps"
1783
1897
  ],
1784
- "searchTags": [],
1898
+ "searchTags": [
1899
+ "clipboard",
1900
+ "copy",
1901
+ "copy to clipboard"
1902
+ ],
1785
1903
  "canonicalUsage": "import { Copy } from '@1money/components-ui';\n// or\nimport { Copy } from '@1money/components-ui/Copy';",
1786
1904
  "examples": [
1787
1905
  {
@@ -1796,9 +1914,21 @@
1796
1914
  "hash": "b040eead4ef6d0382049572436b1eb5a21c9357a41e519f5204a58fc04e0c1ab",
1797
1915
  "source": "readme"
1798
1916
  },
1917
+ {
1918
+ "hash": "69f29e0647a74609f6aaa9ea3dc6ffa3559143861f405d2fd72e046abddd390a",
1919
+ "source": "readme"
1920
+ },
1921
+ {
1922
+ "hash": "6ea2fa87fa2050f0e9e5f271bfbcac33d12cf62034f24d55257ec9955430ef59",
1923
+ "source": "readme"
1924
+ },
1799
1925
  {
1800
1926
  "hash": "144e248f0e0e1f5a681bdd8625add8d71643d3cca3f40bd840d914b057970d9a",
1801
1927
  "source": "stories"
1928
+ },
1929
+ {
1930
+ "hash": "deeed04202c3f64b444b70c4f7e483cfb165662a2c6508394c229835f70cf112",
1931
+ "source": "stories"
1802
1932
  }
1803
1933
  ]
1804
1934
  },
@@ -1813,6 +1943,8 @@
1813
1943
  "props": [],
1814
1944
  "extends": [],
1815
1945
  "relatedSymbols": [
1946
+ "Clipboard",
1947
+ "ClipboardProps",
1816
1948
  "Copy"
1817
1949
  ],
1818
1950
  "searchTags": [],
@@ -17658,8 +17790,8 @@
17658
17790
  "name": "typography-headline-xs",
17659
17791
  "scss": "$om-typography-headline['xs']",
17660
17792
  "cssVar": "--om-typography-typography-headline-xs",
17661
- "value": "(\n font-family: $om-font-display,\n font-weight: $om-font-weight-medium,\n font-size: 18px,\n line-height: 26px,\n letter-spacing: $om-tracking-none,\n )",
17662
- "resolved": "(\n font-family: $om-font-display,\n font-weight: $om-font-weight-medium,\n font-size: 18px,\n line-height: 26px,\n letter-spacing: $om-tracking-none,\n )",
17793
+ "value": "(\n font-family: $om-font-display,\n font-weight: $om-font-weight-medium,\n font-size: 16px,\n line-height: 26px,\n letter-spacing: $om-tracking-none,\n )",
17794
+ "resolved": "(\n font-family: $om-font-display,\n font-weight: $om-font-weight-medium,\n font-size: 16px,\n line-height: 26px,\n letter-spacing: $om-tracking-none,\n )",
17663
17795
  "kind": "typography",
17664
17796
  "layer": "semantic"
17665
17797
  },