linkedunion-design-kit 1.2.6 → 1.2.8

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.
@@ -16,7 +16,8 @@ card.args = {
16
16
  layout: cardLayoutEnum.horizontal,
17
17
  btnLabel: 'View More',
18
18
  href: 'https://www.google.com/',
19
- card_title_color: 'lu-text-default'
19
+ card_title_color: 'lu-text-default',
20
+ id: 1
20
21
  };
21
22
  card.argTypes = {
22
23
  mediaPosition: {
@@ -3,7 +3,6 @@ import { LuImage } from "../Images/LuImage";
3
3
  import { Button } from "../Button/Button";
4
4
  import Link from "next/link";
5
5
  export var PostByCategory = function (props) {
6
- var _a;
7
6
  return (<>
8
7
  {(props === null || props === void 0 ? void 0 : props.layout) === cardLayoutEnum.horizontal ?
9
8
  <div className={"lu-pd-250 bg-white lu-border-rounded-xl ".concat(props === null || props === void 0 ? void 0 : props.className, " lu-shadow-md flex gap-x-[20px] lu-width-100")}>
@@ -12,7 +11,7 @@ export var PostByCategory = function (props) {
12
11
  </div>
13
12
  <div className="flex flex-1 flex-col">
14
13
  <div className={"flex flex-col justify-center flex-1 h-full"}>
15
- <div className={"".concat((_a = props.card_title_color) !== null && _a !== void 0 ? _a : "text-[".concat(props.card_title_color, "]"), " lu-font-size-2x-large lu-font-weight-semibold horizontal_card_heading")}>{props === null || props === void 0 ? void 0 : props.heading}</div>
14
+ <div className={"card_title_color_".concat(props === null || props === void 0 ? void 0 : props.id, " lu-font-size-2x-large lu-font-weight-semibold horizontal_card_heading")}>{props === null || props === void 0 ? void 0 : props.heading}</div>
16
15
  <p className={"lu-base-font-size lu-font-weight-extra-light horizontal_body_text lu-text-caption"}>{props === null || props === void 0 ? void 0 : props.body}</p>
17
16
  </div>
18
17
  <Link href={props.href || ''} className="lu-width-100">
@@ -34,5 +33,8 @@ export var PostByCategory = function (props) {
34
33
  </Link>
35
34
  </div>
36
35
  </>)}
36
+ <style jsx global>
37
+ {"\n .card_title_color_".concat(props === null || props === void 0 ? void 0 : props.id, " {\n color: ").concat(props.card_title_color, ";\n }\n ")}
38
+ </style>
37
39
  </>);
38
40
  };
@@ -10,6 +10,7 @@ export declare const defaultCardProps: {
10
10
  btnLabel: string;
11
11
  href: string;
12
12
  card_title_color: string;
13
+ id: number;
13
14
  };
14
15
  export declare const colorGroups: {
15
16
  primary: string[];
@@ -11,7 +11,8 @@ export var defaultCardProps = {
11
11
  className: '',
12
12
  btnLabel: 'View More',
13
13
  href: 'https://www.google.com/',
14
- card_title_color: 'lu-text-default'
14
+ card_title_color: 'lu-text-default',
15
+ id: 1
15
16
  };
16
17
  export var colorGroups = {
17
18
  primary: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkedunion-design-kit",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",