@appcorp/kismaa-web-ui 0.2.14 → 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,17 +10,15 @@ var typography_1 = require("../typography");
10
10
  var link_1 = __importDefault(require("next/link"));
11
11
  var Disclaimer = function () {
12
12
  var currentYear = new Date().getFullYear();
13
- return (react_1.default.createElement("section", { className: "kismaa-section-spacing bg-gray-200" },
14
- react_1.default.createElement("div", { className: "kismaa-container grid grid-cols-2 items-center text-gray-600" },
15
- react_1.default.createElement("div", { className: "flex justify-start" },
16
- react_1.default.createElement(typography_1.Typography, { variant: typography_1.TYPOGRAPHY_VARIANTS.P3 },
13
+ return (react_1.default.createElement("section", { className: "kismaa-section-spacing bg-gray-200 !py-4" },
14
+ react_1.default.createElement("div", { className: "kismaa-container grid grid-cols-5 items-center text-gray-600" },
15
+ react_1.default.createElement("div", { className: "col-span-4 flex justify-start" },
16
+ react_1.default.createElement(typography_1.Typography, { variant: typography_1.TYPOGRAPHY_VARIANTS.P3, className: "text-gray-500" },
17
17
  "\u00A9 ",
18
18
  currentYear,
19
- " Kismaa, Inc.")),
20
- react_1.default.createElement("div", { className: "flex justify-end" },
19
+ " Kismaa, Inc. Kismaa is a platform for spiritual and personal guidance. Readings provided by advisors are for informational and entertainment purposes only and should not be considered a substitute for professional advice in legal, medical, financial, or psychological matters. Users are responsible for their own decisions and actions.")),
20
+ react_1.default.createElement("div", { className: "col-span-1 flex justify-end" },
21
21
  react_1.default.createElement(typography_1.Typography, { variant: typography_1.TYPOGRAPHY_VARIANTS.P3 },
22
- "our",
23
- ' ',
24
- react_1.default.createElement(link_1.default, { className: "font-medium text-quaternary hover:text-secondary hover:underline", target: "_blank", href: "https://appcorp.org" }, "\uD83D\uDE80 Tech Partners"))))));
22
+ react_1.default.createElement(link_1.default, { className: "text-primary hover:text-secondary font-medium hover:underline", target: "_blank", href: "https://appcorp.org" }, "\uD83D\uDE80 Tech Partners"))))));
25
23
  };
26
24
  exports.Disclaimer = Disclaimer;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { ContactSectionProps } from './type';
3
+ export declare const ContactSection: FC<ContactSectionProps>;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ContactSection = void 0;
7
+ var molecules_1 = require("../../molecules");
8
+ var breadcrumbs_1 = require("../../molecules/breadcrumbs");
9
+ var react_1 = __importDefault(require("react"));
10
+ var kismaa_text_input_1 = require("./kismaa-text-input");
11
+ var kismaa_text_area_1 = require("./kismaa-text-area");
12
+ var ContactSection = function (_a) {
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
+ return (react_1.default.createElement("section", { className: "kismaa-section-spacing bg-white" },
15
+ react_1.default.createElement("div", { className: "kismaa-container" },
16
+ react_1.default.createElement("div", { className: "mb-10" },
17
+ react_1.default.createElement(breadcrumbs_1.BreadCrumbs, { items: breadcrumbs.items })),
18
+ react_1.default.createElement("div", { className: "text-gray-800" },
19
+ react_1.default.createElement(molecules_1.Typography, { variant: molecules_1.TYPOGRAPHY_VARIANTS.H2 }, heading)),
20
+ react_1.default.createElement("div", { className: "mt-8 sm:max-w-full md:max-w-[60%] lg:max-w-[55%]" },
21
+ react_1.default.createElement("div", { className: "text-gray-800" },
22
+ react_1.default.createElement(molecules_1.Typography, { variant: molecules_1.TYPOGRAPHY_VARIANTS.H3 }, subHeading)),
23
+ react_1.default.createElement("div", { className: "mt-2 text-slate-400" },
24
+ react_1.default.createElement(molecules_1.Typography, { variant: molecules_1.TYPOGRAPHY_VARIANTS.P1 }, description))),
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", 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
+ 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, value: comments }),
32
+ react_1.default.createElement(molecules_1.Button, { type: molecules_1.BUTTON_TYPES.QUATERNARY, label: "Submit", handleOnClick: handleOnSubmit })))));
33
+ };
34
+ exports.ContactSection = ContactSection;
@@ -0,0 +1,2 @@
1
+ export * from './contact-section';
2
+ export * from './type';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./contact-section"), exports);
18
+ __exportStar(require("./type"), exports);
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ handleOnChange: (k: string, v: string) => void;
4
+ id: string;
5
+ placeholder: string;
6
+ required?: boolean;
7
+ value: string;
8
+ }
9
+ export declare const KismaaTextArea: FC<Props>;
10
+ export {};
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.KismaaTextArea = void 0;
7
+ var react_1 = __importDefault(require("react"));
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, value = _a.value;
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
+ return handleOnChange(id, e.target.value);
12
+ }, placeholder: placeholder, required: required, rows: 10, value: value }));
13
+ };
14
+ exports.KismaaTextArea = KismaaTextArea;
@@ -0,0 +1,11 @@
1
+ import { FC, HTMLInputTypeAttribute } from 'react';
2
+ interface Props {
3
+ handleOnChange: (k: string, v: string) => void;
4
+ id: string;
5
+ placeholder: string;
6
+ required?: boolean;
7
+ type: HTMLInputTypeAttribute;
8
+ value: string;
9
+ }
10
+ export declare const KismaaTextInput: FC<Props>;
11
+ export {};
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.KismaaTextInput = void 0;
7
+ var react_1 = __importDefault(require("react"));
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, value = _a.value;
10
+ return (react_1.default.createElement("input", { className: "border-primary/70 rounded-md border p-4", id: id, onChange: function (e) {
11
+ return handleOnChange(id, e.target.value);
12
+ }, placeholder: placeholder, required: required, type: type, value: value }));
13
+ };
14
+ exports.KismaaTextInput = KismaaTextInput;
@@ -0,0 +1,2 @@
1
+ import { ContactSectionProps } from './type';
2
+ export declare const contactSectionData: ContactSectionProps;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.contactSectionData = void 0;
4
+ exports.contactSectionData = {
5
+ breadcrumbs: {
6
+ items: [{ label: 'Contact', route: '/contact', isActive: false }],
7
+ },
8
+ heading: 'Contact',
9
+ subHeading: '',
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
+ handleOnSubmit: function () { return void 0; },
12
+ handleOnChange: function () { return void 0; },
13
+ subject: '',
14
+ name: '',
15
+ comments: '',
16
+ phone: '',
17
+ email: '',
18
+ };
@@ -0,0 +1,14 @@
1
+ import { BreadcrumbsProps } from '../../molecules/breadcrumbs';
2
+ export interface ContactSectionProps {
3
+ breadcrumbs: BreadcrumbsProps;
4
+ comments: string;
5
+ description: string;
6
+ email: string;
7
+ handleOnChange: (k: string, v: string) => void;
8
+ handleOnSubmit: () => void;
9
+ heading: string;
10
+ name: string;
11
+ phone: string;
12
+ subHeading: string;
13
+ subject: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/kismaa-web-ui",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "source": "src/index.ts",
5
5
  "main": "lib/main.js",
6
6
  "module": "lib/module.js",
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ import { ContactPageProps } from './type';
3
+ export declare const ContactPage: FC<ContactPageProps>;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.ContactPage = void 0;
18
+ var organisms_1 = require("../../organisms");
19
+ var react_1 = __importDefault(require("react"));
20
+ var disclaimer_1 = require("../../molecules/disclaimer/disclaimer");
21
+ var contact_section_1 = require("../../organisms/contact-section");
22
+ var ContactPage = function (_a) {
23
+ var banner = _a.banner, contact = _a.contact, ctaBanner = _a.ctaBanner, footer = _a.footer, getAppBanner = _a.getAppBanner, navbar = _a.navbar;
24
+ return (react_1.default.createElement(react_1.default.Fragment, null,
25
+ react_1.default.createElement(organisms_1.Navbar, __assign({}, navbar)),
26
+ react_1.default.createElement(organisms_1.Banner, __assign({}, banner)),
27
+ react_1.default.createElement(contact_section_1.ContactSection, __assign({}, contact)),
28
+ react_1.default.createElement(organisms_1.GetAppBanner, __assign({}, getAppBanner)),
29
+ react_1.default.createElement(organisms_1.CtaBanner, __assign({}, ctaBanner)),
30
+ react_1.default.createElement(organisms_1.Footer, __assign({}, footer)),
31
+ react_1.default.createElement(disclaimer_1.Disclaimer, { id: "" })));
32
+ };
33
+ exports.ContactPage = ContactPage;
@@ -0,0 +1,2 @@
1
+ export * from './contact-page';
2
+ export * from './type';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./contact-page"), exports);
18
+ __exportStar(require("./type"), exports);
@@ -0,0 +1,2 @@
1
+ import { ContactPageProps } from './type';
2
+ export declare const contactPageData: ContactPageProps;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.contactPageData = void 0;
15
+ var props_1 = require("../../organisms/navbar/props");
16
+ var props_2 = require("../../organisms/banner/props");
17
+ var props_3 = require("../../organisms/footer/props");
18
+ var props_4 = require("../../organisms/get-app-banner/props");
19
+ var props_5 = require("../../organisms/cta-banner/props");
20
+ var organisms_1 = require("../../organisms");
21
+ var props_6 = require("../../organisms/contact-section/props");
22
+ exports.contactPageData = {
23
+ navbar: __assign({}, props_1.navbarData),
24
+ banner: __assign(__assign({}, props_2.bannerData), { type: organisms_1.BANNER_TYPES.HEADER }),
25
+ contact: __assign({}, props_6.contactSectionData),
26
+ footer: __assign({}, props_3.footerData),
27
+ getAppBanner: __assign({}, props_4.getAppBannerData),
28
+ ctaBanner: __assign({}, props_5.ctaBannerData),
29
+ };
@@ -0,0 +1,10 @@
1
+ import { ContactSectionProps } from '../../organisms/contact-section';
2
+ import { BannerProps, CtaBannerProps, FooterProps, GetAppProps, NavbarProps } from '../../organisms';
3
+ export interface ContactPageProps {
4
+ navbar: NavbarProps;
5
+ banner: BannerProps;
6
+ contact: ContactSectionProps;
7
+ getAppBanner: GetAppProps;
8
+ ctaBanner: CtaBannerProps;
9
+ footer: FooterProps;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,6 @@
1
1
  export * from './about-us-page';
2
2
  export * from './blog-page';
3
+ export * from './contact-page';
3
4
  export * from './faqs-page';
4
5
  export * from './home-page';
5
6
  export * from './horoscope-detail-page';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./about-us-page"), exports);
18
18
  __exportStar(require("./blog-page"), exports);
19
+ __exportStar(require("./contact-page"), exports);
19
20
  __exportStar(require("./faqs-page"), exports);
20
21
  __exportStar(require("./home-page"), exports);
21
22
  __exportStar(require("./horoscope-detail-page"), exports);