@asantemedia-org/edwardsvacuum-design-system 1.3.4 → 1.3.6

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.css CHANGED
@@ -459,4 +459,62 @@
459
459
  100% {
460
460
  transform: rotateY(0);
461
461
  }
462
+ }
463
+ .Button-module__cmp-button___SMjDF {
464
+ font-family: "Calibri";
465
+ text-transform: uppercase;
466
+ font-size: 1rem;
467
+ display: flex;
468
+ align-items: center;
469
+ min-width: calc(200px - 2rem);
470
+ min-height: 50px;
471
+ padding: 0 3rem 0 1rem;
472
+ transition: all 0.3s ease-in-out;
473
+ border: 2px solid transparent;
474
+ }
475
+ .Button-module__cmp-button--style-primary___hfLAd {
476
+ background: linear-gradient(45deg, rgb(196, 38, 46), rgb(135, 10, 32));
477
+ color: rgb(255, 255, 255);
478
+ border: none;
479
+ }
480
+ .Button-module__cmp-button--style-primary___hfLAd:hover {
481
+ background: rgb(255, 255, 255);
482
+ color: #2d363a;
483
+ }
484
+ .Button-module__cmp-button--style-secondary___3Dqvg {
485
+ background: #2d363a;
486
+ color: rgb(255, 255, 255);
487
+ }
488
+ .Button-module__cmp-button--style-secondary___3Dqvg:hover {
489
+ background: linear-gradient(45deg, rgb(172, 174, 176), rgb(130, 134, 136));
490
+ color: rgb(255, 255, 255);
491
+ }
492
+ .Button-module__cmp-button--style-tertiary___Akcep {
493
+ background: rgb(255, 255, 255);
494
+ color: #2d363a;
495
+ border: none;
496
+ }
497
+ .Button-module__cmp-button--style-tertiary___Akcep:hover {
498
+ background: #2d363a;
499
+ color: rgb(255, 255, 255);
500
+ }
501
+ .Button-module__cmp-button--style-outlineWhite___v69nN {
502
+ background: transparent;
503
+ color: rgb(255, 255, 255);
504
+ border: 2px solid rgb(255, 255, 255);
505
+ }
506
+ .Button-module__cmp-button--style-outlineWhite___v69nN:hover {
507
+ background: rgb(255, 255, 255);
508
+ color: #2d363a;
509
+ border-color: rgb(255, 255, 255);
510
+ }
511
+ .Button-module__cmp-button--style-outlineGrey___sG5nd {
512
+ background: transparent;
513
+ color: #2d363a;
514
+ border: 2px solid #2d363a;
515
+ }
516
+ .Button-module__cmp-button--style-outlineGrey___sG5nd:hover {
517
+ background: #2d363a;
518
+ color: rgb(255, 255, 255);
519
+ border-color: #2d363a;
462
520
  }
@@ -459,4 +459,62 @@
459
459
  100% {
460
460
  transform: rotateY(0);
461
461
  }
462
+ }
463
+ .Button-module__cmp-button___SMjDF {
464
+ font-family: "Calibri";
465
+ text-transform: uppercase;
466
+ font-size: 1rem;
467
+ display: flex;
468
+ align-items: center;
469
+ min-width: calc(200px - 2rem);
470
+ min-height: 50px;
471
+ padding: 0 3rem 0 1rem;
472
+ transition: all 0.3s ease-in-out;
473
+ border: 2px solid transparent;
474
+ }
475
+ .Button-module__cmp-button--style-primary___hfLAd {
476
+ background: linear-gradient(45deg, rgb(196, 38, 46), rgb(135, 10, 32));
477
+ color: rgb(255, 255, 255);
478
+ border: none;
479
+ }
480
+ .Button-module__cmp-button--style-primary___hfLAd:hover {
481
+ background: rgb(255, 255, 255);
482
+ color: #2d363a;
483
+ }
484
+ .Button-module__cmp-button--style-secondary___3Dqvg {
485
+ background: #2d363a;
486
+ color: rgb(255, 255, 255);
487
+ }
488
+ .Button-module__cmp-button--style-secondary___3Dqvg:hover {
489
+ background: linear-gradient(45deg, rgb(172, 174, 176), rgb(130, 134, 136));
490
+ color: rgb(255, 255, 255);
491
+ }
492
+ .Button-module__cmp-button--style-tertiary___Akcep {
493
+ background: rgb(255, 255, 255);
494
+ color: #2d363a;
495
+ border: none;
496
+ }
497
+ .Button-module__cmp-button--style-tertiary___Akcep:hover {
498
+ background: #2d363a;
499
+ color: rgb(255, 255, 255);
500
+ }
501
+ .Button-module__cmp-button--style-outlineWhite___v69nN {
502
+ background: transparent;
503
+ color: rgb(255, 255, 255);
504
+ border: 2px solid rgb(255, 255, 255);
505
+ }
506
+ .Button-module__cmp-button--style-outlineWhite___v69nN:hover {
507
+ background: rgb(255, 255, 255);
508
+ color: #2d363a;
509
+ border-color: rgb(255, 255, 255);
510
+ }
511
+ .Button-module__cmp-button--style-outlineGrey___sG5nd {
512
+ background: transparent;
513
+ color: #2d363a;
514
+ border: 2px solid #2d363a;
515
+ }
516
+ .Button-module__cmp-button--style-outlineGrey___sG5nd:hover {
517
+ background: #2d363a;
518
+ color: rgb(255, 255, 255);
519
+ border-color: #2d363a;
462
520
  }
package/dist/index.esm.js CHANGED
@@ -1,7 +1,4 @@
1
1
  import React, { useState, useEffect } from 'react';
2
- import './algolia-dynamic-search.scss';
3
- import './card.scss';
4
- import './button.scss';
5
2
 
6
3
  /******************************************************************************
7
4
  Copyright (c) Microsoft Corporation.
@@ -971,7 +968,7 @@ function defineIcons(prefix, icons) {
971
968
  }
972
969
 
973
970
  const {
974
- styles,
971
+ styles: styles$1,
975
972
  shims
976
973
  } = namespace;
977
974
  const FAMILY_NAMES = Object.keys(PREFIX_TO_LONG_STYLE);
@@ -1000,7 +997,7 @@ function getIconName(cssPrefix, cls) {
1000
997
  }
1001
998
  const build = () => {
1002
999
  const lookup = reducer => {
1003
- return reduce(styles, (o$$1, style, prefix) => {
1000
+ return reduce(styles$1, (o$$1, style, prefix) => {
1004
1001
  o$$1[prefix] = reduce(style, reducer, {});
1005
1002
  return o$$1;
1006
1003
  }, {});
@@ -1042,7 +1039,7 @@ const build = () => {
1042
1039
 
1043
1040
  // If we have a Kit, we can't determine if regular is available since we
1044
1041
  // could be auto-fetching it. We'll have to assume that it is available.
1045
- const hasRegular = 'far' in styles || config.autoFetchSvg;
1042
+ const hasRegular = 'far' in styles$1 || config.autoFetchSvg;
1046
1043
  const shimLookups = reduce(shims, (acc, shim) => {
1047
1044
  const maybeNameMaybeUnicode = shim[0];
1048
1045
  let prefix = shim[1];
@@ -1188,7 +1185,7 @@ function getCanonicalIcon(values) {
1188
1185
  return _objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, canonical), getDefaultCanonicalPrefix({
1189
1186
  values,
1190
1187
  family,
1191
- styles,
1188
+ styles: styles$1,
1192
1189
  config,
1193
1190
  canonical,
1194
1191
  givenPrefix
@@ -1209,7 +1206,7 @@ function applyShimAndAlias(skipLookups, givenPrefix, canonical) {
1209
1206
  const aliasIconName = byAlias(prefix, iconName);
1210
1207
  iconName = shim.iconName || aliasIconName || iconName;
1211
1208
  prefix = shim.prefix || prefix;
1212
- if (prefix === 'far' && !styles['far'] && styles['fas'] && !config.autoFetchSvg) {
1209
+ if (prefix === 'far' && !styles$1['far'] && styles$1['fas'] && !config.autoFetchSvg) {
1213
1210
  // Allow a fallback from the regular style to solid if regular is not available
1214
1211
  // but only if we aren't auto-fetching SVGs
1215
1212
  prefix = 'fas';
@@ -1711,7 +1708,7 @@ function makeLayersCounterAbstract(params) {
1711
1708
  }
1712
1709
 
1713
1710
  const {
1714
- styles: styles$1
1711
+ styles: styles$1$1
1715
1712
  } = namespace;
1716
1713
  function asFoundIcon(icon) {
1717
1714
  const width = icon[0];
@@ -1777,8 +1774,8 @@ function findIcon(iconName, prefix) {
1777
1774
  iconName = shim.iconName || iconName;
1778
1775
  prefix = shim.prefix || prefix;
1779
1776
  }
1780
- if (iconName && prefix && styles$1[prefix] && styles$1[prefix][iconName]) {
1781
- const icon = styles$1[prefix][iconName];
1777
+ if (iconName && prefix && styles$1$1[prefix] && styles$1$1[prefix][iconName]) {
1778
+ const icon = styles$1$1[prefix][iconName];
1782
1779
  return resolve(asFoundIcon(icon));
1783
1780
  }
1784
1781
  maybeNotifyMissing(iconName, prefix);
@@ -4574,7 +4571,7 @@ const faChevronRight = {
4574
4571
  };
4575
4572
 
4576
4573
  // Utility function to retrieve correct SCSS module class names
4577
- var getStyle = function (className) {
4574
+ var getStyle$1 = function (className) {
4578
4575
  if (styles$3[className]) return styles$3[className];
4579
4576
  var nestedMatch = Object.keys(styles$3).find(function (key) {
4580
4577
  return key.includes(className);
@@ -4627,43 +4624,43 @@ var Card = function (_a) {
4627
4624
  country = _a.country,
4628
4625
  placeholder = _a.placeholder,
4629
4626
  onClick = _a.onClick;
4630
- var mode = getStyle("cmp-card--".concat(cardStyle));
4627
+ var mode = getStyle$1("cmp-card--".concat(cardStyle));
4631
4628
  var width = cardSizeMapping(size);
4632
4629
  var categoryColour = colour ? "cmp-card__content-category-wrapper__colour-".concat(colour) : '';
4633
4630
  var contentImage = getImageUrl(imageUrl);
4634
4631
  return /*#__PURE__*/React.createElement("div", {
4635
- className: classnames(getStyle('cmp-card'), mode, width, className && getStyle(className))
4632
+ className: classnames(getStyle$1('cmp-card'), mode, width, className && getStyle$1(className))
4636
4633
  }, /*#__PURE__*/React.createElement("a", {
4637
- className: getStyle('cmp-card__link'),
4634
+ className: getStyle$1('cmp-card__link'),
4638
4635
  href: cardLink,
4639
4636
  onClick: onClick
4640
4637
  }, /*#__PURE__*/React.createElement("div", {
4641
- className: getStyle('cmp-card__content-wrapper')
4638
+ className: getStyle$1('cmp-card__content-wrapper')
4642
4639
  }, /*#__PURE__*/React.createElement("div", {
4643
- className: "".concat(getStyle('cmp-card__image-wrapper'), " ").concat(!imageUrl || placeholder ? getStyle('placeholderImage') : '')
4640
+ className: "".concat(getStyle$1('cmp-card__image-wrapper'), " ").concat(!imageUrl || placeholder ? getStyle$1('placeholderImage') : '')
4644
4641
  }, /*#__PURE__*/React.createElement("picture", null, /*#__PURE__*/React.createElement("img", {
4645
4642
  src: contentImage,
4646
4643
  alt: imageAlt
4647
4644
  }))), cardStyle === 'type-card-label' && /*#__PURE__*/React.createElement("div", {
4648
- className: classnames(getStyle('cmp-card__content-category-wrapper'), categoryColour)
4645
+ className: classnames(getStyle$1('cmp-card__content-category-wrapper'), categoryColour)
4649
4646
  }, contentCategoryLabel && /*#__PURE__*/React.createElement("p", null, contentCategoryLabel)), /*#__PURE__*/React.createElement("div", {
4650
- className: getStyle('cmp-card__title-wrapper')
4647
+ className: getStyle$1('cmp-card__title-wrapper')
4651
4648
  }, date && /*#__PURE__*/React.createElement("div", {
4652
- className: getStyle('cmp-card__date')
4649
+ className: getStyle$1('cmp-card__date')
4653
4650
  }, date), title && /*#__PURE__*/React.createElement("h4", {
4654
- className: getStyle('cmp-card__title')
4651
+ className: getStyle$1('cmp-card__title')
4655
4652
  }, title), (city || country) && /*#__PURE__*/React.createElement("p", {
4656
- className: getStyle('cmp-card__city-country')
4653
+ className: getStyle$1('cmp-card__city-country')
4657
4654
  }, city, " ", city && country ? ', ' : '', " ", country), cardStyle === 'type-card-panel' ? /*#__PURE__*/React.createElement("span", {
4658
- className: classnames(getStyle('cmp-card__footer'), categoryColour)
4655
+ className: classnames(getStyle$1('cmp-card__footer'), categoryColour)
4659
4656
  }, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
4660
4657
  icon: faChevronRight
4661
4658
  })) : cardStyle === 'label' ? /*#__PURE__*/React.createElement("span", {
4662
- className: getStyle('cmp-card__footer')
4659
+ className: getStyle$1('cmp-card__footer')
4663
4660
  }, /*#__PURE__*/React.createElement(FontAwesomeIcon, {
4664
4661
  icon: faArrowRight
4665
4662
  })) : /*#__PURE__*/React.createElement("span", {
4666
- className: getStyle('cmp-card__footer')
4663
+ className: getStyle$1('cmp-card__footer')
4667
4664
  }, /*#__PURE__*/React.createElement("span", null, cta))))));
4668
4665
  };
4669
4666
  var ProductCard = function (_a) {
@@ -4680,30 +4677,30 @@ var ProductCard = function (_a) {
4680
4677
  placeholder = _a.placeholder,
4681
4678
  onClick = _a.onClick;
4682
4679
  var width = cardSizeMapping(size);
4683
- var mode = getStyle("cmp-card--".concat(cardStyle));
4680
+ var mode = getStyle$1("cmp-card--".concat(cardStyle));
4684
4681
  var productImage = getImageUrl(imageUrl);
4685
4682
  return /*#__PURE__*/React.createElement("div", {
4686
- className: classnames(getStyle('cmp-card'), mode, width, className)
4683
+ className: classnames(getStyle$1('cmp-card'), mode, width, className)
4687
4684
  }, /*#__PURE__*/React.createElement("a", {
4688
4685
  href: cardLink,
4689
- className: getStyle('cmp-card__link'),
4686
+ className: getStyle$1('cmp-card__link'),
4690
4687
  onClick: onClick
4691
4688
  }, /*#__PURE__*/React.createElement("div", {
4692
- className: getStyle('cmp-card--type-card-product__wrapper')
4689
+ className: getStyle$1('cmp-card--type-card-product__wrapper')
4693
4690
  }, /*#__PURE__*/React.createElement("div", {
4694
- className: getStyle('cmp-card--type-card-product__image')
4691
+ className: getStyle$1('cmp-card--type-card-product__image')
4695
4692
  }, /*#__PURE__*/React.createElement("figure", null, /*#__PURE__*/React.createElement("img", {
4696
4693
  src: productImage,
4697
4694
  alt: imageAlt,
4698
4695
  className: !imageUrl || placeholder ? 'placeholderImage' : undefined
4699
4696
  }))), /*#__PURE__*/React.createElement("div", {
4700
- className: getStyle('cmp-card--type-card-product__meta')
4697
+ className: getStyle$1('cmp-card--type-card-product__meta')
4701
4698
  }, /*#__PURE__*/React.createElement("p", {
4702
- className: getStyle('cmp-card--type-card-product__title')
4699
+ className: getStyle$1('cmp-card--type-card-product__title')
4703
4700
  }, title), productPrice && showProductPrice !== false ? /*#__PURE__*/React.createElement("p", {
4704
- className: getStyle('cmp-card--type-card-product__prices')
4701
+ className: getStyle$1('cmp-card--type-card-product__prices')
4705
4702
  }, productPrice) : '', /*#__PURE__*/React.createElement("p", {
4706
- className: getStyle('cmp-card--type-card-product__cta')
4703
+ className: getStyle$1('cmp-card--type-card-product__cta')
4707
4704
  }, cta ? cta : /*#__PURE__*/React.createElement(FontAwesomeIcon, {
4708
4705
  icon: faArrowRight
4709
4706
  }))))));
@@ -4719,6 +4716,16 @@ function _extends() {
4719
4716
  }, _extends.apply(null, arguments);
4720
4717
  }
4721
4718
 
4719
+ var styles = {"cmp-button":"Button-module__cmp-button___SMjDF","cmp-button--style-primary":"Button-module__cmp-button--style-primary___hfLAd","cmp-button--style-secondary":"Button-module__cmp-button--style-secondary___3Dqvg","cmp-button--style-tertiary":"Button-module__cmp-button--style-tertiary___Akcep","cmp-button--style-outlineWhite":"Button-module__cmp-button--style-outlineWhite___v69nN","cmp-button--style-outlineGrey":"Button-module__cmp-button--style-outlineGrey___sG5nd"};
4720
+
4721
+ // Utility function to retrieve correct SCSS module class names
4722
+ var getStyle = function (className) {
4723
+ if (styles[className]) return styles[className];
4724
+ var nestedMatch = Object.keys(styles).find(function (key) {
4725
+ return key.includes(className);
4726
+ });
4727
+ return nestedMatch ? styles[nestedMatch] : '';
4728
+ };
4722
4729
  /**
4723
4730
  * Primary UI component for user interaction
4724
4731
  */
@@ -4726,9 +4733,9 @@ var Button = function (_a) {
4726
4733
  var style = _a.style,
4727
4734
  label = _a.label,
4728
4735
  props = __rest(_a, ["style", "label"]);
4729
- var mode = style ? "cmp-button--style-".concat(style) : '';
4736
+ var mode = style ? getStyle("cmp-button--style-".concat(style)) : '';
4730
4737
  return /*#__PURE__*/React.createElement("button", _extends({
4731
- className: ['cmp-button', mode].join(' ')
4738
+ className: [getStyle('cmp-button'), mode].join(' ')
4732
4739
  }, props), label);
4733
4740
  };
4734
4741