@kkcompany/app-ui 0.1.32 → 0.1.33

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.
package/dist/index.cjs CHANGED
@@ -1440,7 +1440,7 @@ const OptionalLink = ({ slots, href, children, ...rest }) => href ? /* @__PURE__
1440
1440
  ...rest,
1441
1441
  children
1442
1442
  });
1443
- const VideoItem = ({ style, href = "", thumbnailHref = href, imageUrl = "", data = {}, secondaryText, progress, topTags = [], bottomTags = [], slots = { Link: "a" }, onClick, onClickThumbnail, thumbnailChildren }) => /* @__PURE__ */ (0, __emotion_react_jsx_runtime.jsxs)("div", {
1443
+ const VideoItem = ({ style, href = "", thumbnailHref = href, imageUrl = "", data = {}, title = data.title || data.display_text, synopsis = data.synopsis, secondaryText, progress, topTags = [], bottomTags = [], slots = { Link: "a" }, onClick, onClickThumbnail, thumbnailChildren }) => /* @__PURE__ */ (0, __emotion_react_jsx_runtime.jsxs)("div", {
1444
1444
  onClick,
1445
1445
  css: [videoItemStyle, style],
1446
1446
  children: [/* @__PURE__ */ (0, __emotion_react_jsx_runtime.jsxs)("div", {
@@ -1460,11 +1460,11 @@ const VideoItem = ({ style, href = "", thumbnailHref = href, imageUrl = "", data
1460
1460
  children: [
1461
1461
  /* @__PURE__ */ (0, __emotion_react_jsx_runtime.jsx)("div", {
1462
1462
  css: titleStyle,
1463
- children: data.title || data.display_text
1463
+ children: title
1464
1464
  }),
1465
1465
  /* @__PURE__ */ (0, __emotion_react_jsx_runtime.jsx)("div", {
1466
1466
  css: [descriptionStyle, desktopDescriptionStyle],
1467
- children: data.synopsis
1467
+ children: synopsis
1468
1468
  }),
1469
1469
  secondaryText ? /* @__PURE__ */ (0, __emotion_react_jsx_runtime.jsx)("div", { children: secondaryText }) : null
1470
1470
  ]
@@ -1473,7 +1473,7 @@ const VideoItem = ({ style, href = "", thumbnailHref = href, imageUrl = "", data
1473
1473
  slots,
1474
1474
  href,
1475
1475
  css: descriptionStyle,
1476
- children: data.synopsis
1476
+ children: synopsis
1477
1477
  })]
1478
1478
  });
1479
1479
  var VideoItem_default = VideoItem;
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react0 from "react";
2
2
  import { ComponentType, ElementType, MouseEventHandler, ReactElement, ReactNode } from "react";
3
- import * as _emotion_react_jsx_runtime2 from "@emotion/react/jsx-runtime";
3
+ import * as _emotion_react_jsx_runtime0 from "@emotion/react/jsx-runtime";
4
4
  import { CSSObject } from "@emotion/react";
5
5
  import Link from "next/link";
6
6
 
@@ -65,7 +65,7 @@ declare const HiddenToggle: ({
65
65
  defaultEnabled?: boolean;
66
66
  children: any;
67
67
  onChange: any;
68
- }) => _emotion_react_jsx_runtime2.JSX.Element;
68
+ }) => _emotion_react_jsx_runtime0.JSX.Element;
69
69
  //#endregion
70
70
  //#region src/Icon.d.ts
71
71
  declare const Icon: ({
@@ -74,7 +74,7 @@ declare const Icon: ({
74
74
  }: {
75
75
  style?: {};
76
76
  src: any;
77
- }) => _emotion_react_jsx_runtime2.JSX.Element;
77
+ }) => _emotion_react_jsx_runtime0.JSX.Element;
78
78
  //#endregion
79
79
  //#region src/Modal/index.d.ts
80
80
  type ModalProps = {
@@ -138,7 +138,7 @@ declare const SeeMore: ({
138
138
  style?: CSSObject;
139
139
  messages?: typeof defaultMessages;
140
140
  children?: ReactNode;
141
- }) => _emotion_react_jsx_runtime2.JSX.Element;
141
+ }) => _emotion_react_jsx_runtime0.JSX.Element;
142
142
  //#endregion
143
143
  //#region src/VideoItem.d.ts
144
144
  type VideoDetail = {
@@ -152,6 +152,8 @@ declare const VideoItem: ({
152
152
  thumbnailHref,
153
153
  imageUrl,
154
154
  data,
155
+ title,
156
+ synopsis,
155
157
  secondaryText,
156
158
  progress,
157
159
  topTags,
@@ -166,6 +168,8 @@ declare const VideoItem: ({
166
168
  thumbnailHref?: string;
167
169
  imageUrl?: string;
168
170
  data?: VideoDetail;
171
+ title?: string;
172
+ synopsis?: string;
169
173
  secondaryText?: string;
170
174
  progress?: number;
171
175
  topTags?: string[];
@@ -202,6 +206,6 @@ declare const VideoThumbnail: ({
202
206
  Image?: ElementType;
203
207
  };
204
208
  onClick?: MouseEventHandler<HTMLAnchorElement>;
205
- }) => _emotion_react_jsx_runtime2.JSX.Element;
209
+ }) => _emotion_react_jsx_runtime0.JSX.Element;
206
210
  //#endregion
207
211
  export { Banner, Dropdown, HiddenToggle, Icon, Modal, Pagination, SeeMore, VideoItem, VideoThumbnail };
package/dist/index.d.mts CHANGED
@@ -152,6 +152,8 @@ declare const VideoItem: ({
152
152
  thumbnailHref,
153
153
  imageUrl,
154
154
  data,
155
+ title,
156
+ synopsis,
155
157
  secondaryText,
156
158
  progress,
157
159
  topTags,
@@ -166,6 +168,8 @@ declare const VideoItem: ({
166
168
  thumbnailHref?: string;
167
169
  imageUrl?: string;
168
170
  data?: VideoDetail;
171
+ title?: string;
172
+ synopsis?: string;
169
173
  secondaryText?: string;
170
174
  progress?: number;
171
175
  topTags?: string[];
package/dist/index.mjs CHANGED
@@ -1440,7 +1440,7 @@ const OptionalLink = ({ slots, href, children, ...rest }) => href ? /* @__PURE__
1440
1440
  ...rest,
1441
1441
  children
1442
1442
  });
1443
- const VideoItem = ({ style, href = "", thumbnailHref = href, imageUrl = "", data = {}, secondaryText, progress, topTags = [], bottomTags = [], slots = { Link: "a" }, onClick, onClickThumbnail, thumbnailChildren }) => /* @__PURE__ */ jsxs("div", {
1443
+ const VideoItem = ({ style, href = "", thumbnailHref = href, imageUrl = "", data = {}, title = data.title || data.display_text, synopsis = data.synopsis, secondaryText, progress, topTags = [], bottomTags = [], slots = { Link: "a" }, onClick, onClickThumbnail, thumbnailChildren }) => /* @__PURE__ */ jsxs("div", {
1444
1444
  onClick,
1445
1445
  css: [videoItemStyle, style],
1446
1446
  children: [/* @__PURE__ */ jsxs("div", {
@@ -1460,11 +1460,11 @@ const VideoItem = ({ style, href = "", thumbnailHref = href, imageUrl = "", data
1460
1460
  children: [
1461
1461
  /* @__PURE__ */ jsx$1("div", {
1462
1462
  css: titleStyle,
1463
- children: data.title || data.display_text
1463
+ children: title
1464
1464
  }),
1465
1465
  /* @__PURE__ */ jsx$1("div", {
1466
1466
  css: [descriptionStyle, desktopDescriptionStyle],
1467
- children: data.synopsis
1467
+ children: synopsis
1468
1468
  }),
1469
1469
  secondaryText ? /* @__PURE__ */ jsx$1("div", { children: secondaryText }) : null
1470
1470
  ]
@@ -1473,7 +1473,7 @@ const VideoItem = ({ style, href = "", thumbnailHref = href, imageUrl = "", data
1473
1473
  slots,
1474
1474
  href,
1475
1475
  css: descriptionStyle,
1476
- children: data.synopsis
1476
+ children: synopsis
1477
1477
  })]
1478
1478
  });
1479
1479
  var VideoItem_default = VideoItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kkcompany/app-ui",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "module": "dist/index.mjs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.mts",