@theroutingcompany/components 0.0.66-alpha.0 → 0.0.66-alpha.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.
|
@@ -1283,7 +1283,7 @@ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var ee=ce(q,re,Y,ie,le+"
|
|
|
1283
1283
|
width: 31px;
|
|
1284
1284
|
height: 31px;
|
|
1285
1285
|
}
|
|
1286
|
-
`;function G8({isDisabled:e,isSelectionStart:t,isSelectionEnd:r,isFocusVisible:n,isSelected:o,isToday:a}){return[e&&"disabled",t&&"selection-start",r&&"selection-end",o&&"selected",n&&"focused",a&&"today"].filter(Boolean).join(" ")}function iv({state:e,date:t,today:r,disabled:n,currentMonth:o,single:a}){const i=c.useRef(null),{cellProps:l,buttonProps:s,isSelected:d,isDisabled:u,formattedDate:p}=j8({date:t,isDisabled:n},e,i),m=!O4(o,t),h=e.highlightedRange?Ae(t,e.highlightedRange.start):d,b=e.highlightedRange?Ae(t,e.highlightedRange.end):d,{locale:g}=Ue(),v=Li(t,g),$=d&&(h||v===0||t.day===1),y=d&&(b||v===6||t.day===t.calendar.getDaysInMonth(t)),_=[$&&"left",y&&"right"].filter(Boolean).join(" "),{focusProps:D,isFocusVisible:P}=Zr(),L=Ae(t,r),T=G8({isDisabled:u,isSelected:d,isSelectionStart:h,isSelectionEnd:b,isFocusVisible:P,isToday:L});return w(U8,{...l,children:w(W8,{...me(s,D),ref:i,hidden:m,"data-rounded":_,"data-state":T,children:w(H8,{"data-state":T,single:a,children:p})})})}function ol({state:e,...t}){const{offset:r={},timeZone:n,single:o}=t,{locale:a}=Ue(),i=e.visibleRange.start.add(r),l=zi(i),s=Jr(n),{gridProps:d,headerProps:u,weekDays:p}=B8({startDate:i,endDate:l},e),m=V4(i,a);return J("table",{...d,children:[w("thead",{...u,children:w("tr",{children:p.map((h,b)=>w("th",{style:{textAlign:"center"},children:h},b))})}),w("tbody",{children:[...Array.from({length:m}).keys()].map(h=>w("tr",{children:e.getDatesInWeek(h,i).map((b,g)=>{if(b){const
|
|
1286
|
+
`;function G8({isDisabled:e,isSelectionStart:t,isSelectionEnd:r,isFocusVisible:n,isSelected:o,isToday:a}){return[e&&"disabled",t&&"selection-start",r&&"selection-end",o&&"selected",n&&"focused",a&&"today"].filter(Boolean).join(" ")}function iv({state:e,date:t,today:r,disabled:n,currentMonth:o,single:a}){const i=c.useRef(null),{cellProps:l,buttonProps:s,isSelected:d,isDisabled:u,formattedDate:p}=j8({date:t,isDisabled:n},e,i),m=!O4(o,t),h=e.highlightedRange?Ae(t,e.highlightedRange.start):d,b=e.highlightedRange?Ae(t,e.highlightedRange.end):d,{locale:g}=Ue(),v=Li(t,g),$=d&&(h||v===0||t.day===1),y=d&&(b||v===6||t.day===t.calendar.getDaysInMonth(t)),_=[$&&"left",y&&"right"].filter(Boolean).join(" "),{focusProps:D,isFocusVisible:P}=Zr(),L=Ae(t,r),T=G8({isDisabled:u,isSelected:d,isSelectionStart:h,isSelectionEnd:b,isFocusVisible:P,isToday:L});return w(U8,{...l,children:w(W8,{...me(s,D),ref:i,hidden:m,"data-rounded":_,"data-state":T,children:w(H8,{"data-state":T,single:a,children:p})})})}function ol({state:e,...t}){const{offset:r={},timeZone:n,single:o}=t,{locale:a}=Ue(),i=e.visibleRange.start.add(r),l=zi(i),s=Jr(n),{gridProps:d,headerProps:u,weekDays:p}=B8({startDate:i,endDate:l},e),m=V4(i,a);return J("table",{...d,children:[w("thead",{...u,children:w("tr",{children:p.map((h,b)=>w("th",{style:{textAlign:"center"},children:h},b))})}),w("tbody",{children:[...Array.from({length:m}).keys()].map(h=>w("tr",{children:e.getDatesInWeek(h,i).map((b,g)=>{var v;if(b){const $=e.anchorDate!==void 0&&e.anchorDate!==null?Y8({date:b,anchorDate:e.anchorDate})||((v=t.isDateUnavailable)==null?void 0:v.call(t,b)):!1;return w(iv,{state:e,date:b,today:s,disabled:$,currentMonth:i,single:o},g)}else return w("td",{},g)})},h))})]})}function Y8({date:e,anchorDate:t,min:r=-6,max:n=6}){const o=e.compare(t)<r,a=e.compare(t)>n;return o||a}const Cd={small:"32px",large:"40px"},lv={circle:f.border_radius_circle,square:f.border_radius_400},al=F.default.button`
|
|
1287
1287
|
all: unset;
|
|
1288
1288
|
appearance: none;
|
|
1289
1289
|
flex-shrink: 0;
|
|
@@ -1400,7 +1400,7 @@ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var ee=ce(q,re,Y,ie,le+"
|
|
|
1400
1400
|
color: ${f.color_black} !important;
|
|
1401
1401
|
font-weight: ${f.font_weight_100};
|
|
1402
1402
|
background-color: ${f.color_white};
|
|
1403
|
-
`;function n2({timeZone:e,...t}){const{locale:r}=Ue(),n=t.width??"fit-content",o=Jr(e),a=t2({...t,visibleDuration:{months:2},locale:r,createCalendar:dg,defaultFocusedValue:o}),i=c.useRef(null),{calendarProps:l,prevButtonProps:s,nextButtonProps:d}=V8(t,a,i);return console.log("calendarProps: ",l),J(r2,{width:n,p:f.spacing_100,...l,ref:i,children:[w(sv,{state:a,calendarProps:l,prevButtonProps:s,nextButtonProps:d}),J(gt,{gap:f.spacing_400,justifyContent:"space-between",children:[w(ol,{state:a,timeZone:e}),w(ol,{state:a,offset:{months:1},timeZone:e})]})]})}const pv=F.default(Vn)`
|
|
1403
|
+
`;function n2({timeZone:e,...t}){const{locale:r}=Ue(),n=t.width??"fit-content";console.log("props: ",t);const o=Jr(e),a=t2({...t,visibleDuration:{months:2},locale:r,createCalendar:dg,defaultFocusedValue:o}),i=c.useRef(null),{calendarProps:l,prevButtonProps:s,nextButtonProps:d}=V8(t,a,i);return console.log("state: ",a),console.log("calendarProps: ",l),J(r2,{width:n,p:f.spacing_100,...l,ref:i,children:[w(sv,{state:a,calendarProps:l,prevButtonProps:s,nextButtonProps:d}),J(gt,{gap:f.spacing_400,justifyContent:"space-between",children:[w(ol,{state:a,timeZone:e,isDateUnavailable:t.isDateUnavailable}),w(ol,{state:a,offset:{months:1},timeZone:e,isDateUnavailable:t.isDateUnavailable})]})]})}const pv=F.default(Vn)`
|
|
1404
1404
|
display: grid;
|
|
1405
1405
|
place-content: center;
|
|
1406
1406
|
border-radius: ${f.border_radius_400};
|