kahuna-base-react-components 1.0.2 → 1.0.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/babel.config.js +7 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types.d.ts +11 -1
- package/package.json +11 -1
- package/src/index.ts +5 -1
package/babel.config.js
ADDED
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime");
|
|
1
|
+
"use strict";var t=require("react/jsx-runtime");exports.KButton=function(e){return t.jsx("button",{disabled:e.disabled,"data-testid":"".concat(e.testIdPrefix),className:"",onClick:function(){},children:t.jsx("span",{children:e.label})})};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/components/KButton/KButton.tsx"],"sourcesContent":["import React, {useState} from \"react\";\nimport {KButtonProps} from \"./KButton.types\";\n\nconst KButton: React.FC<KButtonProps> = (props) => {\n return (\n <button\n disabled={props.disabled}\n data-testid={`${props.testIdPrefix}`}\n className={``}\n onClick={() => {\n }}\n >\n <span>{props.label}</span>\n </button>\n );\n};\n\nexport default KButton;"],"names":["props","_jsx","disabled","concat","testIdPrefix","className","onClick","children","label"],"mappings":"gEAGwC,SAACA,GACvC,OACEC,EAAAA,IACE,SAAA,CAAAC,SAAUF,EAAME,SACH,cAAA,GAAAC,OAAGH,EAAMI,cACtBC,UAAW,GACXC,QAAS,aACRC,SAEDN,uBAAOD,EAAMQ,SAGnB"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"react/jsx-runtime";
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";var e=function(e){return t("button",{disabled:e.disabled,"data-testid":"".concat(e.testIdPrefix),className:"",onClick:function(){},children:t("span",{children:e.label})})};export{e as KButton};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/components/KButton/KButton.tsx"],"sourcesContent":["import React, {useState} from \"react\";\nimport {KButtonProps} from \"./KButton.types\";\n\nconst KButton: React.FC<KButtonProps> = (props) => {\n return (\n <button\n disabled={props.disabled}\n data-testid={`${props.testIdPrefix}`}\n className={``}\n onClick={() => {\n }}\n >\n <span>{props.label}</span>\n </button>\n );\n};\n\nexport default KButton;"],"names":["KButton","props","_jsx","disabled","concat","testIdPrefix","className","onClick","children","label"],"mappings":"wCAGM,IAAAA,EAAkC,SAACC,GACvC,OACEC,EACE,SAAA,CAAAC,SAAUF,EAAME,SACH,cAAA,GAAAC,OAAGH,EAAMI,cACtBC,UAAW,GACXC,QAAS,aACRC,SAEDN,mBAAOD,EAAMQ,SAGnB"}
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kahuna-base-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Kahuna Base React Components",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"react-dom": "^18.2.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
+
"@babel/core": "^7.24.0",
|
|
30
|
+
"@babel/preset-env": "^7.24.0",
|
|
31
|
+
"@babel/preset-react": "^7.23.3",
|
|
32
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
29
33
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
30
34
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
31
35
|
"@rollup/plugin-terser": "^0.4.4",
|
|
@@ -38,7 +42,13 @@
|
|
|
38
42
|
"@storybook/react": "^7.6.17",
|
|
39
43
|
"@storybook/react-vite": "^7.6.17",
|
|
40
44
|
"@storybook/test": "^7.6.17",
|
|
45
|
+
"@testing-library/react": "^14.2.1",
|
|
46
|
+
"@types/jest": "^29.5.12",
|
|
41
47
|
"@types/react": "^18.2.64",
|
|
48
|
+
"babel-jest": "^29.7.0",
|
|
49
|
+
"identity-obj-proxy": "^3.0.0",
|
|
50
|
+
"jest": "^29.7.0",
|
|
51
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
42
52
|
"rollup": "^4.12.1",
|
|
43
53
|
"rollup-plugin-dts": "^6.1.0",
|
|
44
54
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
package/src/index.ts
CHANGED