@mjhls/mjh-framework 1.0.88 → 1.0.90
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 +1 -1
- package/dist/index.es.js +85 -114
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +84 -113
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { Component, useState, useEffect, useRef,
|
|
1
|
+
import React__default, { Component, useState, useEffect, useRef, createContext, createElement } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import reactDom from 'react-dom';
|
|
4
4
|
import Container from 'react-bootstrap/Container';
|
|
@@ -15,12 +15,12 @@ import Head from 'next/head';
|
|
|
15
15
|
import Accordion from 'react-bootstrap/Accordion';
|
|
16
16
|
import { useAccordionToggle } from 'react-bootstrap/AccordionToggle';
|
|
17
17
|
import { FacebookShareButton, TwitterShareButton, PinterestShareButton, EmailShareButton, FacebookIcon, TwitterIcon, PinterestIcon, EmailIcon } from 'react-share';
|
|
18
|
-
import Nav from 'react-bootstrap/Nav';
|
|
19
|
-
import Navbar from 'react-bootstrap/Navbar';
|
|
20
|
-
import NavDropdown from 'react-bootstrap/NavDropdown';
|
|
21
18
|
import Form from 'react-bootstrap/Form';
|
|
22
19
|
import FormControl from 'react-bootstrap/FormControl';
|
|
23
20
|
import Button from 'react-bootstrap/Button';
|
|
21
|
+
import Nav from 'react-bootstrap/Nav';
|
|
22
|
+
import Navbar from 'react-bootstrap/Navbar';
|
|
23
|
+
import NavDropdown from 'react-bootstrap/NavDropdown';
|
|
24
24
|
import Carousel$1 from 'react-bootstrap/Carousel';
|
|
25
25
|
|
|
26
26
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -6273,6 +6273,7 @@ var renderAuthor = function renderAuthor(authorName, authorURL, index$$1, length
|
|
|
6273
6273
|
};
|
|
6274
6274
|
|
|
6275
6275
|
var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate, pageview, router, currentPage, setCurrentPage) {
|
|
6276
|
+
|
|
6276
6277
|
return React__default.createElement(
|
|
6277
6278
|
'div',
|
|
6278
6279
|
null,
|
|
@@ -6287,13 +6288,22 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
6287
6288
|
isVisible && changePageNumber(pageNumber, seoPaginate, pageview, router, currentPage, setCurrentPage);
|
|
6288
6289
|
} },
|
|
6289
6290
|
React__default.createElement(
|
|
6290
|
-
|
|
6291
|
-
|
|
6291
|
+
React__default.Fragment,
|
|
6292
|
+
null,
|
|
6292
6293
|
React__default.createElement(
|
|
6293
|
-
|
|
6294
|
-
|
|
6294
|
+
Media$1,
|
|
6295
|
+
{ key: article._id ? article._id : index$$1, style: { marginBottom: '1.25rem', paddingBottom: '1.25rem', borderBottom: '1px solid #ddd' } },
|
|
6296
|
+
React__default.createElement(
|
|
6297
|
+
Link,
|
|
6298
|
+
{ href: mapping[contentCategoryName] + '/[url]', as: mapping[contentCategoryName] + '/' + article.url.current },
|
|
6299
|
+
React__default.createElement(
|
|
6300
|
+
'a',
|
|
6301
|
+
null,
|
|
6302
|
+
React__default.createElement('img', { width: 200, height: 130, className: 'mr-3', src: urlFor(builder, article.thumbnail.asset).url(), style: { objectFit: 'cover' }, alt: article.title })
|
|
6303
|
+
)
|
|
6304
|
+
),
|
|
6295
6305
|
React__default.createElement(
|
|
6296
|
-
Media$1,
|
|
6306
|
+
Media$1.Body,
|
|
6297
6307
|
null,
|
|
6298
6308
|
React__default.createElement(
|
|
6299
6309
|
Link,
|
|
@@ -6301,43 +6311,30 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
|
|
|
6301
6311
|
React__default.createElement(
|
|
6302
6312
|
'a',
|
|
6303
6313
|
null,
|
|
6304
|
-
|
|
6314
|
+
article.title && React__default.createElement(
|
|
6315
|
+
'h4',
|
|
6316
|
+
{ className: 'card-title', style: { fontWeight: '500', color: 'var(--gray-dark)', marginBottom: '.5rem' } },
|
|
6317
|
+
article.title
|
|
6318
|
+
)
|
|
6305
6319
|
)
|
|
6306
6320
|
),
|
|
6307
|
-
React__default.createElement(
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
article.published && React__default.createElement(
|
|
6324
|
-
'h6',
|
|
6325
|
-
{ className: 'card-text' },
|
|
6326
|
-
moment(article.published).format('MMMM DD, YYYY')
|
|
6327
|
-
),
|
|
6328
|
-
article.authorDetails && article.authorDetails.length > 0 && article.authorDetails.map(function (authorDetail, index$$1) {
|
|
6329
|
-
return React__default.createElement(
|
|
6330
|
-
'div',
|
|
6331
|
-
{ className: 'card-text d-inline', key: index$$1 },
|
|
6332
|
-
renderAuthor(authorDetail.displayName, authorDetail.url, index$$1, article.authorDetails.length)
|
|
6333
|
-
);
|
|
6334
|
-
})
|
|
6321
|
+
article.published && React__default.createElement(
|
|
6322
|
+
'p',
|
|
6323
|
+
{ className: 'card-text', style: { color: 'var(--gray)', marginBottom: '.25rem' } },
|
|
6324
|
+
moment(article.published).format('MMMM DD, YYYY')
|
|
6325
|
+
),
|
|
6326
|
+
article.authorDetails && article.authorDetails.length > 0 && article.authorDetails.map(function (authorDetail, index$$1) {
|
|
6327
|
+
return React__default.createElement(
|
|
6328
|
+
'div',
|
|
6329
|
+
{ className: 'card-text d-inline', key: index$$1 },
|
|
6330
|
+
renderAuthor(authorDetail.displayName, authorDetail.url, index$$1, article.authorDetails.length)
|
|
6331
|
+
);
|
|
6332
|
+
}),
|
|
6333
|
+
article.summary && React__default.createElement(
|
|
6334
|
+
'p',
|
|
6335
|
+
{ className: 'pt-2 card-text' },
|
|
6336
|
+
article.summary
|
|
6335
6337
|
)
|
|
6336
|
-
),
|
|
6337
|
-
article.summary && React__default.createElement(
|
|
6338
|
-
'p',
|
|
6339
|
-
{ className: 'pt-2 card-text' },
|
|
6340
|
-
article.summary
|
|
6341
6338
|
)
|
|
6342
6339
|
)
|
|
6343
6340
|
)
|
|
@@ -6372,6 +6369,7 @@ var usePrevious = function usePrevious(value) {
|
|
|
6372
6369
|
};
|
|
6373
6370
|
|
|
6374
6371
|
var QueueDeckExpanded = function QueueDeckExpanded(props) {
|
|
6372
|
+
|
|
6375
6373
|
var router = useRouter();
|
|
6376
6374
|
var initialData = props.dataRecord,
|
|
6377
6375
|
client = props.client,
|
|
@@ -6979,6 +6977,47 @@ var MdMouse = function (props) {
|
|
|
6979
6977
|
};
|
|
6980
6978
|
MdMouse.displayName = "MdMouse";
|
|
6981
6979
|
|
|
6980
|
+
var Search = function Search(_ref) {
|
|
6981
|
+
var _ref$placeholder = _ref.placeholder,
|
|
6982
|
+
placeholder = _ref$placeholder === undefined ? 'Search' : _ref$placeholder,
|
|
6983
|
+
_ref$btnText = _ref.btnText,
|
|
6984
|
+
btnText = _ref$btnText === undefined ? 'Search' : _ref$btnText;
|
|
6985
|
+
|
|
6986
|
+
var router = useRouter();
|
|
6987
|
+
|
|
6988
|
+
var _useState = useState(''),
|
|
6989
|
+
_useState2 = slicedToArray(_useState, 2),
|
|
6990
|
+
searchKey = _useState2[0],
|
|
6991
|
+
setSearchKey = _useState2[1];
|
|
6992
|
+
|
|
6993
|
+
var handleSearch = function handleSearch(value) {
|
|
6994
|
+
router.push({
|
|
6995
|
+
pathname: '/search',
|
|
6996
|
+
query: { searchTerm: value }
|
|
6997
|
+
});
|
|
6998
|
+
};
|
|
6999
|
+
|
|
7000
|
+
return React__default.createElement(
|
|
7001
|
+
Form,
|
|
7002
|
+
{
|
|
7003
|
+
inline: true,
|
|
7004
|
+
onSubmit: function onSubmit(e) {
|
|
7005
|
+
e.preventDefault();
|
|
7006
|
+
handleSearch(searchKey);
|
|
7007
|
+
} },
|
|
7008
|
+
React__default.createElement(FormControl, { type: 'text', placeholder: placeholder, className: 'mr-sm-2', value: searchKey, onChange: function onChange(e) {
|
|
7009
|
+
return setSearchKey(e.target.value);
|
|
7010
|
+
} }),
|
|
7011
|
+
React__default.createElement(
|
|
7012
|
+
Button,
|
|
7013
|
+
{ variant: 'secondary', onClick: function onClick() {
|
|
7014
|
+
return handleSearch(searchKey);
|
|
7015
|
+
} },
|
|
7016
|
+
btnText
|
|
7017
|
+
)
|
|
7018
|
+
);
|
|
7019
|
+
};
|
|
7020
|
+
|
|
6982
7021
|
var NavMagazine = function NavMagazine(props) {
|
|
6983
7022
|
var logo = props.logo,
|
|
6984
7023
|
dataObject = props.dataObject;
|
|
@@ -7099,16 +7138,7 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
7099
7138
|
}
|
|
7100
7139
|
})
|
|
7101
7140
|
),
|
|
7102
|
-
React__default.createElement(
|
|
7103
|
-
Form,
|
|
7104
|
-
{ inline: true },
|
|
7105
|
-
React__default.createElement(FormControl, { type: 'text', placeholder: 'Search', className: 'mr-sm-2' }),
|
|
7106
|
-
React__default.createElement(
|
|
7107
|
-
Button,
|
|
7108
|
-
{ variant: 'secondary' },
|
|
7109
|
-
'Search'
|
|
7110
|
-
)
|
|
7111
|
-
)
|
|
7141
|
+
React__default.createElement(Search, null)
|
|
7112
7142
|
)
|
|
7113
7143
|
)
|
|
7114
7144
|
)
|
|
@@ -7179,16 +7209,7 @@ var NavNative = function NavNative(props) {
|
|
|
7179
7209
|
}
|
|
7180
7210
|
})
|
|
7181
7211
|
),
|
|
7182
|
-
React__default.createElement(
|
|
7183
|
-
Form,
|
|
7184
|
-
{ inline: true },
|
|
7185
|
-
React__default.createElement(FormControl, { type: 'text', placeholder: 'Search', className: 'mr-sm-2' }),
|
|
7186
|
-
React__default.createElement(
|
|
7187
|
-
Button,
|
|
7188
|
-
{ variant: 'secondary' },
|
|
7189
|
-
'Search'
|
|
7190
|
-
)
|
|
7191
|
-
)
|
|
7212
|
+
React__default.createElement(Search, null)
|
|
7192
7213
|
)
|
|
7193
7214
|
)
|
|
7194
7215
|
)
|
|
@@ -7262,62 +7283,12 @@ var NavNormal = function NavNormal(props) {
|
|
|
7262
7283
|
})
|
|
7263
7284
|
)
|
|
7264
7285
|
),
|
|
7265
|
-
React__default.createElement(
|
|
7266
|
-
Form,
|
|
7267
|
-
{ inline: true },
|
|
7268
|
-
React__default.createElement(FormControl, { type: 'text', placeholder: 'Search', style: { width: '60%', margin: '0px 10px' } }),
|
|
7269
|
-
React__default.createElement(
|
|
7270
|
-
Button,
|
|
7271
|
-
{ variant: 'secondary' },
|
|
7272
|
-
'Search'
|
|
7273
|
-
)
|
|
7274
|
-
)
|
|
7286
|
+
React__default.createElement(Search, null)
|
|
7275
7287
|
)
|
|
7276
7288
|
)
|
|
7277
7289
|
);
|
|
7278
7290
|
};
|
|
7279
7291
|
|
|
7280
|
-
var Search = function Search(_ref) {
|
|
7281
|
-
var _ref$placeholder = _ref.placeholder,
|
|
7282
|
-
placeholder = _ref$placeholder === undefined ? 'Search' : _ref$placeholder,
|
|
7283
|
-
_ref$btnText = _ref.btnText,
|
|
7284
|
-
btnText = _ref$btnText === undefined ? 'Search' : _ref$btnText;
|
|
7285
|
-
|
|
7286
|
-
var router = useRouter();
|
|
7287
|
-
|
|
7288
|
-
var _useState = useState(''),
|
|
7289
|
-
_useState2 = slicedToArray(_useState, 2),
|
|
7290
|
-
searchKey = _useState2[0],
|
|
7291
|
-
setSearchKey = _useState2[1];
|
|
7292
|
-
|
|
7293
|
-
var handleSearch = function handleSearch(value) {
|
|
7294
|
-
router.push({
|
|
7295
|
-
pathname: '/search',
|
|
7296
|
-
query: { searchTerm: value }
|
|
7297
|
-
});
|
|
7298
|
-
};
|
|
7299
|
-
|
|
7300
|
-
return React__default.createElement(
|
|
7301
|
-
Form,
|
|
7302
|
-
{
|
|
7303
|
-
inline: true,
|
|
7304
|
-
onSubmit: function onSubmit(e) {
|
|
7305
|
-
e.preventDefault();
|
|
7306
|
-
handleSearch(searchKey);
|
|
7307
|
-
} },
|
|
7308
|
-
React__default.createElement(FormControl, { type: 'text', placeholder: placeholder, className: 'mr-sm-2', value: searchKey, onChange: function onChange(e) {
|
|
7309
|
-
return setSearchKey(e.target.value);
|
|
7310
|
-
} }),
|
|
7311
|
-
React__default.createElement(
|
|
7312
|
-
Button,
|
|
7313
|
-
{ variant: 'secondary', onClick: function onClick() {
|
|
7314
|
-
return handleSearch(searchKey);
|
|
7315
|
-
} },
|
|
7316
|
-
btnText
|
|
7317
|
-
)
|
|
7318
|
-
);
|
|
7319
|
-
};
|
|
7320
|
-
|
|
7321
7292
|
var NavDvm = function NavDvm(props) {
|
|
7322
7293
|
var logo = props.logo,
|
|
7323
7294
|
mobileLogo = props.mobileLogo,
|