@plantandgo/web-components 2.1.1 → 2.1.3

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,7 @@
1
1
  {
2
2
  "name": "@plantandgo/web-components",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
+ "type": "module",
4
5
  "main": "./web-components.umd.js",
5
6
  "module": "./web-components.es.js",
6
7
  "exports": {
@@ -8,5 +9,6 @@
8
9
  "import": "./web-components.es.js",
9
10
  "require": "./web-components.umd.js"
10
11
  }
11
- }
12
+ },
13
+ "types": "./types/index.d.ts"
12
14
  }
package/types/App.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import './App.scss';
2
+ import "@plantandgo/web-components";
3
+ declare function App(): import("react/jsx-runtime").JSX.Element;
4
+ export default App;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import './CustomButton.scss';
3
+ interface CustomButtonProps {
4
+ content?: React.ReactNode;
5
+ children?: React.ReactNode;
6
+ onClick?: () => void;
7
+ variant?: 'primary' | 'secondary' | 'outline' | 'danger';
8
+ size?: 'small' | 'medium' | 'large';
9
+ disabled?: boolean;
10
+ type?: 'button' | 'submit' | 'reset';
11
+ renderIcon?: React.ComponentType;
12
+ iconDescription?: string;
13
+ }
14
+ export declare const CustomButton: React.FC<CustomButtonProps>;
15
+ export {};
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import './CustomInput.scss';
3
+ interface CustomInputProps {
4
+ id: string;
5
+ label?: string;
6
+ placeholder?: string;
7
+ value: string;
8
+ onChange: (value: string) => void;
9
+ type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url';
10
+ disabled?: boolean;
11
+ error?: string;
12
+ required?: boolean;
13
+ helperText?: string;
14
+ }
15
+ export declare const CustomInput: React.FC<CustomInputProps>;
16
+ export {};
@@ -0,0 +1,2 @@
1
+ export { CustomButton } from './CustomButton/CustomButton';
2
+ export { CustomInput } from './CustomInput/CustomInput';
@@ -0,0 +1,3 @@
1
+ import '@carbon/styles/css/styles.css';
2
+ import './index.scss';
3
+ import './web-components';
@@ -0,0 +1,2 @@
1
+ import './ExamplePage.scss';
2
+ export default function ExamplePage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import './HomePage.scss';
2
+ export default function HomePage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const WebPage: React.FC;
3
+ export default WebPage;
@@ -0,0 +1,3 @@
1
+ export { default as HomePage } from './HomePage/HomePage';
2
+ export { default as ExamplePage } from './ExamplePage/ExamplePage';
3
+ export { default as WebPage } from './WebPage/WebPage';
@@ -0,0 +1,2 @@
1
+ import './index.scss';
2
+ import './web-components.tsx';
@@ -0,0 +1 @@
1
+ export {};