@comicrelief/component-library 8.84.1 → 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 +1 -1
- package/dist/index.es.js +2 -0
- package/package.json +1 -1
- package/src/theme/crTheme/colors.js +2 -0
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
|
|
package/dist/index.es.js
CHANGED
package/package.json
CHANGED