kiban-design-system 1.1.0 → 1.1.2-hotfix.0
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/components/JsonViewer/JsonViewer.d.ts +1 -1
- package/dist/components/JsonViewer/JsonViewer.props.d.ts +3 -1
- package/dist/components/Link/Link.d.ts +5 -0
- package/dist/components/Link/Link.props.d.ts +7 -0
- package/dist/components/Link/index.d.ts +3 -0
- package/dist/components/Popover/utils/setPosition.d.ts +70 -33
- package/dist/components/index.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +173 -161
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/AlphaInputText/components/PrefixSuffix/PrefixSuffix.d.ts +0 -3
- package/dist/components/AlphaInputText/components/PrefixSuffix/PrefixSuffix.props.d.ts +0 -4
- package/dist/components/AlphaInputText/components/PrefixSuffix/index.d.ts +0 -2
- package/dist/components/AlphaInputText/components/index.d.ts +0 -1
- package/dist/components/FlowChart/FlowChart.d.ts +0 -5
- package/dist/components/FlowChart/FlowChart.props.d.ts +0 -52
- package/dist/components/FlowChart/index.d.ts +0 -4
- package/dist/components/FlowChart/utils/getNodes.d.ts +0 -5
- package/dist/components/FlowChart/utils/index.d.ts +0 -2
- package/dist/components/Tiles/Tiles.d.ts +0 -4
- package/dist/components/Tiles/Tiles.props.d.ts +0 -8
- package/dist/components/Tiles/Tiles.test.d.ts +0 -1
- package/dist/components/Tiles/index.d.ts +0 -3
- package/dist/shared/ButtonEdge.d.ts +0 -3
- package/dist/shared/ConnectorNode.d.ts +0 -5
- package/dist/shared/PlaceholderNode.d.ts +0 -3
- package/dist/shared/index.d.ts +0 -5
- package/dist/shared/useHierarchyData.d.ts +0 -9
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PrefixSuffix';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { FlowChartProps } from './FlowChart.props';
|
|
3
|
-
import './FlowChart.styles.scss';
|
|
4
|
-
declare const FlowChart: ({ data, onNodeClick, onEdgeClick, ref, onEdgesChange, onNodesChange, edgeTypes, nodeTypes, nodeEdgeType, nodeByType, }: FlowChartProps) => JSX.Element;
|
|
5
|
-
export default FlowChart;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { MouseEvent } from 'react';
|
|
2
|
-
import type { Edge, EdgeTypes, OnNodesChange, OnEdgesChange, NodeMouseHandler, NodeTypes, Node } from 'reactflow';
|
|
3
|
-
export interface NodeEdgeType {
|
|
4
|
-
[key: string]: string;
|
|
5
|
-
}
|
|
6
|
-
export interface FlowChartDataType {
|
|
7
|
-
children?: FlowChartDataType[];
|
|
8
|
-
childLink?: Partial<FlowChartDataType>;
|
|
9
|
-
type: string;
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
}
|
|
13
|
-
export interface NodePositionType {
|
|
14
|
-
x: number;
|
|
15
|
-
y: number;
|
|
16
|
-
}
|
|
17
|
-
export interface NodeDataType {
|
|
18
|
-
label: string;
|
|
19
|
-
link?: string;
|
|
20
|
-
typeConnector?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface FlowChartNodeType {
|
|
23
|
-
id: string;
|
|
24
|
-
data: NodeDataType;
|
|
25
|
-
position: NodePositionType;
|
|
26
|
-
type?: string;
|
|
27
|
-
}
|
|
28
|
-
export interface FlowChartRefType {
|
|
29
|
-
getAncestors?: (idNode: string) => FlowChartDataType[];
|
|
30
|
-
getLeaves?: (idNode: string) => FlowChartDataType[];
|
|
31
|
-
getLinks?: (idNode: string) => FlowChartDataType[];
|
|
32
|
-
getParent?: (idNode: string) => FlowChartDataType;
|
|
33
|
-
}
|
|
34
|
-
export interface DataPrintReactFlowType {
|
|
35
|
-
nodes: Node<any>[];
|
|
36
|
-
edges: Edge<any>[];
|
|
37
|
-
treeHeight: number;
|
|
38
|
-
treeWidth: number;
|
|
39
|
-
length: number;
|
|
40
|
-
}
|
|
41
|
-
export interface FlowChartProps {
|
|
42
|
-
data: FlowChartDataType;
|
|
43
|
-
ref?: FlowChartRefType;
|
|
44
|
-
onNodeClick?: NodeMouseHandler;
|
|
45
|
-
onEdgeClick?: (event: MouseEvent<Element>, node: Edge<any>) => void;
|
|
46
|
-
edgeTypes?: EdgeTypes;
|
|
47
|
-
nodeTypes?: NodeTypes;
|
|
48
|
-
nodeEdgeType: NodeEdgeType;
|
|
49
|
-
nodeByType: NodeEdgeType;
|
|
50
|
-
onNodesChange?: OnNodesChange;
|
|
51
|
-
onEdgesChange?: OnEdgesChange;
|
|
52
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { FlowChartDataType, NodeEdgeType } from '../FlowChart.props';
|
|
2
|
-
import type { Node } from 'reactflow';
|
|
3
|
-
import type { HierarchyPointNode } from 'd3-hierarchy';
|
|
4
|
-
declare const getNodes: (nodeByType: NodeEdgeType, node: HierarchyPointNode<FlowChartDataType>, nodes?: Node[]) => Node<any>[];
|
|
5
|
-
export default getNodes;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/shared/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { FlowChartDataType } from '../components';
|
|
2
|
-
declare const useHierarchyData: (initialData: FlowChartDataType | null) => {
|
|
3
|
-
data: any;
|
|
4
|
-
addNode: (nodes: any, parentNodeId: string, newNode: any, target?: string | null) => any;
|
|
5
|
-
addPlaceholderNode: (node: any) => any;
|
|
6
|
-
findNode: (nodeId: string, node: FlowChartDataType | null) => FlowChartDataType | undefined;
|
|
7
|
-
replaceNode: (nodes: any, updateNode: any, nodeId: string) => any;
|
|
8
|
-
};
|
|
9
|
-
export default useHierarchyData;
|