@appcorp/kismaa-web-ui 0.1.83 → 0.1.86

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.
@@ -56,16 +56,26 @@ var Accordion = function (_a) {
56
56
  return newState;
57
57
  });
58
58
  };
59
- return (react_1.default.createElement(react_1.default.Fragment, null, accordionItems === null || accordionItems === void 0 ? void 0 : accordionItems.map(function (item, index) { return (react_1.default.createElement("div", { key: index, className: "cursor-pointer rounded-xl bg-white px-4 py-6 lg:px-7 lg:py-10 ".concat(open[index] ? 'ring-1 ring-primary/65' : 'shadow-[0px_5px_16px_0px_rgba(8,_15,_52,_0.06)]', " ").concat(accordionItems.length - 1 !== index && 'mb-6'), onClick: function () { return handleItemClick(index); } },
59
+ return (react_1.default.createElement(react_1.default.Fragment, null, accordionItems === null || accordionItems === void 0 ? void 0 : accordionItems.map(function (item, index) { return (react_1.default.createElement("div", { key: index, className: "cursor-pointer rounded-xl bg-white px-4 py-6 lg:px-7 lg:py-10 ".concat(open[index] ? 'ring-primary/65 ring-1' : 'shadow-[0px_5px_16px_0px_rgba(8,_15,_52,_0.06)]', " ").concat(accordionItems.length - 1 !== index && 'mb-6'), onClick: function () { return handleItemClick(index); } },
60
60
  react_1.default.createElement("div", { className: "flex w-[100%] items-center justify-between" },
61
61
  react_1.default.createElement("div", { className: "w-[70%] lg:w-[95%]" },
62
62
  react_1.default.createElement(typography_1.Typography, { variant: typography_1.TYPOGRAPHY_VARIANTS.H3 }, item.title)),
63
63
  react_1.default.createElement("div", { className: "flex w-[30%] justify-end lg:w-[5%]" },
64
64
  react_1.default.createElement("div", { className: open[index]
65
- ? 'w-fit rounded-full bg-primary p-2 text-white'
66
- : 'w-fit rounded-full bg-white p-2 text-primary', style: { boxShadow: '0px 5px 16px 0px #080F340F' } },
65
+ ? 'bg-primary w-fit rounded-full p-2 text-white'
66
+ : 'text-primary w-fit rounded-full bg-white p-2', style: { boxShadow: '0px 5px 16px 0px #080F340F' } },
67
67
  react_1.default.createElement(solid_1.ChevronDownIcon, { className: "h-4 w-4 transition-all duration-300 ease-in-out lg:h-7 lg:w-7 ".concat(open[index] ? 'rotate-180' : ' ', " ") })))),
68
68
  open[index] && (react_1.default.createElement("div", { className: "mt-7 w-[95%] text-black/45" },
69
- react_1.default.createElement(typography_1.Typography, { variant: typography_1.TYPOGRAPHY_VARIANTS.P1 }, item.description))))); })));
69
+ typeof item.description === 'string' && (react_1.default.createElement(typography_1.Typography, { variant: typography_1.TYPOGRAPHY_VARIANTS.P1 }, item.description)),
70
+ typeof item.description === 'object' && (react_1.default.createElement("div", { className: "flex flex-col gap-4" },
71
+ react_1.default.createElement("div", { className: "grid grid-cols-4 items-center justify-center" },
72
+ react_1.default.createElement("p", { className: "font-secondary col-span-1 font-bold text-gray-500" }, "Love & Relationship"),
73
+ react_1.default.createElement(typography_1.Typography, { className: "col-span-3", variant: typography_1.TYPOGRAPHY_VARIANTS.P1 }, item.description.loveRelationshipYearly)),
74
+ react_1.default.createElement("div", { className: "grid grid-cols-4 items-center justify-center" },
75
+ react_1.default.createElement("p", { className: "font-secondary col-span-1 font-bold text-gray-500" }, "Friends & Family"),
76
+ react_1.default.createElement(typography_1.Typography, { className: "col-span-3", variant: typography_1.TYPOGRAPHY_VARIANTS.P1 }, item.description.friendFamilyYearly)),
77
+ react_1.default.createElement("div", { className: "grid grid-cols-4 items-center justify-center" },
78
+ react_1.default.createElement("p", { className: "font-secondary col-span-1 font-bold text-gray-500" }, "Career"),
79
+ react_1.default.createElement(typography_1.Typography, { className: "col-span-3", variant: typography_1.TYPOGRAPHY_VARIANTS.P1 }, item.description.careerYearly)))))))); })));
70
80
  };
71
81
  exports.Accordion = Accordion;
@@ -1,5 +1,5 @@
1
1
  export interface AccordionItem {
2
- description: string;
2
+ description: string | Record<string, string>;
3
3
  title: string;
4
4
  }
5
5
  export interface AccordionProps {
@@ -4,5 +4,6 @@ export interface TypographyProps {
4
4
  as?: ElementType;
5
5
  children: React.ReactNode;
6
6
  variant: TYPOGRAPHY_VARIANTS;
7
+ className?: string;
7
8
  }
8
9
  export declare const Typography: React.FC<TypographyProps>;
@@ -29,7 +29,7 @@ var variantClasses = (_a = {},
29
29
  _a[type_1.TYPOGRAPHY_VARIANTS.SUBH5] = 'lg:text-base text-sm font-semibold ',
30
30
  _a);
31
31
  var Typography = function (_a) {
32
- var _b = _a.as, Component = _b === void 0 ? 'p' : _b, children = _a.children, variant = _a.variant;
33
- return (react_1.default.createElement(Component, { className: "".concat(variantClasses[variant]) }, children));
32
+ var _b = _a.as, Component = _b === void 0 ? 'p' : _b, children = _a.children, variant = _a.variant, className = _a.className;
33
+ return (react_1.default.createElement(Component, { className: "".concat(variantClasses[variant], " ").concat(className) }, children));
34
34
  };
35
35
  exports.Typography = Typography;
@@ -27,5 +27,15 @@ exports.horoscopeDetailsSectionData = {
27
27
  luckyMetal: 'Gold',
28
28
  idealProfessions: 'Journalist, Writer, Salesperson, Dentist, Tourism, Armed Forces',
29
29
  },
30
- items: [{ title: 'Title', description: 'Description' }],
30
+ items: [
31
+ { title: 'Title', description: 'Description' },
32
+ {
33
+ title: 'Yearly',
34
+ description: {
35
+ loveRelationshipYearly: 'Love & Relationship Yearly',
36
+ friendFamilyYearly: 'Friend Family Yearly',
37
+ careerYearly: 'Career Yearly',
38
+ },
39
+ },
40
+ ],
31
41
  };
@@ -1,7 +1,7 @@
1
1
  import { BreadcrumbsProps } from '../../molecules/breadcrumbs';
2
2
  export interface HoroscopeFaqItem {
3
3
  title: string;
4
- description: string;
4
+ description: string | Record<string, string>;
5
5
  }
6
6
  export interface HoroscopeDetailsSectionTypes {
7
7
  breadcrumbs: BreadcrumbsProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/kismaa-web-ui",
3
- "version": "0.1.83",
3
+ "version": "0.1.86",
4
4
  "source": "src/index.ts",
5
5
  "main": "lib/main.js",
6
6
  "module": "lib/module.js",
@@ -44,9 +44,9 @@
44
44
  },
45
45
  "dependencies": {},
46
46
  "devDependencies": {
47
- "@appcorp/app-corp-designs": "^0.4.65",
48
- "@appcorp/app-corp-vista": "^0.1.5",
49
- "@appcorp/kismaa-utils": "^0.1.77",
47
+ "@appcorp/app-corp-designs": "^0.4.73",
48
+ "@appcorp/app-corp-vista": "^0.1.7",
49
+ "@appcorp/kismaa-utils": "^0.1.79",
50
50
  "@chromatic-com/storybook": "3.2.3",
51
51
  "@eslint/compat": "^1.2.3",
52
52
  "@headlessui/react": "^2.2.0",