@invopop/popui 0.1.46 → 0.1.47

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.
@@ -19,7 +19,8 @@
19
19
  icon: a.icon,
20
20
  separator: a.separator,
21
21
  destructive: a.destructive,
22
- disabled: a.disabled
22
+ disabled: a.disabled,
23
+ action: a.action
23
24
  })) as DrawerOption[]
24
25
  )
25
26
 
package/dist/types.d.ts CHANGED
@@ -73,14 +73,8 @@ export type Badge = {
73
73
  export type TableDataRow = {
74
74
  [key: string]: unknown;
75
75
  };
76
- export type TableAction = {
77
- icon?: IconSource;
78
- label?: string;
76
+ export type TableAction = DrawerOption & {
79
77
  slug?: string;
80
- separator?: boolean;
81
- destructive?: boolean;
82
- disabled?: boolean;
83
- value?: AnyProp;
84
78
  };
85
79
  export type TableSortBy = '' | 'asc' | 'desc';
86
80
  export type TableActionProp = undefined | ((data: TableDataRow) => TableAction[]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@invopop/popui",
3
3
  "license": "MIT",
4
- "version": "0.1.46",
4
+ "version": "0.1.47",
5
5
  "repository": {
6
6
  "url": "https://github.com/invopop/popui"
7
7
  },