kiban-design-system 1.1.0 → 1.1.1-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kiban-design-system",
3
- "version": "1.1.0",
3
+ "version": "1.1.1-hotfix.0",
4
4
  "description": "",
5
5
  "author": "Kiban",
6
6
  "license": "",
@@ -1,3 +0,0 @@
1
- import type { PrefixSuffixProps } from './PrefixSuffix.props';
2
- declare const PrefixSuffix: ({ children }: PrefixSuffixProps) => JSX.Element;
3
- export default PrefixSuffix;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- export interface PrefixSuffixProps {
3
- children?: React.ReactNode;
4
- }
@@ -1,2 +0,0 @@
1
- import PrefixSuffix from './PrefixSuffix';
2
- export { PrefixSuffix };
@@ -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,4 +0,0 @@
1
- import FlowChart from './FlowChart';
2
- export * from './FlowChart.props';
3
- export * from './utils';
4
- export { FlowChart };
@@ -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,2 +0,0 @@
1
- import getNodes from './getNodes';
2
- export default getNodes;
@@ -1,4 +0,0 @@
1
- import type { TilesProps } from './Tiles.props';
2
- import './Tiles.styles.scss';
3
- declare const Tiles: ({ isSelected, media, onClick, title, value }: TilesProps) => JSX.Element;
4
- export default Tiles;
@@ -1,8 +0,0 @@
1
- import { IconName } from '../Icon';
2
- export interface TilesProps {
3
- isSelected?: boolean;
4
- media: IconName;
5
- title: string;
6
- value: string;
7
- onClick: (value: string) => void;
8
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import Tiles from './Tiles';
2
- export * from './Tiles.props';
3
- export { Tiles };
@@ -1,3 +0,0 @@
1
- import type { EdgeProps } from 'reactflow';
2
- declare const ButtonEdge: ({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, style, markerEnd, }: EdgeProps) => JSX.Element;
3
- export default ButtonEdge;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import type { NodeProps } from 'reactflow';
3
- import './FlowChart.scss';
4
- declare const _default: import("react").MemoExoticComponent<({ data, id, selected }: NodeProps<any>) => JSX.Element>;
5
- export default _default;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: import("react").MemoExoticComponent<() => JSX.Element>;
3
- export default _default;
@@ -1,5 +0,0 @@
1
- import ButtonEdge from './ButtonEdge';
2
- import ConnectorNode from './ConnectorNode';
3
- import PlaceholderNode from './PlaceholderNode';
4
- import useHierarchyData from './useHierarchyData';
5
- export { ButtonEdge, ConnectorNode, PlaceholderNode, useHierarchyData };
@@ -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;