@cyber-harbour/ui 1.1.29 → 1.1.31
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 +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +167 -167
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +146 -146
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1639,11 +1639,12 @@ type ModalProps = {
|
|
|
1639
1639
|
width?: number;
|
|
1640
1640
|
children: any;
|
|
1641
1641
|
isNested?: boolean;
|
|
1642
|
+
closeOnEscape?: boolean;
|
|
1642
1643
|
};
|
|
1643
1644
|
interface ModalChildrenProps extends FabricComponent<Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>> {
|
|
1644
1645
|
children: any;
|
|
1645
1646
|
}
|
|
1646
|
-
declare const Modal: ({ children, onClose, isNested, width }: ModalProps) => react_jsx_runtime.JSX.Element;
|
|
1647
|
+
declare const Modal: ({ children, onClose, isNested, width, closeOnEscape }: ModalProps) => react_jsx_runtime.JSX.Element;
|
|
1647
1648
|
declare const ModalHeader: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<ModalChildrenProps | (ModalChildrenProps & react.RefAttributes<react.Component<ModalChildrenProps, any, any>>), StyledFabricComponent<ModalChildrenProps>>> & (string & (Omit<react.ComponentClass<ModalChildrenProps, any>, keyof react.Component<any, {}, any>> | Omit<react.FunctionComponent<ModalChildrenProps>, keyof react.Component<any, {}, any>>));
|
|
1648
1649
|
declare const ModalBody: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<ModalChildrenProps | (ModalChildrenProps & react.RefAttributes<react.Component<ModalChildrenProps, any, any>>), StyledFabricComponent<ModalChildrenProps>>> & (string & (Omit<react.ComponentClass<ModalChildrenProps, any>, keyof react.Component<any, {}, any>> | Omit<react.FunctionComponent<ModalChildrenProps>, keyof react.Component<any, {}, any>>));
|
|
1649
1650
|
declare const ModalFooter: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<ModalChildrenProps | (ModalChildrenProps & react.RefAttributes<react.Component<ModalChildrenProps, any, any>>), StyledFabricComponent<ModalChildrenProps>>> & (string & (Omit<react.ComponentClass<ModalChildrenProps, any>, keyof react.Component<any, {}, any>> | Omit<react.FunctionComponent<ModalChildrenProps>, keyof react.Component<any, {}, any>>));
|
|
@@ -1877,8 +1878,8 @@ interface Graph2DProps {
|
|
|
1877
1878
|
onChangeSelectedNodeIds?: (nodeIds: Set<string | number>) => void;
|
|
1878
1879
|
}
|
|
1879
1880
|
interface NodeButton {
|
|
1880
|
-
img: string;
|
|
1881
|
-
hoverImg: string;
|
|
1881
|
+
img: string | ((node: NodeObject) => string);
|
|
1882
|
+
hoverImg: string | ((node: NodeObject) => string);
|
|
1882
1883
|
loading?: boolean | ((node: NodeObject) => boolean);
|
|
1883
1884
|
getCount?: (node: NodeObject) => number;
|
|
1884
1885
|
onClick: (node: NodeObject) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1639,11 +1639,12 @@ type ModalProps = {
|
|
|
1639
1639
|
width?: number;
|
|
1640
1640
|
children: any;
|
|
1641
1641
|
isNested?: boolean;
|
|
1642
|
+
closeOnEscape?: boolean;
|
|
1642
1643
|
};
|
|
1643
1644
|
interface ModalChildrenProps extends FabricComponent<Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>> {
|
|
1644
1645
|
children: any;
|
|
1645
1646
|
}
|
|
1646
|
-
declare const Modal: ({ children, onClose, isNested, width }: ModalProps) => react_jsx_runtime.JSX.Element;
|
|
1647
|
+
declare const Modal: ({ children, onClose, isNested, width, closeOnEscape }: ModalProps) => react_jsx_runtime.JSX.Element;
|
|
1647
1648
|
declare const ModalHeader: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<ModalChildrenProps | (ModalChildrenProps & react.RefAttributes<react.Component<ModalChildrenProps, any, any>>), StyledFabricComponent<ModalChildrenProps>>> & (string & (Omit<react.ComponentClass<ModalChildrenProps, any>, keyof react.Component<any, {}, any>> | Omit<react.FunctionComponent<ModalChildrenProps>, keyof react.Component<any, {}, any>>));
|
|
1648
1649
|
declare const ModalBody: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<ModalChildrenProps | (ModalChildrenProps & react.RefAttributes<react.Component<ModalChildrenProps, any, any>>), StyledFabricComponent<ModalChildrenProps>>> & (string & (Omit<react.ComponentClass<ModalChildrenProps, any>, keyof react.Component<any, {}, any>> | Omit<react.FunctionComponent<ModalChildrenProps>, keyof react.Component<any, {}, any>>));
|
|
1649
1650
|
declare const ModalFooter: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<ModalChildrenProps | (ModalChildrenProps & react.RefAttributes<react.Component<ModalChildrenProps, any, any>>), StyledFabricComponent<ModalChildrenProps>>> & (string & (Omit<react.ComponentClass<ModalChildrenProps, any>, keyof react.Component<any, {}, any>> | Omit<react.FunctionComponent<ModalChildrenProps>, keyof react.Component<any, {}, any>>));
|
|
@@ -1877,8 +1878,8 @@ interface Graph2DProps {
|
|
|
1877
1878
|
onChangeSelectedNodeIds?: (nodeIds: Set<string | number>) => void;
|
|
1878
1879
|
}
|
|
1879
1880
|
interface NodeButton {
|
|
1880
|
-
img: string;
|
|
1881
|
-
hoverImg: string;
|
|
1881
|
+
img: string | ((node: NodeObject) => string);
|
|
1882
|
+
hoverImg: string | ((node: NodeObject) => string);
|
|
1882
1883
|
loading?: boolean | ((node: NodeObject) => boolean);
|
|
1883
1884
|
getCount?: (node: NodeObject) => number;
|
|
1884
1885
|
onClick: (node: NodeObject) => void;
|