@sikka/hawa 0.1.96 → 0.1.97
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/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/elements/HawaTable.tsx +3 -1
package/package.json
CHANGED
|
@@ -24,6 +24,7 @@ type TableTypes = {
|
|
|
24
24
|
columns: ColTypes[]
|
|
25
25
|
actions?: MenuItemType[]
|
|
26
26
|
actionsWidth?: "default" | "sm" | "lg" | "parent"
|
|
27
|
+
actionsSize?: "default" | "sm"
|
|
27
28
|
direction?: "rtl" | "ltr"
|
|
28
29
|
rows?: RowTypes[][]
|
|
29
30
|
handleActionClick?: any
|
|
@@ -111,7 +112,7 @@ export const HawaTable: FC<TableTypes> = ({
|
|
|
111
112
|
}, [slice, page])
|
|
112
113
|
|
|
113
114
|
return (
|
|
114
|
-
<div className="relative flex flex-col gap-2
|
|
115
|
+
<div className="relative flex flex-col gap-2 ">
|
|
115
116
|
<div className={`overflow-x-auto rounded bg-${headerColor}`}>
|
|
116
117
|
{props.headerTools && (
|
|
117
118
|
<div className="flex flex-row items-center justify-between gap-2 border bg-background px-2 py-2">
|
|
@@ -267,6 +268,7 @@ export const HawaTable: FC<TableTypes> = ({
|
|
|
267
268
|
<div className="flex items-center justify-center">
|
|
268
269
|
<DropdownMenu
|
|
269
270
|
width={props.actionsWidth}
|
|
271
|
+
size={props.actionsSize}
|
|
270
272
|
direction={direction}
|
|
271
273
|
side="right"
|
|
272
274
|
items={props.actions}
|