@tipp/ui 1.6.4 → 1.6.6
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 +54 -20
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +11 -11
- package/dist/app/platform/edit-coaching-time.cjs +8 -5
- 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.map +1 -1
- package/dist/app/platform/edit-service-type.js +2 -2
- package/dist/app/platform/goal-manage-card-edit.cjs +7 -4
- 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.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +2 -2
- package/dist/app/platform/reservation-card.cjs +8 -5
- 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 +8 -5
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +4 -4
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +38 -12
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +4 -4
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +24 -9
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.d.cts +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.d.ts +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +2 -2
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +22 -9
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.d.cts +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.d.ts +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +2 -2
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +16 -9
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.d.cts +2 -1
- package/dist/app/platform/userInfos/session-user-info-detail.d.ts +2 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +2 -2
- package/dist/app/platform/userInfos/utils.cjs +8 -6
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.d.cts +12 -2
- package/dist/app/platform/userInfos/utils.d.ts +12 -2
- package/dist/app/platform/userInfos/utils.js +1 -1
- package/dist/chunk-2QBJJBBV.js +145 -0
- package/dist/chunk-2QBJJBBV.js.map +1 -0
- package/dist/chunk-373AW6HR.js +277 -0
- package/dist/chunk-373AW6HR.js.map +1 -0
- package/dist/chunk-5E6WM7Z4.js +64 -0
- package/dist/chunk-5E6WM7Z4.js.map +1 -0
- package/dist/chunk-7NXD7PLX.js +74 -0
- package/dist/chunk-7NXD7PLX.js.map +1 -0
- package/dist/chunk-AEHUSHES.js +145 -0
- package/dist/chunk-AEHUSHES.js.map +1 -0
- package/dist/chunk-AGURJ3T5.js +277 -0
- package/dist/chunk-AGURJ3T5.js.map +1 -0
- package/dist/chunk-BJ2HH4TJ.js +57 -0
- package/dist/chunk-BJ2HH4TJ.js.map +1 -0
- package/dist/chunk-C7XYI4HY.js +277 -0
- package/dist/chunk-C7XYI4HY.js.map +1 -0
- package/dist/chunk-EPZ2D427.js +145 -0
- package/dist/chunk-EPZ2D427.js.map +1 -0
- package/dist/chunk-EVCB4ZZJ.js +60 -0
- package/dist/chunk-EVCB4ZZJ.js.map +1 -0
- package/dist/chunk-FUTVSARU.js +145 -0
- package/dist/chunk-FUTVSARU.js.map +1 -0
- package/dist/chunk-GGXPZLTY.js +62 -0
- package/dist/chunk-GGXPZLTY.js.map +1 -0
- package/dist/chunk-HKRIJNY6.js +64 -0
- package/dist/chunk-HKRIJNY6.js.map +1 -0
- package/dist/chunk-IJSQS7YT.js +74 -0
- package/dist/chunk-IJSQS7YT.js.map +1 -0
- package/dist/chunk-LUE7QN3Z.js +192 -0
- package/dist/chunk-LUE7QN3Z.js.map +1 -0
- package/dist/chunk-MD2DWARX.js +64 -0
- package/dist/chunk-MD2DWARX.js.map +1 -0
- package/dist/chunk-NHFRCEK6.js +102 -0
- package/dist/chunk-NHFRCEK6.js.map +1 -0
- package/dist/chunk-NJWCZXWW.js +30 -0
- package/dist/chunk-NJWCZXWW.js.map +1 -0
- package/dist/chunk-R6BHSDHQ.js +145 -0
- package/dist/chunk-R6BHSDHQ.js.map +1 -0
- package/dist/chunk-RAUCQTT3.js +57 -0
- package/dist/chunk-RAUCQTT3.js.map +1 -0
- package/dist/chunk-SQKKAVI3.js +145 -0
- package/dist/chunk-SQKKAVI3.js.map +1 -0
- package/dist/chunk-TNJG6DRI.js +174 -0
- package/dist/chunk-TNJG6DRI.js.map +1 -0
- package/dist/chunk-TTIKEEMM.js +192 -0
- package/dist/chunk-TTIKEEMM.js.map +1 -0
- package/dist/chunk-UC5ZM5ZM.js +174 -0
- package/dist/chunk-UC5ZM5ZM.js.map +1 -0
- package/dist/chunk-UH3EXAIO.js +277 -0
- package/dist/chunk-UH3EXAIO.js.map +1 -0
- package/dist/chunk-V5EAAF36.js +30 -0
- package/dist/chunk-V5EAAF36.js.map +1 -0
- package/dist/chunk-VWVFUMDN.js +30 -0
- package/dist/chunk-VWVFUMDN.js.map +1 -0
- package/dist/chunk-ZUQARZ2L.js +74 -0
- package/dist/chunk-ZUQARZ2L.js.map +1 -0
- package/dist/index.cjs +54 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2000 -1996
- package/dist/index.css.map +1 -1
- package/dist/index.js +11 -11
- package/dist/molecules/date-picker/date-picker-button.cjs +7 -4
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +1 -1
- package/dist/molecules/index.cjs +8 -5
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +2 -2
- package/dist/molecules/time-select.cjs +1 -1
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +1 -1
- package/package.json +1 -1
- package/src/app/platform/userInfos/coaching-customer-info/large.tsx +15 -2
- package/src/app/platform/userInfos/coaching-customer-info/medium.tsx +17 -2
- package/src/app/platform/userInfos/session-user-info-detail.tsx +8 -2
- package/src/app/platform/userInfos/utils.tsx +24 -14
- package/src/molecules/date-picker/date-picker-button.tsx +7 -4
- package/src/molecules/time-select.tsx +3 -1
package/dist/index.cjs
CHANGED
|
@@ -2435,16 +2435,19 @@ function DatePickerButton(props) {
|
|
|
2435
2435
|
const buttonProps = (0, import_react26.useMemo)(() => {
|
|
2436
2436
|
const variant = "outline";
|
|
2437
2437
|
const color = "gray";
|
|
2438
|
-
return { size, color, variant };
|
|
2439
|
-
}, [size]);
|
|
2438
|
+
return { size, color, variant, disabled };
|
|
2439
|
+
}, [disabled, size]);
|
|
2440
2440
|
const selectFormat = (0, import_react26.useMemo)(() => {
|
|
2441
2441
|
if (formatProps)
|
|
2442
2442
|
return formatProps;
|
|
2443
2443
|
return (date) => date ? (0, import_date_fns.format)(date, "yyyy\uB144 MM\uC6D4 dd\uC77C") : placeholder;
|
|
2444
2444
|
}, [formatProps, placeholder]);
|
|
2445
2445
|
const className = (0, import_react26.useMemo)(() => {
|
|
2446
|
-
return (0, import_clsx.clsx)(
|
|
2447
|
-
|
|
2446
|
+
return (0, import_clsx.clsx)(
|
|
2447
|
+
"date-picker-button",
|
|
2448
|
+
(disabled || props.readOnly) && "disabled"
|
|
2449
|
+
);
|
|
2450
|
+
}, [disabled, props.readOnly]);
|
|
2448
2451
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes6.Box, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2449
2452
|
DatePicker,
|
|
2450
2453
|
__spreadProps(__spreadValues({
|
|
@@ -2560,7 +2563,7 @@ function TimeSelect(_a) {
|
|
|
2560
2563
|
return [getOptionValue(minTime, time), getOptionValue(maxTime, time)];
|
|
2561
2564
|
}, [maxTime, minTime, time]);
|
|
2562
2565
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Select.Root, __spreadProps(__spreadValues({ value }, rest), { children: [
|
|
2563
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes22.Flex, { direction: "column", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Select.Trigger, { placeholder: "- ", style: { minWidth: "100px" } }) }),
|
|
2566
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes22.Flex, { direction: "column", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Select.Trigger, { placeholder: "- ", style: { minWidth: "100px" }, children: value }) }),
|
|
2564
2567
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Select.Content, { children: timeOptions.map((option) => {
|
|
2565
2568
|
const visible = (!minOption || option >= minOption) && (!maxOption || option <= maxOption);
|
|
2566
2569
|
if (!visible) {
|
|
@@ -2913,27 +2916,29 @@ var sessionList = [
|
|
|
2913
2916
|
getValue: (session) => (session == null ? void 0 : session.expiredAt) ? (0, import_date_fns3.format)(session.expiredAt, "yyyy\uB144 MM\uC6D4 dd\uC77C") : "-"
|
|
2914
2917
|
}
|
|
2915
2918
|
];
|
|
2916
|
-
var renderItem = (
|
|
2919
|
+
var renderItem = (args) => {
|
|
2920
|
+
const { info, data, onClickCopy } = args;
|
|
2917
2921
|
const value = info.getValue(data);
|
|
2918
2922
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
|
|
2919
2923
|
info.render ? info.render(value) : value || "-",
|
|
2920
|
-
info.copyable && value ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CopyButton, { value }) : null
|
|
2924
|
+
info.copyable && value ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CopyButton, { onClickCopy, value }) : null
|
|
2921
2925
|
] });
|
|
2922
2926
|
};
|
|
2923
|
-
var renderDataListItem = (
|
|
2927
|
+
var renderDataListItem = (args) => {
|
|
2928
|
+
const { info, data, onClickCopy } = args;
|
|
2924
2929
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_themes15.DataList.Item, { children: [
|
|
2925
2930
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes15.DataList.Label, { children: info.label }),
|
|
2926
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes15.DataList.Value, { children: renderItem(info, data) })
|
|
2931
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes15.DataList.Value, { children: renderItem({ info, data, onClickCopy }) })
|
|
2927
2932
|
] }, info.label);
|
|
2928
2933
|
};
|
|
2929
2934
|
function CopyButton(props) {
|
|
2935
|
+
const { value, onClickCopy } = props;
|
|
2930
2936
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2931
2937
|
Button,
|
|
2932
2938
|
{
|
|
2933
2939
|
color: "gray",
|
|
2934
2940
|
onClick: () => {
|
|
2935
|
-
|
|
2936
|
-
import_react_toastify2.toast.success("\uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
2941
|
+
onClickCopy(value);
|
|
2937
2942
|
},
|
|
2938
2943
|
style: { marginLeft: "0", marginTop: "0" },
|
|
2939
2944
|
variant: "transparent",
|
|
@@ -2948,7 +2953,8 @@ function CoachingCustomerInfoMedium({
|
|
|
2948
2953
|
customer,
|
|
2949
2954
|
session,
|
|
2950
2955
|
children,
|
|
2951
|
-
badge
|
|
2956
|
+
badge,
|
|
2957
|
+
onClickCopy
|
|
2952
2958
|
}) {
|
|
2953
2959
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
2954
2960
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_themes6.Box, { children: [
|
|
@@ -2959,13 +2965,23 @@ function CoachingCustomerInfoMedium({
|
|
|
2959
2965
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
2960
2966
|
] }),
|
|
2961
2967
|
children,
|
|
2962
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes15.DataList.Root, { orientation: "vertical", children: sessionList.map(
|
|
2968
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes15.DataList.Root, { orientation: "vertical", children: sessionList.map(
|
|
2969
|
+
(el) => renderDataListItem({
|
|
2970
|
+
info: el,
|
|
2971
|
+
data: session,
|
|
2972
|
+
onClickCopy
|
|
2973
|
+
})
|
|
2974
|
+
) }) }),
|
|
2963
2975
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", children: [
|
|
2964
2976
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Heading2, { variant: "heading5", children: "\uACE0\uAC1D \uC815\uBCF4" }),
|
|
2965
2977
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes39.Separator, { size: "4" })
|
|
2966
2978
|
] }),
|
|
2967
2979
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes22.Flex, { direction: "column", gap: "4", children: infoList.map((el) => {
|
|
2968
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Typo, { children: renderItem(
|
|
2980
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Typo, { children: renderItem({
|
|
2981
|
+
info: el,
|
|
2982
|
+
data: customer,
|
|
2983
|
+
onClickCopy
|
|
2984
|
+
}) }, el.label);
|
|
2969
2985
|
}) })
|
|
2970
2986
|
] });
|
|
2971
2987
|
}
|
|
@@ -2976,7 +2992,8 @@ function CoachingCustomerInfoLarge({
|
|
|
2976
2992
|
customer,
|
|
2977
2993
|
session,
|
|
2978
2994
|
children,
|
|
2979
|
-
badge
|
|
2995
|
+
badge,
|
|
2996
|
+
onClickCopy
|
|
2980
2997
|
}) {
|
|
2981
2998
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
2982
2999
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_themes6.Box, { children: [
|
|
@@ -2987,9 +3004,21 @@ function CoachingCustomerInfoLarge({
|
|
|
2987
3004
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
2988
3005
|
] }),
|
|
2989
3006
|
children,
|
|
2990
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
3007
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
3008
|
+
(el) => renderDataListItem({
|
|
3009
|
+
info: el,
|
|
3010
|
+
data: session,
|
|
3011
|
+
onClickCopy
|
|
3012
|
+
})
|
|
3013
|
+
) }) }),
|
|
2991
3014
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes39.Separator, { size: "4" }),
|
|
2992
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
3015
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
3016
|
+
(info) => renderDataListItem({
|
|
3017
|
+
info,
|
|
3018
|
+
data: customer,
|
|
3019
|
+
onClickCopy
|
|
3020
|
+
})
|
|
3021
|
+
) })
|
|
2993
3022
|
] });
|
|
2994
3023
|
}
|
|
2995
3024
|
|
|
@@ -3825,11 +3854,16 @@ function SectionWrapper({
|
|
|
3825
3854
|
}
|
|
3826
3855
|
function SessionUserInfoDetail({
|
|
3827
3856
|
customer,
|
|
3828
|
-
session
|
|
3857
|
+
session,
|
|
3858
|
+
onClickCopy
|
|
3829
3859
|
}) {
|
|
3830
3860
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes22.Flex, { direction: "column", gap: "6", children: [
|
|
3831
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SectionWrapper, { title: "\uC138\uC158 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
3832
|
-
|
|
3861
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SectionWrapper, { title: "\uC138\uC158 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
|
|
3862
|
+
(info) => renderDataListItem({ info, data: session, onClickCopy })
|
|
3863
|
+
) }) }),
|
|
3864
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SectionWrapper, { title: "\uD68C\uC6D0 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes15.DataList.Root, { children: infoList.map(
|
|
3865
|
+
(info) => renderDataListItem({ info, data: customer, onClickCopy })
|
|
3866
|
+
) }) })
|
|
3833
3867
|
] });
|
|
3834
3868
|
}
|
|
3835
3869
|
|