mp-design-system 0.9.29 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-design-system",
3
- "version": "0.9.29",
3
+ "version": "1.0.0",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "dev": "npm-run-all --parallel bundle:*",
@@ -737,7 +737,45 @@ module.exports = {
737
737
  }
738
738
  },
739
739
  {
740
- title: 'Event card (with image)',
740
+ title: 'In-person event card',
741
+ preview: 'content-width',
742
+ context: {
743
+ theme: {
744
+ border: false,
745
+ size: 'small',
746
+ layout: 'multi',
747
+ name: 'event',
748
+ inlineSpecs: true,
749
+ corner: true,
750
+ },
751
+ header: {
752
+ title: 'Discover how on-line particle sizing optimises mining analytics.',
753
+ date: {
754
+ date: new Date(),
755
+ time: '11:00 – 12:00',
756
+ timezone: 'EST'
757
+ },
758
+ meta: [
759
+ 'English'
760
+ ],
761
+ },
762
+ body: {
763
+ keySpecs: [
764
+ {
765
+ title: 'Products',
766
+ term: 'Morphologi G3-ID'
767
+ },
768
+ {
769
+ title: 'Technologies',
770
+ term: 'Morphologically-Directed Raman Spectroscopy'
771
+ }
772
+ ]
773
+ },
774
+ link: '#'
775
+ }
776
+ },
777
+ {
778
+ title: 'In-person event card with image',
741
779
  preview: 'content-width',
742
780
  context: {
743
781
  theme: {
@@ -778,9 +816,113 @@ module.exports = {
778
816
  link: '#'
779
817
  }
780
818
  },
819
+ {
820
+ title: 'On-demand event card',
821
+ preview: 'content-width',
822
+ context: {
823
+ theme: {
824
+ border: false,
825
+ size: 'small',
826
+ layout: 'multi',
827
+ name: 'event',
828
+ inlineSpecs: true
829
+ },
830
+ header: {
831
+ title: 'Discover how on-line particle sizing optimises mining analytics.',
832
+ date: {
833
+ date: new Date(),
834
+ duration: '36:01'
835
+ },
836
+ meta: [
837
+ 'English'
838
+ ]
839
+ },
840
+ body: {
841
+ keySpecs: [
842
+ {
843
+ title: 'Products',
844
+ term: 'Morphologi G3-ID'
845
+ },
846
+ {
847
+ title: 'Technologies',
848
+ term: 'Morphologically-Directed Raman Spectroscopy'
849
+ }
850
+ ],
851
+ },
852
+ tag: 'Recorded webinar'
853
+ }
854
+ },
855
+ {
856
+ title: 'On-demand event card with image',
857
+ preview: 'content-width',
858
+ context: {
859
+ theme: {
860
+ border: false,
861
+ size: 'small',
862
+ layout: 'multi',
863
+ name: 'event',
864
+ inlineSpecs: true
865
+ },
866
+ image: {
867
+ src: '/static/img/blog-page-image-1.jpg',
868
+ alt: 'Product image alt'
869
+ },
870
+ header: {
871
+ title: 'Discover how on-line particle sizing optimises mining analytics.',
872
+ date: {
873
+ date: new Date(),
874
+ duration: '36:01'
875
+ },
876
+ meta: [
877
+ 'English'
878
+ ]
879
+ },
880
+ body: {
881
+ keySpecs: [
882
+ {
883
+ title: 'Products',
884
+ term: 'Morphologi G3-ID'
885
+ },
886
+ {
887
+ title: 'Technologies',
888
+ term: 'Morphologically-Directed Raman Spectroscopy'
889
+ }
890
+ ],
891
+ },
892
+ tag: 'Recorded webinar'
893
+ }
894
+ },
781
895
  {
782
896
  title: 'Event series card',
783
897
  preview: 'content-width',
898
+ context: {
899
+ theme: {
900
+ border: false,
901
+ layout: 'single',
902
+ name: 'event-series',
903
+ inlineSpecs: false,
904
+ corner: false,
905
+ },
906
+ header: {
907
+ title: 'Part 1 - The theory of X-Ray Fluorescence (XRF)',
908
+ date: {
909
+ date: (new Date()).toLocaleString('default', { month: 'short', year: 'numeric' }),
910
+ formatted: true,
911
+ },
912
+ },
913
+ footer: {
914
+ cta: {
915
+ link: '#',
916
+ label: 'Watch now',
917
+ icon: 'play',
918
+ }
919
+ },
920
+ link: '#'
921
+ }
922
+ },
923
+ {
924
+ title: 'Event series card with image',
925
+ preview: 'content-width',
784
926
  context: {
785
927
  theme: {
786
928
  border: false,
@@ -408,6 +408,10 @@
408
408
  &--event.c-card--has-image {
409
409
  @extend .c-card--switch;
410
410
 
411
+ &.c-card--has-tag .c-card__tag {
412
+ z-index: 1;
413
+ }
414
+
411
415
  .c-card__wrapper {
412
416
  @include padding(0);
413
417
 
@@ -454,6 +458,15 @@
454
458
  object-fit: cover;
455
459
  }
456
460
 
461
+ .c-card__wrapper,
462
+ .c-card__primary {
463
+ height: 100%;
464
+ }
465
+
466
+ .c-card__primary {
467
+ flex-shrink: 1;
468
+ }
469
+
457
470
  .c-card__header > * + * {
458
471
  @include margin('s', 0, 0, 0);
459
472
  }