@appcorp/kismaa-web-ui 0.1.78 → 0.1.80

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.
@@ -1,12 +1,13 @@
1
1
  export * from './accordion';
2
2
  export * from './badge';
3
3
  export * from './button';
4
+ export * from './button-group';
4
5
  export * from './horizontal-divider';
6
+ export * from './horoscope-card';
7
+ export * from './mdx-remote';
8
+ export * from './mega-menu-card';
5
9
  export * from './ratings';
6
10
  export * from './stat-card';
7
11
  export * from './theme-switch/theme-switch';
8
12
  export * from './typography';
9
13
  export * from './user-card';
10
- export * from './horoscope-card';
11
- export * from './button-group';
12
- export * from './mega-menu-card';
@@ -17,12 +17,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./accordion"), exports);
18
18
  __exportStar(require("./badge"), exports);
19
19
  __exportStar(require("./button"), exports);
20
+ __exportStar(require("./button-group"), exports);
20
21
  __exportStar(require("./horizontal-divider"), exports);
22
+ __exportStar(require("./horoscope-card"), exports);
23
+ __exportStar(require("./mdx-remote"), exports);
24
+ __exportStar(require("./mega-menu-card"), exports);
21
25
  __exportStar(require("./ratings"), exports);
22
26
  __exportStar(require("./stat-card"), exports);
23
27
  __exportStar(require("./theme-switch/theme-switch"), exports);
24
28
  __exportStar(require("./typography"), exports);
25
29
  __exportStar(require("./user-card"), exports);
26
- __exportStar(require("./horoscope-card"), exports);
27
- __exportStar(require("./button-group"), exports);
28
- __exportStar(require("./mega-menu-card"), exports);
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { MDXRemoteProps } from 'next-mdx-remote';
3
+ interface Props {
4
+ source: MDXRemoteProps;
5
+ }
6
+ export declare const MDXComponent: FC<Props>;
7
+ export {};
@@ -0,0 +1,25 @@
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.MDXComponent = void 0;
18
+ var react_1 = __importDefault(require("react"));
19
+ var next_mdx_remote_1 = require("next-mdx-remote");
20
+ var MDXComponent = function (_a) {
21
+ var source = _a.source;
22
+ return (react_1.default.createElement("div", { className: "wrapper" },
23
+ react_1.default.createElement(next_mdx_remote_1.MDXRemote, __assign({}, source))));
24
+ };
25
+ exports.MDXComponent = MDXComponent;
@@ -10,6 +10,7 @@ var accordion_1 = require("../../molecules/accordion");
10
10
  var util_functions_1 = require("@react-pakistan/util-functions");
11
11
  var vista_text_input_v1_1 = require("@appcorp/app-corp-vista/molecules/vista-text-input-v1");
12
12
  var vista_button_v1_1 = require("@appcorp/app-corp-vista/molecules/vista-button-v1/vista-button-v1");
13
+ var mdx_remote_1 = require("../../molecules/mdx-remote");
13
14
  var HoroscopeDetailsSection = function (_a) {
14
15
  var breadcrumbs = _a.breadcrumbs, heading = _a.heading, intro = _a.intro, items = _a.items;
15
16
  var date = new Date().toISOString();
@@ -19,7 +20,7 @@ var HoroscopeDetailsSection = function (_a) {
19
20
  react_1.default.createElement(section_header_1.SectionHeader, { heading: heading, subheading: "", renderCtaButton: false, handleButtonClick: function () { return void 0; }, breadcrumbs: breadcrumbs }),
20
21
  react_1.default.createElement("div", { className: "flex flex-col gap-2 py-8" },
21
22
  react_1.default.createElement("p", { className: "font-secondary text-lg font-bold text-gray-500" }, formattedDate),
22
- react_1.default.createElement("p", { className: "text-gray-500" }, intro))),
23
+ react_1.default.createElement(mdx_remote_1.MDXComponent, { source: intro }))),
23
24
  react_1.default.createElement("div", { className: "bg-blue-50 py-10" },
24
25
  react_1.default.createElement("div", { className: "kismaa-container" },
25
26
  react_1.default.createElement("p", { className: "font-secondary text-2xl font-bold" }, "Receive FREE daily horoscopes and exclusive promotions"),
@@ -1,9 +1,14 @@
1
- import type { StoryObj } from '@storybook/react';
2
1
  declare const meta: {
3
2
  component: import("react").FC<import("./type").HoroscopeDetailsSectionTypes>;
4
3
  tags: string[];
5
4
  title: string;
6
5
  };
7
6
  export default meta;
8
- type Story = StoryObj<typeof meta>;
9
- export declare const HoroscopeDetailsSectionStory: Story;
7
+ export declare const HoroscopeDetailsSectionStory: {
8
+ args: {
9
+ breadcrumbs: import("../../molecules/breadcrumbs").BreadcrumbsProps;
10
+ heading: string;
11
+ intro: import("next-mdx-remote").MDXRemoteSerializeResult<Record<string, unknown>>;
12
+ items: import("./type").HoroscopeFaqItem[];
13
+ };
14
+ };
@@ -20,6 +20,7 @@ var meta = {
20
20
  title: 'Organisms/HoroscopeDetailsSection',
21
21
  };
22
22
  exports.default = meta;
23
+ // type Story = StoryObj<typeof meta>;
23
24
  exports.HoroscopeDetailsSectionStory = {
24
25
  args: __assign({}, props_1.horoscopeDetailsSectionData),
25
26
  };
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.horoscopeDetailsSectionData = void 0;
4
5
  exports.horoscopeDetailsSectionData = {
@@ -6,6 +7,6 @@ exports.horoscopeDetailsSectionData = {
6
7
  breadcrumbs: {
7
8
  items: [{ label: 'Horoscope', route: '/horoscope', isActive: false }],
8
9
  },
9
- intro: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries',
10
+ intro: '# Hello World',
10
11
  items: [{ title: 'Title', description: 'Description' }],
11
12
  };
@@ -1,3 +1,4 @@
1
+ import { MDXRemoteSerializeResult } from 'next-mdx-remote';
1
2
  import { BreadcrumbsProps } from '../../molecules/breadcrumbs';
2
3
  export interface HoroscopeFaqItem {
3
4
  title: string;
@@ -6,6 +7,6 @@ export interface HoroscopeFaqItem {
6
7
  export interface HoroscopeDetailsSectionTypes {
7
8
  breadcrumbs: BreadcrumbsProps;
8
9
  heading: string;
9
- intro: string;
10
+ intro: MDXRemoteSerializeResult<Record<string, unknown>>;
10
11
  items: HoroscopeFaqItem[];
11
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/kismaa-web-ui",
3
- "version": "0.1.78",
3
+ "version": "0.1.80",
4
4
  "source": "src/index.ts",
5
5
  "main": "lib/main.js",
6
6
  "module": "lib/module.js",
@@ -91,6 +91,7 @@
91
91
  "jest-environment-jsdom": "^29.7.0",
92
92
  "lint-staged": "15.2.11",
93
93
  "next": "^15",
94
+ "next-mdx-remote": "^5.0.0",
94
95
  "next-themes": "^0.4.3",
95
96
  "postcss": "^8",
96
97
  "prettier": "^3.4.1",