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.
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export interface KButtonProps {
3
+ testIdPrefix: string;
4
+ label?: string;
5
+ theme: "primary" | "secondary";
6
+ disabled?: boolean;
7
+ }
8
+ declare const KButton: React.FC<KButtonProps>;
9
+ export default KButton;
@@ -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,8 @@
1
+ import React from "react";
2
+ export interface KSpanProps {
3
+ testIdPrefix: string;
4
+ text?: string;
5
+ theme: "primary" | "secondary";
6
+ }
7
+ declare const KSpan: React.FC<KSpanProps>;
8
+ export default KSpan;
@@ -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';
@@ -0,0 +1,3 @@
1
+ import KButton from "./components/KButton";
2
+ import KSpan from "./components/KSpan";
3
+ export { KButton, KSpan };
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kahuna-base-react-components",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Kahuna Base React Components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
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
  }
@@ -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"}
@@ -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