@rufous/ui 0.1.62 → 0.2.0-beta.0

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 (217) hide show
  1. package/dist/Buttons/addButton.js +1 -0
  2. package/dist/Buttons/cancelButton.js +1 -0
  3. package/dist/Buttons/index.cjs +2 -2
  4. package/dist/Buttons/index.js +3 -2
  5. package/dist/Buttons/stdButton.js +1 -0
  6. package/dist/Buttons/submitButton.cjs +2 -2
  7. package/dist/Buttons/submitButton.js +3 -2
  8. package/dist/CheckBoxes/CheckBox.cjs +1 -1
  9. package/dist/CheckBoxes/CheckBox.js +4 -25
  10. package/dist/Contexts/rufousThemeProvider.cjs +81 -101
  11. package/dist/Contexts/rufousThemeProvider.js +3 -2
  12. package/dist/DataGrid/DataGrid.cjs +418 -0
  13. package/dist/DataGrid/DataGrid.d.cts +8 -0
  14. package/dist/DataGrid/DataGrid.d.ts +8 -0
  15. package/dist/DataGrid/DataGrid.js +9 -0
  16. package/dist/DataGrid/index.cjs +418 -0
  17. package/dist/DataGrid/index.d.cts +3 -0
  18. package/dist/DataGrid/index.d.ts +3 -0
  19. package/dist/DataGrid/index.js +8 -0
  20. package/dist/{TextFields/FloatingInput.d.cjs → DataGrid/types.cjs} +3 -3
  21. package/dist/DataGrid/types.d.cts +31 -0
  22. package/dist/DataGrid/types.d.ts +31 -0
  23. package/dist/Dialogs/BaseDialog.cjs +18 -10
  24. package/dist/Dialogs/BaseDialog.css +8248 -163
  25. package/dist/Dialogs/BaseDialog.d.cts +1 -0
  26. package/dist/Dialogs/BaseDialog.d.ts +1 -0
  27. package/dist/Dialogs/BaseDialog.js +52 -45
  28. package/dist/Dialogs/index.cjs +18 -10
  29. package/dist/Dialogs/index.css +8248 -163
  30. package/dist/Dialogs/index.js +52 -45
  31. package/dist/Editors/RichTextEditor.cjs +29477 -0
  32. package/dist/Editors/RichTextEditor.css +7179 -0
  33. package/dist/Editors/RichTextEditor.d.cts +57 -0
  34. package/dist/Editors/RichTextEditor.d.ts +57 -0
  35. package/dist/Editors/RichTextEditor.js +9 -0
  36. package/dist/Editors/index.cjs +29477 -0
  37. package/dist/Editors/index.css +7179 -0
  38. package/dist/Editors/index.d.cts +2 -0
  39. package/dist/Editors/index.d.ts +2 -0
  40. package/dist/Editors/index.js +8 -0
  41. package/dist/Progress/circularProgress.cjs +2 -2
  42. package/dist/Progress/circularProgress.d.cts +3 -3
  43. package/dist/Progress/circularProgress.d.ts +3 -3
  44. package/dist/Progress/circularProgress.js +2 -1
  45. package/dist/TextFields/AddressLookup.cjs +390 -0
  46. package/dist/TextFields/AddressLookup.d.cts +49 -0
  47. package/dist/TextFields/AddressLookup.d.ts +49 -0
  48. package/dist/TextFields/AddressLookup.js +304 -0
  49. package/dist/TextFields/FloatingInput.cjs +6 -4
  50. package/dist/TextFields/FloatingInput.d.cts +13 -19
  51. package/dist/TextFields/FloatingInput.d.ts +13 -19
  52. package/dist/TextFields/FloatingInput.js +4 -28
  53. package/dist/chunk-2AJACSJ3.js +8 -0
  54. package/dist/chunk-3Y6QBRGD.js +8 -0
  55. package/dist/chunk-4Y7SQ5EP.js +8 -0
  56. package/dist/chunk-5GK5B3FD.js +8 -0
  57. package/dist/chunk-5XKFPQLH.js +8 -0
  58. package/dist/chunk-66HHM7VI.js +468 -0
  59. package/dist/{chunk-FOZYOE5W.js → chunk-763IHEJ2.js} +1 -1
  60. package/dist/chunk-77QDKDFI.js +8 -0
  61. package/dist/{chunk-UZAD2QJD.js → chunk-7II4Q2WY.js} +1 -1
  62. package/dist/chunk-7KRG7VNW.js +0 -0
  63. package/dist/chunk-AXSFVJ3H.js +10 -0
  64. package/dist/chunk-B2LVMM55.js +8 -0
  65. package/dist/{chunk-YRFUVQDN.js → chunk-CTBYVXFP.js} +2 -2
  66. package/dist/{chunk-UWQSGKVX.js → chunk-CTWVJQJ5.js} +1 -1
  67. package/dist/chunk-DLJHWFNG.js +18 -0
  68. package/dist/chunk-EZI3QGYJ.js +8 -0
  69. package/dist/{chunk-G4CVY5MD.js → chunk-FZCFFVXW.js} +1 -1
  70. package/dist/{chunk-BH53P2UM.js → chunk-G2GZDPUL.js} +3 -3
  71. package/dist/chunk-GJGRMMAQ.js +0 -0
  72. package/dist/chunk-J6E3UO2W.js +402 -0
  73. package/dist/chunk-JVN6QVET.js +8 -0
  74. package/dist/chunk-LI4N7JWK.js +39 -0
  75. package/dist/chunk-Q4DHI3B5.js +8 -0
  76. package/dist/chunk-QDMNCTXT.js +8 -0
  77. package/dist/chunk-QGXXOQJF.js +61 -0
  78. package/dist/{chunk-EC7M5LL2.js → chunk-QTGVW36I.js} +1 -1
  79. package/dist/chunk-R4ISYGEP.js +8 -0
  80. package/dist/{chunk-AQXTOTWY.js → chunk-TYTZEAV5.js} +19 -11
  81. package/dist/chunk-UPCMMCPQ.js +34 -0
  82. package/dist/{chunk-SBX4CHO7.js → chunk-UTBCFDOX.js} +1 -1
  83. package/dist/chunk-WNZLBFLQ.js +73 -0
  84. package/dist/chunk-X357WQOT.js +29 -0
  85. package/dist/{chunk-O3EAZPD3.js → chunk-XCE3QE6Q.js} +1 -1
  86. package/dist/chunk-XHY3OCAQ.js +8 -0
  87. package/dist/{chunk-7YKG3WYS.js → chunk-YRLN3TBF.js} +1 -1
  88. package/dist/chunk-Z7USRFM2.js +8 -0
  89. package/dist/{chunk-EFIJYBYX.js → chunk-ZLJDOLXZ.js} +1 -1
  90. package/dist/esm-5T53WHPT.js +27362 -0
  91. package/dist/icons/activateUserIcon.js +1 -0
  92. package/dist/icons/archivedIcon.js +1 -0
  93. package/dist/icons/assignGroupIcon.js +1 -0
  94. package/dist/icons/closeIcon.js +1 -0
  95. package/dist/icons/copyIcon.js +1 -0
  96. package/dist/icons/difficultyAllIcon.cjs +1 -1
  97. package/dist/icons/difficultyAllIcon.js +2 -1
  98. package/dist/icons/difficultyEasyIcon.js +1 -0
  99. package/dist/icons/difficultyHardIcon.js +1 -0
  100. package/dist/icons/difficultyMediumIcon.js +1 -0
  101. package/dist/icons/dollarIcon.js +1 -0
  102. package/dist/icons/downloadIcon.cjs +1 -1
  103. package/dist/icons/downloadIcon.js +2 -1
  104. package/dist/icons/downloadPdfIcon.js +1 -0
  105. package/dist/icons/editChatIcon.cjs +1 -1
  106. package/dist/icons/editChatIcon.js +2 -1
  107. package/dist/icons/editIcon.js +1 -0
  108. package/dist/icons/engagementIcon.cjs +1 -1
  109. package/dist/icons/engagementIcon.js +2 -1
  110. package/dist/icons/functionIcon.js +1 -0
  111. package/dist/icons/helpOutlinedIcon.cjs +1 -1
  112. package/dist/icons/helpOutlinedIcon.js +2 -1
  113. package/dist/icons/hierarchyIcon.js +1 -0
  114. package/dist/icons/inactiveGroupIcon.cjs +1 -1
  115. package/dist/icons/inactiveGroupIcon.js +2 -1
  116. package/dist/icons/index.cjs +27 -27
  117. package/dist/icons/index.js +77 -76
  118. package/dist/icons/industryIcon.js +1 -0
  119. package/dist/icons/invoiceIcon.js +1 -0
  120. package/dist/icons/locationPinIcon.js +1 -0
  121. package/dist/icons/logsIcon.js +1 -0
  122. package/dist/icons/minExperienceIcon.js +1 -0
  123. package/dist/icons/nineDotMenuIcon.js +1 -0
  124. package/dist/icons/notificationIcon.js +1 -0
  125. package/dist/icons/projectIcon.cjs +1 -1
  126. package/dist/icons/projectIcon.js +2 -1
  127. package/dist/icons/qualificationsIcon.cjs +1 -1
  128. package/dist/icons/qualificationsIcon.js +2 -1
  129. package/dist/icons/questionStatusAllIcon.cjs +1 -1
  130. package/dist/icons/questionStatusAllIcon.js +2 -1
  131. package/dist/icons/questionStatusPrivateIcon.cjs +1 -1
  132. package/dist/icons/questionStatusPrivateIcon.js +2 -1
  133. package/dist/icons/questionStatusPublicIcon.cjs +1 -1
  134. package/dist/icons/questionStatusPublicIcon.js +2 -1
  135. package/dist/icons/questionTypeAllIcon.js +1 -0
  136. package/dist/icons/questionTypeCodingIcon.cjs +1 -1
  137. package/dist/icons/questionTypeCodingIcon.js +2 -1
  138. package/dist/icons/questionTypeDescriptiveIcon.cjs +1 -1
  139. package/dist/icons/questionTypeDescriptiveIcon.js +2 -1
  140. package/dist/icons/questionTypeMultipleIcon.cjs +1 -1
  141. package/dist/icons/questionTypeMultipleIcon.js +2 -1
  142. package/dist/icons/questionTypeSingleIcon.cjs +1 -1
  143. package/dist/icons/questionTypeSingleIcon.js +2 -1
  144. package/dist/icons/refreshIcon.js +1 -0
  145. package/dist/icons/resendInviteIcon.js +1 -0
  146. package/dist/icons/rolesIcon.js +1 -0
  147. package/dist/icons/rufousAiIcon.cjs +1 -1
  148. package/dist/icons/rufousAiIcon.js +2 -1
  149. package/dist/icons/rufousBirdIcon.js +1 -0
  150. package/dist/icons/rufousLauncherBird.js +1 -0
  151. package/dist/icons/sidebarIcon.js +1 -0
  152. package/dist/icons/softSkillsIcon.cjs +1 -1
  153. package/dist/icons/softSkillsIcon.js +2 -1
  154. package/dist/icons/subscribeIcon.cjs +1 -1
  155. package/dist/icons/subscribeIcon.js +2 -1
  156. package/dist/icons/suspendUserIcon.cjs +1 -1
  157. package/dist/icons/suspendUserIcon.js +2 -1
  158. package/dist/icons/technicalSkillsIcon.js +1 -0
  159. package/dist/icons/tickIcon.cjs +1 -1
  160. package/dist/icons/tickIcon.js +2 -1
  161. package/dist/icons/timerIcon.cjs +1 -1
  162. package/dist/icons/timerIcon.js +2 -1
  163. package/dist/icons/trashIcon.js +1 -0
  164. package/dist/icons/unArchivedIcon.js +1 -0
  165. package/dist/icons/unsubscribeIcon.cjs +1 -1
  166. package/dist/icons/unsubscribeIcon.js +2 -1
  167. package/dist/icons/uploadIcon.cjs +1 -1
  168. package/dist/icons/uploadIcon.js +2 -1
  169. package/dist/icons/userAssignIcon.cjs +3 -3
  170. package/dist/icons/userAssignIcon.js +2 -1
  171. package/dist/icons/viewIcon.cjs +1 -1
  172. package/dist/icons/viewIcon.js +2 -1
  173. package/dist/icons/workItemIcon.js +1 -0
  174. package/dist/main.cjs +30100 -226
  175. package/dist/main.css +8248 -163
  176. package/dist/main.d.cts +6 -0
  177. package/dist/main.d.ts +6 -0
  178. package/dist/main.js +106 -84
  179. package/dist/style.css +1069 -164
  180. package/dist/styles/button.css +82 -110
  181. package/dist/styles/checkbox.css +60 -0
  182. package/dist/styles/checkbox.d.cts +2 -0
  183. package/dist/styles/checkbox.d.ts +2 -0
  184. package/dist/styles/datagrid.css +531 -0
  185. package/dist/styles/datagrid.d.cts +2 -0
  186. package/dist/styles/datagrid.d.ts +2 -0
  187. package/dist/styles/dialog.css +78 -51
  188. package/dist/styles/editor.css +211 -0
  189. package/dist/styles/editor.d.cts +2 -0
  190. package/dist/styles/editor.d.ts +2 -0
  191. package/dist/styles/progress.css +1 -1
  192. package/dist/utils/constants.cjs +47 -69
  193. package/dist/utils/constants.d.cts +34 -56
  194. package/dist/utils/constants.d.ts +34 -56
  195. package/dist/utils/constants.js +2 -1
  196. package/package.json +13 -2
  197. package/dist/TextFields/FloatingInput.d.d.cts +0 -23
  198. package/dist/TextFields/FloatingInput.d.d.ts +0 -23
  199. package/dist/chunk-2FHTGYR4.js +0 -83
  200. package/dist/chunk-5BB3H3YO.js +0 -8
  201. package/dist/chunk-5I44RDFT.js +0 -8
  202. package/dist/chunk-5UEJAVFK.js +0 -10
  203. package/dist/chunk-7WNPZ4B7.js +0 -8
  204. package/dist/chunk-BCGCLMKA.js +0 -71
  205. package/dist/chunk-BYJP2WNC.js +0 -18
  206. package/dist/chunk-DE73YGRW.js +0 -8
  207. package/dist/chunk-EH3QXE5G.js +0 -8
  208. package/dist/chunk-FSSJZDI6.js +0 -8
  209. package/dist/chunk-JYTI2ZBC.js +0 -8
  210. package/dist/chunk-OCOOSNRU.js +0 -8
  211. package/dist/chunk-PPNZC5ZQ.js +0 -8
  212. package/dist/chunk-QA2AYT4A.js +0 -8
  213. package/dist/chunk-VI32N6SI.js +0 -8
  214. package/dist/chunk-VIUTE7F5.js +0 -8
  215. package/dist/chunk-WWAHNTUH.js +0 -8
  216. package/dist/chunk-ZJYLZ6I6.js +0 -8
  217. /package/dist/{TextFields/FloatingInput.d.js → DataGrid/types.js} +0 -0
@@ -0,0 +1,468 @@
1
+ // lib/Editors/RichTextEditor.tsx
2
+ import React, { useEffect, useRef, useState } from "react";
3
+ import JoditReact from "jodit-react";
4
+ var MOBILE_BREAKPOINT = 768;
5
+ var TODO_STATES = [
6
+ { label: "Todo", name: "empty", imageUrl: "https://storage.googleapis.com/rufous-com-bucket-1/static/images/todo-blank.svg" },
7
+ { label: "Working", name: "working", imageUrl: "https://storage.googleapis.com/rufous-com-bucket-1/static/images/working.svg" },
8
+ { label: "Blocked", name: "blocked", imageUrl: "https://storage.googleapis.com/rufous-com-bucket-1/static/images/blocked.svg" },
9
+ { label: "Resolved", name: "resolved", imageUrl: "https://storage.googleapis.com/rufous-com-bucket-1/static/images/closed.svg" }
10
+ ];
11
+ var BASIC_BUTTONS = [
12
+ "paragraph",
13
+ "fontsize",
14
+ "font",
15
+ "bold",
16
+ "italic",
17
+ "link",
18
+ "lineHeight",
19
+ "|",
20
+ "ul",
21
+ "ol",
22
+ "|",
23
+ "align",
24
+ "outdent",
25
+ "indent",
26
+ "|",
27
+ "brush",
28
+ "table",
29
+ "image",
30
+ "video",
31
+ "|"
32
+ ];
33
+ var MOBILE_BUTTONS = ["paragraph", "bold"];
34
+ var MORE_BUTTONS = ["spellcheck", "cut", "copy", "symbols"];
35
+ var UNDO_REDO = ["undo", "redo", "|"];
36
+ var AI_BUTTONS = ["|", "ai-commands", "|"];
37
+ function debounce(fn, delay) {
38
+ let t;
39
+ return (...args) => {
40
+ clearTimeout(t);
41
+ t = setTimeout(() => fn(...args), delay);
42
+ };
43
+ }
44
+ function createTodoItem(stateName = "empty") {
45
+ const state = TODO_STATES.find((s) => s.name === stateName) ?? TODO_STATES[0];
46
+ const container = document.createElement("p");
47
+ container.classList.add("todo-item");
48
+ const btn = document.createElement("button");
49
+ btn.classList.add("todo-item-button");
50
+ btn.setAttribute("contenteditable", "false");
51
+ const img = document.createElement("img");
52
+ img.src = state.imageUrl;
53
+ img.alt = state.label;
54
+ btn.appendChild(img);
55
+ const span = document.createElement("span");
56
+ span.classList.add("todo-item-text");
57
+ span.innerText = state.label;
58
+ container.appendChild(btn);
59
+ container.appendChild(span);
60
+ return container;
61
+ }
62
+ function RichTextEditor({
63
+ value = "",
64
+ onChange,
65
+ onBlur,
66
+ onError,
67
+ onClose,
68
+ onImageUploadSuccess,
69
+ height = "300px",
70
+ width = "100%",
71
+ placeholder = "Start writing\u2026",
72
+ disabled = false,
73
+ allowResizeY = true,
74
+ fullSize = false,
75
+ aiSupport = false,
76
+ licenseKey = "",
77
+ translationKey = "",
78
+ token = "",
79
+ uploadUrl = "",
80
+ mentions,
81
+ error,
82
+ className = "",
83
+ style
84
+ }) {
85
+ const editorRef = useRef(null);
86
+ const containerRef = useRef(null);
87
+ const [isMobile, setIsMobile] = useState(false);
88
+ const [showAll, setShowAll] = useState(true);
89
+ const [isListening, setIsListening] = useState(false);
90
+ const [speechText, setSpeechText] = useState("");
91
+ const [speechVisible, setSpeechVisible] = useState(false);
92
+ const [speechPos, setSpeechPos] = useState({ top: 0, left: 0 });
93
+ const recognitionRef = useRef(null);
94
+ const silenceTimer = useRef(null);
95
+ const interimSpanRef = useRef(null);
96
+ useEffect(() => {
97
+ const check = () => {
98
+ const mobile = window.innerWidth <= MOBILE_BREAKPOINT;
99
+ setIsMobile(mobile);
100
+ if (!mobile) setShowAll(true);
101
+ };
102
+ check();
103
+ window.addEventListener("resize", check);
104
+ return () => window.removeEventListener("resize", check);
105
+ }, []);
106
+ useEffect(() => {
107
+ let cursorTimeout;
108
+ import("./esm-5T53WHPT.js").then(({ Jodit }) => {
109
+ Jodit.plugins.add("rteKeyLogger", (jodit) => {
110
+ const debouncedToggle = debounce((btn, container) => {
111
+ const pressed = container.getAttribute("aria-pressed");
112
+ if (!pressed || pressed === "false") {
113
+ container.setAttribute("aria-pressed", "true");
114
+ btn.setAttribute("aria-pressed", "true");
115
+ } else {
116
+ container.setAttribute("aria-pressed", "false");
117
+ btn.setAttribute("aria-pressed", "false");
118
+ }
119
+ }, 150);
120
+ jodit.events.on("keydown", (e) => {
121
+ const isTodoShortcut = (e.key === "U" || e.key === "u") && e.shiftKey && (e.metaKey || e.ctrlKey);
122
+ if (isTodoShortcut) {
123
+ e.preventDefault();
124
+ const btnList2 = document.getElementsByClassName("jodit-toolbar-button_insertTodo");
125
+ const btn = btnList2[0]?.getElementsByTagName("button")[0];
126
+ if (!btn || !btnList2[0]) return false;
127
+ const isPressed = btnList2[0].getAttribute("aria-pressed") === "true";
128
+ if (!isPressed) {
129
+ btnList2[0].setAttribute("aria-pressed", "true");
130
+ btn.setAttribute("aria-pressed", "true");
131
+ const todo2 = createTodoItem();
132
+ jodit.selection.insertNode(todo2);
133
+ const textSpan2 = todo2.querySelector("span");
134
+ if (textSpan2) setTimeout(() => jodit.selection?.setCursorIn?.(textSpan2), 0);
135
+ } else {
136
+ btnList2[0].setAttribute("aria-pressed", "false");
137
+ btn.setAttribute("aria-pressed", "false");
138
+ }
139
+ return false;
140
+ }
141
+ if (e.key === "Delete") {
142
+ e.preventDefault();
143
+ return false;
144
+ }
145
+ if (e.key !== "Enter" || e.shiftKey) return;
146
+ const btnList = document.getElementsByClassName("jodit-toolbar-button_insertTodo");
147
+ if (btnList[0]?.getAttribute("aria-pressed") !== "true") return;
148
+ e.preventDefault();
149
+ const todo = createTodoItem();
150
+ try {
151
+ const current = jodit.selection?.current?.();
152
+ const container = current ? Jodit.modules.Dom.closest(current, ".todo-item", jodit.editor) : null;
153
+ if (container?.parentNode) {
154
+ container.after ? container.after(todo) : container.parentNode.insertBefore(todo, container.nextSibling);
155
+ } else {
156
+ jodit.selection.insertNode(todo);
157
+ }
158
+ } catch {
159
+ jodit.selection.insertNode(todo);
160
+ }
161
+ const textSpan = todo.querySelector("span");
162
+ clearTimeout(cursorTimeout);
163
+ cursorTimeout = setTimeout(() => {
164
+ if (textSpan) jodit.selection?.setCursorIn?.(textSpan);
165
+ }, 100);
166
+ });
167
+ jodit.events.on("click", (e) => {
168
+ const target = e.target;
169
+ if (!target.classList.contains("todo-item-button") && !target.closest?.(".todo-item-button")) return;
170
+ const btn = target.classList.contains("todo-item-button") ? target : target.closest(".todo-item-button");
171
+ const img = btn?.querySelector("img");
172
+ if (!img) return;
173
+ const cur = TODO_STATES.findIndex((s) => img.src.includes(s.imageUrl.split("/").pop()));
174
+ const next = TODO_STATES[(cur + 1) % TODO_STATES.length];
175
+ img.src = next.imageUrl;
176
+ img.alt = next.label;
177
+ });
178
+ });
179
+ const observer = new MutationObserver(() => {
180
+ const popup = document.querySelector(".jodit-popup-container");
181
+ if (!popup) return;
182
+ ["Open in new tab", "No follow"].forEach((label) => {
183
+ popup.querySelectorAll(".jodit-ui-checkbox").forEach((el) => {
184
+ const text = el.querySelector(".jodit-ui-checkbox__label")?.textContent?.trim();
185
+ if (text !== label) return;
186
+ const input = el.querySelector('input[type="checkbox"]');
187
+ if (input && !input.checked) {
188
+ input.checked = true;
189
+ input.dispatchEvent(new Event("change", { bubbles: true }));
190
+ }
191
+ });
192
+ });
193
+ });
194
+ observer.observe(document.body, { childList: true, subtree: true });
195
+ return () => observer.disconnect();
196
+ });
197
+ return () => clearTimeout(cursorTimeout);
198
+ }, []);
199
+ const speechButton = {
200
+ name: "customSpeechRecognize",
201
+ tooltip: isListening ? "Stop listening" : "Speech to Text",
202
+ iconURL: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTIgMUM5Ljc5MDg2IDEgOCAyLjc5MDg2IDggNVYxMkM4IDE0LjIwOTEgOS43OTA4NiAxNiAxMiAxNkMxNC4yMDkxIDE2IDE2IDE0LjIwOTEgMTYgMTJWNUMxNiAyLjc5MDg2IDE0LjIwOTEgMSAxMiAxWk0xMCA1QzEwIDMuODk1NDMgMTAuODk1NCAzIDEyIDNDMTMuMTA0NiAzIDE0IDMuODk1NDMgMTQgNVYxMkMxNCAxMy4xMDQ2IDEzLjEwNDYgMTQgMTIgMTRDMTAuODk1NCAxNCAxMCAxMy4xMDQ2IDEwIDEyVjVaIiBmaWxsPSIjMDAwMDAwIi8+PHBhdGggZD0iTTUgOUM1LjU1MjI4IDkgNiA5LjQ0NzcxIDYgMTBWMTJDNiAxMy41OTEzIDYuNjMyMTQgMTUuMTE3NCA3Ljc1NzM2IDE2LjI0MjZDOC44ODI1OCAxNy4zNjc5IDEwLjQwODcgMTggMTIgMThDMTMuNTkxMyAxOCAxNS4xMTc0IDE3LjM2NzkgMTYuMjQyNiAxNi4yNDI2QzE3LjM2NzkgMTUuMTE3NCAxOCAxMy41OTEzIDE4IDEyVjEwQzE4IDkuNDQ3NzEgMTguNDQ3NyA5IDE5IDlDMTkuNTUyMyA5IDIwIDkuNDQ3NzEgMjAgMTBWMTJDMjAgMTQuMTIxNyAxOS4xNTcxIDE2LjE1NjYgMTcuNjU2OSAxNy42NTY5QzE2LjM5MzggMTguOTE5OSAxNC43NTE4IDE5LjcxNyAxMi45OTgxIDE5LjkzNzVDMTIuOTk5MyAxOS45NTgyIDEzIDE5Ljk3OSAxMyAyMFYyMkMxMyAyMi41NTIzIDEyLjU1MjMgMjMgMTIgMjNDMTEuNDQ3NyAyMyAxMSAyMi41NTIzIDExIDIyVjIwQzExIDE5Ljk3OSAxMS4wMDA2IDE5Ljk1ODIgMTEuMDAxOSAxOS45Mzc1QzkuMjQ4MiAxOS43MTcgNy42MDYyMyAxOC45MTk5IDYuMzQzMTUgMTcuNjU2OUM0Ljg0Mjg1IDE2LjE1NjYgNCAxNC4xMjE3IDQgMTJWMTBDNCA5LjQ0NzcxIDQuNDQ3NzIgOSA1IDlaIiBmaWxsPSIjMDAwMDAwIi8+PC9zdmc+",
203
+ exec(editorInstance) {
204
+ if (isListening) {
205
+ recognitionRef.current?.stop();
206
+ return;
207
+ }
208
+ const SR = window.SpeechRecognition || window.webkitSpeechRecognition;
209
+ if (!SR) {
210
+ onError?.("Speech Recognition is not supported in this browser.");
211
+ return;
212
+ }
213
+ const recognition = new SR();
214
+ recognitionRef.current = recognition;
215
+ recognition.continuous = true;
216
+ recognition.interimResults = true;
217
+ recognition.lang = "en-US";
218
+ const finalize = () => {
219
+ const span = interimSpanRef.current;
220
+ if (span && editorInstance.editor.contains(span)) {
221
+ if (span.innerHTML.trim()) {
222
+ editorInstance.s.setCursorAfter(span);
223
+ span.replaceWith(...Array.from(span.childNodes));
224
+ } else {
225
+ span.remove();
226
+ }
227
+ }
228
+ interimSpanRef.current = null;
229
+ };
230
+ recognition.onstart = () => {
231
+ setIsListening(true);
232
+ setSpeechText("Listening\u2026");
233
+ setSpeechVisible(true);
234
+ editorInstance.focus();
235
+ try {
236
+ const sel = editorInstance.selection?.sel;
237
+ if (sel?.rangeCount > 0) {
238
+ const rect = sel.getRangeAt(0).getBoundingClientRect();
239
+ const cRect = containerRef.current?.getBoundingClientRect() ?? { top: 0, left: 0 };
240
+ setSpeechPos({ top: rect.bottom - cRect.top + 5, left: rect.left - cRect.left });
241
+ }
242
+ } catch {
243
+ }
244
+ };
245
+ recognition.onresult = (event) => {
246
+ if (silenceTimer.current) clearTimeout(silenceTimer.current);
247
+ let finalText = "";
248
+ let interimText = "";
249
+ for (let i = event.resultIndex; i < event.results.length; i++) {
250
+ const t = event.results[i][0].transcript;
251
+ if (event.results[i].isFinal) finalText += t;
252
+ else interimText += t;
253
+ }
254
+ if (finalText.trim()) {
255
+ finalize();
256
+ editorInstance.s.insertHTML(" " + finalText.trim());
257
+ }
258
+ if (interimText.trim()) {
259
+ let span = interimSpanRef.current;
260
+ if (!span || !editorInstance.editor.contains(span)) {
261
+ finalize();
262
+ span = editorInstance.create.inside.span();
263
+ editorInstance.s.insertNode(span, false);
264
+ interimSpanRef.current = span;
265
+ }
266
+ span.innerHTML = " " + interimText.trim();
267
+ setSpeechText(interimText.trim());
268
+ editorInstance.s.setCursorAfter(span);
269
+ }
270
+ silenceTimer.current = setTimeout(() => recognitionRef.current?.stop(), 2500);
271
+ };
272
+ recognition.onend = () => {
273
+ finalize();
274
+ setIsListening(false);
275
+ setSpeechVisible(false);
276
+ if (silenceTimer.current) clearTimeout(silenceTimer.current);
277
+ recognitionRef.current = null;
278
+ };
279
+ recognition.onerror = () => {
280
+ finalize();
281
+ setIsListening(false);
282
+ setSpeechVisible(false);
283
+ };
284
+ recognition.start();
285
+ }
286
+ };
287
+ const todoButton = {
288
+ name: "insertTodo",
289
+ tooltip: "To-do item (\u2318\u21E7U)",
290
+ iconURL: TODO_STATES[0].imageUrl,
291
+ list: Object.fromEntries(TODO_STATES.map((s) => [s.name, s.label])),
292
+ childTemplate: (_editor, _key, text) => `<span>${text}</span>`,
293
+ exec: async (jodit, _current, btn) => {
294
+ const btnList = document.getElementsByClassName("jodit-toolbar-button_insertTodo");
295
+ const el = btnList[0];
296
+ const isPressed = el?.getAttribute("aria-pressed") === "true";
297
+ if (!isPressed || btn?.control?.name !== "insertTodo") {
298
+ const todo = createTodoItem(btn?.control?.name ?? "empty");
299
+ jodit.selection.insertNode(todo);
300
+ const span = todo.querySelector("span");
301
+ if (span) jodit.selection.setCursorIn(span);
302
+ }
303
+ }
304
+ };
305
+ const toggleButton = {
306
+ name: "toggleButtons",
307
+ tooltip: showAll ? "Show less" : "Show more",
308
+ iconURL: showAll ? "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIj48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIi8+PHBvbHlsaW5lIHBvaW50cz0iOCAxNCAxMiAxMCAxNiAxNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=" : "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIj48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIi8+PHBvbHlsaW5lIHBvaW50cz0iOCAxMCAxMiAxNCAxNiAxMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48L3N2Zz4=",
309
+ exec: () => setShowAll((prev) => !prev)
310
+ };
311
+ const config = React.useMemo(() => {
312
+ let uploadConfig = {};
313
+ if (uploadUrl) {
314
+ const uploadData = {};
315
+ uploadConfig = {
316
+ uploader: {
317
+ url: uploadUrl,
318
+ headers: token ? { AuthToken: token } : {},
319
+ imagesExtensions: ["jpg", "png", "jpeg", "webp"],
320
+ processFileName: (key, file, name) => {
321
+ uploadData.file = file;
322
+ return [key, file, name];
323
+ },
324
+ buildData(data) {
325
+ const ext = uploadData.file?.name.split(".").pop() ?? "";
326
+ if (!["jpg", "png", "jpeg", "webp"].includes(ext.toLowerCase())) {
327
+ onError?.("Please choose a jpg, png, jpeg or webp file.");
328
+ return new Promise(() => {
329
+ });
330
+ }
331
+ const form = new FormData();
332
+ form.append("file", uploadData.file);
333
+ form.append("isPublicLink", "true");
334
+ return form;
335
+ },
336
+ isSuccess: (resp) => !resp?.error,
337
+ defaultHandlerSuccess(data) {
338
+ if (data?.url && this.s) {
339
+ this.s.insertImage(data.url);
340
+ onImageUploadSuccess?.(data.url);
341
+ }
342
+ }
343
+ }
344
+ };
345
+ }
346
+ const baseButtons = [
347
+ ...UNDO_REDO,
348
+ ...aiSupport ? AI_BUTTONS : [],
349
+ ...isMobile && !showAll ? MOBILE_BUTTONS : BASIC_BUTTONS,
350
+ ...isMobile ? ["|"] : [],
351
+ ...isMobile && showAll ? MORE_BUTTONS : [],
352
+ ...!isMobile ? MORE_BUTTONS : [],
353
+ ...onClose ? [{
354
+ name: "close",
355
+ tooltip: "Close",
356
+ iconURL: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E",
357
+ exec: () => onClose()
358
+ }] : []
359
+ ];
360
+ return {
361
+ readonly: disabled,
362
+ license: licenseKey,
363
+ toolbar: true,
364
+ spellcheck: true,
365
+ language: "en",
366
+ placeholder,
367
+ toolbarButtonSize: "middle",
368
+ toolbarAdaptive: false,
369
+ showCharsCounter: true,
370
+ showWordsCounter: true,
371
+ showXPathInStatusbar: false,
372
+ askBeforePasteHTML: false,
373
+ askBeforePasteFromWord: true,
374
+ processPasteFromWord: true,
375
+ processPasteHTML: true,
376
+ nl2brInPlainText: false,
377
+ defaultActionOnPasteFromWord: "insert_as_html",
378
+ scrollToPastedContent: true,
379
+ link: { noFollowCheckbox: true, openInNewTabCheckbox: true },
380
+ defaultLineHeight: 0.5,
381
+ lineHeight: [0.5, 1, 1.15, 1.5, 2],
382
+ allowResizeY,
383
+ width,
384
+ height,
385
+ ...translationKey ? {
386
+ translate: {
387
+ provider: "google",
388
+ googleProviderOptions: { key: translationKey }
389
+ }
390
+ } : {},
391
+ ...aiSupport ? {
392
+ aiAssistant: {
393
+ aiAssistantCallback(prompt, htmlFragment) {
394
+ return fetch("https://api.openai.com/v1/chat/completions", {
395
+ method: "POST",
396
+ headers: { "Content-Type": "application/json", Authorization: `Bearer ${window.__RTE_OPENAI_KEY__ ?? ""}` },
397
+ body: JSON.stringify({ model: "gpt-3.5-turbo", messages: [{ role: "system", content: prompt }, { role: "user", content: htmlFragment }] })
398
+ }).then((r) => r.json()).then((d) => {
399
+ if (d.error) throw new Error(d.error.message);
400
+ return d.choices?.[0]?.message?.content ?? "";
401
+ });
402
+ }
403
+ }
404
+ } : {},
405
+ ...mentions?.arr?.length ? {
406
+ autocomplete: {
407
+ sources: [{
408
+ feed: (query) => {
409
+ if (!query.includes("@")) return [];
410
+ return mentions.arr.filter((m) => m.id.includes(query) || m.name.includes(query));
411
+ },
412
+ itemRenderer: (item) => `<span class="mention-option">${item.id}</span>`,
413
+ insertValueRenderer: (item) => `<span class="mention-jodit" data-mention="${item.id}" data-user-id="${item.userId ?? ""}" href="${item.link ?? ""}">${item.id}</span>`
414
+ }]
415
+ }
416
+ } : {},
417
+ ...uploadConfig,
418
+ buttons: [...baseButtons, ...fullSize ? ["fullsize"] : []],
419
+ extraButtons: [
420
+ speechButton,
421
+ todoButton,
422
+ ...isMobile ? [toggleButton] : []
423
+ ],
424
+ safePluginList: ["changecase", "rteKeyLogger"]
425
+ };
426
+ }, [isMobile, showAll, isListening, disabled, aiSupport, licenseKey, translationKey, token, uploadUrl, mentions?.arr?.length, height, width, allowResizeY, fullSize, placeholder]);
427
+ return /* @__PURE__ */ React.createElement(
428
+ "div",
429
+ {
430
+ ref: containerRef,
431
+ className: `rte-wrapper ${isListening ? "rte-listening" : ""} ${className}`,
432
+ style
433
+ },
434
+ /* @__PURE__ */ React.createElement(
435
+ JoditReact,
436
+ {
437
+ ref: editorRef,
438
+ value,
439
+ config,
440
+ tabIndex: 1,
441
+ onChange: (v) => onChange?.(v),
442
+ onBlur: (v) => onBlur?.(v)
443
+ }
444
+ ),
445
+ /* @__PURE__ */ React.createElement(
446
+ "div",
447
+ {
448
+ className: "rte-speech-popup",
449
+ style: {
450
+ top: speechPos.top,
451
+ left: speechPos.left,
452
+ opacity: speechVisible && speechText ? 1 : 0,
453
+ transform: speechVisible ? "translateY(0)" : "translateY(10px)",
454
+ pointerEvents: "none"
455
+ }
456
+ },
457
+ /* @__PURE__ */ React.createElement("span", { className: "rte-speech-dot" }),
458
+ /* @__PURE__ */ React.createElement("span", null, speechText || "\u2026")
459
+ ),
460
+ error && /* @__PURE__ */ React.createElement("p", { className: "rte-error" }, error)
461
+ );
462
+ }
463
+ var RichTextEditor_default = RichTextEditor;
464
+
465
+ export {
466
+ RichTextEditor,
467
+ RichTextEditor_default
468
+ };
@@ -1,6 +1,6 @@
1
1
  // lib/icons/tickIcon.tsx
2
2
  import * as React from "react";
3
- var TickIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("g", { id: "Group_11977", "data-name": "Group 11977", transform: "translate(-1582 -20.56)" }, /* @__PURE__ */ React.createElement("g", { id: "Ellipse_339", "data-name": "Ellipse 339", transform: "translate(1582 20.56)", fill: "none", stroke: color, "stroke-width": "1.8" }, /* @__PURE__ */ React.createElement("circle", { cx: "12", cy: "12", r: "12", stroke: "none" }), /* @__PURE__ */ React.createElement("circle", { cx: "12", cy: "12", r: "11.1", fill: "none" })), /* @__PURE__ */ React.createElement("path", { id: "Icon_feather-check", "data-name": "Icon feather-check", d: "M18,9,9.75,17.25,6,13.5", transform: "translate(1582 19.31)", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", "stroke-width": "1.8" })));
3
+ var TickIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("g", { id: "Group_11977", "data-name": "Group 11977", transform: "translate(-1582 -20.56)" }, /* @__PURE__ */ React.createElement("g", { id: "Ellipse_339", "data-name": "Ellipse 339", transform: "translate(1582 20.56)", fill: "none", stroke: color, strokeWidth: "1.8" }, /* @__PURE__ */ React.createElement("circle", { cx: "12", cy: "12", r: "12", stroke: "none" }), /* @__PURE__ */ React.createElement("circle", { cx: "12", cy: "12", r: "11.1", fill: "none" })), /* @__PURE__ */ React.createElement("path", { id: "Icon_feather-check", "data-name": "Icon feather-check", d: "M18,9,9.75,17.25,6,13.5", transform: "translate(1582 19.31)", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.8" })));
4
4
  var tickIcon_default = TickIcon;
5
5
 
6
6
  export {
@@ -0,0 +1,8 @@
1
+ // lib/icons/inactiveGroupIcon.tsx
2
+ import * as React from "react";
3
+ var InactiveGroupIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "25.65", height: "25.8", viewBox: "0 0 25.65 25.8", ...props }, /* @__PURE__ */ React.createElement("g", { id: "Group_24701", "data-name": "Group 24701", transform: "translate(-1787.341 -376.95)" }, /* @__PURE__ */ React.createElement("g", { id: "Group_24689", "data-name": "Group 24689", transform: "translate(1788.091 377.85)" }, /* @__PURE__ */ React.createElement("g", { id: "Group_24686", "data-name": "Group 24686", transform: "translate(3.125)" }, /* @__PURE__ */ React.createElement("circle", { id: "Ellipse_418", "data-name": "Ellipse 418", cx: "4.819", cy: "4.819", r: "4.819", transform: "translate(3.316)", fill: "none", stroke: color, strokeWidth: "1.8" }), /* @__PURE__ */ React.createElement("path", { id: "Path_52610", "data-name": "Path 52610", d: "M307.2,211.642a8.337,8.337,0,0,1,8.342-8.342,8.514,8.514,0,0,1,5.5,2.07", transform: "translate(-307.2 -193.585)", fill: "none", stroke: color, strokeWidth: "1.8" })), /* @__PURE__ */ React.createElement("g", { id: "Group_24694", "data-name": "Group 24694", transform: "translate(17.2 0.829)" }, /* @__PURE__ */ React.createElement("path", { id: "Path_52613", "data-name": "Path 52613", d: "M302.6,169a3.478,3.478,0,1,1,0,6.956", transform: "translate(-302.6 -169)", fill: "none", stroke: color, strokeWidth: "1.5" }), /* @__PURE__ */ React.createElement("path", { id: "Path_52614", "data-name": "Path 52614", d: "M296.175,200.4c2.818,0,5.086,2.84,4.979,5.677", transform: "translate(-296.175 -193.354)", fill: "none", stroke: color, strokeWidth: "1.5" })), /* @__PURE__ */ React.createElement("g", { id: "Group_24695", "data-name": "Group 24695", transform: "translate(0 0.829)" }, /* @__PURE__ */ React.createElement("path", { id: "Path_52613-2", "data-name": "Path 52613", d: "M306.078,169a3.478,3.478,0,1,0,0,6.956", transform: "translate(-301.11 -169)", fill: "none", stroke: color, strokeWidth: "1.5" }), /* @__PURE__ */ React.createElement("path", { id: "Path_52614-2", "data-name": "Path 52614", d: "M301.143,200.4c-3.42,0-4.968,4.4-4.968,6.775", transform: "translate(-296.175 -193.354)", fill: "none", stroke: color, strokeWidth: "1.5" }))), /* @__PURE__ */ React.createElement("g", { id: "Group_24692", "data-name": "Group 24692", transform: "translate(1799.931 389.69)" }, /* @__PURE__ */ React.createElement("ellipse", { id: "Ellipse_415", "data-name": "Ellipse 415", cx: "6.08", cy: "6.08", rx: "6.08", ry: "6.08", fill: "none", stroke: color, strokeWidth: "1.8", "stroke-dasharray": "470 154" }), /* @__PURE__ */ React.createElement("path", { id: "Path_52615", "data-name": "Path 52615", d: "M6.333-7.067v1.291H.531V-7.067h5.8Z", transform: "translate(2.818 12.771)", fill: color }))));
4
+ var inactiveGroupIcon_default = InactiveGroupIcon;
5
+
6
+ export {
7
+ inactiveGroupIcon_default
8
+ };
@@ -1,6 +1,6 @@
1
1
  // lib/icons/questionTypeCodingIcon.tsx
2
2
  import * as React from "react";
3
- var QuestionTypeCodingIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("g", { id: "Group_25232", "data-name": "Group 25232", transform: "translate(-5649 -11854)" }, /* @__PURE__ */ React.createElement("g", { id: "Group_25226", "data-name": "Group 25226", transform: "translate(-3)" }, /* @__PURE__ */ React.createElement("path", { id: "Path_53438", "data-name": "Path 53438", d: "M5657,11861l-3.8,5.05,3.8,4.6", transform: "translate(1.8 -0.301)", fill: "none", stroke: color, strokeLinecap: "round", "stroke-width": "1.6" }), /* @__PURE__ */ React.createElement("path", { id: "Path_53439", "data-name": "Path 53439", d: "M5653.2,11861l3.8,5.05-3.8,4.6", transform: "translate(16 -0.301)", fill: "none", stroke: color, strokeLinecap: "round", "stroke-width": "1.6" }), /* @__PURE__ */ React.createElement("line", { id: "Line_505", "data-name": "Line 505", x1: "4", y2: "16", transform: "translate(5661.5 11857.5)", fill: "none", stroke: color, strokeLinecap: "round", "stroke-width": "1.6" })), /* @__PURE__ */ React.createElement("rect", { id: "Rectangle_19481", "data-name": "Rectangle 19481", width: "24", height: "24", rx: "5", transform: "translate(5649 11854)", fill: "none" })));
3
+ var QuestionTypeCodingIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("g", { id: "Group_25232", "data-name": "Group 25232", transform: "translate(-5649 -11854)" }, /* @__PURE__ */ React.createElement("g", { id: "Group_25226", "data-name": "Group 25226", transform: "translate(-3)" }, /* @__PURE__ */ React.createElement("path", { id: "Path_53438", "data-name": "Path 53438", d: "M5657,11861l-3.8,5.05,3.8,4.6", transform: "translate(1.8 -0.301)", fill: "none", stroke: color, strokeLinecap: "round", strokeWidth: "1.6" }), /* @__PURE__ */ React.createElement("path", { id: "Path_53439", "data-name": "Path 53439", d: "M5653.2,11861l3.8,5.05-3.8,4.6", transform: "translate(16 -0.301)", fill: "none", stroke: color, strokeLinecap: "round", strokeWidth: "1.6" }), /* @__PURE__ */ React.createElement("line", { id: "Line_505", "data-name": "Line 505", x1: "4", y2: "16", transform: "translate(5661.5 11857.5)", fill: "none", stroke: color, strokeLinecap: "round", strokeWidth: "1.6" })), /* @__PURE__ */ React.createElement("rect", { id: "Rectangle_19481", "data-name": "Rectangle 19481", width: "24", height: "24", rx: "5", transform: "translate(5649 11854)", fill: "none" })));
4
4
  var questionTypeCodingIcon_default = QuestionTypeCodingIcon;
5
5
 
6
6
  export {
File without changes
@@ -0,0 +1,10 @@
1
+ // lib/icons/helpOutlinedIcon.tsx
2
+ import React from "react";
3
+ var HelpOutlinedIcon = ({ color = "#5f6368", ...props }) => {
4
+ return /* @__PURE__ */ React.createElement("svg", { width: "32", height: "33", viewBox: "0 0 32 33", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M16 31.3C24.2843 31.3 31 24.5843 31 16.3C31 8.01573 24.2843 1.3 16 1.3C7.71573 1.3 1 8.01573 1 16.3C1 24.5843 7.71573 31.3 16 31.3Z", stroke: color, strokeWidth: "2" }), /* @__PURE__ */ React.createElement("path", { d: "M15.967 7.6C15.2243 7.55686 14.4804 7.66158 13.7785 7.90808C13.0766 8.15458 12.4306 8.53796 11.878 9.036C11.1541 9.79654 10.7029 10.7756 10.595 11.82L12.77 12.1C12.8289 11.5409 13.0651 11.0153 13.444 10.6C13.7819 10.2913 14.1816 10.0579 14.6166 9.91528C15.0515 9.7727 15.5118 9.72421 15.967 9.773C16.9127 9.68268 17.8584 9.94635 18.621 10.513C18.8228 10.6923 18.9822 10.9143 19.0875 11.1628C19.1929 11.4114 19.2415 11.6803 19.23 11.95C19.23 13.755 18.49 14.256 17.403 15.213C16.6339 15.7793 16.006 16.5156 15.5684 17.3646C15.1308 18.2135 14.8951 19.152 14.88 20.107V20.651H17.055V20.107C17.055 18.302 17.729 17.801 18.817 16.844C19.596 16.2825 20.2348 15.5488 20.6837 14.6999C21.1326 13.851 21.3795 12.9099 21.405 11.95C21.4124 11.3782 21.3024 10.8109 21.0817 10.2834C20.861 9.75584 20.5343 9.2792 20.122 8.883C18.9456 7.95187 17.4635 7.49424 15.967 7.6ZM14.88 22.825V25H17.055V22.825H14.88Z", fill: color }));
5
+ };
6
+ var helpOutlinedIcon_default = HelpOutlinedIcon;
7
+
8
+ export {
9
+ helpOutlinedIcon_default
10
+ };
@@ -0,0 +1,8 @@
1
+ // lib/icons/questionStatusPrivateIcon.tsx
2
+ import * as React from "react";
3
+ var QuestionStatusPrivateIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", ...props }, /* @__PURE__ */ React.createElement("g", { id: "Group_25259", "data-name": "Group 25259", transform: "translate(-5412 -11820)" }, /* @__PURE__ */ React.createElement("g", { id: "Group_25176", "data-name": "Group 25176", transform: "translate(150 69.4)" }, /* @__PURE__ */ React.createElement("g", { id: "Group_25174", "data-name": "Group 25174", transform: "translate(5265 11751.6)" }, /* @__PURE__ */ React.createElement("g", { id: "Rectangle_19447", "data-name": "Rectangle 19447", transform: "translate(0 8.641)", fill: "none", stroke: color, strokeWidth: "1.6" }, /* @__PURE__ */ React.createElement("rect", { width: "18.333", height: "13.359", rx: "2", stroke: "none" }), /* @__PURE__ */ React.createElement("rect", { x: "0.8", y: "0.8", width: "16.733", height: "11.759", rx: "1.2", fill: "none" })), /* @__PURE__ */ React.createElement("g", { id: "Rectangle_19448", "data-name": "Rectangle 19448", transform: "translate(4)", fill: "none", stroke: color, strokeWidth: "1.6" }, /* @__PURE__ */ React.createElement("path", { d: "M5.517,0h0a5.517,5.517,0,0,1,5.517,5.517V10a0,0,0,0,1,0,0H0a0,0,0,0,1,0,0V5.517A5.517,5.517,0,0,1,5.517,0Z", stroke: "none" }), /* @__PURE__ */ React.createElement("path", { d: "M5.517.8h0a4.717,4.717,0,0,1,4.717,4.717V8.79a.41.41,0,0,1-.41.41H1.21A.41.41,0,0,1,.8,8.79V5.517A4.717,4.717,0,0,1,5.517.8Z", fill: "none" }))), /* @__PURE__ */ React.createElement("g", { id: "Group_25175", "data-name": "Group 25175", transform: "translate(5273.251 11765.721)" }, /* @__PURE__ */ React.createElement("line", { id: "Line_500", "data-name": "Line 500", y2: "2.745", transform: "translate(0.915 0.457)", fill: "none", stroke: color, strokeLinecap: "round", strokeWidth: "1" }), /* @__PURE__ */ React.createElement("g", { id: "Ellipse_352", "data-name": "Ellipse 352", fill: "#fff", stroke: color, strokeWidth: "1" }, /* @__PURE__ */ React.createElement("circle", { cx: "0.915", cy: "0.915", r: "0.915", stroke: "none" }), /* @__PURE__ */ React.createElement("circle", { cx: "0.915", cy: "0.915", r: "0.415", fill: "none" })))), /* @__PURE__ */ React.createElement("g", { id: "Group_25258", "data-name": "Group 25258", transform: "translate(-237 71)" }, /* @__PURE__ */ React.createElement("rect", { id: "Rectangle_19479", "data-name": "Rectangle 19479", width: "24", height: "24", rx: "5", transform: "translate(5649 11749)", fill: "none" }))));
4
+ var questionStatusPrivateIcon_default = QuestionStatusPrivateIcon;
5
+
6
+ export {
7
+ questionStatusPrivateIcon_default
8
+ };
@@ -1,6 +1,6 @@
1
1
  // lib/Progress/circularProgress.tsx
2
2
  import * as React from "react";
3
- var CircularProgess = ({
3
+ var CircularProgress = ({
4
4
  size = 50,
5
5
  color = "#a81c08",
6
6
  ...props
@@ -24,7 +24,7 @@ var CircularProgess = ({
24
24
  ))
25
25
  );
26
26
  };
27
- var circularProgress_default = CircularProgess;
27
+ var circularProgress_default = CircularProgress;
28
28
 
29
29
  export {
30
30
  circularProgress_default
@@ -1,6 +1,6 @@
1
1
  // lib/icons/viewIcon.tsx
2
2
  import * as React from "react";
3
- var ViewIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "26.55", height: "19.8", viewBox: "0 0 26.55 19.8", ...props }, /* @__PURE__ */ React.createElement("g", { id: "Icon_feather-eye", "data-name": "Icon feather-eye", transform: "translate(-0.6 -5.1)" }, /* @__PURE__ */ React.createElement("path", { id: "Path_52621", "data-name": "Path 52621", d: "M1.5,15S6,6,13.875,6,26.25,15,26.25,15s-4.5,9-12.375,9S1.5,15,1.5,15Z", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", "stroke-width": "1.8" }), /* @__PURE__ */ React.createElement("path", { id: "Path_52622", "data-name": "Path 52622", d: "M20.25,16.875A3.375,3.375,0,1,1,16.875,13.5,3.375,3.375,0,0,1,20.25,16.875Z", transform: "translate(-3 -1.875)", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", "stroke-width": "1.8" })));
3
+ var ViewIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "26.55", height: "19.8", viewBox: "0 0 26.55 19.8", ...props }, /* @__PURE__ */ React.createElement("g", { id: "Icon_feather-eye", "data-name": "Icon feather-eye", transform: "translate(-0.6 -5.1)" }, /* @__PURE__ */ React.createElement("path", { id: "Path_52621", "data-name": "Path 52621", d: "M1.5,15S6,6,13.875,6,26.25,15,26.25,15s-4.5,9-12.375,9S1.5,15,1.5,15Z", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.8" }), /* @__PURE__ */ React.createElement("path", { id: "Path_52622", "data-name": "Path 52622", d: "M20.25,16.875A3.375,3.375,0,1,1,16.875,13.5,3.375,3.375,0,0,1,20.25,16.875Z", transform: "translate(-3 -1.875)", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.8" })));
4
4
  var viewIcon_default = ViewIcon;
5
5
 
6
6
  export {
@@ -0,0 +1,18 @@
1
+ // lib/icons/projectIcon.tsx
2
+ import * as React from "react";
3
+ var ProjectIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement(
4
+ "svg",
5
+ {
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ width: "18.571",
8
+ height: "16.1",
9
+ viewBox: "0 0 18.571 16.1",
10
+ ...props
11
+ },
12
+ /* @__PURE__ */ React.createElement("g", { id: "Group_26167", "data-name": "Group 26167", transform: "translate(-1125 -644.1)" }, /* @__PURE__ */ React.createElement("g", { id: "Rectangle_19851", "data-name": "Rectangle 19851", transform: "translate(1125 647.231)", fill: "none", stroke: color, strokeWidth: "1" }, /* @__PURE__ */ React.createElement("rect", { width: "18.571", height: "12.969", rx: "1", stroke: "none" }), /* @__PURE__ */ React.createElement("rect", { x: "0.5", y: "0.5", width: "17.571", height: "11.969", rx: "0.5", fill: "none" })), /* @__PURE__ */ React.createElement("g", { id: "Rectangle_19852", "data-name": "Rectangle 19852", transform: "translate(1131.964 644.1)", fill: "#fff", stroke: color, strokeWidth: "1" }, /* @__PURE__ */ React.createElement("path", { d: "M2.321,0h0A2.321,2.321,0,0,1,4.643,2.321V4.062a0,0,0,0,1,0,0H0a0,0,0,0,1,0,0V2.321A2.321,2.321,0,0,1,2.321,0Z", stroke: "none" }), /* @__PURE__ */ React.createElement("path", { d: "M2.321.5h0A1.821,1.821,0,0,1,4.143,2.321V3.467a.1.1,0,0,1-.1.1H.6a.1.1,0,0,1-.1-.1V2.321A1.821,1.821,0,0,1,2.321.5Z", fill: "none" })), /* @__PURE__ */ React.createElement("line", { id: "Line_619", "data-name": "Line 619", y2: "12.311", transform: "translate(1128.482 647.889)", fill: "none", stroke: color, strokeWidth: "1" }), /* @__PURE__ */ React.createElement("line", { id: "Line_620", "data-name": "Line 620", y2: "12.311", transform: "translate(1140.089 647.889)", fill: "none", stroke: color, strokeWidth: "1" }))
13
+ );
14
+ var projectIcon_default = ProjectIcon;
15
+
16
+ export {
17
+ projectIcon_default
18
+ };
@@ -0,0 +1,8 @@
1
+ // lib/icons/unsubscribeIcon.tsx
2
+ import * as React from "react";
3
+ var UnsubscribeIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "26.546", height: "26.546", viewBox: "0 0 26.546 26.546", ...props }, /* @__PURE__ */ React.createElement("g", { id: "Icon_feather-bell-off", "data-name": "Icon feather-bell-off", transform: "translate(-0.227 -0.227)" }, /* @__PURE__ */ React.createElement("path", { id: "Path_52625", "data-name": "Path 52625", d: "M19.075,31.5a2.121,2.121,0,0,1-3.67,0", transform: "translate(-3.74 -8.121)", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.8" }), /* @__PURE__ */ React.createElement("path", { id: "Path_52626", "data-name": "Path 52626", d: "M27.667,17.3A18.974,18.974,0,0,1,27,12", transform: "translate(-6.938 -2.801)", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.8" }), /* @__PURE__ */ React.createElement("path", { id: "Path_52627", "data-name": "Path 52627", d: "M7.958,9.39a6.935,6.935,0,0,0-.276,1.953c0,7.859-3.182,10.1-3.182,10.1H19.348", transform: "translate(-0.879 -2.311)", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.8" }), /* @__PURE__ */ React.createElement("path", { id: "Path_52628", "data-name": "Path 52628", d: "M22.9,9.36a6.364,6.364,0,0,0-9.9-5.3", transform: "translate(-2.967 -0.435)", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.8" }), /* @__PURE__ */ React.createElement("path", { id: "Path_52629", "data-name": "Path 52629", d: "M1.5,1.5l24,24", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.8" })));
4
+ var unsubscribeIcon_default = UnsubscribeIcon;
5
+
6
+ export {
7
+ unsubscribeIcon_default
8
+ };
@@ -1,7 +1,7 @@
1
1
  // lib/icons/downloadIcon.tsx
2
2
  import React from "react";
3
3
  var DownloadIcon = ({ color = "#3a3a3a", ...props }) => {
4
- return /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "46", height: "46", viewBox: "0 0 46 46", ...props }, /* @__PURE__ */ React.createElement("g", { id: "Group_11729", "data-name": "Group 11729", transform: "translate(-1841 -174)" }, /* @__PURE__ */ React.createElement("path", { id: "Path_46535", "data-name": "Path 46535", d: "M0,0H46V46H0Z", transform: "translate(1841 174)", fill: "#fff" }), /* @__PURE__ */ React.createElement("g", { id: "Icon_feather-download", "data-name": "Icon feather-download", transform: "translate(1846.5 179.5)" }, /* @__PURE__ */ React.createElement("path", { id: "Path_46535-2", "data-name": "Path 46535", d: "M31.5,22.5v6a3,3,0,0,1-3,3H7.5a3,3,0,0,1-3-3v-6", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", "stroke-width": "3" }), /* @__PURE__ */ React.createElement("path", { id: "Path_46536", "data-name": "Path 46536", d: "M10.5,15,18,22.5,25.5,15", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", "stroke-width": "3" }), /* @__PURE__ */ React.createElement("path", { id: "Path_46537", "data-name": "Path 46537", d: "M18,22.5V4.5", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", "stroke-width": "3" }))));
4
+ return /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "46", height: "46", viewBox: "0 0 46 46", ...props }, /* @__PURE__ */ React.createElement("g", { id: "Group_11729", "data-name": "Group 11729", transform: "translate(-1841 -174)" }, /* @__PURE__ */ React.createElement("path", { id: "Path_46535", "data-name": "Path 46535", d: "M0,0H46V46H0Z", transform: "translate(1841 174)", fill: "#fff" }), /* @__PURE__ */ React.createElement("g", { id: "Icon_feather-download", "data-name": "Icon feather-download", transform: "translate(1846.5 179.5)" }, /* @__PURE__ */ React.createElement("path", { id: "Path_46535-2", "data-name": "Path 46535", d: "M31.5,22.5v6a3,3,0,0,1-3,3H7.5a3,3,0,0,1-3-3v-6", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "3" }), /* @__PURE__ */ React.createElement("path", { id: "Path_46536", "data-name": "Path 46536", d: "M10.5,15,18,22.5,25.5,15", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "3" }), /* @__PURE__ */ React.createElement("path", { id: "Path_46537", "data-name": "Path 46537", d: "M18,22.5V4.5", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "3" }))));
5
5
  };
6
6
  var downloadIcon_default = DownloadIcon;
7
7
 
@@ -20,7 +20,7 @@ var UserAssignIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.
20
20
  fill: "rgba(0,0,0,0)",
21
21
  stroke: color,
22
22
  "stroke-miterlimit": "10",
23
- "stroke-width": "1.8"
23
+ strokeWidth: "1.8"
24
24
  }
25
25
  ), /* @__PURE__ */ React.createElement(
26
26
  "path",
@@ -30,7 +30,7 @@ var UserAssignIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.
30
30
  fill: "rgba(0,0,0,0)",
31
31
  stroke: color,
32
32
  "stroke-miterlimit": "10",
33
- "stroke-width": "1.8"
33
+ strokeWidth: "1.8"
34
34
  }
35
35
  )), /* @__PURE__ */ React.createElement("g", { transform: "translate(1750.156 389.69)" }, /* @__PURE__ */ React.createElement(
36
36
  "ellipse",
@@ -42,7 +42,7 @@ var UserAssignIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.
42
42
  fill: "none",
43
43
  stroke: color,
44
44
  "stroke-miterlimit": "10",
45
- "stroke-width": "1.8",
45
+ strokeWidth: "1.8",
46
46
  "stroke-dasharray": "470 154"
47
47
  }
48
48
  ), /* @__PURE__ */ React.createElement(