@ncds/ui-admin 1.6.3 → 1.6.4-alpha.1

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 (262) hide show
  1. package/mcp/bin/server.d.ts +1 -0
  2. package/mcp/bin/server.js +67 -0
  3. package/mcp/bin/server.mjs +14 -0
  4. package/mcp/bin/tools/getComponentHtml.d.ts +3 -0
  5. package/mcp/bin/tools/getComponentHtml.js +30 -0
  6. package/mcp/bin/tools/getComponentProps.d.ts +3 -0
  7. package/mcp/bin/tools/getComponentProps.js +16 -0
  8. package/mcp/bin/tools/listComponents.d.ts +3 -0
  9. package/mcp/bin/tools/listComponents.js +15 -0
  10. package/mcp/bin/tools/ping.d.ts +11 -0
  11. package/mcp/bin/tools/ping.js +30 -0
  12. package/mcp/bin/tools/searchComponent.d.ts +3 -0
  13. package/mcp/bin/tools/searchComponent.js +20 -0
  14. package/mcp/bin/tools/validateHtml.d.ts +10 -0
  15. package/mcp/bin/tools/validateHtml.js +142 -0
  16. package/mcp/bin/types.d.ts +28 -0
  17. package/mcp/bin/types.js +5 -0
  18. package/mcp/bin/utils/dataLoader.d.ts +11 -0
  19. package/mcp/bin/utils/dataLoader.js +68 -0
  20. package/mcp/bin/utils/logger.d.ts +18 -0
  21. package/mcp/bin/utils/logger.js +27 -0
  22. package/mcp/bin/utils/response.d.ts +23 -0
  23. package/mcp/bin/utils/response.js +31 -0
  24. package/mcp/bin/version.d.ts +1 -0
  25. package/mcp/bin/version.js +4 -0
  26. package/mcp/data/.gitkeep +0 -0
  27. package/mcp/data/_meta.json +7 -0
  28. package/mcp/data/badge-group.json +73 -0
  29. package/mcp/data/badge.json +86 -0
  30. package/mcp/data/bread-crumb.json +22 -0
  31. package/mcp/data/breadcrumb.json +31 -0
  32. package/mcp/data/button-group.json +65 -0
  33. package/mcp/data/button.json +114 -0
  34. package/mcp/data/carousel-arrow.json +59 -0
  35. package/mcp/data/carousel-number-group.json +57 -0
  36. package/mcp/data/carousel.json +22 -0
  37. package/mcp/data/checkbox.json +31 -0
  38. package/mcp/data/combobox.json +114 -0
  39. package/mcp/data/date-picker.json +77 -0
  40. package/mcp/data/divider.json +56 -0
  41. package/mcp/data/dot.json +55 -0
  42. package/mcp/data/dropdown.json +81 -0
  43. package/mcp/data/empty-state.json +34 -0
  44. package/mcp/data/featured-icon.json +83 -0
  45. package/mcp/data/file-input.json +76 -0
  46. package/mcp/data/horizontal-tab.json +71 -0
  47. package/mcp/data/image-file-input.json +97 -0
  48. package/mcp/data/input.json +104 -0
  49. package/mcp/data/modal.json +85 -0
  50. package/mcp/data/notification.json +116 -0
  51. package/mcp/data/number-input.json +128 -0
  52. package/mcp/data/pagination.json +65 -0
  53. package/mcp/data/password-input.json +47 -0
  54. package/mcp/data/progress-bar.json +51 -0
  55. package/mcp/data/progress-circle.json +54 -0
  56. package/mcp/data/radio.json +31 -0
  57. package/mcp/data/range-date-picker-with-buttons.json +64 -0
  58. package/mcp/data/range-date-picker.json +55 -0
  59. package/mcp/data/select-dropdown.json +32 -0
  60. package/mcp/data/select.json +64 -0
  61. package/mcp/data/selectbox.json +129 -0
  62. package/mcp/data/slider.json +57 -0
  63. package/mcp/data/spinner.json +54 -0
  64. package/mcp/data/switch.json +71 -0
  65. package/mcp/data/tab.json +122 -0
  66. package/mcp/data/tag.json +66 -0
  67. package/mcp/data/textarea.json +88 -0
  68. package/mcp/data/toggle.json +59 -0
  69. package/mcp/data/tooltip.json +123 -0
  70. package/mcp/data/vertical-tab.json +64 -0
  71. package/mcp/templates/.mcp.json.example +8 -0
  72. package/mcp/templates/README.md +31 -0
  73. package/package.json +26 -3
  74. package/dist/cjs/assets/scripts/comboBox.js +0 -280
  75. package/dist/cjs/assets/scripts/datePicker.js +0 -706
  76. package/dist/cjs/assets/scripts/featuredIcon.js +0 -95
  77. package/dist/cjs/assets/scripts/fileInput/FileInput.js +0 -183
  78. package/dist/cjs/assets/scripts/fileInput/FileInputModel.js +0 -246
  79. package/dist/cjs/assets/scripts/fileInput/FileInputView.js +0 -455
  80. package/dist/cjs/assets/scripts/fileInput/const/classNames.js +0 -35
  81. package/dist/cjs/assets/scripts/fileInput/const/index.js +0 -27
  82. package/dist/cjs/assets/scripts/fileInput/const/types.js +0 -13
  83. package/dist/cjs/assets/scripts/fileInput/index.js +0 -44
  84. package/dist/cjs/assets/scripts/imageFileInput/ImageFileInput.js +0 -187
  85. package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputModel.js +0 -255
  86. package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputView.js +0 -354
  87. package/dist/cjs/assets/scripts/imageFileInput/const/classNames.js +0 -41
  88. package/dist/cjs/assets/scripts/imageFileInput/const/index.js +0 -27
  89. package/dist/cjs/assets/scripts/imageFileInput/const/types.js +0 -13
  90. package/dist/cjs/assets/scripts/imageFileInput/index.js +0 -44
  91. package/dist/cjs/assets/scripts/index.js +0 -30
  92. package/dist/cjs/assets/scripts/modal/Modal.js +0 -116
  93. package/dist/cjs/assets/scripts/modal/ModalActions.js +0 -128
  94. package/dist/cjs/assets/scripts/modal/ModalContent.js +0 -46
  95. package/dist/cjs/assets/scripts/modal/ModalHeader.js +0 -115
  96. package/dist/cjs/assets/scripts/modal/const/classNames.js +0 -41
  97. package/dist/cjs/assets/scripts/modal/const/index.js +0 -27
  98. package/dist/cjs/assets/scripts/modal/const/types.js +0 -5
  99. package/dist/cjs/assets/scripts/modal/index.js +0 -61
  100. package/dist/cjs/assets/scripts/modal/utils/contentUtils.js +0 -35
  101. package/dist/cjs/assets/scripts/notification/FloatingNotification.js +0 -180
  102. package/dist/cjs/assets/scripts/notification/FullWidthNotification.js +0 -120
  103. package/dist/cjs/assets/scripts/notification/MessageNotification.js +0 -146
  104. package/dist/cjs/assets/scripts/notification/Notification.js +0 -116
  105. package/dist/cjs/assets/scripts/notification/const/classNames.js +0 -50
  106. package/dist/cjs/assets/scripts/notification/const/icons.js +0 -45
  107. package/dist/cjs/assets/scripts/notification/const/index.js +0 -87
  108. package/dist/cjs/assets/scripts/notification/const/sizes.js +0 -54
  109. package/dist/cjs/assets/scripts/notification/const/types.js +0 -14
  110. package/dist/cjs/assets/scripts/notification/index.js +0 -92
  111. package/dist/cjs/assets/scripts/notification/utils.js +0 -92
  112. package/dist/cjs/assets/scripts/progress-bar/ProgressBar.js +0 -272
  113. package/dist/cjs/assets/scripts/progress-bar/index.js +0 -12
  114. package/dist/cjs/assets/scripts/selectBox.js +0 -319
  115. package/dist/cjs/assets/scripts/shared/ButtonCloseX.js +0 -46
  116. package/dist/cjs/assets/scripts/tab.js +0 -40
  117. package/dist/cjs/assets/scripts/tag/Tag.js +0 -268
  118. package/dist/cjs/assets/scripts/tag/const/classNames.js +0 -24
  119. package/dist/cjs/assets/scripts/tag/const/index.js +0 -38
  120. package/dist/cjs/assets/scripts/tag/const/sizes.js +0 -13
  121. package/dist/cjs/assets/scripts/tag/const/types.js +0 -5
  122. package/dist/cjs/assets/scripts/tag/index.js +0 -44
  123. package/dist/cjs/assets/scripts/tooltip/Tooltip.js +0 -380
  124. package/dist/cjs/assets/scripts/tooltip/TooltipLayerManager.js +0 -84
  125. package/dist/cjs/assets/scripts/tooltip/const/classNames.js +0 -29
  126. package/dist/cjs/assets/scripts/tooltip/const/constants.js +0 -56
  127. package/dist/cjs/assets/scripts/tooltip/const/icons.js +0 -15
  128. package/dist/cjs/assets/scripts/tooltip/const/index.js +0 -123
  129. package/dist/cjs/assets/scripts/tooltip/const/templates.js +0 -49
  130. package/dist/cjs/assets/scripts/tooltip/const/types.js +0 -5
  131. package/dist/cjs/assets/scripts/tooltip/index.js +0 -57
  132. package/dist/cjs/assets/scripts/tooltip/utils.js +0 -41
  133. package/dist/cjs/assets/scripts/utils/unifiedBox/DOMRenderer.js +0 -384
  134. package/dist/cjs/assets/scripts/utils/unifiedBox/DropdownModel.js +0 -368
  135. package/dist/cjs/assets/scripts/utils/unifiedBox/UnifiedBoxController.js +0 -681
  136. package/dist/cjs/assets/scripts/utils/unifiedBox/UnifiedBoxManager.js +0 -711
  137. package/dist/esm/assets/scripts/comboBox.js +0 -275
  138. package/dist/esm/assets/scripts/datePicker.js +0 -699
  139. package/dist/esm/assets/scripts/featuredIcon.js +0 -90
  140. package/dist/esm/assets/scripts/fileInput/FileInput.js +0 -178
  141. package/dist/esm/assets/scripts/fileInput/FileInputModel.js +0 -241
  142. package/dist/esm/assets/scripts/fileInput/FileInputView.js +0 -450
  143. package/dist/esm/assets/scripts/fileInput/const/classNames.js +0 -25
  144. package/dist/esm/assets/scripts/fileInput/const/index.js +0 -2
  145. package/dist/esm/assets/scripts/fileInput/const/types.js +0 -7
  146. package/dist/esm/assets/scripts/fileInput/index.js +0 -9
  147. package/dist/esm/assets/scripts/imageFileInput/ImageFileInput.js +0 -182
  148. package/dist/esm/assets/scripts/imageFileInput/ImageFileInputModel.js +0 -250
  149. package/dist/esm/assets/scripts/imageFileInput/ImageFileInputView.js +0 -349
  150. package/dist/esm/assets/scripts/imageFileInput/const/classNames.js +0 -30
  151. package/dist/esm/assets/scripts/imageFileInput/const/index.js +0 -2
  152. package/dist/esm/assets/scripts/imageFileInput/const/types.js +0 -7
  153. package/dist/esm/assets/scripts/imageFileInput/index.js +0 -9
  154. package/dist/esm/assets/scripts/index.js +0 -28
  155. package/dist/esm/assets/scripts/modal/Modal.js +0 -110
  156. package/dist/esm/assets/scripts/modal/ModalActions.js +0 -123
  157. package/dist/esm/assets/scripts/modal/ModalContent.js +0 -41
  158. package/dist/esm/assets/scripts/modal/ModalHeader.js +0 -110
  159. package/dist/esm/assets/scripts/modal/const/classNames.js +0 -31
  160. package/dist/esm/assets/scripts/modal/const/index.js +0 -2
  161. package/dist/esm/assets/scripts/modal/const/types.js +0 -1
  162. package/dist/esm/assets/scripts/modal/index.js +0 -15
  163. package/dist/esm/assets/scripts/modal/utils/contentUtils.js +0 -28
  164. package/dist/esm/assets/scripts/notification/FloatingNotification.js +0 -176
  165. package/dist/esm/assets/scripts/notification/FullWidthNotification.js +0 -115
  166. package/dist/esm/assets/scripts/notification/MessageNotification.js +0 -141
  167. package/dist/esm/assets/scripts/notification/Notification.js +0 -111
  168. package/dist/esm/assets/scripts/notification/const/classNames.js +0 -44
  169. package/dist/esm/assets/scripts/notification/const/icons.js +0 -39
  170. package/dist/esm/assets/scripts/notification/const/index.js +0 -4
  171. package/dist/esm/assets/scripts/notification/const/sizes.js +0 -48
  172. package/dist/esm/assets/scripts/notification/const/types.js +0 -8
  173. package/dist/esm/assets/scripts/notification/index.js +0 -11
  174. package/dist/esm/assets/scripts/notification/utils.js +0 -79
  175. package/dist/esm/assets/scripts/progress-bar/ProgressBar.js +0 -267
  176. package/dist/esm/assets/scripts/progress-bar/index.js +0 -1
  177. package/dist/esm/assets/scripts/selectBox.js +0 -314
  178. package/dist/esm/assets/scripts/shared/ButtonCloseX.js +0 -38
  179. package/dist/esm/assets/scripts/tab.js +0 -35
  180. package/dist/esm/assets/scripts/tag/Tag.js +0 -263
  181. package/dist/esm/assets/scripts/tag/const/classNames.js +0 -16
  182. package/dist/esm/assets/scripts/tag/const/index.js +0 -3
  183. package/dist/esm/assets/scripts/tag/const/sizes.js +0 -7
  184. package/dist/esm/assets/scripts/tag/const/types.js +0 -1
  185. package/dist/esm/assets/scripts/tag/index.js +0 -9
  186. package/dist/esm/assets/scripts/tooltip/Tooltip.js +0 -375
  187. package/dist/esm/assets/scripts/tooltip/TooltipLayerManager.js +0 -79
  188. package/dist/esm/assets/scripts/tooltip/const/classNames.js +0 -23
  189. package/dist/esm/assets/scripts/tooltip/const/constants.js +0 -50
  190. package/dist/esm/assets/scripts/tooltip/const/icons.js +0 -9
  191. package/dist/esm/assets/scripts/tooltip/const/index.js +0 -4
  192. package/dist/esm/assets/scripts/tooltip/const/templates.js +0 -42
  193. package/dist/esm/assets/scripts/tooltip/const/types.js +0 -1
  194. package/dist/esm/assets/scripts/tooltip/index.js +0 -10
  195. package/dist/esm/assets/scripts/tooltip/utils.js +0 -35
  196. package/dist/esm/assets/scripts/utils/unifiedBox/DOMRenderer.js +0 -379
  197. package/dist/esm/assets/scripts/utils/unifiedBox/DropdownModel.js +0 -363
  198. package/dist/esm/assets/scripts/utils/unifiedBox/UnifiedBoxController.js +0 -676
  199. package/dist/esm/assets/scripts/utils/unifiedBox/UnifiedBoxManager.js +0 -706
  200. package/dist/types/assets/scripts/comboBox.d.ts +0 -91
  201. package/dist/types/assets/scripts/datePicker.d.ts +0 -87
  202. package/dist/types/assets/scripts/featuredIcon.d.ts +0 -23
  203. package/dist/types/assets/scripts/fileInput/FileInput.d.ts +0 -67
  204. package/dist/types/assets/scripts/fileInput/FileInputModel.d.ts +0 -70
  205. package/dist/types/assets/scripts/fileInput/FileInputView.d.ts +0 -77
  206. package/dist/types/assets/scripts/fileInput/const/classNames.d.ts +0 -17
  207. package/dist/types/assets/scripts/fileInput/const/index.d.ts +0 -3
  208. package/dist/types/assets/scripts/fileInput/const/types.d.ts +0 -132
  209. package/dist/types/assets/scripts/fileInput/index.d.ts +0 -4
  210. package/dist/types/assets/scripts/imageFileInput/ImageFileInput.d.ts +0 -64
  211. package/dist/types/assets/scripts/imageFileInput/ImageFileInputModel.d.ts +0 -74
  212. package/dist/types/assets/scripts/imageFileInput/ImageFileInputView.d.ts +0 -80
  213. package/dist/types/assets/scripts/imageFileInput/const/classNames.d.ts +0 -20
  214. package/dist/types/assets/scripts/imageFileInput/const/index.d.ts +0 -3
  215. package/dist/types/assets/scripts/imageFileInput/const/types.d.ts +0 -126
  216. package/dist/types/assets/scripts/imageFileInput/index.d.ts +0 -4
  217. package/dist/types/assets/scripts/index.d.ts +0 -33
  218. package/dist/types/assets/scripts/modal/Modal.d.ts +0 -28
  219. package/dist/types/assets/scripts/modal/ModalActions.d.ts +0 -19
  220. package/dist/types/assets/scripts/modal/ModalContent.d.ts +0 -14
  221. package/dist/types/assets/scripts/modal/ModalHeader.d.ts +0 -16
  222. package/dist/types/assets/scripts/modal/const/classNames.d.ts +0 -23
  223. package/dist/types/assets/scripts/modal/const/index.d.ts +0 -3
  224. package/dist/types/assets/scripts/modal/const/types.d.ts +0 -62
  225. package/dist/types/assets/scripts/modal/index.d.ts +0 -8
  226. package/dist/types/assets/scripts/modal/utils/contentUtils.d.ts +0 -11
  227. package/dist/types/assets/scripts/notification/FloatingNotification.d.ts +0 -25
  228. package/dist/types/assets/scripts/notification/FullWidthNotification.d.ts +0 -22
  229. package/dist/types/assets/scripts/notification/MessageNotification.d.ts +0 -23
  230. package/dist/types/assets/scripts/notification/Notification.d.ts +0 -22
  231. package/dist/types/assets/scripts/notification/const/classNames.d.ts +0 -44
  232. package/dist/types/assets/scripts/notification/const/icons.d.ts +0 -26
  233. package/dist/types/assets/scripts/notification/const/index.d.ts +0 -6
  234. package/dist/types/assets/scripts/notification/const/sizes.d.ts +0 -33
  235. package/dist/types/assets/scripts/notification/const/types.d.ts +0 -20
  236. package/dist/types/assets/scripts/notification/index.d.ts +0 -8
  237. package/dist/types/assets/scripts/notification/utils.d.ts +0 -9
  238. package/dist/types/assets/scripts/progress-bar/ProgressBar.d.ts +0 -68
  239. package/dist/types/assets/scripts/progress-bar/index.d.ts +0 -2
  240. package/dist/types/assets/scripts/selectBox.d.ts +0 -77
  241. package/dist/types/assets/scripts/shared/ButtonCloseX.d.ts +0 -6
  242. package/dist/types/assets/scripts/tab.d.ts +0 -8
  243. package/dist/types/assets/scripts/tag/Tag.d.ts +0 -28
  244. package/dist/types/assets/scripts/tag/const/classNames.d.ts +0 -12
  245. package/dist/types/assets/scripts/tag/const/index.d.ts +0 -4
  246. package/dist/types/assets/scripts/tag/const/sizes.d.ts +0 -8
  247. package/dist/types/assets/scripts/tag/const/types.d.ts +0 -34
  248. package/dist/types/assets/scripts/tag/index.d.ts +0 -4
  249. package/dist/types/assets/scripts/tooltip/Tooltip.d.ts +0 -55
  250. package/dist/types/assets/scripts/tooltip/TooltipLayerManager.d.ts +0 -22
  251. package/dist/types/assets/scripts/tooltip/const/classNames.d.ts +0 -18
  252. package/dist/types/assets/scripts/tooltip/const/constants.d.ts +0 -34
  253. package/dist/types/assets/scripts/tooltip/const/icons.d.ts +0 -5
  254. package/dist/types/assets/scripts/tooltip/const/index.d.ts +0 -6
  255. package/dist/types/assets/scripts/tooltip/const/templates.d.ts +0 -17
  256. package/dist/types/assets/scripts/tooltip/const/types.d.ts +0 -15
  257. package/dist/types/assets/scripts/tooltip/index.d.ts +0 -7
  258. package/dist/types/assets/scripts/tooltip/utils.d.ts +0 -3
  259. package/dist/types/assets/scripts/utils/unifiedBox/DOMRenderer.d.ts +0 -108
  260. package/dist/types/assets/scripts/utils/unifiedBox/DropdownModel.d.ts +0 -158
  261. package/dist/types/assets/scripts/utils/unifiedBox/UnifiedBoxController.d.ts +0 -171
  262. package/dist/types/assets/scripts/utils/unifiedBox/UnifiedBoxManager.d.ts +0 -99
@@ -1,120 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.FullWidthNotification = void 0;
7
- var _const = require("./const");
8
- var _utils = require("./utils");
9
- var __assign = void 0 && (void 0).__assign || function () {
10
- __assign = Object.assign || function (t) {
11
- for (var s, i = 1, n = arguments.length; i < n; i++) {
12
- s = arguments[i];
13
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
14
- }
15
- return t;
16
- };
17
- return __assign.apply(this, arguments);
18
- };
19
- var FullWidthNotification = exports.FullWidthNotification = /** @class */function () {
20
- function FullWidthNotification(options) {
21
- this.options = __assign({
22
- color: 'neutral',
23
- className: '',
24
- actions: [],
25
- autoClose: 0,
26
- supportingText: undefined
27
- }, options);
28
- this.element = this.createElement();
29
- this.bindEvents();
30
- this.setupAutoClose();
31
- }
32
- FullWidthNotification.prototype.createElement = function () {
33
- var _a = this.options,
34
- title = _a.title,
35
- supportingText = _a.supportingText,
36
- color = _a.color,
37
- className = _a.className,
38
- actions = _a.actions,
39
- onClose = _a.onClose,
40
- supportTextLink = _a.supportTextLink,
41
- onHidePermanently = _a.onHidePermanently;
42
- var wrapper = (0, _utils.createWrapperElement)(_const.CLASS_NAMES.FULL_WIDTH.BASE, color, className);
43
- var iconHtml = _const.FULL_WIDTH_ICON_MAP[color](_const.FULL_WIDTH_SIZES.ICON);
44
- wrapper.innerHTML = this.buildTemplate({
45
- iconHtml: iconHtml,
46
- title: title,
47
- supportingText: supportingText,
48
- actions: actions,
49
- onClose: onClose,
50
- supportTextLink: supportTextLink,
51
- onHidePermanently: onHidePermanently
52
- });
53
- return wrapper;
54
- };
55
- FullWidthNotification.prototype.buildTemplate = function (params) {
56
- var iconHtml = params.iconHtml,
57
- title = params.title,
58
- supportingText = params.supportingText,
59
- actions = params.actions,
60
- onClose = params.onClose,
61
- supportTextLink = params.supportTextLink,
62
- onHidePermanently = params.onHidePermanently;
63
- return "\n <div class=\"".concat(_const.CLASS_NAMES.FULL_WIDTH.CONTAINER, "\">\n <div class=\"").concat(_const.CLASS_NAMES.FULL_WIDTH.CONTENT, "\">\n <div class=\"").concat(_const.CLASS_NAMES.FULL_WIDTH.CONTENT_WRAPPER, "\">\n <div class=\"").concat(_const.CLASS_NAMES.FULL_WIDTH.ICON, "\">").concat(iconHtml, "</div>\n <div class=\"").concat(_const.CLASS_NAMES.FULL_WIDTH.TEXT_CONTAINER, "\">\n <span class=\"").concat(_const.CLASS_NAMES.FULL_WIDTH.TITLE, "\">").concat(title, "</span>\n ").concat((0, _utils.renderSupportingText)(supportingText, _const.CLASS_NAMES.FULL_WIDTH.SUPPORTING_TEXT, supportTextLink), "\n </div>\n </div>\n <div class=\"").concat(_const.CLASS_NAMES.FULL_WIDTH.ACTIONS_CONTAINER, "\">\n ").concat(actions && actions.length > 0 ? (0, _utils.renderActions)(actions, _const.CLASS_NAMES.FULL_WIDTH.ACTIONS) : '', "\n ").concat(this.renderHidePermanentlyButton(onHidePermanently), "\n ").concat(this.renderCloseButton(onClose), "\n </div>\n </div>\n </div>\n ");
64
- };
65
- FullWidthNotification.prototype.renderHidePermanentlyButton = function (onHidePermanently) {
66
- if (!onHidePermanently) return '';
67
- return "\n <button type=\"button\" class=\"ncua-notification__action-button ncua-notification__action-button--text ncua-full-width-notification__link\" data-hide-permanently=\"true\">\n \uB2E4\uC2DC\uBCF4\uC9C0 \uC54A\uAE30\n </button>\n ";
68
- };
69
- FullWidthNotification.prototype.renderCloseButton = function (onClose) {
70
- if (!onClose) return '';
71
- return "\n <button type=\"button\" class=\"".concat(_const.CLASS_NAMES.FULL_WIDTH.CLOSE_BUTTON, "\" aria-label=\"\uC54C\uB9BC \uB2EB\uAE30\">\n ").concat(_const.SVG_ICONS['x-close'](_const.FULL_WIDTH_SIZES.CLOSE_BUTTON), "\n </button>\n ");
72
- };
73
- FullWidthNotification.prototype.bindEvents = function () {
74
- var _this = this;
75
- (0, _utils.bindNotificationEvents)(this.element, this.options.actions, this.options.onClose, function () {
76
- return _this.remove();
77
- });
78
- // 다시보지 않기 버튼 이벤트 바인딩
79
- if (this.options.onHidePermanently) {
80
- var hidePermanentlyButton = this.element.querySelector('[data-hide-permanently="true"]');
81
- if (hidePermanentlyButton) {
82
- hidePermanentlyButton.addEventListener('click', function () {
83
- var _a, _b;
84
- (_b = (_a = _this.options).onHidePermanently) === null || _b === void 0 ? void 0 : _b.call(_a);
85
- _this.remove();
86
- });
87
- }
88
- }
89
- };
90
- FullWidthNotification.prototype.setupAutoClose = function () {
91
- var _this = this;
92
- this.autoCloseTimer = (0, _utils.setupAutoClose)(this.options.autoClose, this.options.onClose, function () {
93
- return _this.remove();
94
- });
95
- };
96
- // Public methods
97
- FullWidthNotification.prototype.getElement = function () {
98
- return this.element;
99
- };
100
- FullWidthNotification.prototype.appendTo = function (parent) {
101
- parent.appendChild(this.element);
102
- };
103
- FullWidthNotification.prototype.remove = function () {
104
- if (this.autoCloseTimer) {
105
- clearTimeout(this.autoCloseTimer);
106
- this.autoCloseTimer = undefined;
107
- }
108
- if (this.element && this.element.parentNode) {
109
- this.element.parentNode.removeChild(this.element);
110
- }
111
- };
112
- FullWidthNotification.prototype.destroy = function () {
113
- this.remove();
114
- };
115
- // Static factory methods
116
- FullWidthNotification.create = function (options) {
117
- return new FullWidthNotification(options);
118
- };
119
- return FullWidthNotification;
120
- }();
@@ -1,146 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.MessageNotification = void 0;
7
- var _const = require("./const");
8
- var _featuredIcon = require("../featuredIcon");
9
- var _utils = require("./utils");
10
- var __assign = void 0 && (void 0).__assign || function () {
11
- __assign = Object.assign || function (t) {
12
- for (var s, i = 1, n = arguments.length; i < n; i++) {
13
- s = arguments[i];
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
15
- }
16
- return t;
17
- };
18
- return __assign.apply(this, arguments);
19
- };
20
- var MessageNotification = exports.MessageNotification = /** @class */function () {
21
- function MessageNotification(options) {
22
- this.options = __assign({
23
- color: 'neutral',
24
- className: '',
25
- actions: [],
26
- autoClose: 0,
27
- supportingText: undefined
28
- }, options);
29
- this.element = this.createElement();
30
- this.bindEvents();
31
- this.setupAutoClose();
32
- }
33
- MessageNotification.prototype.createElement = function () {
34
- var _a = this.options,
35
- title = _a.title,
36
- supportingText = _a.supportingText,
37
- color = _a.color,
38
- className = _a.className,
39
- actions = _a.actions,
40
- onClose = _a.onClose,
41
- onHidePermanently = _a.onHidePermanently;
42
- // message 타입은 neutral, error, warning, success 4가지 색상만 지원
43
- var actualColor = color;
44
- if (color === 'info') {
45
- console.warn('Message notification does not support "info" color. Using "neutral" instead.');
46
- actualColor = 'neutral';
47
- }
48
- var wrapper = (0, _utils.createWrapperElement)(_const.CLASS_NAMES.MESSAGE.BASE, actualColor, className);
49
- var iconFunction = _const.FLOATING_ICON_MAP[actualColor];
50
- // FeaturedIcon 생성
51
- var featuredIconElement = null;
52
- if (iconFunction) {
53
- var iconSvg = iconFunction(_const.MESSAGE_SIZES.ICON_PIXEL);
54
- this.featuredIcon = _featuredIcon.FeaturedIcon.create({
55
- svgString: iconSvg,
56
- theme: 'light-circle',
57
- color: actualColor,
58
- size: _const.MESSAGE_SIZES.FEATURED_ICON
59
- });
60
- featuredIconElement = this.featuredIcon.getElement();
61
- }
62
- wrapper.innerHTML = this.buildTemplate({
63
- title: title,
64
- supportingText: supportingText,
65
- actions: actions,
66
- onClose: onClose,
67
- onHidePermanently: onHidePermanently
68
- });
69
- // FeaturedIcon을 content-wrapper에 추가
70
- if (featuredIconElement) {
71
- var contentWrapper = wrapper.querySelector(".".concat(_const.CLASS_NAMES.MESSAGE.CONTENT_WRAPPER));
72
- if (contentWrapper) {
73
- contentWrapper.insertBefore(featuredIconElement, contentWrapper.firstChild);
74
- }
75
- }
76
- return wrapper;
77
- };
78
- MessageNotification.prototype.buildTemplate = function (params) {
79
- var title = params.title,
80
- supportingText = params.supportingText,
81
- actions = params.actions,
82
- onClose = params.onClose,
83
- onHidePermanently = params.onHidePermanently;
84
- return "\n <div class=\"".concat(_const.CLASS_NAMES.MESSAGE.CONTAINER, "\">\n <div class=\"").concat(_const.CLASS_NAMES.MESSAGE.CONTENT, "\">\n <div class=\"").concat(_const.CLASS_NAMES.MESSAGE.CONTENT_WRAPPER, "\">\n <div class=\"").concat(_const.CLASS_NAMES.MESSAGE.TEXT_CONTAINER, "\">\n <span class=\"").concat(_const.CLASS_NAMES.MESSAGE.TITLE, "\">").concat(title, "</span>\n ").concat((0, _utils.renderSupportingText)(supportingText, _const.CLASS_NAMES.MESSAGE.SUPPORTING_TEXT), "\n </div>\n </div>\n <div class=\"").concat(_const.CLASS_NAMES.MESSAGE.ACTIONS_CONTAINER, "\">\n ").concat(actions && actions.length > 0 ? (0, _utils.renderActions)(actions, _const.CLASS_NAMES.MESSAGE.ACTIONS) : '', "\n </div>\n <div class=\"").concat(_const.CLASS_NAMES.MESSAGE.ACTIONS_CONTAINER, "\">\n ").concat(this.renderHidePermanentlyButton(onHidePermanently), "\n ").concat(this.renderCloseButton(onClose), "\n </div>\n </div>\n </div>\n ");
85
- };
86
- MessageNotification.prototype.renderHidePermanentlyButton = function (onHidePermanently) {
87
- if (!onHidePermanently) return '';
88
- return "\n <button type=\"button\" class=\"".concat(_const.CLASS_NAMES.COMMON.ACTION_BUTTON, " ").concat(_const.CLASS_NAMES.COMMON.ACTION_BUTTON, "--text ").concat(_const.CLASS_NAMES.MESSAGE.HIDE_LINK, "\" data-hide-permanently=\"true\">\n \uB2E4\uC2DC \uBCF4\uC9C0 \uC54A\uAE30\n </button>\n ");
89
- };
90
- MessageNotification.prototype.renderCloseButton = function (onClose) {
91
- if (!onClose) return '';
92
- return "\n <button type=\"button\" class=\"".concat(_const.CLASS_NAMES.MESSAGE.CLOSE_BUTTON, "\" aria-label=\"\uC54C\uB9BC \uB2EB\uAE30\">\n ").concat(_const.SVG_ICONS['x-close'](_const.MESSAGE_SIZES.CLOSE_BUTTON).replace('stroke="currentColor"', "stroke=\"#2F2F30\""), "\n </button>\n ");
93
- };
94
- MessageNotification.prototype.bindEvents = function () {
95
- var _this = this;
96
- (0, _utils.bindNotificationEvents)(this.element, this.options.actions, this.options.onClose, function () {
97
- return _this.remove();
98
- });
99
- // 다시보지 않기 버튼 이벤트 바인딩
100
- if (this.options.onHidePermanently) {
101
- var hidePermanentlyButton = this.element.querySelector('[data-hide-permanently="true"]');
102
- if (hidePermanentlyButton) {
103
- hidePermanentlyButton.addEventListener('click', function () {
104
- var _a, _b;
105
- (_b = (_a = _this.options).onHidePermanently) === null || _b === void 0 ? void 0 : _b.call(_a);
106
- _this.remove();
107
- });
108
- }
109
- }
110
- };
111
- MessageNotification.prototype.setupAutoClose = function () {
112
- var _this = this;
113
- this.autoCloseTimer = (0, _utils.setupAutoClose)(this.options.autoClose, this.options.onClose, function () {
114
- return _this.remove();
115
- });
116
- };
117
- // Public methods
118
- MessageNotification.prototype.getElement = function () {
119
- return this.element;
120
- };
121
- MessageNotification.prototype.appendTo = function (parent) {
122
- parent.appendChild(this.element);
123
- };
124
- MessageNotification.prototype.remove = function () {
125
- if (this.autoCloseTimer) {
126
- clearTimeout(this.autoCloseTimer);
127
- this.autoCloseTimer = undefined;
128
- }
129
- if (this.element && this.element.parentNode) {
130
- this.element.parentNode.removeChild(this.element);
131
- }
132
- };
133
- MessageNotification.prototype.destroy = function () {
134
- // FeaturedIcon 정리
135
- if (this.featuredIcon) {
136
- this.featuredIcon.destroy();
137
- this.featuredIcon = undefined;
138
- }
139
- this.remove();
140
- };
141
- // Static factory methods
142
- MessageNotification.create = function (options) {
143
- return new MessageNotification(options);
144
- };
145
- return MessageNotification;
146
- }();
@@ -1,116 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Notification = void 0;
7
- var _FullWidthNotification = require("./FullWidthNotification");
8
- var _FloatingNotification = require("./FloatingNotification");
9
- var _MessageNotification = require("./MessageNotification");
10
- var __assign = void 0 && (void 0).__assign || function () {
11
- __assign = Object.assign || function (t) {
12
- for (var s, i = 1, n = arguments.length; i < n; i++) {
13
- s = arguments[i];
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
15
- }
16
- return t;
17
- };
18
- return __assign.apply(this, arguments);
19
- };
20
- var __rest = void 0 && (void 0).__rest || function (s, e) {
21
- var t = {};
22
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
23
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
24
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
25
- }
26
- return t;
27
- };
28
- // 통합 Notification 클래스
29
- var Notification = exports.Notification = /** @class */function () {
30
- function Notification(options) {
31
- var _a = options.type,
32
- type = _a === void 0 ? 'floating' : _a,
33
- baseOptions = __rest(options, ["type"]);
34
- if (type === 'message') {
35
- this.instance = new _MessageNotification.MessageNotification(baseOptions);
36
- } else if (type === 'full-width') {
37
- this.instance = new _FullWidthNotification.FullWidthNotification(baseOptions);
38
- } else {
39
- this.instance = new _FloatingNotification.FloatingNotification(baseOptions);
40
- }
41
- }
42
- // 모든 메서드를 instance에 위임
43
- Notification.prototype.getElement = function () {
44
- return this.instance.getElement();
45
- };
46
- Notification.prototype.appendTo = function (parent) {
47
- return this.instance.appendTo(parent);
48
- };
49
- Notification.prototype.remove = function () {
50
- return this.instance.remove();
51
- };
52
- Notification.prototype.destroy = function () {
53
- return this.instance.destroy();
54
- };
55
- Notification.prototype.show = function (parent) {
56
- if (parent) {
57
- this.instance.appendTo(parent);
58
- } else {
59
- this.instance.appendTo(document.body);
60
- }
61
- };
62
- // Static factory methods
63
- Notification.create = function (options) {
64
- return new Notification(options);
65
- };
66
- // Convenience method for creating notifications with specific color
67
- Notification.createWithColor = function (color, title, supportingText, options) {
68
- var autoCloseMap = {
69
- success: 3000,
70
- error: 5000,
71
- warning: 3000,
72
- info: 3000,
73
- neutral: 0
74
- };
75
- return new Notification(__assign({
76
- title: title,
77
- supportingText: supportingText,
78
- color: color,
79
- type: 'floating',
80
- autoClose: autoCloseMap[color]
81
- }, options));
82
- };
83
- // 클래스를 생성하지 않고도 기본 floating 알림 생성을 하기 위한 함수들
84
- Notification.success = function (title, supportingText, options) {
85
- var notification = this.createWithColor('success', title, supportingText, options);
86
- notification.show();
87
- return notification;
88
- };
89
- Notification.error = function (title, supportingText, options) {
90
- var notification = this.createWithColor('error', title, supportingText, options);
91
- notification.show();
92
- return notification;
93
- };
94
- Notification.warning = function (title, supportingText, options) {
95
- var notification = this.createWithColor('warning', title, supportingText, options);
96
- notification.show();
97
- return notification;
98
- };
99
- Notification.info = function (title, supportingText, options) {
100
- var notification = this.createWithColor('info', title, supportingText, options);
101
- notification.show();
102
- return notification;
103
- };
104
- Notification.neutral = function (title, supportingText, options) {
105
- var notification = this.createWithColor('neutral', title, supportingText, options);
106
- notification.show();
107
- return notification;
108
- };
109
- // showFullWidth method for backward compatibility
110
- Notification.showFullWidth = function (options) {
111
- return new Notification(__assign(__assign({}, options), {
112
- type: 'full-width'
113
- }));
114
- };
115
- return Notification;
116
- }();
@@ -1,50 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.CLASS_NAMES = void 0;
7
- // CSS class names
8
- var CLASS_NAMES = exports.CLASS_NAMES = {
9
- FULL_WIDTH: {
10
- BASE: 'ncua-full-width-notification',
11
- CONTAINER: 'ncua-full-width-notification__container',
12
- CONTENT: 'ncua-full-width-notification__content',
13
- CONTENT_WRAPPER: 'ncua-full-width-notification__content-wrapper',
14
- ICON: 'ncua-full-width-notification__icon',
15
- TEXT_CONTAINER: 'ncua-full-width-notification__text-container',
16
- TITLE: 'ncua-full-width-notification__title',
17
- SUPPORTING_TEXT: 'ncua-full-width-notification__supporting-text',
18
- ACTIONS_CONTAINER: 'ncua-full-width-notification__actions-container',
19
- ACTIONS: 'ncua-full-width-notification__actions',
20
- CLOSE_BUTTON: 'ncua-full-width-notification__close-button'
21
- },
22
- FLOATING: {
23
- BASE: 'ncua-floating-notification',
24
- CONTAINER: 'ncua-floating-notification__container',
25
- CONTENT: 'ncua-floating-notification__content',
26
- TEXT_CONTAINER: 'ncua-floating-notification__text-container',
27
- TITLE_WRAPPER: 'ncua-floating-notification__title-wrapper',
28
- TITLE: 'ncua-floating-notification__title',
29
- SUPPORTING_TEXT: 'ncua-floating-notification__supporting-text',
30
- ACTIONS: 'ncua-floating-notification__actions',
31
- CLOSE_BUTTON: 'ncua-floating-notification__close-button'
32
- },
33
- MESSAGE: {
34
- BASE: 'ncua-message-notification',
35
- CONTAINER: 'ncua-message-notification__container',
36
- CONTENT: 'ncua-message-notification__content',
37
- CONTENT_WRAPPER: 'ncua-message-notification__content-wrapper',
38
- ICON: 'ncua-message-notification__icon',
39
- TEXT_CONTAINER: 'ncua-message-notification__text-container',
40
- TITLE: 'ncua-message-notification__title',
41
- SUPPORTING_TEXT: 'ncua-message-notification__supporting-text',
42
- ACTIONS_CONTAINER: 'ncua-message-notification__actions-container',
43
- ACTIONS: 'ncua-message-notification__actions',
44
- HIDE_LINK: 'ncua-message-notification__hide-link',
45
- CLOSE_BUTTON: 'ncua-message-notification__close-button'
46
- },
47
- COMMON: {
48
- ACTION_BUTTON: 'ncua-notification__action-button'
49
- }
50
- };
@@ -1,45 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SVG_ICONS = exports.ICON_MAP = exports.FULL_WIDTH_ICON_MAP = exports.FLOATING_ICON_MAP = void 0;
7
- // SVG 아이콘들 (크기는 동적으로 설정)
8
- var SVG_ICONS = exports.SVG_ICONS = {
9
- 'pin-02': function (size) {
10
- return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "\" height=\"").concat(size, "\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8.377 15.616 2.72 21.273m8.974-14.631-1.56 1.56a2 2 0 0 1-.264.242 1 1 0 0 1-.207.111c-.082.032-.17.05-.347.085l-3.665.733c-.952.19-1.428.286-1.65.537a1 1 0 0 0-.243.8c.046.333.39.677 1.076 1.363l7.086 7.086c.686.687 1.03 1.03 1.362 1.076a1 1 0 0 0 .801-.242c.251-.223.346-.7.537-1.651l.733-3.665c.035-.176.053-.265.085-.347a1 1 0 0 1 .11-.207c.051-.072.115-.136.242-.263l1.561-1.561c.082-.082.122-.122.167-.158q.06-.047.126-.085c.05-.029.103-.051.208-.097l2.495-1.069c.727-.312 1.091-.467 1.256-.72a1 1 0 0 0 .144-.747c-.06-.295-.34-.575-.9-1.135l-5.142-5.143c-.56-.56-.84-.84-1.135-.9a1 1 0 0 0-.748.145c-.252.165-.407.529-.72 1.256l-1.068 2.495a2 2 0 0 1-.097.208 1 1 0 0 1-.085.126 2 2 0 0 1-.158.167\"></path></svg>");
11
- },
12
- 'alert-triangle': function (size) {
13
- return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "\" height=\"").concat(size, "\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.812 0c-.297.132-.524.525-.979 1.31\"></path></svg>");
14
- },
15
- 'alert-circle': function (size) {
16
- return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "\" height=\"").concat(size, "\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"></path></svg>");
17
- },
18
- 'check-circle': function (size) {
19
- return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "\" height=\"").concat(size, "\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"></path></svg>");
20
- },
21
- 'info-circle': function (size) {
22
- return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "\" height=\"").concat(size, "\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\" color=\"#5720B7\" class=\"ncua-full-width-notification__icon\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 16v-4m0-4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10\"></path></svg>");
23
- },
24
- 'message-chat-square': function (size) {
25
- return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "\" height=\"").concat(size, "\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\" color=\"#0C111D\" class=\"ncua-full-width-notification__icon\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2 2 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152z\"></path></svg>");
26
- },
27
- 'x-close': function (size) {
28
- return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "\" height=\"").concat(size, "\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M18 6 6 18M6 6l12 12\"></path></svg>");
29
- }
30
- };
31
- var FLOATING_ICON_MAP = exports.FLOATING_ICON_MAP = {
32
- neutral: SVG_ICONS['pin-02'],
33
- error: SVG_ICONS['alert-triangle'],
34
- warning: SVG_ICONS['alert-circle'],
35
- success: SVG_ICONS['check-circle']
36
- // info는 floating에서는 지원하지 않음
37
- };
38
- var FULL_WIDTH_ICON_MAP = exports.FULL_WIDTH_ICON_MAP = {
39
- neutral: SVG_ICONS['message-chat-square'],
40
- error: SVG_ICONS['alert-triangle'],
41
- warning: SVG_ICONS['alert-triangle'],
42
- success: SVG_ICONS['check-circle'],
43
- info: SVG_ICONS['info-circle']
44
- };
45
- var ICON_MAP = exports.ICON_MAP = FULL_WIDTH_ICON_MAP;
@@ -1,87 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "CLASS_NAMES", {
7
- enumerable: true,
8
- get: function () {
9
- return _classNames.CLASS_NAMES;
10
- }
11
- });
12
- Object.defineProperty(exports, "CLOSE_BUTTON_SIZES", {
13
- enumerable: true,
14
- get: function () {
15
- return _sizes.CLOSE_BUTTON_SIZES;
16
- }
17
- });
18
- Object.defineProperty(exports, "CLOSE_BUTTON_SVG_SIZES", {
19
- enumerable: true,
20
- get: function () {
21
- return _sizes.CLOSE_BUTTON_SVG_SIZES;
22
- }
23
- });
24
- Object.defineProperty(exports, "FEATURED_ICON_SIZES", {
25
- enumerable: true,
26
- get: function () {
27
- return _sizes.FEATURED_ICON_SIZES;
28
- }
29
- });
30
- Object.defineProperty(exports, "FLOATING_ICON_MAP", {
31
- enumerable: true,
32
- get: function () {
33
- return _icons.FLOATING_ICON_MAP;
34
- }
35
- });
36
- Object.defineProperty(exports, "FULL_WIDTH_ICON_MAP", {
37
- enumerable: true,
38
- get: function () {
39
- return _icons.FULL_WIDTH_ICON_MAP;
40
- }
41
- });
42
- Object.defineProperty(exports, "FULL_WIDTH_SIZES", {
43
- enumerable: true,
44
- get: function () {
45
- return _sizes.FULL_WIDTH_SIZES;
46
- }
47
- });
48
- Object.defineProperty(exports, "ICON_MAP", {
49
- enumerable: true,
50
- get: function () {
51
- return _icons.ICON_MAP;
52
- }
53
- });
54
- Object.defineProperty(exports, "ICON_PIXEL_SIZES", {
55
- enumerable: true,
56
- get: function () {
57
- return _sizes.ICON_PIXEL_SIZES;
58
- }
59
- });
60
- Object.defineProperty(exports, "MESSAGE_CLOSE_ICON_COLORS", {
61
- enumerable: true,
62
- get: function () {
63
- return _types.MESSAGE_CLOSE_ICON_COLORS;
64
- }
65
- });
66
- Object.defineProperty(exports, "MESSAGE_SIZES", {
67
- enumerable: true,
68
- get: function () {
69
- return _sizes.MESSAGE_SIZES;
70
- }
71
- });
72
- Object.defineProperty(exports, "SVG_ICONS", {
73
- enumerable: true,
74
- get: function () {
75
- return _icons.SVG_ICONS;
76
- }
77
- });
78
- Object.defineProperty(exports, "getSizes", {
79
- enumerable: true,
80
- get: function () {
81
- return _sizes.getSizes;
82
- }
83
- });
84
- var _icons = require("./icons");
85
- var _classNames = require("./classNames");
86
- var _sizes = require("./sizes");
87
- var _types = require("./types");
@@ -1,54 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getSizes = exports.MESSAGE_SIZES = exports.ICON_PIXEL_SIZES = exports.FULL_WIDTH_SIZES = exports.FEATURED_ICON_SIZES = exports.CLOSE_BUTTON_SVG_SIZES = exports.CLOSE_BUTTON_SIZES = void 0;
7
- // 알림 컴포넌트 사이즈 관련 상수들
8
- // FeaturedIcon 사이즈
9
- var FEATURED_ICON_SIZES = exports.FEATURED_ICON_SIZES = {
10
- MOBILE: 'md',
11
- DESKTOP: 'sm'
12
- };
13
- // SVG 아이콘 픽셀 사이즈
14
- var ICON_PIXEL_SIZES = exports.ICON_PIXEL_SIZES = {
15
- MOBILE: '20',
16
- DESKTOP: '16',
17
- FULL_WIDTH: '16' // Full-width는 항상 고정
18
- };
19
- // 닫기 버튼 사이즈
20
- var CLOSE_BUTTON_SIZES = exports.CLOSE_BUTTON_SIZES = {
21
- MOBILE: 'sm',
22
- DESKTOP: 'xs'
23
- };
24
- // 닫기 버튼 SVG 픽셀 사이즈
25
- var CLOSE_BUTTON_SVG_SIZES = exports.CLOSE_BUTTON_SVG_SIZES = {
26
- xs: 16,
27
- sm: 20
28
- };
29
- // Full-width 알림 고정 사이즈
30
- var FULL_WIDTH_SIZES = exports.FULL_WIDTH_SIZES = {
31
- ICON: '16',
32
- CLOSE_BUTTON: '20'
33
- };
34
- // Message 알림 고정 사이즈
35
- var MESSAGE_SIZES = exports.MESSAGE_SIZES = {
36
- FEATURED_ICON: 'lg',
37
- ICON_PIXEL: '24',
38
- CLOSE_BUTTON: '20'
39
- };
40
- // 사이즈 유틸리티 함수들
41
- var getSizes = exports.getSizes = {
42
- featuredIcon: function (isMobile) {
43
- return isMobile ? FEATURED_ICON_SIZES.MOBILE : FEATURED_ICON_SIZES.DESKTOP;
44
- },
45
- iconPixel: function (isMobile) {
46
- return isMobile ? ICON_PIXEL_SIZES.MOBILE : ICON_PIXEL_SIZES.DESKTOP;
47
- },
48
- closeButton: function (isMobile) {
49
- return isMobile ? CLOSE_BUTTON_SIZES.MOBILE : CLOSE_BUTTON_SIZES.DESKTOP;
50
- },
51
- closeButtonSvg: function (size) {
52
- return CLOSE_BUTTON_SVG_SIZES[size];
53
- }
54
- };
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.MESSAGE_CLOSE_ICON_COLORS = void 0;
7
- // Message Notification 닫기 버튼 아이콘 색상 맵
8
- var MESSAGE_CLOSE_ICON_COLORS = exports.MESSAGE_CLOSE_ICON_COLORS = {
9
- neutral: '#6B7280',
10
- error: '#EF4444',
11
- warning: '#F97316',
12
- success: '#16A34A',
13
- info: '#6B7280' // info는 message 타입에서 지원하지 않지만 fallback용
14
- };