@primer/components 0.0.0-202191916821 → 0.0.0-2021919182815
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 +3 -1
- package/dist/browser.esm.js +5 -5
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +5 -5
- package/dist/browser.umd.js.map +1 -1
- package/lib/ActionList/Item.js +3 -3
- package/lib/Button/Button.js +1 -1
- package/lib/Button/ButtonTableList.js +1 -1
- package/lib/Pagination/Pagination.js +1 -1
- package/lib/_TextInputWrapper.js +1 -1
- package/lib-esm/ActionList/Item.js +3 -3
- package/lib-esm/Button/Button.js +1 -1
- package/lib-esm/Button/ButtonTableList.js +1 -1
- package/lib-esm/Pagination/Pagination.js +1 -1
- package/lib-esm/_TextInputWrapper.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# @primer/components
|
2
2
|
|
3
|
-
## 0.0.0-
|
3
|
+
## 0.0.0-2021919182815
|
4
4
|
|
5
5
|
### Major Changes
|
6
6
|
|
@@ -12,6 +12,8 @@
|
|
12
12
|
|
13
13
|
- Fake entry to force publishing
|
14
14
|
|
15
|
+
* [#1512](https://github.com/primer/react/pull/1512) [`1e5ac406`](https://github.com/primer/react/commit/1e5ac406f8558a20248157a9bfe13ee4709890c8) Thanks [@pksjce](https://github.com/pksjce)! - Change disabled color from muted to custom primer disabled color
|
16
|
+
|
15
17
|
## 30.3.0
|
16
18
|
|
17
19
|
### Minor Changes
|
package/dist/browser.esm.js
CHANGED
@@ -45,7 +45,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
45
45
|
}
|
46
46
|
|
47
47
|
&:disabled {
|
48
|
-
color: ${It("colors.fg.
|
48
|
+
color: ${It("colors.primer.fg.disabled")};
|
49
49
|
background-color: ${It("colors.btn.bg")};
|
50
50
|
border-color: ${It("colors.btn.border")};
|
51
51
|
}
|
@@ -232,7 +232,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
232
232
|
&:disabled {
|
233
233
|
&,
|
234
234
|
&:hover {
|
235
|
-
color:
|
235
|
+
color: ${It("colors.primer.fg.disabled")};
|
236
236
|
cursor: default;
|
237
237
|
}
|
238
238
|
}
|
@@ -418,7 +418,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
418
418
|
background: ${It("colors.border.muted")};
|
419
419
|
margin-top: calc(${It("space.2")} - 1px);
|
420
420
|
margin-bottom: ${It("space.2")};
|
421
|
-
`;function $a(){return e.createElement(ka,null)}$a.displayName="Divider",$a.renderItem=$a;const Ta={default:{hover:{light:"rgba(46, 77, 108, 0.06)",dark:"rgba(201, 206, 212, 0.12)",dark_dimmed:"rgba(201, 206, 212, 0.12)"},focus:{light:"rgba(54, 77, 100, 0.16)",dark:"rgba(201, 206, 212, 0.24)",dark_dimmed:"rgba(201, 206, 212, 0.24)"}},danger:{hover:{light:"rgba(234, 74, 90, 0.08)",dark:"rgba(248, 81, 73, 0.16)",dark_dimmed:"rgba(248, 81, 73, 0.16)"},focus:{light:"rgba(234, 74, 90, 0.14)",dark:"rgba(248, 81, 73, 0.24)",dark_dimmed:"rgba(248, 81, 73, 0.24)"}}},Sa=(e="default",t)=>{if(t)return{color:It("colors.fg.
|
421
|
+
`;function $a(){return e.createElement(ka,null)}$a.displayName="Divider",$a.renderItem=$a;const Ta={default:{hover:{light:"rgba(46, 77, 108, 0.06)",dark:"rgba(201, 206, 212, 0.12)",dark_dimmed:"rgba(201, 206, 212, 0.12)"},focus:{light:"rgba(54, 77, 100, 0.16)",dark:"rgba(201, 206, 212, 0.24)",dark_dimmed:"rgba(201, 206, 212, 0.24)"}},danger:{hover:{light:"rgba(234, 74, 90, 0.08)",dark:"rgba(248, 81, 73, 0.16)",dark_dimmed:"rgba(248, 81, 73, 0.16)"},focus:{light:"rgba(234, 74, 90, 0.14)",dark:"rgba(248, 81, 73, 0.24)",dark_dimmed:"rgba(248, 81, 73, 0.24)"}}},Sa=(e="default",t)=>{if(t)return{color:It("colors.primer.fg.disabled"),iconColor:It("colors.primer.fg.disabled"),annotationColor:It("colors.primer.fg.disabled"),hoverCursor:"default"};switch(e){case"danger":return{color:It("colors.danger.fg"),iconColor:It("colors.danger.fg"),annotationColor:It("colors.fg.muted"),hoverCursor:"pointer"};default:return{color:It("colors.fg.default"),iconColor:It("colors.fg.muted"),annotationColor:It("colors.fg.muted"),hoverCursor:"pointer"}}},Ea=f.div`
|
422
422
|
display: flex;
|
423
423
|
min-width: 0;
|
424
424
|
|
@@ -636,7 +636,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
636
636
|
|
637
637
|
${e=>e.contrast&&p(["background-color:",";"],It("colors.canvas.inset"))}
|
638
638
|
|
639
|
-
${e=>e.disabled&&p(["color:",";background-color:",";border-color:",";"],It("colors.fg.
|
639
|
+
${e=>e.disabled&&p(["color:",";background-color:",";border-color:",";"],It("colors.primer.fg.disabled"),It("colors.input.disabledBg"),It("colors.border.default"))}
|
640
640
|
|
641
641
|
${e=>e.block&&p(["display:block;width:100%;"])}
|
642
642
|
|
@@ -1248,7 +1248,7 @@ import e,{useState as t,useRef as r,useCallback as o,useEffect as a,useMemo as n
|
|
1248
1248
|
|
1249
1249
|
&[aria-disabled],
|
1250
1250
|
&[aria-disabled]:hover {
|
1251
|
-
color: ${It("colors.fg.
|
1251
|
+
color: ${It("colors.primer.fg.disabled")}; // check
|
1252
1252
|
cursor: default;
|
1253
1253
|
border-color: transparent;
|
1254
1254
|
}
|