@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.
Files changed (119) hide show
  1. package/dist/app/index.cjs +54 -20
  2. package/dist/app/index.cjs.map +1 -1
  3. package/dist/app/index.js +11 -11
  4. package/dist/app/platform/edit-coaching-time.cjs +8 -5
  5. package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
  6. package/dist/app/platform/edit-coaching-time.js +3 -3
  7. package/dist/app/platform/edit-service-type.cjs.map +1 -1
  8. package/dist/app/platform/edit-service-type.js +2 -2
  9. package/dist/app/platform/goal-manage-card-edit.cjs +7 -4
  10. package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
  11. package/dist/app/platform/goal-manage-card-edit.js +3 -3
  12. package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
  13. package/dist/app/platform/on-offline-radio-card.js +2 -2
  14. package/dist/app/platform/reservation-card.cjs +8 -5
  15. package/dist/app/platform/reservation-card.cjs.map +1 -1
  16. package/dist/app/platform/reservation-card.js +3 -3
  17. package/dist/app/platform/session-card.cjs +8 -5
  18. package/dist/app/platform/session-card.cjs.map +1 -1
  19. package/dist/app/platform/session-card.js +4 -4
  20. package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +38 -12
  21. package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
  22. package/dist/app/platform/userInfos/coaching-customer-info/index.js +4 -4
  23. package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +24 -9
  24. package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
  25. package/dist/app/platform/userInfos/coaching-customer-info/large.d.cts +1 -1
  26. package/dist/app/platform/userInfos/coaching-customer-info/large.d.ts +1 -1
  27. package/dist/app/platform/userInfos/coaching-customer-info/large.js +2 -2
  28. package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +22 -9
  29. package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
  30. package/dist/app/platform/userInfos/coaching-customer-info/medium.d.cts +1 -1
  31. package/dist/app/platform/userInfos/coaching-customer-info/medium.d.ts +1 -1
  32. package/dist/app/platform/userInfos/coaching-customer-info/medium.js +2 -2
  33. package/dist/app/platform/userInfos/session-user-info-detail.cjs +16 -9
  34. package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
  35. package/dist/app/platform/userInfos/session-user-info-detail.d.cts +2 -1
  36. package/dist/app/platform/userInfos/session-user-info-detail.d.ts +2 -1
  37. package/dist/app/platform/userInfos/session-user-info-detail.js +2 -2
  38. package/dist/app/platform/userInfos/utils.cjs +8 -6
  39. package/dist/app/platform/userInfos/utils.cjs.map +1 -1
  40. package/dist/app/platform/userInfos/utils.d.cts +12 -2
  41. package/dist/app/platform/userInfos/utils.d.ts +12 -2
  42. package/dist/app/platform/userInfos/utils.js +1 -1
  43. package/dist/chunk-2QBJJBBV.js +145 -0
  44. package/dist/chunk-2QBJJBBV.js.map +1 -0
  45. package/dist/chunk-373AW6HR.js +277 -0
  46. package/dist/chunk-373AW6HR.js.map +1 -0
  47. package/dist/chunk-5E6WM7Z4.js +64 -0
  48. package/dist/chunk-5E6WM7Z4.js.map +1 -0
  49. package/dist/chunk-7NXD7PLX.js +74 -0
  50. package/dist/chunk-7NXD7PLX.js.map +1 -0
  51. package/dist/chunk-AEHUSHES.js +145 -0
  52. package/dist/chunk-AEHUSHES.js.map +1 -0
  53. package/dist/chunk-AGURJ3T5.js +277 -0
  54. package/dist/chunk-AGURJ3T5.js.map +1 -0
  55. package/dist/chunk-BJ2HH4TJ.js +57 -0
  56. package/dist/chunk-BJ2HH4TJ.js.map +1 -0
  57. package/dist/chunk-C7XYI4HY.js +277 -0
  58. package/dist/chunk-C7XYI4HY.js.map +1 -0
  59. package/dist/chunk-EPZ2D427.js +145 -0
  60. package/dist/chunk-EPZ2D427.js.map +1 -0
  61. package/dist/chunk-EVCB4ZZJ.js +60 -0
  62. package/dist/chunk-EVCB4ZZJ.js.map +1 -0
  63. package/dist/chunk-FUTVSARU.js +145 -0
  64. package/dist/chunk-FUTVSARU.js.map +1 -0
  65. package/dist/chunk-GGXPZLTY.js +62 -0
  66. package/dist/chunk-GGXPZLTY.js.map +1 -0
  67. package/dist/chunk-HKRIJNY6.js +64 -0
  68. package/dist/chunk-HKRIJNY6.js.map +1 -0
  69. package/dist/chunk-IJSQS7YT.js +74 -0
  70. package/dist/chunk-IJSQS7YT.js.map +1 -0
  71. package/dist/chunk-LUE7QN3Z.js +192 -0
  72. package/dist/chunk-LUE7QN3Z.js.map +1 -0
  73. package/dist/chunk-MD2DWARX.js +64 -0
  74. package/dist/chunk-MD2DWARX.js.map +1 -0
  75. package/dist/chunk-NHFRCEK6.js +102 -0
  76. package/dist/chunk-NHFRCEK6.js.map +1 -0
  77. package/dist/chunk-NJWCZXWW.js +30 -0
  78. package/dist/chunk-NJWCZXWW.js.map +1 -0
  79. package/dist/chunk-R6BHSDHQ.js +145 -0
  80. package/dist/chunk-R6BHSDHQ.js.map +1 -0
  81. package/dist/chunk-RAUCQTT3.js +57 -0
  82. package/dist/chunk-RAUCQTT3.js.map +1 -0
  83. package/dist/chunk-SQKKAVI3.js +145 -0
  84. package/dist/chunk-SQKKAVI3.js.map +1 -0
  85. package/dist/chunk-TNJG6DRI.js +174 -0
  86. package/dist/chunk-TNJG6DRI.js.map +1 -0
  87. package/dist/chunk-TTIKEEMM.js +192 -0
  88. package/dist/chunk-TTIKEEMM.js.map +1 -0
  89. package/dist/chunk-UC5ZM5ZM.js +174 -0
  90. package/dist/chunk-UC5ZM5ZM.js.map +1 -0
  91. package/dist/chunk-UH3EXAIO.js +277 -0
  92. package/dist/chunk-UH3EXAIO.js.map +1 -0
  93. package/dist/chunk-V5EAAF36.js +30 -0
  94. package/dist/chunk-V5EAAF36.js.map +1 -0
  95. package/dist/chunk-VWVFUMDN.js +30 -0
  96. package/dist/chunk-VWVFUMDN.js.map +1 -0
  97. package/dist/chunk-ZUQARZ2L.js +74 -0
  98. package/dist/chunk-ZUQARZ2L.js.map +1 -0
  99. package/dist/index.cjs +54 -20
  100. package/dist/index.cjs.map +1 -1
  101. package/dist/index.css +2000 -1996
  102. package/dist/index.css.map +1 -1
  103. package/dist/index.js +11 -11
  104. package/dist/molecules/date-picker/date-picker-button.cjs +7 -4
  105. package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
  106. package/dist/molecules/date-picker/date-picker-button.js +1 -1
  107. package/dist/molecules/index.cjs +8 -5
  108. package/dist/molecules/index.cjs.map +1 -1
  109. package/dist/molecules/index.js +2 -2
  110. package/dist/molecules/time-select.cjs +1 -1
  111. package/dist/molecules/time-select.cjs.map +1 -1
  112. package/dist/molecules/time-select.js +1 -1
  113. package/package.json +1 -1
  114. package/src/app/platform/userInfos/coaching-customer-info/large.tsx +15 -2
  115. package/src/app/platform/userInfos/coaching-customer-info/medium.tsx +17 -2
  116. package/src/app/platform/userInfos/session-user-info-detail.tsx +8 -2
  117. package/src/app/platform/userInfos/utils.tsx +24 -14
  118. package/src/molecules/date-picker/date-picker-button.tsx +7 -4
  119. package/src/molecules/time-select.tsx +3 -1
@@ -1035,27 +1035,29 @@ var sessionList = [
1035
1035
  getValue: (session) => (session == null ? void 0 : session.expiredAt) ? (0, import_date_fns.format)(session.expiredAt, "yyyy\uB144 MM\uC6D4 dd\uC77C") : "-"
1036
1036
  }
1037
1037
  ];
1038
- var renderItem = (info, data) => {
1038
+ var renderItem = (args) => {
1039
+ const { info, data, onClickCopy } = args;
1039
1040
  const value = info.getValue(data);
1040
1041
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
1041
1042
  info.render ? info.render(value) : value || "-",
1042
- info.copyable && value ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CopyButton, { value }) : null
1043
+ info.copyable && value ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(CopyButton, { onClickCopy, value }) : null
1043
1044
  ] });
1044
1045
  };
1045
- var renderDataListItem = (info, data) => {
1046
+ var renderDataListItem = (args) => {
1047
+ const { info, data, onClickCopy } = args;
1046
1048
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_themes15.DataList.Item, { children: [
1047
1049
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_themes15.DataList.Label, { children: info.label }),
1048
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_themes15.DataList.Value, { children: renderItem(info, data) })
1050
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_themes15.DataList.Value, { children: renderItem({ info, data, onClickCopy }) })
1049
1051
  ] }, info.label);
1050
1052
  };
1051
1053
  function CopyButton(props) {
1054
+ const { value, onClickCopy } = props;
1052
1055
  return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1053
1056
  Button,
1054
1057
  {
1055
1058
  color: "gray",
1056
1059
  onClick: () => {
1057
- void navigator.clipboard.writeText(props.value);
1058
- import_react_toastify2.toast.success("\uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
1060
+ onClickCopy(value);
1059
1061
  },
1060
1062
  style: { marginLeft: "0", marginTop: "0" },
1061
1063
  variant: "transparent",
@@ -1070,7 +1072,8 @@ function CoachingCustomerInfoMedium({
1070
1072
  customer,
1071
1073
  session,
1072
1074
  children,
1073
- badge
1075
+ badge,
1076
+ onClickCopy
1074
1077
  }) {
1075
1078
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
1076
1079
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes6.Box, { children: [
@@ -1081,13 +1084,23 @@ function CoachingCustomerInfoMedium({
1081
1084
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
1082
1085
  ] }),
1083
1086
  children,
1084
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_themes15.DataList.Root, { orientation: "vertical", children: sessionList.map((el) => renderDataListItem(el, session)) }) }),
1087
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_themes15.DataList.Root, { orientation: "vertical", children: sessionList.map(
1088
+ (el) => renderDataListItem({
1089
+ info: el,
1090
+ data: session,
1091
+ onClickCopy
1092
+ })
1093
+ ) }) }),
1085
1094
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", children: [
1086
1095
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Heading2, { variant: "heading5", children: "\uACE0\uAC1D \uC815\uBCF4" }),
1087
1096
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_themes39.Separator, { size: "4" })
1088
1097
  ] }),
1089
1098
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_themes22.Flex, { direction: "column", gap: "4", children: infoList.map((el) => {
1090
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Typo, { children: renderItem(el, customer) }, el.label);
1099
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Typo, { children: renderItem({
1100
+ info: el,
1101
+ data: customer,
1102
+ onClickCopy
1103
+ }) }, el.label);
1091
1104
  }) })
1092
1105
  ] });
1093
1106
  }
@@ -1098,7 +1111,8 @@ function CoachingCustomerInfoLarge({
1098
1111
  customer,
1099
1112
  session,
1100
1113
  children,
1101
- badge
1114
+ badge,
1115
+ onClickCopy
1102
1116
  }) {
1103
1117
  return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
1104
1118
  /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_themes6.Box, { children: [
@@ -1109,9 +1123,21 @@ function CoachingCustomerInfoLarge({
1109
1123
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Heading2, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
1110
1124
  ] }),
1111
1125
  children,
1112
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes15.DataList.Root, { children: sessionList.map((el) => renderDataListItem(el, session)) }) }),
1126
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
1127
+ (el) => renderDataListItem({
1128
+ info: el,
1129
+ data: session,
1130
+ onClickCopy
1131
+ })
1132
+ ) }) }),
1113
1133
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes39.Separator, { size: "4" }),
1114
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes15.DataList.Root, { children: infoList.map((info) => renderDataListItem(info, customer)) })
1134
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes15.DataList.Root, { children: infoList.map(
1135
+ (info) => renderDataListItem({
1136
+ info,
1137
+ data: customer,
1138
+ onClickCopy
1139
+ })
1140
+ ) })
1115
1141
  ] });
1116
1142
  }
1117
1143
 
@@ -1435,16 +1461,19 @@ function DatePickerButton(props) {
1435
1461
  const buttonProps = (0, import_react27.useMemo)(() => {
1436
1462
  const variant = "outline";
1437
1463
  const color = "gray";
1438
- return { size, color, variant };
1439
- }, [size]);
1464
+ return { size, color, variant, disabled };
1465
+ }, [disabled, size]);
1440
1466
  const selectFormat = (0, import_react27.useMemo)(() => {
1441
1467
  if (formatProps)
1442
1468
  return formatProps;
1443
1469
  return (date) => date ? (0, import_date_fns3.format)(date, "yyyy\uB144 MM\uC6D4 dd\uC77C") : placeholder;
1444
1470
  }, [formatProps, placeholder]);
1445
1471
  const className = (0, import_react27.useMemo)(() => {
1446
- return (0, import_clsx.clsx)("date-picker-button", disabled && "disabled");
1447
- }, [disabled]);
1472
+ return (0, import_clsx.clsx)(
1473
+ "date-picker-button",
1474
+ (disabled || props.readOnly) && "disabled"
1475
+ );
1476
+ }, [disabled, props.readOnly]);
1448
1477
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes6.Box, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
1449
1478
  DatePicker,
1450
1479
  __spreadProps(__spreadValues({
@@ -1511,7 +1540,7 @@ function TimeSelect(_a) {
1511
1540
  return [getOptionValue(minTime, time), getOptionValue(maxTime, time)];
1512
1541
  }, [maxTime, minTime, time]);
1513
1542
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Select.Root, __spreadProps(__spreadValues({ value }, rest), { children: [
1514
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes22.Flex, { direction: "column", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Select.Trigger, { placeholder: "- ", style: { minWidth: "100px" } }) }),
1543
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes22.Flex, { direction: "column", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Select.Trigger, { placeholder: "- ", style: { minWidth: "100px" }, children: value }) }),
1515
1544
  /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Select.Content, { children: timeOptions.map((option) => {
1516
1545
  const visible = (!minOption || option >= minOption) && (!maxOption || option <= maxOption);
1517
1546
  if (!visible) {
@@ -2280,11 +2309,16 @@ function SectionWrapper({
2280
2309
  }
2281
2310
  function SessionUserInfoDetail({
2282
2311
  customer,
2283
- session
2312
+ session,
2313
+ onClickCopy
2284
2314
  }) {
2285
2315
  return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes22.Flex, { direction: "column", gap: "6", children: [
2286
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SectionWrapper, { title: "\uC138\uC158 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes15.DataList.Root, { children: sessionList.map((info) => renderDataListItem(info, session)) }) }),
2287
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SectionWrapper, { title: "\uD68C\uC6D0 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes15.DataList.Root, { children: infoList.map((info) => renderDataListItem(info, customer)) }) })
2316
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SectionWrapper, { title: "\uC138\uC158 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes15.DataList.Root, { children: sessionList.map(
2317
+ (info) => renderDataListItem({ info, data: session, onClickCopy })
2318
+ ) }) }),
2319
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SectionWrapper, { title: "\uD68C\uC6D0 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes15.DataList.Root, { children: infoList.map(
2320
+ (info) => renderDataListItem({ info, data: customer, onClickCopy })
2321
+ ) }) })
2288
2322
  ] });
2289
2323
  }
2290
2324