ar-design 0.2.23 → 0.2.24

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.
@@ -220,7 +220,10 @@ const Table = forwardRef(({ children, title, description, data, columns, actions
220
220
  React.createElement("div", { className: "title" },
221
221
  React.createElement("h3", null, title),
222
222
  React.createElement("h5", null, description)),
223
- React.createElement("div", null))),
223
+ React.createElement("div", { className: "actions" }, actions && (React.createElement(React.Fragment, null,
224
+ actions.create && (React.createElement(Button, { variant: "outlined", status: "dark", icon: { element: React.createElement(ARIcon, { icon: "Add", size: 16 }) }, tooltip: { text: actions.create.tooltip, direction: "top" }, onClick: actions.create.onClick })),
225
+ actions.import && (React.createElement(Button, { variant: "outlined", status: "dark", icon: { element: React.createElement(ARIcon, { icon: "Import", size: 16 }) }, tooltip: { text: actions.import.tooltip, direction: "top" }, onClick: actions.import.onClick })),
226
+ actions.filterClear && (React.createElement(Button, { variant: "outlined", status: "dark", icon: { element: React.createElement(ARIcon, { icon: "Trash", size: 16 }) }, tooltip: { text: actions.filterClear.tooltip, direction: "top" }, onClick: actions.filterClear.onClick }))))))),
224
227
  React.createElement("div", { ref: _tableContent, className: "content", onScroll: handleScroll },
225
228
  React.createElement("table", { ref: ref },
226
229
  React.createElement("thead", null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ar-design",
3
- "version": "0.2.23",
3
+ "version": "0.2.24",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",