@pfct/purple 1.7.0-next.3 → 1.7.0-next.4

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 (231) hide show
  1. package/dist/chunks/index.9fap07Gq.js +60 -0
  2. package/dist/chunks/index.B-Bfcjo7.js +1 -0
  3. package/dist/chunks/index.BfjI33ZB.js +41 -0
  4. package/dist/chunks/{index.Dud5PpT2.js → index.BmifSqQX.js} +26 -26
  5. package/dist/chunks/{index.BRcoZnsL.js → index.BngGCpBd.js} +1 -1
  6. package/dist/chunks/{index.B04X8ryw.js → index.BtGja8CI.js} +1 -1
  7. package/dist/chunks/{index.BKkcGVEJ.js → index.C1WOc90r.js} +81 -81
  8. package/dist/chunks/index.C3oZfEx6.js +283 -0
  9. package/dist/chunks/{index.CtswiKeA.js → index.CDVf4iB0.js} +1 -1
  10. package/dist/chunks/{index.DrALxeqy.js → index.CIUK7hO2.js} +23 -23
  11. package/dist/chunks/{index.DIsmU7qE.js → index.CVogEmtp.js} +1 -1
  12. package/dist/chunks/index.CqHp_goI.js +1 -0
  13. package/dist/chunks/{index.B3rAhBCw.js → index.CskkVMdK.js} +1 -1
  14. package/dist/chunks/{index.93u2Cu_l.js → index.DIaW0faE.js} +1 -1
  15. package/dist/chunks/{index.-8MfVPUU.js → index.DVHp5IZe.js} +47 -47
  16. package/dist/chunks/index.QJBZMz2E.js +5 -0
  17. package/dist/chunks/index.eYfYnSCV.js +1 -0
  18. package/dist/chunks/index.ps14_l3u.js +1 -0
  19. package/dist/components/Accordion/index.cjs.js +1 -1
  20. package/dist/components/Accordion/index.es.js +176 -176
  21. package/dist/components/Badge/BaseBadge/index.cjs.js +1 -1
  22. package/dist/components/Badge/BaseBadge/index.es.js +10 -10
  23. package/dist/components/Badge/BaseBadge/index.styled.cjs.js +1 -1
  24. package/dist/components/Badge/BaseBadge/index.styled.es.js +1 -1
  25. package/dist/components/Badge/IconBadge/index.cjs.js +1 -1
  26. package/dist/components/Badge/IconBadge/index.es.js +6 -6
  27. package/dist/components/Badge/TextBadge/index.cjs.js +1 -1
  28. package/dist/components/Badge/TextBadge/index.es.js +7 -7
  29. package/dist/components/BottomSheet/BaseBottomSheet/index.cjs.js +1 -1
  30. package/dist/components/BottomSheet/BaseBottomSheet/index.es.js +32 -32
  31. package/dist/components/BottomSheet/NavBottomSheet/index.cjs.js +1 -1
  32. package/dist/components/BottomSheet/NavBottomSheet/index.es.js +8 -8
  33. package/dist/components/BottomSheet/TitleBottomSheet/index.cjs.js +1 -1
  34. package/dist/components/BottomSheet/TitleBottomSheet/index.es.js +15 -15
  35. package/dist/components/Button/BaseButton/index.cjs.js +1 -1
  36. package/dist/components/Button/BaseButton/index.es.js +4 -4
  37. package/dist/components/Button/DoubleButton/index.cjs.js +1 -1
  38. package/dist/components/Button/DoubleButton/index.es.js +6 -6
  39. package/dist/components/Button/FloatBaseButton/index.cjs.js +1 -1
  40. package/dist/components/Button/FloatBaseButton/index.es.js +16 -16
  41. package/dist/components/Button/FloatDoubleButton/index.cjs.js +1 -1
  42. package/dist/components/Button/FloatDoubleButton/index.es.js +13 -13
  43. package/dist/components/Button/FloatSingleButton/index.cjs.js +1 -1
  44. package/dist/components/Button/FloatSingleButton/index.es.js +8 -8
  45. package/dist/components/Button/SingleButton/index.cjs.js +1 -1
  46. package/dist/components/Button/SingleButton/index.es.js +3 -3
  47. package/dist/components/Button/TestButton/index.cjs.js +1 -1
  48. package/dist/components/Button/TestButton/index.es.js +2 -2
  49. package/dist/components/Card/index.cjs.js +1 -1
  50. package/dist/components/Card/index.es.js +7 -7
  51. package/dist/components/Chips/BasicChips/index.cjs.js +1 -1
  52. package/dist/components/Chips/BasicChips/index.es.js +8 -8
  53. package/dist/components/Chips/BasicChips/index.styled.cjs.js +1 -1
  54. package/dist/components/Chips/BasicChips/index.styled.es.js +1 -1
  55. package/dist/components/Chips/ChipItem/index.cjs.js +1 -1
  56. package/dist/components/Chips/ChipItem/index.es.js +31 -34
  57. package/dist/components/Chips/ChipsFrame/index.cjs.js +1 -1
  58. package/dist/components/Chips/ChipsFrame/index.es.js +14 -14
  59. package/dist/components/Chips/ChipsFrame/index.styled.cjs.js +1 -1
  60. package/dist/components/Chips/ChipsFrame/index.styled.es.js +1 -1
  61. package/dist/components/Comment/Group/index.cjs.js +1 -1
  62. package/dist/components/Comment/Group/index.es.js +3 -3
  63. package/dist/components/Comment/Item/index.cjs.js +1 -1
  64. package/dist/components/Comment/Item/index.es.js +6 -6
  65. package/dist/components/Control/CheckMark/CheckMark.cjs.js +1 -1
  66. package/dist/components/Control/CheckMark/CheckMark.es.js +3 -3
  67. package/dist/components/Control/CheckMark/index.cjs.js +1 -1
  68. package/dist/components/Control/CheckMark/index.es.js +7 -7
  69. package/dist/components/Control/RadioButton/index.cjs.js +1 -1
  70. package/dist/components/Control/RadioButton/index.es.js +11 -11
  71. package/dist/components/Control/Switch/index.cjs.js +1 -1
  72. package/dist/components/Control/Switch/index.es.js +71 -71
  73. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.cjs.js +1 -1
  74. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/ActiveDateOfMonth.es.js +12 -12
  75. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.cjs.js +1 -1
  76. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/DisabledDateOfMonth.es.js +12 -12
  77. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.cjs.js +1 -1
  78. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/NoneDateOfMonth.es.js +3 -3
  79. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.cjs.js +1 -1
  80. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeEndFocusDateOfMonth.es.js +14 -14
  81. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.cjs.js +1 -1
  82. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/RangeStartFocusDateOfMonth.es.js +18 -18
  83. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.cjs.js +1 -1
  84. package/dist/components/DatePicker/BaseDatePicker/DateOfMonth/SingleFocusDateOfMonth.es.js +13 -13
  85. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.cjs.js +1 -1
  86. package/dist/components/DatePicker/BaseDatePicker/DayOfWeek/index.es.js +3 -3
  87. package/dist/components/DatePicker/BaseDatePicker/Month/index.cjs.js +1 -1
  88. package/dist/components/DatePicker/BaseDatePicker/Month/index.es.js +4 -4
  89. package/dist/components/DatePicker/BaseDatePicker/Week/index.cjs.js +1 -1
  90. package/dist/components/DatePicker/BaseDatePicker/Week/index.es.js +3 -3
  91. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.cjs.js +1 -1
  92. package/dist/components/DatePicker/BaseDatePicker/YearMonthController/index.es.js +16 -16
  93. package/dist/components/DatePicker/BaseDatePicker/index.cjs.js +1 -1
  94. package/dist/components/DatePicker/BaseDatePicker/index.es.js +31 -31
  95. package/dist/components/DatePicker/RangeDatePickerModal/index.cjs.js +1 -1
  96. package/dist/components/DatePicker/RangeDatePickerModal/index.es.js +27 -27
  97. package/dist/components/DatePicker/SingleDatePickerModal/index.cjs.js +1 -1
  98. package/dist/components/DatePicker/SingleDatePickerModal/index.es.js +14 -14
  99. package/dist/components/Divider/index.cjs.js +1 -1
  100. package/dist/components/Divider/index.es.js +17 -17
  101. package/dist/components/Input/BaseInput/index.cjs.js +1 -1
  102. package/dist/components/Input/BaseInput/index.es.js +44 -44
  103. package/dist/components/Input/NumberInput/index.cjs.js +1 -1
  104. package/dist/components/Input/NumberInput/index.es.js +23 -23
  105. package/dist/components/Input/PostfixInput/index.cjs.js +1 -1
  106. package/dist/components/Input/PostfixInput/index.es.js +61 -61
  107. package/dist/components/Input/ResidentNumberInput/index.cjs.js +1 -1
  108. package/dist/components/Input/ResidentNumberInput/index.es.js +65 -65
  109. package/dist/components/Input/TextField/index.cjs.js +1 -1
  110. package/dist/components/Input/TextField/index.es.js +32 -32
  111. package/dist/components/Input/common/InputFrame/index.cjs.js +1 -1
  112. package/dist/components/Input/common/InputFrame/index.es.js +17 -17
  113. package/dist/components/Input/index.cjs.js +1 -1
  114. package/dist/components/Input/index.es.js +1 -1
  115. package/dist/components/LegacyModal/BaseModal/index.cjs.js +1 -1
  116. package/dist/components/LegacyModal/BaseModal/index.es.js +8 -8
  117. package/dist/components/LegacyModal/index.cjs.js +1 -1
  118. package/dist/components/LegacyModal/index.es.js +19 -19
  119. package/dist/components/List/index.cjs.js +1 -1
  120. package/dist/components/List/index.es.js +11 -11
  121. package/dist/components/Loading/ProgressBar/index.cjs.js +1 -1
  122. package/dist/components/Loading/ProgressBar/index.es.js +3 -3
  123. package/dist/components/Loading/Skeleton/index.cjs.js +1 -1
  124. package/dist/components/Loading/Skeleton/index.es.js +5 -5
  125. package/dist/components/Loading/Spinner/index.cjs.js +1 -1
  126. package/dist/components/Loading/Spinner/index.es.js +3 -3
  127. package/dist/components/MiniButton/BoxMiniButton/index.cjs.js +1 -1
  128. package/dist/components/MiniButton/BoxMiniButton/index.es.js +4 -4
  129. package/dist/components/MiniButton/IconMiniButton/index.cjs.js +1 -1
  130. package/dist/components/MiniButton/IconMiniButton/index.es.js +27 -30
  131. package/dist/components/MiniButton/UnderLineMiniButton/index.cjs.js +1 -1
  132. package/dist/components/MiniButton/UnderLineMiniButton/index.es.js +40 -43
  133. package/dist/components/MiniButton/common/ButtonTag.cjs.js +1 -1
  134. package/dist/components/MiniButton/common/ButtonTag.es.js +3 -3
  135. package/dist/components/Modal/index.cjs.js +1 -1
  136. package/dist/components/Modal/index.es.js +42 -42
  137. package/dist/components/Navigation/BaseNavigation/index.cjs.js +1 -1
  138. package/dist/components/Navigation/BaseNavigation/index.es.js +14 -14
  139. package/dist/components/Navigation/BottomNavigationBar/index.cjs.js +1 -1
  140. package/dist/components/Navigation/BottomNavigationBar/index.es.js +10 -10
  141. package/dist/components/Navigation/PageNavigationBar/index.cjs.js +1 -1
  142. package/dist/components/Navigation/PageNavigationBar/index.es.js +21 -21
  143. package/dist/components/Navigation/TitleNavigationBar/index.cjs.js +1 -1
  144. package/dist/components/Navigation/TitleNavigationBar/index.es.js +12 -12
  145. package/dist/components/Navigation/index.cjs.js +1 -1
  146. package/dist/components/Navigation/index.es.js +21 -21
  147. package/dist/components/OverlayRoot/index.cjs.js +1 -1
  148. package/dist/components/OverlayRoot/index.es.js +6 -6
  149. package/dist/components/Segment/BaseSegment/index.cjs.js +1 -1
  150. package/dist/components/Segment/BaseSegment/index.es.js +16 -16
  151. package/dist/components/Segment/ExtendSegment/index.cjs.js +1 -1
  152. package/dist/components/Segment/ExtendSegment/index.es.js +18 -18
  153. package/dist/components/SelectBox/index.cjs.js +1 -1
  154. package/dist/components/SelectBox/index.es.js +42 -42
  155. package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
  156. package/dist/components/Tabs/FillTabs/index.es.js +11 -11
  157. package/dist/components/Tabs/TextTabs/index.cjs.js +1 -1
  158. package/dist/components/Tabs/TextTabs/index.es.js +18 -18
  159. package/dist/components/Tag/index.cjs.js +1 -1
  160. package/dist/components/Tag/index.es.js +7 -8
  161. package/dist/components/Terms/index.cjs.js +1 -1
  162. package/dist/components/Terms/index.es.js +26 -26
  163. package/dist/components/TextArea/index.cjs.js +1 -1
  164. package/dist/components/TextArea/index.es.js +17 -17
  165. package/dist/components/Title/index.cjs.js +1 -1
  166. package/dist/components/Title/index.es.js +12 -12
  167. package/dist/components/Toast/index.cjs.js +1 -1
  168. package/dist/components/Toast/index.es.js +4 -4
  169. package/dist/components/index.cjs.js +1 -1
  170. package/dist/components/index.es.js +1 -1
  171. package/dist/components/ui/bottomSheet.cjs.js +1 -1
  172. package/dist/components/ui/bottomSheet.es.js +92 -92
  173. package/dist/components/ui/button.cjs.js +1 -1
  174. package/dist/components/ui/button.es.js +13 -14
  175. package/dist/components/ui/checkbox.cjs.js +1 -1
  176. package/dist/components/ui/checkbox.es.js +88 -88
  177. package/dist/components/ui/dialog.cjs.js +1 -1
  178. package/dist/components/ui/dialog.es.js +48 -48
  179. package/dist/components/ui/drawer.cjs.js +2 -2
  180. package/dist/components/ui/drawer.es.js +159 -159
  181. package/dist/components/ui/impact-tooltip.cjs.js +1 -1
  182. package/dist/components/ui/impact-tooltip.es.js +133 -133
  183. package/dist/components/ui/share-ui.cjs.js +1 -1
  184. package/dist/components/ui/share-ui.es.js +34 -34
  185. package/dist/components/ui/tooltip.cjs.js +1 -1
  186. package/dist/components/ui/tooltip.es.js +138 -138
  187. package/dist/components/ui/typography.cjs.js +1 -1
  188. package/dist/components/ui/typography.es.js +3 -3
  189. package/dist/core/Display/Mobile.cjs.js +1 -1
  190. package/dist/core/Display/Mobile.es.js +4 -4
  191. package/dist/core/Display/Pc.cjs.js +1 -1
  192. package/dist/core/Display/Pc.es.js +4 -4
  193. package/dist/core/Typography/BaseTypography/index.cjs.js +1 -1
  194. package/dist/core/Typography/BaseTypography/index.es.js +3 -3
  195. package/dist/core/Typography/index.cjs.js +1 -1
  196. package/dist/core/Typography/index.es.js +19 -19
  197. package/dist/icons/src/icons/index.cjs.js +1 -1
  198. package/dist/icons/src/icons/index.d.ts +1 -1
  199. package/dist/icons/src/icons/index.d.ts.map +1 -1
  200. package/dist/icons/src/icons/index.es.js +4 -4
  201. package/dist/index.cjs.js +1 -1
  202. package/dist/index.es.js +1 -1
  203. package/dist/library/BasicForm/index.cjs.js +1 -1
  204. package/dist/library/BasicForm/index.es.js +10 -10
  205. package/dist/library/BasicLayout/Body.cjs.js +1 -1
  206. package/dist/library/BasicLayout/Body.es.js +7 -7
  207. package/dist/library/BasicLayout/Footer.cjs.js +1 -1
  208. package/dist/library/BasicLayout/Footer.es.js +71 -71
  209. package/dist/library/BasicLayout/index.cjs.js +1 -1
  210. package/dist/library/BasicLayout/index.es.js +35 -35
  211. package/dist/library/BasicLayout/index.styled.cjs.js +1 -1
  212. package/dist/library/BasicLayout/index.styled.es.js +1 -1
  213. package/dist/library/IconWithImage/index.cjs.js +1 -1
  214. package/dist/library/IconWithImage/index.es.js +4 -4
  215. package/dist/library/List/BottomSheetItemList/index.cjs.js +1 -1
  216. package/dist/library/List/BottomSheetItemList/index.es.js +5 -5
  217. package/dist/library/Lottie/index.cjs.js +1 -1
  218. package/dist/library/Lottie/index.es.js +47 -47
  219. package/dist/library/Spacing/index.cjs.js +1 -1
  220. package/dist/library/Spacing/index.es.js +3 -3
  221. package/package.json +1 -1
  222. package/dist/chunks/index.9yN3bH7k.js +0 -283
  223. package/dist/chunks/index.BTUe9yKh.js +0 -1
  224. package/dist/chunks/index.Beaq4T1c.js +0 -1
  225. package/dist/chunks/index.BspO8Abs.js +0 -41
  226. package/dist/chunks/index.CtIpJqp4.js +0 -5
  227. package/dist/chunks/index.DcvrUsoU.js +0 -1
  228. package/dist/chunks/index._MxrBNop.js +0 -60
  229. package/dist/chunks/index.mCMIO9lL.js +0 -1
  230. package/dist/chunks/jsx-runtime.B0Vkbtvx.js +0 -14
  231. package/dist/chunks/jsx-runtime.C63F304d.js +0 -615
@@ -1,16 +1,16 @@
1
- import { j as b } from "../../../chunks/jsx-runtime.C63F304d.js";
2
- import { useReducer as O, useRef as R, useLayoutEffect as L, useEffect as P, useCallback as A } from "react";
3
- import { extractNumber as y, formatKoreaCurrency as j } from "../../../utils/format.util.es.js";
1
+ import { jsx as b } from "react/jsx-runtime";
2
+ import { useReducer as R, useRef as k, useLayoutEffect as L, useEffect as P, useCallback as A } from "react";
3
+ import { extractNumber as C, formatKoreaCurrency as I } from "../../../utils/format.util.es.js";
4
4
  import "../../../core/Colors/index.es.js";
5
5
  import "../../../utils/GenerateColorStyle/datepicker.es.js";
6
6
  import "../../../utils/GenerateColorStyle/mini-button.es.js";
7
7
  import "@emotion/react";
8
- import { BaseInput as I } from "../BaseInput/index.es.js";
9
- const _ = (t) => {
10
- const [, l] = O((e) => e + 1, 0), s = R(null), {
8
+ import { BaseInput as _ } from "../BaseInput/index.es.js";
9
+ const $ = (t) => {
10
+ const [, l] = R((e) => e + 1, 0), s = k(null), {
11
11
  replace: u,
12
12
  append: f
13
- } = t, i = u ? u(t.format(t.value)) : t.format(t.value), m = R(!1), v = (e) => {
13
+ } = t, i = u ? u(t.format(t.value)) : t.format(t.value), m = k(!1), v = (e) => {
14
14
  if (process.env.NODE_ENV !== "production") {
15
15
  if (e.target.type === "number") {
16
16
  console.error("Rifm does not support input type=number, use type=tel instead.");
@@ -50,16 +50,16 @@ const _ = (t) => {
50
50
  E
51
51
  ] = s.current;
52
52
  s.current = null;
53
- const C = h && E, N = e.slice(n.selectionStart).search(t.accept || /\d/g), k = N !== -1 ? N : 0, d = (r) => (r.match(t.accept || /\d/g) || []).join(""), w = d(e.substr(0, n.selectionStart)), S = (r) => {
53
+ const N = h && E, S = e.slice(n.selectionStart).search(t.accept || /\d/g), O = S !== -1 ? S : 0, d = (r) => (r.match(t.accept || /\d/g) || []).join(""), w = d(e.substr(0, n.selectionStart)), x = (r) => {
54
54
  let c = 0, p = 0;
55
55
  for (let g = 0; g !== w.length; ++g) {
56
- let V = r.indexOf(w[g], c) + 1, x = d(r).indexOf(w[g], p) + 1;
57
- x - p > 1 && (V = c, x = p), p = Math.max(x, p), c = Math.max(c, V);
56
+ let V = r.indexOf(w[g], c) + 1, y = d(r).indexOf(w[g], p) + 1;
57
+ y - p > 1 && (V = c, y = p), p = Math.max(y, p), c = Math.max(c, V);
58
58
  }
59
59
  return c;
60
60
  };
61
61
  if (t.mask === !0 && o && !E) {
62
- let r = S(e);
62
+ let r = x(e);
63
63
  const c = d(e.substr(r))[0];
64
64
  r = e.indexOf(c, r), e = `${e.substr(0, r)}${e.substr(r + 1)}`;
65
65
  }
@@ -68,11 +68,11 @@ const _ = (t) => {
68
68
  n.selectionStart === e.length && !E && (o ? a = f(a) : d(a.slice(-1)) === "" && (a = a.slice(0, -1)));
69
69
  const D = u ? u(a) : a;
70
70
  return i === D ? l() : t.onChange(D), () => {
71
- let r = S(a);
72
- if (t.mask != null && (o || h && !C))
71
+ let r = x(a);
72
+ if (t.mask != null && (o || h && !N))
73
73
  for (; a[r] && d(a[r]) === ""; )
74
74
  r += 1;
75
- n.selectionStart = n.selectionEnd = r + (C ? 1 + k : 0);
75
+ n.selectionStart = n.selectionEnd = r + (N ? 1 + O : 0);
76
76
  };
77
77
  }), P(() => {
78
78
  const e = (o) => {
@@ -87,27 +87,27 @@ const _ = (t) => {
87
87
  value: s.current != null ? s.current[0] : i,
88
88
  onChange: v
89
89
  };
90
- }, $ = (t) => {
91
- const l = _(t);
90
+ }, B = (t) => {
91
+ const l = $(t);
92
92
  return t.children(l);
93
93
  }, X = (t) => {
94
94
  const { originValue: l, onValueChange: s, postfix: u = "", prefix: f = "", max: i = Number.MAX_SAFE_INTEGER, ...m } = t, v = A(
95
- (e) => y(e).length > 0 ? `${f}${j(e)} ${u}` : "",
95
+ (e) => C(e).length > 0 ? `${f}${I(e)} ${u}` : "",
96
96
  [u, f]
97
97
  );
98
- return /* @__PURE__ */ b.jsx(
99
- $,
98
+ return /* @__PURE__ */ b(
99
+ B,
100
100
  {
101
101
  accept: /[\d]/g,
102
102
  format: v,
103
- onChange: (e) => s?.(y(e)),
103
+ onChange: (e) => s?.(C(e)),
104
104
  value: l,
105
- children: ({ value: e, onChange: n }) => /* @__PURE__ */ b.jsx(
106
- I,
105
+ children: ({ value: e, onChange: n }) => /* @__PURE__ */ b(
106
+ _,
107
107
  {
108
108
  format: u,
109
109
  onChange: (o) => {
110
- const h = y(o.target.value);
110
+ const h = C(o.target.value);
111
111
  Number(h) > i && (o.target.value = l), n(o);
112
112
  },
113
113
  type: "tel",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../chunks/jsx-runtime.B0Vkbtvx.js"),n=require("react"),z=require("../../../core/Colors/index.cjs.js"),A=require("../../../core/Typography/BaseTypography/index.cjs.js"),L=require("../../../chunks/index.styled.yIsvimnv.js"),O=require("../common/InputFrame/index.cjs.js"),a=require("./index.styled.cjs.js"),G=s=>s&&typeof s=="object"&&"default"in s?s:{default:s},H=G(n),J=H.default.forwardRef((s,q)=>{const{realValue:l,postfix:S,onBlur:F,onFocus:P,onClick:y,disabled:c,label:r,placeholder:_,errorValidation:u,logRocketMasking:v,focus:d=!1,max:b,decoration:j,updateRealValue:g,formatRealValue:R,formatDisplayValue:i,type:I,pattern:D,...w}=s,[p,M]=n.useState(""),[U,x]=n.useState(""),[f,C]=n.useState(d),m=n.useRef(null),h=f||!!p,B=!(r||h)&&!!_,E=n.useCallback(e=>{if(e.length===0||e==="0"){x("");return}if(u)for(let t=0;t<u.length;t++){if(!u[t]?.condition(e)&&e.length!==0){x(u[t]?.errorText??"");break}x("")}},[u]),T=n.useCallback(e=>{const{type:t}=e;C(t==="focus")},[]),V=n.useCallback(e=>{y?.(e),m.current?.focus()},[y]),W=n.useCallback(e=>{const t=R?.(e)||e,k=Number(b),N=Number(t);k&&!Number.isNaN(N)&&N>k||g(t)},[b,g,R]);return n.useEffect(()=>{let e=l;i&&(e=i?.(e)||""),M(e),E(l)},[i,E,l]),n.useEffect(()=>{d&&m.current?.focus()},[d]),o.jsxRuntimeExports.jsxs(O.InputFrame,{active:h,disabled:!!c,errorText:U,focused:f,handleClickInput:V,label:r,children:[o.jsxRuntimeExports.jsxs(a.InputAndUnitWrapper,{children:[o.jsxRuntimeExports.jsx(a.InputSizer,{displayValue:p,focused:f,children:o.jsxRuntimeExports.jsx(a.InputTag,{...w,className:a.className.inputTag,"data-private":v,decoration:!1,disabled:c,hasLabel:!!r,name:r,onBlur:e=>{F?.(e),T(e)},onChange:e=>{const t=e.currentTarget.value;W(t)},onClick:V,onFocus:e=>{P?.(e),T(e)},pattern:I==="number"?"\\d*":D,placeholder:B?_:"",ref:q||m,size:B?void 0:1,type:I,value:i?p:l})}),o.jsxRuntimeExports.jsx(a.UnitWrapper,{children:h&&o.jsxRuntimeExports.jsx(a.Unit,{hasLabel:!!r,hasValue:!!p,children:o.jsxRuntimeExports.jsx(A.BaseTypography,{color:c?z.basicColors.gray200:void 0,md:"Title1",children:S})})})]}),j&&o.jsxRuntimeExports.jsx(L.DecorationItemWrapper,{disabled:c,children:j})]})});exports.PostfixInput=J;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("react"),z=require("../../../core/Colors/index.cjs.js"),A=require("../../../core/Typography/BaseTypography/index.cjs.js"),L=require("../../../chunks/index.styled.yIsvimnv.js"),O=require("../common/InputFrame/index.cjs.js"),s=require("./index.styled.cjs.js"),G=a=>a&&typeof a=="object"&&"default"in a?a:{default:a},H=G(n),J=H.default.forwardRef((a,S)=>{const{realValue:u,postfix:F,onBlur:P,onFocus:v,onClick:y,disabled:c,label:r,placeholder:_,errorValidation:l,logRocketMasking:D,focus:d=!1,max:b,decoration:g,updateRealValue:I,formatRealValue:C,formatDisplayValue:i,type:j,pattern:w,...E}=a,[p,M]=n.useState(""),[U,f]=n.useState(""),[h,B]=n.useState(d),m=n.useRef(null),x=h||!!p,T=!(r||x)&&!!_,V=n.useCallback(e=>{if(e.length===0||e==="0"){f("");return}if(l)for(let t=0;t<l.length;t++){if(!l[t]?.condition(e)&&e.length!==0){f(l[t]?.errorText??"");break}f("")}},[l]),k=n.useCallback(e=>{const{type:t}=e;B(t==="focus")},[]),N=n.useCallback(e=>{y?.(e),m.current?.focus()},[y]),W=n.useCallback(e=>{const t=C?.(e)||e,R=Number(b),q=Number(t);R&&!Number.isNaN(q)&&q>R||I(t)},[b,I,C]);return n.useEffect(()=>{let e=u;i&&(e=i?.(e)||""),M(e),V(u)},[i,V,u]),n.useEffect(()=>{d&&m.current?.focus()},[d]),o.jsxs(O.InputFrame,{active:x,disabled:!!c,errorText:U,focused:h,handleClickInput:N,label:r,children:[o.jsxs(s.InputAndUnitWrapper,{children:[o.jsx(s.InputSizer,{displayValue:p,focused:h,children:o.jsx(s.InputTag,{...E,className:s.className.inputTag,"data-private":D,decoration:!1,disabled:c,hasLabel:!!r,name:r,onBlur:e=>{P?.(e),k(e)},onChange:e=>{const t=e.currentTarget.value;W(t)},onClick:N,onFocus:e=>{v?.(e),k(e)},pattern:j==="number"?"\\d*":w,placeholder:T?_:"",ref:S||m,size:T?void 0:1,type:j,value:i?p:u})}),o.jsx(s.UnitWrapper,{children:x&&o.jsx(s.Unit,{hasLabel:!!r,hasValue:!!p,children:o.jsx(A.BaseTypography,{color:c?z.basicColors.gray200:void 0,md:"Title1",children:F})})})]}),g&&o.jsx(L.DecorationItemWrapper,{disabled:c,children:g})]})});exports.PostfixInput=J;
@@ -1,32 +1,32 @@
1
- import { j as t } from "../../../chunks/jsx-runtime.C63F304d.js";
2
- import _, { useState as h, useRef as O, useCallback as c, useEffect as F } from "react";
3
- import { basicColors as q } from "../../../core/Colors/index.es.js";
4
- import { BaseTypography as G } from "../../../core/Typography/BaseTypography/index.es.js";
5
- import { D as H } from "../../../chunks/index.styled.BNOtFd_Z.js";
6
- import { InputFrame as J } from "../common/InputFrame/index.es.js";
7
- import { InputAndUnitWrapper as K, InputSizer as Q, InputTag as X, className as Y, UnitWrapper as Z, Unit as $ } from "./index.styled.es.js";
8
- const le = _.forwardRef((v, w) => {
1
+ import { jsxs as v, jsx as t } from "react/jsx-runtime";
2
+ import O, { useState as h, useRef as q, useCallback as c, useEffect as w } from "react";
3
+ import { basicColors as G } from "../../../core/Colors/index.es.js";
4
+ import { BaseTypography as H } from "../../../core/Typography/BaseTypography/index.es.js";
5
+ import { D as J } from "../../../chunks/index.styled.BNOtFd_Z.js";
6
+ import { InputFrame as K } from "../common/InputFrame/index.es.js";
7
+ import { InputAndUnitWrapper as Q, InputSizer as X, InputTag as Y, className as Z, UnitWrapper as $, Unit as ee } from "./index.styled.es.js";
8
+ const ie = O.forwardRef((P, S) => {
9
9
  const {
10
10
  realValue: n,
11
- postfix: E,
12
- onBlur: P,
13
- onFocus: S,
14
- onClick: x,
15
- disabled: s,
11
+ postfix: U,
12
+ onBlur: W,
13
+ onFocus: j,
14
+ onClick: b,
15
+ disabled: l,
16
16
  label: a,
17
- placeholder: b,
17
+ placeholder: g,
18
18
  errorValidation: r,
19
- logRocketMasking: U,
19
+ logRocketMasking: z,
20
20
  focus: u = !1,
21
- max: g,
22
- decoration: y,
23
- updateRealValue: V,
24
- formatRealValue: j,
25
- formatDisplayValue: l,
26
- type: B,
27
- pattern: W,
28
- ...z
29
- } = v, [i, A] = h(""), [L, p] = h(""), [d, I] = h(u), f = O(null), m = d || !!i, N = !(a || m) && !!b, R = c(
21
+ max: y,
22
+ decoration: V,
23
+ updateRealValue: x,
24
+ formatRealValue: B,
25
+ formatDisplayValue: s,
26
+ type: I,
27
+ pattern: A,
28
+ ...E
29
+ } = P, [i, L] = h(""), [M, p] = h(""), [d, N] = h(u), f = q(null), m = d || !!i, T = !(a || m) && !!g, k = c(
30
30
  (e) => {
31
31
  if (e.length === 0 || e === "0") {
32
32
  p("");
@@ -42,73 +42,73 @@ const le = _.forwardRef((v, w) => {
42
42
  }
43
43
  },
44
44
  [r]
45
- ), T = c((e) => {
45
+ ), C = c((e) => {
46
46
  const { type: o } = e;
47
- I(o === "focus");
48
- }, []), k = c(
47
+ N(o === "focus");
48
+ }, []), R = c(
49
49
  (e) => {
50
- x?.(e), f.current?.focus();
50
+ b?.(e), f.current?.focus();
51
51
  },
52
- [x]
53
- ), M = c(
52
+ [b]
53
+ ), _ = c(
54
54
  (e) => {
55
- const o = j?.(e) || e, C = Number(g), D = Number(o);
56
- C && !Number.isNaN(D) && D > C || V(o);
55
+ const o = B?.(e) || e, D = Number(y), F = Number(o);
56
+ D && !Number.isNaN(F) && F > D || x(o);
57
57
  },
58
- [g, V, j]
58
+ [y, x, B]
59
59
  );
60
- return F(() => {
60
+ return w(() => {
61
61
  let e = n;
62
- l && (e = l?.(e) || ""), A(e), R(n);
63
- }, [l, R, n]), F(() => {
62
+ s && (e = s?.(e) || ""), L(e), k(n);
63
+ }, [s, k, n]), w(() => {
64
64
  u && f.current?.focus();
65
- }, [u]), /* @__PURE__ */ t.jsxs(
66
- J,
65
+ }, [u]), /* @__PURE__ */ v(
66
+ K,
67
67
  {
68
68
  active: m,
69
- disabled: !!s,
70
- errorText: L,
69
+ disabled: !!l,
70
+ errorText: M,
71
71
  focused: d,
72
- handleClickInput: k,
72
+ handleClickInput: R,
73
73
  label: a,
74
74
  children: [
75
- /* @__PURE__ */ t.jsxs(K, { children: [
76
- /* @__PURE__ */ t.jsx(Q, { displayValue: i, focused: d, children: /* @__PURE__ */ t.jsx(
77
- X,
75
+ /* @__PURE__ */ v(Q, { children: [
76
+ /* @__PURE__ */ t(X, { displayValue: i, focused: d, children: /* @__PURE__ */ t(
77
+ Y,
78
78
  {
79
- ...z,
80
- className: Y.inputTag,
81
- "data-private": U,
79
+ ...E,
80
+ className: Z.inputTag,
81
+ "data-private": z,
82
82
  decoration: !1,
83
- disabled: s,
83
+ disabled: l,
84
84
  hasLabel: !!a,
85
85
  name: a,
86
86
  onBlur: (e) => {
87
- P?.(e), T(e);
87
+ W?.(e), C(e);
88
88
  },
89
89
  onChange: (e) => {
90
90
  const o = e.currentTarget.value;
91
- M(o);
91
+ _(o);
92
92
  },
93
- onClick: k,
93
+ onClick: R,
94
94
  onFocus: (e) => {
95
- S?.(e), T(e);
95
+ j?.(e), C(e);
96
96
  },
97
- pattern: B === "number" ? "\\d*" : W,
98
- placeholder: N ? b : "",
99
- ref: w || f,
100
- size: N ? void 0 : 1,
101
- type: B,
102
- value: l ? i : n
97
+ pattern: I === "number" ? "\\d*" : A,
98
+ placeholder: T ? g : "",
99
+ ref: S || f,
100
+ size: T ? void 0 : 1,
101
+ type: I,
102
+ value: s ? i : n
103
103
  }
104
104
  ) }),
105
- /* @__PURE__ */ t.jsx(Z, { children: m && /* @__PURE__ */ t.jsx($, { hasLabel: !!a, hasValue: !!i, children: /* @__PURE__ */ t.jsx(G, { color: s ? q.gray200 : void 0, md: "Title1", children: E }) }) })
105
+ /* @__PURE__ */ t($, { children: m && /* @__PURE__ */ t(ee, { hasLabel: !!a, hasValue: !!i, children: /* @__PURE__ */ t(H, { color: l ? G.gray200 : void 0, md: "Title1", children: U }) }) })
106
106
  ] }),
107
- y && /* @__PURE__ */ t.jsx(H, { disabled: s, children: y })
107
+ V && /* @__PURE__ */ t(J, { disabled: l, children: V })
108
108
  ]
109
109
  }
110
110
  );
111
111
  });
112
112
  export {
113
- le as PostfixInput
113
+ ie as PostfixInput
114
114
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../chunks/jsx-runtime.B0Vkbtvx.js"),t=require("react"),A=require("../common/InputFrame/index.cjs.js"),o=require("./index.styled.cjs.js"),M=/[^0-9]/g,$=_=>{const{label:l,placeholder:I,value:E,setValue:v,disabled:a=!1,errorValidation:f=[],rrnInputType:N=13,rrn6:d,defaultRRN7Only:B}=_,[x,w]=t.useState(d||""),[p,L]=t.useState(B||""),[r,P]=t.useState(""),[c,T]=t.useState(E||""),[u,i]=t.useState(!1),V=u||!!E,q=!(l||V)&&!!I,[D,h]=t.useState(""),k=t.useRef(null),m=t.useRef(null),R=t.useRef(null),S=!!c,H=t.useMemo(()=>{let e="";for(let s=1;s<=r.length;s+=1)e+="●";return e},[r]),j=t.useCallback((e,s,g,F)=>{const{value:O}=e.target,b=O.trim();b.length<=g?(s(b.replace(M,"")),b.length===g&&F?.current?.focus()):F?.current?.focus()},[]),C=t.useCallback((e,s,g)=>{if(s.length<=0&&e.key==="Backspace")return g?.current?.focus()},[]),y=t.useCallback(e=>{for(let s=0;s<f.length;s++){if(!f[s]?.condition(e)&&e.length!==0){h(f[s]?.errorText??"");break}h("")}},[f]);return t.useEffect(()=>{const e=`${x}${p}${r}`;T(e),v(e)},[x,p,r,v]),t.useEffect(()=>{c||h(""),c.length>0&&!u&&y(c),c.length===13&&y(c)},[u,y,c]),t.useEffect(()=>{u&&h("")},[u]),t.useEffect(()=>{d&&i(!0)},[d]),n.jsxRuntimeExports.jsxs(A.InputFrame,{active:V,disabled:a,errorText:D,focused:u,label:l,children:[n.jsxRuntimeExports.jsx(o.BirthInput,{disabled:a,focused:u||S,hasLabel:!!l,onBlur:()=>i(!1),onChange:e=>j(e,w,6,m),onFocus:()=>i(!0),placeholder:q?I:"",ref:k,type:"tel",value:x}),(u||S)&&n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(o.Hyphen,{disabled:a,hasLabel:!!l,visible:x.length>=6,children:"-"}),n.jsxRuntimeExports.jsx(o.GenderNumberInput,{disabled:a,hasLabel:!!l,onBlur:()=>i(!1),onChange:e=>j(e,L,1,R),onFocus:()=>i(!0),onKeyDown:e=>C(e,p,k),ref:m,type:"tel",value:p}),n.jsxRuntimeExports.jsx(o.FakeInputWrapper,{hasLabel:!!l,children:N===7?n.jsxRuntimeExports.jsx(o.VirtualPlaceHolderSevenTypeInput,{disabled:a,onClick:()=>m?.current?.focus(),visible:p.length>0,children:"●●●●●●"}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(o.VirtualPlaceHolder,{disabled:a,children:H}),n.jsxRuntimeExports.jsx(o.SecurityPlaceHolder,{visible:p.length>0,children:"●●●●●●"}),n.jsxRuntimeExports.jsx(o.FakeSecurityInput,{autoFocus:!!(d&&B),disabled:a,hasLabel:!!l,onBlur:()=>i(!1),onChange:e=>j(e,P,6),onClick:()=>{R.current?.setSelectionRange(r.length,r.length)},onFocus:()=>{i(!0)},onKeyDown:e=>{if(e.key==="ArrowLeft"||e.key==="ArrowRight"){e.preventDefault(),e.stopPropagation();return}C(e,r,m)},ref:R,type:"tel",value:r})]})})]})]})};exports.ResidentNumberInput=$;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),t=require("react"),A=require("../common/InputFrame/index.cjs.js"),o=require("./index.styled.cjs.js"),M=/[^0-9]/g,$=N=>{const{label:s,placeholder:v,value:B,setValue:V,disabled:a=!1,errorValidation:d=[],rrnInputType:w=13,rrn6:h,defaultRRN7Only:j}=N,[p,L]=t.useState(h||""),[f,P]=t.useState(j||""),[r,T]=t.useState(""),[c,E]=t.useState(B||""),[u,i]=t.useState(!1),k=u||!!B,q=!(s||k)&&!!v,[D,g]=t.useState(""),S=t.useRef(null),y=t.useRef(null),I=t.useRef(null),C=!!c,H=t.useMemo(()=>{let e="";for(let l=1;l<=r.length;l+=1)e+="●";return e},[r]),m=t.useCallback((e,l,b,_)=>{const{value:O}=e.target,R=O.trim();R.length<=b?(l(R.replace(M,"")),R.length===b&&_?.current?.focus()):_?.current?.focus()},[]),F=t.useCallback((e,l,b)=>{if(l.length<=0&&e.key==="Backspace")return b?.current?.focus()},[]),x=t.useCallback(e=>{for(let l=0;l<d.length;l++){if(!d[l]?.condition(e)&&e.length!==0){g(d[l]?.errorText??"");break}g("")}},[d]);return t.useEffect(()=>{const e=`${p}${f}${r}`;E(e),V(e)},[p,f,r,V]),t.useEffect(()=>{c||g(""),c.length>0&&!u&&x(c),c.length===13&&x(c)},[u,x,c]),t.useEffect(()=>{u&&g("")},[u]),t.useEffect(()=>{h&&i(!0)},[h]),n.jsxs(A.InputFrame,{active:k,disabled:a,errorText:D,focused:u,label:s,children:[n.jsx(o.BirthInput,{disabled:a,focused:u||C,hasLabel:!!s,onBlur:()=>i(!1),onChange:e=>m(e,L,6,y),onFocus:()=>i(!0),placeholder:q?v:"",ref:S,type:"tel",value:p}),(u||C)&&n.jsxs(n.Fragment,{children:[n.jsx(o.Hyphen,{disabled:a,hasLabel:!!s,visible:p.length>=6,children:"-"}),n.jsx(o.GenderNumberInput,{disabled:a,hasLabel:!!s,onBlur:()=>i(!1),onChange:e=>m(e,P,1,I),onFocus:()=>i(!0),onKeyDown:e=>F(e,f,S),ref:y,type:"tel",value:f}),n.jsx(o.FakeInputWrapper,{hasLabel:!!s,children:w===7?n.jsx(o.VirtualPlaceHolderSevenTypeInput,{disabled:a,onClick:()=>y?.current?.focus(),visible:f.length>0,children:"●●●●●●"}):n.jsxs(n.Fragment,{children:[n.jsx(o.VirtualPlaceHolder,{disabled:a,children:H}),n.jsx(o.SecurityPlaceHolder,{visible:f.length>0,children:"●●●●●●"}),n.jsx(o.FakeSecurityInput,{autoFocus:!!(h&&j),disabled:a,hasLabel:!!s,onBlur:()=>i(!1),onChange:e=>m(e,T,6),onClick:()=>{I.current?.setSelectionRange(r.length,r.length)},onFocus:()=>{i(!0)},onKeyDown:e=>{if(e.key==="ArrowLeft"||e.key==="ArrowRight"){e.preventDefault(),e.stopPropagation();return}F(e,r,y)},ref:I,type:"tel",value:r})]})})]})]})};exports.ResidentNumberInput=$;
@@ -1,40 +1,40 @@
1
- import { j as t } from "../../../chunks/jsx-runtime.C63F304d.js";
2
- import { useState as i, useRef as v, useMemo as M, useCallback as V, useEffect as m } from "react";
3
- import { InputFrame as U } from "../common/InputFrame/index.es.js";
4
- import { BirthInput as W, Hyphen as q, GenderNumberInput as z, FakeInputWrapper as J, VirtualPlaceHolderSevenTypeInput as Q, VirtualPlaceHolder as X, SecurityPlaceHolder as Y, FakeSecurityInput as Z } from "./index.styled.es.js";
5
- const _ = /[^0-9]/g, oe = (P) => {
1
+ import { jsxs as V, jsx as o, Fragment as D } from "react/jsx-runtime";
2
+ import { useState as i, useRef as k, useMemo as W, useCallback as R, useEffect as b } from "react";
3
+ import { InputFrame as q } from "../common/InputFrame/index.es.js";
4
+ import { BirthInput as z, Hyphen as J, GenderNumberInput as Q, FakeInputWrapper as X, VirtualPlaceHolderSevenTypeInput as Y, VirtualPlaceHolder as Z, SecurityPlaceHolder as _, FakeSecurityInput as ee } from "./index.styled.es.js";
5
+ const te = /[^0-9]/g, ae = (H) => {
6
6
  const {
7
7
  label: r,
8
- placeholder: j,
9
- value: k,
10
- setValue: R,
8
+ placeholder: C,
9
+ value: F,
10
+ setValue: w,
11
11
  disabled: a = !1,
12
12
  errorValidation: h = [],
13
- rrnInputType: T = 13,
13
+ rrnInputType: A = 13,
14
14
  rrn6: f,
15
- defaultRRN7Only: F
16
- } = P, [p, D] = i(f || ""), [c, H] = i(F || ""), [l, A] = i(""), [s, E] = i(k || ""), [o, u] = i(!1), C = o || !!k, O = !(r || C) && !!j, [$, d] = i(""), w = v(null), g = v(null), x = v(null), L = !!s, G = M(() => {
15
+ defaultRRN7Only: x
16
+ } = H, [p, O] = i(f || ""), [c, $] = i(x || ""), [n, j] = i(""), [u, E] = i(F || ""), [l, s] = i(!1), L = l || !!F, G = !(r || L) && !!C, [K, d] = i(""), S = k(null), g = k(null), m = k(null), N = !!u, M = W(() => {
17
17
  let e = "";
18
- for (let n = 1; n <= l.length; n += 1)
18
+ for (let t = 1; t <= n.length; t += 1)
19
19
  e += "●";
20
20
  return e;
21
- }, [l]), b = V(
22
- (e, n, y, N) => {
23
- const { value: K } = e.target, B = K.trim();
24
- B.length <= y ? (n(B.replace(_, "")), B.length === y && N?.current?.focus()) : N?.current?.focus();
21
+ }, [n]), I = R(
22
+ (e, t, y, T) => {
23
+ const { value: U } = e.target, v = U.trim();
24
+ v.length <= y ? (t(v.replace(te, "")), v.length === y && T?.current?.focus()) : T?.current?.focus();
25
25
  },
26
26
  []
27
- ), S = V(
28
- (e, n, y) => {
29
- if (n.length <= 0 && e.key === "Backspace")
27
+ ), P = R(
28
+ (e, t, y) => {
29
+ if (t.length <= 0 && e.key === "Backspace")
30
30
  return y?.current?.focus();
31
31
  },
32
32
  []
33
- ), I = V(
33
+ ), B = R(
34
34
  (e) => {
35
- for (let n = 0; n < h.length; n++) {
36
- if (!h[n]?.condition(e) && e.length !== 0) {
37
- d(h[n]?.errorText ?? "");
35
+ for (let t = 0; t < h.length; t++) {
36
+ if (!h[t]?.condition(e) && e.length !== 0) {
37
+ d(h[t]?.errorText ?? "");
38
38
  break;
39
39
  }
40
40
  d("");
@@ -42,82 +42,82 @@ const _ = /[^0-9]/g, oe = (P) => {
42
42
  },
43
43
  [h]
44
44
  );
45
- return m(() => {
46
- const e = `${p}${c}${l}`;
47
- E(e), R(e);
48
- }, [p, c, l, R]), m(() => {
49
- s || d(""), s.length > 0 && !o && I(s), s.length === 13 && I(s);
50
- }, [o, I, s]), m(() => {
51
- o && d("");
52
- }, [o]), m(() => {
53
- f && u(!0);
54
- }, [f]), /* @__PURE__ */ t.jsxs(U, { active: C, disabled: a, errorText: $, focused: o, label: r, children: [
55
- /* @__PURE__ */ t.jsx(
56
- W,
45
+ return b(() => {
46
+ const e = `${p}${c}${n}`;
47
+ E(e), w(e);
48
+ }, [p, c, n, w]), b(() => {
49
+ u || d(""), u.length > 0 && !l && B(u), u.length === 13 && B(u);
50
+ }, [l, B, u]), b(() => {
51
+ l && d("");
52
+ }, [l]), b(() => {
53
+ f && s(!0);
54
+ }, [f]), /* @__PURE__ */ V(q, { active: L, disabled: a, errorText: K, focused: l, label: r, children: [
55
+ /* @__PURE__ */ o(
56
+ z,
57
57
  {
58
58
  disabled: a,
59
- focused: o || L,
59
+ focused: l || N,
60
60
  hasLabel: !!r,
61
- onBlur: () => u(!1),
62
- onChange: (e) => b(e, D, 6, g),
63
- onFocus: () => u(!0),
64
- placeholder: O ? j : "",
65
- ref: w,
61
+ onBlur: () => s(!1),
62
+ onChange: (e) => I(e, O, 6, g),
63
+ onFocus: () => s(!0),
64
+ placeholder: G ? C : "",
65
+ ref: S,
66
66
  type: "tel",
67
67
  value: p
68
68
  }
69
69
  ),
70
- (o || L) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
71
- /* @__PURE__ */ t.jsx(q, { disabled: a, hasLabel: !!r, visible: p.length >= 6, children: "-" }),
72
- /* @__PURE__ */ t.jsx(
73
- z,
70
+ (l || N) && /* @__PURE__ */ V(D, { children: [
71
+ /* @__PURE__ */ o(J, { disabled: a, hasLabel: !!r, visible: p.length >= 6, children: "-" }),
72
+ /* @__PURE__ */ o(
73
+ Q,
74
74
  {
75
75
  disabled: a,
76
76
  hasLabel: !!r,
77
- onBlur: () => u(!1),
78
- onChange: (e) => b(e, H, 1, x),
79
- onFocus: () => u(!0),
80
- onKeyDown: (e) => S(e, c, w),
77
+ onBlur: () => s(!1),
78
+ onChange: (e) => I(e, $, 1, m),
79
+ onFocus: () => s(!0),
80
+ onKeyDown: (e) => P(e, c, S),
81
81
  ref: g,
82
82
  type: "tel",
83
83
  value: c
84
84
  }
85
85
  ),
86
- /* @__PURE__ */ t.jsx(J, { hasLabel: !!r, children: T === 7 ? /* @__PURE__ */ t.jsx(
87
- Q,
86
+ /* @__PURE__ */ o(X, { hasLabel: !!r, children: A === 7 ? /* @__PURE__ */ o(
87
+ Y,
88
88
  {
89
89
  disabled: a,
90
90
  onClick: () => g?.current?.focus(),
91
91
  visible: c.length > 0,
92
92
  children: "●●●●●●"
93
93
  }
94
- ) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
95
- /* @__PURE__ */ t.jsx(X, { disabled: a, children: G }),
96
- /* @__PURE__ */ t.jsx(Y, { visible: c.length > 0, children: "●●●●●●" }),
97
- /* @__PURE__ */ t.jsx(
98
- Z,
94
+ ) : /* @__PURE__ */ V(D, { children: [
95
+ /* @__PURE__ */ o(Z, { disabled: a, children: M }),
96
+ /* @__PURE__ */ o(_, { visible: c.length > 0, children: "●●●●●●" }),
97
+ /* @__PURE__ */ o(
98
+ ee,
99
99
  {
100
- autoFocus: !!(f && F),
100
+ autoFocus: !!(f && x),
101
101
  disabled: a,
102
102
  hasLabel: !!r,
103
- onBlur: () => u(!1),
104
- onChange: (e) => b(e, A, 6),
103
+ onBlur: () => s(!1),
104
+ onChange: (e) => I(e, j, 6),
105
105
  onClick: () => {
106
- x.current?.setSelectionRange(l.length, l.length);
106
+ m.current?.setSelectionRange(n.length, n.length);
107
107
  },
108
108
  onFocus: () => {
109
- u(!0);
109
+ s(!0);
110
110
  },
111
111
  onKeyDown: (e) => {
112
112
  if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
113
113
  e.preventDefault(), e.stopPropagation();
114
114
  return;
115
115
  }
116
- S(e, l, g);
116
+ P(e, n, g);
117
117
  },
118
- ref: x,
118
+ ref: m,
119
119
  type: "tel",
120
- value: l
120
+ value: n
121
121
  }
122
122
  )
123
123
  ] }) })
@@ -125,5 +125,5 @@ const _ = /[^0-9]/g, oe = (P) => {
125
125
  ] });
126
126
  };
127
127
  export {
128
- oe as ResidentNumberInput
128
+ ae as ResidentNumberInput
129
129
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../chunks/jsx-runtime.B0Vkbtvx.js"),u=require("react"),R=require("../../ui/typography.cjs.js");require("../../../icons/src/icons/Alarm_fill.cjs.js");require("../../../icons/src/icons/Calendar.cjs.js");require("../../../icons/src/icons/Cancel.cjs.js");const w=require("../../../icons/src/icons/Cancel_circle.cjs.js");require("../../../icons/src/icons/Cart_fill.cjs.js");require("../../../icons/src/icons/Check.cjs.js");require("../../../icons/src/icons/Chevron_down.cjs.js");require("../../../icons/src/icons/Chevron_left.cjs.js");require("../../../icons/src/icons/Chevron_right.cjs.js");require("../../../icons/src/icons/Chevron_up.cjs.js");require("../../../icons/src/icons/Double_Chevron_left.cjs.js");require("../../../icons/src/icons/Double_Chevron_right.cjs.js");require("../../../icons/src/icons/Eye_fill.cjs.js");require("../../../icons/src/icons/Eye_slash_fill.cjs.js");require("../../../icons/src/icons/Filter.cjs.js");require("../../../icons/src/icons/Information.cjs.js");require("../../../icons/src/icons/Menu.cjs.js");require("../../../icons/src/icons/More.cjs.js");require("../../../icons/src/icons/Person_fill.cjs.js");require("../../../icons/src/icons/Plus.cjs.js");require("../../../icons/src/icons/Question_circle.cjs.js");require("../../../icons/src/icons/Re.cjs.js");require("../../../icons/src/icons/Search.cjs.js");require("../../../icons/src/icons/Setting_fill.cjs.js");require("../../../icons/src/icons/Share.cjs.js");require("../../../icons/src/icons/Store.cjs.js");const i=require("../../../lib/utils.cjs.js"),E=o=>o&&typeof o=="object"&&"default"in o?o:{default:o},N=E(u),q=N.default.forwardRef(({className:o,type:f,label:s,error:a,decoration:n,placeholder:h,onDelete:d,guideMessage:x,...r},y)=>{const[l,p]=u.useState(!1),[b,m]=u.useState(!1),c=l||b,g=s&&c||!s,j=!n&&d!==void 0&&l&&b,v=e=>{e.stopPropagation(),d?.()};return u.useEffect(()=>{m(!!r.value)},[r.value]),t.jsxRuntimeExports.jsxs("div",{className:"relative",children:[t.jsxRuntimeExports.jsxs("div",{className:i.cn("relative flex items-center rounded-[10px] bg-white","border border-transparent hover:border hover:border-gray-600","transition-colors duration-200",l?"border border-gray-600":"",a?"border border-red-400 hover:border-red-400":"",r.disabled&&"cursor-not-allowed border border-gray-50 bg-gray-25 hover:border-gray-50"),children:[s&&t.jsxRuntimeExports.jsx("label",{className:i.cn("absolute left-[20px] text-gray-200 transition-all duration-200",c?"typo-b2 top-[11px]":"typo-t1 top-1/2 -translate-y-1/2",r.disabled&&"cursor-not-allowed"),htmlFor:r.id,children:s}),t.jsxRuntimeExports.jsxs("div",{className:"flex w-full items-end justify-between pr-[15px]",children:[t.jsxRuntimeExports.jsx("input",{className:i.cn("typo-t1 w-full py-[20px] pl-[20px] outline-none","file:border-0 file:bg-transparent","typo-t1 placeholder:text-gray-200","disabled:cursor-not-allowed disabled:text-gray-200",s&&c&&"pt-[30px] pb-[10px] pl-[20px]",n&&"pr-10",o),onBlur:e=>{p(!1),r.onBlur?.(e)},onChange:e=>{m(e.target.value.length>0),r.onChange?.(e)},onFocus:e=>{p(!0),r.onFocus?.(e)},placeholder:g?h:void 0,ref:y,type:f,...r}),j&&t.jsxRuntimeExports.jsx("button",{className:i.cn("absolute right-[15px] cursor-pointer",s?"bottom-[10px]":"bottom-[19px]"),onClick:v,onMouseDown:e=>e.preventDefault(),type:"button",children:t.jsxRuntimeExports.jsx(w.default,{className:"text-gray-200"})})]}),n&&t.jsxRuntimeExports.jsx("div",{className:"absolute right-[15px] flex items-center",children:n})]}),(a||x)&&t.jsxRuntimeExports.jsx(R.Typography,{className:i.cn("mt-[9px] ml-[5px]",a?"text-red-400":"text-gray-400"),variant:"b2",children:a||x})]})});q.displayName="TextField";exports.TextField=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("react"),w=require("../../ui/typography.cjs.js");require("../../../icons/src/icons/Alarm_fill.cjs.js");require("../../../icons/src/icons/Calendar.cjs.js");require("../../../icons/src/icons/Cancel.cjs.js");const N=require("../../../icons/src/icons/Cancel_circle.cjs.js");require("../../../icons/src/icons/Cart_fill.cjs.js");require("../../../icons/src/icons/Check.cjs.js");require("../../../icons/src/icons/Chevron_down.cjs.js");require("../../../icons/src/icons/Chevron_left.cjs.js");require("../../../icons/src/icons/Chevron_right.cjs.js");require("../../../icons/src/icons/Chevron_up.cjs.js");require("../../../icons/src/icons/Double_Chevron_left.cjs.js");require("../../../icons/src/icons/Double_Chevron_right.cjs.js");require("../../../icons/src/icons/Eye_fill.cjs.js");require("../../../icons/src/icons/Eye_slash_fill.cjs.js");require("../../../icons/src/icons/Filter.cjs.js");require("../../../icons/src/icons/Information.cjs.js");require("../../../icons/src/icons/Menu.cjs.js");require("../../../icons/src/icons/More.cjs.js");require("../../../icons/src/icons/Person_fill.cjs.js");require("../../../icons/src/icons/Plus.cjs.js");require("../../../icons/src/icons/Question_circle.cjs.js");require("../../../icons/src/icons/Re.cjs.js");require("../../../icons/src/icons/Search.cjs.js");require("../../../icons/src/icons/Setting_fill.cjs.js");require("../../../icons/src/icons/Share.cjs.js");require("../../../icons/src/icons/Store.cjs.js");const i=require("../../../lib/utils.cjs.js"),_=o=>o&&typeof o=="object"&&"default"in o?o:{default:o},F=_(n),f=F.default.forwardRef(({className:o,type:h,label:a,error:s,decoration:l,placeholder:y,onDelete:d,guideMessage:x,...r},g)=>{const[u,p]=n.useState(!1),[b,q]=n.useState(!1),c=u||b,m=a&&c||!a,v=!l&&d!==void 0&&u&&b,j=e=>{e.stopPropagation(),d?.()};return n.useEffect(()=>{q(!!r.value)},[r.value]),t.jsxs("div",{className:"relative",children:[t.jsxs("div",{className:i.cn("relative flex items-center rounded-[10px] bg-white","border border-transparent hover:border hover:border-gray-600","transition-colors duration-200",u?"border border-gray-600":"",s?"border border-red-400 hover:border-red-400":"",r.disabled&&"cursor-not-allowed border border-gray-50 bg-gray-25 hover:border-gray-50"),children:[a&&t.jsx("label",{className:i.cn("absolute left-[20px] text-gray-200 transition-all duration-200",c?"typo-b2 top-[11px]":"typo-t1 top-1/2 -translate-y-1/2",r.disabled&&"cursor-not-allowed"),htmlFor:r.id,children:a}),t.jsxs("div",{className:"flex w-full items-end justify-between pr-[15px]",children:[t.jsx("input",{className:i.cn("typo-t1 w-full py-[20px] pl-[20px] outline-none","file:border-0 file:bg-transparent","typo-t1 placeholder:text-gray-200","disabled:cursor-not-allowed disabled:text-gray-200",a&&c&&"pt-[30px] pb-[10px] pl-[20px]",l&&"pr-10",o),onBlur:e=>{p(!1),r.onBlur?.(e)},onChange:e=>{q(e.target.value.length>0),r.onChange?.(e)},onFocus:e=>{p(!0),r.onFocus?.(e)},placeholder:m?y:void 0,ref:g,type:h,...r}),v&&t.jsx("button",{className:i.cn("absolute right-[15px] cursor-pointer",a?"bottom-[10px]":"bottom-[19px]"),onClick:j,onMouseDown:e=>e.preventDefault(),type:"button",children:t.jsx(N.default,{className:"text-gray-200"})})]}),l&&t.jsx("div",{className:"absolute right-[15px] flex items-center",children:l})]}),(s||x)&&t.jsx(w.Typography,{className:i.cn("mt-[9px] ml-[5px]",s?"text-red-400":"text-gray-400"),variant:"b2",children:s||x})]})});f.displayName="TextField";exports.TextField=f;