@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
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)("date-picker-button", disabled && "disabled");
2447
- }, [disabled]);
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 = (info, data) => {
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 = (info, data) => {
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
- void navigator.clipboard.writeText(props.value);
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((el) => renderDataListItem(el, session)) }) }),
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(el, customer) }, el.label);
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((el) => renderDataListItem(el, session)) }) }),
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((info) => renderDataListItem(info, customer)) })
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((info) => renderDataListItem(info, session)) }) }),
3832
- /* @__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((info) => renderDataListItem(info, customer)) }) })
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