aleon_35_pdf_ui_lib
Advanced tools
Comparing version 1.0.68 to 1.0.70
@@ -1,1 +0,1 @@ | ||
!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("preact")):"function"==typeof define&&define.amd?define(["preact"],e):"object"==typeof exports?exports.PdfUiLibrary=e(require("preact")):n.PdfUiLibrary=e(n.preact)}(self,(n=>(()=>{"use strict";var e={840:(n,e,t)=>{t.d(e,{Z:()=>c});var o=t(81),r=t.n(o),a=t(645),i=t.n(a)()(r());i.push([n.id,".JGOZEl16KDnhjwZOounc {\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: pointer;\n padding: 10px;\n background-color: #f1f1f1;\n}\n\n.rMqW2zQrdtY1ymHtUP_p {\n display: none;\n padding: 10px;\n border-top: 1px solid #ddd;\n}\n\n.rMqW2zQrdtY1ymHtUP_p.IyQNCxi2JxGoUDJsQ3To {\n display: block;\n}\n\n.i0S_dx1PXaqY8NOUGzfb {\n transition: transform 0.3s ease;\n}\n\n.i0S_dx1PXaqY8NOUGzfb.IyQNCxi2JxGoUDJsQ3To {\n transform: rotate(180deg);\n}",""]),i.locals={accordionBar:"JGOZEl16KDnhjwZOounc",content:"rMqW2zQrdtY1ymHtUP_p",open:"IyQNCxi2JxGoUDJsQ3To",chevronIcon:"i0S_dx1PXaqY8NOUGzfb"};const c=i},938:(n,e,t)=>{t.d(e,{Z:()=>c});var o=t(81),r=t.n(o),a=t(645),i=t.n(a)()(r());i.push([n.id,"\n.MCSqMJs2SXm4CvlK5rQg {\n opacity: 0.5;\n pointer-events: none;\n}\n\n.b7xQ6Sz23JoFM3NDI1yO {\n border: none;\n text-align: center;\n text-decoration: none;\n display: inline-block;\n font-size: 16px;\n margin: 4px 2px;\n cursor: pointer;\n border-radius: 4px;\n}",""]),i.locals={disabled:"MCSqMJs2SXm4CvlK5rQg",customButton:"b7xQ6Sz23JoFM3NDI1yO"};const c=i},958:(n,e,t)=>{t.d(e,{Z:()=>c});var o=t(81),r=t.n(o),a=t(645),i=t.n(a)()(r());i.push([n.id,'.WEqeRKtKFvYngiHmkfA0 {\n display: flex;\n align-items: center;\n position: relative;\n width: fit-content;\n font-family: "Lato", sans-serif;\n margin: 5px 0; /* Optional, adds some spacing between checkboxes */\n}\n\n.rUvgAvf9JZd2m9GV0ttq {\n appearance: none;\n width: 20px; /* Adjust size as needed */\n height: 20px; /* Adjust size as needed */\n border: 1px solid #ccc;\n border-radius: 4px;\n background-color: #fff;\n margin-right: 10px; /* Optional, adds some spacing between checkbox and label */\n cursor: pointer; /* Makes it clear that the checkbox is clickable */\n position: relative;\n}\n\n.rUvgAvf9JZd2m9GV0ttq:checked {\n background-color: #007bff; /* Background color when checked */\n}\n\n.rUvgAvf9JZd2m9GV0ttq:checked::after {\n content: "";\n position: absolute;\n left: 45%; /* Center the checkmark */\n top: 30%; /* Center the checkmark */\n transform: translate(-40%, -40%) rotate(45deg); /* Center and rotate */\n width: 6px;\n height: 12px;\n border: solid white;\n border-width: 0 2px 2px 0; /* Creates the checkmark */\n}',""]),i.locals={checkboxContainer:"WEqeRKtKFvYngiHmkfA0",checkboxStyle:"rUvgAvf9JZd2m9GV0ttq"};const c=i},875:(n,e,t)=>{t.d(e,{Z:()=>c});var o=t(81),r=t.n(o),a=t(645),i=t.n(a)()(r());i.push([n.id,'.byHo_6akp8iCkyfWpmAG {\n font-weight: bold;\n font-size: 16px;\n margin-right: 10px;\n}\n\n.q5hH3yrQOkVJnw7uo98p:focus,\ninput[type="number"]:focus {\n border-color: #007bff;\n}\n\n.TdOmzhCfN24fHJm8MZqg {\n display: flex;\n align-items: center;\n position: relative;\n width: fit-content;\n}\n\n.EzjabeS7XCtFkF6g7WGi {\n position: relative;\n display: inline-block;\n}\n\n.q5hH3yrQOkVJnw7uo98p,\ninput[type="number"] {\n appearance: none; /* Remove the default styling */\n padding: 10px 10px 10px 10px; /* Add padding to the right to make space for the icon */\n border: 1px solid #ccc;\n border-radius: 4px;\n background-color: #fff;\n}\n\n.Xt0DnFbf71tmeoBHaT3n {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n pointer-events: none; /* Make it non-clickable */\n}',""]),i.locals={labelStyle:"byHo_6akp8iCkyfWpmAG",selectStyle:"q5hH3yrQOkVJnw7uo98p",selectContainer:"TdOmzhCfN24fHJm8MZqg",selectWrapper:"EzjabeS7XCtFkF6g7WGi",chevronIcon:"Xt0DnFbf71tmeoBHaT3n"};const c=i},207:(n,e,t)=>{t.d(e,{Z:()=>c});var o=t(81),r=t.n(o),a=t(645),i=t.n(a)()(r());i.push([n.id,".vtInfWEngrL8ObR4UGa6 {\n font-weight: bold;\n font-size: 16px;\n margin-right: 10px;\n}\n\n.GtZm5KBURjydSGpgGK9f:focus {\n border-color: #007bff;\n}\n\n.GtZm5KBURjydSGpgGK9f optgroup {\n font-weight: bold;\n color: #999;\n}\n\n.x5OZgBPtDAH3QPcw9trA {\n display: flex;\n align-items: center;\n position: relative;\n width: fit-content;\n font-family: 'Lato';\n}\n\n.B272WIB99MWnjhvZEBvc {\n position: relative;\n display: inline-block;\n}\n\n.GtZm5KBURjydSGpgGK9f {\n appearance: none; /* Remove the default styling */\n padding: 10px 30px 10px 10px; /* Add padding to the right to make space for the icon */\n border: 1px solid #ccc;\n border-radius: 4px;\n background-color: #fff;\n}\n\n.Lg_pRAL_O5KSkOj6njEA {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n font-size: 10px;\n pointer-events: none; /* Make it non-clickable */\n}",""]),i.locals={labelStyle:"vtInfWEngrL8ObR4UGa6",selectStyle:"GtZm5KBURjydSGpgGK9f",selectContainer:"x5OZgBPtDAH3QPcw9trA",selectWrapper:"B272WIB99MWnjhvZEBvc",chevronIcon:"Lg_pRAL_O5KSkOj6njEA"};const c=i},975:(n,e,t)=>{t.d(e,{Z:()=>c});var o=t(81),r=t.n(o),a=t(645),i=t.n(a)()(r());i.push([n.id,".g6edoCHfEdciAFuKVbhc {\n width: 100%;\n border-collapse: collapse;\n}\n\n.ji9FVEwrOfqjSCauunDl {\n display: flex;\n align-items: center; /* Center-align the content vertically */\n justify-content: center; /* Center-align the content horizontally (optional) */\n}\n\n.jm8hodcifihiR9lxACXp {\n display: flex;\n}\n\n.Nvyk8ZDyB6xvKFGjut7J,\n.N4365cKmQ7o3ulw0TB6r {\n flex: 1;\n padding: 8px;\n text-align: left;\n}\n\n/* You can use specific classes for different column widths if needed */\n.Nvyk8ZDyB6xvKFGjut7J.DgLTRLanCSYiP7mhT8AB,\n.N4365cKmQ7o3ulw0TB6r.DgLTRLanCSYiP7mhT8AB {\n flex: none;\n}",""]),i.locals={tableContainer:"g6edoCHfEdciAFuKVbhc",column:"ji9FVEwrOfqjSCauunDl",row:"jm8hodcifihiR9lxACXp",columnLeft:"Nvyk8ZDyB6xvKFGjut7J",columnRight:"N4365cKmQ7o3ulw0TB6r",customWidth:"DgLTRLanCSYiP7mhT8AB"};const c=i},645:n=>{n.exports=function(n){var e=[];return e.toString=function(){return this.map((function(e){var t="",o=void 0!==e[5];return e[4]&&(t+="@supports (".concat(e[4],") {")),e[2]&&(t+="@media ".concat(e[2]," {")),o&&(t+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),t+=n(e),o&&(t+="}"),e[2]&&(t+="}"),e[4]&&(t+="}"),t})).join("")},e.i=function(n,t,o,r,a){"string"==typeof n&&(n=[[null,n,void 0]]);var i={};if(o)for(var c=0;c<this.length;c++){var l=this[c][0];null!=l&&(i[l]=!0)}for(var s=0;s<n.length;s++){var d=[].concat(n[s]);o&&i[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),t&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=t):d[2]=t),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),e.push(d))}},e}},81:n=>{n.exports=function(n){return n[1]}},379:n=>{var e=[];function t(n){for(var t=-1,o=0;o<e.length;o++)if(e[o].identifier===n){t=o;break}return t}function o(n,o){for(var a={},i=[],c=0;c<n.length;c++){var l=n[c],s=o.base?l[0]+o.base:l[0],d=a[s]||0,p="".concat(s," ").concat(d);a[s]=d+1;var u=t(p),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==u)e[u].references++,e[u].updater(f);else{var m=r(f,o);o.byIndex=c,e.splice(c,0,{identifier:p,updater:m,references:1})}i.push(p)}return i}function r(n,e){var t=e.domAPI(e);return t.update(n),function(e){if(e){if(e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap&&e.supports===n.supports&&e.layer===n.layer)return;t.update(n=e)}else t.remove()}}n.exports=function(n,r){var a=o(n=n||[],r=r||{});return function(n){n=n||[];for(var i=0;i<a.length;i++){var c=t(a[i]);e[c].references--}for(var l=o(n,r),s=0;s<a.length;s++){var d=t(a[s]);0===e[d].references&&(e[d].updater(),e.splice(d,1))}a=l}}},569:n=>{var e={};n.exports=function(n,t){var o=function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(n){t=null}e[n]=t}return e[n]}(n);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}},216:n=>{n.exports=function(n){var e=document.createElement("style");return n.setAttributes(e,n.attributes),n.insert(e,n.options),e}},565:(n,e,t)=>{n.exports=function(n){var e=t.nc;e&&n.setAttribute("nonce",e)}},795:n=>{n.exports=function(n){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=n.insertStyleElement(n);return{update:function(t){!function(n,e,t){var o="";t.supports&&(o+="@supports (".concat(t.supports,") {")),t.media&&(o+="@media ".concat(t.media," {"));var r=void 0!==t.layer;r&&(o+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),o+=t.css,r&&(o+="}"),t.media&&(o+="}"),t.supports&&(o+="}");var a=t.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(o,n,e.options)}(e,n,t)},remove:function(){!function(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n)}(e)}}}},589:n=>{n.exports=function(n,e){if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},203:e=>{e.exports=n}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={id:n,exports:{}};return e[n](a,a.exports,o),a.exports}o.n=n=>{var e=n&&n.__esModule?()=>n.default:()=>n;return o.d(e,{a:e}),e},o.d=(n,e)=>{for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),o.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},o.nc=void 0;var r={};return(()=>{o.r(r),o.d(r,{Accordion:()=>E,Button:()=>T,Checkbox:()=>y,Icon:()=>C,NumberInput:()=>Z,Select:()=>k,Table:()=>z});var n=o(379),e=o.n(n),t=o(795),a=o.n(t),i=o(569),c=o.n(i),l=o(565),s=o.n(l),d=o(216),p=o.n(d),u=o(589),f=o.n(u),m=o(958),h={};h.styleTagTransform=f(),h.setAttributes=s(),h.insert=c().bind(null,"head"),h.domAPI=a(),h.insertStyleElement=p(),e()(m.Z,h);const g=m.Z&&m.Z.locals?m.Z.locals:void 0;var v=o(203),y=function(n){var e=n.label,t=n.checked,o=n.onChange;return(0,v.h)("div",{className:g.checkboxContainer},(0,v.h)("input",{type:"checkbox",id:"custom-checkbox-".concat(e),onChange:o,checked:t,className:g.checkboxStyle}),!!e&&(0,v.h)("label",{htmlFor:"custom-checkbox-".concat(e),className:g.labelStyle},e))};y.defaultProps={label:null,checked:!1,onChange:void 0};var b=o(207),x={};x.styleTagTransform=f(),x.setAttributes=s(),x.insert=c().bind(null,"head"),x.domAPI=a(),x.insertStyleElement=p(),e()(b.Z,x);const I=b.Z&&b.Z.locals?b.Z.locals:void 0,M="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+Cjxzdmcgd2lkdGg9IjgwMHB4IiBoZWlnaHQ9IjgwMHB4IiB2aWV3Qm94PSIwIC01IDI0IDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOnNrZXRjaD0iaHR0cDovL3d3dy5ib2hlbWlhbmNvZGluZy5jb20vc2tldGNoL25zIj4KICAgIAogICAgPHRpdGxlPmNoZXZyb24tZG93bjwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoIEJldGEuPC9kZXNjPgogICAgPGRlZnM+Cgo8L2RlZnM+CiAgICA8ZyBvcGFjaXR5PSIwLjUiIGlkPSJQYWdlLTEiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLXdpZHRoPSI0IiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHNrZXRjaDp0eXBlPSJNU1BhZ2UiPgogICAgICAgIDxnIGlkPSJJY29uLVNldCIgc2tldGNoOnR5cGU9Ik1TTGF5ZXJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTU3Mi4wMDAwMDAsIC0xMjAwLjAwMDAwMCkiIGZpbGw9IiMwMDAwMDAiPgogICAgICAgICAgICA8cGF0aCBkPSJNNTk1LjY4OCwxMjAwLjI4IEM1OTUuMjk1LDExOTkuODkgNTk0LjY1OSwxMTk5Ljg5IDU5NC4yNjgsMTIwMC4yOCBMNTgzLjk4NCwxMjExLjU3IEw1NzMuNzAyLDEyMDAuMjggQzU3My4zMSwxMTk5Ljg5IDU3Mi42NzQsMTE5OS44OSA1NzIuMjgyLDEyMDAuMjggQzU3MS44OSwxMjAwLjY4IDU3MS44OSwxMjAxLjMyIDU3Mi4yODIsMTIwMS43MSBMNTgzLjIyNSwxMjEzLjcyIEM1ODMuNDM0LDEyMTMuOTMgNTgzLjcxMSwxMjE0LjAyIDU4My45ODQsMTIxNCBDNTg0LjI1OCwxMjE0LjAyIDU4NC41MzUsMTIxMy45MyA1ODQuNzQ1LDEyMTMuNzIgTDU5NS42ODgsMTIwMS43MSBDNTk2LjA3OSwxMjAxLjMyIDU5Ni4wNzksMTIwMC42OCA1OTUuNjg4LDEyMDAuMjgiIGlkPSJjaGV2cm9uLWRvd24iIHNrZXRjaDp0eXBlPSJNU1NoYXBlR3JvdXAiPgoKPC9wYXRoPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+";var C=function(n){var e=n.src,t=n.alt,o=n.size,r=n.onClick,a=28;return"sm"===o&&(a=8),(0,v.h)("img",{onClick:r,style:{display:"flex",cursor:"pointer",width:a,height:a},src:e,alt:t})},k=function(n){var e=n.options,t=n.value,o=n.onChange,r=n.width,a=void 0===r?"auto":r;return(0,v.h)("div",{className:I.selectContainer},(0,v.h)("select",{onChange:o,value:t,className:I.selectStyle,style:{width:a}},e.map((function(n,e){return"string"==typeof n?(0,v.h)("option",{key:e,value:n},n):(0,v.h)("optgroup",{key:e,label:n.label},n.options.map((function(n,e){return(0,v.h)("option",{key:e,value:n},n)})))}))),(0,v.h)("div",{className:I.chevronIcon},(0,v.h)(C,{size:"sm",src:M,alt:"Arrow left"})))},w=o(875),A={};A.styleTagTransform=f(),A.setAttributes=s(),A.insert=c().bind(null,"head"),A.domAPI=a(),A.insertStyleElement=p(),e()(w.Z,A);const j=w.Z&&w.Z.locals?w.Z.locals:void 0;var Z=function(n){var e=n.placeholder,t=n.value,o=n.onChange,r=n.min,a=n.max,i=n.step,c=n.width,l=void 0===c?"auto":c;return(0,v.h)("div",{className:j.selectContainer},(0,v.h)("input",{type:"number",placeholder:e,onChange:o,value:t,className:j.selectStyle,min:r,max:a,step:i,style:{width:l}}))},S=o(938),N={};N.styleTagTransform=f(),N.setAttributes=s(),N.insert=c().bind(null,"head"),N.domAPI=a(),N.insertStyleElement=p(),e()(S.Z,N);const G=S.Z&&S.Z.locals?S.Z.locals:void 0;var T=function(n){var e,t,o=n.loading,r=void 0!==o&&o,a=n.children,i=n.size,c=void 0===i?"lg":i,l=n.variant,s=void 0===l?"primary":l,d=n.onClick;switch(c){case"sm":e="8px 16px",t="14px";break;case"md":e="12px 16px",t="16px";break;default:e="15px 32px",t="16px"}return(0,v.h)("label",{onClick:d,className:r?"".concat(G.customButton," ").concat(G.disabled):G.customButton,style:{padding:e,fontSize:t,color:"primary"===s?"white":"#4CAF50",background:"primary"===s?"#4CAF50":"#f1faf7"}},a)},L=o(975),D={};D.styleTagTransform=f(),D.setAttributes=s(),D.insert=c().bind(null,"head"),D.domAPI=a(),D.insertStyleElement=p(),e()(L.Z,D);const O=L.Z&&L.Z.locals?L.Z.locals:void 0;var z=function(n){var e=n.leftColumnWidth,t=n.rightColumnWidth,o=n.rows;return(0,v.h)("div",{className:O.tableContainer},o.map((function(n,o){return(0,v.h)("div",{key:o,className:O.row},(0,v.h)("div",{className:"".concat(O.columnLeft," ").concat(O.column),style:{width:e||"auto",flex:e?"none":"1"}},n.left),(0,v.h)("div",{className:"".concat(O.columnRight," ").concat(O.column),style:{width:t||"auto",flex:t?"none":"1"}},n.right))})))},B=o(840),P={};P.styleTagTransform=f(),P.setAttributes=s(),P.insert=c().bind(null,"head"),P.domAPI=a(),P.insertStyleElement=p(),e()(B.Z,P);const U=B.Z&&B.Z.locals?B.Z.locals:void 0;var E=function(n){var e=n.title,t=n.content,o=n.isOpen,r=n.toggleAccordion;return(0,v.h)("div",null,(0,v.h)("div",{className:U.accordionBar,onClick:r},(0,v.h)("span",null,e),(0,v.h)("div",{className:o?"".concat(U.chevronIcon," ").concat(U.open):U.chevronIcon},(0,v.h)(C,{size:"sm",src:M,alt:"Toggle"}))),(0,v.h)("div",{className:o?"".concat(U.content," ").concat(U.open):U.content},t))}})(),r})())); | ||
!function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("preact")):"function"==typeof define&&define.amd?define(["preact"],e):"object"==typeof exports?exports.PdfUiLibrary=e(require("preact")):n.PdfUiLibrary=e(n.preact)}(self,(n=>(()=>{"use strict";var e={840:(n,e,t)=>{t.d(e,{Z:()=>c});var o=t(81),r=t.n(o),a=t(645),i=t.n(a)()(r());i.push([n.id,".JGOZEl16KDnhjwZOounc {\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: pointer;\n padding: 10px;\n background-color: #f1f1f1;\n}\n\n.rMqW2zQrdtY1ymHtUP_p {\n display: none;\n padding: 10px;\n border-top: 1px solid #ddd;\n}\n\n.rMqW2zQrdtY1ymHtUP_p.IyQNCxi2JxGoUDJsQ3To {\n display: block;\n}\n\n.i0S_dx1PXaqY8NOUGzfb {\n transition: transform 0.3s ease;\n}\n\n.i0S_dx1PXaqY8NOUGzfb.IyQNCxi2JxGoUDJsQ3To {\n transform: rotate(180deg);\n}",""]),i.locals={accordionBar:"JGOZEl16KDnhjwZOounc",content:"rMqW2zQrdtY1ymHtUP_p",open:"IyQNCxi2JxGoUDJsQ3To",chevronIcon:"i0S_dx1PXaqY8NOUGzfb"};const c=i},938:(n,e,t)=>{t.d(e,{Z:()=>c});var o=t(81),r=t.n(o),a=t(645),i=t.n(a)()(r());i.push([n.id,"\n.MCSqMJs2SXm4CvlK5rQg {\n opacity: 0.5;\n pointer-events: none;\n}\n\n.b7xQ6Sz23JoFM3NDI1yO {\n border: none;\n text-align: center;\n text-decoration: none;\n display: inline-block;\n font-size: 16px;\n margin: 4px 2px;\n cursor: pointer;\n border-radius: 4px;\n}",""]),i.locals={disabled:"MCSqMJs2SXm4CvlK5rQg",customButton:"b7xQ6Sz23JoFM3NDI1yO"};const c=i},958:(n,e,t)=>{t.d(e,{Z:()=>c});var o=t(81),r=t.n(o),a=t(645),i=t.n(a)()(r());i.push([n.id,'.WEqeRKtKFvYngiHmkfA0 {\n display: flex;\n align-items: center;\n position: relative;\n width: fit-content;\n font-family: "Lato", sans-serif;\n margin: 5px 0; /* Optional, adds some spacing between checkboxes */\n}\n\n.rUvgAvf9JZd2m9GV0ttq {\n appearance: none;\n width: 20px; /* Adjust size as needed */\n height: 20px; /* Adjust size as needed */\n border: 1px solid #ccc;\n border-radius: 4px;\n background-color: #fff;\n margin-right: 10px; /* Optional, adds some spacing between checkbox and label */\n cursor: pointer; /* Makes it clear that the checkbox is clickable */\n position: relative;\n}\n\n.rUvgAvf9JZd2m9GV0ttq:checked {\n background-color: #007bff; /* Background color when checked */\n}\n\n.rUvgAvf9JZd2m9GV0ttq:checked::after {\n content: "";\n position: absolute;\n left: 45%; /* Center the checkmark */\n top: 30%; /* Center the checkmark */\n transform: translate(-40%, -40%) rotate(45deg); /* Center and rotate */\n width: 6px;\n height: 12px;\n border: solid white;\n border-width: 0 2px 2px 0; /* Creates the checkmark */\n}',""]),i.locals={checkboxContainer:"WEqeRKtKFvYngiHmkfA0",checkboxStyle:"rUvgAvf9JZd2m9GV0ttq"};const c=i},875:(n,e,t)=>{t.d(e,{Z:()=>c});var o=t(81),r=t.n(o),a=t(645),i=t.n(a)()(r());i.push([n.id,'.byHo_6akp8iCkyfWpmAG {\n font-weight: bold;\n font-size: 16px;\n margin-right: 10px;\n}\n\n.q5hH3yrQOkVJnw7uo98p:focus,\ninput[type="number"]:focus {\n border-color: #007bff;\n}\n\n.TdOmzhCfN24fHJm8MZqg {\n display: flex;\n align-items: center;\n position: relative;\n width: fit-content;\n}\n\n.EzjabeS7XCtFkF6g7WGi {\n position: relative;\n display: inline-block;\n}\n\n.q5hH3yrQOkVJnw7uo98p,\ninput[type="number"] {\n appearance: none; /* Remove the default styling */\n padding: 10px 10px 10px 10px; /* Add padding to the right to make space for the icon */\n border: 1px solid #ccc;\n border-radius: 4px;\n background-color: #fff;\n}\n\n.Xt0DnFbf71tmeoBHaT3n {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n pointer-events: none; /* Make it non-clickable */\n}',""]),i.locals={labelStyle:"byHo_6akp8iCkyfWpmAG",selectStyle:"q5hH3yrQOkVJnw7uo98p",selectContainer:"TdOmzhCfN24fHJm8MZqg",selectWrapper:"EzjabeS7XCtFkF6g7WGi",chevronIcon:"Xt0DnFbf71tmeoBHaT3n"};const c=i},207:(n,e,t)=>{t.d(e,{Z:()=>c});var o=t(81),r=t.n(o),a=t(645),i=t.n(a)()(r());i.push([n.id,".vtInfWEngrL8ObR4UGa6 {\n font-weight: bold;\n font-size: 16px;\n margin-right: 10px;\n}\n\n.GtZm5KBURjydSGpgGK9f:focus {\n border-color: #007bff;\n}\n\n.GtZm5KBURjydSGpgGK9f optgroup {\n font-weight: bold;\n color: #999;\n}\n\n.x5OZgBPtDAH3QPcw9trA {\n display: flex;\n align-items: center;\n position: relative;\n width: fit-content;\n font-family: 'Lato';\n}\n\n.B272WIB99MWnjhvZEBvc {\n position: relative;\n display: inline-block;\n}\n\n.GtZm5KBURjydSGpgGK9f {\n appearance: none; /* Remove the default styling */\n padding: 10px 30px 10px 10px; /* Add padding to the right to make space for the icon */\n border: 1px solid #ccc;\n border-radius: 4px;\n background-color: #fff;\n}\n\n.Lg_pRAL_O5KSkOj6njEA {\n position: absolute;\n right: 10px;\n top: 50%;\n transform: translateY(-50%);\n font-size: 10px;\n pointer-events: none; /* Make it non-clickable */\n}\n\n.x5OZgBPtDAH3QPcw9trA[data-size='md'] .GtZm5KBURjydSGpgGK9f {\n font-size: 16px;\n padding: 10px 30px 10px 10px;\n}\n\n.x5OZgBPtDAH3QPcw9trA[data-size='sm'] .GtZm5KBURjydSGpgGK9f {\n font-size: 14px;\n padding: 5px 25px 5px 5px;\n}",""]),i.locals={labelStyle:"vtInfWEngrL8ObR4UGa6",selectStyle:"GtZm5KBURjydSGpgGK9f",selectContainer:"x5OZgBPtDAH3QPcw9trA",selectWrapper:"B272WIB99MWnjhvZEBvc",chevronIcon:"Lg_pRAL_O5KSkOj6njEA"};const c=i},975:(n,e,t)=>{t.d(e,{Z:()=>c});var o=t(81),r=t.n(o),a=t(645),i=t.n(a)()(r());i.push([n.id,".g6edoCHfEdciAFuKVbhc {\n width: 100%;\n border-collapse: collapse;\n}\n\n.ji9FVEwrOfqjSCauunDl {\n display: flex;\n align-items: center; /* Center-align the content vertically */\n justify-content: center; /* Center-align the content horizontally (optional) */\n}\n\n.jm8hodcifihiR9lxACXp {\n display: flex;\n}\n\n.Nvyk8ZDyB6xvKFGjut7J,\n.N4365cKmQ7o3ulw0TB6r {\n flex: 1;\n padding: 8px;\n text-align: left;\n}\n\n/* You can use specific classes for different column widths if needed */\n.Nvyk8ZDyB6xvKFGjut7J.DgLTRLanCSYiP7mhT8AB,\n.N4365cKmQ7o3ulw0TB6r.DgLTRLanCSYiP7mhT8AB {\n flex: none;\n}",""]),i.locals={tableContainer:"g6edoCHfEdciAFuKVbhc",column:"ji9FVEwrOfqjSCauunDl",row:"jm8hodcifihiR9lxACXp",columnLeft:"Nvyk8ZDyB6xvKFGjut7J",columnRight:"N4365cKmQ7o3ulw0TB6r",customWidth:"DgLTRLanCSYiP7mhT8AB"};const c=i},645:n=>{n.exports=function(n){var e=[];return e.toString=function(){return this.map((function(e){var t="",o=void 0!==e[5];return e[4]&&(t+="@supports (".concat(e[4],") {")),e[2]&&(t+="@media ".concat(e[2]," {")),o&&(t+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),t+=n(e),o&&(t+="}"),e[2]&&(t+="}"),e[4]&&(t+="}"),t})).join("")},e.i=function(n,t,o,r,a){"string"==typeof n&&(n=[[null,n,void 0]]);var i={};if(o)for(var c=0;c<this.length;c++){var l=this[c][0];null!=l&&(i[l]=!0)}for(var s=0;s<n.length;s++){var d=[].concat(n[s]);o&&i[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),t&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=t):d[2]=t),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),e.push(d))}},e}},81:n=>{n.exports=function(n){return n[1]}},379:n=>{var e=[];function t(n){for(var t=-1,o=0;o<e.length;o++)if(e[o].identifier===n){t=o;break}return t}function o(n,o){for(var a={},i=[],c=0;c<n.length;c++){var l=n[c],s=o.base?l[0]+o.base:l[0],d=a[s]||0,p="".concat(s," ").concat(d);a[s]=d+1;var u=t(p),f={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==u)e[u].references++,e[u].updater(f);else{var m=r(f,o);o.byIndex=c,e.splice(c,0,{identifier:p,updater:m,references:1})}i.push(p)}return i}function r(n,e){var t=e.domAPI(e);return t.update(n),function(e){if(e){if(e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap&&e.supports===n.supports&&e.layer===n.layer)return;t.update(n=e)}else t.remove()}}n.exports=function(n,r){var a=o(n=n||[],r=r||{});return function(n){n=n||[];for(var i=0;i<a.length;i++){var c=t(a[i]);e[c].references--}for(var l=o(n,r),s=0;s<a.length;s++){var d=t(a[s]);0===e[d].references&&(e[d].updater(),e.splice(d,1))}a=l}}},569:n=>{var e={};n.exports=function(n,t){var o=function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(n){t=null}e[n]=t}return e[n]}(n);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(t)}},216:n=>{n.exports=function(n){var e=document.createElement("style");return n.setAttributes(e,n.attributes),n.insert(e,n.options),e}},565:(n,e,t)=>{n.exports=function(n){var e=t.nc;e&&n.setAttribute("nonce",e)}},795:n=>{n.exports=function(n){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=n.insertStyleElement(n);return{update:function(t){!function(n,e,t){var o="";t.supports&&(o+="@supports (".concat(t.supports,") {")),t.media&&(o+="@media ".concat(t.media," {"));var r=void 0!==t.layer;r&&(o+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),o+=t.css,r&&(o+="}"),t.media&&(o+="}"),t.supports&&(o+="}");var a=t.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(o,n,e.options)}(e,n,t)},remove:function(){!function(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n)}(e)}}}},589:n=>{n.exports=function(n,e){if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},203:e=>{e.exports=n}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={id:n,exports:{}};return e[n](a,a.exports,o),a.exports}o.n=n=>{var e=n&&n.__esModule?()=>n.default:()=>n;return o.d(e,{a:e}),e},o.d=(n,e)=>{for(var t in e)o.o(e,t)&&!o.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),o.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},o.nc=void 0;var r={};return(()=>{o.r(r),o.d(r,{Accordion:()=>E,Button:()=>T,Checkbox:()=>y,Icon:()=>C,NumberInput:()=>Z,Select:()=>A,Table:()=>O});var n=o(379),e=o.n(n),t=o(795),a=o.n(t),i=o(569),c=o.n(i),l=o(565),s=o.n(l),d=o(216),p=o.n(d),u=o(589),f=o.n(u),m=o(958),g={};g.styleTagTransform=f(),g.setAttributes=s(),g.insert=c().bind(null,"head"),g.domAPI=a(),g.insertStyleElement=p(),e()(m.Z,g);const h=m.Z&&m.Z.locals?m.Z.locals:void 0;var v=o(203),y=function(n){var e=n.label,t=n.checked,o=n.onChange;return(0,v.h)("div",{className:h.checkboxContainer},(0,v.h)("input",{type:"checkbox",id:"custom-checkbox-".concat(e),onChange:o,checked:t,className:h.checkboxStyle}),!!e&&(0,v.h)("label",{htmlFor:"custom-checkbox-".concat(e),className:h.labelStyle},e))};y.defaultProps={label:null,checked:!1,onChange:void 0};var b=o(207),x={};x.styleTagTransform=f(),x.setAttributes=s(),x.insert=c().bind(null,"head"),x.domAPI=a(),x.insertStyleElement=p(),e()(b.Z,x);const I=b.Z&&b.Z.locals?b.Z.locals:void 0,M="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+Cjxzdmcgd2lkdGg9IjgwMHB4IiBoZWlnaHQ9IjgwMHB4IiB2aWV3Qm94PSIwIC01IDI0IDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbG5zOnNrZXRjaD0iaHR0cDovL3d3dy5ib2hlbWlhbmNvZGluZy5jb20vc2tldGNoL25zIj4KICAgIAogICAgPHRpdGxlPmNoZXZyb24tZG93bjwvdGl0bGU+CiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoIEJldGEuPC9kZXNjPgogICAgPGRlZnM+Cgo8L2RlZnM+CiAgICA8ZyBvcGFjaXR5PSIwLjUiIGlkPSJQYWdlLTEiIHN0cm9rZT0iIzAwMDAwMCIgc3Ryb2tlLXdpZHRoPSI0IiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHNrZXRjaDp0eXBlPSJNU1BhZ2UiPgogICAgICAgIDxnIGlkPSJJY29uLVNldCIgc2tldGNoOnR5cGU9Ik1TTGF5ZXJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTU3Mi4wMDAwMDAsIC0xMjAwLjAwMDAwMCkiIGZpbGw9IiMwMDAwMDAiPgogICAgICAgICAgICA8cGF0aCBkPSJNNTk1LjY4OCwxMjAwLjI4IEM1OTUuMjk1LDExOTkuODkgNTk0LjY1OSwxMTk5Ljg5IDU5NC4yNjgsMTIwMC4yOCBMNTgzLjk4NCwxMjExLjU3IEw1NzMuNzAyLDEyMDAuMjggQzU3My4zMSwxMTk5Ljg5IDU3Mi42NzQsMTE5OS44OSA1NzIuMjgyLDEyMDAuMjggQzU3MS44OSwxMjAwLjY4IDU3MS44OSwxMjAxLjMyIDU3Mi4yODIsMTIwMS43MSBMNTgzLjIyNSwxMjEzLjcyIEM1ODMuNDM0LDEyMTMuOTMgNTgzLjcxMSwxMjE0LjAyIDU4My45ODQsMTIxNCBDNTg0LjI1OCwxMjE0LjAyIDU4NC41MzUsMTIxMy45MyA1ODQuNzQ1LDEyMTMuNzIgTDU5NS42ODgsMTIwMS43MSBDNTk2LjA3OSwxMjAxLjMyIDU5Ni4wNzksMTIwMC42OCA1OTUuNjg4LDEyMDAuMjgiIGlkPSJjaGV2cm9uLWRvd24iIHNrZXRjaDp0eXBlPSJNU1NoYXBlR3JvdXAiPgoKPC9wYXRoPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+";var C=function(n){var e=n.src,t=n.alt,o=n.size,r=n.onClick,a=28;return"sm"===o&&(a=8),(0,v.h)("img",{onClick:r,style:{display:"flex",cursor:"pointer",width:a,height:a},src:e,alt:t})},A=function(n){var e=n.options,t=n.value,o=n.onChange,r=n.width,a=void 0===r?"auto":r,i=n.size,c=void 0===i?"md":i;return(0,v.h)("div",{className:I.selectContainer,"data-size":c},(0,v.h)("select",{onChange:o,value:t,className:I.selectStyle,style:{width:a}},e.map((function(n,e){return"string"==typeof n?(0,v.h)("option",{key:e,value:n},n):(0,v.h)("optgroup",{key:e,label:n.label},n.options.map((function(n,e){return(0,v.h)("option",{key:e,value:n},n)})))}))),(0,v.h)("div",{className:I.chevronIcon},(0,v.h)(C,{size:"sm",src:M,alt:"Arrow left"})))},k=o(875),w={};w.styleTagTransform=f(),w.setAttributes=s(),w.insert=c().bind(null,"head"),w.domAPI=a(),w.insertStyleElement=p(),e()(k.Z,w);const j=k.Z&&k.Z.locals?k.Z.locals:void 0;var Z=function(n){var e=n.placeholder,t=n.value,o=n.onChange,r=n.min,a=n.max,i=n.step,c=n.width,l=void 0===c?"auto":c;return(0,v.h)("div",{className:j.selectContainer},(0,v.h)("input",{type:"number",placeholder:e,onChange:o,value:t,className:j.selectStyle,min:r,max:a,step:i,style:{width:l}}))},S=o(938),N={};N.styleTagTransform=f(),N.setAttributes=s(),N.insert=c().bind(null,"head"),N.domAPI=a(),N.insertStyleElement=p(),e()(S.Z,N);const G=S.Z&&S.Z.locals?S.Z.locals:void 0;var T=function(n){var e,t,o=n.loading,r=void 0!==o&&o,a=n.children,i=n.size,c=void 0===i?"lg":i,l=n.variant,s=void 0===l?"primary":l,d=n.onClick;switch(c){case"sm":e="8px 16px",t="14px";break;case"md":e="12px 16px",t="16px";break;default:e="15px 32px",t="16px"}return(0,v.h)("label",{onClick:d,className:r?"".concat(G.customButton," ").concat(G.disabled):G.customButton,style:{padding:e,fontSize:t,color:"primary"===s?"white":"#4CAF50",background:"primary"===s?"#4CAF50":"#f1faf7"}},a)},D=o(975),L={};L.styleTagTransform=f(),L.setAttributes=s(),L.insert=c().bind(null,"head"),L.domAPI=a(),L.insertStyleElement=p(),e()(D.Z,L);const z=D.Z&&D.Z.locals?D.Z.locals:void 0;var O=function(n){var e=n.leftColumnWidth,t=n.rightColumnWidth,o=n.rows;return(0,v.h)("div",{className:z.tableContainer},o.map((function(n,o){return(0,v.h)("div",{key:o,className:z.row},(0,v.h)("div",{className:"".concat(z.columnLeft," ").concat(z.column),style:{width:e||"auto",flex:e?"none":"1"}},n.left),(0,v.h)("div",{className:"".concat(z.columnRight," ").concat(z.column),style:{width:t||"auto",flex:t?"none":"1"}},n.right))})))},B=o(840),P={};P.styleTagTransform=f(),P.setAttributes=s(),P.insert=c().bind(null,"head"),P.domAPI=a(),P.insertStyleElement=p(),e()(B.Z,P);const U=B.Z&&B.Z.locals?B.Z.locals:void 0;var E=function(n){var e=n.title,t=n.content,o=n.isOpen,r=n.toggleAccordion;return(0,v.h)("div",null,(0,v.h)("div",{className:U.accordionBar,onClick:r},(0,v.h)("span",null,e),(0,v.h)("div",{className:o?"".concat(U.chevronIcon," ").concat(U.open):U.chevronIcon},(0,v.h)(C,{size:"sm",src:M,alt:"Toggle"}))),(0,v.h)("div",{className:o?"".concat(U.content," ").concat(U.open):U.content},t))}})(),r})())); |
{ | ||
"name": "aleon_35_pdf_ui_lib", | ||
"version": "1.0.68", | ||
"version": "1.0.70", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/pdf_ui_lib.js", |
@@ -20,3 +20,3 @@ import { Accordion } from '../../index'; // Adjust path as necessary | ||
title: "Accordion Title", | ||
content: <div>Whaddupp</div> | ||
content: <div>Whaddupp</div> | ||
}; | ||
@@ -23,0 +23,0 @@ |
@@ -6,4 +6,4 @@ import { h } from 'preact'; | ||
export const Select = ({ options, value, onChange, width = 'auto' }) => ( | ||
<div className={styles.selectContainer}> | ||
export const Select = ({ options, value, onChange, width = 'auto', size = 'md' }) => ( | ||
<div className={styles.selectContainer} data-size={size}> | ||
<select onChange={onChange} value={value} className={styles.selectStyle} style={{ width }}> | ||
@@ -10,0 +10,0 @@ {options.map((option, index) => |
@@ -28,3 +28,3 @@ import { Select } from '../../index'; | ||
export const Small = { | ||
export const Short = { | ||
args: { | ||
@@ -46,1 +46,11 @@ primary: true, | ||
}; | ||
export const Small = { | ||
args: { | ||
primary: true, | ||
options: orientationOptions, | ||
size: "sm", | ||
width: "200px", | ||
label: 'Add background graphics', | ||
}, | ||
}; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12453863
22699
41