@a-ui/react 7.13.0-beta.1 → 7.13.0-beta.2
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/package.json +3 -3
- package/index.js +0 -1
- package/index.mjs +0 -100
- package/index10.js +0 -1
- package/index10.mjs +0 -60
- package/index100.js +0 -1
- package/index100.mjs +0 -4
- package/index101.js +0 -1
- package/index101.mjs +0 -400
- package/index102.js +0 -5
- package/index102.mjs +0 -42
- package/index103.js +0 -1
- package/index103.mjs +0 -4
- package/index104.js +0 -1
- package/index104.mjs +0 -10
- package/index105.js +0 -2
- package/index105.mjs +0 -329
- package/index106.js +0 -1
- package/index106.mjs +0 -52
- package/index107.js +0 -1
- package/index107.mjs +0 -4
- package/index108.js +0 -1
- package/index108.mjs +0 -67
- package/index109.js +0 -1
- package/index109.mjs +0 -45
- package/index11.js +0 -1
- package/index11.mjs +0 -12
- package/index110.js +0 -10
- package/index110.mjs +0 -62
- package/index111.js +0 -1
- package/index111.mjs +0 -46
- package/index112.js +0 -1
- package/index112.mjs +0 -42
- package/index113.js +0 -1
- package/index113.mjs +0 -4
- package/index114.js +0 -1
- package/index114.mjs +0 -4
- package/index115.js +0 -1
- package/index115.mjs +0 -4
- package/index116.js +0 -1
- package/index116.mjs +0 -33
- package/index117.js +0 -5
- package/index117.mjs +0 -21
- package/index118.js +0 -9
- package/index118.mjs +0 -63
- package/index119.js +0 -1
- package/index119.mjs +0 -65
- package/index12.js +0 -1
- package/index12.mjs +0 -215
- package/index120.js +0 -1
- package/index120.mjs +0 -16
- package/index121.js +0 -1
- package/index121.mjs +0 -9
- package/index122.js +0 -1
- package/index122.mjs +0 -9
- package/index123.js +0 -1
- package/index123.mjs +0 -8
- package/index124.js +0 -1
- package/index124.mjs +0 -8
- package/index125.js +0 -1
- package/index125.mjs +0 -7
- package/index126.js +0 -1
- package/index126.mjs +0 -7
- package/index127.js +0 -1
- package/index127.mjs +0 -9
- package/index128.js +0 -1
- package/index128.mjs +0 -7
- package/index129.js +0 -1
- package/index129.mjs +0 -69
- package/index13.js +0 -1
- package/index13.mjs +0 -29
- package/index130.js +0 -1
- package/index130.mjs +0 -5
- package/index131.js +0 -1
- package/index131.mjs +0 -7
- package/index132.js +0 -1
- package/index132.mjs +0 -13
- package/index133.js +0 -1
- package/index133.mjs +0 -4
- package/index134.js +0 -1
- package/index134.mjs +0 -393
- package/index135.js +0 -1
- package/index135.mjs +0 -127
- package/index136.js +0 -1
- package/index136.mjs +0 -136
- package/index137.js +0 -1
- package/index137.mjs +0 -4
- package/index138.js +0 -1
- package/index138.mjs +0 -4
- package/index139.js +0 -8
- package/index139.mjs +0 -78
- package/index14.js +0 -1
- package/index14.mjs +0 -44
- package/index140.js +0 -8
- package/index140.mjs +0 -95
- package/index141.js +0 -5
- package/index141.mjs +0 -54
- package/index142.js +0 -1
- package/index142.mjs +0 -10
- package/index143.js +0 -1
- package/index143.mjs +0 -7
- package/index144.js +0 -1
- package/index144.mjs +0 -54
- package/index145.js +0 -11
- package/index145.mjs +0 -60
- package/index146.js +0 -1
- package/index146.mjs +0 -4
- package/index147.js +0 -1
- package/index147.mjs +0 -4
- package/index148.js +0 -1
- package/index148.mjs +0 -7
- package/index149.js +0 -1
- package/index149.mjs +0 -7
- package/index15.js +0 -1
- package/index15.mjs +0 -8
- package/index150.js +0 -1
- package/index150.mjs +0 -9
- package/index151.js +0 -1
- package/index151.mjs +0 -15
- package/index152.js +0 -1
- package/index152.mjs +0 -18
- package/index153.js +0 -1
- package/index153.mjs +0 -11
- package/index154.js +0 -1
- package/index154.mjs +0 -8
- package/index155.js +0 -1
- package/index155.mjs +0 -8
- package/index156.js +0 -1
- package/index156.mjs +0 -7
- package/index157.js +0 -1
- package/index157.mjs +0 -515
- package/index158.js +0 -1
- package/index158.mjs +0 -52
- package/index159.js +0 -1
- package/index159.mjs +0 -20
- package/index16.js +0 -1
- package/index16.mjs +0 -15
- package/index160.js +0 -1
- package/index160.mjs +0 -20
- package/index161.js +0 -1
- package/index161.mjs +0 -7
- package/index162.js +0 -1
- package/index162.mjs +0 -10
- package/index163.js +0 -1
- package/index163.mjs +0 -8
- package/index164.js +0 -1
- package/index164.mjs +0 -7
- package/index165.js +0 -1
- package/index165.mjs +0 -8
- package/index166.js +0 -1
- package/index166.mjs +0 -11
- package/index167.js +0 -1
- package/index167.mjs +0 -7
- package/index168.js +0 -1
- package/index168.mjs +0 -10
- package/index169.js +0 -1
- package/index169.mjs +0 -14
- package/index17.js +0 -1
- package/index17.mjs +0 -108
- package/index170.js +0 -1
- package/index170.mjs +0 -11
- package/index171.js +0 -1
- package/index171.mjs +0 -11
- package/index172.js +0 -1
- package/index172.mjs +0 -15
- package/index173.js +0 -1
- package/index173.mjs +0 -6
- package/index174.js +0 -1
- package/index174.mjs +0 -35
- package/index175.js +0 -1
- package/index175.mjs +0 -67
- package/index176.js +0 -1
- package/index176.mjs +0 -10
- package/index177.js +0 -1
- package/index177.mjs +0 -10
- package/index178.js +0 -1
- package/index178.mjs +0 -9
- package/index179.js +0 -1
- package/index179.mjs +0 -9
- package/index18.js +0 -1
- package/index18.mjs +0 -136
- package/index180.js +0 -1
- package/index180.mjs +0 -16
- package/index181.js +0 -1
- package/index181.mjs +0 -4
- package/index182.js +0 -1
- package/index182.mjs +0 -4
- package/index183.js +0 -1
- package/index183.mjs +0 -4
- package/index184.js +0 -1
- package/index184.mjs +0 -59
- package/index185.js +0 -1
- package/index185.mjs +0 -24
- package/index186.js +0 -1
- package/index186.mjs +0 -43
- package/index187.js +0 -1
- package/index187.mjs +0 -63
- package/index188.js +0 -1
- package/index188.mjs +0 -34
- package/index189.js +0 -1
- package/index189.mjs +0 -15
- package/index19.js +0 -1
- package/index19.mjs +0 -11
- package/index190.js +0 -1
- package/index190.mjs +0 -64
- package/index191.js +0 -1
- package/index191.mjs +0 -64
- package/index192.js +0 -1
- package/index192.mjs +0 -65
- package/index193.js +0 -1
- package/index193.mjs +0 -65
- package/index194.js +0 -1
- package/index194.mjs +0 -42
- package/index195.js +0 -1
- package/index195.mjs +0 -43
- package/index196.js +0 -1
- package/index196.mjs +0 -55
- package/index197.js +0 -1
- package/index197.mjs +0 -45
- package/index198.js +0 -1
- package/index198.mjs +0 -39
- package/index199.js +0 -1
- package/index199.mjs +0 -68
- package/index2.js +0 -1
- package/index2.mjs +0 -12
- package/index20.js +0 -1
- package/index20.mjs +0 -54
- package/index200.js +0 -1
- package/index200.mjs +0 -68
- package/index201.js +0 -1
- package/index201.mjs +0 -93
- package/index202.js +0 -1
- package/index202.mjs +0 -43
- package/index203.js +0 -1
- package/index203.mjs +0 -43
- package/index204.js +0 -1
- package/index204.mjs +0 -43
- package/index205.js +0 -1
- package/index205.mjs +0 -27
- package/index206.js +0 -1
- package/index206.mjs +0 -26
- package/index207.js +0 -1
- package/index207.mjs +0 -26
- package/index208.js +0 -1
- package/index208.mjs +0 -27
- package/index209.js +0 -1
- package/index209.mjs +0 -26
- package/index21.js +0 -1
- package/index21.mjs +0 -33
- package/index210.js +0 -1
- package/index210.mjs +0 -26
- package/index211.js +0 -1
- package/index211.mjs +0 -16
- package/index212.js +0 -1
- package/index212.mjs +0 -42
- package/index213.js +0 -1
- package/index213.mjs +0 -42
- package/index214.js +0 -1
- package/index214.mjs +0 -16
- package/index215.js +0 -1
- package/index215.mjs +0 -16
- package/index216.js +0 -1
- package/index216.mjs +0 -70
- package/index217.js +0 -1
- package/index217.mjs +0 -33
- package/index218.js +0 -1
- package/index218.mjs +0 -11
- package/index219.js +0 -1
- package/index219.mjs +0 -155
- package/index22.js +0 -1
- package/index22.mjs +0 -22
- package/index220.js +0 -1
- package/index220.mjs +0 -110
- package/index221.js +0 -1
- package/index221.mjs +0 -22
- package/index222.js +0 -1
- package/index222.mjs +0 -103
- package/index223.js +0 -1
- package/index223.mjs +0 -49
- package/index224.js +0 -1
- package/index224.mjs +0 -70
- package/index225.js +0 -1
- package/index225.mjs +0 -33
- package/index226.js +0 -1
- package/index226.mjs +0 -11
- package/index227.js +0 -1
- package/index227.mjs +0 -110
- package/index228.js +0 -1
- package/index228.mjs +0 -109
- package/index229.js +0 -1
- package/index229.mjs +0 -9
- package/index23.js +0 -1
- package/index23.mjs +0 -32
- package/index230.js +0 -1
- package/index230.mjs +0 -18
- package/index231.js +0 -1
- package/index231.mjs +0 -31
- package/index232.js +0 -1
- package/index232.mjs +0 -15
- package/index233.js +0 -1
- package/index233.mjs +0 -61
- package/index234.js +0 -1
- package/index234.mjs +0 -11
- package/index235.js +0 -1
- package/index235.mjs +0 -22
- package/index24.js +0 -2
- package/index24.mjs +0 -62
- package/index25.js +0 -1
- package/index25.mjs +0 -15
- package/index26.js +0 -1
- package/index26.mjs +0 -12
- package/index27.js +0 -1
- package/index27.mjs +0 -43
- package/index28.js +0 -1
- package/index28.mjs +0 -34
- package/index29.js +0 -1
- package/index29.mjs +0 -10
- package/index3.js +0 -1
- package/index3.mjs +0 -15
- package/index30.js +0 -1
- package/index30.mjs +0 -72
- package/index31.js +0 -1
- package/index31.mjs +0 -40
- package/index32.js +0 -1
- package/index32.mjs +0 -48
- package/index33.js +0 -1
- package/index33.mjs +0 -90
- package/index34.js +0 -1
- package/index34.mjs +0 -36
- package/index35.js +0 -1
- package/index35.mjs +0 -25
- package/index36.js +0 -1
- package/index36.mjs +0 -27
- package/index37.js +0 -1
- package/index37.mjs +0 -110
- package/index38.js +0 -1
- package/index38.mjs +0 -57
- package/index39.js +0 -1
- package/index39.mjs +0 -21
- package/index4.js +0 -1
- package/index4.mjs +0 -58
- package/index40.js +0 -1
- package/index40.mjs +0 -40
- package/index41.js +0 -1
- package/index41.mjs +0 -54
- package/index42.js +0 -1
- package/index42.mjs +0 -73
- package/index43.js +0 -1
- package/index43.mjs +0 -49
- package/index44.js +0 -1
- package/index44.mjs +0 -13
- package/index45.js +0 -1
- package/index45.mjs +0 -73
- package/index46.js +0 -1
- package/index46.mjs +0 -99
- package/index47.js +0 -1
- package/index47.mjs +0 -45
- package/index48.js +0 -1
- package/index48.mjs +0 -26
- package/index49.js +0 -1
- package/index49.mjs +0 -83
- package/index5.js +0 -1
- package/index5.mjs +0 -136
- package/index50.js +0 -1
- package/index50.mjs +0 -35
- package/index51.js +0 -1
- package/index51.mjs +0 -10
- package/index52.js +0 -1
- package/index52.mjs +0 -13
- package/index53.js +0 -1
- package/index53.mjs +0 -30
- package/index54.js +0 -1
- package/index54.mjs +0 -51
- package/index55.js +0 -1
- package/index55.mjs +0 -10
- package/index56.js +0 -1
- package/index56.mjs +0 -49
- package/index58.js +0 -1
- package/index58.mjs +0 -64
- package/index59.js +0 -1
- package/index59.mjs +0 -62
- package/index6.js +0 -1
- package/index6.mjs +0 -29
- package/index60.js +0 -1
- package/index60.mjs +0 -31
- package/index61.js +0 -1
- package/index61.mjs +0 -23
- package/index62.js +0 -1
- package/index62.mjs +0 -32
- package/index63.js +0 -1
- package/index63.mjs +0 -16
- package/index64.js +0 -1
- package/index64.mjs +0 -61
- package/index65.js +0 -1
- package/index65.mjs +0 -19
- package/index66.js +0 -7
- package/index66.mjs +0 -411
- package/index7.js +0 -1
- package/index7.mjs +0 -8
- package/index70.js +0 -1
- package/index70.mjs +0 -4
- package/index71.js +0 -1
- package/index71.mjs +0 -76
- package/index72.js +0 -1
- package/index72.mjs +0 -31
- package/index73.js +0 -1
- package/index73.mjs +0 -38
- package/index74.js +0 -1
- package/index74.mjs +0 -6
- package/index75.js +0 -1
- package/index75.mjs +0 -37
- package/index76.js +0 -1
- package/index76.mjs +0 -7
- package/index77.js +0 -1
- package/index77.mjs +0 -7
- package/index78.js +0 -1
- package/index78.mjs +0 -7
- package/index79.js +0 -1
- package/index79.mjs +0 -7
- package/index8.js +0 -1
- package/index8.mjs +0 -18
- package/index80.js +0 -1
- package/index80.mjs +0 -7
- package/index81.js +0 -1
- package/index81.mjs +0 -19
- package/index82.js +0 -1
- package/index82.mjs +0 -87
- package/index83.js +0 -1
- package/index83.mjs +0 -8
- package/index84.js +0 -1
- package/index84.mjs +0 -27
- package/index85.js +0 -1
- package/index85.mjs +0 -57
- package/index87.js +0 -1
- package/index87.mjs +0 -7
- package/index88.js +0 -1
- package/index88.mjs +0 -121
- package/index89.js +0 -1
- package/index89.mjs +0 -20
- package/index9.js +0 -1
- package/index9.mjs +0 -18
- package/index90.js +0 -1
- package/index90.mjs +0 -26
- package/index91.js +0 -1
- package/index91.mjs +0 -4
- package/index92.js +0 -1
- package/index92.mjs +0 -237
- package/index93.js +0 -1
- package/index93.mjs +0 -4
- package/index94.js +0 -1
- package/index94.mjs +0 -13
- package/index95.js +0 -1
- package/index95.mjs +0 -249
- package/index96.js +0 -1
- package/index96.mjs +0 -91
- package/index97.js +0 -1
- package/index97.mjs +0 -15
- package/index98.js +0 -1
- package/index98.mjs +0 -6
- package/index99.js +0 -1
- package/index99.mjs +0 -4
- package/packages/antwerp-ui/react-components/src/lib/atoms/input/text-field/TextField.css +0 -1
- package/packages/antwerp-ui/react-components/src/lib/atoms/tooltip/Tooltip.css +0 -1
- package/packages/antwerp-ui/react-components/src/lib/molecules/autocomplete/Autocomplete.css +0 -1
- package/packages/antwerp-ui/react-components/src/lib/molecules/datepicker/DateRangePicker.css +0 -1
package/index126.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index127.js");function r(e,d,t){return a.addDays(e,d*7,t)}exports.addWeeks=r;
|
package/index126.mjs
DELETED
package/index127.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index148.js"),c=require("./index149.js");function i(r,e,n){const t=c.toDate(r,n?.in);return isNaN(e)?a.constructFrom(n?.in||r,NaN):(e&&t.setDate(t.getDate()+e),t)}exports.addDays=i;
|
package/index127.mjs
DELETED
package/index128.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index149.js");function r(t,e){return o.toDate(t,e?.in).getDate()}exports.getDate=r;
|
package/index128.mjs
DELETED
package/index129.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index235.js");class n extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]=="string"&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(s.tzOffset(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]=="number"&&(e.length===1||e.length===2&&typeof e[1]!="number")?this.setTime(e[0]):typeof e[0]=="string"?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),U(this),a(this)):this.setTime(Date.now())}static tz(e,...o){return o.length?new n(...o,e):new n(Date.now(),e)}withTimeZone(e){return new n(+this,e)}getTimezoneOffset(){const e=-s.tzOffset(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),a(this),+this}[Symbol.for("constructDateFrom")](e){return new n(+new Date(e),this.timeZone)}}const C=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(t=>{if(!C.test(t))return;const e=t.replace(C,"$1UTC");n.prototype[e]&&(t.startsWith("get")?n.prototype[t]=function(){return this.internal[e]()}:(n.prototype[t]=function(){return Date.prototype[e].apply(this.internal,arguments),z(this),+this},n.prototype[e]=function(){return Date.prototype[e].apply(this,arguments),a(this),+this}))});function a(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(-s.tzOffset(t.timeZone,t)*60))}function z(t){Date.prototype.setFullYear.call(t,t.internal.getUTCFullYear(),t.internal.getUTCMonth(),t.internal.getUTCDate()),Date.prototype.setHours.call(t,t.internal.getUTCHours(),t.internal.getUTCMinutes(),t.internal.getUTCSeconds(),t.internal.getUTCMilliseconds()),U(t)}function U(t){const e=s.tzOffset(t.timeZone,t),o=e>0?Math.floor(e):Math.ceil(e),i=new Date(+t);i.setUTCHours(i.getUTCHours()-1);const f=-new Date(+t).getTimezoneOffset(),g=-new Date(+i).getTimezoneOffset(),y=f-g,O=Date.prototype.getHours.apply(t)!==t.internal.getUTCHours();y&&O&&t.internal.setUTCMinutes(t.internal.getUTCMinutes()+y);const r=f-o;r&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+r);const l=new Date(+t);l.setUTCSeconds(0);const m=f>0?l.getSeconds():(l.getSeconds()-60)%60,c=Math.round(-(s.tzOffset(t.timeZone,t)*60))%60;(c||m)&&(t.internal.setUTCSeconds(t.internal.getUTCSeconds()+c),Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+c+m));const p=s.tzOffset(t.timeZone,t),u=p>0?Math.floor(p):Math.ceil(p),M=-new Date(+t).getTimezoneOffset()-u,S=u!==o,D=M-r;if(S&&D){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+D);const h=s.tzOffset(t.timeZone,t),w=h>0?Math.floor(h):Math.ceil(h),T=u-w;T&&(t.internal.setUTCMinutes(t.internal.getUTCMinutes()+T),Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+T))}}exports.TZDateMini=n;
|
package/index129.mjs
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { tzOffset as s } from "./index235.mjs";
|
|
2
|
-
class n extends Date {
|
|
3
|
-
//#region static
|
|
4
|
-
constructor(...e) {
|
|
5
|
-
super(), e.length > 1 && typeof e[e.length - 1] == "string" && (this.timeZone = e.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(s(this.timeZone, this)) ? this.setTime(NaN) : e.length ? typeof e[0] == "number" && (e.length === 1 || e.length === 2 && typeof e[1] != "number") ? this.setTime(e[0]) : typeof e[0] == "string" ? this.setTime(+new Date(e[0])) : e[0] instanceof Date ? this.setTime(+e[0]) : (this.setTime(+new Date(...e)), U(this), a(this)) : this.setTime(Date.now());
|
|
6
|
-
}
|
|
7
|
-
static tz(e, ...o) {
|
|
8
|
-
return o.length ? new n(...o, e) : new n(Date.now(), e);
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region time zone
|
|
12
|
-
withTimeZone(e) {
|
|
13
|
-
return new n(+this, e);
|
|
14
|
-
}
|
|
15
|
-
getTimezoneOffset() {
|
|
16
|
-
const e = -s(this.timeZone, this);
|
|
17
|
-
return e > 0 ? Math.floor(e) : Math.ceil(e);
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region time
|
|
21
|
-
setTime(e) {
|
|
22
|
-
return Date.prototype.setTime.apply(this, arguments), a(this), +this;
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region date-fns integration
|
|
26
|
-
[Symbol.for("constructDateFrom")](e) {
|
|
27
|
-
return new n(+new Date(e), this.timeZone);
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
}
|
|
31
|
-
const D = /^(get|set)(?!UTC)/;
|
|
32
|
-
Object.getOwnPropertyNames(Date.prototype).forEach((t) => {
|
|
33
|
-
if (!D.test(t)) return;
|
|
34
|
-
const e = t.replace(D, "$1UTC");
|
|
35
|
-
n.prototype[e] && (t.startsWith("get") ? n.prototype[t] = function() {
|
|
36
|
-
return this.internal[e]();
|
|
37
|
-
} : (n.prototype[t] = function() {
|
|
38
|
-
return Date.prototype[e].apply(this.internal, arguments), H(this), +this;
|
|
39
|
-
}, n.prototype[e] = function() {
|
|
40
|
-
return Date.prototype[e].apply(this, arguments), a(this), +this;
|
|
41
|
-
}));
|
|
42
|
-
});
|
|
43
|
-
function a(t) {
|
|
44
|
-
t.internal.setTime(+t), t.internal.setUTCSeconds(t.internal.getUTCSeconds() - Math.round(-s(t.timeZone, t) * 60));
|
|
45
|
-
}
|
|
46
|
-
function H(t) {
|
|
47
|
-
Date.prototype.setFullYear.call(t, t.internal.getUTCFullYear(), t.internal.getUTCMonth(), t.internal.getUTCDate()), Date.prototype.setHours.call(t, t.internal.getUTCHours(), t.internal.getUTCMinutes(), t.internal.getUTCSeconds(), t.internal.getUTCMilliseconds()), U(t);
|
|
48
|
-
}
|
|
49
|
-
function U(t) {
|
|
50
|
-
const e = s(t.timeZone, t), o = e > 0 ? Math.floor(e) : Math.ceil(e), i = /* @__PURE__ */ new Date(+t);
|
|
51
|
-
i.setUTCHours(i.getUTCHours() - 1);
|
|
52
|
-
const r = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset(), g = -(/* @__PURE__ */ new Date(+i)).getTimezoneOffset(), m = r - g, M = Date.prototype.getHours.apply(t) !== t.internal.getUTCHours();
|
|
53
|
-
m && M && t.internal.setUTCMinutes(t.internal.getUTCMinutes() + m);
|
|
54
|
-
const f = r - o;
|
|
55
|
-
f && Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + f);
|
|
56
|
-
const l = /* @__PURE__ */ new Date(+t);
|
|
57
|
-
l.setUTCSeconds(0);
|
|
58
|
-
const y = r > 0 ? l.getSeconds() : (l.getSeconds() - 60) % 60, c = Math.round(-(s(t.timeZone, t) * 60)) % 60;
|
|
59
|
-
(c || y) && (t.internal.setUTCSeconds(t.internal.getUTCSeconds() + c), Date.prototype.setUTCSeconds.call(t, Date.prototype.getUTCSeconds.call(t) + c + y));
|
|
60
|
-
const p = s(t.timeZone, t), u = p > 0 ? Math.floor(p) : Math.ceil(p), w = -(/* @__PURE__ */ new Date(+t)).getTimezoneOffset() - u, O = u !== o, C = w - f;
|
|
61
|
-
if (O && C) {
|
|
62
|
-
Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + C);
|
|
63
|
-
const h = s(t.timeZone, t), S = h > 0 ? Math.floor(h) : Math.ceil(h), T = u - S;
|
|
64
|
-
T && (t.internal.setUTCMinutes(t.internal.getUTCMinutes() + T), Date.prototype.setUTCMinutes.call(t, Date.prototype.getUTCMinutes.call(t) + T));
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
export {
|
|
68
|
-
n as TZDateMini
|
|
69
|
-
};
|
package/index13.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),x=require("./index51.js"),b=require("./index54.js"),j=require("./index25.js");function N({title:s,subTitle:r,description:c,children:t,image:d,link:e,className:l,border:m="normal",highlighted:i=!1,renderLinkFunction:o,qa:n}){const h={"m-card":!0,"m-card--highlight":i,"m-card--light-border":m==="light","m-card--no-border":m==="none",[`${l}`]:!!l},g=x.classNames(h),u=s?.tag||"h4";return a.jsxs("div",{className:g,"data-qa":n,children:[!!d&&a.jsx("div",{className:"m-card__image",children:a.jsx(j.Image,{...d})}),a.jsxs("div",{className:"m-card__body",children:[!!s?.label&&a.jsx(u,{id:`${s?.id}`,className:`u-margin-bottom-xs ${s.className??""}`,children:s.label}),!!r&&a.jsx("p",{className:"small u-text-bold u-margin-bottom-xs",children:r}),!!c&&a.jsx("p",{className:"u-margin-bottom",children:c}),!!e&&a.jsx("p",{className:"u-text-right",children:o?o(e):b.renderHTMLLink({...e,href:e.href??"#"},"arrow-right-1",{className:"has-icon-right","aria-labelledby":s?.id})}),t]})]})}exports.Card=N;
|
package/index13.mjs
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsxs as h, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { classNames as f } from "./index51.mjs";
|
|
3
|
-
import { renderHTMLLink as p } from "./index54.mjs";
|
|
4
|
-
import { Image as x } from "./index25.mjs";
|
|
5
|
-
function $({ title: a, subTitle: m, description: c, children: i, image: e, link: s, className: d, border: o = "normal", highlighted: t = !1, renderLinkFunction: l, qa: n }) {
|
|
6
|
-
const g = {
|
|
7
|
-
"m-card": !0,
|
|
8
|
-
"m-card--highlight": t,
|
|
9
|
-
"m-card--light-border": o === "light",
|
|
10
|
-
"m-card--no-border": o === "none",
|
|
11
|
-
[`${d}`]: !!d
|
|
12
|
-
}, b = f(g), N = a?.tag || "h4";
|
|
13
|
-
return /* @__PURE__ */ h("div", { className: b, "data-qa": n, children: [
|
|
14
|
-
!!e && /* @__PURE__ */ r("div", { className: "m-card__image", children: /* @__PURE__ */ r(x, { ...e }) }),
|
|
15
|
-
/* @__PURE__ */ h("div", { className: "m-card__body", children: [
|
|
16
|
-
!!a?.label && /* @__PURE__ */ r(N, { id: `${a?.id}`, className: `u-margin-bottom-xs ${a.className ?? ""}`, children: a.label }),
|
|
17
|
-
!!m && /* @__PURE__ */ r("p", { className: "small u-text-bold u-margin-bottom-xs", children: m }),
|
|
18
|
-
!!c && /* @__PURE__ */ r("p", { className: "u-margin-bottom", children: c }),
|
|
19
|
-
!!s && /* @__PURE__ */ r("p", { className: "u-text-right", children: l ? l(s) : p({ ...s, href: s.href ?? "#" }, "arrow-right-1", {
|
|
20
|
-
className: "has-icon-right",
|
|
21
|
-
"aria-labelledby": a?.id
|
|
22
|
-
}) }),
|
|
23
|
-
i
|
|
24
|
-
] })
|
|
25
|
-
] });
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
$ as Card
|
|
29
|
-
};
|
package/index130.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index233.js"),o=e=>t=>n.TZDate.tz(e,+new Date(t));exports.tz=o;
|
package/index130.mjs
DELETED
package/index131.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index149.js");function r(t,o){return+e.toDate(t)<+e.toDate(o)}exports.isBefore=r;
|
package/index131.mjs
DELETED
package/index132.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index153.js"),t=require("./index154.js");function o(e,a,r){const[i,s]=n.normalizeDates(r?.in,e,a);return+t.startOfDay(i)==+t.startOfDay(s)}exports.isSameDay=o;
|
package/index132.mjs
DELETED
package/index133.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/index133.mjs
DELETED
package/index134.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index135.js");function _(l,a,d){let{reference:i,floating:f}=l;const t=e.getSideAxis(a),s=e.getAlignmentAxis(a),c=e.getAxisLength(s),g=e.getSide(a),x=t==="y",u=i.x+i.width/2-f.width/2,r=i.y+i.height/2-f.height/2,m=i[c]/2-f[c]/2;let n;switch(g){case"top":n={x:u,y:i.y-f.height};break;case"bottom":n={x:u,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:r};break;case"left":n={x:i.x-f.width,y:r};break;default:n={x:i.x,y:i.y}}switch(e.getAlignment(a)){case"start":n[s]-=m*(d&&x?-1:1);break;case"end":n[s]+=m*(d&&x?-1:1);break}return n}async function $(l,a){var d;a===void 0&&(a={});const{x:i,y:f,platform:t,rects:s,elements:c,strategy:g}=l,{boundary:x="clippingAncestors",rootBoundary:u="viewport",elementContext:r="floating",altBoundary:m=!1,padding:n=0}=e.evaluate(a,l),o=e.getPaddingObject(n),A=c[m?r==="floating"?"reference":"floating":r],p=e.rectToClientRect(await t.getClippingRect({element:(d=await(t.isElement==null?void 0:t.isElement(A)))==null||d?A:A.contextElement||await(t.getDocumentElement==null?void 0:t.getDocumentElement(c.floating)),boundary:x,rootBoundary:u,strategy:g})),y=r==="floating"?{x:i,y:f,width:s.floating.width,height:s.floating.height}:s.reference,v=await(t.getOffsetParent==null?void 0:t.getOffsetParent(c.floating)),h=await(t.isElement==null?void 0:t.isElement(v))?await(t.getScale==null?void 0:t.getScale(v))||{x:1,y:1}:{x:1,y:1},O=e.rectToClientRect(t.convertOffsetParentRelativeRectToViewportRelativeRect?await t.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:v,strategy:g}):y);return{top:(p.top-O.top+o.top)/h.y,bottom:(O.bottom-p.bottom+o.bottom)/h.y,left:(p.left-O.left+o.left)/h.x,right:(O.right-p.right+o.right)/h.x}}const X=50,Y=async(l,a,d)=>{const{placement:i="bottom",strategy:f="absolute",middleware:t=[],platform:s}=d,c=s.detectOverflow?s:{...s,detectOverflow:$},g=await(s.isRTL==null?void 0:s.isRTL(a));let x=await s.getElementRects({reference:l,floating:a,strategy:f}),{x:u,y:r}=_(x,i,g),m=i,n=0;const o={};for(let w=0;w<t.length;w++){const A=t[w];if(!A)continue;const{name:p,fn:y}=A,{x:v,y:h,data:O,reset:P}=await y({x:u,y:r,initialPlacement:i,placement:m,strategy:f,middlewareData:o,rects:x,platform:c,elements:{reference:l,floating:a}});u=v??u,r=h??r,o[p]={...o[p],...O},P&&n<X&&(n++,typeof P=="object"&&(P.placement&&(m=P.placement),P.rects&&(x=P.rects===!0?await s.getElementRects({reference:l,floating:a,strategy:f}):P.rects),{x:u,y:r}=_(x,m,g)),w=-1)}return{x:u,y:r,placement:m,strategy:f,middlewareData:o}},U=l=>({name:"arrow",options:l,async fn(a){const{x:d,y:i,placement:f,rects:t,platform:s,elements:c,middlewareData:g}=a,{element:x,padding:u=0}=e.evaluate(l,a)||{};if(x==null)return{};const r=e.getPaddingObject(u),m={x:d,y:i},n=e.getAlignmentAxis(f),o=e.getAxisLength(n),w=await s.getDimensions(x),A=n==="y",p=A?"top":"left",y=A?"bottom":"right",v=A?"clientHeight":"clientWidth",h=t.reference[o]+t.reference[n]-m[n]-t.floating[o],O=m[n]-t.reference[n],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(x));let D=P?P[v]:0;(!D||!await(s.isElement==null?void 0:s.isElement(P)))&&(D=c.floating[v]||t.floating[o]);const j=h/2-O/2,E=D/2-w[o]/2-1,C=e.min(r[p],E),V=e.min(r[y],E),L=C,F=D-w[o]-V,b=D/2-w[o]/2+j,M=e.clamp(L,b,F),k=!g.arrow&&e.getAlignment(f)!=null&&b!==M&&t.reference[o]/2-(b<L?C:V)-w[o]/2<0,S=k?b<L?b-L:b-F:0;return{[n]:m[n]+S,data:{[n]:M,centerOffset:b-M-S,...k&&{alignmentOffset:S}},reset:k}}}),W=function(l){return l===void 0&&(l={}),{name:"flip",options:l,async fn(a){var d,i;const{placement:f,middlewareData:t,rects:s,initialPlacement:c,platform:g,elements:x}=a,{mainAxis:u=!0,crossAxis:r=!0,fallbackPlacements:m,fallbackStrategy:n="bestFit",fallbackAxisSideDirection:o="none",flipAlignment:w=!0,...A}=e.evaluate(l,a);if((d=t.arrow)!=null&&d.alignmentOffset)return{};const p=e.getSide(f),y=e.getSideAxis(c),v=e.getSide(c)===c,h=await(g.isRTL==null?void 0:g.isRTL(x.floating)),O=m||(v||!w?[e.getOppositePlacement(c)]:e.getExpandedPlacements(c)),P=o!=="none";!m&&P&&O.push(...e.getOppositeAxisPlacements(c,w,o,h));const D=[c,...O],j=await g.detectOverflow(a,A),E=[];let C=((i=t.flip)==null?void 0:i.overflows)||[];if(u&&E.push(j[p]),r){const b=e.getAlignmentSides(f,s,h);E.push(j[b[0]],j[b[1]])}if(C=[...C,{placement:f,overflows:E}],!E.every(b=>b<=0)){var V,L;const b=(((V=t.flip)==null?void 0:V.index)||0)+1,M=D[b];if(M&&(!(r==="alignment"?y!==e.getSideAxis(M):!1)||C.every(R=>e.getSideAxis(R.placement)===y?R.overflows[0]>0:!0)))return{data:{index:b,overflows:C},reset:{placement:M}};let k=(L=C.filter(S=>S.overflows[0]<=0).sort((S,R)=>S.overflows[1]-R.overflows[1])[0])==null?void 0:L.placement;if(!k)switch(n){case"bestFit":{var F;const S=(F=C.filter(R=>{if(P){const T=e.getSideAxis(R.placement);return T===y||T==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(T=>T>0).reduce((T,B)=>T+B,0)]).sort((R,T)=>R[1]-T[1])[0])==null?void 0:F[0];S&&(k=S);break}case"initialPlacement":k=c;break}if(f!==k)return{reset:{placement:k}}}return{}}}},q=new Set(["left","top"]);async function z(l,a){const{placement:d,platform:i,elements:f}=l,t=await(i.isRTL==null?void 0:i.isRTL(f.floating)),s=e.getSide(d),c=e.getAlignment(d),g=e.getSideAxis(d)==="y",x=q.has(s)?-1:1,u=t&&g?-1:1,r=e.evaluate(a,l);let{mainAxis:m,crossAxis:n,alignmentAxis:o}=typeof r=="number"?{mainAxis:r,crossAxis:0,alignmentAxis:null}:{mainAxis:r.mainAxis||0,crossAxis:r.crossAxis||0,alignmentAxis:r.alignmentAxis};return c&&typeof o=="number"&&(n=c==="end"?o*-1:o),g?{x:n*u,y:m*x}:{x:m*x,y:n*u}}const H=function(l){return l===void 0&&(l=0),{name:"offset",options:l,async fn(a){var d,i;const{x:f,y:t,placement:s,middlewareData:c}=a,g=await z(a,l);return s===((d=c.offset)==null?void 0:d.placement)&&(i=c.arrow)!=null&&i.alignmentOffset?{}:{x:f+g.x,y:t+g.y,data:{...g,placement:s}}}}},I=function(l){return l===void 0&&(l={}),{name:"shift",options:l,async fn(a){const{x:d,y:i,placement:f,platform:t}=a,{mainAxis:s=!0,crossAxis:c=!1,limiter:g={fn:p=>{let{x:y,y:v}=p;return{x:y,y:v}}},...x}=e.evaluate(l,a),u={x:d,y:i},r=await t.detectOverflow(a,x),m=e.getSideAxis(e.getSide(f)),n=e.getOppositeAxis(m);let o=u[n],w=u[m];if(s){const p=n==="y"?"top":"left",y=n==="y"?"bottom":"right",v=o+r[p],h=o-r[y];o=e.clamp(v,o,h)}if(c){const p=m==="y"?"top":"left",y=m==="y"?"bottom":"right",v=w+r[p],h=w-r[y];w=e.clamp(v,w,h)}const A=g.fn({...a,[n]:o,[m]:w});return{...A,data:{x:A.x-d,y:A.y-i,enabled:{[n]:s,[m]:c}}}}}};exports.rectToClientRect=e.rectToClientRect;exports.arrow=U;exports.computePosition=Y;exports.detectOverflow=$;exports.flip=W;exports.offset=H;exports.shift=I;
|
package/index134.mjs
DELETED
|
@@ -1,393 +0,0 @@
|
|
|
1
|
-
import { evaluate as $, getPaddingObject as H, getAlignmentAxis as I, getAlignment as X, getSide as _, getSideAxis as M, getOppositePlacement as q, getExpandedPlacements as G, getOppositeAxisPlacements as J, getAlignmentSides as K, clamp as B, getAxisLength as N, min as Y, rectToClientRect as W, getOppositeAxis as Q } from "./index135.mjs";
|
|
2
|
-
function z(a, s, m) {
|
|
3
|
-
let {
|
|
4
|
-
reference: n,
|
|
5
|
-
floating: r
|
|
6
|
-
} = a;
|
|
7
|
-
const e = M(s), i = I(s), l = N(i), d = _(s), g = e === "y", x = n.x + n.width / 2 - r.width / 2, c = n.y + n.height / 2 - r.height / 2, f = n[l] / 2 - r[l] / 2;
|
|
8
|
-
let t;
|
|
9
|
-
switch (d) {
|
|
10
|
-
case "top":
|
|
11
|
-
t = {
|
|
12
|
-
x,
|
|
13
|
-
y: n.y - r.height
|
|
14
|
-
};
|
|
15
|
-
break;
|
|
16
|
-
case "bottom":
|
|
17
|
-
t = {
|
|
18
|
-
x,
|
|
19
|
-
y: n.y + n.height
|
|
20
|
-
};
|
|
21
|
-
break;
|
|
22
|
-
case "right":
|
|
23
|
-
t = {
|
|
24
|
-
x: n.x + n.width,
|
|
25
|
-
y: c
|
|
26
|
-
};
|
|
27
|
-
break;
|
|
28
|
-
case "left":
|
|
29
|
-
t = {
|
|
30
|
-
x: n.x - r.width,
|
|
31
|
-
y: c
|
|
32
|
-
};
|
|
33
|
-
break;
|
|
34
|
-
default:
|
|
35
|
-
t = {
|
|
36
|
-
x: n.x,
|
|
37
|
-
y: n.y
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
switch (X(s)) {
|
|
41
|
-
case "start":
|
|
42
|
-
t[i] -= f * (m && g ? -1 : 1);
|
|
43
|
-
break;
|
|
44
|
-
case "end":
|
|
45
|
-
t[i] += f * (m && g ? -1 : 1);
|
|
46
|
-
break;
|
|
47
|
-
}
|
|
48
|
-
return t;
|
|
49
|
-
}
|
|
50
|
-
async function Z(a, s) {
|
|
51
|
-
var m;
|
|
52
|
-
s === void 0 && (s = {});
|
|
53
|
-
const {
|
|
54
|
-
x: n,
|
|
55
|
-
y: r,
|
|
56
|
-
platform: e,
|
|
57
|
-
rects: i,
|
|
58
|
-
elements: l,
|
|
59
|
-
strategy: d
|
|
60
|
-
} = a, {
|
|
61
|
-
boundary: g = "clippingAncestors",
|
|
62
|
-
rootBoundary: x = "viewport",
|
|
63
|
-
elementContext: c = "floating",
|
|
64
|
-
altBoundary: f = !1,
|
|
65
|
-
padding: t = 0
|
|
66
|
-
} = $(s, a), o = H(t), v = l[f ? c === "floating" ? "reference" : "floating" : c], w = W(await e.getClippingRect({
|
|
67
|
-
element: (m = await (e.isElement == null ? void 0 : e.isElement(v))) == null || m ? v : v.contextElement || await (e.getDocumentElement == null ? void 0 : e.getDocumentElement(l.floating)),
|
|
68
|
-
boundary: g,
|
|
69
|
-
rootBoundary: x,
|
|
70
|
-
strategy: d
|
|
71
|
-
})), y = c === "floating" ? {
|
|
72
|
-
x: n,
|
|
73
|
-
y: r,
|
|
74
|
-
width: i.floating.width,
|
|
75
|
-
height: i.floating.height
|
|
76
|
-
} : i.reference, p = await (e.getOffsetParent == null ? void 0 : e.getOffsetParent(l.floating)), h = await (e.isElement == null ? void 0 : e.isElement(p)) ? await (e.getScale == null ? void 0 : e.getScale(p)) || {
|
|
77
|
-
x: 1,
|
|
78
|
-
y: 1
|
|
79
|
-
} : {
|
|
80
|
-
x: 1,
|
|
81
|
-
y: 1
|
|
82
|
-
}, P = W(e.convertOffsetParentRelativeRectToViewportRelativeRect ? await e.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
83
|
-
elements: l,
|
|
84
|
-
rect: y,
|
|
85
|
-
offsetParent: p,
|
|
86
|
-
strategy: d
|
|
87
|
-
}) : y);
|
|
88
|
-
return {
|
|
89
|
-
top: (w.top - P.top + o.top) / h.y,
|
|
90
|
-
bottom: (P.bottom - w.bottom + o.bottom) / h.y,
|
|
91
|
-
left: (w.left - P.left + o.left) / h.x,
|
|
92
|
-
right: (P.right - w.right + o.right) / h.x
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
const ee = 50, oe = async (a, s, m) => {
|
|
96
|
-
const {
|
|
97
|
-
placement: n = "bottom",
|
|
98
|
-
strategy: r = "absolute",
|
|
99
|
-
middleware: e = [],
|
|
100
|
-
platform: i
|
|
101
|
-
} = m, l = i.detectOverflow ? i : {
|
|
102
|
-
...i,
|
|
103
|
-
detectOverflow: Z
|
|
104
|
-
}, d = await (i.isRTL == null ? void 0 : i.isRTL(s));
|
|
105
|
-
let g = await i.getElementRects({
|
|
106
|
-
reference: a,
|
|
107
|
-
floating: s,
|
|
108
|
-
strategy: r
|
|
109
|
-
}), {
|
|
110
|
-
x,
|
|
111
|
-
y: c
|
|
112
|
-
} = z(g, n, d), f = n, t = 0;
|
|
113
|
-
const o = {};
|
|
114
|
-
for (let u = 0; u < e.length; u++) {
|
|
115
|
-
const v = e[u];
|
|
116
|
-
if (!v)
|
|
117
|
-
continue;
|
|
118
|
-
const {
|
|
119
|
-
name: w,
|
|
120
|
-
fn: y
|
|
121
|
-
} = v, {
|
|
122
|
-
x: p,
|
|
123
|
-
y: h,
|
|
124
|
-
data: P,
|
|
125
|
-
reset: b
|
|
126
|
-
} = await y({
|
|
127
|
-
x,
|
|
128
|
-
y: c,
|
|
129
|
-
initialPlacement: n,
|
|
130
|
-
placement: f,
|
|
131
|
-
strategy: r,
|
|
132
|
-
middlewareData: o,
|
|
133
|
-
rects: g,
|
|
134
|
-
platform: l,
|
|
135
|
-
elements: {
|
|
136
|
-
reference: a,
|
|
137
|
-
floating: s
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
x = p ?? x, c = h ?? c, o[w] = {
|
|
141
|
-
...o[w],
|
|
142
|
-
...P
|
|
143
|
-
}, b && t < ee && (t++, typeof b == "object" && (b.placement && (f = b.placement), b.rects && (g = b.rects === !0 ? await i.getElementRects({
|
|
144
|
-
reference: a,
|
|
145
|
-
floating: s,
|
|
146
|
-
strategy: r
|
|
147
|
-
}) : b.rects), {
|
|
148
|
-
x,
|
|
149
|
-
y: c
|
|
150
|
-
} = z(g, f, d)), u = -1);
|
|
151
|
-
}
|
|
152
|
-
return {
|
|
153
|
-
x,
|
|
154
|
-
y: c,
|
|
155
|
-
placement: f,
|
|
156
|
-
strategy: r,
|
|
157
|
-
middlewareData: o
|
|
158
|
-
};
|
|
159
|
-
}, se = (a) => ({
|
|
160
|
-
name: "arrow",
|
|
161
|
-
options: a,
|
|
162
|
-
async fn(s) {
|
|
163
|
-
const {
|
|
164
|
-
x: m,
|
|
165
|
-
y: n,
|
|
166
|
-
placement: r,
|
|
167
|
-
rects: e,
|
|
168
|
-
platform: i,
|
|
169
|
-
elements: l,
|
|
170
|
-
middlewareData: d
|
|
171
|
-
} = s, {
|
|
172
|
-
element: g,
|
|
173
|
-
padding: x = 0
|
|
174
|
-
} = $(a, s) || {};
|
|
175
|
-
if (g == null)
|
|
176
|
-
return {};
|
|
177
|
-
const c = H(x), f = {
|
|
178
|
-
x: m,
|
|
179
|
-
y: n
|
|
180
|
-
}, t = I(r), o = N(t), u = await i.getDimensions(g), v = t === "y", w = v ? "top" : "left", y = v ? "bottom" : "right", p = v ? "clientHeight" : "clientWidth", h = e.reference[o] + e.reference[t] - f[t] - e.floating[o], P = f[t] - e.reference[t], b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(g));
|
|
181
|
-
let D = b ? b[p] : 0;
|
|
182
|
-
(!D || !await (i.isElement == null ? void 0 : i.isElement(b))) && (D = l.floating[p] || e.floating[o]);
|
|
183
|
-
const V = h / 2 - P / 2, E = D / 2 - u[o] / 2 - 1, C = Y(c[w], E), F = Y(c[y], E), T = C, j = D - u[o] - F, A = D / 2 - u[o] / 2 + V, L = B(T, A, j), S = !d.arrow && X(r) != null && A !== L && e.reference[o] / 2 - (A < T ? C : F) - u[o] / 2 < 0, O = S ? A < T ? A - T : A - j : 0;
|
|
184
|
-
return {
|
|
185
|
-
[t]: f[t] + O,
|
|
186
|
-
data: {
|
|
187
|
-
[t]: L,
|
|
188
|
-
centerOffset: A - L - O,
|
|
189
|
-
...S && {
|
|
190
|
-
alignmentOffset: O
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
reset: S
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
}), ae = function(a) {
|
|
197
|
-
return a === void 0 && (a = {}), {
|
|
198
|
-
name: "flip",
|
|
199
|
-
options: a,
|
|
200
|
-
async fn(s) {
|
|
201
|
-
var m, n;
|
|
202
|
-
const {
|
|
203
|
-
placement: r,
|
|
204
|
-
middlewareData: e,
|
|
205
|
-
rects: i,
|
|
206
|
-
initialPlacement: l,
|
|
207
|
-
platform: d,
|
|
208
|
-
elements: g
|
|
209
|
-
} = s, {
|
|
210
|
-
mainAxis: x = !0,
|
|
211
|
-
crossAxis: c = !0,
|
|
212
|
-
fallbackPlacements: f,
|
|
213
|
-
fallbackStrategy: t = "bestFit",
|
|
214
|
-
fallbackAxisSideDirection: o = "none",
|
|
215
|
-
flipAlignment: u = !0,
|
|
216
|
-
...v
|
|
217
|
-
} = $(a, s);
|
|
218
|
-
if ((m = e.arrow) != null && m.alignmentOffset)
|
|
219
|
-
return {};
|
|
220
|
-
const w = _(r), y = M(l), p = _(l) === l, h = await (d.isRTL == null ? void 0 : d.isRTL(g.floating)), P = f || (p || !u ? [q(l)] : G(l)), b = o !== "none";
|
|
221
|
-
!f && b && P.push(...J(l, u, o, h));
|
|
222
|
-
const D = [l, ...P], V = await d.detectOverflow(s, v), E = [];
|
|
223
|
-
let C = ((n = e.flip) == null ? void 0 : n.overflows) || [];
|
|
224
|
-
if (x && E.push(V[w]), c) {
|
|
225
|
-
const A = K(r, i, h);
|
|
226
|
-
E.push(V[A[0]], V[A[1]]);
|
|
227
|
-
}
|
|
228
|
-
if (C = [...C, {
|
|
229
|
-
placement: r,
|
|
230
|
-
overflows: E
|
|
231
|
-
}], !E.every((A) => A <= 0)) {
|
|
232
|
-
var F, T;
|
|
233
|
-
const A = (((F = e.flip) == null ? void 0 : F.index) || 0) + 1, L = D[A];
|
|
234
|
-
if (L && (!(c === "alignment" ? y !== M(L) : !1) || // We leave the current main axis only if every placement on that axis
|
|
235
|
-
// overflows the main axis.
|
|
236
|
-
C.every((R) => M(R.placement) === y ? R.overflows[0] > 0 : !0)))
|
|
237
|
-
return {
|
|
238
|
-
data: {
|
|
239
|
-
index: A,
|
|
240
|
-
overflows: C
|
|
241
|
-
},
|
|
242
|
-
reset: {
|
|
243
|
-
placement: L
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
let S = (T = C.filter((O) => O.overflows[0] <= 0).sort((O, R) => O.overflows[1] - R.overflows[1])[0]) == null ? void 0 : T.placement;
|
|
247
|
-
if (!S)
|
|
248
|
-
switch (t) {
|
|
249
|
-
case "bestFit": {
|
|
250
|
-
var j;
|
|
251
|
-
const O = (j = C.filter((R) => {
|
|
252
|
-
if (b) {
|
|
253
|
-
const k = M(R.placement);
|
|
254
|
-
return k === y || // Create a bias to the `y` side axis due to horizontal
|
|
255
|
-
// reading directions favoring greater width.
|
|
256
|
-
k === "y";
|
|
257
|
-
}
|
|
258
|
-
return !0;
|
|
259
|
-
}).map((R) => [R.placement, R.overflows.filter((k) => k > 0).reduce((k, U) => k + U, 0)]).sort((R, k) => R[1] - k[1])[0]) == null ? void 0 : j[0];
|
|
260
|
-
O && (S = O);
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
case "initialPlacement":
|
|
264
|
-
S = l;
|
|
265
|
-
break;
|
|
266
|
-
}
|
|
267
|
-
if (r !== S)
|
|
268
|
-
return {
|
|
269
|
-
reset: {
|
|
270
|
-
placement: S
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
return {};
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
}, te = /* @__PURE__ */ new Set(["left", "top"]);
|
|
278
|
-
async function ne(a, s) {
|
|
279
|
-
const {
|
|
280
|
-
placement: m,
|
|
281
|
-
platform: n,
|
|
282
|
-
elements: r
|
|
283
|
-
} = a, e = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), i = _(m), l = X(m), d = M(m) === "y", g = te.has(i) ? -1 : 1, x = e && d ? -1 : 1, c = $(s, a);
|
|
284
|
-
let {
|
|
285
|
-
mainAxis: f,
|
|
286
|
-
crossAxis: t,
|
|
287
|
-
alignmentAxis: o
|
|
288
|
-
} = typeof c == "number" ? {
|
|
289
|
-
mainAxis: c,
|
|
290
|
-
crossAxis: 0,
|
|
291
|
-
alignmentAxis: null
|
|
292
|
-
} : {
|
|
293
|
-
mainAxis: c.mainAxis || 0,
|
|
294
|
-
crossAxis: c.crossAxis || 0,
|
|
295
|
-
alignmentAxis: c.alignmentAxis
|
|
296
|
-
};
|
|
297
|
-
return l && typeof o == "number" && (t = l === "end" ? o * -1 : o), d ? {
|
|
298
|
-
x: t * x,
|
|
299
|
-
y: f * g
|
|
300
|
-
} : {
|
|
301
|
-
x: f * g,
|
|
302
|
-
y: t * x
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
const le = function(a) {
|
|
306
|
-
return a === void 0 && (a = 0), {
|
|
307
|
-
name: "offset",
|
|
308
|
-
options: a,
|
|
309
|
-
async fn(s) {
|
|
310
|
-
var m, n;
|
|
311
|
-
const {
|
|
312
|
-
x: r,
|
|
313
|
-
y: e,
|
|
314
|
-
placement: i,
|
|
315
|
-
middlewareData: l
|
|
316
|
-
} = s, d = await ne(s, a);
|
|
317
|
-
return i === ((m = l.offset) == null ? void 0 : m.placement) && (n = l.arrow) != null && n.alignmentOffset ? {} : {
|
|
318
|
-
x: r + d.x,
|
|
319
|
-
y: e + d.y,
|
|
320
|
-
data: {
|
|
321
|
-
...d,
|
|
322
|
-
placement: i
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
};
|
|
327
|
-
}, ce = function(a) {
|
|
328
|
-
return a === void 0 && (a = {}), {
|
|
329
|
-
name: "shift",
|
|
330
|
-
options: a,
|
|
331
|
-
async fn(s) {
|
|
332
|
-
const {
|
|
333
|
-
x: m,
|
|
334
|
-
y: n,
|
|
335
|
-
placement: r,
|
|
336
|
-
platform: e
|
|
337
|
-
} = s, {
|
|
338
|
-
mainAxis: i = !0,
|
|
339
|
-
crossAxis: l = !1,
|
|
340
|
-
limiter: d = {
|
|
341
|
-
fn: (w) => {
|
|
342
|
-
let {
|
|
343
|
-
x: y,
|
|
344
|
-
y: p
|
|
345
|
-
} = w;
|
|
346
|
-
return {
|
|
347
|
-
x: y,
|
|
348
|
-
y: p
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
...g
|
|
353
|
-
} = $(a, s), x = {
|
|
354
|
-
x: m,
|
|
355
|
-
y: n
|
|
356
|
-
}, c = await e.detectOverflow(s, g), f = M(_(r)), t = Q(f);
|
|
357
|
-
let o = x[t], u = x[f];
|
|
358
|
-
if (i) {
|
|
359
|
-
const w = t === "y" ? "top" : "left", y = t === "y" ? "bottom" : "right", p = o + c[w], h = o - c[y];
|
|
360
|
-
o = B(p, o, h);
|
|
361
|
-
}
|
|
362
|
-
if (l) {
|
|
363
|
-
const w = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", p = u + c[w], h = u - c[y];
|
|
364
|
-
u = B(p, u, h);
|
|
365
|
-
}
|
|
366
|
-
const v = d.fn({
|
|
367
|
-
...s,
|
|
368
|
-
[t]: o,
|
|
369
|
-
[f]: u
|
|
370
|
-
});
|
|
371
|
-
return {
|
|
372
|
-
...v,
|
|
373
|
-
data: {
|
|
374
|
-
x: v.x - m,
|
|
375
|
-
y: v.y - n,
|
|
376
|
-
enabled: {
|
|
377
|
-
[t]: i,
|
|
378
|
-
[f]: l
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
};
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
export {
|
|
386
|
-
se as arrow,
|
|
387
|
-
oe as computePosition,
|
|
388
|
-
Z as detectOverflow,
|
|
389
|
-
ae as flip,
|
|
390
|
-
le as offset,
|
|
391
|
-
W as rectToClientRect,
|
|
392
|
-
ce as shift
|
|
393
|
-
};
|
package/index135.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=Math.min,p=Math.max,P=Math.round,O=Math.floor,y=t=>({x:t,y:t}),S={left:"right",right:"left",bottom:"top",top:"bottom"};function M(t,e,n){return p(t,m(e,n))}function j(t,e){return typeof t=="function"?t(e):t}function l(t){return t.split("-")[0]}function a(t){return t.split("-")[1]}function d(t){return t==="x"?"y":"x"}function h(t){return t==="y"?"height":"width"}function x(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function A(t){return d(x(t))}function C(t,e,n){n===void 0&&(n=!1);const r=a(t),i=A(t),o=h(i);let c=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(c=g(c)),[c,g(c)]}function w(t){const e=g(t);return[s(t),e,s(e)]}function s(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const u=["left","right"],f=["right","left"],L=["top","bottom"],T=["bottom","top"];function E(t,e,n){switch(t){case"top":case"bottom":return n?e?f:u:e?u:f;case"left":case"right":return e?L:T;default:return[]}}function R(t,e,n,r){const i=a(t);let o=E(l(t),n==="start",r);return i&&(o=o.map(c=>c+"-"+i),e&&(o=o.concat(o.map(s)))),o}function g(t){const e=l(t);return S[e]+t.slice(e.length)}function b(t){return{top:0,right:0,bottom:0,left:0,...t}}function v(t){return typeof t!="number"?b(t):{top:t,right:t,bottom:t,left:t}}function k(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}exports.clamp=M;exports.createCoords=y;exports.evaluate=j;exports.expandPaddingObject=b;exports.floor=O;exports.getAlignment=a;exports.getAlignmentAxis=A;exports.getAlignmentSides=C;exports.getAxisLength=h;exports.getExpandedPlacements=w;exports.getOppositeAlignmentPlacement=s;exports.getOppositeAxis=d;exports.getOppositeAxisPlacements=R;exports.getOppositePlacement=g;exports.getPaddingObject=v;exports.getSide=l;exports.getSideAxis=x;exports.max=p;exports.min=m;exports.rectToClientRect=k;exports.round=P;
|