@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,492 @@
1
+ "use client";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_react_dom_7dac9eee__ from "react-dom";
4
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
5
+ /******/ var __webpack_modules__ = ({
6
+
7
+ /***/ 6605
8
+ (__unused_webpack_module, __webpack_exports__, __nuri_require__) {
9
+
10
+
11
+ // EXPORTS
12
+ __nuri_require__.d(__webpack_exports__, {
13
+ A: () => (/* binding */ highlight)
14
+ });
15
+
16
+ // EXTERNAL MODULE: external {"root":"jsx-runtime","commonjs2":"react/jsx-runtime","commonjs":"react/jsx-runtime","amd":"react/jsx-runtime","module":"react/jsx-runtime"}
17
+ var jsx_runtime_ = __nuri_require__(612);
18
+ // EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react","module":"react"}
19
+ var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
20
+ // EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom","module":"react-dom"}
21
+ var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_module_react_dom_ = __nuri_require__(4377);
22
+ // EXTERNAL MODULE: ./helpers/hooks/useCloseOnBackEvent.ts
23
+ var useCloseOnBackEvent = __nuri_require__(3297);
24
+ // EXTERNAL MODULE: ./helpers/motion/appear.ts
25
+ var appear = __nuri_require__(7737);
26
+ // EXTERNAL MODULE: ./helpers/motion/use-presence-callbacks.ts
27
+ var use_presence_callbacks = __nuri_require__(6706);
28
+ // EXTERNAL MODULE: ./helpers/utils/classNames.js
29
+ var classNames = __nuri_require__(3274);
30
+ ;// ./components/highlight/base-highlight.tsx
31
+ var __assign = undefined && undefined.__assign || function () {
32
+ __assign = Object.assign || function (t) {
33
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
34
+ s = arguments[i];
35
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __rest = undefined && undefined.__rest || function (s, e) {
42
+ var t = {};
43
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
44
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
45
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
46
+ }
47
+ return t;
48
+ };
49
+
50
+
51
+
52
+ var HighlightRootBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
53
+ var className = props.className,
54
+ restProps = __rest(props, ["className"]);
55
+ return (0,jsx_runtime_.jsx)("div", __assign({
56
+ ref: ref,
57
+ className: (0,classNames/* classNames */.x)('nuri-theme base-highlight root', className)
58
+ }, restProps));
59
+ });
60
+ HighlightRootBase.displayName = 'HighlightRoot';
61
+ // 구멍 밖을 누른 것만 받는다. 구멍 자리는 clip-path 로 잘라 그 아래 대상이 눌린다.
62
+ var HighlightBackdrop = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
63
+ var className = props.className,
64
+ restProps = __rest(props, ["className"]);
65
+ return (0,jsx_runtime_.jsx)("div", __assign({
66
+ ref: ref,
67
+ className: (0,classNames/* classNames */.x)('nuri-theme base-highlight backdrop', className),
68
+ "aria-hidden": true
69
+ }, restProps));
70
+ });
71
+ HighlightBackdrop.displayName = 'HighlightBackdrop';
72
+ // 대상 자리의 투명 상자. 바깥으로 퍼지는 그림자가 어두운 바탕이 된다.
73
+ var HighlightHole = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
74
+ var className = props.className,
75
+ restProps = __rest(props, ["className"]);
76
+ return (0,jsx_runtime_.jsx)("div", __assign({
77
+ ref: ref,
78
+ className: (0,classNames/* classNames */.x)('nuri-theme base-highlight hole', className),
79
+ "aria-hidden": true
80
+ }, restProps));
81
+ });
82
+ HighlightHole.displayName = 'HighlightHole';
83
+ var HighlightMessage = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
84
+ var className = props.className,
85
+ restProps = __rest(props, ["className"]);
86
+ return (0,jsx_runtime_.jsx)("div", __assign({
87
+ ref: ref,
88
+ className: (0,classNames/* classNames */.x)('nuri-theme base-highlight message', className),
89
+ role: 'dialog',
90
+ "aria-modal": 'false'
91
+ }, restProps));
92
+ });
93
+ HighlightMessage.displayName = 'HighlightMessage';
94
+ var HighlightRoot = Object.assign(HighlightRootBase, {
95
+ Backdrop: HighlightBackdrop,
96
+ Hole: HighlightHole,
97
+ Message: HighlightMessage
98
+ });
99
+ /* harmony default export */ const base_highlight = (HighlightRoot);
100
+ ;// ./components/highlight/highlight.tsx
101
+ var highlight_assign = undefined && undefined.__assign || function () {
102
+ highlight_assign = Object.assign || function (t) {
103
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
104
+ s = arguments[i];
105
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
106
+ }
107
+ return t;
108
+ };
109
+ return highlight_assign.apply(this, arguments);
110
+ };
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+ var transition = function transition(phase, event, delayed) {
120
+ switch (event) {
121
+ case 'show':
122
+ if (phase === 'closed') return delayed ? 'waiting' : 'open';
123
+ return phase === 'closing' ? 'open' : phase;
124
+ case 'appear':
125
+ return phase === 'waiting' ? 'open' : phase;
126
+ case 'hide':
127
+ // 아직 보이지 않았으면 퇴장 fade 를 돌리지 않는다. 돌리면 가려져 있던 것이 한 번 비친다
128
+ if (phase === 'waiting') return 'closed';
129
+ return phase === 'open' ? 'closing' : phase;
130
+ case 'exited':
131
+ return phase === 'closing' ? 'closed' : phase;
132
+ }
133
+ };
134
+ var measure = function measure(target) {
135
+ if (!target) return null;
136
+ var _a = target.getBoundingClientRect(),
137
+ top = _a.top,
138
+ left = _a.left,
139
+ width = _a.width,
140
+ height = _a.height;
141
+ return {
142
+ top: top,
143
+ left: left,
144
+ width: width,
145
+ height: height
146
+ };
147
+ };
148
+ var px = function px(value) {
149
+ return "".concat(value, "px");
150
+ };
151
+ var prefersReducedMotion = function prefersReducedMotion() {
152
+ return typeof window !== 'undefined' && typeof window.matchMedia === 'function' && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
153
+ };
154
+ // 구멍과 메시지 자리. 고정 위치의 기준은 스크롤바를 뺀 화면이라 clientWidth·clientHeight 로 잰다.
155
+ var layout = function layout(target, padding, align) {
156
+ var _a = document.documentElement,
157
+ clientWidth = _a.clientWidth,
158
+ clientHeight = _a.clientHeight;
159
+ var top = target.top - padding;
160
+ var left = target.left - padding;
161
+ var right = left + target.width + padding * 2;
162
+ var bottom = top + target.height + padding * 2;
163
+ var hole = {
164
+ top: px(top),
165
+ left: px(left),
166
+ width: px(right - left),
167
+ height: px(bottom - top)
168
+ };
169
+ // 바깥 사각형과 구멍 사각형을 evenodd 로 겹쳐 구멍 자리만 눌리지 않게 뺀다
170
+ var backdrop = {
171
+ clipPath: "polygon(evenodd, 0 0, 100% 0, 100% 100%, 0 100%, 0 0, ".concat(px(left), " ").concat(px(top), ", ").concat(px(right), " ").concat(px(top), ", ").concat(px(right), " ").concat(px(bottom), ", ").concat(px(left), " ").concat(px(bottom), ", ").concat(px(left), " ").concat(px(top), ")")
172
+ };
173
+ var anchor = highlight_assign(highlight_assign(highlight_assign(highlight_assign({}, align.y === 'bottom' ? {
174
+ top: px(bottom)
175
+ } : {
176
+ bottom: px(clientHeight - top)
177
+ }), align.x === 'left' && {
178
+ left: px(left)
179
+ }), align.x === 'center' && {
180
+ left: px((left + right) / 2)
181
+ }), align.x === 'right' && {
182
+ right: px(clientWidth - right)
183
+ });
184
+ return {
185
+ hole: hole,
186
+ backdrop: backdrop,
187
+ anchor: anchor
188
+ };
189
+ };
190
+ // ref·className·style 은 메시지 상자(role="dialog")에 붙는다.
191
+ var Highlight = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
192
+ var _a, _b;
193
+ var open = props.open,
194
+ targetRef = props.targetRef,
195
+ _c = props.padding,
196
+ padding = _c === void 0 ? 8 : _c,
197
+ delay = props.delay,
198
+ message = props.message,
199
+ messageAlign = props.messageAlign,
200
+ onClick = props.onClick,
201
+ _onExited = props.onExited,
202
+ _d = props.closeOnBackEvent,
203
+ closeOnBackEvent = _d === void 0 ? false : _d,
204
+ portalContainer = props.portalContainer,
205
+ ariaLabel = props["aria-label"],
206
+ className = props.className,
207
+ style = props.style;
208
+ var delayed = !!delay && delay > 0 && !prefersReducedMotion();
209
+ var _e = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useReducer)(function (current, event) {
210
+ return transition(current, event, delayed);
211
+ }, open ? delayed ? 'waiting' : 'open' : 'closed'),
212
+ phase = _e[0],
213
+ dispatch = _e[1];
214
+ var _f = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)(null),
215
+ target = _f[0],
216
+ setTarget = _f[1];
217
+ var mounted = phase !== 'closed';
218
+ var presence = (0,use_presence_callbacks/* usePresenceCallbacks */.r)({
219
+ open: phase === 'waiting' || phase === 'open',
220
+ onExited: function onExited() {
221
+ dispatch('exited');
222
+ _onExited === null || _onExited === void 0 ? void 0 : _onExited();
223
+ }
224
+ });
225
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useEffect)(function () {
226
+ if (open) {
227
+ dispatch('show');
228
+ return;
229
+ }
230
+ if (phase === 'waiting') _onExited === null || _onExited === void 0 ? void 0 : _onExited();
231
+ dispatch('hide');
232
+ }, [open]);
233
+ (0,useCloseOnBackEvent/* useCloseOnBackEvent */.y)({
234
+ open: open,
235
+ enabled: closeOnBackEvent,
236
+ onClose: function onClose() {
237
+ return onClick === null || onClick === void 0 ? void 0 : onClick();
238
+ }
239
+ });
240
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useLayoutEffect)(function () {
241
+ if (!mounted) return undefined;
242
+ var update = function update() {
243
+ return setTarget(measure(targetRef.current));
244
+ };
245
+ update();
246
+ var observer = new ResizeObserver(update);
247
+ if (targetRef.current) observer.observe(targetRef.current);
248
+ window.addEventListener('scroll', update, true);
249
+ window.addEventListener('resize', update);
250
+ return function () {
251
+ observer.disconnect();
252
+ window.removeEventListener('scroll', update, true);
253
+ window.removeEventListener('resize', update);
254
+ };
255
+ }, [mounted, targetRef]);
256
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useEffect)(function () {
257
+ if (phase !== 'open') return undefined;
258
+ var onKeyDown = function onKeyDown(event) {
259
+ if (event.key === 'Escape') onClick === null || onClick === void 0 ? void 0 : onClick();
260
+ };
261
+ document.addEventListener('keydown', onKeyDown);
262
+ return function () {
263
+ return document.removeEventListener('keydown', onKeyDown);
264
+ };
265
+ }, [phase, onClick]);
266
+ if (!mounted || !target || typeof document === 'undefined') return null;
267
+ var align = {
268
+ x: (_a = messageAlign === null || messageAlign === void 0 ? void 0 : messageAlign.x) !== null && _a !== void 0 ? _a : 'center',
269
+ y: (_b = messageAlign === null || messageAlign === void 0 ? void 0 : messageAlign.y) !== null && _b !== void 0 ? _b : target.top + target.height / 2 < window.innerHeight / 2 ? 'bottom' : 'top'
270
+ };
271
+ var box = layout(target, padding, align);
272
+ var rootStyle = delayed ? (0,appear/* appearStyle */.$)(delay) : undefined;
273
+ var content = typeof message === 'function' ? message({
274
+ close: function close() {
275
+ return onClick === null || onClick === void 0 ? void 0 : onClick();
276
+ }
277
+ }) : message;
278
+ return /*#__PURE__*/(0,external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_module_react_dom_.createPortal)((0,jsx_runtime_.jsxs)(base_highlight, {
279
+ className: 'highlight',
280
+ style: rootStyle,
281
+ "data-state": phase === 'closing' ? 'closed' : 'open',
282
+ onAnimationStart: function onAnimationStart(event) {
283
+ if (event.animationName.startsWith('motion-enter-')) dispatch('appear');
284
+ },
285
+ onAnimationEnd: presence.onAnimationEnd,
286
+ children: [(0,jsx_runtime_.jsx)(base_highlight.Backdrop, {
287
+ className: 'highlight-backdrop',
288
+ style: box.backdrop,
289
+ onClick: onClick
290
+ }), (0,jsx_runtime_.jsx)(base_highlight.Hole, {
291
+ className: 'highlight-hole',
292
+ style: box.hole
293
+ }), (0,jsx_runtime_.jsx)("div", {
294
+ className: 'highlight-message-anchor',
295
+ style: box.anchor,
296
+ "data-align-x": align.x,
297
+ "data-align-y": align.y,
298
+ children: (0,jsx_runtime_.jsx)(base_highlight.Message, {
299
+ ref: ref,
300
+ className: (0,classNames/* classNames */.x)(className, 'highlight-message'),
301
+ style: style,
302
+ "aria-label": typeof message === 'string' ? message : ariaLabel,
303
+ children: content
304
+ })
305
+ })]
306
+ }), portalContainer !== null && portalContainer !== void 0 ? portalContainer : document.body);
307
+ });
308
+ Highlight.displayName = 'Highlight';
309
+ /* harmony default export */ const highlight = (Highlight);
310
+
311
+ /***/ },
312
+
313
+ /***/ 1041
314
+ (module, __unused_webpack_exports, __nuri_require__) {
315
+
316
+ var x = (y) => {
317
+ var x = {}; __nuri_require__.d(x, y); return x
318
+ }
319
+ var y = (x) => (() => (x))
320
+ module.exports = x({ ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useEffect"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useEffect), ["useLayoutEffect"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useLayoutEffect), ["useReducer"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useReducer), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef), ["useState"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useState) });
321
+
322
+ /***/ },
323
+
324
+ /***/ 4377
325
+ (module, __unused_webpack_exports, __nuri_require__) {
326
+
327
+ var x = (y) => {
328
+ var x = {}; __nuri_require__.d(x, y); return x
329
+ }
330
+ var y = (x) => (() => (x))
331
+ module.exports = x({ ["createPortal"]: () => (__WEBPACK_EXTERNAL_MODULE_react_dom_7dac9eee__.createPortal) });
332
+
333
+ /***/ },
334
+
335
+ /***/ 612
336
+ (module, __unused_webpack_exports, __nuri_require__) {
337
+
338
+ var x = (y) => {
339
+ var x = {}; __nuri_require__.d(x, y); return x
340
+ }
341
+ var y = (x) => (() => (x))
342
+ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsx), ["jsxs"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsxs) });
343
+
344
+ /***/ }
345
+
346
+ /******/ });
347
+ /************************************************************************/
348
+ /******/ // The module cache
349
+ /******/ var __webpack_module_cache__ = {};
350
+ /******/
351
+ /******/ // The require function
352
+ /******/ function __nuri_require__(moduleId) {
353
+ /******/ // Check if module is in cache
354
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
355
+ /******/ if (cachedModule !== undefined) {
356
+ /******/ return cachedModule.exports;
357
+ /******/ }
358
+ /******/ // Create a new module (and put it into the cache)
359
+ /******/ var module = __webpack_module_cache__[moduleId] = {
360
+ /******/ // no module.id needed
361
+ /******/ // no module.loaded needed
362
+ /******/ exports: {}
363
+ /******/ };
364
+ /******/
365
+ /******/ // Execute the module function
366
+ /******/ __webpack_modules__[moduleId](module, module.exports, __nuri_require__);
367
+ /******/
368
+ /******/ // Return the exports of the module
369
+ /******/ return module.exports;
370
+ /******/ }
371
+ /******/
372
+ /******/ // expose the modules object (__webpack_modules__)
373
+ /******/ __nuri_require__.m = __webpack_modules__;
374
+ /******/
375
+ /************************************************************************/
376
+ /******/ /* webpack/runtime/chunk loaded */
377
+ /******/ (() => {
378
+ /******/ var deferred = [];
379
+ /******/ __nuri_require__.O = (result, chunkIds, fn, priority) => {
380
+ /******/ if(chunkIds) {
381
+ /******/ priority = priority || 0;
382
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
383
+ /******/ deferred[i] = [chunkIds, fn, priority];
384
+ /******/ return;
385
+ /******/ }
386
+ /******/ var notFulfilled = Infinity;
387
+ /******/ for (var i = 0; i < deferred.length; i++) {
388
+ /******/ var [chunkIds, fn, priority] = deferred[i];
389
+ /******/ var fulfilled = true;
390
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
391
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__nuri_require__.O).every((key) => (__nuri_require__.O[key](chunkIds[j])))) {
392
+ /******/ chunkIds.splice(j--, 1);
393
+ /******/ } else {
394
+ /******/ fulfilled = false;
395
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
396
+ /******/ }
397
+ /******/ }
398
+ /******/ if(fulfilled) {
399
+ /******/ deferred.splice(i--, 1)
400
+ /******/ var r = fn();
401
+ /******/ if (r !== undefined) result = r;
402
+ /******/ }
403
+ /******/ }
404
+ /******/ return result;
405
+ /******/ };
406
+ /******/ })();
407
+ /******/
408
+ /******/ /* webpack/runtime/define property getters */
409
+ /******/ (() => {
410
+ /******/ // define getter functions for harmony exports
411
+ /******/ __nuri_require__.d = (exports, definition) => {
412
+ /******/ for(var key in definition) {
413
+ /******/ if(__nuri_require__.o(definition, key) && !__nuri_require__.o(exports, key)) {
414
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
415
+ /******/ }
416
+ /******/ }
417
+ /******/ };
418
+ /******/ })();
419
+ /******/
420
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
421
+ /******/ (() => {
422
+ /******/ __nuri_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
423
+ /******/ })();
424
+ /******/
425
+ /******/ /* webpack/runtime/export webpack runtime */
426
+ /******/ export { __nuri_require__ };
427
+ /******/
428
+ /******/ /* webpack/runtime/import chunk loading */
429
+ /******/ (() => {
430
+ /******/ // no baseURI
431
+ /******/
432
+ /******/ // object to store loaded and loading chunks
433
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
434
+ /******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
435
+ /******/ var installedChunks = {
436
+ /******/ 6021: 0
437
+ /******/ };
438
+ /******/
439
+ /******/ var installChunk = (data) => {
440
+ /******/ var {__webpack_esm_ids__, __webpack_esm_modules__, __webpack_esm_runtime__} = data;
441
+ /******/ // add "modules" to the modules object,
442
+ /******/ // then flag all "ids" as loaded and fire callback
443
+ /******/ var moduleId, chunkId, i = 0;
444
+ /******/ for(moduleId in __webpack_esm_modules__) {
445
+ /******/ if(__nuri_require__.o(__webpack_esm_modules__, moduleId)) {
446
+ /******/ __nuri_require__.m[moduleId] = __webpack_esm_modules__[moduleId];
447
+ /******/ }
448
+ /******/ }
449
+ /******/ if(__webpack_esm_runtime__) __webpack_esm_runtime__(__nuri_require__);
450
+ /******/ for(;i < __webpack_esm_ids__.length; i++) {
451
+ /******/ chunkId = __webpack_esm_ids__[i];
452
+ /******/ if(__nuri_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
453
+ /******/ installedChunks[chunkId][0]();
454
+ /******/ }
455
+ /******/ installedChunks[__webpack_esm_ids__[i]] = 0;
456
+ /******/ }
457
+ /******/ __nuri_require__.O();
458
+ /******/ }
459
+ /******/
460
+ /******/ // no chunk on demand loading
461
+ /******/
462
+ /******/ // no prefetching
463
+ /******/
464
+ /******/ // no preloaded
465
+ /******/
466
+ /******/ __nuri_require__.C = installChunk;
467
+ /******/
468
+ /******/ __nuri_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
469
+ /******/ // no HMR
470
+ /******/
471
+ /******/ // no HMR manifest
472
+ /******/ })();
473
+ /******/
474
+ /************************************************************************/
475
+ /******/
476
+ /******/ import * as __webpack_chunk_1__ from "./chunk-3274.js";
477
+ /******/ __nuri_require__.C(__webpack_chunk_1__);
478
+ /******/ import * as __webpack_chunk_2__ from "./chunk-6706.js";
479
+ /******/ __nuri_require__.C(__webpack_chunk_2__);
480
+ /******/ import * as __webpack_chunk_3__ from "./chunk-7737.js";
481
+ /******/ __nuri_require__.C(__webpack_chunk_3__);
482
+ /******/ import * as __webpack_chunk_4__ from "./chunk-3297.js";
483
+ /******/ __nuri_require__.C(__webpack_chunk_4__);
484
+ /******/
485
+ /******/ // startup
486
+ /******/ // Load entry module and return exports
487
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
488
+ /******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,6706,7737,3297], () => (__nuri_require__(6605)))
489
+ /******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
490
+ /******/ const __webpack_exports__default = __webpack_exports__.A;
491
+ /******/ export { __webpack_exports__default as default };
492
+ /******/