@theroutingcompany/components 0.0.30-alpha.5 → 0.0.30-alpha.8

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.
@@ -793,6 +793,7 @@ object-assign
793
793
  position: relative;
794
794
  width: 100%;
795
795
  `,Q6=P.input`
796
+ box-sizing: border-box;
796
797
  appearance: none;
797
798
  border: none;
798
799
  padding: 6px 8px;
@@ -805,7 +806,9 @@ object-assign
805
806
  margin: 0;
806
807
  flex: 1;
807
808
  width: 0;
809
+ height: ${p.sizing_600};
808
810
  `,e4=P.button`
811
+ box-sizing: border-box;
809
812
  appearance: none;
810
813
  border: none;
811
814
  background: ${p.color_gray_6};
@@ -813,9 +816,10 @@ object-assign
813
816
  margin: 0;
814
817
  border-top-right-radius: ${p.border_radius_400};
815
818
  border-bottom-right-radius: ${p.border_radius_400};
819
+ height: ${p.sizing_600};
816
820
  `,t4=P($e.ChevronLeft)`
817
821
  transform: rotate(-90deg);
818
- `;function Vc(e){const{tooltipContent:t}=e,{contains:r}=lh({sensitivity:"base"}),n=nC({...e,defaultFilter:r}),o=Y.useRef(null),a=Y.useRef(null),i=Y.useRef(null),l=Y.useRef(null),{buttonProps:c,inputProps:d,listBoxProps:u,labelProps:f}=ZT({...e,inputRef:a,buttonRef:o,listBoxRef:i,popoverRef:l},n),{buttonProps:m}=vn(c,o);return te(Jv,{children:[te(Be,{...f,mb:p.spacing_200,children:[e.label,t?w(br,{children:t}):null]}),w(xc,{height:p.sizing_600,right:w(e4,{...m,ref:o,children:w(t4,{style:{width:18,height:18},"aria-hidden":"true"})}),children:w(Q6,{...d,ref:a,isFocused:n.isFocused,style:{height:p.sizing_600}})}),n.isOpen?w(Rc,{popoverRef:l,triggerRef:a,state:n,isNonModal:!0,placement:"bottom start",children:w(Xv,{...u,listBoxRef:i,state:n})}):null]})}Vc.Item=ko,Vc.Section=Di;const r4=P(gt)`
822
+ `;function Vc(e){const{tooltipContent:t}=e,{contains:r}=lh({sensitivity:"base"}),n=nC({...e,defaultFilter:r}),o=Y.useRef(null),a=Y.useRef(null),i=Y.useRef(null),l=Y.useRef(null),{buttonProps:c,inputProps:d,listBoxProps:u,labelProps:f}=ZT({...e,inputRef:a,buttonRef:o,listBoxRef:i,popoverRef:l},n),{buttonProps:m}=vn(c,o);return te(Jv,{children:[te(Be,{...f,mb:p.spacing_200,children:[e.label,t?w(br,{children:t}):null]}),w(xc,{height:p.sizing_600,right:w(e4,{...m,ref:o,children:w(t4,{style:{width:18,height:18},"aria-hidden":"true"})}),children:w(Q6,{...d,ref:a,isFocused:n.isFocused})}),n.isOpen?w(Rc,{popoverRef:l,triggerRef:a,state:n,isNonModal:!0,placement:"bottom start",children:w(Xv,{...u,listBoxRef:i,state:n})}):null]})}Vc.Item=ko,Vc.Section=Di;const r4=P(gt)`
819
823
  display: flex;
820
824
  flex-direction: column;
821
825
 
@@ -2223,6 +2227,11 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var Q=se(Z,re,G,ie,le+".
2223
2227
 
2224
2228
  margin-top: ${p.spacing_100};
2225
2229
  `,sN=({label:e,value:t})=>te(Ke,{role:"group",children:[w(Be,{htmlFor:`labeled-text-${e}`,color:p.color_gray_52,size:"medium",bold:!0,children:e}),w(lN,{id:`labeled-text-${e}`,children:t})]});function cN(e,t,r){const{disallowEmptySelection:n,isDisabled:o}=e,a=yi({usage:"search",sensitivity:"base"}),i=s.useMemo(()=>new wi(t.collection,t.disabledKeys,null,a),[t.collection,t.disabledKeys,a]),{menuTriggerProps:l,menuProps:c}=vc({isDisabled:o,type:"listbox"},t,r),d=v=>{if(t.selectionMode==="single")switch(v.key){case"ArrowLeft":{v.preventDefault();const y=t.selectedKeys.size>0?i.getKeyAbove(t.selectedKeys.values().next().value):i.getFirstKey();y&&t.setSelectedKeys([y]);break}case"ArrowRight":{v.preventDefault();const y=t.selectedKeys.size>0?i.getKeyBelow(t.selectedKeys.values().next().value):i.getFirstKey();y&&t.setSelectedKeys([y]);break}}},{typeSelectProps:u}=hc({keyboardDelegate:i,selectionManager:t.selectionManager,onTypeSelect(v){t.setSelectedKeys([v])}}),{labelProps:f,fieldProps:m}=Po({...e,labelElementType:"span"});u.onKeyDown=u.onKeyDownCapture,delete u.onKeyDownCapture;const h=Ct(e,{labelable:!0}),b=pe(u,l,m),g=tt();return{labelProps:{...f,onClick:()=>{var v;e.isDisabled||((v=r.current)==null||v.focus(),Xp("keyboard"))}},triggerProps:pe(h,{...b,onKeyDown:sr(b.onKeyDown,d,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[b["aria-labelledby"],b["aria-label"]&&!b["aria-labelledby"]?b.id:null,g].filter(Boolean).join(" "),onFocus(v){t.isFocused||(e.onFocus&&e.onFocus(v),t.setFocused(!0))},onBlur(v){t.isOpen||(e.onBlur&&e.onBlur(v),t.setFocused(!1))}}),valueProps:{id:g},menuProps:{...c,disallowEmptySelection:n,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:v=>{v.currentTarget.contains(v.relatedTarget)||(e.onBlur&&e.onBlur(v),t.setFocused(!1))},"aria-labelledby":[m["aria-labelledby"],b["aria-label"]&&!m["aria-labelledby"]?b.id:null].filter(Boolean).join(" ")}}}function dN(e){const{collection:t,disabledKeys:r,selectionManager:n,selectionManager:{setSelectedKeys:o,selectedKeys:a,selectionMode:i}}=Mg(e),l=[],c=a.size!==0?Array.from(a).map(d=>{const u=t.getItem(d);return u||l.push(d),u}).filter(ZP):null;return l.length&&console.warn(`Select: Keys "${l.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:r,selectionManager:n,selectionMode:i,selectedKeys:a,setSelectedKeys:o.bind(n),selectedItems:c}}function uN(e){const[t,r]=s.useState(!1),n=$c(e),o=dN({...e,onSelectionChange:a=>{e.onSelectionChange!=null&&(a==="all"?e.onSelectionChange(new Set(o.collection.getKeys())):e.onSelectionChange(a)),e.selectionMode==="single"&&n.close()}});return{...o,...n,close(){n.close()},open(){o.collection.size!==0&&n.open()},toggle(a){o.collection.size!==0&&n.toggle(a)},isFocused:t,setFocused:r}}const fN=P.span`
2230
+ width: ${p.sizing_500};
2231
+ height: ${p.sizing_600};
2232
+ display: flex;
2233
+ justify-content: center;
2234
+ align-items: center;
2226
2235
  color: ${p.color_deprecated_fill_secondary_enabled};
2227
2236
  `,pN=P(Gc.primary)`
2228
2237
  display: flex;
@@ -2239,6 +2248,8 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var Q=se(Z,re,G,ie,le+".
2239
2248
 
2240
2249
  font-family: ${p.font_family_pingo};
2241
2250
 
2251
+ max-height: ${p.sizing_600};
2252
+
2242
2253
  &::placeholder {
2243
2254
  font-weight: 400;
2244
2255
  font-style: normal;