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