@tipp/ui 2.1.11 → 2.1.13
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/app/index.cjs +6 -2
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +6 -6
- package/dist/app/platform/edit-coaching-time.cjs +6 -2
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +3 -3
- package/dist/app/platform/edit-service-type.cjs +6 -2
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +2 -2
- package/dist/app/platform/goal-manage-card-edit.cjs +6 -2
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +3 -3
- package/dist/app/platform/on-offline-radio-card.cjs +6 -2
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +2 -2
- package/dist/app/platform/reservation-card.cjs +6 -2
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +3 -3
- package/dist/app/platform/session-card.cjs +6 -2
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +4 -4
- package/dist/chunk-272SVEVK.js +99 -0
- package/dist/chunk-272SVEVK.js.map +1 -0
- package/dist/chunk-2QHYHYOH.js +68 -0
- package/dist/chunk-2QHYHYOH.js.map +1 -0
- package/dist/chunk-2T3SJQ5W.js +106 -0
- package/dist/chunk-2T3SJQ5W.js.map +1 -0
- package/dist/chunk-3ABAJBF6.js +174 -0
- package/dist/chunk-3ABAJBF6.js.map +1 -0
- package/dist/chunk-3XFOF3P6.js +145 -0
- package/dist/chunk-3XFOF3P6.js.map +1 -0
- package/dist/chunk-5L7ADMNQ.js +101 -0
- package/dist/chunk-5L7ADMNQ.js.map +1 -0
- package/dist/chunk-5MTK47G7.js +51 -0
- package/dist/chunk-5MTK47G7.js.map +1 -0
- package/dist/chunk-5P3UGK5S.js +100 -0
- package/dist/chunk-5P3UGK5S.js.map +1 -0
- package/dist/chunk-5ZR6SNEF.js +58 -0
- package/dist/chunk-5ZR6SNEF.js.map +1 -0
- package/dist/chunk-66XDJVNJ.js +63 -0
- package/dist/chunk-66XDJVNJ.js.map +1 -0
- package/dist/chunk-6JB42O3E.js +30 -0
- package/dist/chunk-6JB42O3E.js.map +1 -0
- package/dist/chunk-6L3XLHEB.js +63 -0
- package/dist/chunk-6L3XLHEB.js.map +1 -0
- package/dist/chunk-6NUDEDDU.js +89 -0
- package/dist/chunk-6NUDEDDU.js.map +1 -0
- package/dist/chunk-AHRILO6J.js +123 -0
- package/dist/chunk-AHRILO6J.js.map +1 -0
- package/dist/chunk-AHYF4NCS.js +144 -0
- package/dist/chunk-AHYF4NCS.js.map +1 -0
- package/dist/chunk-AMSDV646.js +30 -0
- package/dist/chunk-AMSDV646.js.map +1 -0
- package/dist/chunk-AXHMMU4R.js +87 -0
- package/dist/chunk-AXHMMU4R.js.map +1 -0
- package/dist/chunk-BL7RXYYU.js +144 -0
- package/dist/chunk-BL7RXYYU.js.map +1 -0
- package/dist/chunk-C5HIFNI4.js +100 -0
- package/dist/chunk-C5HIFNI4.js.map +1 -0
- package/dist/chunk-CGYO5O3X.js +63 -0
- package/dist/chunk-CGYO5O3X.js.map +1 -0
- package/dist/chunk-CLVBFR35.js +144 -0
- package/dist/chunk-CLVBFR35.js.map +1 -0
- package/dist/chunk-CR6B7WOM.js +59 -0
- package/dist/chunk-CR6B7WOM.js.map +1 -0
- package/dist/chunk-E3I72BZH.js +281 -0
- package/dist/chunk-E3I72BZH.js.map +1 -0
- package/dist/chunk-EMKJBAAL.js +61 -0
- package/dist/chunk-EMKJBAAL.js.map +1 -0
- package/dist/chunk-F435SNXP.js +174 -0
- package/dist/chunk-F435SNXP.js.map +1 -0
- package/dist/chunk-F4TTKVSG.js +163 -0
- package/dist/chunk-F4TTKVSG.js.map +1 -0
- package/dist/chunk-FGRU3EIV.js +79 -0
- package/dist/chunk-FGRU3EIV.js.map +1 -0
- package/dist/chunk-FTZWRQEF.js +146 -0
- package/dist/chunk-FTZWRQEF.js.map +1 -0
- package/dist/chunk-GNAQWCEF.js +57 -0
- package/dist/chunk-GNAQWCEF.js.map +1 -0
- package/dist/chunk-GQSWLYEZ.js +354 -0
- package/dist/chunk-GQSWLYEZ.js.map +1 -0
- package/dist/chunk-HXATOFB3.js +49 -0
- package/dist/chunk-HXATOFB3.js.map +1 -0
- package/dist/chunk-I336R4EU.js +144 -0
- package/dist/chunk-I336R4EU.js.map +1 -0
- package/dist/chunk-I4RCGM3V.js +45 -0
- package/dist/chunk-I4RCGM3V.js.map +1 -0
- package/dist/chunk-JS7APZKZ.js +145 -0
- package/dist/chunk-JS7APZKZ.js.map +1 -0
- package/dist/chunk-KVIS422J.js +97 -0
- package/dist/chunk-KVIS422J.js.map +1 -0
- package/dist/chunk-KW5AAOP4.js +63 -0
- package/dist/chunk-KW5AAOP4.js.map +1 -0
- package/dist/chunk-LE4NPHRE.js +174 -0
- package/dist/chunk-LE4NPHRE.js.map +1 -0
- package/dist/chunk-MFP3KIMZ.js +144 -0
- package/dist/chunk-MFP3KIMZ.js.map +1 -0
- package/dist/chunk-MGFSQES6.js +37 -0
- package/dist/chunk-MGFSQES6.js.map +1 -0
- package/dist/chunk-MH23UOEF.js +70 -0
- package/dist/chunk-MH23UOEF.js.map +1 -0
- package/dist/chunk-N5CGF54T.js +39 -0
- package/dist/chunk-N5CGF54T.js.map +1 -0
- package/dist/chunk-NAKRSJ4F.js +74 -0
- package/dist/chunk-NAKRSJ4F.js.map +1 -0
- package/dist/chunk-NEYYU5JN.js +98 -0
- package/dist/chunk-NEYYU5JN.js.map +1 -0
- package/dist/chunk-NW7TGQZ2.js +89 -0
- package/dist/chunk-NW7TGQZ2.js.map +1 -0
- package/dist/chunk-OQOIQKCM.js +63 -0
- package/dist/chunk-OQOIQKCM.js.map +1 -0
- package/dist/chunk-QDJGBHNB.js +100 -0
- package/dist/chunk-QDJGBHNB.js.map +1 -0
- package/dist/chunk-RUS5UD7I.js +281 -0
- package/dist/chunk-RUS5UD7I.js.map +1 -0
- package/dist/chunk-RVOVDNXX.js +145 -0
- package/dist/chunk-RVOVDNXX.js.map +1 -0
- package/dist/chunk-SHQYDX4F.js +174 -0
- package/dist/chunk-SHQYDX4F.js.map +1 -0
- package/dist/chunk-SYCDLLRU.js +150 -0
- package/dist/chunk-SYCDLLRU.js.map +1 -0
- package/dist/chunk-T2VLRU4V.js +63 -0
- package/dist/chunk-T2VLRU4V.js.map +1 -0
- package/dist/chunk-T33KYNAK.js +281 -0
- package/dist/chunk-T33KYNAK.js.map +1 -0
- package/dist/chunk-TUIIM4LO.js +165 -0
- package/dist/chunk-TUIIM4LO.js.map +1 -0
- package/dist/chunk-U27TQRZO.js +281 -0
- package/dist/chunk-U27TQRZO.js.map +1 -0
- package/dist/chunk-UA57EWPF.js +145 -0
- package/dist/chunk-UA57EWPF.js.map +1 -0
- package/dist/chunk-ULFIOPOJ.js +43 -0
- package/dist/chunk-ULFIOPOJ.js.map +1 -0
- package/dist/chunk-UY5VLRIY.js +281 -0
- package/dist/chunk-UY5VLRIY.js.map +1 -0
- package/dist/chunk-W6EK6JO5.js +54 -0
- package/dist/chunk-W6EK6JO5.js.map +1 -0
- package/dist/chunk-WDIV3GWZ.js +145 -0
- package/dist/chunk-WDIV3GWZ.js.map +1 -0
- package/dist/chunk-WFUVR54M.js +69 -0
- package/dist/chunk-WFUVR54M.js.map +1 -0
- package/dist/chunk-XSYTLY7Q.js +63 -0
- package/dist/chunk-XSYTLY7Q.js.map +1 -0
- package/dist/chunk-ZS6XGXJT.js +117 -0
- package/dist/chunk-ZS6XGXJT.js.map +1 -0
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +6 -6
- package/dist/molecules/date-picker/date-picker-button.cjs +6 -2
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +2 -2
- package/dist/molecules/date-picker/index.cjs +6 -2
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +1 -1
- package/dist/molecules/index.cjs +6 -2
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +2 -2
- package/package.json +2 -2
- package/src/molecules/date-picker/index.tsx +6 -2
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DatePicker
|
|
3
|
+
} from "./chunk-QDJGBHNB.js";
|
|
4
|
+
import {
|
|
5
|
+
Box
|
|
6
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
7
|
+
import {
|
|
8
|
+
Button
|
|
9
|
+
} from "./chunk-AFPH32MF.js";
|
|
10
|
+
import {
|
|
11
|
+
Flex
|
|
12
|
+
} from "./chunk-25HMMI7R.js";
|
|
13
|
+
import {
|
|
14
|
+
CalendarIcon
|
|
15
|
+
} from "./chunk-53ZVUOHV.js";
|
|
16
|
+
import {
|
|
17
|
+
__objRest,
|
|
18
|
+
__spreadProps,
|
|
19
|
+
__spreadValues
|
|
20
|
+
} from "./chunk-2NMEKWO5.js";
|
|
21
|
+
|
|
22
|
+
// src/molecules/date-picker/date-picker-button.tsx
|
|
23
|
+
import { useMemo } from "react";
|
|
24
|
+
import { format } from "date-fns";
|
|
25
|
+
import { clsx } from "clsx";
|
|
26
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
27
|
+
function DatePickerButton(props) {
|
|
28
|
+
const _a = props, { size, placeholder, format: formatProps, disabled } = _a, rest = __objRest(_a, ["size", "placeholder", "format", "disabled"]);
|
|
29
|
+
const buttonProps = useMemo(() => {
|
|
30
|
+
const variant = "outline";
|
|
31
|
+
const color = "gray";
|
|
32
|
+
return { size, color, variant, disabled };
|
|
33
|
+
}, [disabled, size]);
|
|
34
|
+
const selectFormat = useMemo(() => {
|
|
35
|
+
if (formatProps) return formatProps;
|
|
36
|
+
return (date) => {
|
|
37
|
+
return date ? format(date, "yyyy\uB144 MM\uC6D4 dd\uC77C") : placeholder;
|
|
38
|
+
};
|
|
39
|
+
}, [formatProps, placeholder]);
|
|
40
|
+
const className = useMemo(() => {
|
|
41
|
+
return clsx(
|
|
42
|
+
"date-picker-button",
|
|
43
|
+
(disabled || props.readOnly) && "disabled"
|
|
44
|
+
);
|
|
45
|
+
}, [disabled, props.readOnly]);
|
|
46
|
+
return /* @__PURE__ */ jsx(Box, { p: "0", width: "100%", children: /* @__PURE__ */ jsx(
|
|
47
|
+
DatePicker,
|
|
48
|
+
__spreadProps(__spreadValues({
|
|
49
|
+
customInput: /* @__PURE__ */ jsx(Button, __spreadProps(__spreadValues({ className, type: "button" }, buttonProps), { children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", justify: "between", width: "100%", children: [
|
|
50
|
+
rest.selected ? selectFormat(rest.selected) : placeholder,
|
|
51
|
+
/* @__PURE__ */ jsx(CalendarIcon, {})
|
|
52
|
+
] }) })),
|
|
53
|
+
wrapperClassName: "full-width"
|
|
54
|
+
}, rest), {
|
|
55
|
+
disabled
|
|
56
|
+
})
|
|
57
|
+
) });
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
DatePickerButton
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=chunk-XSYTLY7Q.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/date-picker/date-picker-button.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { format } from 'date-fns';\nimport { clsx } from 'clsx';\nimport type { ButtonProps } from '../../atoms';\nimport { Box, Button, Flex } from '../../atoms';\nimport { CalendarIcon } from '../../icon';\nimport type { DatePickerProps } from '.';\nimport { DatePicker } from '.';\n\nexport type DatePickerButtonProps = DatePickerProps & {\n placeholder?: React.ReactNode;\n format?: (date: Date) => string;\n size?: ButtonProps['size'];\n};\n\nexport function DatePickerButton(\n props: DatePickerButtonProps\n): React.ReactNode {\n const { size, placeholder, format: formatProps, disabled, ...rest } = props;\n\n const buttonProps = useMemo(() => {\n const variant: ButtonProps['variant'] = 'outline';\n const color: ButtonProps['color'] = 'gray';\n return { size, color, variant, disabled };\n }, [disabled, size]);\n\n const selectFormat = useMemo(() => {\n if (formatProps) return formatProps;\n return (date?: Date) => {\n return date ? format(date, 'yyyy년 MM월 dd일') : placeholder;\n };\n }, [formatProps, placeholder]);\n\n const className = useMemo(() => {\n return clsx(\n 'date-picker-button',\n (disabled || props.readOnly) && 'disabled'\n );\n }, [disabled, props.readOnly]);\n\n return (\n <Box p=\"0\" width=\"100%\">\n <DatePicker\n customInput={\n <Button className={className} type=\"button\" {...buttonProps}>\n <Flex align=\"center\" gap=\"3\" justify=\"between\" width=\"100%\">\n {rest.selected ? selectFormat(rest.selected) : placeholder}\n <CalendarIcon />\n </Flex>\n </Button>\n }\n wrapperClassName=\"full-width\"\n {...rest}\n disabled={disabled}\n />\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,eAAe;AAC/B,SAAS,cAAc;AACvB,SAAS,YAAY;AA2CT,SAEE,KAFF;AA9BL,SAAS,iBACd,OACiB;AACjB,QAAsE,YAA9D,QAAM,aAAa,QAAQ,aAAa,SAlBlD,IAkBwE,IAAT,iBAAS,IAAT,CAArD,QAAM,eAAa,UAAqB;AAEhD,QAAM,cAAc,QAAQ,MAAM;AAChC,UAAM,UAAkC;AACxC,UAAM,QAA8B;AACpC,WAAO,EAAE,MAAM,OAAO,SAAS,SAAS;AAAA,EAC1C,GAAG,CAAC,UAAU,IAAI,CAAC;AAEnB,QAAM,eAAe,QAAQ,MAAM;AACjC,QAAI,YAAa,QAAO;AACxB,WAAO,CAAC,SAAgB;AACtB,aAAO,OAAO,OAAO,MAAM,8BAAe,IAAI;AAAA,IAChD;AAAA,EACF,GAAG,CAAC,aAAa,WAAW,CAAC;AAE7B,QAAM,YAAY,QAAQ,MAAM;AAC9B,WAAO;AAAA,MACL;AAAA,OACC,YAAY,MAAM,aAAa;AAAA,IAClC;AAAA,EACF,GAAG,CAAC,UAAU,MAAM,QAAQ,CAAC;AAE7B,SACE,oBAAC,OAAI,GAAE,KAAI,OAAM,QACf;AAAA,IAAC;AAAA;AAAA,MACC,aACE,oBAAC,uCAAO,WAAsB,MAAK,YAAa,cAA/C,EACC,+BAAC,QAAK,OAAM,UAAS,KAAI,KAAI,SAAQ,WAAU,OAAM,QAClD;AAAA,aAAK,WAAW,aAAa,KAAK,QAAQ,IAAI;AAAA,QAC/C,oBAAC,gBAAa;AAAA,SAChB,IACF;AAAA,MAEF,kBAAiB;AAAA,OACb,OAVL;AAAA,MAWC;AAAA;AAAA,EACF,GACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Skeleton
|
|
3
|
+
} from "./chunk-5H3YPCZK.js";
|
|
4
|
+
import {
|
|
5
|
+
Inset
|
|
6
|
+
} from "./chunk-XQOL7UBI.js";
|
|
7
|
+
import {
|
|
8
|
+
DropdownMenu
|
|
9
|
+
} from "./chunk-HYE34QEM.js";
|
|
10
|
+
import {
|
|
11
|
+
Card
|
|
12
|
+
} from "./chunk-HEDMSFPW.js";
|
|
13
|
+
import {
|
|
14
|
+
Grid
|
|
15
|
+
} from "./chunk-EGEQY3KT.js";
|
|
16
|
+
import {
|
|
17
|
+
Typo
|
|
18
|
+
} from "./chunk-LH57PIY2.js";
|
|
19
|
+
import {
|
|
20
|
+
Heading
|
|
21
|
+
} from "./chunk-3IT3NVK6.js";
|
|
22
|
+
import {
|
|
23
|
+
Box
|
|
24
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
25
|
+
import {
|
|
26
|
+
Button
|
|
27
|
+
} from "./chunk-AFPH32MF.js";
|
|
28
|
+
import {
|
|
29
|
+
Flex
|
|
30
|
+
} from "./chunk-25HMMI7R.js";
|
|
31
|
+
import {
|
|
32
|
+
DotsVerticalIcon
|
|
33
|
+
} from "./chunk-53ZVUOHV.js";
|
|
34
|
+
|
|
35
|
+
// src/app/platform/contents-card.tsx
|
|
36
|
+
import { forwardRef } from "react";
|
|
37
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
38
|
+
var ContentsCard = forwardRef(
|
|
39
|
+
({
|
|
40
|
+
title,
|
|
41
|
+
description,
|
|
42
|
+
imageSrc,
|
|
43
|
+
footer,
|
|
44
|
+
dropdownItems,
|
|
45
|
+
onClickCard,
|
|
46
|
+
isLoading = false
|
|
47
|
+
}, ref) => {
|
|
48
|
+
return /* @__PURE__ */ jsxs(
|
|
49
|
+
Card,
|
|
50
|
+
{
|
|
51
|
+
onClick: onClickCard,
|
|
52
|
+
ref,
|
|
53
|
+
style: {
|
|
54
|
+
height: "100%",
|
|
55
|
+
width: "100%",
|
|
56
|
+
display: "grid",
|
|
57
|
+
cursor: "pointer",
|
|
58
|
+
maxHeight: "450px"
|
|
59
|
+
},
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ jsx(Inset, { clip: "padding-box", pb: "0", side: "top", children: /* @__PURE__ */ jsx(Skeleton, { loading: isLoading, children: /* @__PURE__ */ jsx(
|
|
62
|
+
Box,
|
|
63
|
+
{
|
|
64
|
+
height: "210px",
|
|
65
|
+
style: {
|
|
66
|
+
backgroundImage: `url(${imageSrc})`,
|
|
67
|
+
backgroundSize: "cover",
|
|
68
|
+
backgroundPosition: "center"
|
|
69
|
+
},
|
|
70
|
+
width: "100%"
|
|
71
|
+
}
|
|
72
|
+
) }) }),
|
|
73
|
+
/* @__PURE__ */ jsxs(Flex, { direction: "column", p: "4", pb: "3", children: [
|
|
74
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
75
|
+
/* @__PURE__ */ jsx(Skeleton, { loading: isLoading, children: /* @__PURE__ */ jsx(Heading, { mb: "3", variant: "heading5", children: title }) }),
|
|
76
|
+
/* @__PURE__ */ jsx(Skeleton, { loading: isLoading, children: /* @__PURE__ */ jsx(Typo, { as: "p", variant: "caption", children: description }) })
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ jsxs(
|
|
79
|
+
Grid,
|
|
80
|
+
{
|
|
81
|
+
align: "center",
|
|
82
|
+
columns: "1fr auto",
|
|
83
|
+
justify: "between",
|
|
84
|
+
pt: "2",
|
|
85
|
+
style: { marginTop: "auto" },
|
|
86
|
+
width: "100%",
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ jsx(Skeleton, { loading: isLoading, children: /* @__PURE__ */ jsx(Flex, { gap: "3", overflow: "hidden", children: footer }) }),
|
|
89
|
+
Boolean(dropdownItems == null ? void 0 : dropdownItems.length) && /* @__PURE__ */ jsxs(DropdownMenu.Root, { children: [
|
|
90
|
+
/* @__PURE__ */ jsx(DropdownMenu.Trigger, { children: /* @__PURE__ */ jsx(Button, { size: "large", variant: "transparent", children: /* @__PURE__ */ jsx(DotsVerticalIcon, { color: "gray", height: "20px", width: "20px" }) }) }),
|
|
91
|
+
/* @__PURE__ */ jsx(DropdownMenu.Content, { children: dropdownItems == null ? void 0 : dropdownItems.map((item) => /* @__PURE__ */ jsx(
|
|
92
|
+
DropdownMenu.Item,
|
|
93
|
+
{
|
|
94
|
+
onClick: (e) => {
|
|
95
|
+
e.stopPropagation();
|
|
96
|
+
item.onClick();
|
|
97
|
+
},
|
|
98
|
+
children: item.label
|
|
99
|
+
},
|
|
100
|
+
item.label
|
|
101
|
+
)) })
|
|
102
|
+
] })
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
] })
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
ContentsCard.displayName = "ContentsCard";
|
|
113
|
+
|
|
114
|
+
export {
|
|
115
|
+
ContentsCard
|
|
116
|
+
};
|
|
117
|
+
//# sourceMappingURL=chunk-ZS6XGXJT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/contents-card.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport { Heading } from '@/atoms/heading';\nimport { Button } from '@/atoms/button';\nimport { DropdownMenu } from '@/atoms/dropdown-menu';\nimport { Box } from '@/atoms/box';\nimport { Flex } from '@/atoms/flex';\nimport { Grid } from '@/atoms/grid';\nimport { Skeleton } from '@/atoms/skeleton';\nimport { Typo } from '@/atoms/typo';\nimport { DotsVerticalIcon } from '@/icon';\nimport { Card, Inset } from '@/atoms';\n\nexport interface ContentsCardProps {\n title?: React.ReactNode;\n description?: string;\n id?: string;\n imageSrc?: string | null;\n imageAlt?: string;\n footer?: React.ReactNode;\n dropdownItems?: {\n label: string;\n onClick: () => void;\n }[];\n onClickCard?: () => void;\n isLoading?: boolean;\n}\n\nexport const ContentsCard = forwardRef<HTMLDivElement, ContentsCardProps>(\n (\n {\n title,\n description,\n imageSrc,\n footer,\n dropdownItems,\n onClickCard,\n isLoading = false,\n },\n ref\n ): React.ReactNode => {\n return (\n <Card\n onClick={onClickCard}\n ref={ref}\n style={{\n height: '100%',\n width: '100%',\n display: 'grid',\n cursor: 'pointer',\n maxHeight: '450px',\n }}\n >\n {/* 섬네일 */}\n <Inset clip=\"padding-box\" pb=\"0\" side=\"top\">\n <Skeleton loading={isLoading}>\n <Box\n height=\"210px\"\n style={{\n backgroundImage: `url(${imageSrc})`,\n backgroundSize: 'cover',\n backgroundPosition: 'center',\n }}\n width=\"100%\"\n />\n </Skeleton>\n </Inset>\n {/* 제목, 설명 */}\n <Flex direction=\"column\" p=\"4\" pb=\"3\">\n <Box>\n <Skeleton loading={isLoading}>\n <Heading mb=\"3\" variant=\"heading5\">\n {title}\n </Heading>\n </Skeleton>\n <Skeleton loading={isLoading}>\n <Typo as=\"p\" variant=\"caption\">\n {description}\n </Typo>\n </Skeleton>\n </Box>\n <Grid\n align=\"center\"\n columns=\"1fr auto\"\n justify=\"between\"\n pt=\"2\"\n style={{ marginTop: 'auto' }}\n width=\"100%\"\n >\n <Skeleton loading={isLoading}>\n <Flex gap=\"3\" overflow=\"hidden\">\n {footer}\n </Flex>\n </Skeleton>\n {Boolean(dropdownItems?.length) && (\n <DropdownMenu.Root>\n <DropdownMenu.Trigger>\n <Button size=\"large\" variant=\"transparent\">\n <DotsVerticalIcon color=\"gray\" height=\"20px\" width=\"20px\" />\n </Button>\n </DropdownMenu.Trigger>\n <DropdownMenu.Content>\n {dropdownItems?.map((item) => (\n <DropdownMenu.Item\n key={item.label}\n onClick={(e) => {\n e.stopPropagation();\n item.onClick();\n }}\n >\n {item.label}\n </DropdownMenu.Item>\n ))}\n </DropdownMenu.Content>\n </DropdownMenu.Root>\n )}\n </Grid>\n </Flex>\n </Card>\n );\n }\n);\nContentsCard.displayName = 'ContentsCard';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,kBAAkB;AAuDtB,cAaF,YAbE;AA5BL,IAAM,eAAe;AAAA,EAC1B,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY;AAAA,EACd,GACA,QACoB;AACpB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,SAAS;AAAA,QACT;AAAA,QACA,OAAO;AAAA,UACL,QAAQ;AAAA,UACR,OAAO;AAAA,UACP,SAAS;AAAA,UACT,QAAQ;AAAA,UACR,WAAW;AAAA,QACb;AAAA,QAGA;AAAA,8BAAC,SAAM,MAAK,eAAc,IAAG,KAAI,MAAK,OACpC,8BAAC,YAAS,SAAS,WACjB;AAAA,YAAC;AAAA;AAAA,cACC,QAAO;AAAA,cACP,OAAO;AAAA,gBACL,iBAAiB,OAAO,QAAQ;AAAA,gBAChC,gBAAgB;AAAA,gBAChB,oBAAoB;AAAA,cACtB;AAAA,cACA,OAAM;AAAA;AAAA,UACR,GACF,GACF;AAAA,UAEA,qBAAC,QAAK,WAAU,UAAS,GAAE,KAAI,IAAG,KAChC;AAAA,iCAAC,OACC;AAAA,kCAAC,YAAS,SAAS,WACjB,8BAAC,WAAQ,IAAG,KAAI,SAAQ,YACrB,iBACH,GACF;AAAA,cACA,oBAAC,YAAS,SAAS,WACjB,8BAAC,QAAK,IAAG,KAAI,SAAQ,WAClB,uBACH,GACF;AAAA,eACF;AAAA,YACA;AAAA,cAAC;AAAA;AAAA,gBACC,OAAM;AAAA,gBACN,SAAQ;AAAA,gBACR,SAAQ;AAAA,gBACR,IAAG;AAAA,gBACH,OAAO,EAAE,WAAW,OAAO;AAAA,gBAC3B,OAAM;AAAA,gBAEN;AAAA,sCAAC,YAAS,SAAS,WACjB,8BAAC,QAAK,KAAI,KAAI,UAAS,UACpB,kBACH,GACF;AAAA,kBACC,QAAQ,+CAAe,MAAM,KAC5B,qBAAC,aAAa,MAAb,EACC;AAAA,wCAAC,aAAa,SAAb,EACC,8BAAC,UAAO,MAAK,SAAQ,SAAQ,eAC3B,8BAAC,oBAAiB,OAAM,QAAO,QAAO,QAAO,OAAM,QAAO,GAC5D,GACF;AAAA,oBACA,oBAAC,aAAa,SAAb,EACE,yDAAe,IAAI,CAAC,SACnB;AAAA,sBAAC,aAAa;AAAA,sBAAb;AAAA,wBAEC,SAAS,CAAC,MAAM;AACd,4BAAE,gBAAgB;AAClB,+BAAK,QAAQ;AAAA,wBACf;AAAA,wBAEC,eAAK;AAAA;AAAA,sBAND,KAAK;AAAA,oBAOZ,IAEJ;AAAA,qBACF;AAAA;AAAA;AAAA,YAEJ;AAAA,aACF;AAAA;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AACA,aAAa,cAAc;","names":[]}
|
package/dist/index.cjs
CHANGED
|
@@ -2150,6 +2150,7 @@ function Navigation({
|
|
|
2150
2150
|
// src/molecules/date-picker/index.tsx
|
|
2151
2151
|
var import_react22 = require("react");
|
|
2152
2152
|
var import_react_datepicker = __toESM(require("react-datepicker"), 1);
|
|
2153
|
+
var import_locale = require("date-fns/locale");
|
|
2153
2154
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2154
2155
|
var DatePicker = (0, import_react22.forwardRef)(
|
|
2155
2156
|
(props, ref) => {
|
|
@@ -2158,14 +2159,17 @@ var DatePicker = (0, import_react22.forwardRef)(
|
|
|
2158
2159
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_themes22.Flex, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2159
2160
|
import_react_datepicker.default,
|
|
2160
2161
|
__spreadProps(__spreadValues({
|
|
2161
|
-
dateFormat: "
|
|
2162
|
+
dateFormat: "yyyy/MM/dd h:mm aa",
|
|
2163
|
+
locale: import_locale.ko,
|
|
2162
2164
|
nextMonthButtonLabel: "\uB2E4\uC74C \uB2EC",
|
|
2163
|
-
placeholderText: "YYYY/mm/
|
|
2165
|
+
placeholderText: "YYYY/MM/DD hh:mm AM/PM",
|
|
2164
2166
|
popperProps: { strategy: "fixed" },
|
|
2165
2167
|
previousMonthButtonLabel: "\uC774\uC804 \uB2EC",
|
|
2166
2168
|
ref,
|
|
2167
2169
|
renderCustomHeader,
|
|
2168
2170
|
showPopperArrow: false,
|
|
2171
|
+
showTimeSelect: true,
|
|
2172
|
+
timeFormat: "h:mm aa",
|
|
2169
2173
|
timeIntervals: 10
|
|
2170
2174
|
}, rest), {
|
|
2171
2175
|
calendarClassName: `tipp_datePicker_calendar ${rest.calendarClassName || ""}`,
|