@appcorp/kismaa-web-ui 0.2.15 → 0.2.16

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.
@@ -10,7 +10,7 @@ var react_1 = __importDefault(require("react"));
10
10
  var kismaa_text_input_1 = require("./kismaa-text-input");
11
11
  var kismaa_text_area_1 = require("./kismaa-text-area");
12
12
  var ContactSection = function (_a) {
13
- var breadcrumbs = _a.breadcrumbs, description = _a.description, handleOnChange = _a.handleOnChange, handleOnSubmit = _a.handleOnSubmit, heading = _a.heading, subHeading = _a.subHeading;
13
+ var breadcrumbs = _a.breadcrumbs, comments = _a.comments, description = _a.description, email = _a.email, handleOnChange = _a.handleOnChange, handleOnSubmit = _a.handleOnSubmit, heading = _a.heading, name = _a.name, phone = _a.phone, subHeading = _a.subHeading, subject = _a.subject;
14
14
  return (react_1.default.createElement("section", { className: "kismaa-section-spacing bg-white" },
15
15
  react_1.default.createElement("div", { className: "kismaa-container" },
16
16
  react_1.default.createElement("div", { className: "mb-10" },
@@ -23,12 +23,12 @@ var ContactSection = function (_a) {
23
23
  react_1.default.createElement("div", { className: "mt-2 text-slate-400" },
24
24
  react_1.default.createElement(molecules_1.Typography, { variant: molecules_1.TYPOGRAPHY_VARIANTS.P1 }, description))),
25
25
  react_1.default.createElement("div", { className: "mx-auto mt-16 grid max-w-5xl grid-cols-2 gap-4" },
26
- react_1.default.createElement(kismaa_text_input_1.KismaaTextInput, { handleOnChange: handleOnChange, id: "name", placeholder: "Name", required: true, type: "text" }),
27
- react_1.default.createElement(kismaa_text_input_1.KismaaTextInput, { handleOnChange: handleOnChange, id: "phone", placeholder: "Phone Number", required: true, type: "text" }),
28
- react_1.default.createElement(kismaa_text_input_1.KismaaTextInput, { handleOnChange: handleOnChange, id: "subject", placeholder: "Subject", required: true, type: "text" }),
29
- react_1.default.createElement(kismaa_text_input_1.KismaaTextInput, { handleOnChange: handleOnChange, id: "email", placeholder: "Email", required: true, type: "email" })),
26
+ react_1.default.createElement(kismaa_text_input_1.KismaaTextInput, { handleOnChange: handleOnChange, id: "name", placeholder: "Name", required: true, type: "text", value: name }),
27
+ react_1.default.createElement(kismaa_text_input_1.KismaaTextInput, { handleOnChange: handleOnChange, id: "phone", placeholder: "Phone Number", required: true, type: "text", value: phone }),
28
+ react_1.default.createElement(kismaa_text_input_1.KismaaTextInput, { handleOnChange: handleOnChange, id: "subject", placeholder: "Subject", required: true, type: "text", value: subject }),
29
+ react_1.default.createElement(kismaa_text_input_1.KismaaTextInput, { handleOnChange: handleOnChange, id: "email", placeholder: "Email", required: true, type: "email", value: email })),
30
30
  react_1.default.createElement("div", { className: "mx-auto flex max-w-5xl flex-col gap-4" },
31
- react_1.default.createElement(kismaa_text_area_1.KismaaTextArea, { handleOnChange: handleOnChange, id: "comments", placeholder: "Comments...", required: true }),
31
+ react_1.default.createElement(kismaa_text_area_1.KismaaTextArea, { handleOnChange: handleOnChange, id: "comments", placeholder: "Comments...", required: true, value: comments }),
32
32
  react_1.default.createElement(molecules_1.Button, { type: molecules_1.BUTTON_TYPES.QUATERNARY, label: "Submit", handleOnClick: handleOnSubmit })))));
33
33
  };
34
34
  exports.ContactSection = ContactSection;
@@ -4,6 +4,7 @@ interface Props {
4
4
  id: string;
5
5
  placeholder: string;
6
6
  required?: boolean;
7
+ value: string;
7
8
  }
8
9
  export declare const KismaaTextArea: FC<Props>;
9
10
  export {};
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.KismaaTextArea = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
8
  var KismaaTextArea = function (_a) {
9
- var handleOnChange = _a.handleOnChange, id = _a.id, placeholder = _a.placeholder, _b = _a.required, required = _b === void 0 ? false : _b;
9
+ var handleOnChange = _a.handleOnChange, id = _a.id, placeholder = _a.placeholder, _b = _a.required, required = _b === void 0 ? false : _b, value = _a.value;
10
10
  return (react_1.default.createElement("textarea", { className: "border-primary/70 mt-4 w-full rounded-md border p-4", id: id, onChange: function (e) {
11
11
  return handleOnChange(id, e.target.value);
12
- }, placeholder: placeholder, required: required, rows: 10 }));
12
+ }, placeholder: placeholder, required: required, rows: 10, value: value }));
13
13
  };
14
14
  exports.KismaaTextArea = KismaaTextArea;
@@ -5,6 +5,7 @@ interface Props {
5
5
  placeholder: string;
6
6
  required?: boolean;
7
7
  type: HTMLInputTypeAttribute;
8
+ value: string;
8
9
  }
9
10
  export declare const KismaaTextInput: FC<Props>;
10
11
  export {};
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.KismaaTextInput = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
8
  var KismaaTextInput = function (_a) {
9
- var handleOnChange = _a.handleOnChange, id = _a.id, placeholder = _a.placeholder, _b = _a.required, required = _b === void 0 ? false : _b, type = _a.type;
9
+ var handleOnChange = _a.handleOnChange, id = _a.id, placeholder = _a.placeholder, _b = _a.required, required = _b === void 0 ? false : _b, type = _a.type, value = _a.value;
10
10
  return (react_1.default.createElement("input", { className: "border-primary/70 rounded-md border p-4", id: id, onChange: function (e) {
11
11
  return handleOnChange(id, e.target.value);
12
- }, placeholder: placeholder, required: required, type: type }));
12
+ }, placeholder: placeholder, required: required, type: type, value: value }));
13
13
  };
14
14
  exports.KismaaTextInput = KismaaTextInput;
@@ -10,4 +10,9 @@ exports.contactSectionData = {
10
10
  description: "We're here for you—whenever you need guidance, support, or have questions about Kismaa. Whether you're facing a challenge, need help with the platform, or simply want to share your experience, don’t hesitate to reach out. Fill out the form below, and our team will get back to you as soon as possible.",
11
11
  handleOnSubmit: function () { return void 0; },
12
12
  handleOnChange: function () { return void 0; },
13
+ subject: '',
14
+ name: '',
15
+ comments: '',
16
+ phone: '',
17
+ email: '',
13
18
  };
@@ -1,9 +1,14 @@
1
1
  import { BreadcrumbsProps } from '../../molecules/breadcrumbs';
2
2
  export interface ContactSectionProps {
3
3
  breadcrumbs: BreadcrumbsProps;
4
+ comments: string;
4
5
  description: string;
6
+ email: string;
5
7
  handleOnChange: (k: string, v: string) => void;
6
8
  handleOnSubmit: () => void;
7
9
  heading: string;
10
+ name: string;
11
+ phone: string;
8
12
  subHeading: string;
13
+ subject: string;
9
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/kismaa-web-ui",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "source": "src/index.ts",
5
5
  "main": "lib/main.js",
6
6
  "module": "lib/module.js",