@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.
@@ -45,7 +45,7 @@
45
45
  }
46
46
 
47
47
  &:disabled {
48
- color: ${xt("colors.fg.muted")};
48
+ color: ${xt("colors.primer.fg.disabled")};
49
49
  background-color: ${xt("colors.btn.bg")};
50
50
  border-color: ${xt("colors.btn.border")};
51
51
  }
@@ -232,7 +232,7 @@
232
232
  &:disabled {
233
233
  &,
234
234
  &:hover {
235
- color: rgba(${xt("colors.fg.muted")}, 0.5);
235
+ color: ${xt("colors.primer.fg.disabled")};
236
236
  cursor: default;
237
237
  }
238
238
  }
@@ -418,7 +418,7 @@
418
418
  background: ${xt("colors.border.muted")};
419
419
  margin-top: calc(${xt("space.2")} - 1px);
420
420
  margin-bottom: ${xt("space.2")};
421
- `;function yo(){return n.default.createElement(xo,null)}yo.displayName="Divider",yo.renderItem=yo;const wo={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)"}}},ko=(e="default",t)=>{if(t)return{color:xt("colors.fg.muted"),iconColor:xt("colors.fg.muted"),annotationColor:xt("colors.fg.muted"),hoverCursor:"default"};switch(e){case"danger":return{color:xt("colors.danger.fg"),iconColor:xt("colors.danger.fg"),annotationColor:xt("colors.fg.muted"),hoverCursor:"pointer"};default:return{color:xt("colors.fg.default"),iconColor:xt("colors.fg.muted"),annotationColor:xt("colors.fg.muted"),hoverCursor:"pointer"}}},Bo=i.default.div`
421
+ `;function yo(){return n.default.createElement(xo,null)}yo.displayName="Divider",yo.renderItem=yo;const wo={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)"}}},ko=(e="default",t)=>{if(t)return{color:xt("colors.primer.fg.disabled"),iconColor:xt("colors.primer.fg.disabled"),annotationColor:xt("colors.primer.fg.disabled"),hoverCursor:"default"};switch(e){case"danger":return{color:xt("colors.danger.fg"),iconColor:xt("colors.danger.fg"),annotationColor:xt("colors.fg.muted"),hoverCursor:"pointer"};default:return{color:xt("colors.fg.default"),iconColor:xt("colors.fg.muted"),annotationColor:xt("colors.fg.muted"),hoverCursor:"pointer"}}},Bo=i.default.div`
422
422
  display: flex;
423
423
  min-width: 0;
424
424
 
@@ -636,7 +636,7 @@
636
636
 
637
637
  ${e=>e.contrast&&r.css(["background-color:",";"],xt("colors.canvas.inset"))}
638
638
 
639
- ${e=>e.disabled&&r.css(["color:",";background-color:",";border-color:",";"],xt("colors.fg.muted"),xt("colors.input.disabledBg"),xt("colors.border.default"))}
639
+ ${e=>e.disabled&&r.css(["color:",";background-color:",";border-color:",";"],xt("colors.primer.fg.disabled"),xt("colors.input.disabledBg"),xt("colors.border.default"))}
640
640
 
641
641
  ${e=>e.block&&r.css(["display:block;width:100%;"])}
642
642
 
@@ -1248,7 +1248,7 @@
1248
1248
 
1249
1249
  &[aria-disabled],
1250
1250
  &[aria-disabled]:hover {
1251
- color: ${xt("colors.fg.muted")}; // check
1251
+ color: ${xt("colors.primer.fg.disabled")}; // check
1252
1252
  cursor: default;
1253
1253
  border-color: transparent;
1254
1254
  }