@e-llm-studio/instant-learning 0.0.112 → 0.0.113
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.
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering/CustomComponents.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/atoms/Dropdown/Dropdown.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering/CustomComponents.js +1 -1
- package/dist/features/IL-OTJ/_components/atoms/Dropdown/Dropdown.js +1 -1
- package/dist/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.js +1 -1
- package/dist/types/src/features/IL-OTJ/ILOTJTest.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/atoms/Dropdown/Dropdown.d.ts +2 -1
- package/dist/types/src/features/IL-OTJ/_components/atoms/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/organisms/ScopeSection/ScopeSection.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../node_modules/tslib/tslib.es6.mjs.js"),r=require("react/jsx-runtime");require("react");var n=require("../../helpers/utils.js"),o=function(n){var o=n.label,i=n.onToggle,t=n.isSelected,s=n.disabled;return r.jsxs("div",e.__assign({style:{display:"inline-flex",alignItems:"center",cursor:s?"not-allowed":"pointer",margin:"8px 24px 8px 0",userSelect:"none",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"14px",color:s?"#9ca3af":"#000000de",verticalAlign:"middle",opacity:s&&!t?.6:1},onClick:function(){return!s&&i(o,!t)}},{children:[r.jsx("div",e.__assign({style:{width:"18px",height:"18px",borderRadius:"4px",border:t?"none":"2px solid ".concat(s?"#e5e7eb":"#cfd8dc"),backgroundColor:t?s?"#90caf9":"#2661eb":"transparent",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"8px",transition:"all 0.2s ease",color:"white",flexShrink:0}},{children:t&&r.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:r.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))})),r.jsx("span",{children:o})]}))};exports.ActionableButton=function(o){o.node;var i=o.className,t=o.children,s=o.handleStream,l=o.onAction,a=o.disabled,d=o.isStreamEnd,c=void 0===d||d,f=e.__rest(o,["node","className","children","handleStream","onAction","disabled","isStreamEnd"]),g=n.extractTextFromChildren(t),u=f["data-selected"],x="true"===u,p="true"===u||"false"===u;if(!1===c&&!a&&!p)return null;if("clickable-button"===i){var h={backgroundColor:"#fff",color:"#65758c",borderColor:"#bfc6ceff",cursor:"pointer",opacity:1};return p?h=x?{backgroundColor:"#2661eb",color:"#ffffff",borderColor:"#2661eb",cursor:"default",opacity:1}:{backgroundColor:"#f3f4f6",color:"#
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../node_modules/tslib/tslib.es6.mjs.js"),r=require("react/jsx-runtime");require("react");var n=require("../../helpers/utils.js"),o=function(n){var o=n.label,i=n.onToggle,t=n.isSelected,s=n.disabled;return r.jsxs("div",e.__assign({style:{display:"inline-flex",alignItems:"center",cursor:s?"not-allowed":"pointer",margin:"8px 24px 8px 0",userSelect:"none",fontFamily:"Plus Jakarta Sans, sans-serif",fontSize:"14px",color:s?"#9ca3af":"#000000de",verticalAlign:"middle",opacity:s&&!t?.6:1},onClick:function(){return!s&&i(o,!t)}},{children:[r.jsx("div",e.__assign({style:{width:"18px",height:"18px",borderRadius:"4px",border:t?"none":"2px solid ".concat(s?"#e5e7eb":"#cfd8dc"),backgroundColor:t?s?"#90caf9":"#2661eb":"transparent",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"8px",transition:"all 0.2s ease",color:"white",flexShrink:0}},{children:t&&r.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:r.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}))})),r.jsx("span",{children:o})]}))};exports.ActionableButton=function(o){o.node;var i=o.className,t=o.children,s=o.handleStream,l=o.onAction,a=o.disabled,d=o.isStreamEnd,c=void 0===d||d,f=e.__rest(o,["node","className","children","handleStream","onAction","disabled","isStreamEnd"]),g=n.extractTextFromChildren(t),u=f["data-selected"],x="true"===u,p="true"===u||"false"===u;if(!1===c&&!a&&!p)return null;if("clickable-button"===i){var h={backgroundColor:"#fff",color:"#65758c",borderColor:"#bfc6ceff",cursor:"pointer",opacity:1};return p?h=x?{backgroundColor:"#2661eb",color:"#ffffff",borderColor:"#2661eb",cursor:"default",opacity:1}:{backgroundColor:"#f3f4f6",color:"#64676A",borderColor:"#a8a8a8ff",cursor:"default",opacity:.6}:a&&(h={backgroundColor:"#f3f4f6",color:"#64676A",borderColor:"#C0C0C2",cursor:"not-allowed",opacity:1}),r.jsxs("button",e.__assign({className:i,onClick:function(e){e.preventDefault(),a||p||(l?l(g):s(new KeyboardEvent("keydown",{key:"Enter"}),!1,g))},disabled:a||p,style:{padding:"0.3rem 0.8rem",margin:"0.5rem 0.5rem 0.5rem 0",backgroundColor:h.backgroundColor,color:h.color,border:"1px solid ".concat(h.borderColor),borderRadius:"4px",cursor:h.cursor,fontSize:"0.85rem",fontWeight:"500",transition:"all 0.2s ease",fontFamily:"Plus Jakarta Sans, sans-serif",display:"inline-block",pointerEvents:a||p?"none":"auto",opacity:h.opacity},onMouseEnter:function(e){a||p||(e.currentTarget.style.backgroundColor="#2563EB",e.currentTarget.style.borderColor="#3b82f5",e.currentTarget.style.color="#fff")},onMouseLeave:function(e){a||p||(e.currentTarget.style.backgroundColor="#fff",e.currentTarget.style.borderColor="#bfc6ceff",e.currentTarget.style.color="#65758c")}},f,{children:[x&&r.jsx("span",e.__assign({style:{marginRight:"6px",fontSize:"1rem",lineHeight:0}},{children:"✓"})),t]}))}return r.jsx("button",e.__assign({className:i},f,{children:t}))},exports.ActionableCheckbox=function(i){i.node;var t=i.className,s=i.children,l=i.selectedItems,a=i.onToggle,d=i.isSubmitted,c=i.disabled;e.__rest(i,["node","className","children","selectedItems","onToggle","isSubmitted","disabled"]);var f=n.extractTextFromChildren(s),g=f.trim();return"clickable-box"===t?d?l.includes(g)?r.jsxs("div",e.__assign({style:{display:"inline-flex",alignItems:"center",margin:"4px 24px 4px 0",color:"#2661eb",fontWeight:600,fontFamily:"Plus Jakarta Sans, sans-serif"}},{children:[r.jsx("span",e.__assign({style:{marginRight:"6px",fontSize:"16px"}},{children:"✓"}))," ",f]})):null:r.jsx(o,{label:f,isSelected:l.includes(g),onToggle:a,disabled:c}):r.jsx("span",e.__assign({className:t},{children:s}))},exports.CheckboxSelector=o,exports.RuleDisplay=function(n){var o=n.content,i=function(e){var r=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp("<".concat(r,">([\\s\\S]*?)<\\/").concat(r,">"),"i"),i=o.match(n);return i?i[1].trim():"*No ".concat(e," tag found.*")},t=i("reasoning_new"),s=i("proposed_rule"),l=i("wta_new"),a=i("wnta_new");return r.jsxs("div",e.__assign({style:{padding:"16px 16px",maxWidth:"100%",border:"1px solid #A78BFA",borderRadius:"8px",backgroundColor:"#F6F4FF"}},{children:[r.jsx("div",e.__assign({style:{color:"#4B5563",fontSize:"1rem",lineHeight:"1.5rem",marginBottom:"1rem",fontFamily:"inherit",maxWidth:"90%"}},{children:t})),r.jsxs("div",e.__assign({style:{border:"1px solid #ddd",borderRadius:"8px",padding:"16px",backgroundColor:"#FFFFFF",boxShadow:"0 4px 6px rgba(0, 0, 0, 0.05)"}},{children:[r.jsxs("div",e.__assign({style:{paddingLeft:"12px",marginBottom:"12px",fontFamily:"inherit"}},{children:[r.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:"400",color:"#666F8D",fontFamily:"inherit"}},{children:"Proposed Rule"})),r.jsx("div",e.__assign({style:{fontSize:"0.95rem",color:"#374151",fontFamily:"inherit"}},{children:s}))]})),r.jsxs("div",e.__assign({style:{marginBottom:"12px",paddingLeft:"12px",fontFamily:"inherit"}},{children:[r.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:"400",color:"#666F8D",fontFamily:"inherit"}},{children:"When to apply"})),r.jsx("div",e.__assign({style:{fontSize:"0.9rem",color:"#374151",fontFamily:"inherit"}},{children:l}))]})),r.jsxs("div",e.__assign({style:{paddingLeft:"12px",fontFamily:"inherit"}},{children:[r.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:"400",color:"#666F8D",fontFamily:"inherit"}},{children:"When NOT to apply"})),r.jsx("div",e.__assign({style:{fontSize:"0.9rem",color:"#374151",fontFamily:"inherit"}},{children:a}))]}))]}))]}))};
|
|
2
2
|
//# sourceMappingURL=CustomComponents.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../node_modules/tslib/tslib.es6.mjs.js"),s=require("react/jsx-runtime");exports.Dropdown=function(n){var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../../node_modules/tslib/tslib.es6.mjs.js"),s=require("react/jsx-runtime");exports.Dropdown=function(n){var o=n.value,l=n.onChange,i=n.options,r=n.placeholder,a=n.isHighlighted;return s.jsxs("select",e.__assign({value:o,onChange:l,className:"dropdown",style:{transition:"all 0.4s ease-in-out",border:a?"1px solid #2563EB":"1px solid #ccc",boxShadow:a?"0 0 14px 4px rgba(37, 99, 235, 0.35)":"none",outline:"none"}},{children:[s.jsx("option",e.__assign({value:"",disabled:!0},{children:r})),i.map(function(n,o){return s.jsx("option",e.__assign({value:n.value||n.label},{children:n.label}),o)})]}))};
|
|
2
2
|
//# sourceMappingURL=Dropdown.js.map
|