@dev-blinq/ui-systems 1.0.121 → 1.0.122
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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -873,4 +873,4 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
873
873
|
border-top: none;
|
|
874
874
|
border-left: none;
|
|
875
875
|
`}
|
|
876
|
-
`;function u6({steps:e,currentStep:t,onNext:n,onPrevious:r,onClose:i,show:a,canClose:o=!0,top:s,left:l,arrowOnEdge:c}){const[u,f]=V.useState({top:s??0,left:l??0}),[d,p]=V.useState("bottom"),x=e[t],h=x==null?void 0:x.targetRef,v=J5("absolute"),b={top:u.top,left:u.left,position:v,overflow:"visible"};if(V.useEffect(()=>{if(typeof s=="number"&&typeof l=="number"){f({top:s,left:l});return}if(h&&a){const S=()=>{const k=h.getBoundingClientRect(),m=280,B=120,R=12;let P=k.bottom+R,U=k.left+k.width/2-m/2,z="top";U+m>window.innerWidth&&(U=window.innerWidth-m-R),U<R&&(U=R),P+B>window.innerHeight&&(P=k.top-B-R,z="bottom"),f({top:P,left:U}),p(z)};S(),window.addEventListener("resize",S),window.addEventListener("scroll",S);const w=new ResizeObserver(S);w.observe(h);const T=new MutationObserver(S);return T.observe(document.body,{childList:!0,subtree:!0}),()=>{window.removeEventListener("resize",S),window.removeEventListener("scroll",S),w.disconnect(),T.disconnect()}}},[a,t,h,s,l]),!a||!x)return null;const g=t===e.length-1,y=t===0,C=(()=>{if(c===null)return{display:"none"};const S=16,w="#2563eb";switch(c){case"horizontal-top":return{position:"absolute",top:-S,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:`${S}px solid transparent`,borderRight:`${S}px solid transparent`,borderBottom:`${S}px solid ${w}`};case"horizontal-bottom":return{position:"absolute",bottom:-S,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:`${S}px solid transparent`,borderRight:`${S}px solid transparent`,borderTop:`${S}px solid ${w}`};case"vertical-left":return{position:"absolute",left:-S,top:"50%",transform:"translateY(-50%)",width:0,height:0,borderTop:`${S}px solid transparent`,borderBottom:`${S}px solid transparent`,borderRight:`${S}px solid ${w}`};case"vertical-right":return{position:"absolute",right:-S,top:"50%",transform:"translateY(-50%)",width:0,height:0,borderTop:`${S}px solid transparent`,borderBottom:`${S}px solid transparent`,borderLeft:`${S}px solid ${w}`};default:return{}}})(),A=()=>c===void 0?E.jsx(l6,{pos:d}):c===null?null:E.jsx("div",{style:C});return E.jsxs(E.Fragment,{children:[E.jsx(vv,{children:E.jsx(Q5,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:o?i:void 0})}),h&&E.jsx(e6,{rect:h.getBoundingClientRect(),initial:{opacity:0},animate:{opacity:1,boxShadow:["0 0 0 3px rgba(59,130,246,0.4), 0 0 0 9999px rgba(0,0,0,0.2)","0 0 0 6px rgba(59,130,246,0.6), 0 0 0 9999px rgba(0,0,0,0.2)","0 0 0 3px rgba(59,130,246,0.4), 0 0 0 9999px rgba(0,0,0,0.2)"]},transition:{duration:2,repeat:1/0,ease:"easeInOut"}}),E.jsxs(t6,{style:b,initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95},children:[A(),E.jsxs(n6,{children:[E.jsx(r6,{children:
|
|
876
|
+
`;function u6({steps:e,currentStep:t,onNext:n,onPrevious:r,onClose:i,show:a,canClose:o=!0,top:s,left:l,arrowOnEdge:c}){const[u,f]=V.useState({top:s??0,left:l??0}),[d,p]=V.useState("bottom"),x=e[t],h=x==null?void 0:x.targetRef,v=J5("absolute"),b={top:u.top,left:u.left,position:v,overflow:"visible"};if(V.useEffect(()=>{if(typeof s=="number"&&typeof l=="number"){f({top:s,left:l});return}if(h&&a){const S=()=>{const k=h.getBoundingClientRect(),m=280,B=120,R=12;let P=k.bottom+R,U=k.left+k.width/2-m/2,z="top";U+m>window.innerWidth&&(U=window.innerWidth-m-R),U<R&&(U=R),P+B>window.innerHeight&&(P=k.top-B-R,z="bottom"),f({top:P,left:U}),p(z)};S(),window.addEventListener("resize",S),window.addEventListener("scroll",S);const w=new ResizeObserver(S);w.observe(h);const T=new MutationObserver(S);return T.observe(document.body,{childList:!0,subtree:!0}),()=>{window.removeEventListener("resize",S),window.removeEventListener("scroll",S),w.disconnect(),T.disconnect()}}},[a,t,h,s,l]),!a||!x)return null;const g=t===e.length-1,y=t===0,C=(()=>{if(c===null)return{display:"none"};const S=16,w="#2563eb";switch(c){case"horizontal-top":return{position:"absolute",top:-S,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:`${S}px solid transparent`,borderRight:`${S}px solid transparent`,borderBottom:`${S}px solid ${w}`};case"horizontal-bottom":return{position:"absolute",bottom:-S,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:`${S}px solid transparent`,borderRight:`${S}px solid transparent`,borderTop:`${S}px solid ${w}`};case"vertical-left":return{position:"absolute",left:-S,top:"50%",transform:"translateY(-50%)",width:0,height:0,borderTop:`${S}px solid transparent`,borderBottom:`${S}px solid transparent`,borderRight:`${S}px solid ${w}`};case"vertical-right":return{position:"absolute",right:-S,top:"50%",transform:"translateY(-50%)",width:0,height:0,borderTop:`${S}px solid transparent`,borderBottom:`${S}px solid transparent`,borderLeft:`${S}px solid ${w}`};default:return{}}})(),A=()=>c===void 0?E.jsx(l6,{pos:d}):c===null?null:E.jsx("div",{style:C});return E.jsxs(E.Fragment,{children:[E.jsx(vv,{children:E.jsx(Q5,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:o?i:void 0})}),h&&E.jsx(e6,{rect:h.getBoundingClientRect(),initial:{opacity:0},animate:{opacity:1,boxShadow:["0 0 0 3px rgba(59,130,246,0.4), 0 0 0 9999px rgba(0,0,0,0.2)","0 0 0 6px rgba(59,130,246,0.6), 0 0 0 9999px rgba(0,0,0,0.2)","0 0 0 3px rgba(59,130,246,0.4), 0 0 0 9999px rgba(0,0,0,0.2)"]},transition:{duration:2,repeat:1/0,ease:"easeInOut"}}),E.jsxs(t6,{style:b,initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95},children:[A(),E.jsxs(n6,{children:[E.jsx(r6,{children:x.title}),E.jsxs(i6,{children:["Step ",t+1," of ",e.length]}),o&&E.jsx(a6,{onClick:i,children:E.jsx(Ml,{size:14})})]}),E.jsxs(o6,{children:[E.jsx(s6,{children:x.description}),E.jsx(c6,{children:E.jsxs("div",{style:{display:"flex",gap:"4px",marginLeft:"auto"},children:[r&&E.jsx(Pl,{onClick:r,disabled:y,style:{padding:"4px 8px",height:"24px",fontSize:"10px",background:"transparent",color:"#111827",border:"1px solid #d1d5db",borderRadius:"6px",opacity:y?.5:1},children:"Previous"}),E.jsx(Pl,{onClick:g?i:n,style:{padding:"4px 10px",height:"24px",fontSize:"10px",background:"#2563eb",color:"#fff",border:"1px solid #2563eb",borderRadius:"6px"},children:g?"Finish":"Next"})]})})]})]})]})}const f6=du({typography:{fontFamily:"var(--font-family)"},colorSchemes:{light:{palette:{primary:{main:"#093db0",light:"#ebeefe",dark:"#4338ca",contrastText:"#FFFFFF"},secondary:{main:"#4f4d55",light:"#f3f4f6",dark:"#4f4d55",contrastText:"#FFFFFF"},warning:{main:"#f79009",light:"#fef0c7",dark:"#b54708",contrastText:"#FFFFFF"},error:{main:"#f04438",light:"#fee4e2",dark:"#b42318",contrastText:"#FFFFFF"},success:{main:"#15b79e",light:"#ccfbef",dark:"#107569",contrastText:"#FFFFFF"},info:{main:"#06aed4",light:"#cff9fe",dark:"#0e7090",contrastText:"#FFFFFF"}}}},components:{MuiOutlinedInput:{styleOverrides:{input:{"&.MuiInputBase-inputSizeSmall":{padding:"6px 8px",fontSize:"0.8125rem"}}}},MuiInputLabel:{styleOverrides:{root:{"&.MuiInputLabel-sizeSmall":{fontSize:"0.8125rem",transform:"translate(12px, 6px) scale(0.75)"}},shrink:{"&.MuiInputLabel-sizeSmall":{transform:"translate(12px, -6px) scale(0.75)"}}}},MuiSelect:{styleOverrides:{outlined:{padding:"7px 14px"},select:{"&.MuiSelect-select.MuiInputBase-inputSizeSmall":{padding:"7px 10px",fontSize:"0.8125rem"}},icon:{right:10}}}}}),d6=({children:e})=>E.jsxs(im,{theme:f6,children:[E.jsx($.CssBaseline,{}),E.jsx(gr.StyledEngineProvider,{injectFirst:!0,children:e})]});function h6(e,t){return e.length>t?e.substring(0,t-3)+"...":e}function p6(e,t){return e.length>t}exports.AlertCircleIcon=Io;exports.Button=Md;exports.CheckIcon=ni;exports.ChevronDownIcon=yr;exports.ChevronRightIcon=Lo;exports.CircleIcon=Ll;exports.CopyIcon=jo;exports.CustomCheckbox=kh;exports.CustomInput=Ph;exports.CustomMenu=Jl;exports.CustomRadioButton=Mh;exports.CustomText=Ae;exports.CustomTextArea=Rh;exports.CustomToggleSwitch=_h;exports.DataPanelSection=Ng;exports.EditIcon=jl;exports.EyeIcon=Ol;exports.EyeOffIcon=Nl;exports.GuidedTour=u6;exports.IconButtonCustom=vt;exports.InformationIcon=Il;exports.LinearProgressBar=hm;exports.MUIAccordion=bu;exports.MUIButton=yu;exports.MUICheckbox=Em;exports.MUIInput=Pn;exports.MUISelect=vu;exports.MUITabs=Zl;exports.MailIcon=Th;exports.PlusIcon=Oo;exports.SaveIcon=Fh;exports.Step=u2;exports.StepIcon=Wu;exports.StepKeyoword=o2;exports.StepPanelHeader=a2;exports.StepTitle=s2;exports.StepTitleEditInput=c2;exports.StyledCommandIcon=Jg;exports.StyledCommandIconImage=Qg;exports.StyledCommandList=Hg;exports.StyledCommandListItem=zg;exports.StyledCommandListParent=Wg;exports.StyledCommandMenuIconSection=Yg;exports.StyledCommandTextWrap=Gg;exports.StyledDragDotsIcon=Zg;exports.StyledDragIconWrap=Kg;exports.StyledDroppableContainer=jg;exports.StyledEditActionWrap=t2;exports.StyledEditParamContainer=e2;exports.StyledIndicatorLine=i2;exports.StyledInfo=Hu;exports.StyledKeyWorkdContent=Lu;exports.StyledMainHeaderSummary=Vu;exports.StyledMainPage=Vg;exports.StyledOverlayBox=qg;exports.StyledParamListDropdown=n2;exports.StyledParamListItem=r2;exports.StyledRecoderFooter=Xg;exports.StyledSingleEditInput=Uu;exports.StyledSingleLineHeading=$u;exports.StyledStepContainer=Lg;exports.StyledStepIcon=Nu;exports.StyledStepIconContainer=Ou;exports.StyledStepPanelContainer=$g;exports.StyledStepPanelHeader=_u;exports.StyledStepPanelListWrap=Ug;exports.StyledStepTitle=ju;exports.StyledStepTitleWrap=zu;exports.StyledStepWrap=Iu;exports.TextAreaNotchIcon=_l;exports.Tooltip=Ho;exports.Transitioner=Ih;exports.Trash2Icon=No;exports.TypographyCustom=pt;exports.UIThemeProvider=d6;exports.XIcon=ti;exports.extractAndSplitQuotedParts=f2;exports.fullStepKeywords=p2;exports.isParam=Xr;exports.isTextLarge=p6;exports.parseGherkin=x2;exports.preventedKeys=d2;exports.stepKeywords=h2;exports.stringifyGherkin=m2;exports.textShortner=h6;
|
package/dist/index.mjs
CHANGED
|
@@ -18752,7 +18752,7 @@ function p3({
|
|
|
18752
18752
|
children: [
|
|
18753
18753
|
A(),
|
|
18754
18754
|
/* @__PURE__ */ E.jsxs(s6, { children: [
|
|
18755
|
-
/* @__PURE__ */ E.jsx(c6, { children:
|
|
18755
|
+
/* @__PURE__ */ E.jsx(c6, { children: x.title }),
|
|
18756
18756
|
/* @__PURE__ */ E.jsxs(l6, { children: [
|
|
18757
18757
|
"Step ",
|
|
18758
18758
|
t + 1,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dev-blinq/ui-systems",
|
|
3
3
|
"description": "this package contains all ui components like button, input, checkbox, colors that blinq.io needs",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.122",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|