@genai-fi/base 3.0.2 → 4.0.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 (82) hide show
  1. package/dist/Button-CGKw9sMz.js +656 -0
  2. package/dist/CircularProgress-C6sMwjDC.js +1275 -0
  3. package/dist/{DefaultPropsProvider-C0Ib4Mye.js → DefaultPropsProvider-D2IJ8Qbs.js} +5 -1
  4. package/dist/{DialogQR-DVWhImXI.js → DialogQR-CyZcX7ul.js} +9 -5
  5. package/dist/{FlashWifi-CaAOKd3g.js → FlashWifi-CYp0UP0B.js} +1 -1
  6. package/dist/Portal-BqkDy0Wc.js +613 -0
  7. package/dist/SvgLayer-CA0elY7q.js +36 -0
  8. package/dist/assets/IconButtonDot.css +1 -0
  9. package/dist/assets/LangSelect.css +1 -0
  10. package/dist/assets/Loading.css +1 -0
  11. package/dist/assets/PercentageBar.css +1 -0
  12. package/dist/assets/PieScore.css +1 -0
  13. package/dist/assets/SvgLayer.css +1 -0
  14. package/dist/assets/Widget.css +1 -0
  15. package/dist/assets/style.css +1 -1
  16. package/dist/assets/style2.css +1 -0
  17. package/dist/colours.module.css +4 -0
  18. package/dist/components/AlertPara/AlertPara.js +1 -1
  19. package/dist/components/Application/Application.d.ts +10 -0
  20. package/dist/components/Application/Application.js +1610 -0
  21. package/dist/components/BusyButton/BusyButton.js +7 -6
  22. package/dist/components/Button/Button.js +12 -4
  23. package/dist/components/ConnectionStatus/ConnectionStatus.d.ts +1 -5
  24. package/dist/components/ConnectionStatus/ConnectionStatus.js +48 -47
  25. package/dist/components/ConnectionStatus/FlashWifi.js +1 -1
  26. package/dist/components/ContentLoader/ContentError.js +1 -1
  27. package/dist/components/ContentLoader/ContentLoader.js +5 -1
  28. package/dist/components/ContentLoader/ContentProgress.js +1 -1
  29. package/dist/components/IconButtonDot/IconButtonDot.d.ts +7 -0
  30. package/dist/components/IconButtonDot/IconButtonDot.js +22 -0
  31. package/dist/components/IconMenu/IconMenu.d.ts +12 -0
  32. package/dist/components/IconMenu/IconMenu.js +26 -0
  33. package/dist/components/IconMenu/IconMenuInline.d.ts +6 -0
  34. package/dist/components/IconMenu/IconMenuInline.js +12 -0
  35. package/dist/components/IconMenu/Item.d.ts +9 -0
  36. package/dist/components/IconMenu/Item.js +34 -0
  37. package/dist/components/IconMenu/Spacer.d.ts +1 -0
  38. package/dist/components/IconMenu/Spacer.js +11 -0
  39. package/dist/components/IconMenu/context.d.ts +1 -0
  40. package/dist/components/IconMenu/context.js +5 -0
  41. package/dist/components/IconMenu/index.d.ts +4 -0
  42. package/dist/components/IconMenu/index.js +10 -0
  43. package/dist/components/LangSelect/LangSelect.d.ts +12 -0
  44. package/dist/components/LangSelect/LangSelect.js +46 -0
  45. package/dist/components/Loading/Loading.d.ts +7 -0
  46. package/dist/components/Loading/Loading.js +15 -0
  47. package/dist/components/Motd/Motd.js +1 -1
  48. package/dist/components/PercentageBar/PercentageBar.d.ts +7 -0
  49. package/dist/components/PercentageBar/PercentageBar.js +37 -0
  50. package/dist/components/PieScore/PieScore.d.ts +6 -0
  51. package/dist/components/PieScore/PieScore.js +10676 -0
  52. package/dist/components/QRCode/DialogQR.js +8 -4
  53. package/dist/components/QRCode/QRCode.js +1 -1
  54. package/dist/components/Webcam/Webcam.js +3 -3
  55. package/dist/components/WorkflowLayout/Layout.d.ts +7 -0
  56. package/dist/components/WorkflowLayout/Layout.js +43 -0
  57. package/dist/components/WorkflowLayout/SvgLayer.d.ts +14 -0
  58. package/dist/components/WorkflowLayout/SvgLayer.js +5 -0
  59. package/dist/components/WorkflowLayout/Widget.d.ts +18 -0
  60. package/dist/components/WorkflowLayout/Widget.js +7413 -0
  61. package/dist/components/WorkflowLayout/index.d.ts +3 -0
  62. package/dist/components/WorkflowLayout/index.js +6 -0
  63. package/dist/components/WorkflowLayout/lines.d.ts +17 -0
  64. package/dist/components/WorkflowLayout/lines.js +37 -0
  65. package/dist/{createSvgIcon-BfF8yuCp.js → createSvgIcon-DmrVEdN7.js} +2 -2
  66. package/dist/{createTheme-BIcG8YPQ.js → createTheme-a85zdZWm.js} +4 -0
  67. package/dist/hooks/peer.d.ts +25 -2
  68. package/dist/hooks/peer.js +196 -54
  69. package/dist/main.d.ts +6 -0
  70. package/dist/main.js +53 -33
  71. package/dist/react-D_xU5dL6.js +112 -0
  72. package/dist/state/webrtcState.js +5 -4
  73. package/dist/style/theme.js +1 -1
  74. package/dist/style.module-BAnhZ_KJ.js +9 -0
  75. package/dist/style.module-BDpZJv9y.js +26 -0
  76. package/dist/util/Observer.d.ts +7 -0
  77. package/dist/util/Observer.js +9 -0
  78. package/dist/{webrtcState-D0nJpE9Z.js → vanilla-BJxibF1U.js} +83 -85
  79. package/package.json +8 -2
  80. package/dist/Button-DQwRVw4a.js +0 -1918
  81. package/dist/react-D-b-Xrzv.js +0 -98
  82. package/dist/style.module-DSFm2eLD.js +0 -9
@@ -0,0 +1,36 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import './assets/SvgLayer.css';const n = "_svglayer_yu6sc_3", y = "_workspace_yu6sc_10", d = "_container_yu6sc_19", g = {
3
+ svglayer: n,
4
+ workspace: y,
5
+ container: d
6
+ }, a = 20;
7
+ function i({ lines: c }) {
8
+ return /* @__PURE__ */ o(
9
+ "svg",
10
+ {
11
+ className: g.svglayer,
12
+ xmlns: "http://www.w3.org/2000/svg",
13
+ width: "100%",
14
+ height: "100%",
15
+ "aria-hidden": !0,
16
+ children: c.map((r, e) => {
17
+ const s = r.direction === "horizontal" ? a : 0, t = r.direction === "vertical" ? a : 0;
18
+ return /* @__PURE__ */ o(
19
+ "path",
20
+ {
21
+ d: `M ${r.x1} ${r.y1} C ${r.x1 + s} ${r.y1 + t}, ${r.x2 - s} ${r.y2 - t}, ${r.x2} ${r.y2}`,
22
+ fill: "none",
23
+ stroke: "rgb(174, 37, 174)",
24
+ strokeWidth: "2",
25
+ strokeDasharray: void 0
26
+ },
27
+ e
28
+ );
29
+ })
30
+ }
31
+ );
32
+ }
33
+ export {
34
+ i as S,
35
+ g as s
36
+ };
@@ -0,0 +1 @@
1
+ ._button_16k34_3{position:relative}._dot_16k34_7{position:absolute;top:-.5rem;left:calc(100% - 1rem);background:#ae25ae;font-weight:700;box-sizing:border-box;border-radius:6px;padding:.6rem .4rem;display:flex;justify-content:center;align-items:center;font-size:.8rem}._leftDot_16k34_22{left:unset;right:calc(100% - 1rem)}
@@ -0,0 +1 @@
1
+ ._lang_1mspu_3{display:flex;align-items:center;gap:.3rem;color:#aaa}
@@ -0,0 +1 @@
1
+ ._container_1rls9_3{display:flex;width:100%;height:100%;align-items:center;justify-content:center;flex-direction:column;gap:1rem}._container_1rls9_3 h1{color:#444}
@@ -0,0 +1 @@
1
+ ._outer_1pzwa_1{position:relative;overflow:hidden;border-radius:4px;color:#fff}._outer_1pzwa_1._orange_1pzwa_8{background-color:#c6840c33}._orange_1pzwa_8._progress_1pzwa_11{background-color:#c6840c}._outer_1pzwa_1._purple_1pzwa_15{background-color:#a751c933}._purple_1pzwa_15._progress_1pzwa_11{background-color:#a751c9}._outer_1pzwa_1._blue_1pzwa_22{background-color:#5165c933}._blue_1pzwa_22._progress_1pzwa_11{background-color:#5165c9}._outer_1pzwa_1._green_1pzwa_29{background-color:#53a52733}._green_1pzwa_29._progress_1pzwa_11{background-color:#53a527}._outer_1pzwa_1._red_1pzwa_36{background-color:#db491d33}._red_1pzwa_36._progress_1pzwa_11{background-color:#db491d}._progress_1pzwa_11{position:absolute;left:0;top:0;bottom:0;width:100%;background:#1976d2;transition:width .5s}._label_1pzwa_53{position:relative;font-weight:700;text-align:right;padding:.2rem .5rem;box-sizing:border-box;font-size:12pt;transition:width .5s}
@@ -0,0 +1 @@
1
+ ._chart_1jvuc_1 .MuiPieArc-root{stroke:#2994a9}._chartGrey_1jvuc_5 .MuiPieArc-root{stroke:#73888c}
@@ -0,0 +1 @@
1
+ ._svglayer_yu6sc_3{position:absolute;left:0;top:0;pointer-events:none}._workspace_yu6sc_10{overflow:auto;max-width:100%;max-height:100%;height:100%;width:100%;position:relative}._container_yu6sc_19{overflow:auto;min-height:100%;background:#dfe5e8;display:grid;gap:3rem;padding:2rem;box-sizing:border-box;grid-template-columns:repeat(6,max-content);min-width:100%;width:max-content;justify-content:center;position:relative;align-items:center}@media only screen and (max-height: 500px),(max-width: 700px){._svglayer_yu6sc_3{display:none}._container_yu6sc_19{display:flex;flex-direction:column;padding:1rem 0;width:100%}}
@@ -0,0 +1 @@
1
+ ._widget_becos_3{background:#fff;border-radius:6px;padding:0;display:flex;flex-direction:column;box-shadow:2px 2px 4px #bbb;flex-shrink:0;animation:_fadein_becos_1 .5s 1;box-sizing:border-box;border:1px solid white;position:relative}@media only screen and (max-height: 500px),(max-width: 700px){._widget_becos_3{max-width:100%}}@keyframes _fadein_becos_1{0%{opacity:.1}to{opacity:1}}._widgetDisabled_becos_32{pointer-events:none;opacity:.5}._widgetActive_becos_38{border:1px dashed #008297}._widget_title_becos_43{font-size:14pt;font-weight:700;margin:0}._widget_header_becos_49{display:flex;justify-content:left;border-bottom:1px solid #008297;padding:.6rem 1rem;align-items:center}._widget_header_becos_49 input{padding:.2rem;height:initial;box-sizing:border-box;border:2px solid transparent;cursor:pointer;margin-right:1rem}._widget_header_becos_49 input:focus{border:2px solid #008297;border-radius:5px;cursor:initial}._widget_header_becos_49 fieldset{border:none}._widget_menu_becos_76{flex-grow:1;text-align:right}._widget_content_becos_81{padding:1rem;display:flex;flex-direction:column}._widget_content_becos_81>p{color:#444;font-size:12pt;margin:1rem 1.4rem}
@@ -1 +1 @@
1
- ._title_1bpz2_3{background:#e8f0fe;border-bottom:2px solid rgb(2,136,209)}._content_1bpz2_8{display:flex;flex-direction:column;gap:1rem;padding:2rem;padding-top:1rem!important;max-width:400px;align-items:center}._errorTitle_1bpz2_18{background:#ffcbcb;border-bottom:2px solid #fa3e3e}._errorContent_1bpz2_23{display:flex;flex-direction:column;gap:1rem;padding:2rem;padding-top:1rem!important;max-width:400px}
1
+ ._menuContainer_1m72l_3{position:absolute;background:#444;border-radius:2rem;box-shadow:1px 1px 8px #888;display:flex;overflow:hidden;align-items:center;color:#fff}._menuContainer_1m72l_3 .Mui-disabled{color:#ffffff42}._free_1m72l_18{width:fit-content;flex-direction:row;padding-right:1rem;transform:translate(-50%)}._left_1m72l_26{left:0;top:50%;bottom:50%;height:fit-content;margin:auto;margin-left:1rem;flex-direction:column;padding-bottom:1rem}._right_1m72l_38{right:0;top:50%;bottom:50%;height:fit-content;margin:auto;margin-right:1rem;flex-direction:column;padding-bottom:1rem}._top_1m72l_50{top:0;left:0;right:0;width:fit-content;margin:auto;margin-top:1rem;flex-direction:row;padding-right:1rem}._bottom_1m72l_62{bottom:0;left:0;right:0;width:fit-content;margin:auto;margin-bottom:1rem;flex-direction:row;padding-right:1rem}._menuSpacerRow_1m72l_74{margin:.5rem 0;height:2px;background:#555;align-self:stretch}._menuSpacerColumn_1m72l_81{margin:0 .5rem;width:2px;background:#555;align-self:stretch}._logoRow_1m72l_88{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:1rem .2rem .2rem;margin-bottom:1rem;background:#078092;align-self:stretch}._logoColumn_1m72l_101{display:flex;align-items:center;justify-content:center;padding:.2rem .2rem .2rem 1rem;margin-right:1rem;background:#078092;align-self:stretch;min-height:48px}._selected_1m72l_114{background:#ae25ae}._selectedItem_1m72l_118{color:#e996e9}._inline_1m72l_122{display:flex;align-items:center;font-size:.8rem;font-style:italic;text-wrap:nowrap;overflow:hidden}._inlineSelected_1m72l_131{color:#e996e9}._inlineTip_1m72l_136{color:#eee}._inlineBar_1m72l_140{background:#444;color:#fff;padding:.2rem .5rem;flex:0 0 42px;display:flex;margin:1rem;border-radius:2rem;overflow:hidden;align-items:center;margin-right:auto}._inlineBar_1m72l_140 .Mui-disabled{color:#ffffff42}
@@ -0,0 +1 @@
1
+ ._title_1bpz2_3{background:#e8f0fe;border-bottom:2px solid rgb(2,136,209)}._content_1bpz2_8{display:flex;flex-direction:column;gap:1rem;padding:2rem;padding-top:1rem!important;max-width:400px;align-items:center}._errorTitle_1bpz2_18{background:#ffcbcb;border-bottom:2px solid #fa3e3e}._errorContent_1bpz2_23{display:flex;flex-direction:column;gap:1rem;padding:2rem;padding-top:1rem!important;max-width:400px}
@@ -17,3 +17,7 @@
17
17
  @value borderGrey: #ddd;
18
18
  @value borderGreen: #19b1a8;
19
19
  @value borderBrightBlue: rgb(2, 136, 209);
20
+ @value backgroundDark2: #444;
21
+ @value backgroundDark3: #555;
22
+ @value primaryLight: #009FB8;
23
+ @value secondaryLight: #E996E9;
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
- import { c as a } from "../../createSvgIcon-BfF8yuCp.js";
2
+ import { c as a } from "../../createSvgIcon-DmrVEdN7.js";
3
3
  import '../../assets/AlertPara.css';const _ = a(/* @__PURE__ */ t("path", {
4
4
  d: "M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"
5
5
  }), "InfoOutlined"), c = "_alert_ur25l_1", i = "_isolated_ur25l_13", f = "_none_ur25l_19 _alert_ur25l_1", u = "_info_ur25l_23 _alert_ur25l_1", n = {
@@ -0,0 +1,10 @@
1
+ import { theme as defaultTheme } from '../../style/theme';
2
+ import { createStore } from 'jotai';
3
+ import { RouterProviderProps } from 'react-router';
4
+ interface Props {
5
+ theme?: typeof defaultTheme;
6
+ store?: ReturnType<typeof createStore>;
7
+ router: RouterProviderProps['router'];
8
+ }
9
+ export default function Application({ theme, store, router }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};