@nurihaus/web-design-system 3.9.3 → 3.9.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 (270) hide show
  1. package/README.md +2 -0
  2. package/dist/.storybook/migration.d.ts +1 -0
  3. package/dist/.storybook/usage.d.ts +23 -0
  4. package/dist/agreement.js +1110 -0
  5. package/dist/ai/components.md +3504 -250
  6. package/dist/ai/motion.md +58 -6
  7. package/dist/ai/tokens.md +53 -25
  8. package/dist/alphabet-keypad.js +446 -0
  9. package/dist/asset.js +47 -5
  10. package/dist/avatar.js +50 -8
  11. package/dist/bar-chart.js +478 -0
  12. package/dist/board-row.js +379 -0
  13. package/dist/border.js +223 -0
  14. package/dist/bottom-cta.js +378 -0
  15. package/dist/bottom-info.js +253 -0
  16. package/dist/bottom-nav.js +12 -64
  17. package/dist/bottom-sheet.js +608 -0
  18. package/dist/check-box.js +29 -162
  19. package/dist/chip-group.js +2 -2
  20. package/dist/{chunk-5589.js → chunk-1657.js} +2 -34
  21. package/dist/{chunk-9387.js → chunk-1768.js} +2 -2
  22. package/dist/chunk-1983.js +37 -1
  23. package/dist/chunk-2046.js +73 -0
  24. package/dist/chunk-2060.js +34 -0
  25. package/dist/chunk-2308.js +184 -0
  26. package/dist/chunk-2777.js +1 -0
  27. package/dist/chunk-3091.js +54 -0
  28. package/dist/chunk-4109.js +115 -0
  29. package/dist/chunk-4205.js +47 -0
  30. package/dist/chunk-4324.js +109 -0
  31. package/dist/chunk-4328.js +69 -0
  32. package/dist/chunk-4558.js +5 -116
  33. package/dist/chunk-4917.js +1 -1
  34. package/dist/chunk-5670.js +1 -29
  35. package/dist/chunk-6096.js +176 -0
  36. package/dist/{chunk-8377.js → chunk-6149.js} +2 -36
  37. package/dist/chunk-6478.js +155 -0
  38. package/dist/chunk-6499.js +39 -0
  39. package/dist/chunk-6616.js +84 -0
  40. package/dist/chunk-674.js +133 -0
  41. package/dist/chunk-7024.js +152 -0
  42. package/dist/chunk-7232.js +122 -0
  43. package/dist/chunk-7298.js +1 -1
  44. package/dist/chunk-7589.js +40 -0
  45. package/dist/chunk-7593.js +85 -0
  46. package/dist/chunk-7653.js +16 -0
  47. package/dist/chunk-7737.js +21 -0
  48. package/dist/chunk-7739.js +1 -5
  49. package/dist/chunk-829.js +38 -0
  50. package/dist/chunk-8491.js +43 -0
  51. package/dist/chunk-8787.js +0 -180
  52. package/dist/chunk-8982.js +186 -0
  53. package/dist/chunk-910.js +1 -1
  54. package/dist/chunk-9497.js +11 -1
  55. package/dist/collapsible-menu.js +3 -3
  56. package/dist/components/agreement/agreement-props.d.ts +44 -0
  57. package/dist/components/agreement/agreement-type.d.ts +107 -0
  58. package/dist/components/agreement/agreement.d.ts +26 -0
  59. package/dist/components/agreement/agreement.stories.d.ts +72 -0
  60. package/dist/components/agreement/base-agreement.d.ts +40 -0
  61. package/dist/components/asset/asset-type.d.ts +34 -1
  62. package/dist/components/asset/asset.d.ts +9 -7
  63. package/dist/components/asset/asset.stories.d.ts +11 -5
  64. package/dist/components/asset/base-asset.d.ts +5 -1
  65. package/dist/components/bar-chart/bar-chart-fill.d.ts +6 -0
  66. package/dist/components/bar-chart/bar-chart-props.d.ts +17 -0
  67. package/dist/components/bar-chart/bar-chart-type.d.ts +52 -0
  68. package/dist/components/bar-chart/bar-chart.d.ts +4 -0
  69. package/dist/components/bar-chart/bar-chart.stories.d.ts +65 -0
  70. package/dist/components/bar-chart/base-bar-chart.d.ts +17 -0
  71. package/dist/components/board-row/base-board-row.d.ts +13 -0
  72. package/dist/components/board-row/board-row-props.d.ts +2 -0
  73. package/dist/components/board-row/board-row-type.d.ts +22 -0
  74. package/dist/components/board-row/board-row.d.ts +8 -0
  75. package/dist/components/board-row/board-row.stories.d.ts +32 -0
  76. package/dist/components/border/base-border.d.ts +4 -0
  77. package/dist/components/border/border-props.d.ts +10 -0
  78. package/dist/components/border/border-type.d.ts +7 -0
  79. package/dist/components/border/border.d.ts +5 -0
  80. package/dist/components/border/border.stories.d.ts +19 -0
  81. package/dist/components/bottom-cta/base-bottom-cta.d.ts +4 -0
  82. package/dist/components/bottom-cta/bottom-cta-props.d.ts +10 -0
  83. package/dist/components/bottom-cta/bottom-cta-type.d.ts +39 -0
  84. package/dist/components/bottom-cta/bottom-cta.d.ts +35 -0
  85. package/dist/components/bottom-cta/bottom-cta.stories.d.ts +79 -0
  86. package/dist/components/bottom-info/base-bottom-info.d.ts +4 -0
  87. package/dist/components/bottom-info/bottom-info-props.d.ts +1 -0
  88. package/dist/components/bottom-info/bottom-info-type.d.ts +6 -0
  89. package/dist/components/bottom-info/bottom-info.d.ts +4 -0
  90. package/dist/components/bottom-info/bottom-info.stories.d.ts +22 -0
  91. package/dist/components/bottom-sheet/base-bottom-sheet.d.ts +17 -0
  92. package/dist/components/bottom-sheet/bottom-sheet-props.d.ts +1 -0
  93. package/dist/components/bottom-sheet/bottom-sheet-snap.d.ts +15 -0
  94. package/dist/components/bottom-sheet/bottom-sheet-type.d.ts +55 -0
  95. package/dist/components/bottom-sheet/bottom-sheet.d.ts +4 -0
  96. package/dist/components/bottom-sheet/bottom-sheet.stories.d.ts +47 -0
  97. package/dist/components/check-box/check-box-type.d.ts +3 -0
  98. package/dist/components/core/composer/index.d.ts +2 -0
  99. package/dist/components/elements/text/text-props.d.ts +1 -0
  100. package/dist/components/empty-state/empty-state-props.d.ts +5 -3
  101. package/dist/components/empty-state/empty-state-type.d.ts +17 -5
  102. package/dist/components/empty-state/empty-state.d.ts +8 -3
  103. package/dist/components/empty-state/empty-state.stories.d.ts +299 -7
  104. package/dist/components/grid-list/base-grid-list.d.ts +10 -0
  105. package/dist/components/grid-list/grid-list-props.d.ts +11 -0
  106. package/dist/components/grid-list/grid-list-type.d.ts +24 -0
  107. package/dist/components/grid-list/grid-list.d.ts +6 -0
  108. package/dist/components/grid-list/grid-list.stories.d.ts +30 -0
  109. package/dist/components/highlight/base-highlight.d.ts +14 -0
  110. package/dist/components/highlight/highlight-props.d.ts +2 -0
  111. package/dist/components/highlight/highlight-type.d.ts +42 -0
  112. package/dist/components/highlight/highlight.d.ts +4 -0
  113. package/dist/components/highlight/highlight.stories.d.ts +31 -0
  114. package/dist/components/icon/icon-paths.d.ts +16 -0
  115. package/dist/components/icon/icon.stories.d.ts +1 -1
  116. package/dist/components/icon-button/icon-button-type.d.ts +2 -0
  117. package/dist/components/icon-button/icon-button.stories.d.ts +2 -0
  118. package/dist/components/keypad/alphabet-keypad.d.ts +4 -0
  119. package/dist/components/keypad/alphabet-keypad.stories.d.ts +24 -0
  120. package/dist/components/keypad/base-keypad.d.ts +6 -0
  121. package/dist/components/keypad/full-secure-keypad.d.ts +4 -0
  122. package/dist/components/keypad/full-secure-keypad.stories.d.ts +26 -0
  123. package/dist/components/keypad/keypad-layout.d.ts +16 -0
  124. package/dist/components/keypad/keypad-props.d.ts +16 -0
  125. package/dist/components/keypad/keypad-type.d.ts +66 -0
  126. package/dist/components/keypad/number-keypad.d.ts +4 -0
  127. package/dist/components/keypad/number-keypad.stories.d.ts +26 -0
  128. package/dist/components/keypad/use-keypad-decoys.d.ts +10 -0
  129. package/dist/components/list/base-list.d.ts +3 -0
  130. package/dist/components/list/list-footer.d.ts +5 -0
  131. package/dist/components/list/list-footer.stories.d.ts +304 -0
  132. package/dist/components/list/list-group.d.ts +1 -1
  133. package/dist/components/list/list-group.stories.d.ts +2 -0
  134. package/dist/components/list/list-header.d.ts +5 -0
  135. package/dist/components/list/list-header.stories.d.ts +302 -0
  136. package/dist/components/list/list-props.d.ts +33 -1
  137. package/dist/components/list/list-row.d.ts +5 -4
  138. package/dist/components/list/list-row.stories.d.ts +15 -1
  139. package/dist/components/list/list-type.d.ts +44 -2
  140. package/dist/components/logging/logging-type.d.ts +1 -1
  141. package/dist/components/menu/base-menu.d.ts +21 -0
  142. package/dist/components/menu/menu-props.d.ts +2 -0
  143. package/dist/components/menu/menu-type.d.ts +70 -0
  144. package/dist/components/menu/menu.d.ts +8 -0
  145. package/dist/components/menu/menu.stories.d.ts +54 -0
  146. package/dist/components/message/message.stories.d.ts +4 -4
  147. package/dist/components/notice/notice.stories.d.ts +1 -1
  148. package/dist/components/numeric-spinner/base-numeric-spinner.d.ts +8 -0
  149. package/dist/components/numeric-spinner/numeric-spinner-props.d.ts +5 -0
  150. package/dist/components/numeric-spinner/numeric-spinner-type.d.ts +29 -0
  151. package/dist/components/numeric-spinner/numeric-spinner.d.ts +4 -0
  152. package/dist/components/numeric-spinner/numeric-spinner.stories.d.ts +36 -0
  153. package/dist/components/overlay/overlay-context.d.ts +10 -0
  154. package/dist/components/overlay/overlay-provider.d.ts +1 -1
  155. package/dist/components/overlay/overlay-type.d.ts +23 -0
  156. package/dist/components/overlay/overlay.d.ts +2 -1
  157. package/dist/components/overlay/overlay.stories.d.ts +2 -0
  158. package/dist/components/overlay/use-bottom-sheet.d.ts +3 -0
  159. package/dist/components/paragraph/base-paragraph.d.ts +14 -0
  160. package/dist/components/paragraph/paragraph-props.d.ts +25 -0
  161. package/dist/components/paragraph/paragraph-type.d.ts +33 -0
  162. package/dist/components/paragraph/paragraph.d.ts +9 -0
  163. package/dist/components/paragraph/paragraph.stories.d.ts +54 -0
  164. package/dist/components/post/base-post.d.ts +19 -0
  165. package/dist/components/post/post-props.d.ts +31 -0
  166. package/dist/components/post/post-type.d.ts +34 -0
  167. package/dist/components/post/post.d.ts +16 -0
  168. package/dist/components/post/post.stories.d.ts +35 -0
  169. package/dist/components/rating/base-rating.d.ts +11 -0
  170. package/dist/components/rating/rating-props.d.ts +11 -0
  171. package/dist/components/rating/rating-type.d.ts +46 -0
  172. package/dist/components/rating/rating.d.ts +4 -0
  173. package/dist/components/rating/rating.stories.d.ts +35 -0
  174. package/dist/components/search-field/base-search-field.d.ts +4 -0
  175. package/dist/components/search-field/search-field-props.d.ts +2 -0
  176. package/dist/components/search-field/search-field-type.d.ts +25 -0
  177. package/dist/components/search-field/search-field.d.ts +8 -0
  178. package/dist/components/search-field/search-field.stories.d.ts +39 -0
  179. package/dist/components/segmented-control/base-segmented-control.d.ts +8 -0
  180. package/dist/components/segmented-control/segmented-control-props.d.ts +5 -0
  181. package/dist/components/segmented-control/segmented-control-type.d.ts +31 -0
  182. package/dist/components/segmented-control/segmented-control.d.ts +4 -0
  183. package/dist/components/segmented-control/segmented-control.stories.d.ts +39 -0
  184. package/dist/components/skeleton/skeleton.stories.d.ts +2 -2
  185. package/dist/components/slider/base-slider.d.ts +13 -0
  186. package/dist/components/slider/slider-props.d.ts +10 -0
  187. package/dist/components/slider/slider-type.d.ts +46 -0
  188. package/dist/components/slider/slider.d.ts +4 -0
  189. package/dist/components/slider/slider.stories.d.ts +38 -0
  190. package/dist/components/split-text-field/base-split-text-field.d.ts +4 -0
  191. package/dist/components/split-text-field/split-text-field-props.d.ts +23 -0
  192. package/dist/components/split-text-field/split-text-field-type.d.ts +46 -0
  193. package/dist/components/split-text-field/split-text-field.d.ts +7 -0
  194. package/dist/components/split-text-field/split-text-field.stories.d.ts +38 -0
  195. package/dist/components/table-row/base-table-row.d.ts +4 -0
  196. package/dist/components/table-row/table-row-props.d.ts +14 -0
  197. package/dist/components/table-row/table-row-type.d.ts +13 -0
  198. package/dist/components/table-row/table-row.d.ts +5 -0
  199. package/dist/components/table-row/table-row.stories.d.ts +24 -0
  200. package/dist/components/text-button/base-text-button.d.ts +3 -0
  201. package/dist/components/text-button/text-button-props.d.ts +19 -0
  202. package/dist/components/text-button/text-button-type.d.ts +17 -0
  203. package/dist/components/text-button/text-button.d.ts +5 -0
  204. package/dist/components/text-button/text-button.stories.d.ts +47 -0
  205. package/dist/components/text-field/text-field-type.d.ts +2 -1
  206. package/dist/components/toast/toast.stories.d.ts +2 -2
  207. package/dist/components/top/base-top.d.ts +4 -0
  208. package/dist/components/top/top-props.d.ts +12 -0
  209. package/dist/components/top/top-type.d.ts +20 -0
  210. package/dist/components/top/top.d.ts +5 -0
  211. package/dist/components/top/top.stories.d.ts +320 -0
  212. package/dist/components.css +2221 -116
  213. package/dist/cta-button.js +11 -9
  214. package/dist/drawer.js +18 -113
  215. package/dist/drop-down.js +4 -4
  216. package/dist/empty-state.js +16 -7
  217. package/dist/full-secure-keypad.js +524 -0
  218. package/dist/grid-list.js +378 -0
  219. package/dist/helpers/hooks/useIndicatorPosition.d.ts +7 -0
  220. package/dist/helpers/hooks/useKeyboardInset.d.ts +5 -0
  221. package/dist/helpers/hooks/useScrollStart.d.ts +9 -0
  222. package/dist/helpers/motion/use-reveal-children.d.ts +6 -0
  223. package/dist/helpers/types/propsDef.d.ts +4 -2
  224. package/dist/highlight.js +492 -0
  225. package/dist/icon-button.js +53 -96
  226. package/dist/icon-text-badge.js +5 -3
  227. package/dist/icon-text-option-badge.js +4 -2
  228. package/dist/index.d.ts +52 -4
  229. package/dist/index.js +11495 -4918
  230. package/dist/list-footer.js +339 -0
  231. package/dist/list-group.js +61 -18
  232. package/dist/list-header.js +293 -0
  233. package/dist/list-row.js +243 -26
  234. package/dist/loading.js +7 -5
  235. package/dist/media-thumbnail.js +6 -6
  236. package/dist/menu.js +527 -0
  237. package/dist/message-composer.js +2 -2
  238. package/dist/modal-with-double-button.js +17 -13
  239. package/dist/modal.js +9 -7
  240. package/dist/notice.js +14 -12
  241. package/dist/number-keypad.js +436 -0
  242. package/dist/numeric-spinner.js +396 -0
  243. package/dist/option-badge.js +5 -3
  244. package/dist/overlay.js +555 -21
  245. package/dist/pagination.js +2 -2
  246. package/dist/paragraph.js +286 -0
  247. package/dist/post.js +568 -0
  248. package/dist/radio.js +5 -3
  249. package/dist/rating.js +437 -0
  250. package/dist/scripts/usage-doc.d.mts +83 -0
  251. package/dist/search-field.js +516 -0
  252. package/dist/segmented-control.js +409 -0
  253. package/dist/skeleton-group.js +28 -151
  254. package/dist/skeleton.js +3 -1
  255. package/dist/slider.js +419 -0
  256. package/dist/split-text-field.js +498 -0
  257. package/dist/styles.css +1926 -159
  258. package/dist/switch.js +5 -3
  259. package/dist/table-row.js +284 -0
  260. package/dist/tabs.js +13 -69
  261. package/dist/text-area.js +7 -5
  262. package/dist/text-button.js +357 -0
  263. package/dist/text-field.js +47 -204
  264. package/dist/text.js +5 -7
  265. package/dist/toast.js +15 -13
  266. package/dist/tokens.css +66 -10
  267. package/dist/tooltip.js +2 -2
  268. package/dist/top.js +312 -0
  269. package/package.json +107 -2
  270. package/dist/chunk-3839.js +0 -54
@@ -0,0 +1,498 @@
1
+ "use client";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
4
+ /******/ var __webpack_modules__ = ({
5
+
6
+ /***/ 4943
7
+ (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
8
+
9
+
10
+ // EXPORTS
11
+ __nuri_require__.d(__webpack_exports__, {
12
+ A: () => (/* binding */ split_text_field)
13
+ });
14
+
15
+ // EXTERNAL MODULE: external {"root":"jsx-runtime","commonjs2":"react/jsx-runtime","commonjs":"react/jsx-runtime","amd":"react/jsx-runtime","module":"react/jsx-runtime"}
16
+ var jsx_runtime_ = __nuri_require__(612);
17
+ // EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react","module":"react"}
18
+ var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
19
+ // EXTERNAL MODULE: ./helpers/hooks/useTrack.ts
20
+ var useTrack = __nuri_require__(4560);
21
+ // EXTERNAL MODULE: ./helpers/utils/classNames.js
22
+ var classNames = __nuri_require__(3274);
23
+ // EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
24
+ var getMergedProps = __nuri_require__(7335);
25
+ // EXTERNAL MODULE: ./components/icon/icon.tsx
26
+ var icon = __nuri_require__(3547);
27
+ // EXTERNAL MODULE: ./components/text-field/base-text-field.tsx
28
+ var base_text_field = __nuri_require__(4709);
29
+ ;// ./components/split-text-field/base-split-text-field.tsx
30
+ var __assign = undefined && undefined.__assign || function () {
31
+ __assign = Object.assign || function (t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
35
+ }
36
+ return t;
37
+ };
38
+ return __assign.apply(this, arguments);
39
+ };
40
+ var __rest = undefined && undefined.__rest || function (s, e) {
41
+ var t = {};
42
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
43
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
44
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
45
+ }
46
+ return t;
47
+ };
48
+
49
+
50
+
51
+ var BaseSplitTextField = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
52
+ var className = props.className,
53
+ restProps = __rest(props, ["className"]);
54
+ return (0,jsx_runtime_.jsx)("div", __assign({
55
+ ref: ref,
56
+ className: (0,classNames/* classNames */.x)('nuri-theme base-split-text-field', className),
57
+ role: 'group'
58
+ }, restProps));
59
+ });
60
+ BaseSplitTextField.displayName = 'BaseSplitTextField';
61
+ /* harmony default export */ const base_split_text_field = (BaseSplitTextField);
62
+ // EXTERNAL MODULE: ./helpers/props/common-props.ts
63
+ var common_props = __nuri_require__(7298);
64
+ // EXTERNAL MODULE: ./components/text-field/text-field-props.ts
65
+ var text_field_props = __nuri_require__(244);
66
+ ;// ./components/split-text-field/split-text-field-props.ts
67
+
68
+
69
+ /** 크기는 TextField 와 같다. 같은 입력 상자 CSS 를 쓴다 */
70
+
71
+ var splitTextFieldProps = {
72
+ size: text_field_props/* textFieldProps */.g.size,
73
+ width: (0,common_props/* widthProp */.Iw)('100%')
74
+ };
75
+ /** 주민등록번호 13자리. 뒤 7자리를 가린다 */
76
+ var rrn13Spec = {
77
+ lengths: [6, 7],
78
+ defaultMask: true,
79
+ labels: ['주민등록번호 앞 6자리', '주민등록번호 뒤 7자리'],
80
+ hiddenDigits: 0,
81
+ className: 'split-text-field-rrn13'
82
+ };
83
+ /** 생년월일 6자리와 성별 1자리. 나머지 6자리는 점으로만 보인다 */
84
+ var rrnFirst7Spec = {
85
+ lengths: [6, 1],
86
+ defaultMask: false,
87
+ labels: ['주민등록번호 앞 6자리', '주민등록번호 뒤 첫 자리'],
88
+ hiddenDigits: 6,
89
+ className: 'split-text-field-rrn-first7'
90
+ };
91
+ ;// ./components/split-text-field/split-text-field.tsx
92
+ var split_text_field_assign = undefined && undefined.__assign || function () {
93
+ split_text_field_assign = Object.assign || function (t) {
94
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
95
+ s = arguments[i];
96
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
97
+ }
98
+ return t;
99
+ };
100
+ return split_text_field_assign.apply(this, arguments);
101
+ };
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+ var splitRaw = function splitRaw(raw, _a) {
112
+ var first = _a[0],
113
+ second = _a[1];
114
+ return [raw.slice(0, first), raw.slice(first, first + second)];
115
+ };
116
+ var digitsOf = function digitsOf(length) {
117
+ return {
118
+ transform: function transform(raw) {
119
+ return raw;
120
+ },
121
+ reset: function reset(display) {
122
+ return display.replace(/\D/g, '').slice(0, length);
123
+ }
124
+ };
125
+ };
126
+ var focusAtEnd = function focusAtEnd(input) {
127
+ if (!input) return;
128
+ input.focus();
129
+ input.setSelectionRange(input.value.length, input.value.length);
130
+ };
131
+ var SplitTextFieldBody = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
132
+ var spec = props.spec,
133
+ className = props.className,
134
+ style = props.style,
135
+ size = props.size,
136
+ width = props.width,
137
+ value = props.value,
138
+ defaultValue = props.defaultValue,
139
+ onChange = props.onChange,
140
+ name = props.name,
141
+ title = props.title,
142
+ helperText = props.helperText,
143
+ isError = props.isError,
144
+ disabled = props.disabled,
145
+ first = props.first,
146
+ second = props.second,
147
+ _a = props.mask,
148
+ mask = _a === void 0 ? spec.defaultMask : _a,
149
+ clearable = props.clearable,
150
+ onClear = props.onClear,
151
+ track = props.track,
152
+ trackProps = props.trackProps;
153
+ // size 는 입력 상자의 클래스가 되고 width·style 은 루트에 붙는다
154
+ var _b = (0,getMergedProps/* getMergedProps */.p)({
155
+ size: size,
156
+ width: width,
157
+ style: style
158
+ }, splitTextFieldProps),
159
+ sizeClassName = _b.className,
160
+ rootStyle = _b.style;
161
+ var _c = spec.lengths,
162
+ firstLength = _c[0],
163
+ secondLength = _c[1];
164
+ var emit = (0,useTrack/* useTrack */.n)('SplitTextField', {
165
+ track: track,
166
+ trackProps: trackProps
167
+ });
168
+ var titleId = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useId)();
169
+ var firstRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useRef)(null);
170
+ var secondRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useRef)(null);
171
+ var focusedRawRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useRef)('');
172
+ var _d = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)(false),
173
+ focusWithin = _d[0],
174
+ setFocusWithin = _d[1];
175
+ // 앞 칸이 덜 찬 채 뒤 칸을 고쳐도 칸마다 글자가 남도록 두 칸을 따로 든다.
176
+ // value 가 이 둘을 이은 것과 다르면(밖에서 바꿨거나 받아들이지 않았으면) value 를 다시 나눈다
177
+ var _e = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)(function () {
178
+ var _a;
179
+ return splitRaw((_a = value !== null && value !== void 0 ? value : defaultValue) !== null && _a !== void 0 ? _a : '', spec.lengths);
180
+ }),
181
+ parts = _e[0],
182
+ setParts = _e[1];
183
+ var shown = value === undefined || parts.join('') === value ? parts : splitRaw(value, spec.lengths);
184
+ var raw = shown.join('');
185
+ var change = function change(next) {
186
+ setParts(next);
187
+ onChange === null || onChange === void 0 ? void 0 : onChange(next.join(''));
188
+ };
189
+ var handleSecondKeyDown = function handleSecondKeyDown(event) {
190
+ if (event.key !== 'Backspace' || event.currentTarget.value !== '') return;
191
+ event.preventDefault();
192
+ focusAtEnd(firstRef.current);
193
+ };
194
+ var showClear = clearable && raw !== '' && focusWithin && !disabled;
195
+ return (0,jsx_runtime_.jsxs)(base_split_text_field, {
196
+ ref: ref,
197
+ className: (0,classNames/* classNames */.x)(className, 'text-field', 'split-text-field', spec.className),
198
+ style: rootStyle,
199
+ "aria-labelledby": title ? titleId : undefined,
200
+ onFocus: function onFocus() {
201
+ if (!focusWithin) focusedRawRef.current = raw;
202
+ setFocusWithin(true);
203
+ },
204
+ onBlur: function onBlur(event) {
205
+ if (event.currentTarget.contains(event.relatedTarget)) return;
206
+ setFocusWithin(false);
207
+ if (raw !== focusedRawRef.current) emit('change');
208
+ },
209
+ children: [title && (0,jsx_runtime_.jsx)("div", {
210
+ id: titleId,
211
+ children: (0,jsx_runtime_.jsx)(base_text_field/* default */.A.Label, {
212
+ className: 'text-field-title',
213
+ text: title
214
+ })
215
+ }), (0,jsx_runtime_.jsxs)("div", {
216
+ className: (0,classNames/* classNames */.x)('nuri-theme text-field-input-wrapper', sizeClassName, {
217
+ error: isError
218
+ }),
219
+ children: [(0,jsx_runtime_.jsx)(base_text_field/* default */.A, {
220
+ value: shown[0],
221
+ format: digitsOf(firstLength + secondLength),
222
+ onChange: function onChange(event) {
223
+ var digits = event.target.value;
224
+ // 앞 칸을 넘친 글자(붙여 넣은 13자리 등)는 뒤 칸이 비어 있을 때만 뒤 칸으로 넘긴다
225
+ var overflow = digits.slice(firstLength);
226
+ change([digits.slice(0, firstLength), shown[1] === '' ? overflow : shown[1]]);
227
+ if (digits.length > shown[0].length && digits.length >= firstLength) {
228
+ focusAtEnd(secondRef.current);
229
+ }
230
+ },
231
+ children: (0,jsx_runtime_.jsx)(base_text_field/* default */.A.Input, {
232
+ ref: firstRef,
233
+ className: 'split-text-field-input split-text-field-first',
234
+ inputMode: 'numeric',
235
+ autoComplete: 'off',
236
+ "aria-label": spec.labels[0],
237
+ "aria-invalid": isError || undefined,
238
+ placeholder: first === null || first === void 0 ? void 0 : first.placeholder,
239
+ disabled: disabled || (first === null || first === void 0 ? void 0 : first.disabled)
240
+ })
241
+ }), (0,jsx_runtime_.jsx)("span", {
242
+ className: 'split-text-field-separator',
243
+ "aria-hidden": 'true',
244
+ children: "-"
245
+ }), (0,jsx_runtime_.jsx)(base_text_field/* default */.A, {
246
+ value: shown[1],
247
+ format: digitsOf(secondLength),
248
+ onChange: function onChange(event) {
249
+ return change([shown[0], event.target.value]);
250
+ },
251
+ children: (0,jsx_runtime_.jsx)(base_text_field/* default */.A.Input, {
252
+ ref: secondRef,
253
+ className: 'split-text-field-input split-text-field-second',
254
+ type: mask ? 'password' : 'text',
255
+ inputMode: 'numeric',
256
+ autoComplete: 'off',
257
+ "aria-label": spec.labels[1],
258
+ "aria-invalid": isError || undefined,
259
+ placeholder: second === null || second === void 0 ? void 0 : second.placeholder,
260
+ disabled: disabled || (second === null || second === void 0 ? void 0 : second.disabled),
261
+ onKeyDown: handleSecondKeyDown
262
+ })
263
+ }), spec.hiddenDigits > 0 && (0,jsx_runtime_.jsx)("span", {
264
+ className: 'split-text-field-hidden-digits',
265
+ "aria-hidden": 'true',
266
+ children: '●'.repeat(spec.hiddenDigits)
267
+ }), showClear && (0,jsx_runtime_.jsx)(base_text_field/* default */.A.Action, {
268
+ className: 'text-field-action motion-press',
269
+ "aria-label": "\uC785\uB825 \uC9C0\uC6B0\uAE30",
270
+ onClick: function onClick() {
271
+ var _a;
272
+ change(['', '']);
273
+ (_a = firstRef.current) === null || _a === void 0 ? void 0 : _a.focus();
274
+ onClear === null || onClear === void 0 ? void 0 : onClear();
275
+ },
276
+ children: (0,jsx_runtime_.jsx)(icon/* default */.A, {
277
+ name: 'x',
278
+ size: 's'
279
+ })
280
+ })]
281
+ }), name !== undefined && (0,jsx_runtime_.jsx)("input", {
282
+ type: 'hidden',
283
+ name: name,
284
+ value: raw
285
+ }), helperText && (0,jsx_runtime_.jsx)(base_text_field/* default */.A.HelperText, {
286
+ className: (0,classNames/* classNames */.x)('text-field-helper-text', {
287
+ error: isError
288
+ }),
289
+ text: helperText
290
+ })]
291
+ });
292
+ });
293
+ SplitTextFieldBody.displayName = 'SplitTextFieldBody';
294
+ /** 주민등록번호 13자리. 앞 6 · 뒤 7, 뒤 칸은 기본으로 가린다 */
295
+ var SplitTextFieldRRN13 = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
296
+ return (0,jsx_runtime_.jsx)(SplitTextFieldBody, split_text_field_assign({
297
+ ref: ref,
298
+ spec: rrn13Spec
299
+ }, props));
300
+ });
301
+ SplitTextFieldRRN13.displayName = 'SplitTextField.RRN13';
302
+ /** 생년월일 6 · 성별 1. 나머지 6자리는 점으로만 보인다 */
303
+ var SplitTextFieldRRNFirst7 = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
304
+ return (0,jsx_runtime_.jsx)(SplitTextFieldBody, split_text_field_assign({
305
+ ref: ref,
306
+ spec: rrnFirst7Spec
307
+ }, props));
308
+ });
309
+ SplitTextFieldRRNFirst7.displayName = 'SplitTextField.RRNFirst7';
310
+ var SplitTextField = {
311
+ RRN13: SplitTextFieldRRN13,
312
+ RRNFirst7: SplitTextFieldRRNFirst7
313
+ };
314
+ /* harmony default export */ const split_text_field = (SplitTextField);
315
+
316
+ /***/ },
317
+
318
+ /***/ 1041
319
+ (module, __unused_webpack_exports, __nuri_require__) {
320
+
321
+ var x = (y) => {
322
+ var x = {}; __nuri_require__.d(x, y); return x
323
+ }
324
+ var y = (x) => (() => (x))
325
+ module.exports = x({ ["createContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createContext), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useContext), ["useId"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useId), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef), ["useState"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useState) });
326
+
327
+ /***/ },
328
+
329
+ /***/ 612
330
+ (module, __unused_webpack_exports, __nuri_require__) {
331
+
332
+ var x = (y) => {
333
+ var x = {}; __nuri_require__.d(x, y); return x
334
+ }
335
+ var y = (x) => (() => (x))
336
+ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsx), ["jsxs"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsxs) });
337
+
338
+ /***/ }
339
+
340
+ /******/ });
341
+ /************************************************************************/
342
+ /******/ // The module cache
343
+ /******/ var __webpack_module_cache__ = {};
344
+ /******/
345
+ /******/ // The require function
346
+ /******/ function __nuri_require__(moduleId) {
347
+ /******/ // Check if module is in cache
348
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
349
+ /******/ if (cachedModule !== undefined) {
350
+ /******/ return cachedModule.exports;
351
+ /******/ }
352
+ /******/ // Create a new module (and put it into the cache)
353
+ /******/ var module = __webpack_module_cache__[moduleId] = {
354
+ /******/ // no module.id needed
355
+ /******/ // no module.loaded needed
356
+ /******/ exports: {}
357
+ /******/ };
358
+ /******/
359
+ /******/ // Execute the module function
360
+ /******/ __webpack_modules__[moduleId](module, module.exports, __nuri_require__);
361
+ /******/
362
+ /******/ // Return the exports of the module
363
+ /******/ return module.exports;
364
+ /******/ }
365
+ /******/
366
+ /******/ // expose the modules object (__webpack_modules__)
367
+ /******/ __nuri_require__.m = __webpack_modules__;
368
+ /******/
369
+ /************************************************************************/
370
+ /******/ /* webpack/runtime/chunk loaded */
371
+ /******/ (() => {
372
+ /******/ var deferred = [];
373
+ /******/ __nuri_require__.O = (result, chunkIds, fn, priority) => {
374
+ /******/ if(chunkIds) {
375
+ /******/ priority = priority || 0;
376
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
377
+ /******/ deferred[i] = [chunkIds, fn, priority];
378
+ /******/ return;
379
+ /******/ }
380
+ /******/ var notFulfilled = Infinity;
381
+ /******/ for (var i = 0; i < deferred.length; i++) {
382
+ /******/ var [chunkIds, fn, priority] = deferred[i];
383
+ /******/ var fulfilled = true;
384
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
385
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__nuri_require__.O).every((key) => (__nuri_require__.O[key](chunkIds[j])))) {
386
+ /******/ chunkIds.splice(j--, 1);
387
+ /******/ } else {
388
+ /******/ fulfilled = false;
389
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
390
+ /******/ }
391
+ /******/ }
392
+ /******/ if(fulfilled) {
393
+ /******/ deferred.splice(i--, 1)
394
+ /******/ var r = fn();
395
+ /******/ if (r !== undefined) result = r;
396
+ /******/ }
397
+ /******/ }
398
+ /******/ return result;
399
+ /******/ };
400
+ /******/ })();
401
+ /******/
402
+ /******/ /* webpack/runtime/define property getters */
403
+ /******/ (() => {
404
+ /******/ // define getter functions for harmony exports
405
+ /******/ __nuri_require__.d = (exports, definition) => {
406
+ /******/ for(var key in definition) {
407
+ /******/ if(__nuri_require__.o(definition, key) && !__nuri_require__.o(exports, key)) {
408
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
409
+ /******/ }
410
+ /******/ }
411
+ /******/ };
412
+ /******/ })();
413
+ /******/
414
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
415
+ /******/ (() => {
416
+ /******/ __nuri_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
417
+ /******/ })();
418
+ /******/
419
+ /******/ /* webpack/runtime/export webpack runtime */
420
+ /******/ export { __nuri_require__ };
421
+ /******/
422
+ /******/ /* webpack/runtime/import chunk loading */
423
+ /******/ (() => {
424
+ /******/ // no baseURI
425
+ /******/
426
+ /******/ // object to store loaded and loading chunks
427
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
428
+ /******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
429
+ /******/ var installedChunks = {
430
+ /******/ 9400: 0
431
+ /******/ };
432
+ /******/
433
+ /******/ var installChunk = (data) => {
434
+ /******/ var {__webpack_esm_ids__, __webpack_esm_modules__, __webpack_esm_runtime__} = data;
435
+ /******/ // add "modules" to the modules object,
436
+ /******/ // then flag all "ids" as loaded and fire callback
437
+ /******/ var moduleId, chunkId, i = 0;
438
+ /******/ for(moduleId in __webpack_esm_modules__) {
439
+ /******/ if(__nuri_require__.o(__webpack_esm_modules__, moduleId)) {
440
+ /******/ __nuri_require__.m[moduleId] = __webpack_esm_modules__[moduleId];
441
+ /******/ }
442
+ /******/ }
443
+ /******/ if(__webpack_esm_runtime__) __webpack_esm_runtime__(__nuri_require__);
444
+ /******/ for(;i < __webpack_esm_ids__.length; i++) {
445
+ /******/ chunkId = __webpack_esm_ids__[i];
446
+ /******/ if(__nuri_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
447
+ /******/ installedChunks[chunkId][0]();
448
+ /******/ }
449
+ /******/ installedChunks[__webpack_esm_ids__[i]] = 0;
450
+ /******/ }
451
+ /******/ __nuri_require__.O();
452
+ /******/ }
453
+ /******/
454
+ /******/ // no chunk on demand loading
455
+ /******/
456
+ /******/ // no prefetching
457
+ /******/
458
+ /******/ // no preloaded
459
+ /******/
460
+ /******/ __nuri_require__.C = installChunk;
461
+ /******/
462
+ /******/ __nuri_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
463
+ /******/ // no HMR
464
+ /******/
465
+ /******/ // no HMR manifest
466
+ /******/ })();
467
+ /******/
468
+ /************************************************************************/
469
+ /******/
470
+ /******/ import * as __webpack_chunk_1__ from "./chunk-3274.js";
471
+ /******/ __nuri_require__.C(__webpack_chunk_1__);
472
+ /******/ import * as __webpack_chunk_2__ from "./chunk-7335.js";
473
+ /******/ __nuri_require__.C(__webpack_chunk_2__);
474
+ /******/ import * as __webpack_chunk_3__ from "./chunk-4560.js";
475
+ /******/ __nuri_require__.C(__webpack_chunk_3__);
476
+ /******/ import * as __webpack_chunk_4__ from "./chunk-7653.js";
477
+ /******/ __nuri_require__.C(__webpack_chunk_4__);
478
+ /******/ import * as __webpack_chunk_5__ from "./chunk-3547.js";
479
+ /******/ __nuri_require__.C(__webpack_chunk_5__);
480
+ /******/ import * as __webpack_chunk_6__ from "./chunk-7232.js";
481
+ /******/ __nuri_require__.C(__webpack_chunk_6__);
482
+ /******/ import * as __webpack_chunk_7__ from "./chunk-4917.js";
483
+ /******/ __nuri_require__.C(__webpack_chunk_7__);
484
+ /******/ import * as __webpack_chunk_8__ from "./chunk-4558.js";
485
+ /******/ __nuri_require__.C(__webpack_chunk_8__);
486
+ /******/ import * as __webpack_chunk_9__ from "./chunk-7739.js";
487
+ /******/ __nuri_require__.C(__webpack_chunk_9__);
488
+ /******/ import * as __webpack_chunk_10__ from "./chunk-6096.js";
489
+ /******/ __nuri_require__.C(__webpack_chunk_10__);
490
+ /******/
491
+ /******/ // startup
492
+ /******/ // Load entry module and return exports
493
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
494
+ /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7653,3547,7232,4917,4558,7739,6096], () => (__nuri_require__(4943)))
495
+ /******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
496
+ /******/ const __webpack_exports__default = __webpack_exports__.A;
497
+ /******/ export { __webpack_exports__default as default };
498
+ /******/