kahuna-base-react-components 1.0.5 → 1.0.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/dist/components/KButton/KButton.d.ts +9 -0
- package/dist/components/KButton/KButton.stories.d.ts +4 -0
- package/dist/components/KButton/index.d.ts +1 -0
- package/dist/components/KSpan/KSpan.d.ts +8 -0
- package/dist/components/KSpan/KSpan.stories.d.ts +3 -0
- package/dist/components/KSpan/index.d.ts +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/{esm/index.js → index.esm.js} +1 -1
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js.map +1 -0
- package/package.json +1 -1
- package/tsconfig.json +6 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- /package/dist/{cjs/index.js → index.js} +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, import("./KButton").KButtonProps>;
|
|
2
|
+
export default _default;
|
|
3
|
+
export declare const ButtonTest: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./KButton").KButtonProps>;
|
|
4
|
+
export declare const ButtonSecondary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./KButton").KButtonProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './KButton';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react").ReactRenderer, import("./KSpan").KSpanProps>;
|
|
2
|
+
export default _default;
|
|
3
|
+
export declare const SpanTest: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./KSpan").KSpanProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './KSpan';
|
package/dist/index.d.ts
ADDED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{jsx as t}from"react/jsx-runtime";var n=function(n){return t("button",{disabled:n.disabled,"data-testid":"".concat(n.testIdPrefix),className:"",onClick:function(){},children:t("span",{children:n.label})})},e=function(n){return t("span",{children:n.text})};export{n as KButton,e as KSpan};
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../src/components/KButton/KButton.tsx","../src/components/KSpan/KSpan.tsx"],"sourcesContent":["import React from \"react\";\n\nexport interface KButtonProps {\n testIdPrefix: string;\n label?: string;\n theme: \"primary\" | \"secondary\";\n disabled?: boolean;\n}\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;","import React from \"react\";\n\nexport interface KSpanProps {\n testIdPrefix: string;\n text?: string;\n theme: \"primary\" | \"secondary\";\n}\n\nconst KSpan: React.FC<KSpanProps> = (props) => {\n return (\n <span>{props.text}</span>\n );\n};\n\nexport default KSpan;"],"names":["KButton","props","_jsx","disabled","concat","testIdPrefix","className","onClick","children","label","KSpan","text"],"mappings":"wCASM,IAAAA,EAAkC,SAACC,GACvC,OACEC,EACE,SAAA,CAAAC,SAAUF,EAAME,SACH,cAAA,GAAAC,OAAGH,EAAMI,cACtBC,UAAW,GACXC,QAAS,aACRC,SAEDN,mBAAOD,EAAMQ,SAGnB,ECbMC,EAA8B,SAACT,GACnC,OACEC,EAAO,OAAA,CAAAM,SAAAP,EAAMU,MAEjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/components/KButton/KButton.tsx","../src/components/KSpan/KSpan.tsx"],"sourcesContent":["import React from \"react\";\n\nexport interface KButtonProps {\n testIdPrefix: string;\n label?: string;\n theme: \"primary\" | \"secondary\";\n disabled?: boolean;\n}\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;","import React from \"react\";\n\nexport interface KSpanProps {\n testIdPrefix: string;\n text?: string;\n theme: \"primary\" | \"secondary\";\n}\n\nconst KSpan: React.FC<KSpanProps> = (props) => {\n return (\n <span>{props.text}</span>\n );\n};\n\nexport default KSpan;"],"names":["props","_jsx","disabled","concat","testIdPrefix","className","onClick","children","label","text"],"mappings":"gEASwC,SAACA,GACvC,OACEC,EAAAA,IACE,SAAA,CAAAC,SAAUF,EAAME,SACH,cAAA,GAAAC,OAAGH,EAAMI,cACtBC,UAAW,GACXC,QAAS,aACRC,SAEDN,uBAAOD,EAAMQ,SAGnB,gBCboC,SAACR,GACnC,OACEC,EAAAA,IAAO,OAAA,CAAAM,SAAAP,EAAMS,MAEjB"}
|
package/package.json
CHANGED
package/tsconfig.json
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"target": "es5",
|
|
4
4
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"declarationDir": "dist",
|
|
5
7
|
"allowJs": true,
|
|
6
8
|
"skipLibCheck": true,
|
|
7
9
|
"esModuleInterop": true,
|
|
@@ -16,5 +18,8 @@
|
|
|
16
18
|
"noEmit": true,
|
|
17
19
|
"jsx": "react-jsx"
|
|
18
20
|
},
|
|
19
|
-
"include": ["src"]
|
|
21
|
+
"include": ["src"],
|
|
22
|
+
"exclude": [
|
|
23
|
+
"src/stories"
|
|
24
|
+
]
|
|
20
25
|
}
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/components/KButton/KButton.tsx","../../src/components/KSpan/KSpan.tsx"],"sourcesContent":["import React from \"react\";\n\nexport interface KButtonProps {\n testIdPrefix: string;\n label?: string;\n theme: \"primary\" | \"secondary\";\n disabled?: boolean;\n}\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;","import React from \"react\";\n\nexport interface KSpanProps {\n testIdPrefix: string;\n text?: string;\n theme: \"primary\" | \"secondary\";\n}\n\nconst KSpan: React.FC<KSpanProps> = (props) => {\n return (\n <span>{props.text}</span>\n );\n};\n\nexport default KSpan;"],"names":["props","_jsx","disabled","concat","testIdPrefix","className","onClick","children","label","text"],"mappings":"gEASwC,SAACA,GACvC,OACEC,EAAAA,IACE,SAAA,CAAAC,SAAUF,EAAME,SACH,cAAA,GAAAC,OAAGH,EAAMI,cACtBC,UAAW,GACXC,QAAS,aACRC,SAEDN,uBAAOD,EAAMQ,SAGnB,gBCboC,SAACR,GACnC,OACEC,EAAAA,IAAO,OAAA,CAAAM,SAAAP,EAAMS,MAEjB"}
|
package/dist/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/components/KButton/KButton.tsx","../../src/components/KSpan/KSpan.tsx"],"sourcesContent":["import React from \"react\";\n\nexport interface KButtonProps {\n testIdPrefix: string;\n label?: string;\n theme: \"primary\" | \"secondary\";\n disabled?: boolean;\n}\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;","import React from \"react\";\n\nexport interface KSpanProps {\n testIdPrefix: string;\n text?: string;\n theme: \"primary\" | \"secondary\";\n}\n\nconst KSpan: React.FC<KSpanProps> = (props) => {\n return (\n <span>{props.text}</span>\n );\n};\n\nexport default KSpan;"],"names":["KButton","props","_jsx","disabled","concat","testIdPrefix","className","onClick","children","label","KSpan","text"],"mappings":"wCASM,IAAAA,EAAkC,SAACC,GACvC,OACEC,EACE,SAAA,CAAAC,SAAUF,EAAME,SACH,cAAA,GAAAC,OAAGH,EAAMI,cACtBC,UAAW,GACXC,QAAS,aACRC,SAEDN,mBAAOD,EAAMQ,SAGnB,ECbMC,EAA8B,SAACT,GACnC,OACEC,EAAO,OAAA,CAAAM,SAAAP,EAAMU,MAEjB"}
|
|
File without changes
|