forstok-ui-lib 5.0.0 → 5.0.1

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.mjs CHANGED
@@ -632,7 +632,32 @@ import e,{useState as t,useEffect as n,useRef as r,useLayoutEffect as i,isValidE
632
632
  ${({$width:e})=>{if(e)return l`
633
633
  max-width: ${e};
634
634
  `}}
635
- `;let Gi;const Vi=e=>{var{children:t,body:i,mode:s,height:l,width:c,isOpen:h,evTooglePopup:u}=e,p=d(e,["children","body","mode","height","width","isOpen","evTooglePopup"]);const[f,m]=Ce.useStateWithCallbackLazy(!1),A=r(null),g=o((e=>{Gi=setTimeout((()=>{m(e,(()=>{const e=A&&A.current?A.current:null;e&&(e.scrollTop=0)})),clearTimeout(Gi)}),1)}),[m]),B=r({init:()=>{g(h)}});n((()=>{const{init:e}=B.current;return e(),()=>{clearTimeout(Gi)}}),[]),n((()=>{g(h)}),[h,g]);let b=[...t];const C=(null==b?void 0:b.filter((e=>a(e)&&"head"===e.props["aria-label"])))||null,x=(null==b?void 0:b.filter((e=>a(e)&&"sub-head"===e.props["aria-label"])))||null,w=(null==b?void 0:b.filter((e=>a(e)&&"body"===e.props["aria-label"])))||null,v=(null==b?void 0:b.filter((e=>a(e)&&"foot"===e.props["aria-label"])))||null,y=(null==b?void 0:b.filter((e=>a(e)&&"left-foot"===e.props["aria-label"])))||null,k=x.length?F.jsx("aside",{children:x[0]&&a(x[0])?x[0].props.children:null}):null,E=C.length&&C[0]&&a(C[0])?C[0].props["data-qa-id"]:"";return F.jsxs(ji,{$isOpen:h,children:[F.jsx(Mi,{}),F.jsx(zi,Object.assign({ref:A},p["data-qa-id"]&&{"data-qa-id":p["data-qa-id"]},{children:"question"===s?F.jsx(Xi,{$isOpen:f,children:F.jsxs(Hi,{$width:c,children:[F.jsx(oe,{$name:"warning",$width:"30px"}),F.jsxs(Yi,{$mode:s,children:[C.length?F.jsx(Wi,{children:C[0]&&a(C[0])?C[0].props.children:null}):null,k,v.length?F.jsx(Ui,{children:v[0]&&a(v[0])?F.jsx("aside",{"data-type":v[0].props.type||"",children:v[0].props.children}):null}):null]})]})}):F.jsxs(F.Fragment,{children:[F.jsx(Yi,{$width:c,$isOpen:f,$mode:s,children:C.length?F.jsxs(F.Fragment,{children:[F.jsx(K,{$mode:"round-close",onClick:u}),F.jsx(Wi,{"data-qa-id":E,children:C[0]&&a(C[0])&&C[0].props.children})]}):null}),F.jsxs(Xi,{$width:c,$isOpen:f,$withHeader:!!C.length,children:[k,w.length?F.jsx(Qi,{$mode:i,$width:c,$height:l,children:w[0]&&a(w[0])&&w[0].props.children}):null,v.length?F.jsxs(Ui,{$isLeft:!!y.length,children:[F.jsx("aside",{children:y&&y.length&&y[0]&&a(y[0])?y[0].props.children:null}),v[0]&&a(v[0])?F.jsxs("aside",{"data-type":v[0].props.type||"",children:[s&&"info"===s?F.jsx(K,{$mode:"white",$size:"small",onClick:u,children:"Close"}):F.jsx(K,{$mode:"white",$size:"small",onClick:u,"data-qa-id":"popup-button-cancel",children:"Cancel"}),v[0].props.children]}):null]}):null]})]})}))]})},Ri=s.section`
635
+ `;let Gi;const Vi=e=>{var{children:t,body:i,mode:s,height:l,width:c,isOpen:h,evTooglePopup:u}=e,p=d(e,["children","body","mode","height","width","isOpen","evTooglePopup"]);const[f,m]=Ce.useStateWithCallbackLazy(!1),A=r(null),g=o((e=>{Gi=setTimeout((()=>{m(e,(()=>{const e=A&&A.current?A.current:null;e&&(e.scrollTop=0)})),clearTimeout(Gi)}),1)}),[m]),B=r({init:()=>{g(h)}});n((()=>{const{init:e}=B.current;return e(),()=>{clearTimeout(Gi)}}),[]),n((()=>{g(h)}),[h,g]);let b=[...t];const C=(null==b?void 0:b.filter((e=>a(e)&&"head"===e.props["aria-label"])))||null,x=(null==b?void 0:b.filter((e=>a(e)&&"sub-head"===e.props["aria-label"])))||null,w=(null==b?void 0:b.filter((e=>a(e)&&"body"===e.props["aria-label"])))||null,v=(null==b?void 0:b.filter((e=>a(e)&&"foot"===e.props["aria-label"])))||null,y=(null==b?void 0:b.filter((e=>a(e)&&"left-foot"===e.props["aria-label"])))||null,k=x.length?F.jsx("aside",{children:x[0]&&a(x[0])?x[0].props.children:null}):null,E=C.length&&C[0]&&a(C[0])?C[0].props["data-qa-id"]:"";return F.jsxs(ji,{$isOpen:h,children:[F.jsx(Mi,{}),F.jsx(zi,Object.assign({ref:A},p["data-qa-id"]&&{"data-qa-id":p["data-qa-id"]},{children:"question"===s?F.jsx(Xi,{$isOpen:f,children:F.jsxs(Hi,{$width:c,children:[F.jsx(oe,{$name:"warning",$width:"30px"}),F.jsxs(Yi,{$mode:s,children:[C.length?F.jsx(Wi,{children:C[0]&&a(C[0])?C[0].props.children:null}):null,k,v.length?F.jsx(Ui,{children:v[0]&&a(v[0])?F.jsx("aside",{"data-type":v[0].props.type||"",children:v[0].props.children}):null}):null]})]})}):F.jsxs(F.Fragment,{children:[F.jsx(Yi,{$width:c,$isOpen:f,$mode:s,children:C.length?F.jsxs(F.Fragment,{children:[F.jsx(K,{$mode:"round-close",onClick:u}),F.jsx(Wi,{"data-qa-id":E,children:C[0]&&a(C[0])&&C[0].props.children})]}):null}),F.jsxs(Xi,{$width:c,$isOpen:f,$withHeader:!!C.length,children:[k,w.length?F.jsx(Qi,{$mode:i,$width:c,$height:l,children:w[0]&&a(w[0])&&w[0].props.children}):null,v.length?F.jsxs(Ui,{$isLeft:!!y.length,children:[F.jsx("aside",{children:y&&y.length&&y[0]&&a(y[0])?y[0].props.children:null}),v[0]&&a(v[0])?F.jsxs("aside",{"data-type":v[0].props.type||"",children:[s&&"info"===s?F.jsx(K,{$mode:"white",$size:"small",onClick:u,children:"Close"}):F.jsx(K,{$mode:"white",$size:"small",onClick:u,"data-qa-id":"popup-button-cancel",children:"Cancel"}),v[0].props.children]}):null]}):null]})]})}))]})},Ri=l`
636
+ display: grid;
637
+ grid-row-gap: 12px;
638
+ grid-column-gap: 16px;
639
+ width: 100%;
640
+ margin-bottom: 12px;
641
+ align-items: start;
642
+ `,Ji=s.form.attrs((e=>({name:e.name||"form",autoComplete:e.autoComplete||"off"})))`
643
+ display: inline-grid;
644
+ grid-auto-flow: row;
645
+ grid-gap: 25px;
646
+ width: 100%;
647
+ height: 100%;
648
+ [class*='singleValue'] {
649
+ width: 100%;
650
+ color: var(--inp-clr);
651
+ ._refLabel {
652
+ top: 5.5px;
653
+ right: 0;
654
+ }
655
+ }
656
+ ${({name:e})=>{let t="";return"invoiceForm"===e&&(t+="\n grid-gap: 15px;\n "),t}}
657
+ `,Ki=s.section`
658
+ ${Ri}
659
+ ${({$width:e})=>{let t="";return e&&(t+=` \n @media (min-width: 768px) {\n width: ${e}; \n }\n `),t}}
660
+ `,Zi=s.section`
636
661
  position: relative;
637
662
  height: 100%;
638
663
  padding-top: 20px;
@@ -647,12 +672,12 @@ import e,{useState as t,useEffect as n,useRef as r,useLayoutEffect as i,isValidE
647
672
  padding: 20px 2em 0;
648
673
  height: 100%;
649
674
  }
650
- `,Ji=s.section`
675
+ `,$i=s.section`
651
676
  position: relative;
652
677
  &:first-child {
653
678
  margin-top: -4px;
654
679
  }
655
- `,Ki=s.section`
680
+ `,_i=s.section`
656
681
  ${v}
657
682
  position: relative;
658
683
  min-height: 1px;
@@ -665,7 +690,7 @@ import e,{useState as t,useEffect as n,useRef as r,useLayoutEffect as i,isValidE
665
690
  ${({$mode:e})=>{if("full"===e)return l`
666
691
  width: 100%;
667
692
  `}}
668
- `,Zi=s.h1`
693
+ `,ea=s.h1`
669
694
  font-family: PT Sans;
670
695
  font-size: 22px;
671
696
  color: var(--ter-clr);
@@ -682,7 +707,7 @@ import e,{useState as t,useEffect as n,useRef as r,useLayoutEffect as i,isValidE
682
707
  display: inline !important;
683
708
  }
684
709
  }
685
- `,$i=s.aside`
710
+ `,ta=s.aside`
686
711
  display: grid;
687
712
  grid-auto-flow: column;
688
713
  grid-gap: 8px;
@@ -699,7 +724,7 @@ import e,{useState as t,useEffect as n,useRef as r,useLayoutEffect as i,isValidE
699
724
  @media only screen and (min-width: 1366px) {
700
725
  right: 20px;
701
726
  }
702
- `,_i=s.section`
727
+ `,na=s.section`
703
728
  width: 100%;
704
729
  ${({$mode:e})=>"master-listing"===e?l`
705
730
  padding: 0 16px;
@@ -711,7 +736,7 @@ import e,{useState as t,useEffect as n,useRef as r,useLayoutEffect as i,isValidE
711
736
  padding-top: 12px;
712
737
  }
713
738
  `:void 0}
714
- `,ea=s.div`
739
+ `,ra=s.div`
715
740
  padding-top: 16px;
716
741
  &._refNoTab {
717
742
  padding-top: 9px;
@@ -723,7 +748,7 @@ import e,{useState as t,useEffect as n,useRef as r,useLayoutEffect as i,isValidE
723
748
  padding-top: 24px;
724
749
  }
725
750
  ${({$mode:e})=>{let t="";return"list"===e?t+=" \n min-height: 750px;\n @media only screen and (min-width: 1280px) {\n min-height: 600px;\n }\n ":"clear"===e&&(t+="\n padding-top: 9px;\n @media only screen and (min-width: 768px) {\n padding-top: 11px;\n }\n "),t}}
726
- `,ta=s.section`
751
+ `,ia=s.section`
727
752
  position: relative;
728
753
  > section,
729
754
  > article {
@@ -737,7 +762,7 @@ import e,{useState as t,useEffect as n,useRef as r,useLayoutEffect as i,isValidE
737
762
  > article {
738
763
  height: calc(100vh - 50px);
739
764
  }
740
- `,na=s.div`
765
+ `,aa=s.div`
741
766
  display: inline-grid;
742
767
  grid-auto-flow: column;
743
768
  grid-template-columns: minmax(140px, 150px) minmax(140px, 1fr);
@@ -757,5 +782,5 @@ import e,{useState as t,useEffect as n,useRef as r,useLayoutEffect as i,isValidE
757
782
  overflow-wrap: break-word;
758
783
  word-break: break-word;
759
784
  }
760
- `;export{K as ButtonComponent,G as CheckboxComponent,Be as DropdownComponent,ta as FoContainer,$i as HeaderContainer,oe as IconComponent,na as InfoGroup,Y as InputComponent,ee as LabelComponent,M as LinkComponent,Ji as ListContainer,re as LoadingComponent,Se as MessageComponent,qi as MessageQuestionComponent,Ri as PanelContainer,Ki as PanelWrapper,Vi as PopupComponent,se as ReactPortalComponent,_i as TabsContainer,ea as TabsContent,x as TextComponent,Zi as Title,D as boxBase,w as clearList,I as dropBase,y as elipsis,L as formLabel,S as headTable,k as multiElipsis,v as responseWidth,E as thirdElipsis};
785
+ `;export{K as ButtonComponent,G as CheckboxComponent,Be as DropdownComponent,ia as FoContainer,Ji as FormContainer,ta as HeaderContainer,oe as IconComponent,aa as InfoGroup,Y as InputComponent,ee as LabelComponent,M as LinkComponent,$i as ListContainer,re as LoadingComponent,Se as MessageComponent,qi as MessageQuestionComponent,Zi as PanelContainer,_i as PanelWrapper,Vi as PopupComponent,se as ReactPortalComponent,Ki as SingleFormContainer,na as TabsContainer,ra as TabsContent,x as TextComponent,ea as Title,D as boxBase,w as clearList,I as dropBase,y as elipsis,L as formLabel,S as headTable,k as multiElipsis,v as responseWidth,E as thirdElipsis};
761
786
  //# sourceMappingURL=index.mjs.map