kwant-ui 3.39.1-dev.3 → 3.39.2-dev.3

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.
@@ -25,6 +25,7 @@ export declare const CALENDAR_CONSTANTS: {
25
25
  NOW: DateObject[];
26
26
  LAST_HOUR: DateObject[];
27
27
  YESTERDAY: DateObject[];
28
+ CUSTOM_RANGE_LOCATION_PLAN: DateObject[];
28
29
  };
29
30
  export declare const getSidebarOptions: (projectDuration?: ICalendar.ProjectDuration) => {
30
31
  title: string;
package/dist/index.es.js CHANGED
@@ -2054,7 +2054,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
2054
2054
  `,Va=n.div`
2055
2055
  display: flex;
2056
2056
  cursor: pointer;
2057
- `,Ca={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 Aa;!function(e){var t,r;(t=e.ClockTypeEnum||(e.ClockTypeEnum={})).am="am",t.pm="pm",(r=e.DatpickerNavigationDirectionEnum||(e.DatpickerNavigationDirectionEnum={})).right="right",r.left="left"}(Aa||(Aa={}));const La=(e,t)=>!!(t>1&&e),za=["Su","Mo","Tu","We","Th","Fr","Sa"],Ba=(e,t,r,n)=>new On.DateObject(((e,t,r)=>kt(e).subtract(t,r))(e,t,r)[n]("week").format("YYYY-MM-DD")),ka={TODAY:[new On.DateObject,new On.DateObject],CURRENT_WEEK:[(new On.DateObject).toFirstOfWeek(),(new On.DateObject).toLastOfWeek()],LAST_7_DAYS:[(new On.DateObject).subtract(6,"days"),new On.DateObject],LAST_WEEK:[Ba(new Date,1,"week","startOf"),Ba(new Date,1,"week","endOf")],LAST_2_WEEKS:[Ba(new Date,2,"week","startOf"),Ba(new Date,1,"week","endOf")],LAST_3_WEEKS:[Ba(new Date,3,"week","startOf"),Ba(new Date,1,"week","endOf")],LAST_4_WEEKS:[Ba(new Date,4,"week","startOf"),Ba(new Date,1,"week","endOf")],LAST_30_DAYS:[(new On.DateObject).subtract(29,"days"),new On.DateObject],THIS_MONTH:[(new On.DateObject).toFirstOfMonth(),(new On.DateObject).toLastOfMonth()],PAST_MONTH:[new On.DateObject(kt().subtract(1,"month").startOf("month").format("YYYY-MM-DD")),new On.DateObject(kt().subtract(1,"month").endOf("month").format("YYYY-MM-DD"))],CUSTOM_RANGE:[],NOW:[(new On.DateObject).set("second",0),(new On.DateObject).set("second",0)],LAST_HOUR:[(new On.DateObject).subtract(1,"hour").set("second",0),(new On.DateObject).set("second",0)],YESTERDAY:[new On.DateObject(kt().subtract(1,"day").startOf("day").format("YYYY-MM-DD")),new On.DateObject(kt().subtract(1,"day").endOf("day").format("YYYY-MM-DD"))]},Sa=e=>e instanceof On.DateObject?!kt(e.format("YYYY-MM-DD")).isSame(kt().startOf("month"),"month"):!kt(e).isSame(kt().startOf("month"),"month"),Ra=[{key:"from",label:"From"},{key:"to",label:"To"}],Da=e=>{const t=("0"+e).slice(-2);return"0"===t?"00":t},Ia=(t,r)=>e(ja,{onClick:e=>{e.stopPropagation(),r?.(e)},children:t===Aa.DatpickerNavigationDirectionEnum.right?Ca.chevronRight:Ca.chevronLeft}),Ta=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Na=["Su","Mo","Tu","We","Th","Fr","Sa"],Fa=e=>{const t=kt().format("YYYY-MM-DD"),{dateRange:r,timeRange:n}=e||{},{startDate:a,endDate:c}=r||{},{from:i,to:o}=n||{};return{startDate:`${a||t}T${Qa(`${i?.hour}:${i?.minute}:${i?.clockType}`)}:00`,endDate:`${c||t}T${Qa(`${o?.hour}:${o?.minute}:${o?.clockType}`)}:00`}},Qa=e=>{const[t,r,n]=e.split(":"),a="pm"===n,c=parseInt(t),i=parseInt(r);let o=c;a&&c<12?o+=12:a&&c>12?o-=12:a||12!==c||(o=0);return`${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`},$a=e=>{const t=String(e>12?e-12:e);return Da(t)},Ya=e=>{const{startDate:t,endDate:r}=e,[n,a]=t.split("T"),[c,i]=a.split(":"),[o,s]=r.split("T"),[l,h]=s.split(":"),v=Number(c),p=Number(l);return{startDateOnly:n,endDateOnly:o,time:{from:{hour:"00"===$a(v)?"12":$a(v),minute:i,clockType:v>=12?Aa.ClockTypeEnum.pm:Aa.ClockTypeEnum.am},to:{hour:"00"===$a(p)?"12":$a(p),minute:h,clockType:p>=12?Aa.ClockTypeEnum.pm:Aa.ClockTypeEnum.am}}}},Ua=(e,t,r)=>`${kt(e).format(t)||""} ${"00"===r.hour?"12":r.hour}:${r.minute||"00"} ${r.clockType.toUpperCase()}`,Wa=(e,t)=>{const{startDateOnly:r,endDateOnly:n,time:a}=Ya(e);return`${Ua(r,t,a.from)} ~ ${Ua(n,t,a.to)}`},Xa=n.div`
2057
+ `,Ca={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 Aa;!function(e){var t,r;(t=e.ClockTypeEnum||(e.ClockTypeEnum={})).am="am",t.pm="pm",(r=e.DatpickerNavigationDirectionEnum||(e.DatpickerNavigationDirectionEnum={})).right="right",r.left="left"}(Aa||(Aa={}));const La=(e,t)=>!!(t>1&&e),za=["Su","Mo","Tu","We","Th","Fr","Sa"],Ba=(e,t,r,n)=>new On.DateObject(((e,t,r)=>kt(e).subtract(t,r))(e,t,r)[n]("week").format("YYYY-MM-DD")),ka={TODAY:[new On.DateObject,new On.DateObject],CURRENT_WEEK:[(new On.DateObject).toFirstOfWeek(),(new On.DateObject).toLastOfWeek()],LAST_7_DAYS:[(new On.DateObject).subtract(6,"days"),new On.DateObject],LAST_WEEK:[Ba(new Date,1,"week","startOf"),Ba(new Date,1,"week","endOf")],LAST_2_WEEKS:[Ba(new Date,2,"week","startOf"),Ba(new Date,1,"week","endOf")],LAST_3_WEEKS:[Ba(new Date,3,"week","startOf"),Ba(new Date,1,"week","endOf")],LAST_4_WEEKS:[Ba(new Date,4,"week","startOf"),Ba(new Date,1,"week","endOf")],LAST_30_DAYS:[(new On.DateObject).subtract(29,"days"),new On.DateObject],THIS_MONTH:[(new On.DateObject).toFirstOfMonth(),(new On.DateObject).toLastOfMonth()],PAST_MONTH:[new On.DateObject(kt().subtract(1,"month").startOf("month").format("YYYY-MM-DD")),new On.DateObject(kt().subtract(1,"month").endOf("month").format("YYYY-MM-DD"))],CUSTOM_RANGE:[],NOW:[(new On.DateObject).set("second",0),(new On.DateObject).set("second",0)],LAST_HOUR:[(new On.DateObject).subtract(1,"hour").set("second",0),(new On.DateObject).set("second",0)],YESTERDAY:[new On.DateObject(kt().subtract(1,"day").startOf("day").format("YYYY-MM-DD")),new On.DateObject(kt().subtract(1,"day").endOf("day").format("YYYY-MM-DD"))],CUSTOM_RANGE_LOCATION_PLAN:[new On.DateObject,new On.DateObject]},Sa=e=>e instanceof On.DateObject?!kt(e.format("YYYY-MM-DD")).isSame(kt().startOf("month"),"month"):!kt(e).isSame(kt().startOf("month"),"month"),Ra=[{key:"from",label:"From"},{key:"to",label:"To"}],Da=e=>{const t=("0"+e).slice(-2);return"0"===t?"00":t},Ia=(t,r)=>e(ja,{onClick:e=>{e.stopPropagation(),r?.(e)},children:t===Aa.DatpickerNavigationDirectionEnum.right?Ca.chevronRight:Ca.chevronLeft}),Ta=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Na=["Su","Mo","Tu","We","Th","Fr","Sa"],Fa=e=>{const t=kt().format("YYYY-MM-DD"),{dateRange:r,timeRange:n}=e||{},{startDate:a,endDate:c}=r||{},{from:i,to:o}=n||{};return{startDate:`${a||t}T${Qa(`${i?.hour}:${i?.minute}:${i?.clockType}`)}:00`,endDate:`${c||t}T${Qa(`${o?.hour}:${o?.minute}:${o?.clockType}`)}:00`}},Qa=e=>{const[t,r,n]=e.split(":"),a="pm"===n,c=parseInt(t),i=parseInt(r);let o=c;a&&c<12?o+=12:a&&c>12?o-=12:a||12!==c||(o=0);return`${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`},$a=e=>{const t=String(e>12?e-12:e);return Da(t)},Ya=e=>{const{startDate:t,endDate:r}=e,[n,a]=t.split("T"),[c,i]=a.split(":"),[o,s]=r.split("T"),[l,h]=s.split(":"),v=Number(c),p=Number(l);return{startDateOnly:n,endDateOnly:o,time:{from:{hour:"00"===$a(v)?"12":$a(v),minute:i,clockType:v>=12?Aa.ClockTypeEnum.pm:Aa.ClockTypeEnum.am},to:{hour:"00"===$a(p)?"12":$a(p),minute:h,clockType:p>=12?Aa.ClockTypeEnum.pm:Aa.ClockTypeEnum.am}}}},Ua=(e,t,r)=>`${kt(e).format(t)||""} ${"00"===r.hour?"12":r.hour}:${r.minute||"00"} ${r.clockType.toUpperCase()}`,Wa=(e,t)=>{const{startDateOnly:r,endDateOnly:n,time:a}=Ya(e);return`${Ua(r,t,a.from)} ~ ${Ua(n,t,a.to)}`},Xa=n.div`
2058
2058
  border-radius: 8px;
2059
2059
  width: fit-content;
2060
2060
  display: flex;
@@ -4142,6 +4142,12 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
4142
4142
 
4143
4143
  }
4144
4144
 
4145
+ .rmdp-today.rmdp-range.start, .rmdp-today.rmdp-range.end{
4146
+ span {
4147
+ color: ${e=>e.theme.blue.blue1000} !important;
4148
+ }
4149
+ }
4150
+
4145
4151
 
4146
4152
  .rmdp-day.rmdp-range{
4147
4153
  display: flex;
package/dist/index.js CHANGED
@@ -2054,7 +2054,7 @@
2054
2054
  `,Yn=t.div`
2055
2055
  display: flex;
2056
2056
  cursor: pointer;
2057
- `,Un={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 Wn;!function(e){var t,r;(t=e.ClockTypeEnum||(e.ClockTypeEnum={})).am="am",t.pm="pm",(r=e.DatpickerNavigationDirectionEnum||(e.DatpickerNavigationDirectionEnum={})).right="right",r.left="left"}(Wn||(Wn={}));const Xn=(e,t)=>!!(t>1&&e),Kn=["Su","Mo","Tu","We","Th","Fr","Sa"],qn=(e,t,r,n)=>new Dr.DateObject(((e,t,r)=>st(e).subtract(t,r))(e,t,r)[n]("week").format("YYYY-MM-DD")),Gn={TODAY:[new Dr.DateObject,new Dr.DateObject],CURRENT_WEEK:[(new Dr.DateObject).toFirstOfWeek(),(new Dr.DateObject).toLastOfWeek()],LAST_7_DAYS:[(new Dr.DateObject).subtract(6,"days"),new Dr.DateObject],LAST_WEEK:[qn(new Date,1,"week","startOf"),qn(new Date,1,"week","endOf")],LAST_2_WEEKS:[qn(new Date,2,"week","startOf"),qn(new Date,1,"week","endOf")],LAST_3_WEEKS:[qn(new Date,3,"week","startOf"),qn(new Date,1,"week","endOf")],LAST_4_WEEKS:[qn(new Date,4,"week","startOf"),qn(new Date,1,"week","endOf")],LAST_30_DAYS:[(new Dr.DateObject).subtract(29,"days"),new Dr.DateObject],THIS_MONTH:[(new Dr.DateObject).toFirstOfMonth(),(new Dr.DateObject).toLastOfMonth()],PAST_MONTH:[new Dr.DateObject(st().subtract(1,"month").startOf("month").format("YYYY-MM-DD")),new Dr.DateObject(st().subtract(1,"month").endOf("month").format("YYYY-MM-DD"))],CUSTOM_RANGE:[],NOW:[(new Dr.DateObject).set("second",0),(new Dr.DateObject).set("second",0)],LAST_HOUR:[(new Dr.DateObject).subtract(1,"hour").set("second",0),(new Dr.DateObject).set("second",0)],YESTERDAY:[new Dr.DateObject(st().subtract(1,"day").startOf("day").format("YYYY-MM-DD")),new Dr.DateObject(st().subtract(1,"day").endOf("day").format("YYYY-MM-DD"))]},Jn=e=>e instanceof Dr.DateObject?!st(e.format("YYYY-MM-DD")).isSame(st().startOf("month"),"month"):!st(e).isSame(st().startOf("month"),"month"),ea=[{key:"from",label:"From"},{key:"to",label:"To"}],ta=e=>{const t=("0"+e).slice(-2);return"0"===t?"00":t},ra=(t,r)=>e.jsx($n,{onClick:e=>{e.stopPropagation(),r?.(e)},children:t===Wn.DatpickerNavigationDirectionEnum.right?Un.chevronRight:Un.chevronLeft}),na=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],aa=["Su","Mo","Tu","We","Th","Fr","Sa"],ca=e=>{const t=st().format("YYYY-MM-DD"),{dateRange:r,timeRange:n}=e||{},{startDate:a,endDate:c}=r||{},{from:i,to:o}=n||{};return{startDate:`${a||t}T${ia(`${i?.hour}:${i?.minute}:${i?.clockType}`)}:00`,endDate:`${c||t}T${ia(`${o?.hour}:${o?.minute}:${o?.clockType}`)}:00`}},ia=e=>{const[t,r,n]=e.split(":"),a="pm"===n,c=parseInt(t),i=parseInt(r);let o=c;a&&c<12?o+=12:a&&c>12?o-=12:a||12!==c||(o=0);return`${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`},oa=e=>{const t=String(e>12?e-12:e);return ta(t)},sa=e=>{const{startDate:t,endDate:r}=e,[n,a]=t.split("T"),[c,i]=a.split(":"),[o,s]=r.split("T"),[l,h]=s.split(":"),v=Number(c),p=Number(l);return{startDateOnly:n,endDateOnly:o,time:{from:{hour:"00"===oa(v)?"12":oa(v),minute:i,clockType:v>=12?Wn.ClockTypeEnum.pm:Wn.ClockTypeEnum.am},to:{hour:"00"===oa(p)?"12":oa(p),minute:h,clockType:p>=12?Wn.ClockTypeEnum.pm:Wn.ClockTypeEnum.am}}}},la=(e,t,r)=>`${st(e).format(t)||""} ${"00"===r.hour?"12":r.hour}:${r.minute||"00"} ${r.clockType.toUpperCase()}`,ha=t.div`
2057
+ `,Un={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 Wn;!function(e){var t,r;(t=e.ClockTypeEnum||(e.ClockTypeEnum={})).am="am",t.pm="pm",(r=e.DatpickerNavigationDirectionEnum||(e.DatpickerNavigationDirectionEnum={})).right="right",r.left="left"}(Wn||(Wn={}));const Xn=(e,t)=>!!(t>1&&e),Kn=["Su","Mo","Tu","We","Th","Fr","Sa"],qn=(e,t,r,n)=>new Dr.DateObject(((e,t,r)=>st(e).subtract(t,r))(e,t,r)[n]("week").format("YYYY-MM-DD")),Gn={TODAY:[new Dr.DateObject,new Dr.DateObject],CURRENT_WEEK:[(new Dr.DateObject).toFirstOfWeek(),(new Dr.DateObject).toLastOfWeek()],LAST_7_DAYS:[(new Dr.DateObject).subtract(6,"days"),new Dr.DateObject],LAST_WEEK:[qn(new Date,1,"week","startOf"),qn(new Date,1,"week","endOf")],LAST_2_WEEKS:[qn(new Date,2,"week","startOf"),qn(new Date,1,"week","endOf")],LAST_3_WEEKS:[qn(new Date,3,"week","startOf"),qn(new Date,1,"week","endOf")],LAST_4_WEEKS:[qn(new Date,4,"week","startOf"),qn(new Date,1,"week","endOf")],LAST_30_DAYS:[(new Dr.DateObject).subtract(29,"days"),new Dr.DateObject],THIS_MONTH:[(new Dr.DateObject).toFirstOfMonth(),(new Dr.DateObject).toLastOfMonth()],PAST_MONTH:[new Dr.DateObject(st().subtract(1,"month").startOf("month").format("YYYY-MM-DD")),new Dr.DateObject(st().subtract(1,"month").endOf("month").format("YYYY-MM-DD"))],CUSTOM_RANGE:[],NOW:[(new Dr.DateObject).set("second",0),(new Dr.DateObject).set("second",0)],LAST_HOUR:[(new Dr.DateObject).subtract(1,"hour").set("second",0),(new Dr.DateObject).set("second",0)],YESTERDAY:[new Dr.DateObject(st().subtract(1,"day").startOf("day").format("YYYY-MM-DD")),new Dr.DateObject(st().subtract(1,"day").endOf("day").format("YYYY-MM-DD"))],CUSTOM_RANGE_LOCATION_PLAN:[new Dr.DateObject,new Dr.DateObject]},Jn=e=>e instanceof Dr.DateObject?!st(e.format("YYYY-MM-DD")).isSame(st().startOf("month"),"month"):!st(e).isSame(st().startOf("month"),"month"),ea=[{key:"from",label:"From"},{key:"to",label:"To"}],ta=e=>{const t=("0"+e).slice(-2);return"0"===t?"00":t},ra=(t,r)=>e.jsx($n,{onClick:e=>{e.stopPropagation(),r?.(e)},children:t===Wn.DatpickerNavigationDirectionEnum.right?Un.chevronRight:Un.chevronLeft}),na=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],aa=["Su","Mo","Tu","We","Th","Fr","Sa"],ca=e=>{const t=st().format("YYYY-MM-DD"),{dateRange:r,timeRange:n}=e||{},{startDate:a,endDate:c}=r||{},{from:i,to:o}=n||{};return{startDate:`${a||t}T${ia(`${i?.hour}:${i?.minute}:${i?.clockType}`)}:00`,endDate:`${c||t}T${ia(`${o?.hour}:${o?.minute}:${o?.clockType}`)}:00`}},ia=e=>{const[t,r,n]=e.split(":"),a="pm"===n,c=parseInt(t),i=parseInt(r);let o=c;a&&c<12?o+=12:a&&c>12?o-=12:a||12!==c||(o=0);return`${o.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`},oa=e=>{const t=String(e>12?e-12:e);return ta(t)},sa=e=>{const{startDate:t,endDate:r}=e,[n,a]=t.split("T"),[c,i]=a.split(":"),[o,s]=r.split("T"),[l,h]=s.split(":"),v=Number(c),p=Number(l);return{startDateOnly:n,endDateOnly:o,time:{from:{hour:"00"===oa(v)?"12":oa(v),minute:i,clockType:v>=12?Wn.ClockTypeEnum.pm:Wn.ClockTypeEnum.am},to:{hour:"00"===oa(p)?"12":oa(p),minute:h,clockType:p>=12?Wn.ClockTypeEnum.pm:Wn.ClockTypeEnum.am}}}},la=(e,t,r)=>`${st(e).format(t)||""} ${"00"===r.hour?"12":r.hour}:${r.minute||"00"} ${r.clockType.toUpperCase()}`,ha=t.div`
2058
2058
  border-radius: 8px;
2059
2059
  width: fit-content;
2060
2060
  display: flex;
@@ -4142,6 +4142,12 @@
4142
4142
 
4143
4143
  }
4144
4144
 
4145
+ .rmdp-today.rmdp-range.start, .rmdp-today.rmdp-range.end{
4146
+ span {
4147
+ color: ${e=>e.theme.blue.blue1000} !important;
4148
+ }
4149
+ }
4150
+
4145
4151
 
4146
4152
  .rmdp-day.rmdp-range{
4147
4153
  display: flex;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kwant-ui",
3
- "version": "3.39.1-dev.3",
3
+ "version": "3.39.2-dev.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kwant-ui",
3
- "version": "3.39.1-dev.3",
3
+ "version": "3.39.2-dev.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",