@tap-payments/os-micro-frontend-shared 0.3.246 → 0.3.247

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.
Files changed (149) hide show
  1. package/build/_chunks/{chunk-LYLC5A5R.js → chunk-2TEDNP2G.js} +1 -1
  2. package/build/_chunks/{chunk-4VGIPNYZ.js → chunk-5QXPAJWO.js} +1 -1
  3. package/build/_chunks/{chunk-KZGSM2JY.js → chunk-6IIAQUUK.js} +1 -1
  4. package/build/_chunks/{chunk-SHM2FONS.js → chunk-6TC3HE2J.js} +1 -1
  5. package/build/_chunks/{chunk-2ZJH27XO.js → chunk-6XFK3FBM.js} +1 -1
  6. package/build/_chunks/{chunk-KT5N4ENC.js → chunk-74T2P2DI.js} +1 -1
  7. package/build/_chunks/{chunk-ZNG2PLND.js → chunk-7BC26ES3.js} +1 -1
  8. package/build/_chunks/{chunk-G2HCO4KW.js → chunk-7HGWMTG5.js} +1 -1
  9. package/build/_chunks/{chunk-5HM27XEJ.js → chunk-7UXWUUSC.js} +1 -1
  10. package/build/_chunks/{chunk-W7J5RYUV.js → chunk-7Y5OFXS3.js} +1 -1
  11. package/build/_chunks/chunk-7YA2ZJK2.js +2 -0
  12. package/build/_chunks/{chunk-JVG5UN4Z.js → chunk-AFZXDM2P.js} +1 -1
  13. package/build/_chunks/{chunk-XA6PS7NH.js → chunk-AIGHGP5B.js} +1 -1
  14. package/build/_chunks/{chunk-KHWWD7J3.js → chunk-ALCLM4Q4.js} +1 -1
  15. package/build/_chunks/{chunk-IRSOFOW4.js → chunk-B2YAQVYT.js} +1 -1
  16. package/build/_chunks/{chunk-Q4LS63CQ.js → chunk-BGLVDXUY.js} +1 -1
  17. package/build/_chunks/{chunk-6ELMQ3AM.js → chunk-BOLP7MMA.js} +1 -1
  18. package/build/_chunks/{chunk-UD4BRMOT.js → chunk-BT3UVL7P.js} +1 -1
  19. package/build/_chunks/{chunk-MX4PENFY.js → chunk-DCBLRIF5.js} +1 -1
  20. package/build/_chunks/{chunk-JJX36QPC.js → chunk-ECTKELII.js} +1 -1
  21. package/build/_chunks/{chunk-H6KCP5WM.js → chunk-FIYP3ZOV.js} +1 -1
  22. package/build/_chunks/{chunk-FLQCQEHB.js → chunk-FOPADEWF.js} +1 -1
  23. package/build/_chunks/{chunk-CC7EFANR.js → chunk-HYQHLNHN.js} +1 -1
  24. package/build/_chunks/{chunk-YWA3HTWT.js → chunk-J2BWFYQR.js} +1 -1
  25. package/build/_chunks/{chunk-3NUBEJJA.js → chunk-J7QYO7VF.js} +1 -1
  26. package/build/_chunks/{chunk-U5UZTT2I.js → chunk-KZEFSEPK.js} +1 -1
  27. package/build/_chunks/{chunk-UA5TIEDO.js → chunk-L3YJCK4S.js} +1 -1
  28. package/build/_chunks/{chunk-DFFLKF4P.js → chunk-LFUN2LDH.js} +1 -1
  29. package/build/_chunks/{chunk-4N3FBJNL.js → chunk-LIL6WT4C.js} +1 -1
  30. package/build/_chunks/{chunk-OSHM7QKM.js → chunk-LXNWEXDA.js} +1 -1
  31. package/build/_chunks/{chunk-7OM4OZ7R.js → chunk-N2NRDIX7.js} +1 -1
  32. package/build/_chunks/{chunk-HKC2AO7Q.js → chunk-N4FY6YQH.js} +1 -1
  33. package/build/_chunks/{chunk-L65TSVYE.js → chunk-NYJGWFJT.js} +1 -1
  34. package/build/_chunks/{chunk-VQBMOP6H.js → chunk-O3S6R2ZW.js} +1 -1
  35. package/build/_chunks/{chunk-3VJ65CKN.js → chunk-OFJUINIE.js} +1 -1
  36. package/build/_chunks/{chunk-IZDDMEFF.js → chunk-OJNERB3L.js} +1 -1
  37. package/build/_chunks/chunk-PI3EDHDX.js +1 -0
  38. package/build/_chunks/{chunk-366SHD2Z.js → chunk-RCDGEYAF.js} +1 -1
  39. package/build/_chunks/{chunk-P3DNTJ2A.js → chunk-RELMZYBK.js} +1 -1
  40. package/build/_chunks/{chunk-A2EIPJEB.js → chunk-RLD5CRLM.js} +1 -1
  41. package/build/_chunks/{chunk-PW65L7RT.js → chunk-RMVM33KN.js} +1 -1
  42. package/build/_chunks/{chunk-YPDHRUOH.js → chunk-RWVFAVMU.js} +1 -1
  43. package/build/_chunks/{chunk-ZOOP22CX.js → chunk-TEX4F257.js} +1 -1
  44. package/build/_chunks/{chunk-AJJSWLJL.js → chunk-TNT6LPG6.js} +2 -2
  45. package/build/_chunks/{chunk-CWB7XNU7.js → chunk-TSYTKL7B.js} +1 -1
  46. package/build/_chunks/chunk-U256MJMM.js +2 -0
  47. package/build/_chunks/{chunk-CXHNLMKI.js → chunk-U6FITGCU.js} +1 -1
  48. package/build/_chunks/{chunk-GDTR32HP.js → chunk-UF2EN2FL.js} +1 -1
  49. package/build/_chunks/{chunk-GXUVKR7C.js → chunk-UOSPFZFL.js} +1 -1
  50. package/build/_chunks/{chunk-T2OFNSM4.js → chunk-VXWMLX6J.js} +1 -1
  51. package/build/_chunks/{chunk-55OTIRJ3.js → chunk-WP2PBXEG.js} +1 -1
  52. package/build/_chunks/{chunk-EJ6HUZR5.js → chunk-WSJJHYS2.js} +1 -1
  53. package/build/_chunks/{chunk-PHYUVPED.js → chunk-WUP4TVDI.js} +1 -1
  54. package/build/_chunks/{chunk-MKMNDEWM.js → chunk-XMBYYJDJ.js} +1 -1
  55. package/build/_chunks/{chunk-PNFFSKB6.js → chunk-YPOZVOUV.js} +1 -1
  56. package/build/_chunks/{chunk-J76ZW2JS.js → chunk-Z4W7NSLP.js} +1 -1
  57. package/build/_chunks/{chunk-DV25U65X.js → chunk-Z7FUZSNV.js} +1 -1
  58. package/build/components/ActionsDropdownMenu/index.js +1 -1
  59. package/build/components/ActiveFilterChip/index.js +1 -1
  60. package/build/components/Alert/index.js +1 -1
  61. package/build/components/AppServices/index.js +1 -1
  62. package/build/components/AppServicesBar/index.js +1 -1
  63. package/build/components/AppWindowWrapper/index.js +1 -1
  64. package/build/components/AreaChart/index.js +1 -1
  65. package/build/components/AvatarStack/index.js +1 -1
  66. package/build/components/Calender/index.js +1 -1
  67. package/build/components/Card/index.js +1 -1
  68. package/build/components/ColorPicker/index.js +1 -1
  69. package/build/components/ColumnViews/index.js +1 -1
  70. package/build/components/ConfirmDialog/index.js +1 -1
  71. package/build/components/CountryFilter/index.js +1 -1
  72. package/build/components/CurrenciesMenu/index.js +1 -1
  73. package/build/components/CurrencyAmount/index.js +1 -1
  74. package/build/components/CurrencyAmountInput/index.js +1 -1
  75. package/build/components/DateFilter/index.js +1 -1
  76. package/build/components/DeviceIcon/index.js +1 -1
  77. package/build/components/DropdownMenu/index.js +1 -1
  78. package/build/components/ErrorToast/index.js +1 -1
  79. package/build/components/FileDropbox/index.js +1 -1
  80. package/build/components/FilePreview/index.js +1 -1
  81. package/build/components/FileUploader/index.js +1 -1
  82. package/build/components/FilterDropdown/index.js +1 -1
  83. package/build/components/Filters/index.js +1 -1
  84. package/build/components/FormSelect/index.js +1 -1
  85. package/build/components/GroupedSelect/index.js +1 -1
  86. package/build/components/HeatMap/index.js +1 -1
  87. package/build/components/IconWithBadge/index.js +1 -1
  88. package/build/components/InputBase/index.js +1 -1
  89. package/build/components/Inputs/index.js +1 -1
  90. package/build/components/JSONViewer/index.js +1 -1
  91. package/build/components/ListColumnFilter/index.js +1 -1
  92. package/build/components/ListHeader/index.js +1 -1
  93. package/build/components/Logo/index.js +1 -1
  94. package/build/components/MultiSelect/index.js +1 -1
  95. package/build/components/NestedDropdown/index.js +1 -1
  96. package/build/components/NestedMultiSelect/index.js +1 -1
  97. package/build/components/PaymentSourceFilter/index.js +1 -1
  98. package/build/components/PhoneFilter/index.js +1 -1
  99. package/build/components/PhoneInput/index.js +1 -1
  100. package/build/components/ProgressRing/index.js +1 -1
  101. package/build/components/RadioGroup/index.js +1 -1
  102. package/build/components/RangeCalender/index.js +1 -1
  103. package/build/components/RatingCount/index.js +1 -1
  104. package/build/components/ReferenceTypeFilter/index.js +1 -1
  105. package/build/components/SearchButton/index.js +1 -1
  106. package/build/components/SearchInput/index.js +1 -1
  107. package/build/components/Sidebar/constants.d.ts +7 -1
  108. package/build/components/Sidebar/icons.d.ts +3 -0
  109. package/build/components/Sidebar/index.d.ts +1 -1
  110. package/build/components/Sidebar/index.js +1 -1
  111. package/build/components/Sidebar/style.d.ts +6 -4
  112. package/build/components/Sidebar/type.d.ts +21 -17
  113. package/build/components/Sidebar/utils.d.ts +17 -0
  114. package/build/components/StatusBar/index.js +1 -1
  115. package/build/components/StatusButton/index.js +1 -1
  116. package/build/components/StatusFilter/index.js +1 -1
  117. package/build/components/StatusIcons/index.js +1 -1
  118. package/build/components/StatusLabel/index.js +1 -1
  119. package/build/components/TableCells/index.js +1 -1
  120. package/build/components/TableReports/index.js +1 -1
  121. package/build/components/TextInput/index.js +1 -1
  122. package/build/components/Timepicker/index.js +1 -1
  123. package/build/components/Toolbar/index.js +1 -1
  124. package/build/components/TreeDropdown/index.js +1 -1
  125. package/build/components/VerificationIcon/index.js +1 -1
  126. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  127. package/build/components/VirtualTables/index.js +1 -1
  128. package/build/components/Widget/index.js +1 -1
  129. package/build/components/index.d.ts +1 -1
  130. package/build/components/index.js +1 -1
  131. package/build/components/primitives/Accordion/type.d.ts +2 -0
  132. package/build/components/primitives/index.js +1 -1
  133. package/build/datetime/components/ZonedDateHintViewer/ZonedDateHintViewer.d.ts +22 -0
  134. package/build/datetime/components/index.d.ts +1 -0
  135. package/build/datetime/components/index.js +1 -1
  136. package/build/datetime/format.d.ts +2 -0
  137. package/build/datetime/index.d.ts +4 -4
  138. package/build/datetime/index.js +1 -1
  139. package/build/datetime/range.d.ts +2 -0
  140. package/build/datetime/wallClock.d.ts +8 -0
  141. package/build/datetime/zoneOffset.d.ts +2 -0
  142. package/build/index.js +1 -1
  143. package/build/theme/_v2/type.d.ts +5 -1
  144. package/build/theme/index.js +1 -1
  145. package/package.json +2 -2
  146. package/build/_chunks/chunk-2K4GOQNK.js +0 -2
  147. package/build/_chunks/chunk-OGUTYP7U.js +0 -1
  148. package/build/_chunks/chunk-OIWYMPWX.js +0 -1
  149. package/build/_chunks/chunk-TXE2HSXL.js +0 -1
@@ -1 +0,0 @@
1
- import m from'dayjs';import B from'dayjs/plugin/calendar.js';import H from'dayjs/plugin/customParseFormat.js';import j from'dayjs/plugin/timezone.js';import K from'dayjs/plugin/utc.js';import {getTimezone,getCountry}from'countries-and-timezones';m.extend(K);m.extend(j);m.extend(H);m.extend(B);var y=m;var g=6e4,I=/(?:Z|[+-]\d{2}:?\d{2})$/i,A="YYYY-MM-DD HH:mm:ss.SSS",k=e=>`${String(e.year).padStart(4,"0")}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")} ${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}.${String(e.ms).padStart(3,"0")}`,X=e=>({year:e.year(),month:e.month()+1,day:e.date(),hour:e.hour(),minute:e.minute(),second:e.second(),ms:e.millisecond()}),R=e=>Number.isNaN(e.getTime())?void 0:{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),ms:e.getMilliseconds()},G=[31,28,31,30,31,30,31,31,30,31,30,31],J=e=>e%4===0&&(e%100!==0||e%400===0),V=68,q=e=>e>=48&&e<=57,C=e=>e.length>0&&[...e].every(t=>t>="0"&&t<="9"),S=e=>{let t=e.month===2&&J(e.year)?29:G[e.month-1];return e.month<1||e.month>12||e.day<1||e.day>(t??0)||e.hour>23||e.minute>59||e.second>59?void 0:e},Q=e=>{let t=0;for(;t<e.length&&(q(e.charCodeAt(t))||e[t]==="-"||e[t]==="/");)t++;return t},v=e=>{let t=e.split("-"),n=[4,2,2];return t.length===3&&t.every((o,r)=>o.length===n[r]&&C(o))?t.map(Number):void 0},ee=e=>{let t=e.split("/");if(t.length!==3||!t.every(C))return;let[n,o,r]=t;if(n.length>2||o.length>2||r.length<2||r.length>4)return;let i=Number(r);return [i<100?(i>V?1900:2e3)+i:i,Number(o),Number(n)]},te=e=>{let[t,n,o="0"]=e.split(":"),[r,i="0"]=o.split(".");if(!(t===void 0||n===void 0)&&!(i.length>3||![t,n,r,i].every(C)))return {hour:Number(t),minute:Number(n),second:Number(r),ms:Number(i.padEnd(3,"0"))}},Z=e=>{let t=e.trim(),n=t.slice(0,Q(t)),o=n.includes("/"),r=o?ee(n):v(n);if(!r)return;let[i,c,F]=r,p=t.slice(n.length).trim(),[M="",L=""]=(p[0]==="T"||p[0]==="t"?p.slice(1):p).trim().split(" ").filter(Boolean),u=L.toUpperCase();if(u&&(!o||u!=="AM"&&u!=="PM"))return;if(!M)return S({year:i,month:c,day:F,hour:0,minute:0,second:0,ms:0});let d=te(M);if(!d||u&&(d.hour<1||d.hour>12))return;let P=u?d.hour%12+(u==="PM"?12:0):d.hour;return S({year:i,month:c,day:F,...d,hour:P})},xe=e=>{let t=Z(e);return t&&W(t)},W=e=>{let t=new Date(0);return t.setFullYear(e.year,e.month-1,e.day),t.setHours(e.hour,e.minute,e.second,e.ms),t},a=e=>{if(e==null||e==="")return;if(e instanceof Date)return Number.isNaN(e.getTime())?void 0:e;if(typeof e=="number"){if(!Number.isFinite(e))return;let o=new Date(e);return Number.isNaN(o.getTime())?void 0:o}let t=e.trim();if(!I.test(t))return;let n=new Date(t);return Number.isNaN(n.getTime())?void 0:n},D=(e,t)=>{let n=a(e);if(n)try{return y(n).tz(t)}catch{return}},h=(e,t)=>{let n=D(e,t);if(n)return W(X(n))};var ne=(e,t)=>{try{let n=y.tz(k(e),A,t);return (e.year<100?n.year(e.year):n).toDate()}catch{return}},s=(e,t)=>{if(e==null||e==="")return;if(!(e instanceof Date)){if(typeof e=="number"){if(!Number.isFinite(e))return;let o=new Date(e);return Number.isNaN(o.getTime())?void 0:o}if(I.test(e.trim()))return a(e)}let n=typeof e=="string"?Z(e):R(e);if(n)return ne(n,t)};var w=(e,t=2)=>String(e).padStart(t,"0"),O=new Map,oe=e=>{let t=O.get(e);if(t)return t;try{let n=new Intl.DateTimeFormat("en-US",{timeZone:e,hourCycle:"h23",era:"short",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"});return O.set(e,n),n}catch{return}},re=e=>{let t=r=>Number(e.find(i=>i.type===r)?.value??0),n=t("year");return {year:e.find(r=>r.type==="era")?.value==="BC"?1-n:n,month:t("month"),day:t("day"),hour:t("hour"),minute:t("minute"),second:t("second"),ms:0}},ie=e=>{let t=new Date(Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.ms));return t.setUTCFullYear(e.year),t.getTime()},f=(e,t=Date.now())=>{let n=oe(e),o=a(t);if(!n||!o)return;let r=Math.floor(o.getTime()/1e3)*1e3;return Math.round((ie(re(n.formatToParts(o)))-r)/g)},U=(e,t=Date.now())=>{let n=f(e,t);if(n===void 0)return "";let o=Math.abs(n);return `UTC${n<0?"-":"+"}${w(Math.floor(o/60))}:${w(o%60)}`};var we=(e,t)=>{if(!(typeof e!="number"||!Number.isFinite(e))&&!(Math.abs(e)>864e13))return s(new Date(e).toISOString().replace(/Z$/,""),t)},T=(e,t)=>{let n=a(e);if(!n)return;let o=f(t,n);if(o!==void 0)return n.getTime()+o*g};var ae=e=>{let t=", h:mma",n=e?"MMM DD":"MMM DD, YYYY";return {sameDay:`[Today]${t}`,nextDay:`[Tomorrow]${t}`,lastDay:`[Yesterday]${t}`,sameElse:`${n}${t}`,lastWeek:`${n}${t}`,nextWeek:`${n}${t}`}},Ye=(e,t,n)=>{let o=D(e,t),r=D(Date.now(),t);return !o||!r?"":o.calendar(r,n??ae(o.isSame(r,"year")))};var se=(e,t)=>{let n=s(e?.[0],t),o=s(e?.[1],t);return n&&o?[n,o]:void 0},Y=(e,t)=>{let n=se(e,t),o=n&&h(n[0],t),r=n&&h(n[1],t);return o&&r?[o,r]:void 0},ue=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),de=e=>e.getHours()===0&&e.getMinutes()===0||e.getHours()===23&&e.getMinutes()===59,$=(e,t)=>s(new Date(e.getFullYear(),e.getMonth(),e.getDate()),t),_=(e,t)=>{let n=s(new Date(e.getFullYear(),e.getMonth(),e.getDate()+1),t);return n&&new Date(n.getTime()-1)},Le=(e,t)=>{let n=Y(e,t);return n?!ue(n[0],n[1])||de(n[1]):false},Pe=(e,t)=>{let n=Y(e,t);if(!n)return;let o=$(n[0],t),r=_(n[1],t);return o&&r?[o,r]:void 0},Be=(e,t)=>{let n=h(Date.now(),t);if(!n)return;let o=Number.isFinite(e)&&e>=1?Math.floor(e):1,r=new Date(n.getFullYear(),n.getMonth(),n.getDate()-(o-1)),i=_(n,t),c=$(r,t);return c&&i?[c,i]:void 0},He=(e,t)=>({from:T(e[0],t),to:T(e[1],t)});var fe=new Intl.DisplayNames(["en"],{type:"region"}),N=e=>{try{return fe.of(e)}catch{return}},le={US:"America/New_York",CA:"America/Toronto",BR:"America/Sao_Paulo",MX:"America/Mexico_City",AR:"America/Argentina/Buenos_Aires",CL:"America/Santiago",AU:"Australia/Sydney",NZ:"Pacific/Auckland",RU:"Europe/Moscow",UA:"Europe/Kyiv",ES:"Europe/Madrid",PT:"Europe/Lisbon",ID:"Asia/Jakarta",KZ:"Asia/Almaty",UZ:"Asia/Tashkent",MN:"Asia/Ulaanbaatar"},l="UTC",E={id:l,countryCode:l,countryName:l},x=e=>{if(!e)return false;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),!0}catch{return false}},z=e=>{if(!e)return;if(e===l)return E;let t=getTimezone(e);if(t){let[n]=t.countries;return {id:e,countryCode:n??"",countryName:N(n)??n??e}}return x(e)?{id:e,countryCode:"",countryName:e}:void 0},pe=e=>{let t=e?.trim().toUpperCase();if(!t)return;if(t===l)return E;let n=getCountry(t),o=le[t]??n?.timezones[0];if(o)return {id:o,countryCode:t,countryName:N(t)??n?.name??t}},Ge=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||void 0}catch{return}},b=(e,t)=>({zone:e,countryCode:t?.trim().toUpperCase()||z(e)?.countryCode||""}),Je=e=>{if(e){if(typeof e=="string")return x(e)?b(e):void 0;if(!(!e.timezone||!x(e.timezone)))return b(e.timezone,e.countryCode)}},Ve=e=>{let t=pe(e);return t?b(t.id,t.countryCode):void 0},qe=(e,t)=>!!e&&!!t&&e.zone===t.zone&&e.countryCode===t.countryCode,ye=(e,t=Date.now())=>{let n=U(e.zone,t).replace("UTC","GMT");return n?`(${n}) ${N(e.countryCode)??z(e.zone)?.countryName??e.zone}`:""},Qe=e=>({timezone:e.zone,countryCode:e.countryCode,label:ye(e),offset:(f(e.zone)??0)/60});export{xe as a,h as b,s as c,f as d,U as e,we as f,T as g,Ye as h,se as i,Le as j,Pe as k,Be as l,He as m,l as n,x as o,z as p,pe as q,Ge as r,b as s,Je as t,Ve as u,qe as v,ye as w,Qe as x};