@instincthub/react-ui 0.1.36 → 0.1.38

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 (260) hide show
  1. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/createPopper.js +2 -0
  2. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/createPopper.js.map +1 -0
  3. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/contains.js +2 -0
  4. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/contains.js.map +1 -0
  5. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +2 -0
  6. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js.map +1 -0
  7. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +2 -0
  8. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js.map +1 -0
  9. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +2 -0
  10. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js.map +1 -0
  11. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +2 -0
  12. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js.map +1 -0
  13. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +2 -0
  14. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js.map +1 -0
  15. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +2 -0
  16. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js.map +1 -0
  17. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +2 -0
  18. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js.map +1 -0
  19. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +2 -0
  20. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js.map +1 -0
  21. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +2 -0
  22. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js.map +1 -0
  23. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +2 -0
  24. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js.map +1 -0
  25. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +2 -0
  26. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js.map +1 -0
  27. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +2 -0
  28. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js.map +1 -0
  29. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +2 -0
  30. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js.map +1 -0
  31. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +2 -0
  32. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js.map +1 -0
  33. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +2 -0
  34. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindow.js.map +1 -0
  35. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +2 -0
  36. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js.map +1 -0
  37. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +2 -0
  38. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js.map +1 -0
  39. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +2 -0
  40. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js.map +1 -0
  41. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +2 -0
  42. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js.map +1 -0
  43. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +2 -0
  44. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js.map +1 -0
  45. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +2 -0
  46. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js.map +1 -0
  47. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +2 -0
  48. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js.map +1 -0
  49. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/enums.js +2 -0
  50. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/enums.js.map +1 -0
  51. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +2 -0
  52. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/applyStyles.js.map +1 -0
  53. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/arrow.js +2 -0
  54. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/arrow.js.map +1 -0
  55. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +2 -0
  56. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/computeStyles.js.map +1 -0
  57. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +2 -0
  58. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/eventListeners.js.map +1 -0
  59. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/flip.js +2 -0
  60. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/flip.js.map +1 -0
  61. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/hide.js +2 -0
  62. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/hide.js.map +1 -0
  63. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/offset.js +2 -0
  64. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/offset.js.map +1 -0
  65. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +2 -0
  66. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js.map +1 -0
  67. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +2 -0
  68. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js.map +1 -0
  69. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper.js +2 -0
  70. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper.js.map +1 -0
  71. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +2 -0
  72. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js.map +1 -0
  73. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeOffsets.js +2 -0
  74. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeOffsets.js.map +1 -0
  75. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/debounce.js +2 -0
  76. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/debounce.js.map +1 -0
  77. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/detectOverflow.js +2 -0
  78. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/detectOverflow.js.map +1 -0
  79. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +2 -0
  80. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/expandToHashMap.js.map +1 -0
  81. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getAltAxis.js +2 -0
  82. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getAltAxis.js.map +1 -0
  83. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +2 -0
  84. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getBasePlacement.js.map +1 -0
  85. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +2 -0
  86. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js.map +1 -0
  87. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +2 -0
  88. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js.map +1 -0
  89. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +2 -0
  90. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js.map +1 -0
  91. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +2 -0
  92. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js.map +1 -0
  93. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getVariation.js +2 -0
  94. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getVariation.js.map +1 -0
  95. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/math.js +2 -0
  96. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/math.js.map +1 -0
  97. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergeByName.js +2 -0
  98. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergeByName.js.map +1 -0
  99. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +2 -0
  100. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js.map +1 -0
  101. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/orderModifiers.js +2 -0
  102. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/orderModifiers.js.map +1 -0
  103. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +2 -0
  104. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/rectToClientRect.js.map +1 -0
  105. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/userAgent.js +2 -0
  106. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/userAgent.js.map +1 -0
  107. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/within.js +2 -0
  108. package/dist/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/within.js.map +1 -0
  109. package/dist/node_modules/.pnpm/@tiptap_core@2.27.1_@tiptap_pm@2.27.1/node_modules/@tiptap/core/dist/index.js +1 -1
  110. package/dist/node_modules/.pnpm/@tiptap_core@2.27.1_@tiptap_pm@2.27.1/node_modules/@tiptap/core/dist/index.js.map +1 -1
  111. package/dist/node_modules/.pnpm/@tiptap_extension-bubble-menu@2.27.1_@tiptap_core@2.27.1_@tiptap_pm@2.27.1__@tiptap_pm@2.27.1/node_modules/@tiptap/extension-bubble-menu/dist/index.js +2 -0
  112. package/dist/node_modules/.pnpm/@tiptap_extension-bubble-menu@2.27.1_@tiptap_core@2.27.1_@tiptap_pm@2.27.1__@tiptap_pm@2.27.1/node_modules/@tiptap/extension-bubble-menu/dist/index.js.map +1 -0
  113. package/dist/node_modules/.pnpm/@tiptap_extension-color@2.27.2_@tiptap_core@2.27.1_@tiptap_pm@2.27.1__@tiptap_extension_3361c5fd95bc28ff82624b8eb98b2834/node_modules/@tiptap/extension-color/dist/index.js +2 -0
  114. package/dist/node_modules/.pnpm/@tiptap_extension-color@2.27.2_@tiptap_core@2.27.1_@tiptap_pm@2.27.1__@tiptap_extension_3361c5fd95bc28ff82624b8eb98b2834/node_modules/@tiptap/extension-color/dist/index.js.map +1 -0
  115. package/dist/node_modules/.pnpm/@tiptap_extension-floating-menu@2.27.1_@tiptap_core@2.27.1_@tiptap_pm@2.27.1__@tiptap_pm@2.27.1/node_modules/@tiptap/extension-floating-menu/dist/index.js +2 -0
  116. package/dist/node_modules/.pnpm/@tiptap_extension-floating-menu@2.27.1_@tiptap_core@2.27.1_@tiptap_pm@2.27.1__@tiptap_pm@2.27.1/node_modules/@tiptap/extension-floating-menu/dist/index.js.map +1 -0
  117. package/dist/node_modules/.pnpm/@tiptap_extension-focus@2.27.2_@tiptap_core@2.27.1_@tiptap_pm@2.27.1__@tiptap_pm@2.27.1/node_modules/@tiptap/extension-focus/dist/index.js +2 -0
  118. package/dist/node_modules/.pnpm/@tiptap_extension-focus@2.27.2_@tiptap_core@2.27.1_@tiptap_pm@2.27.1__@tiptap_pm@2.27.1/node_modules/@tiptap/extension-focus/dist/index.js.map +1 -0
  119. package/dist/node_modules/.pnpm/@tiptap_extension-text-align@2.27.2_@tiptap_core@2.27.1_@tiptap_pm@2.27.1_/node_modules/@tiptap/extension-text-align/dist/index.js +2 -0
  120. package/dist/node_modules/.pnpm/@tiptap_extension-text-align@2.27.2_@tiptap_core@2.27.1_@tiptap_pm@2.27.1_/node_modules/@tiptap/extension-text-align/dist/index.js.map +1 -0
  121. package/dist/node_modules/.pnpm/@tiptap_extension-text-style@2.27.1_@tiptap_core@2.27.1_@tiptap_pm@2.27.1_/node_modules/@tiptap/extension-text-style/dist/index.js +2 -0
  122. package/dist/node_modules/.pnpm/@tiptap_extension-text-style@2.27.1_@tiptap_core@2.27.1_@tiptap_pm@2.27.1_/node_modules/@tiptap/extension-text-style/dist/index.js.map +1 -0
  123. package/dist/node_modules/.pnpm/@tiptap_extension-typography@2.27.2_@tiptap_core@2.27.1_@tiptap_pm@2.27.1_/node_modules/@tiptap/extension-typography/dist/index.js +2 -0
  124. package/dist/node_modules/.pnpm/@tiptap_extension-typography@2.27.2_@tiptap_core@2.27.1_@tiptap_pm@2.27.1_/node_modules/@tiptap/extension-typography/dist/index.js.map +1 -0
  125. package/dist/node_modules/.pnpm/@tiptap_extension-underline@2.27.2_@tiptap_core@2.27.1_@tiptap_pm@2.27.1_/node_modules/@tiptap/extension-underline/dist/index.js +2 -0
  126. package/dist/node_modules/.pnpm/@tiptap_extension-underline@2.27.2_@tiptap_core@2.27.1_@tiptap_pm@2.27.1_/node_modules/@tiptap/extension-underline/dist/index.js.map +1 -0
  127. package/dist/node_modules/.pnpm/@tiptap_extension-youtube@2.27.2_@tiptap_core@2.27.1_@tiptap_pm@2.27.1_/node_modules/@tiptap/extension-youtube/dist/index.js +2 -0
  128. package/dist/node_modules/.pnpm/@tiptap_extension-youtube@2.27.2_@tiptap_core@2.27.1_@tiptap_pm@2.27.1_/node_modules/@tiptap/extension-youtube/dist/index.js.map +1 -0
  129. package/dist/node_modules/.pnpm/@tiptap_react@2.27.1_@tiptap_core@2.27.1_@tiptap_pm@2.27.1__@tiptap_pm@2.27.1_react-dom_3687a02a33de69fe477ccd0d970063c0/node_modules/@tiptap/react/dist/index.js +3 -3
  130. package/dist/node_modules/.pnpm/@tiptap_react@2.27.1_@tiptap_core@2.27.1_@tiptap_pm@2.27.1__@tiptap_pm@2.27.1_react-dom_3687a02a33de69fe477ccd0d970063c0/node_modules/@tiptap/react/dist/index.js.map +1 -1
  131. package/dist/node_modules/.pnpm/@tiptap_suggestion@2.27.2_@tiptap_core@2.27.1_@tiptap_pm@2.27.1__@tiptap_pm@2.27.1/node_modules/@tiptap/suggestion/dist/index.js +2 -0
  132. package/dist/node_modules/.pnpm/@tiptap_suggestion@2.27.2_@tiptap_core@2.27.1_@tiptap_pm@2.27.1__@tiptap_pm@2.27.1/node_modules/@tiptap/suggestion/dist/index.js.map +1 -0
  133. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/bold.js +1 -1
  134. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/bold.js.map +1 -1
  135. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/code-xml.js +1 -1
  136. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/code-xml.js.map +1 -1
  137. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/code.js +1 -1
  138. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/code.js.map +1 -1
  139. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/columns-3.js +1 -1
  140. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/columns-3.js.map +1 -1
  141. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/external-link.js +1 -1
  142. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/external-link.js.map +1 -1
  143. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/grip-vertical.js +1 -1
  144. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/grip-vertical.js.map +1 -1
  145. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/heading-2.js +1 -1
  146. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/heading-2.js.map +1 -1
  147. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/heading-3.js +1 -1
  148. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/heading-3.js.map +1 -1
  149. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/highlighter.js +1 -1
  150. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/highlighter.js.map +1 -1
  151. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/image.js +1 -1
  152. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/image.js.map +1 -1
  153. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/italic.js +1 -1
  154. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/italic.js.map +1 -1
  155. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/link.js +1 -1
  156. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/link.js.map +1 -1
  157. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list-checks.js +1 -1
  158. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list-checks.js.map +1 -1
  159. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list-ordered.js +1 -1
  160. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list-ordered.js.map +1 -1
  161. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list.js +1 -1
  162. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/list.js.map +1 -1
  163. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/merge.js +1 -1
  164. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/merge.js.map +1 -1
  165. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/message-square-quote.js +1 -1
  166. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/message-square-quote.js.map +1 -1
  167. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/minus.js +1 -1
  168. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/minus.js.map +1 -1
  169. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/plus.js +1 -1
  170. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/plus.js.map +1 -1
  171. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/quote.js +1 -1
  172. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/quote.js.map +1 -1
  173. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/rows-3.js +1 -1
  174. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/rows-3.js.map +1 -1
  175. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/split.js +1 -1
  176. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/split.js.map +1 -1
  177. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/strikethrough.js +1 -1
  178. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/strikethrough.js.map +1 -1
  179. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/table.js +1 -1
  180. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/table.js.map +1 -1
  181. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/trash-2.js +1 -1
  182. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/trash-2.js.map +1 -1
  183. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/underline.js +1 -1
  184. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/underline.js.map +1 -1
  185. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/unlink.js +2 -2
  186. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/unlink.js.map +1 -1
  187. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/youtube.js +1 -1
  188. package/dist/node_modules/.pnpm/lucide-react@0.525.0_react@19.2.0/node_modules/lucide-react/dist/esm/icons/youtube.js.map +1 -1
  189. package/dist/node_modules/.pnpm/tippy.js@6.3.7/node_modules/tippy.js/dist/tippy.esm.js +7 -0
  190. package/dist/node_modules/.pnpm/tippy.js@6.3.7/node_modules/tippy.js/dist/tippy.esm.js.map +1 -0
  191. package/dist/src/assets/css/modals.css +189 -0
  192. package/dist/src/assets/css/ui/content-viewer.css +273 -58
  193. package/dist/src/assets/css/ui/ihub-text-editor.css +883 -0
  194. package/dist/src/assets/css/ui/ui-index.css +1 -0
  195. package/dist/src/components/forms/FilterObjects.js +1 -1
  196. package/dist/src/components/lib/modals/modals.js +1 -1
  197. package/dist/src/components/lib/modals/modals.js.map +1 -1
  198. package/dist/src/components/ui/ComponentLists.js +1 -1
  199. package/dist/src/components/ui/editor/ihub-editor/IHubTextEditor.js +2 -0
  200. package/dist/src/components/ui/editor/ihub-editor/IHubTextEditor.js.map +1 -0
  201. package/dist/src/components/ui/editor/ihub-editor/components/BubbleToolbar.js +2 -0
  202. package/dist/src/components/ui/editor/ihub-editor/components/BubbleToolbar.js.map +1 -0
  203. package/dist/src/components/ui/editor/ihub-editor/components/EditorFooter.js +2 -0
  204. package/dist/src/components/ui/editor/ihub-editor/components/EditorFooter.js.map +1 -0
  205. package/dist/src/components/ui/editor/ihub-editor/components/FloatingAddButton.js +2 -0
  206. package/dist/src/components/ui/editor/ihub-editor/components/FloatingAddButton.js.map +1 -0
  207. package/dist/src/components/ui/editor/ihub-editor/components/LinkPopover.js +2 -0
  208. package/dist/src/components/ui/editor/ihub-editor/components/LinkPopover.js.map +1 -0
  209. package/dist/src/components/ui/editor/ihub-editor/components/SlashCommandMenu.js +2 -0
  210. package/dist/src/components/ui/editor/ihub-editor/components/SlashCommandMenu.js.map +1 -0
  211. package/dist/src/components/ui/editor/ihub-editor/components/TableToolbar.js +2 -0
  212. package/dist/src/components/ui/editor/ihub-editor/components/TableToolbar.js.map +1 -0
  213. package/dist/src/components/ui/editor/ihub-editor/constants.js +2 -0
  214. package/dist/src/components/ui/editor/ihub-editor/constants.js.map +1 -0
  215. package/dist/src/components/ui/editor/ihub-editor/extensions/EmbedExtension.js +2 -0
  216. package/dist/src/components/ui/editor/ihub-editor/extensions/EmbedExtension.js.map +1 -0
  217. package/dist/src/components/ui/editor/ihub-editor/extensions/ImageWithCaption.js +2 -0
  218. package/dist/src/components/ui/editor/ihub-editor/extensions/ImageWithCaption.js.map +1 -0
  219. package/dist/src/components/ui/editor/ihub-editor/extensions/PullQuoteExtension.js +2 -0
  220. package/dist/src/components/ui/editor/ihub-editor/extensions/PullQuoteExtension.js.map +1 -0
  221. package/dist/src/components/ui/editor/ihub-editor/extensions/SlashCommandExtension.js +2 -0
  222. package/dist/src/components/ui/editor/ihub-editor/extensions/SlashCommandExtension.js.map +1 -0
  223. package/dist/src/components/ui/editor/ihub-editor/hooks/useIHubEditor.js +2 -0
  224. package/dist/src/components/ui/editor/ihub-editor/hooks/useIHubEditor.js.map +1 -0
  225. package/dist/src/components/ui/editor/ihub-editor/hooks/useImageUpload.js +2 -0
  226. package/dist/src/components/ui/editor/ihub-editor/hooks/useImageUpload.js.map +1 -0
  227. package/dist/src/components/ui/editor/ihub-editor/hooks/useMediaEmbed.js +2 -0
  228. package/dist/src/components/ui/editor/ihub-editor/hooks/useMediaEmbed.js.map +1 -0
  229. package/dist/src/components/ui/editor/ihub-editor/hooks/useSlashCommands.js +2 -0
  230. package/dist/src/components/ui/editor/ihub-editor/hooks/useSlashCommands.js.map +1 -0
  231. package/dist/src/components/ui/editor/ihub-editor/types.js +2 -0
  232. package/dist/src/components/ui/editor/ihub-editor/types.js.map +1 -0
  233. package/dist/src/components/ui/viewer/ContentViewer.js +1 -1
  234. package/dist/src/index.js +1 -1
  235. package/dist/src/types/components/lib/modals/modals.d.ts +134 -0
  236. package/dist/src/types/components/ui/editor/ihub-editor/IHubTextEditor.d.ts +2 -0
  237. package/dist/src/types/components/ui/editor/ihub-editor/components/BubbleToolbar.d.ts +6 -0
  238. package/dist/src/types/components/ui/editor/ihub-editor/components/DragHandle.d.ts +5 -0
  239. package/dist/src/types/components/ui/editor/ihub-editor/components/EditorFooter.d.ts +8 -0
  240. package/dist/src/types/components/ui/editor/ihub-editor/components/EmbedBlock.d.ts +6 -0
  241. package/dist/src/types/components/ui/editor/ihub-editor/components/FloatingAddButton.d.ts +7 -0
  242. package/dist/src/types/components/ui/editor/ihub-editor/components/ImageBlock.d.ts +12 -0
  243. package/dist/src/types/components/ui/editor/ihub-editor/components/LinkPopover.d.ts +7 -0
  244. package/dist/src/types/components/ui/editor/ihub-editor/components/PullQuote.d.ts +6 -0
  245. package/dist/src/types/components/ui/editor/ihub-editor/components/SlashCommandMenu.d.ts +9 -0
  246. package/dist/src/types/components/ui/editor/ihub-editor/components/TableToolbar.d.ts +6 -0
  247. package/dist/src/types/components/ui/editor/ihub-editor/constants.d.ts +3 -0
  248. package/dist/src/types/components/ui/editor/ihub-editor/extensions/EmbedExtension.d.ts +13 -0
  249. package/dist/src/types/components/ui/editor/ihub-editor/extensions/ImageWithCaption.d.ts +14 -0
  250. package/dist/src/types/components/ui/editor/ihub-editor/extensions/PullQuoteExtension.d.ts +11 -0
  251. package/dist/src/types/components/ui/editor/ihub-editor/extensions/SlashCommandExtension.d.ts +3 -0
  252. package/dist/src/types/components/ui/editor/ihub-editor/hooks/useIHubEditor.d.ts +16 -0
  253. package/dist/src/types/components/ui/editor/ihub-editor/hooks/useImageUpload.d.ts +11 -0
  254. package/dist/src/types/components/ui/editor/ihub-editor/hooks/useMediaEmbed.d.ts +7 -0
  255. package/dist/src/types/components/ui/editor/ihub-editor/hooks/useSlashCommands.d.ts +10 -0
  256. package/dist/src/types/components/ui/editor/ihub-editor/index.d.ts +2 -0
  257. package/dist/src/types/components/ui/editor/ihub-editor/types.d.ts +48 -0
  258. package/dist/src/types/index.d.ts +2 -0
  259. package/dist/tsconfig.build.tsbuildinfo +1 -1
  260. package/package.json +13 -1
@@ -1,6 +1,7 @@
1
1
  @import url("./code-display.css");
2
2
  @import url("./content-viewer.css");
3
3
  @import url("./editor.css");
4
+ @import url("./ihub-text-editor.css");
4
5
  @import url("./list-styles.css");
5
6
  @import url("./parent-list-styles.css");
6
7
  @import url("./signout-session.css");
@@ -1,2 +1,2 @@
1
- import{slicedToArray as e,typeof as t}from"../../../_virtual/_rollupPluginBabelHelpers.js";import{jsxs as a,Fragment as i,jsx as l}from"react/jsx-runtime";import{useState as s,useEffect as r}from"react";import n from"@mui/icons-material/ExpandMore";import{setCookie as o}from"../lib/helpFunction.js";import u from"../ui/viewer/ContentViewer.js";var c=function(c){var d=s(!1),m=e(d,2),p=m[0],f=m[1],h=s("Choose..."),b=e(h,2),v=b[0],N=b[1],_=s([]),V=e(_,2),y=V[0],C=V[1],j=s(""),x=e(j,2),k=x[0],w=x[1];r(function(){var e=[];for(var t in c.options)c.options[t].id===c.defaultValue&&(N(c.options[t].title),w(c.options[t].id)),e.push(c.options[t]);C(e)},[c.options,c.defaultValue]),r(function(){var e;if("object"===t(c.defaultValue)&&null!==(e=c.defaultValue)&&void 0!==e&&e.id)N(c.defaultValue.title),w(c.defaultValue.id);else if(c.defaultValue){var a=c.options.find(function(e){return e.id===c.defaultValue});null!=a&&a.id&&(N(a.title),w(a.id))}else N("Choose..."),w("")},[c.defaultValue,c.options]);return a(i,{children:[a("div",{className:"ihub-select ".concat(c.err?"ihub-form-err":"").concat(c.className?" ".concat(c.className):""),style:{width:c.defaultWidth||"300px"},children:[a("div",{className:"ihub-select__btn",onClick:function(){return 0!==c.status&&f(!p)},children:[a("div",{className:0===c.status?"disabled":"",children:[l("input",{type:"text",className:"ihub-select__input",value:c.upperCases?String(k).toUpperCase():k||"",id:"id_"+c.name,name:c.name,required:c.required,"data-name":c.dataName||c.name,readOnly:!0}),l(u,{content:v||"...",showToolbar:!1})]}),c.label&&l("label",{className:"ihub-select__label",children:c.label}),l("div",{className:"search_btn",children:0===c.status?l("div",{className:"ihub-select__loader"}):l(n,{})})]}),p&&l("div",{className:"ihub-select__content",children:y.map(function(e,t){return l("div",{className:"ihub-select__item",onClick:function(){return function(e,t){N(t),w(e.id),f(!1),c.setValue&&c.setValue(e),c.setNameValue&&c.setNameValue(c.name,e),c.setObjects&&c.setObjects(e),c.setArrayProps&&c.setArrayProps(c.arrayProps||[],e),c.setCookies&&o(c.setCookies,JSON.stringify(e),365)}(e,e.title)},children:e.title},t)})})]}),c.note&&l("p",{className:"ihub-input-notes",children:c.note}),c.error&&l("span",{className:"ihub-error-text",children:c.error})]})};export{c as default};
1
+ import{slicedToArray as e,typeof as t}from"../../../_virtual/_rollupPluginBabelHelpers.js";import{jsxs as a,Fragment as i,jsx as l}from"react/jsx-runtime";import{useState as s,useEffect as r}from"react";import n from"@mui/icons-material/ExpandMore";import{setCookie as o}from"../lib/helpFunction.js";var u=function(u){var c=s(!1),d=e(c,2),m=d[0],p=d[1],f=s("Choose..."),h=e(f,2),b=h[0],_=h[1],N=s([]),v=e(N,2),V=v[0],y=v[1],C=s(""),j=e(C,2),x=j[0],g=j[1];r(function(){var e=[];for(var t in u.options)u.options[t].id===u.defaultValue&&(_(u.options[t].title),g(u.options[t].id)),e.push(u.options[t]);y(e)},[u.options,u.defaultValue]),r(function(){var e;if("object"===t(u.defaultValue)&&null!==(e=u.defaultValue)&&void 0!==e&&e.id)_(u.defaultValue.title),g(u.defaultValue.id);else if(u.defaultValue){var a=u.options.find(function(e){return e.id===u.defaultValue});null!=a&&a.id&&(_(a.title),g(a.id))}else _("Choose..."),g("")},[u.defaultValue,u.options]);return a(i,{children:[a("div",{className:"ihub-select ".concat(u.err?"ihub-form-err":"").concat(u.className?" ".concat(u.className):""),style:{width:u.defaultWidth||"300px"},children:[a("div",{className:"ihub-select__btn",onClick:function(){return 0!==u.status&&p(!m)},children:[a("div",{className:0===u.status?"disabled":"",children:[l("input",{type:"text",className:"ihub-select__input",value:u.upperCases?String(x).toUpperCase():x||"",id:"id_"+u.name,name:u.name,required:u.required,"data-name":u.dataName||u.name,readOnly:!0}),l("p",{dangerouslySetInnerHTML:{__html:b||"..."}})]}),u.label&&l("label",{className:"ihub-select__label",children:u.label}),l("div",{className:"search_btn",children:0===u.status?l("div",{className:"ihub-select__loader"}):l(n,{})})]}),m&&l("div",{className:"ihub-select__content",children:V.map(function(e,t){return l("div",{className:"ihub-select__item",onClick:function(){return function(e,t){_(t),g(e.id),p(!1),u.setValue&&u.setValue(e),u.setNameValue&&u.setNameValue(u.name,e),u.setObjects&&u.setObjects(e),u.setArrayProps&&u.setArrayProps(u.arrayProps||[],e),u.setCookies&&o(u.setCookies,JSON.stringify(e),365)}(e,e.title)},children:e.title},t)})})]}),u.note&&l("p",{className:"ihub-input-notes",children:u.note}),u.error&&l("span",{className:"ihub-error-text",children:u.error})]})};export{u as default};
2
2
  //# sourceMappingURL=FilterObjects.js.map
@@ -1,2 +1,2 @@
1
- var n=function(n){if(!n||n.length<3)return!1;return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)},e=function(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(function(t){var o=document.getElementById("confirmModal");o||((o=document.createElement("div")).id="confirmModal");var i='\n <section id="myModal" class="modal">\n <div class="modal-content">\n <span class="close" onclick="window.handleCancel()">×</span>\n <p class="'.concat(e?"something_bad_flagged":"something_bad",'">\n ').concat(e?"Unexpected things will happen if you dont read this!":"You are about to submit!","\n </p>\n <p>").concat(n||"Carefully read the instructions before making a decision. Ready? Hit the continue button!",'</p>\n <div class="mt-4">\n <button type="button" class="danger-btn d-inline-block" onclick="window.handleCancel()">Cancel</button>\n <button type="button" class="important-btn confirm-btn ihub-bg-dark-cyan" onclick="window.handleConfirm()">Ok</button>\n </div>\n </div>\n </section>\n ');o.innerHTML=i,document.body.appendChild(o);var a=function(){var n;null===(n=o)||void 0===n||n.remove()};window.handleCancel=function(){a(),t(!1),console.log("")},window.handleConfirm=function(){a(),t(!0)},o.addEventListener("click",function(n){var e=n.target;"myModal"!==e.id&&"confirmModal"!==e.id||a()})})},t=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,t=200===e||201===e?"Awesome! The update was made.":500===e?"Sorry, the server can't process your request":"Hmmm..., Something went wrong. Try again",o=200===e||201===e?'<svg viewBox="0 0 24 24" style="color: var(--ViridianGreen); width:24px; height:24px;"><path fill="currentColor" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>':'<svg viewBox="0 0 24 24" style="color: var(--Danger); width:24px; height:24px;"><path fill="currentColor" d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',i=document.getElementById("openToast");i||((i=document.createElement("div")).id="openToast");var a='\n <div class="toast-wrapper">\n <div class="slide-in-top">\n <div class="align-text">\n <div class="valid_btn">\n '.concat(o,'\n <p class="').concat(200===e||201===e?"isDone":"isError",'">\n ').concat(n||t,'\n </p>\n </div>\n </div>\n <svg width="800px" height="800px" viewBox="-0.5 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg" \n class="close-btn" onclick="window.cleanupToast()">\n <path d="M3 21.32L21 3.32001" stroke="var(--Gunmetal)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M3 3.32001L21 21.32" stroke="var(--Gunmetal)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>\n </div>\n </div>\n ');i.innerHTML=a,document.body.appendChild(i),window.cleanupToast=function(){var n;null===(n=i)||void 0===n||n.remove()},setTimeout(function(){window.cleanupToast()},1e4)},o=function(e){return new Promise(function(o){var i,a=document.getElementById("confirmModal");a||((a=document.createElement("div")).id="confirmModal");var d=function(){var n;null===(n=a)||void 0===n||n.remove()};window.handleCleanUpInput=function(){d(),o(void 0)},window.handleInput=function(e){var t=document.getElementById("proceedBtn");n(e.value)?(t&&(t.disabled=!1),i=e.value):(t&&(t.disabled=!0),i=void 0)},window.handleConfirm=function(){n(i)?(d(),o(i)):t("You need to enter a valid email!",400)};var l='\n <section id="myModal" class="modal">\n <div class="modal-content">\n <svg width="800px" height="800px" viewBox="-0.5 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"\n class="ih_get_user_email_modal_close_btn" onclick="window.handleCleanUpInput()">\n <path d="M3 21.32L21 3.32001" stroke="var(--Gunmetal)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n <path d="M3 3.32001L21 21.32" stroke="var(--Gunmetal)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>\n <h4>Enrol for '.concat(e,'</h4>\n <p class="ihub-mt-3">Enter a valid Email Address</p>\n <input type="email" name="email" id="userInput" oninput="window.handleInput(this)" />\n <div class="action_btn ihub-mt-3">\n <button type="button" disabled id="proceedBtn" class="delete_btn important-btn" onclick="window.handleConfirm()">Proceed</button>\n </div>\n </div>\n </section>\n ');a.innerHTML=l,document.body.appendChild(a),a.addEventListener("click",function(n){var e=n.target;"myModal"!==e.id&&"confirmModal"!==e.id||(d(),o(void 0))})})};export{o as getUserEmailInputModal,e as openConfirmModal,t as openToast};
1
+ var t=function(t){if(!t||t.length<3)return!1;return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)},e=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(function(n){var a=document.getElementById("confirmModal");a||((a=document.createElement("div")).id="confirmModal");var i=e?"something_bad_flagged":"something_bad",o=e?"Unexpected things will happen if you don't read this!":"You are about to submit!",r=t||"Carefully read the instructions before making a decision. Ready? Hit the continue button!",d=document.createElement("section");d.id="myModal",d.className="modal";var s=document.createElement("div");s.className="modal-content";var c=document.createElement("span");c.className="close",c.textContent="×",c.addEventListener("click",function(){b(),n(!1)});var l=document.createElement("p");l.className=i,l.textContent=o;var u=document.createElement("p");u.textContent=r;var m=document.createElement("div");m.className="mt-4";var p=document.createElement("button");p.type="button",p.className="danger-btn d-inline-block",p.textContent="Cancel",p.addEventListener("click",function(){b(),n(!1)});var v=document.createElement("button");v.type="button",v.className="important-btn confirm-btn ihub-bg-dark-cyan",v.textContent="Ok",v.addEventListener("click",function(){b(),n(!0)}),m.appendChild(p),m.appendChild(v),s.appendChild(c),s.appendChild(l),s.appendChild(u),s.appendChild(m),d.appendChild(s),a.textContent="",a.appendChild(d),document.body.appendChild(a);var b=function(){var t;null===(t=a)||void 0===t||t.remove()};a.addEventListener("click",function(t){var e=t.target;"myModal"!==e.id&&"confirmModal"!==e.id||(b(),n(!1))})})},n=0,a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,a=200===e||201===e,i=t||(a?"Awesome! The update was made.":500===e?"Sorry, the server can't process your request":"Hmmm..., Something went wrong. Try again"),o="ihub-toast-".concat(++n),r=document.createElement("div");r.id=o,r.className="ihub-toast-container";var d=a?"success":"error",s=document.createElement("div");s.className="ihub-toast ihub-toast--".concat(d," ihub-toast-slide-in");var c=document.createElement("div");c.className="ihub-toast-body";var l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("viewBox","0 0 24 24"),l.setAttribute("class","ihub-toast-icon ihub-toast-icon--".concat(d));var u=document.createElementNS("http://www.w3.org/2000/svg","path");u.setAttribute("fill","currentColor"),u.setAttribute("d",a?"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z":"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"),l.appendChild(u);var m=document.createElement("p");m.className="ihub-toast-message",m.textContent=i,c.appendChild(l),c.appendChild(m);var p=document.createElement("button");p.type="button",p.className="ihub-toast-close",p.setAttribute("aria-label","Close notification");var v=document.createElementNS("http://www.w3.org/2000/svg","svg");v.setAttribute("width","14"),v.setAttribute("height","14"),v.setAttribute("viewBox","0 0 24 24"),v.setAttribute("fill","none"),v.setAttribute("stroke","currentColor"),v.setAttribute("stroke-width","2"),v.setAttribute("stroke-linecap","round"),v.setAttribute("stroke-linejoin","round");var b=document.createElementNS("http://www.w3.org/2000/svg","line");b.setAttribute("x1","18"),b.setAttribute("y1","6"),b.setAttribute("x2","6"),b.setAttribute("y2","18");var h=document.createElementNS("http://www.w3.org/2000/svg","line");h.setAttribute("x1","6"),h.setAttribute("y1","6"),h.setAttribute("x2","18"),h.setAttribute("y2","18"),v.appendChild(b),v.appendChild(h),p.appendChild(v);var C=document.createElement("div");C.className="ihub-toast-progress ihub-toast-progress--".concat(d),s.appendChild(c),s.appendChild(p),s.appendChild(C),r.appendChild(s),document.body.appendChild(r);var w=function(){var t=document.getElementById(o);if(t){var e=t.querySelector(".ihub-toast");e?(e.classList.add("ihub-toast-slide-out"),e.addEventListener("animationend",function(){return t.remove()},{once:!0})):t.remove()}};p.addEventListener("click",w),setTimeout(w,8e3)},i=function(e){return new Promise(function(n){var i,o=document.getElementById("confirmModal");o||((o=document.createElement("div")).id="confirmModal");var r=function(){var t;null===(t=o)||void 0===t||t.remove()},d=document.createElement("section");d.id="myModal",d.className="modal";var s=document.createElement("div");s.className="modal-content";var c=document.createElementNS("http://www.w3.org/2000/svg","svg");c.setAttribute("width","24"),c.setAttribute("height","24"),c.setAttribute("viewBox","-0.5 0 25 25"),c.setAttribute("fill","none"),c.setAttribute("class","ih_get_user_email_modal_close_btn"),c.style.cursor="pointer";var l=document.createElementNS("http://www.w3.org/2000/svg","path");l.setAttribute("d","M3 21.32L21 3.32001"),l.setAttribute("stroke","var(--Gunmetal)"),l.setAttribute("stroke-width","1.5"),l.setAttribute("stroke-linecap","round"),l.setAttribute("stroke-linejoin","round");var u=document.createElementNS("http://www.w3.org/2000/svg","path");u.setAttribute("d","M3 3.32001L21 21.32"),u.setAttribute("stroke","var(--Gunmetal)"),u.setAttribute("stroke-width","1.5"),u.setAttribute("stroke-linecap","round"),u.setAttribute("stroke-linejoin","round"),c.appendChild(l),c.appendChild(u),c.addEventListener("click",function(){r(),n(void 0)});var m=document.createElement("h4");m.textContent="Enrol for ".concat(e);var p=document.createElement("p");p.className="ihub-mt-3",p.textContent="Enter a valid Email Address";var v=document.createElement("input");v.type="email",v.name="email",v.id="userInput";var b=document.createElement("div");b.className="action_btn ihub-mt-3";var h=document.createElement("button");h.type="button",h.disabled=!0,h.id="proceedBtn",h.className="delete_btn important-btn",h.textContent="Proceed",v.addEventListener("input",function(){t(v.value)?(h.disabled=!1,i=v.value):(h.disabled=!0,i=void 0)}),h.addEventListener("click",function(){t(i)?(r(),n(i)):a("You need to enter a valid email!",400)}),b.appendChild(h),s.appendChild(c),s.appendChild(m),s.appendChild(p),s.appendChild(v),s.appendChild(b),d.appendChild(s),o.textContent="",o.appendChild(d),document.body.appendChild(o),o.addEventListener("click",function(t){var e=t.target;"myModal"!==e.id&&"confirmModal"!==e.id||(r(),n(void 0))})})};export{i as getUserEmailInputModal,e as openConfirmModal,a as openToast};
2
2
  //# sourceMappingURL=modals.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modals.js","sources":["../../../../../src/components/lib/modals/modals.ts"],"sourcesContent":["import React from \"react\";\n\n// Type for status codes\ntype StatusCode = 200 | 201 | 400 | 500 | number;\n\n// Utility function to validate email\nconst isValidEmail = (input: string | undefined): boolean => {\n if (!input || input.length < 3) {\n return false;\n }\n const emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n return emailRegex.test(input);\n};\n\n// Declare global window interface extensions for event handlers\ndeclare global {\n interface Window {\n handleCancel: () => void;\n handleConfirm: () => void;\n cleanupToast: () => void;\n handleInput: (e: HTMLInputElement) => void;\n handleCleanUpInput: () => void;\n }\n}\n\n// Open a confirmation modal\nexport const openConfirmModal = (\n message: string,\n flag: boolean = false\n): Promise<boolean> => {\n return new Promise((resolve) => {\n let modalContainer = document.getElementById(\n \"confirmModal\"\n ) as HTMLDivElement | null;\n if (!modalContainer) {\n modalContainer = document.createElement(\"div\");\n modalContainer.id = \"confirmModal\";\n }\n\n const modalContent = `\n <section id=\"myModal\" class=\"modal\">\n <div class=\"modal-content\">\n <span class=\"close\" onclick=\"window.handleCancel()\">×</span>\n <p class=\"${flag ? \"something_bad_flagged\" : \"something_bad\"}\">\n ${\n flag\n ? \"Unexpected things will happen if you don’t read this!\"\n : \"You are about to submit!\"\n }\n </p>\n <p>${\n message ||\n \"Carefully read the instructions before making a decision. Ready? Hit the continue button!\"\n }</p>\n <div class=\"mt-4\">\n <button type=\"button\" class=\"danger-btn d-inline-block\" onclick=\"window.handleCancel()\">Cancel</button>\n <button type=\"button\" class=\"important-btn confirm-btn ihub-bg-dark-cyan\" onclick=\"window.handleConfirm()\">Ok</button>\n </div>\n </div>\n </section>\n `;\n\n modalContainer.innerHTML = modalContent;\n document.body.appendChild(modalContainer);\n\n const cleanup = () => {\n modalContainer?.remove();\n };\n\n window.handleCancel = () => {\n cleanup();\n resolve(false);\n console.log(\"\");\n };\n\n window.handleConfirm = () => {\n cleanup();\n resolve(true);\n };\n\n modalContainer.addEventListener(\"click\", (e: MouseEvent) => {\n const target = e.target as HTMLElement;\n if (target.id === \"myModal\" || target.id === \"confirmModal\") {\n cleanup();\n }\n });\n });\n};\n\n// Open a toast notification\nexport const openToast = (\n message?: React.ReactDOM | string,\n status: StatusCode = 200\n): void => {\n const msg =\n status === 200 || status === 201\n ? \"Awesome! The update was made.\"\n : status === 500\n ? \"Sorry, the server can't process your request\"\n : \"Hmmm..., Something went wrong. Try again\";\n\n const iconSvg =\n status === 200 || status === 201\n ? '<svg viewBox=\"0 0 24 24\" style=\"color: var(--ViridianGreen); width:24px; height:24px;\"><path fill=\"currentColor\" d=\"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\"/></svg>'\n : '<svg viewBox=\"0 0 24 24\" style=\"color: var(--Danger); width:24px; height:24px;\"><path fill=\"currentColor\" d=\"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z\"/></svg>';\n\n let modalContainer = document.getElementById(\n \"openToast\"\n ) as HTMLDivElement | null;\n if (!modalContainer) {\n modalContainer = document.createElement(\"div\");\n modalContainer.id = \"openToast\";\n }\n\n const modalContent = `\n <div class=\"toast-wrapper\">\n <div class=\"slide-in-top\">\n <div class=\"align-text\">\n <div class=\"valid_btn\">\n ${iconSvg}\n <p class=\"${\n status === 200 || status === 201 ? \"isDone\" : \"isError\"\n }\">\n ${message || msg}\n </p>\n </div>\n </div>\n <svg width=\"800px\" height=\"800px\" viewBox=\"-0.5 0 25 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" \n class=\"close-btn\" onclick=\"window.cleanupToast()\">\n <path d=\"M3 21.32L21 3.32001\" stroke=\"var(--Gunmetal)\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M3 3.32001L21 21.32\" stroke=\"var(--Gunmetal)\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n </div>\n </div>\n `;\n\n modalContainer.innerHTML = modalContent;\n document.body.appendChild(modalContainer);\n\n window.cleanupToast = () => {\n modalContainer?.remove();\n };\n\n setTimeout(() => {\n window.cleanupToast();\n }, 10000);\n};\n\n// Open a modal to get user email input\nexport const getUserEmailInputModal = (\n title: string\n): Promise<string | undefined> => {\n return new Promise((resolve) => {\n let modalContainer = document.getElementById(\n \"confirmModal\"\n ) as HTMLDivElement | null;\n if (!modalContainer) {\n modalContainer = document.createElement(\"div\");\n modalContainer.id = \"confirmModal\";\n }\n let emailValue: string | undefined;\n\n const cleanup = () => {\n modalContainer?.remove();\n };\n\n window.handleCleanUpInput = () => {\n cleanup();\n resolve(undefined);\n };\n\n window.handleInput = (e: HTMLInputElement) => {\n const proceedBtn = document.getElementById(\n \"proceedBtn\"\n ) as HTMLButtonElement | null;\n\n if (isValidEmail(e.value)) {\n if (proceedBtn) proceedBtn.disabled = false;\n emailValue = e.value;\n } else {\n if (proceedBtn) proceedBtn.disabled = true;\n emailValue = undefined;\n }\n };\n\n window.handleConfirm = () => {\n if (isValidEmail(emailValue)) {\n cleanup();\n resolve(emailValue);\n } else {\n openToast(\"You need to enter a valid email!\", 400);\n }\n };\n\n const modalContent = `\n <section id=\"myModal\" class=\"modal\">\n <div class=\"modal-content\">\n <svg width=\"800px\" height=\"800px\" viewBox=\"-0.5 0 25 25\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"\n class=\"ih_get_user_email_modal_close_btn\" onclick=\"window.handleCleanUpInput()\">\n <path d=\"M3 21.32L21 3.32001\" stroke=\"var(--Gunmetal)\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M3 3.32001L21 21.32\" stroke=\"var(--Gunmetal)\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n </svg>\n <h4>Enrol for ${title}</h4>\n <p class=\"ihub-mt-3\">Enter a valid Email Address</p>\n <input type=\"email\" name=\"email\" id=\"userInput\" oninput=\"window.handleInput(this)\" />\n <div class=\"action_btn ihub-mt-3\">\n <button type=\"button\" disabled id=\"proceedBtn\" class=\"delete_btn important-btn\" onclick=\"window.handleConfirm()\">Proceed</button>\n </div>\n </div>\n </section>\n `;\n\n modalContainer.innerHTML = modalContent;\n document.body.appendChild(modalContainer);\n\n modalContainer.addEventListener(\"click\", (e: MouseEvent) => {\n const target = e.target as HTMLElement;\n if (target.id === \"myModal\" || target.id === \"confirmModal\") {\n cleanup();\n resolve(undefined);\n }\n });\n });\n};\n"],"names":["isValidEmail","input","length","test","openConfirmModal","message","flag","arguments","undefined","Promise","resolve","modalContainer","document","getElementById","createElement","id","modalContent","concat","innerHTML","body","appendChild","cleanup","_modalContainer","remove","window","handleCancel","console","log","handleConfirm","addEventListener","e","target","openToast","status","msg","iconSvg","cleanupToast","_modalContainer2","setTimeout","getUserEmailInputModal","title","emailValue","_modalContainer3","handleCleanUpInput","handleInput","proceedBtn","value","disabled"],"mappings":"AAMA,IAAMA,EAAe,SAACC,GACpB,IAAKA,GAASA,EAAMC,OAAS,EAC3B,OAAO,EAGT,MADmB,6BACDC,KAAKF,EACzB,EAcaG,EAAmB,SAC9BC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AW,WACTd,OAAOY,cACR,EAAE,IACL,EAGaG,EAAyB,SACpCC,GAEA,OAAO,IAAI/B,QAAQ,SAACC,GAClB,IAOI+B,EAPA9B,EAAiBC,SAASC,eAC5B,gBAEGF,KACHA,EAAiBC,SAASE,cAAc,QACzBC,GAAK,gBAItB,IAAMM,EAAU,WAAK,IAAAqB,EACLA,QAAdA,EAAA/B,aAAc+B,GAAdA,EAAgBnB,UAGlBC,OAAOmB,mBAAqB,WAC1BtB,IACAX,OAAQF,IAGVgB,OAAOoB,YAAc,SAACd,GACpB,IAAMe,EAAajC,SAASC,eAC1B,cAGEb,EAAa8B,EAAEgB,QACbD,IAAYA,EAAWE,UAAW,GACtCN,EAAaX,EAAEgB,QAEXD,IAAYA,EAAWE,UAAW,GACtCN,OAAajC,IAIjBgB,OAAOI,cAAgB,WACjB5B,EAAayC,IACfpB,IACAX,EAAQ+B,IAERT,EAAU,mCAAoC,MAIlD,IAAMhB,EAAY,imBAAAC,OAQIuB,EAQrB,iaAED7B,EAAeO,UAAYF,EAC3BJ,SAASO,KAAKC,YAAYT,GAE1BA,EAAekB,iBAAiB,QAAS,SAACC,GACxC,IAAMC,EAASD,EAAEC,OACC,YAAdA,EAAOhB,IAAkC,iBAAdgB,EAAOhB,KACpCM,IACAX,OAAQF,GAEZ,EACF,EACF"}
1
+ {"version":3,"file":"modals.js","sources":["../../../../../src/components/lib/modals/modals.ts"],"sourcesContent":["// css: /Users/noaholatoye/Documents/code_projects/npm_packages/instincthub-react-ui/src/assets/css/modals\nimport React from \"react\";\n\n// Type for status codes\ntype StatusCode = 200 | 201 | 400 | 500 | number;\n\n// Utility function to validate email\nconst isValidEmail = (input: string | undefined): boolean => {\n if (!input || input.length < 3) {\n return false;\n }\n const emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n return emailRegex.test(input);\n};\n\n// Declare global window interface extensions for event handlers\ndeclare global {\n interface Window {\n handleCancel: () => void;\n handleConfirm: () => void;\n cleanupToast: () => void;\n handleInput: (e: HTMLInputElement) => void;\n handleCleanUpInput: () => void;\n }\n}\n\n/**\n * Opens a confirmation modal that returns a promise resolving to the user's choice.\n *\n * @example\n * ```tsx\n * import { openConfirmModal } from \"@instincthub/react-ui/lib\";\n *\n * // Basic confirmation\n * const handleAction = async () => {\n * const confirmed = await openConfirmModal(\"Are you sure you want to proceed?\");\n * if (confirmed) {\n * // User clicked \"Ok\"\n * performAction();\n * }\n * };\n *\n * // With warning flag (red warning banner)\n * const handleDangerousAction = async () => {\n * const confirmed = await openConfirmModal(\n * \"This will permanently remove all data. Continue?\",\n * true // Shows red warning banner\n * );\n * if (confirmed) {\n * deleteAllData();\n * }\n * };\n *\n * // In a form submission flow\n * const handleSubmit = async (formData: FormData) => {\n * const confirmed = await openConfirmModal(\n * \"You are about to submit this form. Please review your entries.\"\n * );\n * if (confirmed) {\n * await submitForm(formData);\n * openToast(\"Form submitted successfully!\");\n * }\n * };\n * ```\n *\n * @param message - The confirmation message to display\n * @param flag - If true, shows a red warning banner instead of the default purple one\n * @returns Promise that resolves to `true` (Ok) or `false` (Cancel / overlay click)\n */\nexport const openConfirmModal = (\n message: string,\n flag: boolean = false\n): Promise<boolean> => {\n return new Promise((resolve) => {\n let modalContainer = document.getElementById(\n \"confirmModal\"\n ) as HTMLDivElement | null;\n if (!modalContainer) {\n modalContainer = document.createElement(\"div\");\n modalContainer.id = \"confirmModal\";\n }\n\n const warningClass = flag ? \"something_bad_flagged\" : \"something_bad\";\n const warningText = flag\n ? \"Unexpected things will happen if you don't read this!\"\n : \"You are about to submit!\";\n const bodyText =\n message ||\n \"Carefully read the instructions before making a decision. Ready? Hit the continue button!\";\n\n // Build modal using safe DOM methods\n const section = document.createElement(\"section\");\n section.id = \"myModal\";\n section.className = \"modal\";\n\n const contentDiv = document.createElement(\"div\");\n contentDiv.className = \"modal-content\";\n\n const closeSpan = document.createElement(\"span\");\n closeSpan.className = \"close\";\n closeSpan.textContent = \"\\u00D7\";\n closeSpan.addEventListener(\"click\", () => {\n cleanup();\n resolve(false);\n });\n\n const warningP = document.createElement(\"p\");\n warningP.className = warningClass;\n warningP.textContent = warningText;\n\n const bodyP = document.createElement(\"p\");\n bodyP.textContent = bodyText;\n\n const actionsDiv = document.createElement(\"div\");\n actionsDiv.className = \"mt-4\";\n\n const cancelBtn = document.createElement(\"button\");\n cancelBtn.type = \"button\";\n cancelBtn.className = \"danger-btn d-inline-block\";\n cancelBtn.textContent = \"Cancel\";\n cancelBtn.addEventListener(\"click\", () => {\n cleanup();\n resolve(false);\n });\n\n const okBtn = document.createElement(\"button\");\n okBtn.type = \"button\";\n okBtn.className = \"important-btn confirm-btn ihub-bg-dark-cyan\";\n okBtn.textContent = \"Ok\";\n okBtn.addEventListener(\"click\", () => {\n cleanup();\n resolve(true);\n });\n\n actionsDiv.appendChild(cancelBtn);\n actionsDiv.appendChild(okBtn);\n contentDiv.appendChild(closeSpan);\n contentDiv.appendChild(warningP);\n contentDiv.appendChild(bodyP);\n contentDiv.appendChild(actionsDiv);\n section.appendChild(contentDiv);\n\n // Clear and set content\n modalContainer.textContent = \"\";\n modalContainer.appendChild(section);\n document.body.appendChild(modalContainer);\n\n const cleanup = () => {\n modalContainer?.remove();\n };\n\n modalContainer.addEventListener(\"click\", (e: MouseEvent) => {\n const target = e.target as HTMLElement;\n if (target.id === \"myModal\" || target.id === \"confirmModal\") {\n cleanup();\n resolve(false);\n }\n });\n });\n};\n\n// Counter to stack multiple toasts\nlet toastCounter = 0;\n\n/**\n * Displays an auto-dismissing toast notification with status-based styling,\n * a countdown progress bar, and stacking support for multiple toasts.\n *\n * @example\n * ```tsx\n * import { openToast } from \"@instincthub/react-ui/lib\";\n *\n * // Success notifications\n * openToast(\"Profile updated successfully!\");\n * openToast(\"New item created!\", 201);\n *\n * // Error notifications\n * openToast(\"Please check your input.\", 400);\n * openToast(\"You don't have permission.\", 403);\n *\n * // Server error\n * openToast(\"Server error occurred.\", 500);\n *\n * // Default messages (no custom message)\n * openToast(); // \"Awesome! The update was made.\"\n * openToast(undefined, 400); // \"Hmmm..., Something went wrong. Try again\"\n * openToast(undefined, 500); // \"Sorry, the server can't process your request\"\n *\n * // In async operations\n * const handleSave = async () => {\n * try {\n * await saveData();\n * openToast(\"Data saved successfully!\");\n * } catch (error) {\n * openToast(\"Failed to save data.\", 500);\n * }\n * };\n *\n * // After form validation\n * if (!isValid) {\n * openToast(\"Please fill in all required fields.\", 400);\n * return;\n * }\n *\n * // After API delete\n * openToast(`${itemName} was successfully deleted.`);\n * ```\n *\n * @param message - Custom notification message. Falls back to a default based on status code.\n * @param status - HTTP-style status code for styling (default: 200).\n * - `200/201` → green success icon\n * - `400-499` → red error icon\n * - `500+` → red error icon\n */\nexport const openToast = (\n message?: React.ReactDOM | string,\n status: StatusCode = 200\n): void => {\n const isSuccess = status === 200 || status === 201;\n\n const msg = isSuccess\n ? \"Awesome! The update was made.\"\n : status === 500\n ? \"Sorry, the server can't process your request\"\n : \"Hmmm..., Something went wrong. Try again\";\n\n const displayMessage = (message as string) || msg;\n\n // Create a unique container per toast for stacking\n const toastId = `ihub-toast-${++toastCounter}`;\n const toastContainer = document.createElement(\"div\");\n toastContainer.id = toastId;\n toastContainer.className = \"ihub-toast-container\";\n\n // Build toast using safe DOM methods\n const variant = isSuccess ? \"success\" : \"error\";\n const toast = document.createElement(\"div\");\n toast.className = `ihub-toast ihub-toast--${variant} ihub-toast-slide-in`;\n\n // Toast body (icon + message)\n const body = document.createElement(\"div\");\n body.className = \"ihub-toast-body\";\n\n const iconSvg = document.createElementNS(\"http://www.w3.org/2000/svg\", \"svg\");\n iconSvg.setAttribute(\"viewBox\", \"0 0 24 24\");\n iconSvg.setAttribute(\"class\", `ihub-toast-icon ihub-toast-icon--${variant}`);\n const iconPath = document.createElementNS(\n \"http://www.w3.org/2000/svg\",\n \"path\"\n );\n iconPath.setAttribute(\"fill\", \"currentColor\");\n iconPath.setAttribute(\n \"d\",\n isSuccess\n ? \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\"\n : \"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z\"\n );\n iconSvg.appendChild(iconPath);\n\n const msgP = document.createElement(\"p\");\n msgP.className = \"ihub-toast-message\";\n msgP.textContent = displayMessage;\n\n body.appendChild(iconSvg);\n body.appendChild(msgP);\n\n // Close button\n const closeBtn = document.createElement(\"button\");\n closeBtn.type = \"button\";\n closeBtn.className = \"ihub-toast-close\";\n closeBtn.setAttribute(\"aria-label\", \"Close notification\");\n\n const closeSvg = document.createElementNS(\n \"http://www.w3.org/2000/svg\",\n \"svg\"\n );\n closeSvg.setAttribute(\"width\", \"14\");\n closeSvg.setAttribute(\"height\", \"14\");\n closeSvg.setAttribute(\"viewBox\", \"0 0 24 24\");\n closeSvg.setAttribute(\"fill\", \"none\");\n closeSvg.setAttribute(\"stroke\", \"currentColor\");\n closeSvg.setAttribute(\"stroke-width\", \"2\");\n closeSvg.setAttribute(\"stroke-linecap\", \"round\");\n closeSvg.setAttribute(\"stroke-linejoin\", \"round\");\n\n const line1 = document.createElementNS(\"http://www.w3.org/2000/svg\", \"line\");\n line1.setAttribute(\"x1\", \"18\");\n line1.setAttribute(\"y1\", \"6\");\n line1.setAttribute(\"x2\", \"6\");\n line1.setAttribute(\"y2\", \"18\");\n\n const line2 = document.createElementNS(\"http://www.w3.org/2000/svg\", \"line\");\n line2.setAttribute(\"x1\", \"6\");\n line2.setAttribute(\"y1\", \"6\");\n line2.setAttribute(\"x2\", \"18\");\n line2.setAttribute(\"y2\", \"18\");\n\n closeSvg.appendChild(line1);\n closeSvg.appendChild(line2);\n closeBtn.appendChild(closeSvg);\n\n // Progress bar\n const progressBar = document.createElement(\"div\");\n progressBar.className = `ihub-toast-progress ihub-toast-progress--${variant}`;\n\n // Assemble toast\n toast.appendChild(body);\n toast.appendChild(closeBtn);\n toast.appendChild(progressBar);\n toastContainer.appendChild(toast);\n document.body.appendChild(toastContainer);\n\n const cleanup = () => {\n const el = document.getElementById(toastId);\n if (!el) return;\n const toastEl = el.querySelector(\".ihub-toast\");\n if (toastEl) {\n toastEl.classList.add(\"ihub-toast-slide-out\");\n toastEl.addEventListener(\"animationend\", () => el.remove(), {\n once: true,\n });\n } else {\n el.remove();\n }\n };\n\n closeBtn.addEventListener(\"click\", cleanup);\n\n // Auto-dismiss after 8 seconds\n setTimeout(cleanup, 8000);\n};\n\n/**\n * Opens a modal dialog to collect a user's email address with built-in validation.\n *\n * @example\n * ```tsx\n * import { getUserEmailInputModal } from \"@instincthub/react-ui/lib\";\n *\n * // Collect email for course enrollment\n * const handleEnroll = async () => {\n * const email = await getUserEmailInputModal(\"Web Development Bootcamp\");\n * if (email) {\n * // User entered a valid email and clicked \"Proceed\"\n * await enrollUser(email, courseId);\n * openToast(\"Enrollment successful!\");\n * } else {\n * // User cancelled or closed the modal\n * console.log(\"Enrollment cancelled\");\n * }\n * };\n *\n * // Collect email for newsletter signup\n * const handleNewsletter = async () => {\n * const email = await getUserEmailInputModal(\"Weekly Newsletter\");\n * if (email) {\n * await subscribeToNewsletter(email);\n * }\n * };\n *\n * // Collect email before downloading a resource\n * const handleDownload = async () => {\n * const email = await getUserEmailInputModal(\"Free E-Book: React Patterns\");\n * if (email) {\n * await sendDownloadLink(email, resourceId);\n * openToast(\"Download link sent to your email!\", 200);\n * }\n * };\n * ```\n *\n * @param title - The title displayed in the modal (e.g. course name, resource name)\n * @returns Promise that resolves to the email string if valid, or `undefined` if cancelled\n */\nexport const getUserEmailInputModal = (\n title: string\n): Promise<string | undefined> => {\n return new Promise((resolve) => {\n let modalContainer = document.getElementById(\n \"confirmModal\"\n ) as HTMLDivElement | null;\n if (!modalContainer) {\n modalContainer = document.createElement(\"div\");\n modalContainer.id = \"confirmModal\";\n }\n let emailValue: string | undefined;\n\n const cleanup = () => {\n modalContainer?.remove();\n };\n\n // Build modal using safe DOM methods\n const section = document.createElement(\"section\");\n section.id = \"myModal\";\n section.className = \"modal\";\n\n const contentDiv = document.createElement(\"div\");\n contentDiv.className = \"modal-content\";\n\n // Close button SVG\n const closeSvg = document.createElementNS(\n \"http://www.w3.org/2000/svg\",\n \"svg\"\n );\n closeSvg.setAttribute(\"width\", \"24\");\n closeSvg.setAttribute(\"height\", \"24\");\n closeSvg.setAttribute(\"viewBox\", \"-0.5 0 25 25\");\n closeSvg.setAttribute(\"fill\", \"none\");\n closeSvg.setAttribute(\"class\", \"ih_get_user_email_modal_close_btn\");\n closeSvg.style.cursor = \"pointer\";\n\n const closePath1 = document.createElementNS(\n \"http://www.w3.org/2000/svg\",\n \"path\"\n );\n closePath1.setAttribute(\"d\", \"M3 21.32L21 3.32001\");\n closePath1.setAttribute(\"stroke\", \"var(--Gunmetal)\");\n closePath1.setAttribute(\"stroke-width\", \"1.5\");\n closePath1.setAttribute(\"stroke-linecap\", \"round\");\n closePath1.setAttribute(\"stroke-linejoin\", \"round\");\n\n const closePath2 = document.createElementNS(\n \"http://www.w3.org/2000/svg\",\n \"path\"\n );\n closePath2.setAttribute(\"d\", \"M3 3.32001L21 21.32\");\n closePath2.setAttribute(\"stroke\", \"var(--Gunmetal)\");\n closePath2.setAttribute(\"stroke-width\", \"1.5\");\n closePath2.setAttribute(\"stroke-linecap\", \"round\");\n closePath2.setAttribute(\"stroke-linejoin\", \"round\");\n\n closeSvg.appendChild(closePath1);\n closeSvg.appendChild(closePath2);\n closeSvg.addEventListener(\"click\", () => {\n cleanup();\n resolve(undefined);\n });\n\n const heading = document.createElement(\"h4\");\n heading.textContent = `Enrol for ${title}`;\n\n const instruction = document.createElement(\"p\");\n instruction.className = \"ihub-mt-3\";\n instruction.textContent = \"Enter a valid Email Address\";\n\n const emailInput = document.createElement(\"input\");\n emailInput.type = \"email\";\n emailInput.name = \"email\";\n emailInput.id = \"userInput\";\n\n const actionDiv = document.createElement(\"div\");\n actionDiv.className = \"action_btn ihub-mt-3\";\n\n const proceedBtn = document.createElement(\"button\");\n proceedBtn.type = \"button\";\n proceedBtn.disabled = true;\n proceedBtn.id = \"proceedBtn\";\n proceedBtn.className = \"delete_btn important-btn\";\n proceedBtn.textContent = \"Proceed\";\n\n emailInput.addEventListener(\"input\", () => {\n if (isValidEmail(emailInput.value)) {\n proceedBtn.disabled = false;\n emailValue = emailInput.value;\n } else {\n proceedBtn.disabled = true;\n emailValue = undefined;\n }\n });\n\n proceedBtn.addEventListener(\"click\", () => {\n if (isValidEmail(emailValue)) {\n cleanup();\n resolve(emailValue);\n } else {\n openToast(\"You need to enter a valid email!\", 400);\n }\n });\n\n actionDiv.appendChild(proceedBtn);\n contentDiv.appendChild(closeSvg);\n contentDiv.appendChild(heading);\n contentDiv.appendChild(instruction);\n contentDiv.appendChild(emailInput);\n contentDiv.appendChild(actionDiv);\n section.appendChild(contentDiv);\n\n modalContainer.textContent = \"\";\n modalContainer.appendChild(section);\n document.body.appendChild(modalContainer);\n\n modalContainer.addEventListener(\"click\", (e: MouseEvent) => {\n const target = e.target as HTMLElement;\n if (target.id === \"myModal\" || target.id === \"confirmModal\") {\n cleanup();\n resolve(undefined);\n }\n });\n });\n};\n"],"names":["isValidEmail","input","length","test","openConfirmModal","message","flag","arguments","undefined","Promise","resolve","modalContainer","document","getElementById","createElement","id","warningClass","warningText","bodyText","section","className","contentDiv","closeSpan","textContent","addEventListener","cleanup","warningP","bodyP","actionsDiv","cancelBtn","type","okBtn","appendChild","body","_modalContainer","remove","e","target","toastCounter","openToast","status","isSuccess","displayMessage","toastId","concat","toastContainer","variant","toast","iconSvg","createElementNS","setAttribute","iconPath","msgP","closeBtn","closeSvg","line1","line2","progressBar","el","toastEl","querySelector","classList","add","once","setTimeout","getUserEmailInputModal","title","emailValue","_modalContainer2","style","cursor","closePath1","closePath2","heading","instruction","emailInput","name","actionD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