@primer/components 0.0.0-20211030141453 → 0.0.0-20211030151352
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 +7 -1
- package/dist/browser.esm.js +1 -2
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +1 -2
- package/dist/browser.umd.js.map +1 -1
- package/lib/ActionList/Item.js +3 -3
- package/lib/ActionList2/Divider.d.ts +3 -2
- package/lib/ActionList2/Divider.js +10 -5
- package/lib/ActionList2/Item.js +21 -5
- package/lib/ActionList2/List.js +11 -1
- package/lib/ActionList2/MenuContext.d.ts +10 -0
- package/lib/ActionList2/MenuContext.js +15 -0
- package/lib/ActionList2/Selection.js +12 -3
- package/lib/ActionList2/index.d.ts +1 -2
- package/lib/ActionMenu2.d.ts +310 -0
- package/lib/ActionMenu2.js +91 -0
- package/lib/drafts.d.ts +1 -0
- package/lib/drafts.js +13 -0
- package/lib-esm/ActionList/Item.js +3 -3
- package/lib-esm/ActionList2/Divider.d.ts +3 -2
- package/lib-esm/ActionList2/Divider.js +8 -5
- package/lib-esm/ActionList2/Item.js +19 -5
- package/lib-esm/ActionList2/List.js +9 -1
- package/lib-esm/ActionList2/MenuContext.d.ts +10 -0
- package/lib-esm/ActionList2/MenuContext.js +3 -0
- package/lib-esm/ActionList2/Selection.js +10 -3
- package/lib-esm/ActionList2/index.d.ts +1 -2
- package/lib-esm/ActionMenu2.d.ts +310 -0
- package/lib-esm/ActionMenu2.js +67 -0
- package/lib-esm/drafts.d.ts +1 -0
- package/lib-esm/drafts.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,11 +1,17 @@
|
|
1
1
|
# @primer/components
|
2
2
|
|
3
|
-
## 0.0.0-
|
3
|
+
## 0.0.0-20211030151352
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#1619](https://github.com/primer/react/pull/1619) [`38e45b33`](https://github.com/primer/react/commit/38e45b33c5efe70134d2459e39ddcfb66941957d) Thanks [@siddharthkp](https://github.com/siddharthkp)! - Add composable `ActionMenu` to `@primer/components/drafts`
|
4
8
|
|
5
9
|
### Patch Changes
|
6
10
|
|
7
11
|
- Fake entry to force publishing
|
8
12
|
|
13
|
+
* [#1596](https://github.com/primer/react/pull/1596) [`5c6dc644`](https://github.com/primer/react/commit/5c6dc644c1e68b36d309deac653aca189f1fa624) Thanks [@dmarcey](https://github.com/dmarcey)! - Fix alignment of items in ActionList (single-select) if some of the items have wrapping text.
|
14
|
+
|
9
15
|
## 32.1.0
|
10
16
|
|
11
17
|
### Minor Changes
|
package/dist/browser.esm.js
CHANGED
@@ -517,13 +517,13 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
517
517
|
display: flex;
|
518
518
|
justify-content: center;
|
519
519
|
align-items: center;
|
520
|
+
flex-shrink: 0;
|
520
521
|
`,Ca=g(Ea)`
|
521
522
|
svg {
|
522
523
|
fill: ${({variant:e,disabled:t})=>Ba(e,t).iconColor};
|
523
524
|
font-size: ${It("fontSizes.0")};
|
524
525
|
}
|
525
526
|
`,za=g(Ca)`
|
526
|
-
flex-shrink: 0;
|
527
527
|
display: flex;
|
528
528
|
flex-direction: column;
|
529
529
|
justify-content: center;
|
@@ -549,7 +549,6 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
549
549
|
rect {
|
550
550
|
fill: ${({selected:e})=>It(e?"colors.accent.fg":"colors.canvas.default")};
|
551
551
|
stroke: ${({selected:e})=>It(e?"colors.accent.fg":"colors.border.default")};
|
552
|
-
shape-rendering: auto; // this is a workaround to override global style in github/github
|
553
552
|
}
|
554
553
|
path {
|
555
554
|
fill: ${It("colors.fg.onEmphasis")};
|