@pibit.ai/cure-design-system 0.2.8 → 0.3.1

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.
@@ -0,0 +1,7 @@
1
+ declare const TreeDemo: () => import("react/jsx-runtime").JSX.Element;
2
+ export declare const CustomLeaf: ({ data }: {
3
+ data: any;
4
+ type: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default TreeDemo;
7
+ //# sourceMappingURL=TreeDemo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TreeDemo.d.ts","sourceRoot":"","sources":["../../../src/patterns/tree/TreeDemo.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,QAAQ,+CAQb,CAAA;AACD,eAAO,MAAM,UAAU,GAAI,UAAU;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,IAAI,EAAE,GAAG,CAAA;CAAE,4CAW5D,CAAC;AACF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { TreeNode } from './interface';
2
+ import { TreeConfig } from './helper';
3
+ export type { TreeConfig };
4
+ export interface TreeStructureProps {
5
+ data: any[];
6
+ config: TreeConfig;
7
+ CustomLeaf: React.FC<{
8
+ data: any;
9
+ type: any;
10
+ }>;
11
+ onNodeClick?: (node: TreeNode) => void;
12
+ }
13
+ export declare const TreeEngine: ({ data, config, onNodeClick, CustomLeaf }: TreeStructureProps) => import("react/jsx-runtime").JSX.Element;
14
+ //# sourceMappingURL=TreeStructure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TreeStructure.d.ts","sourceRoot":"","sources":["../../../src/patterns/tree/TreeStructure.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAa,UAAU,EAAE,MAAM,UAAU,CAAC;AAEjD,YAAY,EAAE,UAAU,EAAE,CAAC;AAE3B,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC;QAAE,IAAI,EAAE,GAAG,CAAC;QAAC,IAAI,EAAE,GAAG,CAAA;KAAE,CAAC,CAAC;IAC/C,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CAC1C;AAED,eAAO,MAAM,UAAU,GAAI,2CAA2C,kBAAkB,4CA8CvF,CAAC"}
@@ -0,0 +1,18 @@
1
+ export declare const dummyTreeStructure: {
2
+ id: string;
3
+ type: string;
4
+ children: {
5
+ id: string;
6
+ type: string;
7
+ children: {
8
+ id: string;
9
+ type: string;
10
+ children: {
11
+ id: string;
12
+ type: string;
13
+ children: never[];
14
+ }[];
15
+ }[];
16
+ }[];
17
+ }[];
18
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/patterns/tree/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;GAoF9B,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type TreeConfig = {
2
+ labelKey: string;
3
+ childrenPaths: string[];
4
+ };
5
+ export declare const buildTree: (fields: any[], config: TreeConfig, parentPath?: string) => any[];
6
+ //# sourceMappingURL=helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../src/patterns/tree/helper.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,SAAS,GAClB,QAAQ,GAAG,EAAE,EACb,QAAQ,UAAU,EAClB,aAAY,MAAW,KACxB,GAAG,EA+BL,CAAC"}
@@ -0,0 +1,9 @@
1
+ export interface TreeNode {
2
+ id: string;
3
+ label: string;
4
+ type: string;
5
+ children: TreeNode[];
6
+ metadata: any;
7
+ [key: string]: any;
8
+ }
9
+ //# sourceMappingURL=interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../src/patterns/tree/interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,QAAQ,EAAE,GAAG,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pibit.ai/cure-design-system",
3
- "version": "0.2.8",
3
+ "version": "0.3.1",
4
4
  "description": "CURE Design System - React component library",
5
5
  "author": "Pibit",
6
6
  "license": "MIT",
@@ -82,6 +82,7 @@
82
82
  "@untitledui/icons": "^0.0.19",
83
83
  "class-variance-authority": "^0.7.1",
84
84
  "clsx": "^2.1.1",
85
+ "framer-motion": "^12.30.0",
85
86
  "react-aria-components": "^1.14.0",
86
87
  "tailwind-merge": "^3.3.1"
87
88
  },