@kashifd/jwero-components 0.1.4 → 0.1.7

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@kashifd/jwero-components",
3
3
  "private": false,
4
- "version": "0.1.4",
4
+ "version": "0.1.7",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -43,8 +43,7 @@
43
43
  "vite": "^5.3.1"
44
44
  },
45
45
  "description": "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.",
46
- "main": "dist/index.es.js",
47
- "module": "dist/index.umd.js",
46
+ "main": "index.tsx",
48
47
  "repository": {
49
48
  "type": "git",
50
49
  "url": "git+https://github.com/kashifkd/jwero-components.git"
@@ -41,8 +41,8 @@ const JweroPrimaryButton = ({
41
41
  iconProps?.position === START_POSITION
42
42
  ? "0.5rem 0.65rem 0.5rem 0.5rem"
43
43
  : iconProps?.position === END_POSITION
44
- ? "0.5rem 0.6rem 0.5rem 0.65rem"
45
- : "0.5rem 0.75rem",
44
+ ? "0.5rem 0.6rem 0.5rem 0.65rem"
45
+ : "0.5rem 0.75rem",
46
46
  cursor: disabled ? "not-allowed" : "pointer",
47
47
  backgroundColor: "blue",
48
48
  borderRadius: "0.625rem",
@@ -88,52 +88,3 @@ const JweroPrimaryButton = ({
88
88
  };
89
89
 
90
90
  export default JweroPrimaryButton;
91
-
92
-
93
-
94
- // interface ButtonProps {
95
- // /**
96
- // * Is this the principal call to action on the page?
97
- // */
98
- // primary?: boolean;
99
- // /**
100
- // * What background color to use
101
- // */
102
- // backgroundColor?: string;
103
- // /**
104
- // * How large should the button be?
105
- // */
106
- // size?: 'small' | 'medium' | 'large';
107
- // /**
108
- // * Button contents
109
- // */
110
- // label: string;
111
- // /**
112
- // * Optional click handler
113
- // */
114
- // onClick?: () => void;
115
- // }
116
-
117
- // /**
118
- // * Primary UI component for user interaction
119
- // */
120
- // export const Button = ({
121
- // primary = false,
122
- // size = 'medium',
123
- // backgroundColor,
124
- // label,
125
- // ...props
126
- // }: ButtonProps) => {
127
- // const mode = primary ? 'storybook-button--primary' : 'storybook-button--secondary';
128
- // return (
129
- // <button
130
- // type="button"
131
- // className={['storybook-button', `storybook-button--${size}`, mode].join(' ')}
132
- // style={{ backgroundColor }}
133
- // {...props}
134
- // >
135
- // {label}
136
- // </button>
137
- // );
138
- // };
139
-
package/vite.config.ts CHANGED
@@ -5,7 +5,7 @@ export default defineConfig({
5
5
  plugins: [react()],
6
6
  build: {
7
7
  lib: {
8
- entry: 'src/index.ts',
8
+ entry: 'src/index.tsx',
9
9
  name: 'JweroComponents',
10
10
  fileName: (format) => `index.${format}.js`,
11
11
  },