@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,34 @@
1
+ // lib/TextFields/FloatingInput.tsx
2
+ import React from "react";
3
+ var FloatingInput = ({
4
+ label,
5
+ name,
6
+ id,
7
+ type = "text",
8
+ value,
9
+ onChange,
10
+ required = false,
11
+ placeholder,
12
+ className = "",
13
+ style,
14
+ ...props
15
+ }) => {
16
+ return /* @__PURE__ */ React.createElement("div", { className: `form__group field ${className}`, style }, /* @__PURE__ */ React.createElement(
17
+ "input",
18
+ {
19
+ type,
20
+ className: "form__field",
21
+ placeholder: " ",
22
+ name,
23
+ id: id || name,
24
+ value,
25
+ onChange,
26
+ required,
27
+ ...props
28
+ }
29
+ ), /* @__PURE__ */ React.createElement("label", { htmlFor: id || name, className: "form__label" }, label));
30
+ };
31
+
32
+ export {
33
+ FloatingInput
34
+ };
@@ -1,6 +1,6 @@
1
1
  // lib/icons/qualificationsIcon.tsx
2
2
  import * as React from "react";
3
- var QualificationsIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement("svg", { width: "24", height: "17", viewBox: "0 0 24 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.096 0.920005L1.422 5.25601C1.29964 5.31928 1.18771 5.40089 1.09003 5.49801C0.982986 5.61801 0.923828 5.7732 0.923828 5.934C0.923828 6.09481 0.982986 6.25 1.09003 6.37001C1.18134 6.47434 1.29472 6.55701 1.422 6.61201L5.35498 8.29801V12.829C5.35246 12.8915 5.36648 12.9535 5.39563 13.0088C5.42478 13.0641 5.46804 13.1108 5.521 13.144L11.909 16.23C11.9351 16.2419 11.9634 16.248 11.992 16.248C12.0206 16.248 12.049 16.2419 12.075 16.23L18.482 13.144C18.5377 13.1137 18.5831 13.0677 18.6127 13.0116C18.6422 12.9556 18.6545 12.892 18.648 12.829V8.29901L21.842 7.04001C21.6965 8.80938 21.6882 10.5874 21.817 12.358C21.817 12.843 22.217 12.843 22.217 12.358C22.4317 10.5206 22.4729 8.66711 22.34 6.82201C22.5425 6.68685 22.7337 6.5357 22.912 6.37001C23.019 6.25 23.0782 6.09481 23.0782 5.934C23.0782 5.7732 23.019 5.61801 22.912 5.49801C22.8142 5.40101 22.7023 5.31941 22.58 5.25601L12.905 0.919005C12.3228 0.692932 11.6771 0.692932 11.095 0.919005L11.096 0.920005ZM12.696 1.86701L21.785 5.94101C21.837 5.96401 21.837 5.98601 21.872 6.00901C21.838 6.03201 21.838 6.05501 21.785 6.07701L17.485 8.01201C17.451 8.01201 17.398 8.01201 17.385 8.05701L12.702 10.151C12.253 10.3102 11.763 10.3102 11.314 10.151L6.62201 8.03401C6.58701 8.03401 6.56998 8.01101 6.55298 8.01101L2.22198 6.07601C2.16898 6.05301 2.16901 6.03101 2.13501 6.00801C2.16901 5.98501 2.16898 5.962 2.22198 5.962L11.31 1.86201C11.5331 1.78448 11.7678 1.74624 12.004 1.74901C12.239 1.7475 12.4725 1.78709 12.694 1.866L12.696 1.86701ZM17.665 8.657V12.482L12.002 15.272L6.33899 12.728V8.90301L11.156 10.926C11.4239 11.0384 11.7115 11.0963 12.002 11.0963C12.2925 11.0963 12.5801 11.0384 12.848 10.926L17.248 8.95501L17.665 8.657Z", fill: color, stroke: color, "stroke-width": "0.2" }));
3
+ var QualificationsIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement("svg", { width: "24", height: "17", viewBox: "0 0 24 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.096 0.920005L1.422 5.25601C1.29964 5.31928 1.18771 5.40089 1.09003 5.49801C0.982986 5.61801 0.923828 5.7732 0.923828 5.934C0.923828 6.09481 0.982986 6.25 1.09003 6.37001C1.18134 6.47434 1.29472 6.55701 1.422 6.61201L5.35498 8.29801V12.829C5.35246 12.8915 5.36648 12.9535 5.39563 13.0088C5.42478 13.0641 5.46804 13.1108 5.521 13.144L11.909 16.23C11.9351 16.2419 11.9634 16.248 11.992 16.248C12.0206 16.248 12.049 16.2419 12.075 16.23L18.482 13.144C18.5377 13.1137 18.5831 13.0677 18.6127 13.0116C18.6422 12.9556 18.6545 12.892 18.648 12.829V8.29901L21.842 7.04001C21.6965 8.80938 21.6882 10.5874 21.817 12.358C21.817 12.843 22.217 12.843 22.217 12.358C22.4317 10.5206 22.4729 8.66711 22.34 6.82201C22.5425 6.68685 22.7337 6.5357 22.912 6.37001C23.019 6.25 23.0782 6.09481 23.0782 5.934C23.0782 5.7732 23.019 5.61801 22.912 5.49801C22.8142 5.40101 22.7023 5.31941 22.58 5.25601L12.905 0.919005C12.3228 0.692932 11.6771 0.692932 11.095 0.919005L11.096 0.920005ZM12.696 1.86701L21.785 5.94101C21.837 5.96401 21.837 5.98601 21.872 6.00901C21.838 6.03201 21.838 6.05501 21.785 6.07701L17.485 8.01201C17.451 8.01201 17.398 8.01201 17.385 8.05701L12.702 10.151C12.253 10.3102 11.763 10.3102 11.314 10.151L6.62201 8.03401C6.58701 8.03401 6.56998 8.01101 6.55298 8.01101L2.22198 6.07601C2.16898 6.05301 2.16901 6.03101 2.13501 6.00801C2.16901 5.98501 2.16898 5.962 2.22198 5.962L11.31 1.86201C11.5331 1.78448 11.7678 1.74624 12.004 1.74901C12.239 1.7475 12.4725 1.78709 12.694 1.866L12.696 1.86701ZM17.665 8.657V12.482L12.002 15.272L6.33899 12.728V8.90301L11.156 10.926C11.4239 11.0384 11.7115 11.0963 12.002 11.0963C12.2925 11.0963 12.5801 11.0384 12.848 10.926L17.248 8.95501L17.665 8.657Z", fill: color, stroke: color, strokeWidth: "0.2" }));
4
4
  var qualificationsIcon_default = QualificationsIcon;
5
5
 
6
6
  export {
@@ -0,0 +1,73 @@
1
+ import {
2
+ APP_THEMES
3
+ } from "./chunk-QGXXOQJF.js";
4
+
5
+ // lib/Contexts/rufousThemeProvider.tsx
6
+ import React, {
7
+ createContext,
8
+ useContext,
9
+ useEffect,
10
+ useMemo,
11
+ useState
12
+ } from "react";
13
+ var RufousThemeContext = createContext(null);
14
+ var RufousThemeProvider = ({ children }) => {
15
+ const [colorScheme, setColorScheme] = useState("rufous");
16
+ const [mode, setMode] = useState("light");
17
+ useEffect(() => {
18
+ const savedScheme = localStorage.getItem("colorScheme") || "rufous";
19
+ const savedMode = localStorage.getItem("themeMode") || "light";
20
+ setColorScheme(savedScheme);
21
+ setMode(savedMode);
22
+ }, []);
23
+ const themeVars = useMemo(() => {
24
+ const config = APP_THEMES[colorScheme][mode];
25
+ return {
26
+ "--primary-color": config.primary,
27
+ "--secondary-color": config.secondary,
28
+ "--background-color": config.background,
29
+ "--surface-color": config.surface,
30
+ "--text-color": config.text,
31
+ "--text-secondary": config.textSecondary,
32
+ "--border-color": config.border,
33
+ "--hover-color": config.hover,
34
+ "--selection-color": config.selection,
35
+ "--icon-color": config.icon
36
+ };
37
+ }, [colorScheme, mode]);
38
+ const toggleMode = () => {
39
+ const newMode = mode === "light" ? "dark" : "light";
40
+ setMode(newMode);
41
+ localStorage.setItem("themeMode", newMode);
42
+ };
43
+ const changeScheme = (scheme) => {
44
+ setColorScheme(scheme);
45
+ localStorage.setItem("colorScheme", scheme);
46
+ };
47
+ return /* @__PURE__ */ React.createElement(
48
+ RufousThemeContext.Provider,
49
+ {
50
+ value: {
51
+ colorScheme,
52
+ mode,
53
+ toggleMode,
54
+ changeScheme,
55
+ themeConfig: APP_THEMES[colorScheme][mode]
56
+ }
57
+ },
58
+ /* @__PURE__ */ React.createElement(
59
+ "div",
60
+ {
61
+ className: `rufous-theme-root scheme-${colorScheme} mode-${mode}`,
62
+ style: themeVars
63
+ },
64
+ children
65
+ )
66
+ );
67
+ };
68
+ var useRufousTheme = () => useContext(RufousThemeContext);
69
+
70
+ export {
71
+ RufousThemeProvider,
72
+ useRufousTheme
73
+ };
@@ -0,0 +1,29 @@
1
+ // lib/CheckBoxes/CheckBox.jsx
2
+ import React from "react";
3
+ var Checkbox = ({
4
+ id,
5
+ label,
6
+ checked,
7
+ onChange,
8
+ disabled = false,
9
+ className = "",
10
+ style
11
+ }) => {
12
+ const handleChange = (e) => {
13
+ if (onChange) onChange(e.target.checked);
14
+ };
15
+ return /* @__PURE__ */ React.createElement("div", { className: "checkbox-wrapper-13" }, /* @__PURE__ */ React.createElement("label", { className: `${className}`, style }, /* @__PURE__ */ React.createElement(
16
+ "input",
17
+ {
18
+ id,
19
+ type: "checkbox",
20
+ checked,
21
+ onChange: handleChange,
22
+ disabled
23
+ }
24
+ ), label && /* @__PURE__ */ React.createElement("span", { className: "checkbox-label" }, label)));
25
+ };
26
+
27
+ export {
28
+ Checkbox
29
+ };
@@ -1,6 +1,6 @@
1
1
  // lib/icons/editChatIcon.tsx
2
2
  import * as React from "react";
3
- var EditChatIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "26.138", height: "24.773", viewBox: "0 0 26.138 24.773", ...props }, /* @__PURE__ */ React.createElement("g", { id: "Icon_feather-edit", "data-name": "Icon feather-edit", transform: "translate(-2 -1.818)" }, /* @__PURE__ */ React.createElement("path", { id: "Path_52456", "data-name": "Path 52456", d: "M12.8,6H5.177A2.177,2.177,0,0,0,3,8.177V23.414a2.177,2.177,0,0,0,2.177,2.177H20.414a2.177,2.177,0,0,0,2.177-2.177V15.8", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", "stroke-width": "2" }), /* @__PURE__ */ React.createElement("path", { id: "Path_52457", "data-name": "Path 52457", d: "M23.256,3.484A2.274,2.274,0,0,1,26.472,6.7L16.288,16.884,12,17.956l1.072-4.288Z", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", "stroke-width": "2" })));
3
+ var EditChatIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "26.138", height: "24.773", viewBox: "0 0 26.138 24.773", ...props }, /* @__PURE__ */ React.createElement("g", { id: "Icon_feather-edit", "data-name": "Icon feather-edit", transform: "translate(-2 -1.818)" }, /* @__PURE__ */ React.createElement("path", { id: "Path_52456", "data-name": "Path 52456", d: "M12.8,6H5.177A2.177,2.177,0,0,0,3,8.177V23.414a2.177,2.177,0,0,0,2.177,2.177H20.414a2.177,2.177,0,0,0,2.177-2.177V15.8", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2" }), /* @__PURE__ */ React.createElement("path", { id: "Path_52457", "data-name": "Path 52457", d: "M23.256,3.484A2.274,2.274,0,0,1,26.472,6.7L16.288,16.884,12,17.956l1.072-4.288Z", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2" })));
4
4
  var editChatIcon_default = EditChatIcon;
5
5
 
6
6
  export {
@@ -0,0 +1,8 @@
1
+ // lib/icons/timerIcon.tsx
2
+ import * as React from "react";
3
+ var TimerIcon = ({ 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_weather-time-5", "data-name": "Icon weather-time-5", d: "M16.968,16.267V9.25a.874.874,0,1,1,1.749,0v6.763l2.265,4.045a.855.855,0,0,1-.759,1.317.824.824,0,0,1-.769-.432l-2.318-4.109A1.033,1.033,0,0,1,16.968,16.267Z", transform: "translate(1576.005 17.684)", fill: color })));
4
+ var timerIcon_default = TimerIcon;
5
+
6
+ export {
7
+ timerIcon_default
8
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  circularProgress_default
3
- } from "./chunk-YRFUVQDN.js";
3
+ } from "./chunk-CTBYVXFP.js";
4
4
 
5
5
  // lib/Buttons/submitButton.tsx
6
6
  import * as React from "react";
@@ -0,0 +1,8 @@
1
+ // lib/icons/questionTypeMultipleIcon.tsx
2
+ import * as React from "react";
3
+ var QuestionTypeMultipleIcon = ({ 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_25228", "data-name": "Group 25228", transform: "translate(-5649 -11749)" }, /* @__PURE__ */ React.createElement("g", { id: "Group_25224", "data-name": "Group 25224", transform: "translate(1 1)" }, /* @__PURE__ */ React.createElement("g", { id: "Rectangle_19479", "data-name": "Rectangle 19479", transform: "translate(5649 11749)", fill: "none", stroke: color, strokeWidth: "1.6" }, /* @__PURE__ */ React.createElement("rect", { width: "22", height: "22", rx: "5", stroke: "none" }), /* @__PURE__ */ React.createElement("rect", { x: "0.8", y: "0.8", width: "20.4", height: "20.4", rx: "4.2", fill: "none" })), /* @__PURE__ */ React.createElement("path", { id: "Icon_feather-check", "data-name": "Icon feather-check", d: "M16.02,9,9.131,15.889,6,12.758", transform: "translate(5649.427 11747.506)", fill: "none", stroke: color, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.6" })), /* @__PURE__ */ React.createElement("g", { id: "Group_25227", "data-name": "Group 25227" }, /* @__PURE__ */ React.createElement("rect", { id: "Rectangle_19479-2", "data-name": "Rectangle 19479", width: "24", height: "24", rx: "5", transform: "translate(5649 11749)", fill: "none" }))));
4
+ var questionTypeMultipleIcon_default = QuestionTypeMultipleIcon;
5
+
6
+ export {
7
+ questionTypeMultipleIcon_default
8
+ };
@@ -1,6 +1,6 @@
1
1
  // lib/icons/engagementIcon.tsx
2
2
  import * as React from "react";
3
- var EngagementIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement("svg", { width: "22", height: "22", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M14.4391 12.237C14.4713 12.2661 14.5091 12.2883 14.5501 12.3022C14.5912 12.3161 14.6347 12.3214 14.6779 12.3179C14.7211 12.3143 14.7631 12.3019 14.8013 12.2815C14.8396 12.261 14.8732 12.233 14.9001 12.199C14.956 12.1312 14.9835 12.0444 14.9768 11.9567C14.9701 11.8691 14.9297 11.7875 14.8641 11.729C14.2376 11.1794 13.5316 10.7277 12.7701 10.389C13.3457 9.88171 13.8062 9.25734 14.121 8.55767C14.4357 7.85801 14.5974 7.09919 14.5951 6.33199C14.6139 4.93817 14.0788 3.59386 13.1075 2.59404C12.1362 1.59423 10.8079 1.02059 9.41414 0.998993C8.02071 1.02137 6.69304 1.5955 5.72234 2.59544C4.75164 3.59539 4.21716 4.93951 4.23614 6.33299C4.23383 7.09938 4.39508 7.85743 4.7091 8.55653C5.02313 9.25563 5.48271 9.87968 6.05714 10.387C4.53991 11.0856 3.25607 12.2066 2.35924 13.6158C1.46241 15.0249 0.99056 16.6627 1.00014 18.333V20.666C0.999074 20.7531 1.03258 20.837 1.09332 20.8995C1.15405 20.9619 1.23706 20.9977 1.32414 20.999C1.41123 20.9977 1.49424 20.9619 1.55497 20.8995C1.61571 20.837 1.64921 20.7531 1.64814 20.666V18.333C1.63752 16.7252 2.11129 15.1515 3.00775 13.8168C3.9042 12.4821 5.1818 11.4483 6.67414 10.85C7.48858 11.3825 8.44057 11.6661 9.41364 11.6661C10.3867 11.6661 11.3387 11.3825 12.1531 10.85C12.9907 11.1745 13.7645 11.644 14.4391 12.237ZM4.88314 6.33699C4.86577 5.11734 5.33299 3.94062 6.18228 3.06509C7.03157 2.18955 8.19353 1.68674 9.41314 1.66699C10.6322 1.68674 11.7937 2.18914 12.6429 3.06402C13.4921 3.93891 13.9597 5.11486 13.9431 6.33399C13.9592 7.55278 13.4914 8.72822 12.6422 9.60267C11.7931 10.4771 10.6319 10.9792 9.41314 10.999C8.19423 10.9792 7.03288 10.477 6.18371 9.60232C5.33454 8.72765 4.86683 7.55196 4.88314 6.33299V6.33699Z", fill: color, stroke: color, "stroke-width": "0.5" }), /* @__PURE__ */ React.createElement("path", { d: "M20.971 15.204C20.9361 15.0935 20.8706 14.9953 20.7821 14.9206C20.6936 14.8459 20.5857 14.7978 20.471 14.782L17.754 14.4L16.54 12.021C16.4874 11.9197 16.4081 11.8348 16.3106 11.7755C16.213 11.7162 16.1011 11.6849 15.987 11.6849C15.8729 11.6849 15.761 11.7162 15.6634 11.7755C15.5659 11.8348 15.4866 11.9197 15.434 12.021L14.22 14.4L11.503 14.782C11.3883 14.7978 11.2804 14.8459 11.1919 14.9206C11.1034 14.9953 11.0379 15.0935 11.003 15.204C10.9675 15.313 10.964 15.4299 10.9929 15.5408C11.0218 15.6518 11.0819 15.7521 11.166 15.83L13.124 17.677L12.662 20.282C12.6461 20.3691 12.6497 20.4587 12.6725 20.5443C12.6953 20.6299 12.7368 20.7093 12.794 20.777C12.8859 20.8832 13.0105 20.956 13.1482 20.9839C13.2859 21.0117 13.429 20.9931 13.555 20.931L15.99 19.693L18.425 20.931C18.5508 20.9954 18.6947 21.0151 18.8332 20.987C18.9716 20.9588 19.0964 20.8844 19.187 20.776C19.2442 20.7083 19.2857 20.6289 19.3085 20.5433C19.3313 20.4577 19.3349 20.3681 19.319 20.281L18.857 17.676L20.816 15.829C20.8986 15.7503 20.957 15.6497 20.9845 15.539C21.0119 15.4283 21.0072 15.3121 20.971 15.204ZM18.316 17.195C18.2424 17.2639 18.1871 17.3501 18.1551 17.4458C18.1232 17.5415 18.1156 17.6436 18.133 17.743L18.57 20.205L16.27 19.034C16.1819 18.9903 16.0849 18.9675 15.9865 18.9675C15.8881 18.9675 15.7911 18.9903 15.703 19.034L13.403 20.205L13.84 17.742C13.8575 17.6426 13.8498 17.5405 13.8179 17.4448C13.7859 17.3491 13.7306 17.2629 13.657 17.194L11.819 15.46L14.372 15.101C14.4705 15.0874 14.5642 15.0504 14.6453 14.9929C14.7265 14.9355 14.7925 14.8594 14.838 14.771L15.99 12.512L17.143 14.771C17.1885 14.8594 17.2546 14.9355 17.3357 14.9929C17.4168 15.0504 17.5105 15.0874 17.609 15.101L20.162 15.46L18.316 17.195Z", fill: color, stroke: color, "stroke-width": "0.5" }));
3
+ var EngagementIcon = ({ color = "#3a3a3a", ...props }) => /* @__PURE__ */ React.createElement("svg", { width: "22", height: "22", viewBox: "0 0 22 22", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M14.4391 12.237C14.4713 12.2661 14.5091 12.2883 14.5501 12.3022C14.5912 12.3161 14.6347 12.3214 14.6779 12.3179C14.7211 12.3143 14.7631 12.3019 14.8013 12.2815C14.8396 12.261 14.8732 12.233 14.9001 12.199C14.956 12.1312 14.9835 12.0444 14.9768 11.9567C14.9701 11.8691 14.9297 11.7875 14.8641 11.729C14.2376 11.1794 13.5316 10.7277 12.7701 10.389C13.3457 9.88171 13.8062 9.25734 14.121 8.55767C14.4357 7.85801 14.5974 7.09919 14.5951 6.33199C14.6139 4.93817 14.0788 3.59386 13.1075 2.59404C12.1362 1.59423 10.8079 1.02059 9.41414 0.998993C8.02071 1.02137 6.69304 1.5955 5.72234 2.59544C4.75164 3.59539 4.21716 4.93951 4.23614 6.33299C4.23383 7.09938 4.39508 7.85743 4.7091 8.55653C5.02313 9.25563 5.48271 9.87968 6.05714 10.387C4.53991 11.0856 3.25607 12.2066 2.35924 13.6158C1.46241 15.0249 0.99056 16.6627 1.00014 18.333V20.666C0.999074 20.7531 1.03258 20.837 1.09332 20.8995C1.15405 20.9619 1.23706 20.9977 1.32414 20.999C1.41123 20.9977 1.49424 20.9619 1.55497 20.8995C1.61571 20.837 1.64921 20.7531 1.64814 20.666V18.333C1.63752 16.7252 2.11129 15.1515 3.00775 13.8168C3.9042 12.4821 5.1818 11.4483 6.67414 10.85C7.48858 11.3825 8.44057 11.6661 9.41364 11.6661C10.3867 11.6661 11.3387 11.3825 12.1531 10.85C12.9907 11.1745 13.7645 11.644 14.4391 12.237ZM4.88314 6.33699C4.86577 5.11734 5.33299 3.94062 6.18228 3.06509C7.03157 2.18955 8.19353 1.68674 9.41314 1.66699C10.6322 1.68674 11.7937 2.18914 12.6429 3.06402C13.4921 3.93891 13.9597 5.11486 13.9431 6.33399C13.9592 7.55278 13.4914 8.72822 12.6422 9.60267C11.7931 10.4771 10.6319 10.9792 9.41314 10.999C8.19423 10.9792 7.03288 10.477 6.18371 9.60232C5.33454 8.72765 4.86683 7.55196 4.88314 6.33299V6.33699Z", fill: color, stroke: color, strokeWidth: "0.5" }), /* @__PURE__ */ React.createElement("path", { d: "M20.971 15.204C20.9361 15.0935 20.8706 14.9953 20.7821 14.9206C20.6936 14.8459 20.5857 14.7978 20.471 14.782L17.754 14.4L16.54 12.021C16.4874 11.9197 16.4081 11.8348 16.3106 11.7755C16.213 11.7162 16.1011 11.6849 15.987 11.6849C15.8729 11.6849 15.761 11.7162 15.6634 11.7755C15.5659 11.8348 15.4866 11.9197 15.434 12.021L14.22 14.4L11.503 14.782C11.3883 14.7978 11.2804 14.8459 11.1919 14.9206C11.1034 14.9953 11.0379 15.0935 11.003 15.204C10.9675 15.313 10.964 15.4299 10.9929 15.5408C11.0218 15.6518 11.0819 15.7521 11.166 15.83L13.124 17.677L12.662 20.282C12.6461 20.3691 12.6497 20.4587 12.6725 20.5443C12.6953 20.6299 12.7368 20.7093 12.794 20.777C12.8859 20.8832 13.0105 20.956 13.1482 20.9839C13.2859 21.0117 13.429 20.9931 13.555 20.931L15.99 19.693L18.425 20.931C18.5508 20.9954 18.6947 21.0151 18.8332 20.987C18.9716 20.9588 19.0964 20.8844 19.187 20.776C19.2442 20.7083 19.2857 20.6289 19.3085 20.5433C19.3313 20.4577 19.3349 20.3681 19.319 20.281L18.857 17.676L20.816 15.829C20.8986 15.7503 20.957 15.6497 20.9845 15.539C21.0119 15.4283 21.0072 15.3121 20.971 15.204ZM18.316 17.195C18.2424 17.2639 18.1871 17.3501 18.1551 17.4458C18.1232 17.5415 18.1156 17.6436 18.133 17.743L18.57 20.205L16.27 19.034C16.1819 18.9903 16.0849 18.9675 15.9865 18.9675C15.8881 18.9675 15.7911 18.9903 15.703 19.034L13.403 20.205L13.84 17.742C13.8575 17.6426 13.8498 17.5405 13.8179 17.4448C13.7859 17.3491 13.7306 17.2629 13.657 17.194L11.819 15.46L14.372 15.101C14.4705 15.0874 14.5642 15.0504 14.6453 14.9929C14.7265 14.9355 14.7925 14.8594 14.838 14.771L15.99 12.512L17.143 14.771C17.1885 14.8594 17.2546 14.9355 17.3357 14.9929C17.4168 15.0504 17.5105 15.0874 17.609 15.101L20.162 15.46L18.316 17.195Z", fill: color, stroke: color, strokeWidth: "0.5" }));
4
4
  var engagementIcon_default = EngagementIcon;
5
5
 
6
6
  export {