@smart-factor/gem-ui-components 0.0.4 → 0.0.7
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/{Tree-DhFKd3iM.js → Tree-BqxEEdbZ.js} +4980 -4981
- package/dist/components/Dropzone/DropzoneField.d.ts +2 -2
- package/dist/components/FormComponents/index.d.ts +1 -0
- package/dist/components/ResizableWrapper/ResizableWrapper.d.ts +4 -3
- package/dist/components/TableComponents/index.d.ts +1 -0
- package/dist/components/Tree/index.js +1 -1
- package/dist/main.js +19 -17
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ interface DropFieldProps<T extends FieldValues> {
|
|
|
6
6
|
label?: string;
|
|
7
7
|
isImage?: boolean;
|
|
8
8
|
errorMessage?: string;
|
|
9
|
-
onChange: (file: File |
|
|
9
|
+
onChange: (file: File | null) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare const DropzoneField: <T extends FieldValues>({ name, label, control, isImage,
|
|
11
|
+
export declare const DropzoneField: <T extends FieldValues>({ name, label, control, isImage, onChange: propsOnChange, ...rest }: DropFieldProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { SizingProps } from '@mui/system';
|
|
2
|
+
|
|
2
3
|
export interface ResizableWrapperProps {
|
|
3
4
|
children: React.ReactNode;
|
|
4
5
|
isOpen: boolean;
|
|
5
6
|
customCloseWidth?: number;
|
|
6
|
-
customOpenWidth?:
|
|
7
|
-
customCloseHeight?:
|
|
7
|
+
customOpenWidth?: SizingProps['width'];
|
|
8
|
+
customCloseHeight?: SizingProps['width'];
|
|
8
9
|
direction: 'horizontal' | 'vertical';
|
|
9
10
|
}
|
|
10
11
|
export declare const ResizableWrapper: ({ direction, children, isOpen, customCloseWidth, customCloseHeight, customOpenWidth, }: ResizableWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,3 +2,4 @@ export { ContextMenu, ContextMenuItem } from './ContextMenu';
|
|
|
2
2
|
export { TableActions } from './TableActions/TableActions';
|
|
3
3
|
export { TableRecord } from './TableRecord/TableRecord';
|
|
4
4
|
export { TableWithPagination } from './TableWithPagination/TableWithPagination';
|
|
5
|
+
export type { GenericPageDataDto } from './TableWithPagination/types';
|
package/dist/main.js
CHANGED
|
@@ -4,8 +4,8 @@ import { r as yl, e as Qc, P as ar, a as lw, H as rr, o as mn, d as Da, i as cn,
|
|
|
4
4
|
import { D as J5, L as e4 } from "./Drawer-iSM2PgEO.js";
|
|
5
5
|
import * as d from "react";
|
|
6
6
|
import Rt, { createElement as Gn, useMemo as on, useRef as ea, useReducer as cw, useEffect as Jo, useCallback as Ut, forwardRef as _m, useImperativeHandle as uw, Fragment as dw, useState as Sr, useLayoutEffect as pw, createContext as fw, useContext as mw } from "react";
|
|
7
|
-
import { C as gw, u as Do, F as Jc, a as Nt, b as at, d as Ed, r as hw, l as bw, c as yw, e as vw } from "./Tree-
|
|
8
|
-
import { T as o4 } from "./Tree-
|
|
7
|
+
import { C as gw, u as Do, F as Jc, a as Nt, b as at, d as Ed, r as hw, l as bw, c as yw, e as vw } from "./Tree-BqxEEdbZ.js";
|
|
8
|
+
import { T as o4 } from "./Tree-BqxEEdbZ.js";
|
|
9
9
|
import * as Cw from "react-dom";
|
|
10
10
|
import ww from "react-dom";
|
|
11
11
|
import { Link as xw } from "react-router-dom";
|
|
@@ -18538,9 +18538,8 @@ const xn = (e) => e.render(aD(e)), fh = U(ds)`
|
|
|
18538
18538
|
label: t,
|
|
18539
18539
|
control: r,
|
|
18540
18540
|
isImage: n,
|
|
18541
|
-
|
|
18542
|
-
|
|
18543
|
-
...i
|
|
18541
|
+
onChange: l,
|
|
18542
|
+
...a
|
|
18544
18543
|
}) => /* @__PURE__ */ le(fl, { children: [
|
|
18545
18544
|
t && /* @__PURE__ */ v(ao, { mb: "5px", children: /* @__PURE__ */ v(fh, { children: t }) }),
|
|
18546
18545
|
/* @__PURE__ */ v(
|
|
@@ -18548,18 +18547,21 @@ const xn = (e) => e.render(aD(e)), fh = U(ds)`
|
|
|
18548
18547
|
{
|
|
18549
18548
|
name: e,
|
|
18550
18549
|
control: r,
|
|
18551
|
-
render: ({ field: s }) =>
|
|
18552
|
-
|
|
18553
|
-
|
|
18554
|
-
|
|
18555
|
-
|
|
18556
|
-
|
|
18557
|
-
|
|
18558
|
-
|
|
18559
|
-
|
|
18560
|
-
|
|
18561
|
-
|
|
18562
|
-
|
|
18550
|
+
render: ({ field: i, fieldState: s }) => {
|
|
18551
|
+
var u;
|
|
18552
|
+
return /* @__PURE__ */ v(
|
|
18553
|
+
VF,
|
|
18554
|
+
{
|
|
18555
|
+
onChange: (p) => {
|
|
18556
|
+
p && p[0] ? (i.onChange(p[0]), l(p[0])) : (i.onChange(null), l(null));
|
|
18557
|
+
},
|
|
18558
|
+
file: i.value,
|
|
18559
|
+
isImage: n,
|
|
18560
|
+
errorMessage: (u = s.error) == null ? void 0 : u.message,
|
|
18561
|
+
...a
|
|
18562
|
+
}
|
|
18563
|
+
);
|
|
18564
|
+
}
|
|
18563
18565
|
}
|
|
18564
18566
|
)
|
|
18565
18567
|
] }), sD = _m((e, t) => /* @__PURE__ */ le(_t, { rowGap: 1, children: [
|