@comicrelief/component-library 8.83.0 → 8.84.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.
Files changed (46) hide show
  1. package/dist/index.cjs.js +1237 -868
  2. package/dist/index.es.js +10978 -10219
  3. package/package.json +1 -1
  4. package/src/App.styles.js +2 -2
  5. package/src/components/Atoms/Button/Button.js +13 -3
  6. package/src/components/Atoms/Button/Button.style.js +19 -1
  7. package/src/components/Atoms/Button/Button.test.js +1 -1
  8. package/src/components/Atoms/Button/ButtonExample.jsx +24 -0
  9. package/src/components/Atoms/ButtonWithStates/ButtonWithStates.js +1 -1
  10. package/src/components/Atoms/Icons/Cross.js +0 -1
  11. package/src/components/Atoms/Icons/Download.js +4 -4
  12. package/src/components/Atoms/Icons/External.js +4 -4
  13. package/src/components/Atoms/Icons/Filter.js +50 -0
  14. package/src/components/Atoms/Icons/IconsExample.jsx +9 -5
  15. package/src/components/Atoms/Icons/Undo.js +44 -0
  16. package/src/components/Atoms/Icons/index.js +2 -0
  17. package/src/components/Atoms/Link/Link.test.js +1 -1
  18. package/src/components/Atoms/Link/LinkExample.jsx +4 -2
  19. package/src/components/Atoms/Text/TextExample.jsx +338 -130
  20. package/src/components/Molecules/CardDs/__snapshots__/CardDs.test.js.snap +2 -2
  21. package/src/components/Molecules/ExpandedButton/ExpandedButton.style.js +1 -0
  22. package/src/components/Molecules/ExpandedButton/__snapshots__/ExpandedButton.test.js.snap +1 -0
  23. package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +2 -2
  24. package/src/components/Molecules/QuoteSlice/__snapshots__/QuoteSlice.test.js.snap +1 -1
  25. package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +2 -2
  26. package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +1 -3
  27. package/src/components/Organisms/CookieBanner/CookieBanner.test.js +1 -1
  28. package/src/components/Organisms/EmailBanner/__snapshots__/EmailBanner.test.js.snap +12 -12
  29. package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +3 -3
  30. package/src/components/Organisms/FilterCard/FilterCard.js +286 -0
  31. package/src/components/Organisms/FilterCard/FilterCard.style.js +425 -0
  32. package/src/components/Organisms/FilterCard/FilterCard.test.js +60 -0
  33. package/src/components/Organisms/FilterCard/FilterCardExample.jsx +48 -0
  34. package/src/components/Organisms/FilterCard/FilterCardNodes.js +155 -0
  35. package/src/components/Organisms/FilterCard/__snapshots__/FilterCard.test.js.snap +1006 -0
  36. package/src/components/Organisms/FilterCard/_utils/_utils.js +57 -0
  37. package/src/components/Organisms/FilterCard/assets/Rectangle.svg +3 -0
  38. package/src/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +4 -4
  39. package/src/components/Organisms/MarketingPreferencesDS/MarketingPreferencesDS.style.js +1 -1
  40. package/src/data/TestFilterCardNodeData.js +930 -0
  41. package/src/data/data.js +64 -1
  42. package/src/data/test-icons/Children--black.svg +5 -0
  43. package/src/data/test-icons/Children--white.svg +5 -0
  44. package/src/demos/index.jsx +31 -9
  45. package/src/index.js +1 -0
  46. package/src/theme/crTheme/buttonColors.js +3 -4
package/src/data/data.js CHANGED
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import picture1 from '../assets/picture-1.jpg';
2
3
  import picture2 from '../assets/picture-2.jpg';
3
4
  import picture3 from '../assets/picture-3.jpg';
@@ -6,6 +7,8 @@ import heroBannerImg from '../assets/PromoLW.jpg';
6
7
  import heroBannerLogoSquare from '../assets/HeroBannerLogo-Square.png';
7
8
  import heroBannerLogoWide from '../assets/HeroBannerLogo-Wide.png';
8
9
  import heroBannerLogoTall from '../assets/HeroBannerLogo-Tall.png';
10
+ import Text from '../components/Atoms/Text/Text';
11
+ import { FilterCardNodes4, FilterCardNodes5, FilterCardNodes20 } from './TestFilterCardNodeData';
9
12
 
10
13
  const defaultData = {
11
14
  title: 'What your money does',
@@ -344,12 +347,72 @@ const RichtextCarouselItemsWithPadding = {
344
347
 
345
348
  const ButtonIconImgPath = 'https://images.ctfassets.net/zsfivwzfgl3t/4IlLxZnddkg1pHWZP3AZnA/447078df666932751c9c618a296f24db/Icon__Shelter.png';
346
349
 
350
+ const ButtonIconImagePath2 = 'https://images.ctfassets.net/zsfivwzfgl3t/1olBuz2b2baO5qKsOFvNjr/7df1553e56b7b50ff3d27cfbeae92370/Legal_assistance_packages.png';
351
+
347
352
  const ButtonIconSvgPath = 'https://images.ctfassets.net/0p265iutoxgq/3GaahqcCBaXrLBm5fu8HAj/d965a32d93fe82bf103c2f444e0bb9ec/Phone--white.svg';
348
353
 
354
+ // Reused config and 'top' content for the FilterCard examples:
355
+ const filterCardConfig = {
356
+ paddingAbove: '2rem',
357
+ paddingBelow: '2rem',
358
+ pageBackgroundColour: 'grey_light',
359
+ loadingBehaviour: 'Load all cards at once',
360
+ body:
361
+ <Text>
362
+ From fundraising packs to bunting, certificates, cake labels and more, find everything
363
+ you need to take yourself funny for money this Red Nose Day. Select a resource type to
364
+ filters the results.
365
+ </Text>
366
+ };
367
+
368
+ const filterCardTestDataStandard = {
369
+ ...filterCardConfig,
370
+ id: 'filtercard--standard',
371
+ title: 'Your fundraising resources: STANDARD',
372
+ filterCardNodes: FilterCardNodes4
373
+ };
374
+
375
+ const filterCardTestDataHero = {
376
+ ...filterCardConfig,
377
+ id: 'filtercard--hero',
378
+ title: 'Your fundraising resources: HERO',
379
+ firstFilterCardNodeAsHero: true,
380
+ filterCardNodes: FilterCardNodes5
381
+ };
382
+
383
+ const filterCardTestDataExpanded = {
384
+ ...filterCardConfig,
385
+ id: 'filtercard--expanded',
386
+ title: 'Your fundraising resources: EXPANDED',
387
+ filterCardNodes: FilterCardNodes20
388
+ };
389
+
390
+ const filterCardTestDataExpandedLoader = {
391
+ ...filterCardConfig,
392
+ id: 'filtercard--expanded-loader',
393
+ title: 'Your fundraising resources: EXPANDED + LOADER',
394
+ loadingBehaviour: 'Load 6 cards at a time + Hero Node (if set)',
395
+ filterCardNodes: FilterCardNodes20
396
+ };
397
+
398
+ const filterCardTestDataExpandedLoaderHero = {
399
+ ...filterCardConfig,
400
+ id: 'filtercard--expanded-loader-hero',
401
+ title: 'Your fundraising resources: EXPANDED + LOADER + HERO',
402
+ loadingBehaviour: 'Load 6 cards at a time + Hero Node (if set)',
403
+ filterCardNodes: FilterCardNodes20,
404
+ firstFilterCardNodeAsHero: true
405
+ };
406
+
349
407
  export {
350
408
  defaultData, mobileImages, testImpactSliderItems,
351
409
  carouselItemsComplete, carouselItemsCompleteWithPadding,
352
410
  carouselItemsIncomplete, carouselItemsMinimal,
353
411
  RichtextCarouselItems, RichtextCarouselItemsWithPadding,
354
- ButtonIconImgPath, ButtonIconSvgPath
412
+ ButtonIconImgPath, ButtonIconSvgPath, ButtonIconImagePath2,
413
+ filterCardTestDataStandard,
414
+ filterCardTestDataHero,
415
+ filterCardTestDataExpanded,
416
+ filterCardTestDataExpandedLoader,
417
+ filterCardTestDataExpandedLoaderHero
355
418
  };
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M16 7.984C17.6545 7.984 19 6.6415 19 4.992C19 3.3425 17.654 2 16 2C14.346 2 13 3.3425 13 4.992C13 6.6415 14.3455 7.984 16 7.984ZM16 4C16.5515 4 17 4.445 17 4.992C17 5.539 16.5515 5.984 16 5.984C15.4485 5.984 15 5.539 15 4.992C15 4.445 15.4485 4 16 4Z" fill="black"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 11.968C9.1545 11.968 10.5 10.6255 10.5 8.97601C10.5 7.32651 9.1545 5.98401 7.5 5.98401C5.8455 5.98401 4.5 7.32601 4.5 8.97601C4.5 10.626 5.846 11.968 7.5 11.968ZM7.5 7.98401C8.0515 7.98401 8.5 8.42901 8.5 8.97551C8.5 9.52201 8.0515 9.96751 7.5 9.96751C6.9485 9.96751 6.5 9.52251 6.5 8.97551C6.5 8.42851 6.9485 7.98401 7.5 7.98401Z" fill="black"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20.5615 8.07754C21.0575 7.83504 21.6565 8.04104 21.8985 8.53754C22.1405 9.03354 21.9345 9.63254 21.439 9.87454C20.7935 10.1895 20.0445 10.358 19.2555 10.46C20.1315 13.179 21.475 19.8405 20.928 20.8655C20.742 21.213 20.3865 21.4295 20.0005 21.4295C19.191 21.4295 18.8915 20.7786 18.1676 19.2053L18.1604 19.1897C17.9008 18.6261 17.4491 17.6459 17.0745 17.0255C15.445 20.165 14.1835 21.8155 13.3075 21.958C13.242 21.969 13.1765 21.974 13.112 21.974C12.805 21.974 12.515 21.8555 12.2945 21.636C11.6785 21.022 11.8685 20.125 12.7735 16.4225C13.2105 14.6355 13.7315 12.501 13.9235 10.9835C13.2265 11.1775 12.6725 11.4895 12.3575 12.0145C11.9475 12.6975 11.3755 13.221 10.7065 13.619C11.5 15.742 11.4325 20.227 11.039 21.18C10.7525 21.8735 10.1715 21.9275 10 21.9275C9.11552 21.9275 8.83333 21.1235 8.36582 19.7914L8.365 19.789C8.259 19.4865 8.1065 19.0515 7.952 18.6665C7.033 20.1275 5.518 21.804 4.43 21.981C4.352 21.994 4.274 22 4.1975 22C3.8525 22 3.532 21.873 3.294 21.6365C2.55955 20.9046 2.97194 19.7842 3.87581 17.3285C4.19231 16.4695 4.537 15.529 4.783 14.6905C4.055 14.6425 3.375 14.5525 2.805 14.439C2.263 14.331 1.9115 13.805 2.0195 13.263C2.1275 12.7215 2.653 12.369 3.1955 12.4775C5.4585 12.9285 9.4815 12.922 10.6425 10.9865C11.9079 8.87765 14.6052 8.74505 16.9851 8.62806L16.9884 8.6279C18.3255 8.56194 19.7081 8.49374 20.5615 8.07754ZM8.041 16.008C8.5655 16.042 8.9535 16.357 9.2755 16.8465C9.2065 15.8125 9.0755 14.8455 8.884 14.362C8.2255 14.5365 7.536 14.641 6.8485 14.6905C6.5815 15.746 6.15 16.939 5.753 18.0185C5.6825 18.21 5.6065 18.4165 5.5305 18.626C5.925 18.139 6.317 17.5695 6.6065 16.993C7.0625 16.0855 7.698 15.99 8.041 16.008ZM16.97 14.567C17.5305 14.5765 17.9915 14.8995 18.436 15.4845C18.0335 13.3905 17.536 11.264 17.2165 10.618C17.172 10.6205 17.1275 10.623 17.0835 10.625L17.0371 10.6274C16.6739 10.6456 16.3146 10.6636 15.965 10.6875C15.821 12.375 15.239 14.759 14.716 16.8975L14.601 17.368C14.9425 16.7725 15.289 16.131 15.606 15.499C16.02 14.675 16.65 14.576 16.97 14.567Z" fill="black"/>
5
+ </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M16 7.984C17.6545 7.984 19 6.6415 19 4.992C19 3.3425 17.654 2 16 2C14.346 2 13 3.3425 13 4.992C13 6.6415 14.3455 7.984 16 7.984ZM16 4C16.5515 4 17 4.445 17 4.992C17 5.539 16.5515 5.984 16 5.984C15.4485 5.984 15 5.539 15 4.992C15 4.445 15.4485 4 16 4Z" fill="white"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 11.968C9.1545 11.968 10.5 10.6255 10.5 8.97601C10.5 7.32651 9.1545 5.98401 7.5 5.98401C5.8455 5.98401 4.5 7.32601 4.5 8.97601C4.5 10.626 5.846 11.968 7.5 11.968ZM7.5 7.98401C8.0515 7.98401 8.5 8.42901 8.5 8.97551C8.5 9.52201 8.0515 9.96751 7.5 9.96751C6.9485 9.96751 6.5 9.52251 6.5 8.97551C6.5 8.42851 6.9485 7.98401 7.5 7.98401Z" fill="white"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20.5615 8.07754C21.0575 7.83504 21.6565 8.04104 21.8985 8.53754C22.1405 9.03354 21.9345 9.63254 21.439 9.87454C20.7935 10.1895 20.0445 10.358 19.2555 10.46C20.1315 13.179 21.475 19.8405 20.928 20.8655C20.742 21.213 20.3865 21.4295 20.0005 21.4295C19.191 21.4295 18.8915 20.7786 18.1676 19.2053L18.1604 19.1897C17.9008 18.6261 17.4491 17.6459 17.0745 17.0255C15.445 20.165 14.1835 21.8155 13.3075 21.958C13.242 21.969 13.1765 21.974 13.112 21.974C12.805 21.974 12.515 21.8555 12.2945 21.636C11.6785 21.022 11.8685 20.125 12.7735 16.4225C13.2105 14.6355 13.7315 12.501 13.9235 10.9835C13.2265 11.1775 12.6725 11.4895 12.3575 12.0145C11.9475 12.6975 11.3755 13.221 10.7065 13.619C11.5 15.742 11.4325 20.227 11.039 21.18C10.7525 21.8735 10.1715 21.9275 10 21.9275C9.11552 21.9275 8.83333 21.1235 8.36582 19.7914L8.365 19.789C8.259 19.4865 8.1065 19.0515 7.952 18.6665C7.033 20.1275 5.518 21.804 4.43 21.981C4.352 21.994 4.274 22 4.1975 22C3.8525 22 3.532 21.873 3.294 21.6365C2.55955 20.9046 2.97194 19.7842 3.87581 17.3285C4.19231 16.4695 4.537 15.529 4.783 14.6905C4.055 14.6425 3.375 14.5525 2.805 14.439C2.263 14.331 1.9115 13.805 2.0195 13.263C2.1275 12.7215 2.653 12.369 3.1955 12.4775C5.4585 12.9285 9.4815 12.922 10.6425 10.9865C11.9079 8.87765 14.6052 8.74505 16.9851 8.62806L16.9884 8.6279C18.3255 8.56194 19.7081 8.49374 20.5615 8.07754ZM8.041 16.008C8.5655 16.042 8.9535 16.357 9.2755 16.8465C9.2065 15.8125 9.0755 14.8455 8.884 14.362C8.2255 14.5365 7.536 14.641 6.8485 14.6905C6.5815 15.746 6.15 16.939 5.753 18.0185C5.6825 18.21 5.6065 18.4165 5.5305 18.626C5.925 18.139 6.317 17.5695 6.6065 16.993C7.0625 16.0855 7.698 15.99 8.041 16.008ZM16.97 14.567C17.5305 14.5765 17.9915 14.8995 18.436 15.4845C18.0335 13.3905 17.536 11.264 17.2165 10.618C17.172 10.6205 17.1275 10.623 17.0835 10.625L17.0371 10.6274C16.6739 10.6456 16.3146 10.6636 15.965 10.6875C15.821 12.375 15.239 14.759 14.716 16.8975L14.601 17.368C14.9425 16.7725 15.289 16.131 15.606 15.499C16.02 14.675 16.65 14.576 16.97 14.567Z" fill="white"/>
5
+ </svg>
@@ -126,26 +126,47 @@ import marketingPreferencesDSExampleSrc from '../components/Organisms/MarketingP
126
126
  import { MembershipExample1, MembershipExample2 } from '../components/Organisms/Membership/MembershipExample.jsx';
127
127
  import DonateBannerExample from '../components/Organisms/DonateBanner/DonateBannerExample.jsx';
128
128
  import donateBannerExampleSrc from '../components/Organisms/DonateBanner/DonateBannerExample.jsx?raw';
129
- import { EmailBannerExample1, EmailBannerExample2, EmailBannerExample3, EmailBannerExample4, EmailBannerExample5 } from '../components/Organisms/EmailBanner/EmailBannerExample.jsx';
129
+ import {
130
+ EmailBannerExample1, EmailBannerExample2, EmailBannerExample3, EmailBannerExample4, EmailBannerExample5
131
+ } from '../components/Organisms/EmailBanner/EmailBannerExample.jsx';
130
132
  import FooterNewExample from '../components/Organisms/FooterNew/FooterNewExample.jsx';
131
133
  import footerNewExampleSrc from '../components/Organisms/FooterNew/FooterNewExample.jsx?raw';
132
- import { HeaderExample1, HeaderExample2, HeaderExample3, HeaderExample4, HeaderExample5 } from '../components/Organisms/Header/HeaderExample.jsx';
134
+ import {
135
+ HeaderExample1, HeaderExample2, HeaderExample3, HeaderExample4, HeaderExample5
136
+ } from '../components/Organisms/Header/HeaderExample.jsx';
133
137
  import Header2025Example from '../components/Organisms/Header2025/Header2025Example.jsx';
134
138
  import header2025ExampleSrc from '../components/Organisms/Header2025/Header2025Example.jsx?raw';
135
- import { DonateExample1, DonateExample2, DonateExample3, DonateExample4, DonateExample5, DonateExample6, DonateExample7, DonateExample8, DonateExample9, DonateExample10, DonateExample11, DonateExample12, DonateExample13, DonateExample14, DonateExample15, DonateExample16, DonateExample17, DonateExample18, DonateExample19, DonateExample20, DonateExample21, DonateExample22 } from '../components/Organisms/Donate/DonateExample.jsx';
139
+
140
+ import {
141
+ DonateExample1, DonateExample2, DonateExample3, DonateExample4, DonateExample5, DonateExample6, DonateExample7, DonateExample8, DonateExample9, DonateExample10, DonateExample11, DonateExample12, DonateExample13, DonateExample14, DonateExample15, DonateExample16, DonateExample17, DonateExample18, DonateExample19, DonateExample20, DonateExample21, DonateExample22
142
+ } from '../components/Organisms/Donate/DonateExample.jsx';
143
+
136
144
  import CookieBannerExample from '../components/Organisms/CookieBanner/CookieBannerExample.jsx';
137
145
  import cookieBannerExampleSrc from '../components/Organisms/CookieBanner/CookieBannerExample.jsx?raw';
138
146
  import { ImpactSliderExample1, ImpactSliderExample2 } from '../components/Organisms/ImpactSlider/ImpactSliderExample.jsx';
147
+
139
148
  import WYMDCarouselExample from '../components/Organisms/WYMDCarousel/WYMDCarouselExample.jsx';
140
149
  import wymdCarouselExampleSrc from '../components/Organisms/WYMDCarousel/WYMDCarouselExample.jsx?raw';
150
+
141
151
  import RichtextCarouselExample from '../components/Organisms/RichtextCarousel/RichtextCarouselExample.jsx';
142
152
  import richtextCarouselExampleSrc from '../components/Organisms/RichtextCarousel/RichtextCarouselExample.jsx?raw';
153
+
143
154
  import DynamicGalleryExample from '../components/Organisms/DynamicGallery/DynamicGalleryExample.jsx';
144
155
  import dynamicGalleryExampleSrc from '../components/Organisms/DynamicGallery/DynamicGalleryExample.jsx?raw';
145
156
 
157
+ import FilterCardExample from '../components/Organisms/FilterCard/FilterCardExample.jsx';
158
+ import filterCardExampleSrc from '../components/Organisms/FilterCard/FilterCardExample.jsx?raw';
159
+
146
160
  const Placeholder = ({ name }) => (
147
- <div style={{ padding: '1rem', background: '#f5f5f5', borderRadius: '4px', color: '#666' }}>
148
- <em>{name} — no example in place.</em>
161
+ <div style={{
162
+ padding: '1rem', background: '#f5f5f5', borderRadius: '4px', color: '#666'
163
+ }}
164
+ >
165
+ <em>
166
+ {name}
167
+ {' '}
168
+ — no example in place.
169
+ </em>
149
170
  </div>
150
171
  );
151
172
 
@@ -175,7 +196,7 @@ export const atoms = [
175
196
  { name: 'SocialIcons', demo: demo(SocialIconsExample, socialIconsExampleSrc) },
176
197
  { name: 'Text', demo: demo(TextExample, textExampleSrc) },
177
198
  { name: 'TextArea', demo: demo(TextAreaExample, textAreaExampleSrc) },
178
- { name: 'TextInputWithDropdown', demo: demo(TextInputWithDropdownExample, textInputWithDropdownExampleSrc) },
199
+ { name: 'TextInputWithDropdown', demo: demo(TextInputWithDropdownExample, textInputWithDropdownExampleSrc) }
179
200
  ];
180
201
 
181
202
  export const molecules = [
@@ -210,7 +231,7 @@ export const molecules = [
210
231
  { name: 'SingleMessageDs', demo: demo(SingleMessageDsExample, singleMessageDsExampleSrc) },
211
232
  { name: 'StatsSlice', demo: demo(StatsSliceExample, statsSliceExampleSrc) },
212
233
  { name: 'Typeahead', demo: demo(TypeaheadExample, typeaheadExampleSrc) },
213
- { name: 'VideoBanner', demo: demo(VideoBannerExample, videoBannerExampleSrc) },
234
+ { name: 'VideoBanner', demo: demo(VideoBannerExample, videoBannerExampleSrc) }
214
235
  ];
215
236
 
216
237
  export const organisms = [
@@ -220,6 +241,7 @@ export const organisms = [
220
241
  { name: 'DynamicGallery', demo: demo(DynamicGalleryExample, dynamicGalleryExampleSrc) },
221
242
  { name: 'EmailBanner', examples: [<EmailBannerExample1 />, <EmailBannerExample2 />, <EmailBannerExample3 />, <EmailBannerExample4 />, <EmailBannerExample5 />] },
222
243
  { name: 'EmailSignUpForm', demo: demo(EmailSignUpExample, emailSignUpExampleSrc) },
244
+ { name: 'FilterCard', demo: demo(FilterCardExample, filterCardExampleSrc) },
223
245
  { name: 'Footer', examples: [<FooterExample1 />, <FooterExample2 />, <FooterExample3 />] },
224
246
  { name: 'FooterNew', demo: demo(FooterNewExample, footerNewExampleSrc) },
225
247
  { name: 'Header', examples: [<HeaderExample1 />, <HeaderExample2 />, <HeaderExample3 />, <HeaderExample4 />, <HeaderExample5 />] },
@@ -228,12 +250,12 @@ export const organisms = [
228
250
  { name: 'MarketingPreferencesDSForm', demo: demo(MarketingPreferencesDSExample, marketingPreferencesDSExampleSrc) },
229
251
  { name: 'Membership', examples: [<MembershipExample1 />, <MembershipExample2 />] },
230
252
  { name: 'RichtextCarousel', demo: demo(RichtextCarouselExample, richtextCarouselExampleSrc) },
231
- { name: 'WYMDCarousel', demo: demo(WYMDCarouselExample, wymdCarouselExampleSrc) },
253
+ { name: 'WYMDCarousel', demo: demo(WYMDCarouselExample, wymdCarouselExampleSrc) }
232
254
  ];
233
255
 
234
256
  export const docs = [
235
257
  { name: 'Introduction', demo: <IntroductionDoc /> },
236
258
  { name: 'Installation', demo: <InstallationDoc /> },
237
259
  { name: 'Utils', demo: <UtilsDoc /> },
238
- { name: 'Theme', demo: <ThemeExample /> },
260
+ { name: 'Theme', demo: <ThemeExample /> }
239
261
  ];
package/src/index.js CHANGED
@@ -96,3 +96,4 @@ export {
96
96
  export { default as Membership } from './components/Organisms/Membership/Membership';
97
97
  export { default as RichtextCarousel } from './components/Organisms/RichtextCarousel/RichtextCarousel';
98
98
  export { default as WYMDCarousel } from './components/Organisms/WYMDCarousel/WYMDCarousel';
99
+ export { default as FilterCard } from './components/Organisms/FilterCard/FilterCard';
@@ -83,7 +83,6 @@ const buttonColors = {
83
83
  textColour: color('black'),
84
84
  hoverBackground: color('grey_light'),
85
85
  hovertextColour: color('black')
86
-
87
86
  },
88
87
  grey_dark: {
89
88
  background: color('grey_dark'),
@@ -94,8 +93,8 @@ const buttonColors = {
94
93
  grey_light: {
95
94
  background: color('grey_light'),
96
95
  textColour: color('black'),
97
- hoverBackground: color('grey_dark'),
98
- hovertextColour: color('white')
96
+ hoverBackground: color('grey_medium'),
97
+ hovertextColour: color('black')
99
98
  },
100
99
  magenta: {
101
100
  background: color('magenta'),
@@ -226,7 +225,7 @@ export default (colorName, buttonType) => {
226
225
 
227
226
  &:disabled {
228
227
  cursor: not-allowed;
229
- opacity: 0.5;
228
+ opacity: 0.35;
230
229
  }
231
230
 
232
231
  // 'Secondary' and 'Tertiary' buttonType tweaks