@mjhls/mjh-framework 1.0.86 → 1.0.89
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 +102 -75
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +102 -74
- package/dist/index.js.map +1 -1
- package/package.json +6 -3
package/dist/index.js
CHANGED
|
@@ -22,12 +22,13 @@ var Head = _interopDefault(require('next/head'));
|
|
|
22
22
|
var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
|
|
23
23
|
var AccordionToggle = require('react-bootstrap/AccordionToggle');
|
|
24
24
|
var reactShare = require('react-share');
|
|
25
|
-
var Nav = _interopDefault(require('react-bootstrap/Nav'));
|
|
26
|
-
var Navbar = _interopDefault(require('react-bootstrap/Navbar'));
|
|
27
|
-
var NavDropdown = _interopDefault(require('react-bootstrap/NavDropdown'));
|
|
28
25
|
var Form = _interopDefault(require('react-bootstrap/Form'));
|
|
29
26
|
var FormControl = _interopDefault(require('react-bootstrap/FormControl'));
|
|
30
27
|
var Button = _interopDefault(require('react-bootstrap/Button'));
|
|
28
|
+
var Nav = _interopDefault(require('react-bootstrap/Nav'));
|
|
29
|
+
var Navbar = _interopDefault(require('react-bootstrap/Navbar'));
|
|
30
|
+
var NavDropdown = _interopDefault(require('react-bootstrap/NavDropdown'));
|
|
31
|
+
var Carousel = _interopDefault(require('react-bootstrap/Carousel'));
|
|
31
32
|
|
|
32
33
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
33
34
|
|
|
@@ -6985,6 +6986,47 @@ var MdMouse = function (props) {
|
|
|
6985
6986
|
};
|
|
6986
6987
|
MdMouse.displayName = "MdMouse";
|
|
6987
6988
|
|
|
6989
|
+
var Search = function Search(_ref) {
|
|
6990
|
+
var _ref$placeholder = _ref.placeholder,
|
|
6991
|
+
placeholder = _ref$placeholder === undefined ? 'Search' : _ref$placeholder,
|
|
6992
|
+
_ref$btnText = _ref.btnText,
|
|
6993
|
+
btnText = _ref$btnText === undefined ? 'Search' : _ref$btnText;
|
|
6994
|
+
|
|
6995
|
+
var router$$1 = router.useRouter();
|
|
6996
|
+
|
|
6997
|
+
var _useState = React.useState(''),
|
|
6998
|
+
_useState2 = slicedToArray(_useState, 2),
|
|
6999
|
+
searchKey = _useState2[0],
|
|
7000
|
+
setSearchKey = _useState2[1];
|
|
7001
|
+
|
|
7002
|
+
var handleSearch = function handleSearch(value) {
|
|
7003
|
+
router$$1.push({
|
|
7004
|
+
pathname: '/search',
|
|
7005
|
+
query: { searchTerm: value }
|
|
7006
|
+
});
|
|
7007
|
+
};
|
|
7008
|
+
|
|
7009
|
+
return React__default.createElement(
|
|
7010
|
+
Form,
|
|
7011
|
+
{
|
|
7012
|
+
inline: true,
|
|
7013
|
+
onSubmit: function onSubmit(e) {
|
|
7014
|
+
e.preventDefault();
|
|
7015
|
+
handleSearch(searchKey);
|
|
7016
|
+
} },
|
|
7017
|
+
React__default.createElement(FormControl, { type: 'text', placeholder: placeholder, className: 'mr-sm-2', value: searchKey, onChange: function onChange(e) {
|
|
7018
|
+
return setSearchKey(e.target.value);
|
|
7019
|
+
} }),
|
|
7020
|
+
React__default.createElement(
|
|
7021
|
+
Button,
|
|
7022
|
+
{ variant: 'secondary', onClick: function onClick() {
|
|
7023
|
+
return handleSearch(searchKey);
|
|
7024
|
+
} },
|
|
7025
|
+
btnText
|
|
7026
|
+
)
|
|
7027
|
+
);
|
|
7028
|
+
};
|
|
7029
|
+
|
|
6988
7030
|
var NavMagazine = function NavMagazine(props) {
|
|
6989
7031
|
var logo = props.logo,
|
|
6990
7032
|
dataObject = props.dataObject;
|
|
@@ -7105,16 +7147,7 @@ var NavMagazine = function NavMagazine(props) {
|
|
|
7105
7147
|
}
|
|
7106
7148
|
})
|
|
7107
7149
|
),
|
|
7108
|
-
React__default.createElement(
|
|
7109
|
-
Form,
|
|
7110
|
-
{ inline: true },
|
|
7111
|
-
React__default.createElement(FormControl, { type: 'text', placeholder: 'Search', className: 'mr-sm-2' }),
|
|
7112
|
-
React__default.createElement(
|
|
7113
|
-
Button,
|
|
7114
|
-
{ variant: 'secondary' },
|
|
7115
|
-
'Search'
|
|
7116
|
-
)
|
|
7117
|
-
)
|
|
7150
|
+
React__default.createElement(Search, null)
|
|
7118
7151
|
)
|
|
7119
7152
|
)
|
|
7120
7153
|
)
|
|
@@ -7185,16 +7218,7 @@ var NavNative = function NavNative(props) {
|
|
|
7185
7218
|
}
|
|
7186
7219
|
})
|
|
7187
7220
|
),
|
|
7188
|
-
React__default.createElement(
|
|
7189
|
-
Form,
|
|
7190
|
-
{ inline: true },
|
|
7191
|
-
React__default.createElement(FormControl, { type: 'text', placeholder: 'Search', className: 'mr-sm-2' }),
|
|
7192
|
-
React__default.createElement(
|
|
7193
|
-
Button,
|
|
7194
|
-
{ variant: 'secondary' },
|
|
7195
|
-
'Search'
|
|
7196
|
-
)
|
|
7197
|
-
)
|
|
7221
|
+
React__default.createElement(Search, null)
|
|
7198
7222
|
)
|
|
7199
7223
|
)
|
|
7200
7224
|
)
|
|
@@ -7268,62 +7292,12 @@ var NavNormal = function NavNormal(props) {
|
|
|
7268
7292
|
})
|
|
7269
7293
|
)
|
|
7270
7294
|
),
|
|
7271
|
-
React__default.createElement(
|
|
7272
|
-
Form,
|
|
7273
|
-
{ inline: true },
|
|
7274
|
-
React__default.createElement(FormControl, { type: 'text', placeholder: 'Search', style: { width: '60%', margin: '0px 10px' } }),
|
|
7275
|
-
React__default.createElement(
|
|
7276
|
-
Button,
|
|
7277
|
-
{ variant: 'secondary' },
|
|
7278
|
-
'Search'
|
|
7279
|
-
)
|
|
7280
|
-
)
|
|
7295
|
+
React__default.createElement(Search, null)
|
|
7281
7296
|
)
|
|
7282
7297
|
)
|
|
7283
7298
|
);
|
|
7284
7299
|
};
|
|
7285
7300
|
|
|
7286
|
-
var Search = function Search(_ref) {
|
|
7287
|
-
var _ref$placeholder = _ref.placeholder,
|
|
7288
|
-
placeholder = _ref$placeholder === undefined ? 'Search' : _ref$placeholder,
|
|
7289
|
-
_ref$btnText = _ref.btnText,
|
|
7290
|
-
btnText = _ref$btnText === undefined ? 'Search' : _ref$btnText;
|
|
7291
|
-
|
|
7292
|
-
var router$$1 = router.useRouter();
|
|
7293
|
-
|
|
7294
|
-
var _useState = React.useState(''),
|
|
7295
|
-
_useState2 = slicedToArray(_useState, 2),
|
|
7296
|
-
searchKey = _useState2[0],
|
|
7297
|
-
setSearchKey = _useState2[1];
|
|
7298
|
-
|
|
7299
|
-
var handleSearch = function handleSearch(value) {
|
|
7300
|
-
router$$1.push({
|
|
7301
|
-
pathname: '/search',
|
|
7302
|
-
query: { searchTerm: value }
|
|
7303
|
-
});
|
|
7304
|
-
};
|
|
7305
|
-
|
|
7306
|
-
return React__default.createElement(
|
|
7307
|
-
Form,
|
|
7308
|
-
{
|
|
7309
|
-
inline: true,
|
|
7310
|
-
onSubmit: function onSubmit(e) {
|
|
7311
|
-
e.preventDefault();
|
|
7312
|
-
handleSearch(searchKey);
|
|
7313
|
-
} },
|
|
7314
|
-
React__default.createElement(FormControl, { type: 'text', placeholder: placeholder, className: 'mr-sm-2', value: searchKey, onChange: function onChange(e) {
|
|
7315
|
-
return setSearchKey(e.target.value);
|
|
7316
|
-
} }),
|
|
7317
|
-
React__default.createElement(
|
|
7318
|
-
Button,
|
|
7319
|
-
{ variant: 'secondary', onClick: function onClick() {
|
|
7320
|
-
return handleSearch(searchKey);
|
|
7321
|
-
} },
|
|
7322
|
-
btnText
|
|
7323
|
-
)
|
|
7324
|
-
);
|
|
7325
|
-
};
|
|
7326
|
-
|
|
7327
7301
|
var NavDvm = function NavDvm(props) {
|
|
7328
7302
|
var logo = props.logo,
|
|
7329
7303
|
mobileLogo = props.mobileLogo,
|
|
@@ -12437,6 +12411,59 @@ var getSerializers$1 = function getSerializers(client, pageview) {
|
|
|
12437
12411
|
};
|
|
12438
12412
|
};
|
|
12439
12413
|
|
|
12414
|
+
//Feature query to be used
|
|
12415
|
+
// const featureQuery = `*[_type == 'feature' && is_active == true && feature_url == "/"] | order(_updatedAt asc)[0..5]{
|
|
12416
|
+
// ...,
|
|
12417
|
+
// feature_img { asset-> {url} }
|
|
12418
|
+
// }`
|
|
12419
|
+
var Feature = function Feature(props) {
|
|
12420
|
+
var dataset = props.dataset;
|
|
12421
|
+
|
|
12422
|
+
return React__default.createElement(
|
|
12423
|
+
'div',
|
|
12424
|
+
null,
|
|
12425
|
+
React__default.createElement(
|
|
12426
|
+
Carousel,
|
|
12427
|
+
null,
|
|
12428
|
+
dataset.map(function (feature, index) {
|
|
12429
|
+
var feature_title = feature.feature_title,
|
|
12430
|
+
feature_body = feature.feature_body,
|
|
12431
|
+
feature_img = feature.feature_img,
|
|
12432
|
+
feature_alt = feature.feature_alt,
|
|
12433
|
+
feature_link = feature.feature_link;
|
|
12434
|
+
|
|
12435
|
+
return React__default.createElement(
|
|
12436
|
+
Carousel.Item,
|
|
12437
|
+
{ key: index, style: { background: 'var(--primary)' } },
|
|
12438
|
+
React__default.createElement('img', { style: { maxHeight: '375px', minHeight: '300px', objectFit: 'cover', paddingLeft: '50%' }, className: 'd-block w-100', src: feature_img, alt: feature_alt }),
|
|
12439
|
+
React__default.createElement(
|
|
12440
|
+
Carousel.Caption,
|
|
12441
|
+
{ style: { paddingRight: '50%', left: '3rem', right: '3rem', top: '0', height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
|
|
12442
|
+
React__default.createElement(
|
|
12443
|
+
Link,
|
|
12444
|
+
{ href: feature_link },
|
|
12445
|
+
React__default.createElement(
|
|
12446
|
+
'a',
|
|
12447
|
+
null,
|
|
12448
|
+
React__default.createElement(
|
|
12449
|
+
'h3',
|
|
12450
|
+
{ style: { color: 'white' } },
|
|
12451
|
+
feature_title
|
|
12452
|
+
),
|
|
12453
|
+
React__default.createElement(
|
|
12454
|
+
'p',
|
|
12455
|
+
{ style: { color: '#eee' } },
|
|
12456
|
+
feature_body
|
|
12457
|
+
)
|
|
12458
|
+
)
|
|
12459
|
+
)
|
|
12460
|
+
)
|
|
12461
|
+
);
|
|
12462
|
+
})
|
|
12463
|
+
)
|
|
12464
|
+
);
|
|
12465
|
+
};
|
|
12466
|
+
|
|
12440
12467
|
exports.DeckContent = ContentCard;
|
|
12441
12468
|
exports.GridContent = GridContent;
|
|
12442
12469
|
exports.DeckQueue = DeckQueue;
|
|
@@ -12462,4 +12489,5 @@ exports.AD300x250x600 = AD300x250x600;
|
|
|
12462
12489
|
exports.AD728x90 = AD728x90;
|
|
12463
12490
|
exports.getSerializers = getSerializers$1;
|
|
12464
12491
|
exports.Search = Search;
|
|
12492
|
+
exports.Feature = Feature;
|
|
12465
12493
|
//# sourceMappingURL=index.js.map
|