@theroutingcompany/components 0.0.66-alpha.3 → 0.0.66-alpha.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.
@@ -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)=>{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`
1286
+ `;function G8({isUnavailable:e,isDisabled:t,isSelectionStart:r,isSelectionEnd:n,isFocusVisible:o,isSelected:a,isToday:i}){return[e&&"disabled",t&&"disabled",r&&"selection-start",n&&"selection-end",a&&"selected",o&&"focused",i&&"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,isUnavailable:p,formattedDate:m}=j8({date:t,isDisabled:n},e,i),h=!O4(o,t),b=e.highlightedRange?Ae(t,e.highlightedRange.start):d,g=e.highlightedRange?Ae(t,e.highlightedRange.end):d,{locale:v}=Ue(),$=Li(t,v),y=d&&(b||$===0||t.day===1),_=d&&(g||$===6||t.day===t.calendar.getDaysInMonth(t)),D=[y&&"left",_&&"right"].filter(Boolean).join(" "),{focusProps:P,isFocusVisible:L}=Zr(),T=Ae(t,r),x=G8({isUnavailable:p,isDisabled:u,isSelected:d,isSelectionStart:b,isSelectionEnd:g,isFocusVisible:L,isToday:T});return w(U8,{...l,children:w(W8,{...me(s,P),ref:i,hidden:h,"data-rounded":D,"data-state":x,children:w(H8,{"data-state":x,single:a,children:m})})})}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;