@kkcompany/app-ui 0.1.19 → 0.1.21
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 +14 -29
- package/dist/index.d.cts +5 -5
- package/dist/index.mjs +14 -29
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -249,18 +249,14 @@ const tagBaseStyles = {
|
|
|
249
249
|
fontSize: "10px",
|
|
250
250
|
wordBreak: "keep-all",
|
|
251
251
|
"> div": {
|
|
252
|
-
padding: "
|
|
252
|
+
padding: "0.3em 0.6em",
|
|
253
253
|
borderRadius: "2px",
|
|
254
254
|
fontWeight: 600,
|
|
255
255
|
background: "var(--tag-background)",
|
|
256
256
|
boxShadow: "0 2px 4px 0 rgba(0,0,0,0.25)",
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
padding: "2px 4px",
|
|
261
|
-
height: "11px",
|
|
262
|
-
lineHeight: "11px"
|
|
263
|
-
}
|
|
257
|
+
minHeight: "15px",
|
|
258
|
+
display: "flex",
|
|
259
|
+
alignItems: "center"
|
|
264
260
|
}
|
|
265
261
|
}
|
|
266
262
|
};
|
|
@@ -269,22 +265,10 @@ const tagBottomStyles = {
|
|
|
269
265
|
"--tag-color": "#000",
|
|
270
266
|
"--tag-background": "#fff"
|
|
271
267
|
};
|
|
272
|
-
const newTagStyles = {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
};
|
|
276
|
-
const onSaleTagStyles = {
|
|
277
|
-
width: "40px",
|
|
278
|
-
"@media (max-width: 600px)": { width: "28px" }
|
|
279
|
-
};
|
|
280
|
-
const freeTagStyles = {
|
|
281
|
-
width: "20px",
|
|
282
|
-
"@media (max-width: 600px)": { width: "14px" }
|
|
283
|
-
};
|
|
284
|
-
const megaTagStyles = {
|
|
285
|
-
width: "30px",
|
|
286
|
-
"@media (max-width: 600px)": { width: "21px" }
|
|
287
|
-
};
|
|
268
|
+
const newTagStyles = { minWidth: "26px" };
|
|
269
|
+
const onSaleTagStyles = { minWidth: "40px" };
|
|
270
|
+
const freeTagStyles = { minWidth: "20px" };
|
|
271
|
+
const megaTagStyles = { minWidth: "30px" };
|
|
288
272
|
const VideoThumbnail = ({ href, imageUrl, title, progress, topTags = [], bottomTags = [], children, slots = {}, onClick }) => {
|
|
289
273
|
const components = {
|
|
290
274
|
Link: "a",
|
|
@@ -376,13 +360,14 @@ const infoStyle = {
|
|
|
376
360
|
flex: "1",
|
|
377
361
|
minWidth: "0"
|
|
378
362
|
}
|
|
379
|
-
}
|
|
380
|
-
"@media (max-width: 600px)": { "> div:first-of-type > a > div:last-of-type > div": { fontSize: "7px" } }
|
|
363
|
+
}
|
|
381
364
|
};
|
|
365
|
+
const LINES_OF_TITLE = 2;
|
|
366
|
+
const LINES_OF_DESCRIPTION = 2;
|
|
382
367
|
const titleStyle = {
|
|
383
368
|
display: "-webkit-box",
|
|
384
369
|
WebkitBoxOrient: "vertical",
|
|
385
|
-
WebkitLineClamp:
|
|
370
|
+
WebkitLineClamp: LINES_OF_TITLE,
|
|
386
371
|
overflow: "hidden",
|
|
387
372
|
textOverflow: "ellipsis"
|
|
388
373
|
};
|
|
@@ -391,7 +376,7 @@ const descriptionStyle = {
|
|
|
391
376
|
display: "var(--description-display, -webkit-box)",
|
|
392
377
|
overflow: "hidden",
|
|
393
378
|
WebkitBoxOrient: "vertical",
|
|
394
|
-
WebkitLineClamp:
|
|
379
|
+
WebkitLineClamp: LINES_OF_DESCRIPTION,
|
|
395
380
|
color: "#ccc",
|
|
396
381
|
textOverflow: "ellipsis",
|
|
397
382
|
fontSize: "14px",
|
|
@@ -405,7 +390,7 @@ const descriptionStyle = {
|
|
|
405
390
|
const desktopDescriptionStyle = {
|
|
406
391
|
display: "var(--desktop-description-display, -webkit-box)",
|
|
407
392
|
margin: "0.75rem 0",
|
|
408
|
-
WebkitLineClamp:
|
|
393
|
+
WebkitLineClamp: LINES_OF_DESCRIPTION
|
|
409
394
|
};
|
|
410
395
|
const OptionalLink = ({ slots, href, children, ...rest }) => href ? /* @__PURE__ */ (0, __emotion_react_jsx_runtime.jsx)(slots.Link, {
|
|
411
396
|
href,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _emotion_react_jsx_runtime2 from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { CSSObject } from "@emotion/react";
|
|
3
3
|
import { ElementType, MouseEventHandler, ReactElement, ReactNode } from "react";
|
|
4
4
|
import Link from "next/link";
|
|
@@ -17,7 +17,7 @@ declare const HiddenToggle: ({
|
|
|
17
17
|
defaultEnabled?: boolean;
|
|
18
18
|
children: any;
|
|
19
19
|
onChange: any;
|
|
20
|
-
}) =>
|
|
20
|
+
}) => _emotion_react_jsx_runtime2.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/Icon.d.ts
|
|
23
23
|
declare const Icon: ({
|
|
@@ -26,7 +26,7 @@ declare const Icon: ({
|
|
|
26
26
|
}: {
|
|
27
27
|
style?: {};
|
|
28
28
|
src: any;
|
|
29
|
-
}) =>
|
|
29
|
+
}) => _emotion_react_jsx_runtime2.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region src/SeeMore.d.ts
|
|
32
32
|
declare const defaultMessages: {
|
|
@@ -42,7 +42,7 @@ declare const SeeMore: ({
|
|
|
42
42
|
style?: CSSObject;
|
|
43
43
|
messages?: typeof defaultMessages;
|
|
44
44
|
children?: ReactNode;
|
|
45
|
-
}) =>
|
|
45
|
+
}) => _emotion_react_jsx_runtime2.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
//#region src/VideoItem.d.ts
|
|
48
48
|
type VideoDetail = {
|
|
@@ -106,6 +106,6 @@ declare const VideoThumbnail: ({
|
|
|
106
106
|
Image?: ElementType;
|
|
107
107
|
};
|
|
108
108
|
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
109
|
-
}) =>
|
|
109
|
+
}) => _emotion_react_jsx_runtime2.JSX.Element;
|
|
110
110
|
//#endregion
|
|
111
111
|
export { HiddenToggle, Icon, SeeMore, VideoItem, VideoThumbnail };
|
package/dist/index.mjs
CHANGED
|
@@ -249,18 +249,14 @@ const tagBaseStyles = {
|
|
|
249
249
|
fontSize: "10px",
|
|
250
250
|
wordBreak: "keep-all",
|
|
251
251
|
"> div": {
|
|
252
|
-
padding: "
|
|
252
|
+
padding: "0.3em 0.6em",
|
|
253
253
|
borderRadius: "2px",
|
|
254
254
|
fontWeight: 600,
|
|
255
255
|
background: "var(--tag-background)",
|
|
256
256
|
boxShadow: "0 2px 4px 0 rgba(0,0,0,0.25)",
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
padding: "2px 4px",
|
|
261
|
-
height: "11px",
|
|
262
|
-
lineHeight: "11px"
|
|
263
|
-
}
|
|
257
|
+
minHeight: "15px",
|
|
258
|
+
display: "flex",
|
|
259
|
+
alignItems: "center"
|
|
264
260
|
}
|
|
265
261
|
}
|
|
266
262
|
};
|
|
@@ -269,22 +265,10 @@ const tagBottomStyles = {
|
|
|
269
265
|
"--tag-color": "#000",
|
|
270
266
|
"--tag-background": "#fff"
|
|
271
267
|
};
|
|
272
|
-
const newTagStyles = {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
};
|
|
276
|
-
const onSaleTagStyles = {
|
|
277
|
-
width: "40px",
|
|
278
|
-
"@media (max-width: 600px)": { width: "28px" }
|
|
279
|
-
};
|
|
280
|
-
const freeTagStyles = {
|
|
281
|
-
width: "20px",
|
|
282
|
-
"@media (max-width: 600px)": { width: "14px" }
|
|
283
|
-
};
|
|
284
|
-
const megaTagStyles = {
|
|
285
|
-
width: "30px",
|
|
286
|
-
"@media (max-width: 600px)": { width: "21px" }
|
|
287
|
-
};
|
|
268
|
+
const newTagStyles = { minWidth: "26px" };
|
|
269
|
+
const onSaleTagStyles = { minWidth: "40px" };
|
|
270
|
+
const freeTagStyles = { minWidth: "20px" };
|
|
271
|
+
const megaTagStyles = { minWidth: "30px" };
|
|
288
272
|
const VideoThumbnail = ({ href, imageUrl, title, progress, topTags = [], bottomTags = [], children, slots = {}, onClick }) => {
|
|
289
273
|
const components = {
|
|
290
274
|
Link: "a",
|
|
@@ -376,13 +360,14 @@ const infoStyle = {
|
|
|
376
360
|
flex: "1",
|
|
377
361
|
minWidth: "0"
|
|
378
362
|
}
|
|
379
|
-
}
|
|
380
|
-
"@media (max-width: 600px)": { "> div:first-of-type > a > div:last-of-type > div": { fontSize: "7px" } }
|
|
363
|
+
}
|
|
381
364
|
};
|
|
365
|
+
const LINES_OF_TITLE = 2;
|
|
366
|
+
const LINES_OF_DESCRIPTION = 2;
|
|
382
367
|
const titleStyle = {
|
|
383
368
|
display: "-webkit-box",
|
|
384
369
|
WebkitBoxOrient: "vertical",
|
|
385
|
-
WebkitLineClamp:
|
|
370
|
+
WebkitLineClamp: LINES_OF_TITLE,
|
|
386
371
|
overflow: "hidden",
|
|
387
372
|
textOverflow: "ellipsis"
|
|
388
373
|
};
|
|
@@ -391,7 +376,7 @@ const descriptionStyle = {
|
|
|
391
376
|
display: "var(--description-display, -webkit-box)",
|
|
392
377
|
overflow: "hidden",
|
|
393
378
|
WebkitBoxOrient: "vertical",
|
|
394
|
-
WebkitLineClamp:
|
|
379
|
+
WebkitLineClamp: LINES_OF_DESCRIPTION,
|
|
395
380
|
color: "#ccc",
|
|
396
381
|
textOverflow: "ellipsis",
|
|
397
382
|
fontSize: "14px",
|
|
@@ -405,7 +390,7 @@ const descriptionStyle = {
|
|
|
405
390
|
const desktopDescriptionStyle = {
|
|
406
391
|
display: "var(--desktop-description-display, -webkit-box)",
|
|
407
392
|
margin: "0.75rem 0",
|
|
408
|
-
WebkitLineClamp:
|
|
393
|
+
WebkitLineClamp: LINES_OF_DESCRIPTION
|
|
409
394
|
};
|
|
410
395
|
const OptionalLink = ({ slots, href, children, ...rest }) => href ? /* @__PURE__ */ jsx(slots.Link, {
|
|
411
396
|
href,
|