@1money/component-ui 0.0.52 → 0.0.54

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 (45) hide show
  1. package/es/components/Input/Amount/Amount.js +4 -2
  2. package/es/components/Input/FieldShell/FieldShell.d.ts +1 -0
  3. package/es/components/Input/FieldShell/FieldShell.js +4 -2
  4. package/es/components/Input/Input/Input.js +4 -2
  5. package/es/components/Input/Mask/Mask.js +4 -2
  6. package/es/components/Input/OTP/OTP.js +3 -1
  7. package/es/components/Input/Password/Password.js +4 -2
  8. package/es/components/Input/Search/Search.js +4 -2
  9. package/es/components/Input/TextArea/TextArea.js +4 -2
  10. package/es/components/Input/interface.d.ts +1 -0
  11. package/es/components/Select/Select.js +3 -1
  12. package/es/components/Select/SelectCustom.js +3 -1
  13. package/es/components/Select/SelectFieldShell.d.ts +1 -0
  14. package/es/components/Select/SelectFieldShell.js +3 -2
  15. package/es/components/Select/interface.d.ts +4 -2
  16. package/es/components/Select/style/Select.css +2 -2
  17. package/es/components/Select/useSelectShell.js +2 -2
  18. package/es/components/Table/core/useTableSetup.d.ts +1 -0
  19. package/es/components/Table/core/useTableSetup.js +4 -2
  20. package/es/components/Table/interface.d.ts +1 -0
  21. package/es/index.css +1 -1
  22. package/lib/components/Input/Amount/Amount.js +4 -2
  23. package/lib/components/Input/FieldShell/FieldShell.d.ts +1 -0
  24. package/lib/components/Input/FieldShell/FieldShell.js +4 -2
  25. package/lib/components/Input/Input/Input.js +4 -2
  26. package/lib/components/Input/Mask/Mask.js +4 -2
  27. package/lib/components/Input/OTP/OTP.js +3 -1
  28. package/lib/components/Input/Password/Password.js +4 -2
  29. package/lib/components/Input/Search/Search.js +4 -2
  30. package/lib/components/Input/TextArea/TextArea.js +4 -2
  31. package/lib/components/Input/interface.d.ts +1 -0
  32. package/lib/components/Select/Select.js +3 -1
  33. package/lib/components/Select/SelectCustom.js +3 -1
  34. package/lib/components/Select/SelectFieldShell.d.ts +1 -0
  35. package/lib/components/Select/SelectFieldShell.js +3 -2
  36. package/lib/components/Select/interface.d.ts +4 -2
  37. package/lib/components/Select/style/Select.css +2 -2
  38. package/lib/components/Select/useSelectShell.js +2 -2
  39. package/lib/components/Table/core/useTableSetup.d.ts +1 -0
  40. package/lib/components/Table/core/useTableSetup.js +4 -2
  41. package/lib/components/Table/interface.d.ts +1 -0
  42. package/lib/index.css +1 -1
  43. package/package.json +1 -1
  44. package/scripts/mcp-server/examples.generated.json +6 -0
  45. package/scripts/mcp-server/index.generated.json +21 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1money/component-ui",
3
- "version": "0.0.52",
3
+ "version": "0.0.54",
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",
@@ -1183,6 +1183,12 @@
1183
1183
  "source": "stories",
1184
1184
  "compilable": false
1185
1185
  },
1186
+ "823cd3e869e470f99c6b9d6cb00a728fee68347e270789bbf153257c2169bfc3": {
1187
+ "title": "Footer",
1188
+ "code": "{\n const rows = portfolioRows.slice(0, 4);\n const totalBalance = rows.reduce((sum, r) => sum + r.balance, 0);\n\n return (\n <div>\n <TypographyBody size=\"sm\" color=\"default-tertiary\" style={hintStyle}>\n The <code>footer</code> render prop renders a free-form panel below the\n table body. It receives the current page&rsquo;s rows so it can compute\n totals or render bulk actions.\n </TypographyBody>\n <Table<PortfolioRow>\n rowKey=\"id\"\n variant=\"stroke\"\n pagination={false}\n dataSource={rows}\n columns={portfolioColumns}\n footer={(currentPageData) => (\n <div\n style={{\n display: 'flex',\n justifyContent: 'space-between',\n alignItems: 'center',\n }}\n >\n <TypographyLabel>\n Showing {currentPageData.length} wallet\n {currentPageData.length === 1 ? '' : 's'}\n </TypographyLabel>\n <TypographyLabel>\n Total balance: ${totalBalance.toLocaleString()}\n </TypographyLabel>\n </div>\n )}\n />\n </div>\n );\n }",
1189
+ "source": "stories",
1190
+ "compilable": true
1191
+ },
1186
1192
  "829d1add076b11f67d3d30e761c7861b952e35bb1ae8a1c71c99a97bbf5318a9": {
1187
1193
  "title": "All States",
1188
1194
  "code": "<div style={previewStackStyle}>\n <Cell {...args}>Authenticator app</Cell>\n <Cell {...args} className=\"om-component-ui-cell-hovered\">\n Authenticator app\n </Cell>\n <Cell {...args} active>\n Authenticator app\n </Cell>\n <Cell {...args} disabled>\n Authenticator app\n </Cell>\n </div>",
@@ -11696,6 +11696,14 @@
11696
11696
  "description": "",
11697
11697
  "inheritedFrom": null
11698
11698
  },
11699
+ {
11700
+ "name": "labelClassName",
11701
+ "type": "string",
11702
+ "optional": true,
11703
+ "default": null,
11704
+ "description": "",
11705
+ "inheritedFrom": null
11706
+ },
11699
11707
  {
11700
11708
  "name": "info",
11701
11709
  "type": "ReactNode",
@@ -11812,7 +11820,7 @@
11812
11820
  "name": "offset",
11813
11821
  "type": "SelectOffset",
11814
11822
  "optional": true,
11815
- "default": "0",
11823
+ "default": "4",
11816
11824
  "description": "Gap between panel and trigger.",
11817
11825
  "inheritedFrom": null
11818
11826
  },
@@ -13773,6 +13781,14 @@
13773
13781
  "description": "",
13774
13782
  "inheritedFrom": null
13775
13783
  },
13784
+ {
13785
+ "name": "footer",
13786
+ "type": "(currentPageData: readonly T[]) => ReactNode",
13787
+ "optional": true,
13788
+ "default": null,
13789
+ "description": "",
13790
+ "inheritedFrom": null
13791
+ },
13776
13792
  {
13777
13793
  "name": "onChange",
13778
13794
  "type": "(meta: TableChangeMeta<T>) => void",
@@ -13892,6 +13908,10 @@
13892
13908
  {
13893
13909
  "hash": "ef4904f8e094b98c456651c4a86b1a206b470678f945596a762b38b9855c76ae",
13894
13910
  "source": "stories"
13911
+ },
13912
+ {
13913
+ "hash": "823cd3e869e470f99c6b9d6cb00a728fee68347e270789bbf153257c2169bfc3",
13914
+ "source": "stories"
13895
13915
  }
13896
13916
  ]
13897
13917
  },