@theroutingcompany/components 0.0.74-alpha.5 → 0.0.74-alpha.6

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.
@@ -2354,7 +2354,7 @@ Valid keys: `+JSON.stringify(Object.keys(V),null," "));var ee=ce(Z,re,Y,le,ie+"
2354
2354
  border-radius: ${p.border_radius_400};
2355
2355
 
2356
2356
  width: 100%;
2357
- `;function HN(e){const t=[],r=e.find(v=>v.type==="day"),n=e.find(v=>v.type==="month"),o=e.find(v=>v.type==="year"),a=e.find(v=>v.type==="hour"),i=e.find(v=>v.type==="minute"),l=e.find(v=>v.type==="dayPeriod"),s=e.find(v=>v.type==="literal");if(!r||!n||!o||!s)throw new Error("Invalid date field segments");const d={...r,text:r.text.padStart(2,"0")},u={...n,text:n.text.padStart(2,"0")},f=a&&{...a,text:a.text.padStart(2,"0")},m=i&&{...i,text:i.text.padStart(2,"0")},h={...s,text:"-"},b={...s,text:":"},g={...s,text:","},y={...s,text:"<spacer>"};let $=!1;return a&&f&&($=!0,t.push(f)),i&&m&&($=!0,t.push(b),t.push(m)),l&&($=!0,t.push(l)),$&&(t.push(g),t.push(y)),t.push(u,h,d,h,o),t}function GN({granularity:e="minute",paddingSize:t=h$.small,timeZone:r="America/New_York",...n}){const o=je(),a=Il({}),i=c.useRef(null),{menuTriggerProps:{onPress:l,onPressStart:s,...d},menuProps:u}=Cl({},a,i),f=m$({hourCycle:12,granularity:e,defaultValue:n.defaultValue,locale:o.locale,createCalendar:yd}),m=HN(f.segments),h=c.useRef(null),{labelProps:b,fieldProps:g}=d$(n,f,h),y=J(Ut,{children:[J(D5,{...g,ref:h,id:g.id,paddingSize:t,children:[w(ot,{flex:"1",children:m==null?void 0:m.filter($=>!($.type==="literal"&&$.text===" ")).map(($,v)=>w(g$,{segment:$,state:f},v))}),w(WN,{as:"button",type:"button",...d,onClick:()=>a.toggle(),children:w(ye.CalendarToday,{style:{width:p.sizing_350,height:p.sizing_350,all:"unset",verticalAlign:"top"}})})]}),!!a.isOpen&&w(Ml,{state:a,targetRef:h,placement:"bottom start",...u,children:w(N0,{defaultValue:f.value,defaultFocusedValue:f.value,onChange:$=>{f.setValue($)},timeZone:r})})]});return J(tu,{children:[J(Ke,{...b,mb:p.spacing_100,children:[n.label,n.tooltipContent?w(Rt,{children:n.tooltipContent}):null]}),y]})}const YN=F.default(Ir)`
2357
+ `;function HN(e){const t=[],r=e.find(v=>v.type==="day"),n=e.find(v=>v.type==="month"),o=e.find(v=>v.type==="year"),a=e.find(v=>v.type==="hour"),i=e.find(v=>v.type==="minute"),l=e.find(v=>v.type==="dayPeriod"),s=e.find(v=>v.type==="literal");if(!r||!n||!o||!s)throw new Error("Invalid date field segments");const d={...r,text:r.text.padStart(2,"0")},u={...n,text:n.text.padStart(2,"0")},f=a&&{...a,text:a.text.padStart(2,"0")},m=i&&{...i,text:i.text.padStart(2,"0")},h={...s,text:"-"},b={...s,text:":"},g={...s,text:","},y={...s,text:"<spacer>"};let $=!1;return a&&f&&($=!0,t.push(f)),i&&m&&($=!0,t.push(b),t.push(m)),l&&($=!0,t.push(l)),$&&(t.push(g),t.push(y)),t.push(u,h,d,h,o),t}function GN({granularity:e="minute",paddingSize:t=h$.small,timeZone:r="America/New_York",...n}){const o=je(),a=Il({}),i=c.useRef(null),{menuTriggerProps:{onPress:l,onPressStart:s,...d},menuProps:u}=Cl({},a,i),f=m$({hourCycle:12,granularity:e,value:n.value,defaultValue:n.defaultValue,locale:o.locale,createCalendar:yd}),m=HN(f.segments),h=c.useRef(null),{labelProps:b,fieldProps:g}=d$(n,f,h),y=J(Ut,{children:[J(D5,{...g,ref:h,id:g.id,paddingSize:t,children:[w(ot,{flex:"1",children:m==null?void 0:m.filter($=>!($.type==="literal"&&$.text===" ")).map(($,v)=>w(g$,{segment:$,state:f},v))}),w(WN,{as:"button",type:"button",...d,onClick:()=>a.toggle(),children:w(ye.CalendarToday,{style:{width:p.sizing_350,height:p.sizing_350,all:"unset",verticalAlign:"top"}})})]}),!!a.isOpen&&w(Ml,{state:a,targetRef:h,placement:"bottom start",...u,children:w(N0,{defaultValue:f.value,defaultFocusedValue:f.value,onChange:$=>{f.setValue($)},timeZone:r})})]});return J(tu,{children:[J(Ke,{...b,mb:p.spacing_100,children:[n.label,n.tooltipContent?w(Rt,{children:n.tooltipContent}):null]}),y]})}const YN=F.default(Ir)`
2358
2358
  font-family: ${p.font_family_pingo};
2359
2359
  font-size: 0.875rem;
2360
2360
  font-style: normal;