@logrock/pebbles
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -1635,8 +1635,12 @@ var __defProp = Object.defineProperty; | ||
children: [jsx(InputBox, __spreadProps(__spreadValues({}, inputProps), { | ||
onFocus: () => { | ||
onFocus: (e) => { | ||
var _a2; | ||
setFirstFocus(true); | ||
setHasFocus(true); | ||
(_a2 = inputProps == null ? void 0 : inputProps.onFocus) == null ? void 0 : _a2.call(inputProps, e); | ||
}, | ||
onClick: () => { | ||
onClick: (e) => { | ||
var _a2; | ||
setHasFocus(true); | ||
(_a2 = inputProps == null ? void 0 : inputProps.onClick) == null ? void 0 : _a2.call(inputProps, e); | ||
}, | ||
@@ -1643,0 +1647,0 @@ hint: { |
@@ -1,2 +0,2 @@ | ||
var Ko=Object.defineProperty,Qo=Object.defineProperties;var Zo=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var me=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable;var ye=(i,d,p)=>d in i?Ko(i,d,{enumerable:!0,configurable:!0,writable:!0,value:p}):i[d]=p,S=(i,d)=>{for(var p in d||(d={}))me.call(d,p)&&ye(i,p,d[p]);if(U)for(var p of U(d))$e.call(d,p)&&ye(i,p,d[p]);return i},F=(i,d)=>Qo(i,Zo(d));var W=(i,d)=>{var p={};for(var c in i)me.call(i,c)&&d.indexOf(c)<0&&(p[c]=i[c]);if(i!=null&&U)for(var c of U(i))d.indexOf(c)<0&&$e.call(i,c)&&(p[c]=i[c]);return p};(function(i,d){typeof exports=="object"&&typeof module!="undefined"?d(exports,require("styled-breakpoints"),require("styled-components"),require("react"),require("@mdi/js"),require("@mdi/react")):typeof define=="function"&&define.amd?define(["exports","styled-breakpoints","styled-components","react","@mdi/js","@mdi/react"],d):(i=typeof globalThis!="undefined"?globalThis:i||self,d(i["@logrock/pebbles"]={},i["styled-breakpoints"],i.styled,i.React,i.mdijs,i.Icon))})(this,function(i,d,p,c,D,_){"use strict";function I(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var t=I(p),ke=I(c),V=I(_);const h={"50":"#F9FAFB","100":"#F3F4F6","200":"#E5E7EB","300":"#D1D5DB","400":"#9CA3AF","500":"#6B7280","600":"#4B5563","700":"#374151","800":"#1F2937","900":"#111827"},f={"50":"#FDF5E1","100":"#F9E0A5","200":"#F7D586","300":"#F5CB68","400":"#F1B72C","500":"#F1B72C","600":"#E6A50F","700":"#C08A0C","800":"#996E0A","900":"#735307"},we={"50":"#DCE6FD","100":"#B9CCFB","200":"#96B3F8","300":"#729AF6","400":"#4F81F4","500":"#2C67F1","600":"#0E4DE0","700":"#0B3EB3","800":"#092E86","900":"#061F59"},Se={"50":"#F0FDF4","100":"#DCFCE7","200":"#BBF7D0","300":"#86EFAC","400":"#4ADE80","500":"#22C55E","600":"#16A34A","700":"#15803D","800":"#166534","900":"#14532D"},He={"50":"#FEF1DC","100":"#FBD696","200":"#F9C873","300":"#F8BA50","400":"#F6AD2D","500":"#F59E0B","600":"#DF9009","700":"#B27307","800":"#9C6506","900":"#593A04"},b={"50":"#FEF2F2","100":"#FEE2E2","200":"#FECACA","300":"#FCA5A5","400":"#F87171","500":"#EF4444","600":"#DC2626","700":"#B91C1C","800":"#991B1B","900":"#7F1D1D"},B={"0":"#FFFFFF","100":"#000000"},ve={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"52px",lineHeight:"56px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"52px",lineHeight:"56px",tracking:"-0.02em"}},Fe={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"44px",lineHeight:"48px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"52px",lineHeight:"56px",tracking:"-0.02em"}},ze={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"40px",lineHeight:"48px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"36px",lineHeight:"44px",tracking:"-0.02em"}},Be={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"36px",lineHeight:"44px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"32px",lineHeight:"40px",tracking:"-0.02em"}},Ce={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"32px",lineHeight:"40px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"28px",lineHeight:"36px",tracking:"-0.02em"}},Ee={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"28px",lineHeight:"36px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"24px",lineHeight:"32px",tracking:"-0.02em"}},De={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"24px",lineHeight:"32px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"20px",lineHeight:"28px",tracking:"-0.02em"}},Ae={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"20px",lineHeight:"28px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"18px",lineHeight:"24px",tracking:"-0.02em"}},Le={fontFamily:"Archivo, sans-serif",fontSize:"18px",lineHeight:"28px",weights:{normal:400,bold:500,bolder:600}},Oe={fontFamily:"Archivo, sans-serif",fontSize:"16px",lineHeight:"24px",weights:{normal:400,bold:500,bolder:600}},Me={fontFamily:"Archivo, sans-serif",fontSize:"14px",lineHeight:"20px",weights:{normal:400,bold:500,bolder:600}},Re={fontFamily:"Archivo, sans-serif",fontSize:"12px",lineHeight:"20px",weights:{normal:400,bold:500,bolder:600}},je={fontFamily:"Archivo, sans-serif",fontSize:"14px",lineHeight:"20px",weight:600,textTransform:"uppercase"},We={fontFamily:"Archivo, sans-serif",fontSize:"12px",lineHeight:"20px",weight:600,textTransform:"uppercase"},_e={fontFamily:"Archivo, sans-serif",fontSize:"11px",lineHeight:"20px",weight:600,textTransform:"uppercase"},Pe={background:"linear-gradient(98.41deg, #FF5F6D 0%, #FFC371 100%)"},Te={background:"linear-gradient(98.41deg, #16BFFD 0%, #CB3066 100%)"},Xe={background:"linear-gradient(98.41deg, #EECDA3 0%, #EF629F 100%)"},Ne={background:"linear-gradient(98.41deg, #4CA1AF 0%, #C4E0E5 100%)"},Ue={background:"linear-gradient(98.41deg, #F1F2B5 0%, #135058 100%, #135058 100%)"},Ie={background:"linear-gradient(98.41deg, #FF6E7F 0%, #BFE9FF 100%)"},Ge={background:"linear-gradient(98.41deg, #1D2B64 0%, #F8CDDA 100%)"},Je={background:"linear-gradient(98.41deg, #FC00FF 0%, #00B6DE 100%)"},Ve={background:"linear-gradient(98.41deg, #02AAB0 0%, #00CDAC 100%)"},Ye={background:"linear-gradient(98.41deg, #4568DC 0%, #B06AB3 100%)"},g={xxsm:"4px",xsm:"8px",sm:"12px",md:"16px",big:"20px",xbig:"24px",xxbig:"28px",xxxbig:"32px",lg:"40px",xlg:"48px",xxlg:"64px",xxxlg:"80px",huge:"96px",xhuge:"128px",xxhuge:"160px",xxxhuge:"192px"},Y={primary:{background:f["500"],borderColor:f["500"],borderWidth:0,contentColor:B["100"]},secondary:{background:f["200"],borderColor:f["200"],borderWidth:0,contentColor:B["100"]},tertiary:{background:"transparent",borderColor:"transparent",borderWidth:0,contentColor:f["800"]},outlined:{background:"transparent",borderColor:f["500"],borderWidth:"1px",contentColor:f["500"]}},K={primary:{background:b["500"],borderColor:b["500"],borderWidth:0,contentColor:B["0"]},secondary:{background:b["50"],borderColor:b["50"],borderWidth:0,contentColor:b["600"]},tertiary:{background:"transparent",borderColor:"transparent",borderWidth:0,contentColor:b["600"]},outlined:{background:"transparent",borderColor:b["300"],borderWidth:"1px",contentColor:b["500"]}},Q={primary:{background:h["200"],borderColor:h["200"],borderWidth:0,contentColor:h["400"]},secondary:{background:h["200"],borderColor:h["200"],borderWidth:0,contentColor:h["400"]},tertiary:{background:"transparent",borderColor:"transparent",borderWidth:0,contentColor:h["300"]},outlined:{background:"transparent",borderColor:h["400"],borderWidth:"1px",contentColor:h["300"]}},Ke={fontFamily:"Archivo, sans-serif",fontWeight:500,outline:`3px solid ${f[200]}`,regular:{xSmall:{borderRadius:"2px",fontSize:"14px",iconPadding:g.xxsm,horizontalPadding:"10px",verticalPadding:"6px"},small:{borderRadius:"2px",fontSize:"14px",iconPadding:g.xxsm,horizontalPadding:g.md,verticalPadding:g.xsm},medium:{borderRadius:"2px",fontSize:"16px",iconPadding:g.xxsm,horizontalPadding:g.big,verticalPadding:g.xsm},large:{borderRadius:"2px",fontSize:"18px",iconPadding:g.xxsm,horizontalPadding:g.xbig,verticalPadding:"14px"},primary:Y,destructive:K,disabled:Q},icon:{xSmall:{borderRadius:"2px",size:"14px",horizontalPadding:"11px",verticalPadding:"10px"},small:{borderRadius:"2px",size:"14px",horizontalPadding:"13px",verticalPadding:"14px"},medium:{borderRadius:"2px",size:g.md,horizontalPadding:"14px",verticalPadding:g.md},large:{borderRadius:"2px",size:g.md,horizontalPadding:g.md,verticalPadding:"22px"},primary:Y,destructive:K,disabled:Q}},A={xSmall:"0px 1px 2px rgba(16, 24, 40, 0.05)",small:"0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px -1px rgba(16, 24, 40, 0.1)",medium:"0px 4px 6px -1px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.1)",large:"0px 10px 15px -3px rgba(16, 24, 40, 0.1), 0px 4px 6px -4px rgba(16, 24, 40, 0.1)",xLarge:"0px 20px 25px -5px rgba(16, 24, 40, 0.1), 0px 8px 10px -6px rgba(16, 24, 40, 0.1)",xxLarge:"0px 25px 50px -12px rgba(16, 24, 40, 0.25)",upXSmall:"0px -1px 2px rgba(16, 24, 40, 0.05)",upSmall:"0px -1px 3px rgba(16, 24, 40, 0.1), 0px -1px 2px -1px rgba(16, 24, 40, 0.1)",upMedium:"0px -4px 6px -1px rgba(16, 24, 40, 0.1), 0px -2px 4px -2px rgba(16, 24, 40, 0.1)",upLarge:"0px -10px 15px -3px rgba(16, 24, 40, 0.1), 0px -4px 6px -4px rgba(16, 24, 40, 0.1)",upXLarge:"0px -20px 25px -5px rgba(16, 24, 40, 0.1), 0px -8px 10px -6px rgba(16, 24, 40, 0.1)",upXxLarge:"0px -25px 50px -12px rgba(16, 24, 40, 0.25)"},Qe={spacing:g.xxbig,fontFamily:"Archivo",fontWeight:"normal",fontStyle:"normal",fontSize:g.md,lineHeight:g.xbig,fontFeatureSettings:"'salt' on",padding:`10px ${g.sm}`,boxSizing:"border-box",boxShadow:A.xSmall,borderRadius:"2px",border:"1px solid #D1D5DB",margin:`${g.xsm} 0px`,background:"white",height:"50px",width:"100%",error:{color:b[900],border:`1px solid ${b[300]}`,boxShadow:A.xSmall,hintColor:h[500],helperColor:b["600"],focused:{boxSizing:"border-box",boxShadow:`0px 0px 0px ${g.xxsm} ${b["100"]}`,borderRadius:"2px",border:`1px solid ${b["300"]}`}},info:{color:h[900],border:"1px solid #D1D5DB",boxShadow:A.xSmall,hintColor:h[500],helperColor:h[500],focused:{boxSizing:"border-box",boxShadow:`0px 0px 0px 4px ${f["100"]}`,borderRadius:"2px",border:`1px solid ${f["300"]}`}},label:{color:"black",fontStyle:"normal",fontSize:"16px",lineHeight:"24px",fontWeight:500},helper:{fontStyle:"normal",fontSize:"14px",lineHeight:"20px",fontWeight:500,margin:g.xsm},disabled:{boxSizing:"border-box",boxShadow:A.xSmall,borderRadius:"2px",border:`1px solid ${h["300"]}`},hint:{background:"white",top:"1px",right:"2px",margin:"1px 0px"},placeholder:{color:h[400]}},Ze={items:{hover:{background:f["50"]},shadow:"1px 1px 2px rgba(0, 0, 0, 0.3)"}},qe={checkMark:{color:B[0],width:"3px",height:"6px",left:"5px",top:"2px"},width:g.md,height:g.md,marginRight:g.sm,default:{background:B[0],borderColor:h[300],borderWidth:"1px",borderStyle:"solid",borderRadius:"1.33333px"},checked:{background:f["500"],borderColor:f["500"],borderWidth:"1px",borderStyle:"solid",borderRadius:"1.33333px"}},eo={fontFamily:"Archivo",size:"50px",background:"white",loaderColor:{loaderBar:f[500],background:f[50]}},Z={name:"light",breakpoints:{mobile:"1023px",desktop:"1024px"},spacings:g,colors:{neutral:h,primary:f,secondary:we,error:b,success:Se,warning:He,shades:B},typography:{displayLarge:ve,displaySmall:Fe,headingH1:ze,headingH2:Be,headingH3:Ce,headingH4:Ee,headingH5:De,headingH6:Ae,paragraphLarge:Le,paragraphMedium:Oe,paragraphSmall:Me,paragraphXSmall:Re,overlineLarge:je,overlineMedium:We,overlineSmall:_e},shadows:A,blurs:{none:"0",small:"8px",medium:"16px",large:"24px",xLarge:"40px"},gradients:{sunburst:Pe,blueMoon:Ge,blueberryWine:Ye,cherryCola:Xe,coldSky:Ne,darkWineSea:Te,morningSakura:Ie,oliveGarden:Ue,synthwave:Je,teaLeaves:Ve},buttons:Ke,inputBox:Qe,loader:eo,select:Ze,checkBox:qe},oo=F(S({},Z),{name:"dark"}),P=({underlined:e,strikedThrough:o})=>{const r=[];return e&&r.push("underline"),o&&r.push("line-through"),r.join(" ")},ro=t.default.h1` | ||
var Ko=Object.defineProperty,Qo=Object.defineProperties;var Zo=Object.getOwnPropertyDescriptors;var I=Object.getOwnPropertySymbols;var me=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable;var ye=(i,d,g)=>d in i?Ko(i,d,{enumerable:!0,configurable:!0,writable:!0,value:g}):i[d]=g,S=(i,d)=>{for(var g in d||(d={}))me.call(d,g)&&ye(i,g,d[g]);if(I)for(var g of I(d))$e.call(d,g)&&ye(i,g,d[g]);return i},z=(i,d)=>Qo(i,Zo(d));var W=(i,d)=>{var g={};for(var c in i)me.call(i,c)&&d.indexOf(c)<0&&(g[c]=i[c]);if(i!=null&&I)for(var c of I(i))d.indexOf(c)<0&&$e.call(i,c)&&(g[c]=i[c]);return g};(function(i,d){typeof exports=="object"&&typeof module!="undefined"?d(exports,require("styled-breakpoints"),require("styled-components"),require("react"),require("@mdi/js"),require("@mdi/react")):typeof define=="function"&&define.amd?define(["exports","styled-breakpoints","styled-components","react","@mdi/js","@mdi/react"],d):(i=typeof globalThis!="undefined"?globalThis:i||self,d(i["@logrock/pebbles"]={},i["styled-breakpoints"],i.styled,i.React,i.mdijs,i.Icon))})(this,function(i,d,g,c,D,_){"use strict";function P(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var t=P(g),ke=P(c),V=P(_);const f={"50":"#F9FAFB","100":"#F3F4F6","200":"#E5E7EB","300":"#D1D5DB","400":"#9CA3AF","500":"#6B7280","600":"#4B5563","700":"#374151","800":"#1F2937","900":"#111827"},x={"50":"#FDF5E1","100":"#F9E0A5","200":"#F7D586","300":"#F5CB68","400":"#F1B72C","500":"#F1B72C","600":"#E6A50F","700":"#C08A0C","800":"#996E0A","900":"#735307"},we={"50":"#DCE6FD","100":"#B9CCFB","200":"#96B3F8","300":"#729AF6","400":"#4F81F4","500":"#2C67F1","600":"#0E4DE0","700":"#0B3EB3","800":"#092E86","900":"#061F59"},Se={"50":"#F0FDF4","100":"#DCFCE7","200":"#BBF7D0","300":"#86EFAC","400":"#4ADE80","500":"#22C55E","600":"#16A34A","700":"#15803D","800":"#166534","900":"#14532D"},He={"50":"#FEF1DC","100":"#FBD696","200":"#F9C873","300":"#F8BA50","400":"#F6AD2D","500":"#F59E0B","600":"#DF9009","700":"#B27307","800":"#9C6506","900":"#593A04"},u={"50":"#FEF2F2","100":"#FEE2E2","200":"#FECACA","300":"#FCA5A5","400":"#F87171","500":"#EF4444","600":"#DC2626","700":"#B91C1C","800":"#991B1B","900":"#7F1D1D"},C={"0":"#FFFFFF","100":"#000000"},Fe={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"52px",lineHeight:"56px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"52px",lineHeight:"56px",tracking:"-0.02em"}},ve={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"44px",lineHeight:"48px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"52px",lineHeight:"56px",tracking:"-0.02em"}},ze={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"40px",lineHeight:"48px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"36px",lineHeight:"44px",tracking:"-0.02em"}},Be={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"36px",lineHeight:"44px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"32px",lineHeight:"40px",tracking:"-0.02em"}},Ce={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"32px",lineHeight:"40px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"28px",lineHeight:"36px",tracking:"-0.02em"}},Ee={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"28px",lineHeight:"36px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"24px",lineHeight:"32px",tracking:"-0.02em"}},De={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"24px",lineHeight:"32px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"20px",lineHeight:"28px",tracking:"-0.02em"}},Ae={fontFamily:"Archivo, sans-serif",desktop:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"20px",lineHeight:"28px",tracking:"-0.02em"},mobile:{weights:{normal:500,bold:600,bolder:700,boldest:800},fontSize:"18px",lineHeight:"24px",tracking:"-0.02em"}},Le={fontFamily:"Archivo, sans-serif",fontSize:"18px",lineHeight:"28px",weights:{normal:400,bold:500,bolder:600}},Oe={fontFamily:"Archivo, sans-serif",fontSize:"16px",lineHeight:"24px",weights:{normal:400,bold:500,bolder:600}},Me={fontFamily:"Archivo, sans-serif",fontSize:"14px",lineHeight:"20px",weights:{normal:400,bold:500,bolder:600}},Re={fontFamily:"Archivo, sans-serif",fontSize:"12px",lineHeight:"20px",weights:{normal:400,bold:500,bolder:600}},je={fontFamily:"Archivo, sans-serif",fontSize:"14px",lineHeight:"20px",weight:600,textTransform:"uppercase"},We={fontFamily:"Archivo, sans-serif",fontSize:"12px",lineHeight:"20px",weight:600,textTransform:"uppercase"},_e={fontFamily:"Archivo, sans-serif",fontSize:"11px",lineHeight:"20px",weight:600,textTransform:"uppercase"},Te={background:"linear-gradient(98.41deg, #FF5F6D 0%, #FFC371 100%)"},Xe={background:"linear-gradient(98.41deg, #16BFFD 0%, #CB3066 100%)"},Ne={background:"linear-gradient(98.41deg, #EECDA3 0%, #EF629F 100%)"},Ue={background:"linear-gradient(98.41deg, #4CA1AF 0%, #C4E0E5 100%)"},Ie={background:"linear-gradient(98.41deg, #F1F2B5 0%, #135058 100%, #135058 100%)"},Pe={background:"linear-gradient(98.41deg, #FF6E7F 0%, #BFE9FF 100%)"},Ge={background:"linear-gradient(98.41deg, #1D2B64 0%, #F8CDDA 100%)"},Je={background:"linear-gradient(98.41deg, #FC00FF 0%, #00B6DE 100%)"},Ve={background:"linear-gradient(98.41deg, #02AAB0 0%, #00CDAC 100%)"},Ye={background:"linear-gradient(98.41deg, #4568DC 0%, #B06AB3 100%)"},p={xxsm:"4px",xsm:"8px",sm:"12px",md:"16px",big:"20px",xbig:"24px",xxbig:"28px",xxxbig:"32px",lg:"40px",xlg:"48px",xxlg:"64px",xxxlg:"80px",huge:"96px",xhuge:"128px",xxhuge:"160px",xxxhuge:"192px"},Y={primary:{background:x["500"],borderColor:x["500"],borderWidth:0,contentColor:C["100"]},secondary:{background:x["200"],borderColor:x["200"],borderWidth:0,contentColor:C["100"]},tertiary:{background:"transparent",borderColor:"transparent",borderWidth:0,contentColor:x["800"]},outlined:{background:"transparent",borderColor:x["500"],borderWidth:"1px",contentColor:x["500"]}},K={primary:{background:u["500"],borderColor:u["500"],borderWidth:0,contentColor:C["0"]},secondary:{background:u["50"],borderColor:u["50"],borderWidth:0,contentColor:u["600"]},tertiary:{background:"transparent",borderColor:"transparent",borderWidth:0,contentColor:u["600"]},outlined:{background:"transparent",borderColor:u["300"],borderWidth:"1px",contentColor:u["500"]}},Q={primary:{background:f["200"],borderColor:f["200"],borderWidth:0,contentColor:f["400"]},secondary:{background:f["200"],borderColor:f["200"],borderWidth:0,contentColor:f["400"]},tertiary:{background:"transparent",borderColor:"transparent",borderWidth:0,contentColor:f["300"]},outlined:{background:"transparent",borderColor:f["400"],borderWidth:"1px",contentColor:f["300"]}},Ke={fontFamily:"Archivo, sans-serif",fontWeight:500,outline:`3px solid ${x[200]}`,regular:{xSmall:{borderRadius:"2px",fontSize:"14px",iconPadding:p.xxsm,horizontalPadding:"10px",verticalPadding:"6px"},small:{borderRadius:"2px",fontSize:"14px",iconPadding:p.xxsm,horizontalPadding:p.md,verticalPadding:p.xsm},medium:{borderRadius:"2px",fontSize:"16px",iconPadding:p.xxsm,horizontalPadding:p.big,verticalPadding:p.xsm},large:{borderRadius:"2px",fontSize:"18px",iconPadding:p.xxsm,horizontalPadding:p.xbig,verticalPadding:"14px"},primary:Y,destructive:K,disabled:Q},icon:{xSmall:{borderRadius:"2px",size:"14px",horizontalPadding:"11px",verticalPadding:"10px"},small:{borderRadius:"2px",size:"14px",horizontalPadding:"13px",verticalPadding:"14px"},medium:{borderRadius:"2px",size:p.md,horizontalPadding:"14px",verticalPadding:p.md},large:{borderRadius:"2px",size:p.md,horizontalPadding:p.md,verticalPadding:"22px"},primary:Y,destructive:K,disabled:Q}},A={xSmall:"0px 1px 2px rgba(16, 24, 40, 0.05)",small:"0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px -1px rgba(16, 24, 40, 0.1)",medium:"0px 4px 6px -1px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.1)",large:"0px 10px 15px -3px rgba(16, 24, 40, 0.1), 0px 4px 6px -4px rgba(16, 24, 40, 0.1)",xLarge:"0px 20px 25px -5px rgba(16, 24, 40, 0.1), 0px 8px 10px -6px rgba(16, 24, 40, 0.1)",xxLarge:"0px 25px 50px -12px rgba(16, 24, 40, 0.25)",upXSmall:"0px -1px 2px rgba(16, 24, 40, 0.05)",upSmall:"0px -1px 3px rgba(16, 24, 40, 0.1), 0px -1px 2px -1px rgba(16, 24, 40, 0.1)",upMedium:"0px -4px 6px -1px rgba(16, 24, 40, 0.1), 0px -2px 4px -2px rgba(16, 24, 40, 0.1)",upLarge:"0px -10px 15px -3px rgba(16, 24, 40, 0.1), 0px -4px 6px -4px rgba(16, 24, 40, 0.1)",upXLarge:"0px -20px 25px -5px rgba(16, 24, 40, 0.1), 0px -8px 10px -6px rgba(16, 24, 40, 0.1)",upXxLarge:"0px -25px 50px -12px rgba(16, 24, 40, 0.25)"},Qe={spacing:p.xxbig,fontFamily:"Archivo",fontWeight:"normal",fontStyle:"normal",fontSize:p.md,lineHeight:p.xbig,fontFeatureSettings:"'salt' on",padding:`10px ${p.sm}`,boxSizing:"border-box",boxShadow:A.xSmall,borderRadius:"2px",border:"1px solid #D1D5DB",margin:`${p.xsm} 0px`,background:"white",height:"50px",width:"100%",error:{color:u[900],border:`1px solid ${u[300]}`,boxShadow:A.xSmall,hintColor:f[500],helperColor:u["600"],focused:{boxSizing:"border-box",boxShadow:`0px 0px 0px ${p.xxsm} ${u["100"]}`,borderRadius:"2px",border:`1px solid ${u["300"]}`}},info:{color:f[900],border:"1px solid #D1D5DB",boxShadow:A.xSmall,hintColor:f[500],helperColor:f[500],focused:{boxSizing:"border-box",boxShadow:`0px 0px 0px 4px ${x["100"]}`,borderRadius:"2px",border:`1px solid ${x["300"]}`}},label:{color:"black",fontStyle:"normal",fontSize:"16px",lineHeight:"24px",fontWeight:500},helper:{fontStyle:"normal",fontSize:"14px",lineHeight:"20px",fontWeight:500,margin:p.xsm},disabled:{boxSizing:"border-box",boxShadow:A.xSmall,borderRadius:"2px",border:`1px solid ${f["300"]}`},hint:{background:"white",top:"1px",right:"2px",margin:"1px 0px"},placeholder:{color:f[400]}},Ze={items:{hover:{background:x["50"]},shadow:"1px 1px 2px rgba(0, 0, 0, 0.3)"}},qe={checkMark:{color:C[0],width:"3px",height:"6px",left:"5px",top:"2px"},width:p.md,height:p.md,marginRight:p.sm,default:{background:C[0],borderColor:f[300],borderWidth:"1px",borderStyle:"solid",borderRadius:"1.33333px"},checked:{background:x["500"],borderColor:x["500"],borderWidth:"1px",borderStyle:"solid",borderRadius:"1.33333px"}},eo={fontFamily:"Archivo",size:"50px",background:"white",loaderColor:{loaderBar:x[500],background:x[50]}},Z={name:"light",breakpoints:{mobile:"1023px",desktop:"1024px"},spacings:p,colors:{neutral:f,primary:x,secondary:we,error:u,success:Se,warning:He,shades:C},typography:{displayLarge:Fe,displaySmall:ve,headingH1:ze,headingH2:Be,headingH3:Ce,headingH4:Ee,headingH5:De,headingH6:Ae,paragraphLarge:Le,paragraphMedium:Oe,paragraphSmall:Me,paragraphXSmall:Re,overlineLarge:je,overlineMedium:We,overlineSmall:_e},shadows:A,blurs:{none:"0",small:"8px",medium:"16px",large:"24px",xLarge:"40px"},gradients:{sunburst:Te,blueMoon:Ge,blueberryWine:Ye,cherryCola:Ne,coldSky:Ue,darkWineSea:Xe,morningSakura:Pe,oliveGarden:Ie,synthwave:Je,teaLeaves:Ve},buttons:Ke,inputBox:Qe,loader:eo,select:Ze,checkBox:qe},oo=z(S({},Z),{name:"dark"}),T=({underlined:e,strikedThrough:o})=>{const r=[];return e&&r.push("underline"),o&&r.push("line-through"),r.join(" ")},ro=t.default.h1` | ||
margin: 0; | ||
@@ -97,3 +97,3 @@ | ||
} | ||
`,po=t.default.h5` | ||
`,go=t.default.h5` | ||
margin: 0; | ||
@@ -114,3 +114,3 @@ | ||
} | ||
`,go=t.default.h6` | ||
`,po=t.default.h6` | ||
margin: 0; | ||
@@ -140,4 +140,4 @@ | ||
line-height: ${({theme:e})=>e.typography.paragraphLarge.lineHeight}; | ||
text-decoration: ${P}; | ||
`,G=p.css` | ||
text-decoration: ${T}; | ||
`,G=g.css` | ||
margin: 0; | ||
@@ -151,3 +151,3 @@ | ||
line-height: ${({theme:e})=>e.typography.paragraphMedium.lineHeight}; | ||
text-decoration: ${P}; | ||
text-decoration: ${T}; | ||
`,co=t.default.p` | ||
@@ -164,3 +164,3 @@ ${G} | ||
line-height: ${({theme:e})=>e.typography.paragraphSmall.lineHeight}; | ||
text-decoration: ${P}; | ||
text-decoration: ${T}; | ||
`,fo=t.default.p` | ||
@@ -175,3 +175,3 @@ margin: 0; | ||
line-height: ${({theme:e})=>e.typography.paragraphXSmall.lineHeight}; | ||
text-decoration: ${P}; | ||
text-decoration: ${T}; | ||
`,xo=t.default.p` | ||
@@ -218,3 +218,3 @@ margin: 0; | ||
* LICENSE file in the root directory of this source tree. | ||
*/var wo=ke.default,ee=60103;if(L.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var oe=Symbol.for;ee=oe("react.element"),L.Fragment=oe("react.fragment")}var So=wo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ho=Object.prototype.hasOwnProperty,vo={key:!0,ref:!0,__self:!0,__source:!0};function re(e,o,r){var n,a={},s=null,$=null;r!==void 0&&(s=""+r),o.key!==void 0&&(s=""+o.key),o.ref!==void 0&&($=o.ref);for(n in o)Ho.call(o,n)&&!vo.hasOwnProperty(n)&&(a[n]=o[n]);if(e&&e.defaultProps)for(n in o=e.defaultProps,o)a[n]===void 0&&(a[n]=o[n]);return{$$typeof:ee,type:e,key:s,ref:$,props:a,_owner:So.current}}L.jsx=re,L.jsxs=re,J.exports=L;const l=J.exports.jsx,u=J.exports.jsxs,ie=p.css` | ||
*/var wo=ke.default,ee=60103;if(L.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var oe=Symbol.for;ee=oe("react.element"),L.Fragment=oe("react.fragment")}var So=wo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ho=Object.prototype.hasOwnProperty,Fo={key:!0,ref:!0,__self:!0,__source:!0};function re(e,o,r){var n,a={},s=null,$=null;r!==void 0&&(s=""+r),o.key!==void 0&&(s=""+o.key),o.ref!==void 0&&($=o.ref);for(n in o)Ho.call(o,n)&&!Fo.hasOwnProperty(n)&&(a[n]=o[n]);if(e&&e.defaultProps)for(n in o=e.defaultProps,o)a[n]===void 0&&(a[n]=o[n]);return{$$typeof:ee,type:e,key:s,ref:$,props:a,_owner:So.current}}L.jsx=re,L.jsxs=re,J.exports=L;const l=J.exports.jsx,y=J.exports.jsxs,ie=g.css` | ||
display: flex; | ||
@@ -241,8 +241,8 @@ flex-flow: row nowrap; | ||
} | ||
`,te=p.css` | ||
`,te=g.css` | ||
display: flex; | ||
flex-flow: row nowrap; | ||
align-items: center; | ||
`,Fo=p.css` | ||
${({buttonSize:e,theme:o})=>p.css` | ||
`,vo=g.css` | ||
${({buttonSize:e,theme:o})=>g.css` | ||
padding: ${o.buttons.regular[e||"medium"].verticalPadding} | ||
@@ -255,4 +255,4 @@ ${o.buttons.regular[e||"medium"].horizontalPadding}; | ||
`} | ||
`,ne=p.css` | ||
${({theme:e,buttonStyle:o})=>p.css` | ||
`,ne=g.css` | ||
${({theme:e,buttonStyle:o})=>g.css` | ||
border-width: ${e.buttons.regular.disabled[o||"primary"].borderWidth}; | ||
@@ -265,4 +265,4 @@ border-color: ${e.buttons.regular.disabled[o||"primary"].borderColor}; | ||
`} | ||
`,ae=p.css` | ||
${({theme:e,buttonStyle:o,variant:r})=>p.css` | ||
`,ae=g.css` | ||
${({theme:e,buttonStyle:o,variant:r})=>g.css` | ||
border-width: ${e.buttons.regular[r||"primary"][o||"primary"].borderWidth}; | ||
@@ -277,6 +277,6 @@ border-color: ${e.buttons.regular[r||"primary"][o||"primary"].borderColor}; | ||
${ie} | ||
${Fo} | ||
${vo} | ||
${({disabled:e})=>e?ne:ae} | ||
`,Bo=p.css` | ||
`,Bo=g.css` | ||
margin-right: ${({theme:e,buttonSize:o})=>e.buttons.regular[o||"medium"].iconPadding}; | ||
@@ -286,3 +286,3 @@ `,Co=t.default.div` | ||
${Bo} | ||
`,Eo=p.css` | ||
`,Eo=g.css` | ||
margin-left: ${({theme:e,buttonSize:o})=>e.buttons.regular[o||"medium"].iconPadding}; | ||
@@ -292,4 +292,4 @@ `,Do=t.default.div` | ||
${Eo} | ||
`,Ao=p.css` | ||
${({buttonSize:e,theme:o})=>p.css` | ||
`,Ao=g.css` | ||
${({buttonSize:e,theme:o})=>g.css` | ||
padding: ${o.buttons.icon[e||"medium"].verticalPadding} | ||
@@ -302,3 +302,3 @@ ${o.buttons.icon[e||"medium"].horizontalPadding}; | ||
`} | ||
`,Lo=p.css` | ||
`,Lo=g.css` | ||
width: ${({theme:e,buttonSize:o})=>e.buttons.icon[o||"medium"].buttonSize}; | ||
@@ -318,7 +318,7 @@ height: ${({theme:e,buttonSize:o})=>e.buttons.icon[o||"medium"].buttonSize}; | ||
${({disabled:e})=>e?ne:ae} | ||
`,le=O=>{var w=O,{buttonSize:e="medium",variant:o="primary",buttonStyle:r="primary",iconOnly:n=!1,startIcon:a=null,endIcon:s=null,children:$}=w,x=W(w,["buttonSize","variant","buttonStyle","iconOnly","startIcon","endIcon","children"]);return n?l(Mo,F(S({},x),{variant:o,buttonStyle:r,buttonSize:e,children:l(Oo,{buttonSize:e,children:a||s})})):u(zo,F(S({},x),{variant:o,buttonStyle:r,buttonSize:e,children:[a&&l(Co,{buttonSize:e,children:a}),$,s&&l(Do,{buttonSize:e,children:s})]}))},k="info",de=t.default.div` | ||
`,le=O=>{var w=O,{buttonSize:e="medium",variant:o="primary",buttonStyle:r="primary",iconOnly:n=!1,startIcon:a=null,endIcon:s=null,children:$}=w,b=W(w,["buttonSize","variant","buttonStyle","iconOnly","startIcon","endIcon","children"]);return n?l(Mo,z(S({},b),{variant:o,buttonStyle:r,buttonSize:e,children:l(Oo,{buttonSize:e,children:a||s})})):y(zo,z(S({},b),{variant:o,buttonStyle:r,buttonSize:e,children:[a&&l(Co,{buttonSize:e,children:a}),$,s&&l(Do,{buttonSize:e,children:s})]}))},k="info",de=t.default.div` | ||
display: flex; | ||
flex-direction: column; | ||
margin-top: ${({theme:e,spaced:o})=>o?e.inputBox.spacing:0}; | ||
`,T=t.default.span` | ||
`,X=t.default.span` | ||
color: ${({theme:e})=>e.inputBox.label.color}; | ||
@@ -331,5 +331,5 @@ font-family: ${({theme:e})=>e.inputBox.fontFamily}; | ||
font-feature-settings: ${({theme:e})=>e.inputBox.fontFeatureSettings}; | ||
`,pe=t.default.div` | ||
`,ge=t.default.div` | ||
display: flex; | ||
`,ge=t.default(T)` | ||
`,pe=t.default(X)` | ||
color: ${({theme:e,status:o})=>e.inputBox[o||k].helperColor}; | ||
@@ -352,3 +352,3 @@ font-size: ${({theme:e})=>e.inputBox.helper.fontSize}; | ||
padding: ${({theme:e})=>e.inputBox.padding}; | ||
`,he=t.default(T)` | ||
`,he=t.default(X)` | ||
margin: ${({theme:e})=>e.inputBox.hint.margin}; | ||
@@ -412,3 +412,3 @@ | ||
} | ||
`,jo=$=>{var x=$,{spaced:e,description:o,status:r,hint:n,helper:a}=x,s=W(x,["spaced","description","status","hint","helper"]);return u(de,{spaced:e,children:[l(T,{children:o}),u(Ro,{children:[l(xe,S({status:r},s)),n&&u(ce,{children:[l(he,{status:r,children:n.content}),n.icon&&l(fe,{status:r,children:n.icon})]})]}),u(pe,{children:[r==="error"&&l(se,{status:r,children:l(V.default,{path:D.mdiAlert,size:.7})}),l(ge,{status:r,children:a})]})]})},Wo=t.default.div` | ||
`,jo=$=>{var b=$,{spaced:e,description:o,status:r,hint:n,helper:a}=b,s=W(b,["spaced","description","status","hint","helper"]);return y(de,{spaced:e,children:[l(X,{children:o}),y(Ro,{children:[l(xe,S({status:r},s)),n&&y(ce,{children:[l(he,{status:r,children:n.content}),n.icon&&l(fe,{status:r,children:n.icon})]})]}),y(ge,{children:[r==="error"&&l(se,{status:r,children:l(V.default,{path:D.mdiAlert,size:.7})}),l(pe,{status:r,children:a})]})]})},Wo=t.default.div` | ||
display: flex; | ||
@@ -419,3 +419,3 @@ flex-direction: row; | ||
text-align: center; | ||
`,Po=t.default.div` | ||
`,To=t.default.div` | ||
position: relative; | ||
@@ -428,3 +428,3 @@ box-sizing: border-box; | ||
margin: ${({theme:e})=>e.inputBox.margin}; | ||
`,To=$=>{var x=$,{spaced:e,status:o,description:r,hint:n,helper:a}=x,s=W(x,["spaced","status","description","hint","helper"]);const[O,w]=c.useState(Number(s.value)||0),H=c.useRef(null),v=()=>{w(y=>y+1)},N=()=>{w(y=>y>0?y-1:y)};return c.useEffect(()=>{var C,z,R,j;const y=(z=Object.getOwnPropertyDescriptor((C=window==null?void 0:window.HTMLInputElement)==null?void 0:C.prototype,"value"))==null?void 0:z.set;(R=y==null?void 0:y.call)==null||R.call(y,H.current,`${O}`);const M=new Event("input",{bubbles:!0});(j=H==null?void 0:H.current)==null||j.dispatchEvent(M)},[O]),u(de,{spaced:e,children:[l(T,{children:r}),u(Wo,{children:[l(be,{onClick:N,buttonSize:"xSmall",children:l(_.Icon,{path:D.mdiMinus,size:1.35})}),u(Po,{children:[l(_o,F(S({status:o},s),{ref:H})),n&&u(ce,{children:[l(he,{status:o,children:n.content}),n.icon&&l(fe,{status:o,children:n.icon})]})]}),l(be,{onClick:v,buttonSize:"xSmall",children:l(_.Icon,{path:D.mdiPlus,size:1.35})})]}),u(pe,{children:[o==="error"&&l(se,{status:o,children:l(_.Icon,{path:D.mdiAlert,size:.7})}),l(ge,{status:o,children:a})]})]})},ue=e=>e.type==="number"?l(To,S({},e)):l(jo,S({},e)),Xo=t.default.button` | ||
`,Xo=$=>{var b=$,{spaced:e,status:o,description:r,hint:n,helper:a}=b,s=W(b,["spaced","status","description","hint","helper"]);const[O,w]=c.useState(Number(s.value)||0),F=c.useRef(null),v=()=>{w(m=>m+1)},U=()=>{w(m=>m>0?m-1:m)};return c.useEffect(()=>{var E,B,R,j;const m=(B=Object.getOwnPropertyDescriptor((E=window==null?void 0:window.HTMLInputElement)==null?void 0:E.prototype,"value"))==null?void 0:B.set;(R=m==null?void 0:m.call)==null||R.call(m,F.current,`${O}`);const M=new Event("input",{bubbles:!0});(j=F==null?void 0:F.current)==null||j.dispatchEvent(M)},[O]),y(de,{spaced:e,children:[l(X,{children:r}),y(Wo,{children:[l(be,{onClick:U,buttonSize:"xSmall",children:l(_.Icon,{path:D.mdiMinus,size:1.35})}),y(To,{children:[l(_o,z(S({status:o},s),{ref:F})),n&&y(ce,{children:[l(he,{status:o,children:n.content}),n.icon&&l(fe,{status:o,children:n.icon})]})]}),l(be,{onClick:v,buttonSize:"xSmall",children:l(_.Icon,{path:D.mdiPlus,size:1.35})})]}),y(ge,{children:[o==="error"&&l(se,{status:o,children:l(_.Icon,{path:D.mdiAlert,size:.7})}),l(pe,{status:o,children:a})]})]})},ue=e=>e.type==="number"?l(Xo,S({},e)):l(jo,S({},e)),No=t.default.button` | ||
${G} | ||
@@ -443,3 +443,3 @@ box-sizing: border-box; | ||
} | ||
`,No=e=>{var o,r,n,a;return l(Xo,F(S({},e),{children:((o=e==null?void 0:e.item)==null?void 0:o.name)||((r=e==null?void 0:e.item)==null?void 0:r.label)||((a=(n=e==null?void 0:e.item)==null?void 0:n.toString)==null?void 0:a.call(n))}))},Uo=t.default.div` | ||
`,Uo=e=>{var o,r,n,a;return l(No,z(S({},e),{children:((o=e==null?void 0:e.item)==null?void 0:o.name)||((r=e==null?void 0:e.item)==null?void 0:r.label)||((a=(n=e==null?void 0:e.item)==null?void 0:n.toString)==null?void 0:a.call(n))}))},Io=t.default.div` | ||
display: flex; | ||
@@ -466,3 +466,3 @@ position: ${({focus:e})=>e?"fixed":"relative"}; | ||
} | ||
`,Io=t.default.div` | ||
`,Po=t.default.div` | ||
display: ${({focus:e})=>e?"flex":"hidden"}; | ||
@@ -494,3 +494,3 @@ box-sizing: border-box; | ||
} | ||
`,Go=({autoCompleteItems:e,renderItem:o,inputProps:r,renderHeader:n,onItemSelected:a,spaced:s})=>{var R,j;const $=n||(()=>null),x=o||No,[O,w]=c.useState(0),[H,v]=c.useState(!1),[N,y]=c.useState(!1),M=c.useRef(null),C=c.useCallback(E=>{switch(E.key){case"Escape":v(!1);break;case"ArrowUp":w(m=>m&&m-1);break;case"ArrowDown":w(m=>m<e.length-1?m+1:m);break;case"Enter":w(m=>(e.length&&a&&typeof a=="function"&&a(e[m]),0));break}},[e,a]),z=E=>{!M.current||M.current.contains(E.target)||v(!1)};return c.useEffect(()=>(document.addEventListener("keydown",C,!1),document.addEventListener("mousedown",z),document.addEventListener("touchstart",z),()=>{document.removeEventListener("keydown",C,!1),document.removeEventListener("mousedown",z),document.removeEventListener("touchstart",z)}),[C]),c.useEffect(()=>{N&&v(!0)},[e,N]),u(Uo,{focus:H,spaced:s||(r==null?void 0:r.spaced),ref:M,children:[l(ue,F(S({},r),{onFocus:()=>{y(!0),v(!0)},onClick:()=>{v(!0)},hint:{icon:((R=r==null?void 0:r.hint)==null?void 0:R.icon)||l(V.default,{path:D.mdiUnfoldMoreHorizontal,size:.7}),content:((j=r==null?void 0:r.hint)==null?void 0:j.content)||""},spaced:!1})),H&&u(Io,{focus:H,helper:r==null?void 0:r.helper,description:r==null?void 0:r.description,children:[(e==null?void 0:e.length)>0&&l($,{}),e==null?void 0:e.map((E,m)=>l(x,{item:E,onClick:()=>{a==null||a(e[m]),w(0),v(!1)},onMouseEnter:()=>w(m),highlighted:O===m},E.id))]})]})},X=t.default.span` | ||
`,Go=({autoCompleteItems:e,renderItem:o,inputProps:r,renderHeader:n,onItemSelected:a,spaced:s})=>{var R,j;const $=n||(()=>null),b=o||Uo,[O,w]=c.useState(0),[F,v]=c.useState(!1),[U,m]=c.useState(!1),M=c.useRef(null),E=c.useCallback(H=>{switch(H.key){case"Escape":v(!1);break;case"ArrowUp":w(h=>h&&h-1);break;case"ArrowDown":w(h=>h<e.length-1?h+1:h);break;case"Enter":w(h=>(e.length&&a&&typeof a=="function"&&a(e[h]),0));break}},[e,a]),B=H=>{!M.current||M.current.contains(H.target)||v(!1)};return c.useEffect(()=>(document.addEventListener("keydown",E,!1),document.addEventListener("mousedown",B),document.addEventListener("touchstart",B),()=>{document.removeEventListener("keydown",E,!1),document.removeEventListener("mousedown",B),document.removeEventListener("touchstart",B)}),[E]),c.useEffect(()=>{U&&v(!0)},[e,U]),y(Io,{focus:F,spaced:s||(r==null?void 0:r.spaced),ref:M,children:[l(ue,z(S({},r),{onFocus:H=>{var h;m(!0),v(!0),(h=r==null?void 0:r.onFocus)==null||h.call(r,H)},onClick:H=>{var h;v(!0),(h=r==null?void 0:r.onClick)==null||h.call(r,H)},hint:{icon:((R=r==null?void 0:r.hint)==null?void 0:R.icon)||l(V.default,{path:D.mdiUnfoldMoreHorizontal,size:.7}),content:((j=r==null?void 0:r.hint)==null?void 0:j.content)||""},spaced:!1})),F&&y(Po,{focus:F,helper:r==null?void 0:r.helper,description:r==null?void 0:r.description,children:[(e==null?void 0:e.length)>0&&l($,{}),e==null?void 0:e.map((H,h)=>l(b,{item:H,onClick:()=>{a==null||a(e[h]),w(0),v(!1)},onMouseEnter:()=>w(h),highlighted:O===h},H.id))]})]})},N=t.default.span` | ||
position: relative; | ||
@@ -534,3 +534,3 @@ width: ${({theme:e})=>e.checkBox.width}; | ||
&:hover input ~ ${X} { | ||
&:hover input ~ ${N} { | ||
border-color: ${({theme:e})=>e.checkBox.checked.background}; | ||
@@ -547,3 +547,3 @@ } | ||
&:checked ~ ${X} { | ||
&:checked ~ ${N} { | ||
border-width: ${({theme:e})=>e.checkBox.checked.borderWidth}; | ||
@@ -557,5 +557,5 @@ border-style: ${({theme:e})=>e.checkBox.checked.borderStyle}; | ||
&:checked ~ ${X}:after { | ||
&:checked ~ ${N}:after { | ||
display: block; | ||
} | ||
`,Yo=n=>{var a=n,{children:e,spaced:o}=a,r=W(a,["children","spaced"]);return u(Jo,{disabled:r.disabled,spaced:o,children:[e,l(Vo,F(S({type:"checkbox"},r),{disabled:r.disabled})),l(X,{disabled:r.disabled})]})};i.Button=le,i.CheckBox=Yo,i.DisplayLarge=ro,i.DisplaySmall=io,i.HeadingH1=to,i.HeadingH2=no,i.HeadingH3=ao,i.HeadingH4=lo,i.HeadingH5=po,i.HeadingH6=go,i.InputBox=ue,i.OverlineLarge=xo,i.OverlineMedium=bo,i.OverlineSmall=uo,i.ParagraphLarge=so,i.ParagraphMedium=co,i.ParagraphSmall=ho,i.ParagraphXSmall=fo,i.Select=Go,i.darkTheme=oo,i.lightTheme=Z,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); | ||
`,Yo=n=>{var a=n,{children:e,spaced:o}=a,r=W(a,["children","spaced"]);return y(Jo,{disabled:r.disabled,spaced:o,children:[e,l(Vo,z(S({type:"checkbox"},r),{disabled:r.disabled})),l(N,{disabled:r.disabled})]})};i.Button=le,i.CheckBox=Yo,i.DisplayLarge=ro,i.DisplaySmall=io,i.HeadingH1=to,i.HeadingH2=no,i.HeadingH3=ao,i.HeadingH4=lo,i.HeadingH5=go,i.HeadingH6=po,i.InputBox=ue,i.OverlineLarge=xo,i.OverlineMedium=bo,i.OverlineSmall=uo,i.ParagraphLarge=so,i.ParagraphMedium=co,i.ParagraphSmall=ho,i.ParagraphXSmall=fo,i.Select=Go,i.darkTheme=oo,i.lightTheme=Z,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); |
@@ -17,3 +17,3 @@ { | ||
}, | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"scripts": { | ||
@@ -20,0 +20,0 @@ "build": "tsc --noEmit && vite build", |
771457
2837