@theroutingcompany/components 0.0.28-alpha.2 → 0.0.28

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.
@@ -1270,7 +1270,7 @@ object-assign
1270
1270
  cursor: not-allowed;
1271
1271
  --input-border-color: revert;
1272
1272
  }
1273
- `;function Ob(e){const{locale:t}=Le(),r=Ck({...e,locale:t}),n=l.useRef(null),{labelProps:o,fieldProps:a}=mk(e,r,n);return console.log("state: ",r),re(Fk,{children:[e.label?w(Qe,{...o,htmlFor:a.id,children:e.label}):w(Qe,{srOnly:!0,...o,children:"Select Time"}),re(zk,{...a,ref:n,id:a.id,children:[r.segments.filter(i=>!(i.type==="literal"&&i.text===" ")).map((i,s)=>w(Lk,{segment:i,state:r},s)),r.validationState==="invalid"&&w("span",{"aria-hidden":"true",children:"🚫"})]})]})}function Lk({segment:e,state:t}){const r=l.useRef(null),{segmentProps:n}=bk(e,t,r),o={};e.isPlaceholder&&(o["data-placeholder"]=!0),console.log("segment.text: ",e.text),console.log("segment.type: ",e.type);const a=e.isPlaceholder?"":["hour","minute"].includes(e.type)?e.text.padStart(2,"0"):e.text;return re(Kk,{literal:e.type==="literal",...n,...o,style:{...n.style,minWidth:e.type==="literal"?0:"2ch",color:e.type==="dayPeriod"?m.color_deprecated_text_weak:"inherit"},ref:r,children:[w("span",{"aria-hidden":"true",style:{visibility:e.isPlaceholder?"visible":"hidden",display:"block",width:"100%",height:e.isPlaceholder?"":0,pointerEvents:"none"},children:e.placeholder}),a]})}const Rk=P(nk)`
1273
+ `;function Ob(e){const{locale:t}=Le(),r=Ck({...e,locale:t}),n=l.useRef(null),{labelProps:o,fieldProps:a}=mk(e,r,n);return re(Fk,{children:[e.label?w(Qe,{...o,htmlFor:a.id,children:e.label}):w(Qe,{srOnly:!0,...o,children:"Select Time"}),re(zk,{...a,ref:n,id:a.id,children:[r.segments.filter(i=>!(i.type==="literal"&&i.text===" ")).map((i,s)=>w(Lk,{segment:i,state:r},s)),r.validationState==="invalid"&&w("span",{"aria-hidden":"true",children:"🚫"})]})]})}function Lk({segment:e,state:t}){const r=l.useRef(null),{segmentProps:n}=bk(e,t,r),o={};e.isPlaceholder&&(o["data-placeholder"]=!0);const a=e.isPlaceholder?"":["hour","minute"].includes(e.type)?e.text.padStart(2,"0"):e.text;return re(Kk,{literal:e.type==="literal",...n,...o,style:{...n.style,minWidth:e.type==="literal"?0:"2ch",color:e.type==="dayPeriod"?m.color_deprecated_text_weak:"inherit"},ref:r,children:[w("span",{"aria-hidden":"true",style:{visibility:e.isPlaceholder?"visible":"hidden",display:"block",width:"100%",height:e.isPlaceholder?"":0,pointerEvents:"none"},children:e.placeholder}),a]})}const Rk=P(nk)`
1274
1274
  position: relative;
1275
1275
  font-family: ${m.font_family_pingo};
1276
1276
  display: flex;