@comicrelief/component-library 8.84.0 → 8.85.0

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/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("styled-components"),f=require("react/jsx-runtime"),I=require("react"),s4=require("react-is"),ck=require("react-dom");function uk(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l4=uk(I),dk={rnd_25_ruby_red:"#AE001B",rnd_25_glitzy_grape:"#A20C51",rnd_25_glitzy_blue:"#0F1953",rnd_25_glitzy_purple:"#3A1F62",rnd_25_glitzy_black:"#2B3737",rnd_25_party_pink:"#FF9DEC",rnd_25_party_blue:"#004EFF",rnd_25_party_lilac:"#B07FEA",rnd_26_dark_purple:"#7953E8",rnd_26_deep_indigo:"#341A7E",rnd_26_light_purple:"#BA9DFC",rnd_26_teal:"#036D7C",rnd_26_deep_teal:"#024042",rnd_26_green:"#7FFB73",rnd_26_magenta:"#A7268C",rnd_26_deep_magenta:"#601151",rnd_26_yellow:"#F8F440",rnd_26_vibrant_pink:"#E948D5",rnd_26_light_pink:"#FE80EB",black:"#000000",white:"#FFFFFF",transparent:"transparent",grey_stone:"#CEDCDA",grey_extra_light:"#f0f0f0",grey_for_forms:"#666",grey_label:"#5C5C5E",grey_1:"#FFFFFF",grey_light:"#F4F3F5",grey_medium:"#E1E2E3",grey_2:"#E1E2E3",grey:"#969598",grey_3:"#969598",grey_dark:"#222222",grey_4:"#222222",grey_4_hover:"#3A3A3A",grey_5:"#18181A",blue:"#0565D1",blue_dark:"#274084",blue_donate:"#2042AD",blue_donate_interact:"#001A85",blue_light:"#BECCF9",blue_royal:"#6489FC",coral:"#F9686D",coral_dark:"#961D35",coral_light:"#FFCECE",deep_violet:"#2C0230",deep_violet_dark:"#2C0230",deep_violet_light:"#3e1c43",green:"#49D267",green_dark:"#1B651D",green_light:"#F4F2F4",magenta:"#FC59CE",magenta_dark:"#821C5D",magenta_light:"#FEB4DC",orange:"#FF9635",orange_dark:"#984316",orange_light:"#FEE3CC",purple:"#6F3AAB",purple_dark:"#48276E",purple_light:"#DFC6F6",lavender:"#C180F9",error_pink:"#FAE1E2",red:"#E52630",red_dark:"#890B11",red_secondary:"#F9723A",teal:"#4ECDBE",teal_dark:"#13767C",teal_light:"#86E4E9",yellow:"#FFE400",yellow_dark:"#665700",yellow_light:"#FEFD5A"},ce=e=>e?dk[e]:"inherit",Br={red:{background:ce("red"),textColour:ce("white"),hoverBackground:ce("red_dark"),hovertextColour:ce("white")},black:{background:ce("grey_dark"),textColour:ce("white"),hoverBackground:ce("black"),hovertextColour:ce("white")},white:{background:ce("white"),textColour:ce("black"),hoverBackground:ce("grey_medium"),hovertextColour:ce("black")},blue:{background:ce("blue"),textColour:ce("white"),hoverBackground:ce("blue_dark"),hovertextColour:ce("white")},blue_dark:{background:"#2042AD",textColour:ce("white"),hoverBackground:ce("blue_dark"),hovertextColour:ce("white")},blue_light:{background:ce("blue_light"),textColour:ce("black"),hoverBackground:ce("blue_dark"),hovertextColour:ce("white")},coral:{background:ce("coral"),textColour:ce("black"),hoverBackground:ce("coral_light"),hovertextColour:ce("black")},coral_dark:{background:ce("coral_dark"),textColour:ce("white"),hoverBackground:ce("coral"),hovertextColour:ce("black")},coral_light:{background:ce("coral_light"),textColour:ce("black"),hoverBackground:ce("coral_dark"),hovertextColour:ce("white")},green:{background:ce("green"),textColour:ce("black"),hoverBackground:ce("green_light"),hovertextColour:ce("black")},green_dark:{background:ce("green_dark"),textColour:ce("white"),hoverBackground:ce("green"),hovertextColour:ce("black")},green_light:{background:ce("green_light"),textColour:ce("black"),hoverBackground:ce("green_dark"),hovertextColour:ce("white")},grey:{background:ce("grey"),textColour:ce("black"),hoverBackground:ce("grey_light"),hovertextColour:ce("black")},grey_dark:{background:ce("grey_dark"),textColour:ce("white"),hoverBackground:ce("grey"),hovertextColour:ce("black")},grey_light:{background:ce("grey_light"),textColour:ce("black"),hoverBackground:ce("grey_medium"),hovertextColour:ce("black")},magenta:{background:ce("magenta"),textColour:ce("black"),hoverBackground:ce("magenta_light"),hovertextColour:ce("black")},magenta_dark:{background:ce("magenta_dark"),textColour:ce("white"),hoverBackground:ce("magenta"),hovertextColour:ce("black")},magenta_light:{background:ce("magenta_light"),textColour:ce("black"),hoverBackground:ce("magenta_dark"),hovertextColour:ce("white")},orange:{background:ce("orange"),textColour:ce("black"),hoverBackground:ce("orange_light"),hovertextColour:ce("black")},orange_dark:{background:ce("orange_dark"),textColour:ce("white"),hoverBackground:ce("orange"),hovertextColour:ce("black")},orange_light:{background:ce("orange_light"),textColour:ce("black"),hoverBackground:ce("orange_dark"),hovertextColour:ce("white")},purple:{background:ce("purple"),textColour:ce("white"),hoverBackground:ce("purple_dark"),hovertextColour:ce("white")},purple_dark:{background:ce("purple_dark"),textColour:ce("white"),hoverBackground:ce("purple"),hovertextColour:ce("white")},purple_light:{background:ce("purple_light"),textColour:ce("black"),hoverBackground:ce("purple_dark"),hovertextColour:ce("white")},teal:{background:ce("teal"),textColour:ce("black"),hoverBackground:ce("teal_light"),hovertextColour:ce("black")},teal_dark:{background:ce("teal_dark"),textColour:ce("white"),hoverBackground:ce("teal"),hovertextColour:ce("black")},teal_light:{background:ce("teal_light"),textColour:ce("black"),hoverBackground:ce("teal_dark"),hovertextColour:ce("white")},transparent:{background:"rgba(255, 255, 255, 0.5)",textColour:"inherit",hoverBackground:"rgba(255, 255, 255, 0.7)",hovertextColour:"inherit"},yellow:{background:ce("yellow"),textColour:ce("black"),hoverBackground:ce("yellow_light"),hovertextColour:ce("black")},yellow_dark:{background:ce("yellow_dark"),textColour:ce("white"),hoverBackground:ce("yellow"),hovertextColour:ce("black")},yellow_light:{background:ce("yellow_light"),textColour:ce("black"),hoverBackground:ce("yellow_dark"),hovertextColour:ce("white")}},fk=(e,t)=>{let r="inherit";const n=Br[e]?e:"red";return e&&(r=g.css`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("styled-components"),f=require("react/jsx-runtime"),I=require("react"),s4=require("react-is"),ck=require("react-dom");function uk(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l4=uk(I),dk={rnd_25_ruby_red:"#AE001B",rnd_25_glitzy_grape:"#A20C51",rnd_25_glitzy_blue:"#0F1953",rnd_25_glitzy_purple:"#3A1F62",rnd_25_glitzy_black:"#2B3737",rnd_25_party_pink:"#FF9DEC",rnd_25_party_blue:"#004EFF",rnd_25_party_lilac:"#B07FEA",rnd_26_dark_purple:"#7953E8",rnd_26_deep_indigo:"#341A7E",rnd_26_light_purple:"#BA9DFC",rnd_26_teal:"#036D7C",rnd_26_deep_teal:"#024042",rnd_26_green:"#7FFB73",rnd_26_magenta:"#A7268C",rnd_26_deep_magenta:"#601151",rnd_26_yellow:"#F8F440",rnd_26_vibrant_pink:"#E948D5",rnd_26_light_pink:"#FE80EB",black:"#000000",white:"#FFFFFF",transparent:"transparent",grey_stone:"#CEDCDA",grey_extra_light:"#f0f0f0",grey_for_forms:"#666",grey_label:"#5C5C5E",grey_1:"#FFFFFF",grey_light:"#F4F3F5",grey_medium:"#E1E2E3",grey_2:"#E1E2E3",grey:"#969598",grey_3:"#969598",grey_dark:"#222222",grey_4:"#222222",grey_4_hover:"#3A3A3A",grey_5:"#18181A",blue:"#0565D1",blue_dark:"#274084",blue_donate:"#2042AD",blue_donate_interact:"#001A85",blue_light:"#BECCF9",blue_royal:"#6489FC",coral:"#F9686D",coral_dark:"#961D35",coral_light:"#FFCECE",deep_violet:"#2C0230",deep_violet_dark:"#2C0230",deep_violet_light:"#3e1c43",green:"#49D267",green_dark:"#1B651D",green_light:"#F4F2F4",green_donate:"#27E698",green_donate_interact:"#10B981",magenta:"#FC59CE",magenta_dark:"#821C5D",magenta_light:"#FEB4DC",orange:"#FF9635",orange_dark:"#984316",orange_light:"#FEE3CC",purple:"#6F3AAB",purple_dark:"#48276E",purple_light:"#DFC6F6",lavender:"#C180F9",error_pink:"#FAE1E2",red:"#E52630",red_dark:"#890B11",red_secondary:"#F9723A",teal:"#4ECDBE",teal_dark:"#13767C",teal_light:"#86E4E9",yellow:"#FFE400",yellow_dark:"#665700",yellow_light:"#FEFD5A"},ce=e=>e?dk[e]:"inherit",Br={red:{background:ce("red"),textColour:ce("white"),hoverBackground:ce("red_dark"),hovertextColour:ce("white")},black:{background:ce("grey_dark"),textColour:ce("white"),hoverBackground:ce("black"),hovertextColour:ce("white")},white:{background:ce("white"),textColour:ce("black"),hoverBackground:ce("grey_medium"),hovertextColour:ce("black")},blue:{background:ce("blue"),textColour:ce("white"),hoverBackground:ce("blue_dark"),hovertextColour:ce("white")},blue_dark:{background:"#2042AD",textColour:ce("white"),hoverBackground:ce("blue_dark"),hovertextColour:ce("white")},blue_light:{background:ce("blue_light"),textColour:ce("black"),hoverBackground:ce("blue_dark"),hovertextColour:ce("white")},coral:{background:ce("coral"),textColour:ce("black"),hoverBackground:ce("coral_light"),hovertextColour:ce("black")},coral_dark:{background:ce("coral_dark"),textColour:ce("white"),hoverBackground:ce("coral"),hovertextColour:ce("black")},coral_light:{background:ce("coral_light"),textColour:ce("black"),hoverBackground:ce("coral_dark"),hovertextColour:ce("white")},green:{background:ce("green"),textColour:ce("black"),hoverBackground:ce("green_light"),hovertextColour:ce("black")},green_dark:{background:ce("green_dark"),textColour:ce("white"),hoverBackground:ce("green"),hovertextColour:ce("black")},green_light:{background:ce("green_light"),textColour:ce("black"),hoverBackground:ce("green_dark"),hovertextColour:ce("white")},grey:{background:ce("grey"),textColour:ce("black"),hoverBackground:ce("grey_light"),hovertextColour:ce("black")},grey_dark:{background:ce("grey_dark"),textColour:ce("white"),hoverBackground:ce("grey"),hovertextColour:ce("black")},grey_light:{background:ce("grey_light"),textColour:ce("black"),hoverBackground:ce("grey_medium"),hovertextColour:ce("black")},magenta:{background:ce("magenta"),textColour:ce("black"),hoverBackground:ce("magenta_light"),hovertextColour:ce("black")},magenta_dark:{background:ce("magenta_dark"),textColour:ce("white"),hoverBackground:ce("magenta"),hovertextColour:ce("black")},magenta_light:{background:ce("magenta_light"),textColour:ce("black"),hoverBackground:ce("magenta_dark"),hovertextColour:ce("white")},orange:{background:ce("orange"),textColour:ce("black"),hoverBackground:ce("orange_light"),hovertextColour:ce("black")},orange_dark:{background:ce("orange_dark"),textColour:ce("white"),hoverBackground:ce("orange"),hovertextColour:ce("black")},orange_light:{background:ce("orange_light"),textColour:ce("black"),hoverBackground:ce("orange_dark"),hovertextColour:ce("white")},purple:{background:ce("purple"),textColour:ce("white"),hoverBackground:ce("purple_dark"),hovertextColour:ce("white")},purple_dark:{background:ce("purple_dark"),textColour:ce("white"),hoverBackground:ce("purple"),hovertextColour:ce("white")},purple_light:{background:ce("purple_light"),textColour:ce("black"),hoverBackground:ce("purple_dark"),hovertextColour:ce("white")},teal:{background:ce("teal"),textColour:ce("black"),hoverBackground:ce("teal_light"),hovertextColour:ce("black")},teal_dark:{background:ce("teal_dark"),textColour:ce("white"),hoverBackground:ce("teal"),hovertextColour:ce("black")},teal_light:{background:ce("teal_light"),textColour:ce("black"),hoverBackground:ce("teal_dark"),hovertextColour:ce("white")},transparent:{background:"rgba(255, 255, 255, 0.5)",textColour:"inherit",hoverBackground:"rgba(255, 255, 255, 0.7)",hovertextColour:"inherit"},yellow:{background:ce("yellow"),textColour:ce("black"),hoverBackground:ce("yellow_light"),hovertextColour:ce("black")},yellow_dark:{background:ce("yellow_dark"),textColour:ce("white"),hoverBackground:ce("yellow"),hovertextColour:ce("black")},yellow_light:{background:ce("yellow_light"),textColour:ce("black"),hoverBackground:ce("yellow_dark"),hovertextColour:ce("white")}},fk=(e,t)=>{let r="inherit";const n=Br[e]?e:"red";return e&&(r=g.css`
2
2
  background-color: ${Br[n].background};
3
3
  color: ${Br[n].textColour};
4
4
 
@@ -657,8 +657,8 @@ function print() { __p += __j.call(arguments, '') }
657
657
  // New style is rounded square buttons with dark grey background, and animation.
658
658
  // When we've moved fully to the new design,
659
659
  // this prop and the old styles can be removed.
660
- ${({$newStyle:e})=>e&&g.css`
661
- background-color: ${({theme:t})=>t.color("grey_4")};
660
+ ${({$newStyle:e,theme:t})=>e&&g.css`
661
+ background-color: ${t.color("grey_4")};
662
662
  border-radius: 0.5rem;
663
663
  padding: 0.5rem;
664
664
  box-sizing: border-box;
@@ -672,7 +672,7 @@ function print() { __p += __j.call(arguments, '') }
672
672
 
673
673
  &:hover,
674
674
  &:focus {
675
- background-color: ${({theme:t})=>t.color("grey_4_hover")};
675
+ background-color: ${t.color("grey_4_hover")};
676
676
  opacity: 1;
677
677
  }
678
678
  `}
package/dist/index.es.js CHANGED
@@ -69,6 +69,8 @@ const Mk = {
69
69
  green: "#49D267",
70
70
  green_dark: "#1B651D",
71
71
  green_light: "#F4F2F4",
72
+ green_donate: "#27E698",
73
+ green_donate_interact: "#10B981",
72
74
  magenta: "#FC59CE",
73
75
  magenta_dark: "#821C5D",
74
76
  magenta_light: "#FEB4DC",
@@ -7070,8 +7072,8 @@ const xE = /* @__PURE__ */ Go(wr), CE = 55, $E = 0.35, _E = b.a`
7070
7072
  // New style is rounded square buttons with dark grey background, and animation.
7071
7073
  // When we've moved fully to the new design,
7072
7074
  // this prop and the old styles can be removed.
7073
- ${({ $newStyle: e }) => e && X`
7074
- background-color: ${({ theme: t }) => t.color("grey_4")};
7075
+ ${({ $newStyle: e, theme: t }) => e && X`
7076
+ background-color: ${t.color("grey_4")};
7075
7077
  border-radius: 0.5rem;
7076
7078
  padding: 0.5rem;
7077
7079
  box-sizing: border-box;
@@ -7085,7 +7087,7 @@ const xE = /* @__PURE__ */ Go(wr), CE = 55, $E = 0.35, _E = b.a`
7085
7087
 
7086
7088
  &:hover,
7087
7089
  &:focus {
7088
- background-color: ${({ theme: t }) => t.color("grey_4_hover")};
7090
+ background-color: ${t.color("grey_4_hover")};
7089
7091
  opacity: 1;
7090
7092
  }
7091
7093
  `}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "8.84.0",
4
+ "version": "8.85.0",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
7
7
  "files": [
@@ -69,8 +69,8 @@ const StyledLink = styled.a`
69
69
  // New style is rounded square buttons with dark grey background, and animation.
70
70
  // When we've moved fully to the new design,
71
71
  // this prop and the old styles can be removed.
72
- ${({ $newStyle }) => $newStyle && css`
73
- background-color: ${({ theme }) => theme.color('grey_4')};
72
+ ${({ $newStyle, theme }) => $newStyle && css`
73
+ background-color: ${theme.color('grey_4')};
74
74
  border-radius: 0.5rem;
75
75
  padding: 0.5rem;
76
76
  box-sizing: border-box;
@@ -84,7 +84,7 @@ const StyledLink = styled.a`
84
84
 
85
85
  &:hover,
86
86
  &:focus {
87
- background-color: ${({ theme }) => theme.color('grey_4_hover')};
87
+ background-color: ${theme.color('grey_4_hover')};
88
88
  opacity: 1;
89
89
  }
90
90
  `}
@@ -81,6 +81,8 @@ const colors = {
81
81
  green: '#49D267',
82
82
  green_dark: '#1B651D',
83
83
  green_light: '#F4F2F4',
84
+ green_donate: '#27E698',
85
+ green_donate_interact: '#10B981',
84
86
 
85
87
  magenta: '#FC59CE',
86
88
  magenta_dark: '#821C5D',