@guzuro/guz-lib-test 0.0.2 → 0.0.4

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,6 @@
1
+ import { FC, ReactNode } from 'react';
2
+ export interface ButtonProps {
3
+ children: ReactNode;
4
+ onClick?: () => void;
5
+ }
6
+ export declare const Button: FC<ButtonProps>;
@@ -0,0 +1,6 @@
1
+ import { FC, ReactNode } from 'react';
2
+ export interface CardProps {
3
+ title: string;
4
+ children: ReactNode;
5
+ }
6
+ export declare const Card: FC<CardProps>;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const TestComposite: FC;
package/dist/index.d.ts CHANGED
@@ -1 +1,3 @@
1
- export {}
1
+ export * from './components/Button';
2
+ export * from './components/Card';
3
+ export * from './components/TestComposite';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Button/index.tsx"],"sourcesContent":["// src/components/Button/Button.tsx\nimport { Button as AntButton } from \"antd\";\nimport type { FC, ReactNode } from \"react\";\n\nexport interface ButtonProps {\n children: ReactNode;\n onClick?: () => void;\n}\n\nexport const Button: FC<ButtonProps> = ({ children, onClick }) => {\n return (\n <AntButton className=\"rounded-lg\" onClick={onClick}>\n {children}\n </AntButton>\n );\n};\n"],"mappings":";;;aASa,KAA2B,EAAE,aAAU,iBAEhD,iBAAA,GAAA,EAAA,KAAC,GAAD;CAAW,WAAU;CAAsB;CACxC;CACS,CAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Button/index.tsx"],"sourcesContent":["import { Button as AntButton } from \"antd\";\nimport type { FC, ReactNode } from \"react\";\n\nexport interface ButtonProps {\n children: ReactNode;\n onClick?: () => void;\n}\n\nexport const Button: FC<ButtonProps> = ({ children, onClick }) => {\n return (\n <AntButton className=\"rounded-lg\" onClick={onClick}>\n {children}\n </AntButton>\n );\n};\n"],"mappings":";;;aAQa,KAA2B,EAAE,aAAU,iBAEhD,iBAAA,GAAA,EAAA,KAAC,GAAD;CAAW,WAAU;CAAsB;CACxC;CACS,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Card/index.tsx"],"sourcesContent":["// src/components/Card/Card.tsx\nimport type { FC, ReactNode } from \"react\";\n\nexport interface CardProps {\n title: string;\n children: ReactNode;\n}\n\nexport const Card: FC<CardProps> = ({ title, children }) => {\n return (\n <div className=\"p-4 border rounded-2xl shadow-sm\">\n <h3 className=\"text-lg font-semibold mb-2\">{title}</h3>\n <div>{children}</div>\n </div>\n );\n};\n"],"mappings":";;aAQa,KAAuB,EAAE,UAAO,kBAEzC,iBAAA,GAAA,EAAA,MAAC,OAAD;CAAK,WAAU;WAAf,CACE,iBAAA,GAAA,EAAA,KAAC,MAAD;EAAI,WAAU;YAA8B;EAAW,CAAA,EACvD,iBAAA,GAAA,EAAA,KAAC,OAAD,EAAM,aAAe,CAAA,CACjB"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/Card/index.tsx"],"sourcesContent":["import type { FC, ReactNode } from \"react\";\n\nexport interface CardProps {\n title: string;\n children: ReactNode;\n}\n\nexport const Card: FC<CardProps> = ({ title, children }) => {\n return (\n <div className=\"p-4 border rounded-2xl shadow-sm\">\n <h3 className=\"text-lg font-semibold mb-2\">{title}</h3>\n <div>{children}</div>\n </div>\n );\n};\n"],"mappings":";;aAOa,KAAuB,EAAE,UAAO,kBAEzC,iBAAA,GAAA,EAAA,MAAC,OAAD;CAAK,WAAU;WAAf,CACE,iBAAA,GAAA,EAAA,KAAC,MAAD;EAAI,WAAU;YAA8B;EAAW,CAAA,EACvD,iBAAA,GAAA,EAAA,KAAC,OAAD,EAAM,aAAe,CAAA,CACjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/TestComposite/index.tsx"],"sourcesContent":["// src/components/TestComposite/TestComposite.tsx\nimport type { FC } from \"react\";\nimport { Button } from \"../Button\";\nimport { Card } from \"../Card\";\n\nexport const TestComposite: FC = () => {\n return (\n <Card title=\"Test component\">\n <div className=\"flex gap-2\">\n <Button onClick={() => console.log(\"Click 1\")}>Click me</Button>\n\n <Button onClick={() => console.log(\"Click 2\")}>Or me</Button>\n </div>\n </Card>\n );\n};\n"],"mappings":";;;;aAKa,UAET,iBAAA,GAAA,EAAA,KAAC,GAAD;CAAM,OAAM;WACV,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAK,WAAU;YAAf,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAQ,eAAe,QAAQ,IAAI,UAAU;aAAE;GAAiB,CAAA,EAEhE,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAQ,eAAe,QAAQ,IAAI,UAAU;aAAE;GAAc,CAAA,CACzD;;CACD,CAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/TestComposite/index.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport { Button } from \"../Button\";\nimport { Card } from \"../Card\";\n\nexport const TestComposite: FC = () => {\n return (\n <Card title=\"Test component\">\n <div className=\"flex gap-2\">\n <Button onClick={() => console.log(\"Click 1\")}>Click me</Button>\n\n <Button onClick={() => console.log(\"Click 2\")}>Or me</Button>\n </div>\n </Card>\n );\n};\n"],"mappings":";;;;aAIa,UAET,iBAAA,GAAA,EAAA,KAAC,GAAD;CAAM,OAAM;WACV,iBAAA,GAAA,EAAA,MAAC,OAAD;EAAK,WAAU;YAAf,CACE,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAQ,eAAe,QAAQ,IAAI,UAAU;aAAE;GAAiB,CAAA,EAEhE,iBAAA,GAAA,EAAA,KAAC,GAAD;GAAQ,eAAe,QAAQ,IAAI,UAAU;aAAE;GAAc,CAAA,CACzD;;CACD,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guzuro/guz-lib-test",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "files": [
5
5
  "dist"
6
6
  ],