@primer/components 0.0.0-202110320949 → 0.0.0-202110321848

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.
@@ -932,6 +932,7 @@
932
932
  height: 0;
933
933
  vertical-align: middle;
934
934
  width: 0;
935
+ ${yt};
935
936
  ${Kt};
936
937
  `,ri=i.default.ul`
937
938
  background-clip: padding-box;
@@ -975,6 +976,7 @@
975
976
  list-style: none;
976
977
  }
977
978
  ${e=>e.direction?Jn(e.theme,e.direction):""};
979
+ ${yt};
978
980
  ${Kt};
979
981
  `,ai=i.default.li`
980
982
  display: block;
@@ -1007,6 +1009,7 @@
1007
1009
  background-color: ${xt("colors.accent.emphasis")};
1008
1010
  outline: none;
1009
1011
  }
1012
+ ${yt};
1010
1013
  ${Kt};
1011
1014
  `;ri.defaultProps={direction:"sw"},ri.displayName="Dropdown.Menu",ai.displayName="Dropdown.Item",ei.defaultProps=jr.defaultProps,ei.displayName="Dropdown.Button",ti.displayName="Dropdown.Caret",Qn.defaultProps=Wn.defaultProps;var oi=Object.assign(Qn,{Caret:ti,Menu:ri,Item:ai,Button:ei});const ni=n.default.forwardRef((({children:e,...t},r)=>n.default.createElement(jr,Tt({ref:r,type:"button"},t),e,n.default.createElement(Ca,{icon:la,ml:1}))));function ii({renderAnchor:e=(e=>n.default.createElement(ni,e)),anchorRef:r,placeholder:a,selectedItem:o,onChange:i,overlayProps:l,items:d,open:s,onOpenChange:c,...f}){const[u,g]=jo(s,c,!1),p=t.useCallback((()=>g(!0)),[g]),b=t.useCallback((()=>g(!1)),[g]),m=yr(r),h=t.useMemo((()=>null===e?null:t=>{var r;return e({...t,children:null!==(r=null==o?void 0:o.text)&&void 0!==r?r:a})}),[a,e,null==o?void 0:o.text]),v=t.useMemo((()=>d.map((e=>({...e,role:"option",selected:e===o,onAction:(t,r)=>{var a;null===(a=e.onAction)||void 0===a||a.call(e,t,r),r.defaultPrevented||(b(),null==i||i(e===o?void 0:e))}})))),[d,i,b,o]);return n.default.createElement(_o,{renderAnchor:h,anchorRef:m,open:u,onOpen:p,onClose:b,overlayProps:l},n.default.createElement(Oo,Tt({},f,{role:"listbox",items:v})))}ii.displayName="DropdownMenu",ii.displayName="DropdownMenu";var li=i.default.div`
1012
1015
  ${yt};
@@ -1194,7 +1197,6 @@
1194
1197
  padding-bottom: ${xt("space.4")};
1195
1198
  margin-bottom: ${xt("space.4")};
1196
1199
  border-bottom: 1px solid ${xt("colors.border.default")};
1197
- ${yt};
1198
1200
  ${Kt};
1199
1201
  `;const Ii=i.default.a`
1200
1202
  display: inline-block;