kwant-ui 3.38.1-dev.3 → 3.38.1-dev.4
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.es.js +6 -5
- package/dist/index.js +6 -5
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2028,7 +2028,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
2028
2028
|
`,Ma=n.div`
|
|
2029
2029
|
display: flex;
|
|
2030
2030
|
cursor: pointer;
|
|
2031
|
-
`,Ea={chevronLeft:e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M11.6736 2.5799L10.4869 1.3999L3.89355 7.9999L10.4936 14.5999L11.6736 13.4199L6.25355 7.9999L11.6736 2.5799Z",fill:A.grey.grey900})}),chevronRight:e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M4.32715 13.4199L5.50715 14.5999L12.1071 7.9999L5.50715 1.3999L4.32715 2.5799L9.74715 7.9999L4.32715 13.4199Z",fill:A.grey.grey900})}),calendar:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M15.8333 3.33334H15V1.66667L13.3333 1.66667V3.33334L6.66667 3.33334V1.66667L5 1.66667V3.33334H4.16667C3.24167 3.33334 2.5 4.08334 2.5 5.00001L2.5 16.6667C2.5 17.5833 3.24167 18.3333 4.16667 18.3333H15.8333C16.75 18.3333 17.5 17.5833 17.5 16.6667V5.00001C17.5 4.08334 16.75 3.33334 15.8333 3.33334ZM15.8333 16.6667H4.16667L4.16667 8.33334L15.8333 8.33334L15.8333 16.6667ZM15.8333 6.66667L4.16667 6.66667L4.16667 5.00001L15.8333 5.00001V6.66667ZM5.83333 10L10 10L10 14.1667L5.83333 14.1667L5.83333 10Z",fill:A.grey.
|
|
2031
|
+
`,Ea={chevronLeft:e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M11.6736 2.5799L10.4869 1.3999L3.89355 7.9999L10.4936 14.5999L11.6736 13.4199L6.25355 7.9999L11.6736 2.5799Z",fill:A.grey.grey900})}),chevronRight:e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M4.32715 13.4199L5.50715 14.5999L12.1071 7.9999L5.50715 1.3999L4.32715 2.5799L9.74715 7.9999L4.32715 13.4199Z",fill:A.grey.grey900})}),calendar:e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M15.8333 3.33334H15V1.66667L13.3333 1.66667V3.33334L6.66667 3.33334V1.66667L5 1.66667V3.33334H4.16667C3.24167 3.33334 2.5 4.08334 2.5 5.00001L2.5 16.6667C2.5 17.5833 3.24167 18.3333 4.16667 18.3333H15.8333C16.75 18.3333 17.5 17.5833 17.5 16.6667V5.00001C17.5 4.08334 16.75 3.33334 15.8333 3.33334ZM15.8333 16.6667H4.16667L4.16667 8.33334L15.8333 8.33334L15.8333 16.6667ZM15.8333 6.66667L4.16667 6.66667L4.16667 5.00001L15.8333 5.00001V6.66667ZM5.83333 10L10 10L10 14.1667L5.83333 14.1667L5.83333 10Z",fill:A.grey.grey400})})};var Ha;!function(e){var t;(t=e.DatpickerNavigationDirectionEnum||(e.DatpickerNavigationDirectionEnum={})).right="right",t.left="left"}(Ha||(Ha={}));const Pa=(t,r)=>e(Oa,{onClick:e=>{e.stopPropagation(),r?.(e)},children:t===Ha.DatpickerNavigationDirectionEnum.right?Ea.chevronRight:Ea.chevronLeft}),ja=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Va=["Su","Mo","Tu","We","Th","Fr","Sa"],Ca=(e,t)=>!!(t>1&&e),Aa="MM/DD/YYYY",La=h(((t,r)=>{const{range:n,numberOfMonths:a=1,format:c=Aa,onChange:i,label:o,placeholder:s=Aa,required:l,readOnly:h,errorMessage:v,calendarRef:p,inputProps:u,...g}=t;return e(Za,{renderButton:Pa,className:"date-picker-"+(Ca(n,a)?"range":"single"),ref:p,range:n,months:ja,numberOfMonths:a,showOtherDays:!0,weekDays:Va,render:(t,n,a)=>e(at,{rightSection:e(Ma,{onClick:()=>{!h&&n()},children:Ea.calendar}),placeholder:s,value:t,onClick:()=>{!h&&n()},onChange:e=>{((e,t)=>{const r=e.target.value.match(/[^0-9/]/g);Array.isArray(r)||t(e)})(e,a)},label:o,required:l,readOnly:h,error:!!v,errorMessage:v,ref:r,...u}),onChange:i&&i,format:c,portal:!0,...g})})),za=n.div`
|
|
2032
2032
|
.xsmall {
|
|
2033
2033
|
width: 20px;
|
|
2034
2034
|
height: 20px;
|
|
@@ -4485,6 +4485,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
4485
4485
|
font: Poppins;
|
|
4486
4486
|
line-height: 40px;
|
|
4487
4487
|
transform: translateY(-5px);
|
|
4488
|
+
color: ${L.grey.grey900};
|
|
4488
4489
|
`,LU=n(AU)`
|
|
4489
4490
|
transform: translate(-45%, 13%);
|
|
4490
4491
|
font-family: Poppins;
|
|
@@ -4492,7 +4493,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
4492
4493
|
font-style: normal;
|
|
4493
4494
|
font-weight: 400;
|
|
4494
4495
|
line-height: 16px;
|
|
4495
|
-
fill: ${
|
|
4496
|
+
fill: ${L.grey.grey500};
|
|
4496
4497
|
`,zU=n(AU)`
|
|
4497
4498
|
transform: translate(45%, 13%);
|
|
4498
4499
|
font-family: Poppins;
|
|
@@ -4500,7 +4501,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
4500
4501
|
font-style: normal;
|
|
4501
4502
|
font-weight: 400;
|
|
4502
4503
|
line-height: 16px;
|
|
4503
|
-
fill: ${
|
|
4504
|
+
fill: ${L.grey.grey500};
|
|
4504
4505
|
`,BU=r=>{const{height:n,width:a,value:c,maxValue:i=100}=r,o=lv().cornerRadius(6),s=.5*a,l=s-3,h=-.5*Math.PI,v=.5*Math.PI,p=o({startAngle:mM().range([h,v]).domain([0,i])(c),endAngle:v,innerRadius:l-13,outerRadius:s-8}),u=o({startAngle:h,endAngle:v,innerRadius:l-13,outerRadius:s-8}),g=Math.min(Math.max(c,0),100),m=mM().domain([0,100]).range([0,1])(g),d=mM().domain([0,1]).range([-Math.PI/2,Math.PI/2]).clamp(!0)(m),f=kU(d,l-13-(l-13-(s-8))/2),_=[`${A.red.red300}`,`${A.orange.orange500}`,`${A.yellow.yellow400}`,`${A.green.green300}`,`${A.green.green600}`],w=xO(_)(m);return e(Xy,{height:n,width:a,children:t(CU,{children:[e("defs",{children:t("linearGradient",{id:"staticgradient",x1:"2.82102",y1:"93.919",x2:"158.5",y2:"36.4993",gradientUnits:"userSpaceOnUse",children:[e("stop",{"stop-color":A.red.red500}),e("stop",{offset:"0.140625","stop-color":A.red.red500}),e("stop",{offset:"0.447917","stop-color":A.yellow.yellow500}),e("stop",{offset:"0.755208","stop-color":A.green.green300}),e("stop",{offset:"1","stop-color":A.green.green600})]})}),t("g",{transform:`translate(${a/2}, ${n/2})`,children:[t(AU,{children:[c,"%"]}),e(LU,{width:a,children:"Low"}),e(zU,{width:a,children:"High"}),e("path",{d:u,fill:"url(#staticgradient)"}),e("path",{d:p,fill:A.grey.grey300}),e("circle",{cx:f[0],cy:f[1],r:"8.46211",stroke:"white",strokeWidth:"2.8207",fill:w})]})]})})},kU=(e,t=10)=>[Math.cos(e-Math.PI/2)*t,Math.sin(e-Math.PI/2)*t],SU=n.svg`
|
|
4505
4506
|
display: block;
|
|
4506
4507
|
margin: 20px;
|
|
@@ -4610,11 +4611,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
4610
4611
|
}
|
|
4611
4612
|
`:a`
|
|
4612
4613
|
p > span {
|
|
4613
|
-
color: ${t||L.green.
|
|
4614
|
+
color: ${t||L.green.green400};
|
|
4614
4615
|
}
|
|
4615
4616
|
|
|
4616
4617
|
svg {
|
|
4617
|
-
fill: ${t||L.green.
|
|
4618
|
+
fill: ${t||L.green.green400};
|
|
4618
4619
|
}
|
|
4619
4620
|
`}
|
|
4620
4621
|
`,hW=n=>{const{data:a,category:c,weight:i,iconWidth:o=16,iconHeight:s=16,unit:l="%",customData:h,color:v,noChangeMessage:p}=n,u=`${a?Math.abs(a):0} ${l}`;return e(lW,{className:"stat_data_container",danger:a<0,color:v,children:0!==a||h?t(r,{children:[e(nt,{icon:a<0?"arrow_downward":"arrow_upward",height:s,width:o}),e(Oe,{category:c||"caption",weight:i||"regular",children:e("span",{children:h||u})})]}):e(Oe,{category:"caption",weight:"medium",color:A.grey.grey500,children:p||"• No change"})})};var vW={exports:{}};vW.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,n=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,c={},i=function(e){return(e=+e)+(e>68?1900:2e3)},o=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),r=60*t[1]+(+t[2]||0);return 0===r?0:"+"===t[0]?-r:r}(e)}],l=function(e){var t=c[e];return t&&(t.indexOf?t:t.s.concat(t.f))},h=function(e,t){var r,n=c.meridiem;if(n){for(var a=1;a<=24;a+=1)if(e.indexOf(n(a,0,t))>-1){r=a>12;break}}else r=e===(t?"pm":"PM");return r},v={A:[a,function(e){this.afternoon=h(e,!1)}],a:[a,function(e){this.afternoon=h(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[n,o("seconds")],ss:[n,o("seconds")],m:[n,o("minutes")],mm:[n,o("minutes")],H:[n,o("hours")],h:[n,o("hours")],HH:[n,o("hours")],hh:[n,o("hours")],D:[n,o("day")],DD:[r,o("day")],Do:[a,function(e){var t=c.ordinal,r=e.match(/\d+/);if(this.day=r[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],M:[n,o("month")],MM:[r,o("month")],MMM:[a,function(e){var t=l("months"),r=(l("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[a,function(e){var t=l("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,o("year")],YY:[r,function(e){this.year=i(e)}],YYYY:[/\d{4}/,o("year")],Z:s,ZZ:s};function p(r){var n,a;n=r,a=c&&c.formats;for(var i=(r=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,n){var c=n&&n.toUpperCase();return r||a[n]||e[n]||a[c].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}))).match(t),o=i.length,s=0;s<o;s+=1){var l=i[s],h=v[l],p=h&&h[0],u=h&&h[1];i[s]=u?{regex:p,parser:u}:l.replace(/^\[|\]$/g,"")}return function(e){for(var t={},r=0,n=0;r<o;r+=1){var a=i[r];if("string"==typeof a)n+=a.length;else{var c=a.regex,s=a.parser,l=e.slice(n),h=c.exec(l)[0];s.call(t,h),e=e.replace(h,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var r=e.hours;t?r<12&&(e.hours+=12):12===r&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,r){r.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(i=e.parseTwoDigitYear);var n=t.prototype,a=n.parse;n.parse=function(e){var t=e.date,n=e.utc,i=e.args;this.$u=n;var o=i[1];if("string"==typeof o){var s=!0===i[2],l=!0===i[3],h=s||l,v=i[2];l&&(v=i[2]),c=this.$locale(),!s&&v&&(c=r.Ls[v]),this.$d=function(e,t,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var n=p(t)(e),a=n.year,c=n.month,i=n.day,o=n.hours,s=n.minutes,l=n.seconds,h=n.milliseconds,v=n.zone,u=new Date,g=i||(a||c?1:u.getDate()),m=a||u.getFullYear(),d=0;a&&!c||(d=c>0?c-1:u.getMonth());var f=o||0,_=s||0,w=l||0,b=h||0;return v?new Date(Date.UTC(m,d,g,f,_,w,b+60*v.offset*1e3)):r?new Date(Date.UTC(m,d,g,f,_,w,b)):new Date(m,d,g,f,_,w,b)}catch(e){return new Date("")}}(t,o,n),this.init(),v&&!0!==v&&(this.$L=this.locale(v).$L),h&&t!=this.format(o)&&(this.$d=new Date("")),c={}}else if(o instanceof Array)for(var u=o.length,g=1;g<=u;g+=1){i[1]=o[g-1];var m=r.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}g===u&&(this.$d=new Date(""))}else a.call(this,e)}}}();var pW=_n(vW.exports);Sc.extend(pW);const uW=n.div`
|
package/dist/index.js
CHANGED
|
@@ -2028,7 +2028,7 @@
|
|
|
2028
2028
|
`,Tn=t.div`
|
|
2029
2029
|
display: flex;
|
|
2030
2030
|
cursor: pointer;
|
|
2031
|
-
`,Nn={chevronLeft:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M11.6736 2.5799L10.4869 1.3999L3.89355 7.9999L10.4936 14.5999L11.6736 13.4199L6.25355 7.9999L11.6736 2.5799Z",fill:v.grey.grey900})}),chevronRight:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M4.32715 13.4199L5.50715 14.5999L12.1071 7.9999L5.50715 1.3999L4.32715 2.5799L9.74715 7.9999L4.32715 13.4199Z",fill:v.grey.grey900})}),calendar:e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M15.8333 3.33334H15V1.66667L13.3333 1.66667V3.33334L6.66667 3.33334V1.66667L5 1.66667V3.33334H4.16667C3.24167 3.33334 2.5 4.08334 2.5 5.00001L2.5 16.6667C2.5 17.5833 3.24167 18.3333 4.16667 18.3333H15.8333C16.75 18.3333 17.5 17.5833 17.5 16.6667V5.00001C17.5 4.08334 16.75 3.33334 15.8333 3.33334ZM15.8333 16.6667H4.16667L4.16667 8.33334L15.8333 8.33334L15.8333 16.6667ZM15.8333 6.66667L4.16667 6.66667L4.16667 5.00001L15.8333 5.00001V6.66667ZM5.83333 10L10 10L10 14.1667L5.83333 14.1667L5.83333 10Z",fill:v.grey.
|
|
2031
|
+
`,Nn={chevronLeft:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M11.6736 2.5799L10.4869 1.3999L3.89355 7.9999L10.4936 14.5999L11.6736 13.4199L6.25355 7.9999L11.6736 2.5799Z",fill:v.grey.grey900})}),chevronRight:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M4.32715 13.4199L5.50715 14.5999L12.1071 7.9999L5.50715 1.3999L4.32715 2.5799L9.74715 7.9999L4.32715 13.4199Z",fill:v.grey.grey900})}),calendar:e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M15.8333 3.33334H15V1.66667L13.3333 1.66667V3.33334L6.66667 3.33334V1.66667L5 1.66667V3.33334H4.16667C3.24167 3.33334 2.5 4.08334 2.5 5.00001L2.5 16.6667C2.5 17.5833 3.24167 18.3333 4.16667 18.3333H15.8333C16.75 18.3333 17.5 17.5833 17.5 16.6667V5.00001C17.5 4.08334 16.75 3.33334 15.8333 3.33334ZM15.8333 16.6667H4.16667L4.16667 8.33334L15.8333 8.33334L15.8333 16.6667ZM15.8333 6.66667L4.16667 6.66667L4.16667 5.00001L15.8333 5.00001V6.66667ZM5.83333 10L10 10L10 14.1667L5.83333 14.1667L5.83333 10Z",fill:v.grey.grey400})})};var Fn;!function(e){var t;(t=e.DatpickerNavigationDirectionEnum||(e.DatpickerNavigationDirectionEnum={})).right="right",t.left="left"}(Fn||(Fn={}));const Qn=(t,r)=>e.jsx(In,{onClick:e=>{e.stopPropagation(),r?.(e)},children:t===Fn.DatpickerNavigationDirectionEnum.right?Nn.chevronRight:Nn.chevronLeft}),$n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Yn=["Su","Mo","Tu","We","Th","Fr","Sa"],Un=(e,t)=>!!(t>1&&e),Wn="MM/DD/YYYY",Xn=r.forwardRef(((t,r)=>{const{range:n,numberOfMonths:a=1,format:c=Wn,onChange:i,label:o,placeholder:s=Wn,required:l,readOnly:h,errorMessage:v,calendarRef:p,inputProps:u,...g}=t;return e.jsx(Dn,{renderButton:Qn,className:"date-picker-"+(Un(n,a)?"range":"single"),ref:p,range:n,months:$n,numberOfMonths:a,showOtherDays:!0,weekDays:Yn,render:(t,n,a)=>e.jsx(ze,{rightSection:e.jsx(Tn,{onClick:()=>{!h&&n()},children:Nn.calendar}),placeholder:s,value:t,onClick:()=>{!h&&n()},onChange:e=>{((e,t)=>{const r=e.target.value.match(/[^0-9/]/g);Array.isArray(r)||t(e)})(e,a)},label:o,required:l,readOnly:h,error:!!v,errorMessage:v,ref:r,...u}),onChange:i&&i,format:c,portal:!0,...g})})),Kn=t.div`
|
|
2032
2032
|
.xsmall {
|
|
2033
2033
|
width: 20px;
|
|
2034
2034
|
height: 20px;
|
|
@@ -4485,6 +4485,7 @@
|
|
|
4485
4485
|
font: Poppins;
|
|
4486
4486
|
line-height: 40px;
|
|
4487
4487
|
transform: translateY(-5px);
|
|
4488
|
+
color: ${p.grey.grey900};
|
|
4488
4489
|
`,HY=t(EY)`
|
|
4489
4490
|
transform: translate(-45%, 13%);
|
|
4490
4491
|
font-family: Poppins;
|
|
@@ -4492,7 +4493,7 @@
|
|
|
4492
4493
|
font-style: normal;
|
|
4493
4494
|
font-weight: 400;
|
|
4494
4495
|
line-height: 16px;
|
|
4495
|
-
fill: ${
|
|
4496
|
+
fill: ${p.grey.grey500};
|
|
4496
4497
|
`,PY=t(EY)`
|
|
4497
4498
|
transform: translate(45%, 13%);
|
|
4498
4499
|
font-family: Poppins;
|
|
@@ -4500,7 +4501,7 @@
|
|
|
4500
4501
|
font-style: normal;
|
|
4501
4502
|
font-weight: 400;
|
|
4502
4503
|
line-height: 16px;
|
|
4503
|
-
fill: ${
|
|
4504
|
+
fill: ${p.grey.grey500};
|
|
4504
4505
|
`,jY=(e,t=10)=>[Math.cos(e-Math.PI/2)*t,Math.sin(e-Math.PI/2)*t],VY=t.svg`
|
|
4505
4506
|
display: block;
|
|
4506
4507
|
margin: 20px;
|
|
@@ -4610,11 +4611,11 @@
|
|
|
4610
4611
|
}
|
|
4611
4612
|
`:t.css`
|
|
4612
4613
|
p > span {
|
|
4613
|
-
color: ${r||p.green.
|
|
4614
|
+
color: ${r||p.green.green400};
|
|
4614
4615
|
}
|
|
4615
4616
|
|
|
4616
4617
|
svg {
|
|
4617
|
-
fill: ${r||p.green.
|
|
4618
|
+
fill: ${r||p.green.green400};
|
|
4618
4619
|
}
|
|
4619
4620
|
`}
|
|
4620
4621
|
`;var tU={exports:{}};tU.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,n=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,c={},i=function(e){return(e=+e)+(e>68?1900:2e3)},o=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),r=60*t[1]+(+t[2]||0);return 0===r?0:"+"===t[0]?-r:r}(e)}],l=function(e){var t=c[e];return t&&(t.indexOf?t:t.s.concat(t.f))},h=function(e,t){var r,n=c.meridiem;if(n){for(var a=1;a<=24;a+=1)if(e.indexOf(n(a,0,t))>-1){r=a>12;break}}else r=e===(t?"pm":"PM");return r},v={A:[a,function(e){this.afternoon=h(e,!1)}],a:[a,function(e){this.afternoon=h(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[n,o("seconds")],ss:[n,o("seconds")],m:[n,o("minutes")],mm:[n,o("minutes")],H:[n,o("hours")],h:[n,o("hours")],HH:[n,o("hours")],hh:[n,o("hours")],D:[n,o("day")],DD:[r,o("day")],Do:[a,function(e){var t=c.ordinal,r=e.match(/\d+/);if(this.day=r[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],M:[n,o("month")],MM:[r,o("month")],MMM:[a,function(e){var t=l("months"),r=(l("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[a,function(e){var t=l("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,o("year")],YY:[r,function(e){this.year=i(e)}],YYYY:[/\d{4}/,o("year")],Z:s,ZZ:s};function p(r){var n,a;n=r,a=c&&c.formats;for(var i=(r=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,n){var c=n&&n.toUpperCase();return r||a[n]||e[n]||a[c].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}))).match(t),o=i.length,s=0;s<o;s+=1){var l=i[s],h=v[l],p=h&&h[0],u=h&&h[1];i[s]=u?{regex:p,parser:u}:l.replace(/^\[|\]$/g,"")}return function(e){for(var t={},r=0,n=0;r<o;r+=1){var a=i[r];if("string"==typeof a)n+=a.length;else{var c=a.regex,s=a.parser,l=e.slice(n),h=c.exec(l)[0];s.call(t,h),e=e.replace(h,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var r=e.hours;t?r<12&&(e.hours+=12):12===r&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,r){r.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(i=e.parseTwoDigitYear);var n=t.prototype,a=n.parse;n.parse=function(e){var t=e.date,n=e.utc,i=e.args;this.$u=n;var o=i[1];if("string"==typeof o){var s=!0===i[2],l=!0===i[3],h=s||l,v=i[2];l&&(v=i[2]),c=this.$locale(),!s&&v&&(c=r.Ls[v]),this.$d=function(e,t,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var n=p(t)(e),a=n.year,c=n.month,i=n.day,o=n.hours,s=n.minutes,l=n.seconds,h=n.milliseconds,v=n.zone,u=new Date,g=i||(a||c?1:u.getDate()),m=a||u.getFullYear(),d=0;a&&!c||(d=c>0?c-1:u.getMonth());var f=o||0,_=s||0,w=l||0,b=h||0;return v?new Date(Date.UTC(m,d,g,f,_,w,b+60*v.offset*1e3)):r?new Date(Date.UTC(m,d,g,f,_,w,b)):new Date(m,d,g,f,_,w,b)}catch(e){return new Date("")}}(t,o,n),this.init(),v&&!0!==v&&(this.$L=this.locale(v).$L),h&&t!=this.format(o)&&(this.$d=new Date("")),c={}}else if(o instanceof Array)for(var u=o.length,g=1;g<=u;g+=1){i[1]=o[g-1];var m=r.apply(this,i);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}g===u&&(this.$d=new Date(""))}else a.call(this,e)}}}();var rU=Lr(tU.exports);Na.extend(rU);const nU=t.div`
|
package/dist/package.json
CHANGED