@theroutingcompany/components 0.0.30-alpha.5 → 0.0.30-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.
- package/README.md +1 -1
- package/dist/trc-components.es.js +14 -1
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +14 -1
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/types/components/IconButton/IconButton.d.ts +1 -1
- package/types/components/MultiSelect/MultiSelect.d.ts +2 -2
- package/types/components/Select/Select.d.ts +0 -22
|
@@ -466,6 +466,8 @@ object-assign
|
|
|
466
466
|
/* testing this out here for now */
|
|
467
467
|
width: 100%;
|
|
468
468
|
flex: 1;
|
|
469
|
+
|
|
470
|
+
max-height: ${p.sizing_600};
|
|
469
471
|
`,Ti=P.div`
|
|
470
472
|
display: flex;
|
|
471
473
|
align-items: center;
|
|
@@ -793,6 +795,7 @@ object-assign
|
|
|
793
795
|
position: relative;
|
|
794
796
|
width: 100%;
|
|
795
797
|
`,Q6=P.input`
|
|
798
|
+
box-sizing: border-box;
|
|
796
799
|
appearance: none;
|
|
797
800
|
border: none;
|
|
798
801
|
padding: 6px 8px;
|
|
@@ -805,7 +808,9 @@ object-assign
|
|
|
805
808
|
margin: 0;
|
|
806
809
|
flex: 1;
|
|
807
810
|
width: 0;
|
|
811
|
+
height: ${p.sizing_600};
|
|
808
812
|
`,e4=P.button`
|
|
813
|
+
box-sizing: border-box;
|
|
809
814
|
appearance: none;
|
|
810
815
|
border: none;
|
|
811
816
|
background: ${p.color_gray_6};
|
|
@@ -813,9 +818,10 @@ object-assign
|
|
|
813
818
|
margin: 0;
|
|
814
819
|
border-top-right-radius: ${p.border_radius_400};
|
|
815
820
|
border-bottom-right-radius: ${p.border_radius_400};
|
|
821
|
+
height: ${p.sizing_600};
|
|
816
822
|
`,t4=P($e.ChevronLeft)`
|
|
817
823
|
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
|
|
824
|
+
`;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
825
|
display: flex;
|
|
820
826
|
flex-direction: column;
|
|
821
827
|
|
|
@@ -2223,6 +2229,11 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var Q=se(Z,re,G,ie,le+".
|
|
|
2223
2229
|
|
|
2224
2230
|
margin-top: ${p.spacing_100};
|
|
2225
2231
|
`,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`
|
|
2232
|
+
width: ${p.sizing_500};
|
|
2233
|
+
height: ${p.sizing_600};
|
|
2234
|
+
display: flex;
|
|
2235
|
+
justify-content: center;
|
|
2236
|
+
align-items: center;
|
|
2226
2237
|
color: ${p.color_deprecated_fill_secondary_enabled};
|
|
2227
2238
|
`,pN=P(Gc.primary)`
|
|
2228
2239
|
display: flex;
|
|
@@ -2239,6 +2250,8 @@ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var Q=se(Z,re,G,ie,le+".
|
|
|
2239
2250
|
|
|
2240
2251
|
font-family: ${p.font_family_pingo};
|
|
2241
2252
|
|
|
2253
|
+
max-height: ${p.sizing_600};
|
|
2254
|
+
|
|
2242
2255
|
&::placeholder {
|
|
2243
2256
|
font-weight: 400;
|
|
2244
2257
|
font-style: normal;
|