@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.
package/CHANGELOG.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @primer/components
2
2
 
3
- ## 0.0.0-202110320949
3
+ ## 0.0.0-202110321848
4
4
 
5
5
  ### Major Changes
6
6
 
7
- - [#1558](https://github.com/primer/react/pull/1558) [`6c11d0f0`](https://github.com/primer/react/commit/6c11d0f0b31f29deae7c1fa25142356cac926307) Thanks [@jfuchs](https://github.com/jfuchs)! - Dropdown no longer accepts styled-system props. Please use the `sx` prop to extend Primer component styling instead. See also https://primer.style/react/overriding-styles for information about `sx` and https://primer.style/react/system-props for context on the removal.
7
+ - [#1568](https://github.com/primer/react/pull/1568) [`8ef9e7cb`](https://github.com/primer/react/commit/8ef9e7cbbab729c281d68e7b84c1db69e42ee791) Thanks [@jfuchs](https://github.com/jfuchs)! - Pagehead no longer accepts styled-system props. Please use the `sx` prop to extend Primer component styling instead. See also https://primer.style/react/overriding-styles for information about `sx` and https://primer.style/react/system-props for context on the removal.
8
8
 
9
9
  ### Minor Changes
10
10
 
@@ -932,6 +932,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
932
932
  height: 0;
933
933
  vertical-align: middle;
934
934
  width: 0;
935
+ ${It};
935
936
  ${rr};
936
937
  `,li=f.ul`
937
938
  background-clip: padding-box;
@@ -975,6 +976,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
975
976
  list-style: none;
976
977
  }
977
978
  ${e=>e.direction?ri(e.theme,e.direction):""};
979
+ ${It};
978
980
  ${rr};
979
981
  `,di=f.li`
980
982
  display: block;
@@ -1007,6 +1009,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
1007
1009
  background-color: ${Nt("colors.accent.emphasis")};
1008
1010
  outline: none;
1009
1011
  }
1012
+ ${It};
1010
1013
  ${rr};
1011
1014
  `;li.defaultProps={direction:"sw"},li.displayName="Dropdown.Menu",di.displayName="Dropdown.Item",ni.defaultProps=qr.defaultProps,ni.displayName="Dropdown.Button",ii.displayName="Dropdown.Caret",ai.defaultProps=Gn.defaultProps;var si=Object.assign(ai,{Caret:ii,Menu:li,Item:di,Button:ni});const ci=e.forwardRef((({children:t,...r},o)=>e.createElement(qr,Pt({ref:o,type:"button"},r),t,e.createElement(Lo,{icon:uo,ml:1}))));function fi({renderAnchor:t=(t=>e.createElement(ci,t)),anchorRef:r,placeholder:a,selectedItem:i,onChange:l,overlayProps:d,items:s,open:c,onOpenChange:f,...g}){const[u,p]=Ka(c,f,!1),b=o((()=>p(!0)),[p]),m=o((()=>p(!1)),[p]),h=zr(r),v=n((()=>null===t?null:e=>{var r;return t({...e,children:null!==(r=null==i?void 0:i.text)&&void 0!==r?r:a})}),[a,t,null==i?void 0:i.text]),x=n((()=>s.map((e=>({...e,role:"option",selected:e===i,onAction:(t,r)=>{var o;null===(o=e.onAction)||void 0===o||o.call(e,t,r),r.defaultPrevented||(m(),null==l||l(e===i?void 0:e))}})))),[s,l,m,i]);return e.createElement(Va,{renderAnchor:v,anchorRef:h,open:u,onOpen:b,onClose:m,overlayProps:d},e.createElement(Da,Pt({},g,{role:"listbox",items:x})))}fi.displayName="DropdownMenu",fi.displayName="DropdownMenu";var gi=f.div`
1012
1015
  ${It};
@@ -1194,7 +1197,6 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
1194
1197
  padding-bottom: ${Nt("space.4")};
1195
1198
  margin-bottom: ${Nt("space.4")};
1196
1199
  border-bottom: 1px solid ${Nt("colors.border.default")};
1197
- ${It};
1198
1200
  ${rr};
1199
1201
  `;const Hi=f.a`
1200
1202
  display: inline-block;