@mjhls/mjh-framework 1.0.86 → 1.0.88

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.86
2
+ # mjh-framework v. 1.0.88
3
3
 
4
4
 
5
5
  > Foundation Framework
package/dist/index.es.js CHANGED
@@ -21,6 +21,7 @@ import NavDropdown from 'react-bootstrap/NavDropdown';
21
21
  import Form from 'react-bootstrap/Form';
22
22
  import FormControl from 'react-bootstrap/FormControl';
23
23
  import Button from 'react-bootstrap/Button';
24
+ import Carousel$1 from 'react-bootstrap/Carousel';
24
25
 
25
26
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
26
27
 
@@ -12430,5 +12431,58 @@ var getSerializers$1 = function getSerializers(client, pageview) {
12430
12431
  };
12431
12432
  };
12432
12433
 
12433
- export { ContentCard as DeckContent, GridContent, DeckQueue, ThumbnailCard, TaxonomyCard, GroupDeck, YoutubeGroup, QueueDeckExpanded, Column1, Column2, Column3, Header, LeftNav, AccordionPanel, SocialShare, NavMagazine, NavNative, NavNormal, NavDvm, TemplateNormal, AD300x250, AD300x250x600, AD728x90, getSerializers$1 as getSerializers, Search };
12434
+ //Feature query to be used
12435
+ // const featureQuery = `*[_type == 'feature' && is_active == true && feature_url == "/"] | order(_updatedAt asc)[0..5]{
12436
+ // ...,
12437
+ // feature_img { asset-> {url} }
12438
+ // }`
12439
+ var Feature = function Feature(props) {
12440
+ var dataset = props.dataset;
12441
+
12442
+ return React__default.createElement(
12443
+ 'div',
12444
+ null,
12445
+ React__default.createElement(
12446
+ Carousel$1,
12447
+ null,
12448
+ dataset.map(function (feature, index) {
12449
+ var feature_title = feature.feature_title,
12450
+ feature_body = feature.feature_body,
12451
+ feature_img = feature.feature_img,
12452
+ feature_alt = feature.feature_alt,
12453
+ feature_link = feature.feature_link;
12454
+
12455
+ return React__default.createElement(
12456
+ Carousel$1.Item,
12457
+ { key: index, style: { background: 'var(--primary)' } },
12458
+ React__default.createElement('img', { style: { maxHeight: '375px', minHeight: '300px', objectFit: 'cover', paddingLeft: '50%' }, className: 'd-block w-100', src: feature_img, alt: feature_alt }),
12459
+ React__default.createElement(
12460
+ Carousel$1.Caption,
12461
+ { style: { paddingRight: '50%', left: '3rem', right: '3rem', top: '0', height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
12462
+ React__default.createElement(
12463
+ Link,
12464
+ { href: feature_link },
12465
+ React__default.createElement(
12466
+ 'a',
12467
+ null,
12468
+ React__default.createElement(
12469
+ 'h3',
12470
+ { style: { color: 'white' } },
12471
+ feature_title
12472
+ ),
12473
+ React__default.createElement(
12474
+ 'p',
12475
+ { style: { color: '#eee' } },
12476
+ feature_body
12477
+ )
12478
+ )
12479
+ )
12480
+ )
12481
+ );
12482
+ })
12483
+ )
12484
+ );
12485
+ };
12486
+
12487
+ export { ContentCard as DeckContent, GridContent, DeckQueue, ThumbnailCard, TaxonomyCard, GroupDeck, YoutubeGroup, QueueDeckExpanded, Column1, Column2, Column3, Header, LeftNav, AccordionPanel, SocialShare, NavMagazine, NavNative, NavNormal, NavDvm, TemplateNormal, AD300x250, AD300x250x600, AD728x90, getSerializers$1 as getSerializers, Search, Feature };
12434
12488
  //# sourceMappingURL=index.es.js.map