@mjhls/mjh-framework 1.0.926 → 1.0.928-ris-toggle-v1
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 +168 -168
- package/dist/cjs/AlgoliaSearch.js +131 -15
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +1 -2
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/DeckQueuePaginated.js +1 -2
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/GridContentPaginated.js +1 -2
- package/dist/cjs/HamMagazine.js +9 -9
- package/dist/cjs/IssueLanding.js +29 -29
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/MasterDeck.js +8 -8
- package/dist/cjs/MasterDeckPaginated.js +9 -10
- package/dist/cjs/{MediaSeriesCard-ca36cda9.js → MediaSeriesCard-1db85e00.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +6 -6
- package/dist/cjs/MediaSeriesLandingPaginated.js +7 -8
- package/dist/cjs/NavMagazine.js +10 -10
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-42f92f7c.js +97 -0
- package/dist/cjs/PartnerDetailListingPaginated.js +1 -2
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpandedPaginated.js +1 -2
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +1 -1
- package/dist/cjs/{SeriesSlider-ba0c5d1a.js → SeriesSlider-de93a303.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +25 -14
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-dab97fe1.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/index.js +269 -10
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/ADSkyscraper.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/AlgoliaSearch.js +132 -16
- package/dist/esm/ArticleProgramLandingPage.js +2 -2
- package/dist/esm/ArticleSeriesLandingPage.js +3 -3
- package/dist/esm/Auth.js +1 -1
- package/dist/esm/AuthWrapper.js +1 -1
- package/dist/esm/Beam.js +1 -1
- package/dist/esm/CMEDeck.js +1 -1
- package/dist/esm/Column2.js +1 -1
- package/dist/esm/Column3.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +3 -4
- package/dist/esm/DeckContent.js +10 -10
- package/dist/esm/DeckQueuePaginated.js +2 -3
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/ExternalResources.js +2 -2
- package/dist/esm/GridContent.js +3 -3
- package/dist/esm/GridContentPaginated.js +4 -5
- package/dist/esm/HamMagazine.js +10 -10
- package/dist/esm/HorizontalArticleListing.js +2 -2
- package/dist/esm/IssueLanding.js +33 -33
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +1 -1
- package/dist/esm/MasterDeck.js +11 -11
- package/dist/esm/MasterDeckPaginated.js +12 -13
- package/dist/esm/{MediaSeriesCard-4f82982b.js → MediaSeriesCard-06181b0c.js} +2 -2
- package/dist/esm/MediaSeriesLanding.js +10 -10
- package/dist/esm/MediaSeriesLandingPaginated.js +11 -12
- package/dist/esm/NavDvm.js +1 -1
- package/dist/esm/NavMagazine.js +11 -11
- package/dist/esm/NavNative.js +10 -10
- package/dist/esm/Pagination-484b86c5.js +90 -0
- package/dist/esm/PartnerDetailListing.js +4 -4
- package/dist/esm/PartnerDetailListingPaginated.js +5 -6
- package/dist/esm/PubSection.js +3 -3
- package/dist/esm/PubToc.js +1 -1
- package/dist/esm/PublicationLanding.js +27 -27
- package/dist/esm/QueueDeckExpanded.js +3 -3
- package/dist/esm/QueueDeckExpandedPaginated.js +4 -5
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/Segment.js +1 -1
- package/dist/esm/SeriesListingDeck.js +1 -1
- package/dist/esm/{SeriesSlider-45adb8dc.js → SeriesSlider-98ad6d97.js} +4 -4
- package/dist/esm/SideFooter.js +3 -3
- package/dist/esm/TaxonomyDescription.js +2 -2
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +2 -2
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +3 -3
- package/dist/esm/View.js +27 -15
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/{asyncToGenerator-5ef104a7.js → asyncToGenerator-958ef5fc.js} +1 -1
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getRootDocGroup.js +1 -1
- package/dist/esm/getSerializers.js +2 -2
- package/dist/esm/{getTargeting-42f9b439.js → getTargeting-04d979c9.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-3f653f73.js → index-e338e1a8.js} +1 -1
- package/dist/esm/index.js +270 -14
- package/package.json +114 -114
- package/dist/cjs/Pagination-885dcfbd.js +0 -90
- package/dist/esm/Pagination-59436882.js +0 -82
- /package/dist/esm/{ADInfeed-36171412.js → ADInfeed-7af1f934.js} +0 -0
- /package/dist/esm/{ADlgInfeed-a1e9682e.js → ADlgInfeed-ebcafb85.js} +0 -0
package/dist/esm/index.js
CHANGED
|
@@ -71,6 +71,13 @@ export { default as ArticleCarousel } from './ArticleCarousel.js';
|
|
|
71
71
|
export { default as TaxonomyDescription } from './TaxonomyDescription.js';
|
|
72
72
|
export { default as PubToc } from './PubToc.js';
|
|
73
73
|
export { default as PubSection } from './PubSection.js';
|
|
74
|
+
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
|
|
75
|
+
import { _ as _JSON$stringify } from './stringify-2b084bee.js';
|
|
76
|
+
import { _ as _extends } from './extends-6d8e3924.js';
|
|
77
|
+
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
78
|
+
import PropTypes from 'prop-types';
|
|
79
|
+
import { m as momentTimezone } from './index-79cfd25c.js';
|
|
80
|
+
import ProgressBar from 'react-bootstrap/ProgressBar';
|
|
74
81
|
export { default as ForbesHero } from './ForbesHero.js';
|
|
75
82
|
export { default as HorizontalHero } from './HorizontalHero.js';
|
|
76
83
|
export { default as OncliveHero } from './OncliveHero.js';
|
|
@@ -79,7 +86,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
79
86
|
export { default as YahooHero } from './YahooHero.js';
|
|
80
87
|
export { default as GridHero } from './GridHero.js';
|
|
81
88
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
82
|
-
export { g as getSerializers } from './index-
|
|
89
|
+
export { g as getSerializers } from './index-e338e1a8.js';
|
|
83
90
|
export { default as Beam } from './Beam.js';
|
|
84
91
|
export { default as Segment } from './Segment.js';
|
|
85
92
|
export { default as KMTracker } from './KMTracker.js';
|
|
@@ -94,25 +101,23 @@ export { default as VideoSeriesLandingPage } from './VideoSeriesLandingPage.js';
|
|
|
94
101
|
export { default as ArticleProgramLandingPage } from './ArticleProgramLandingPage.js';
|
|
95
102
|
export { default as ArticleSeriesLandingPage } from './ArticleSeriesLandingPage.js';
|
|
96
103
|
export { default as Schema } from './Schema.js';
|
|
97
|
-
export { g as getTargeting } from './getTargeting-
|
|
104
|
+
export { g as getTargeting } from './getTargeting-04d979c9.js';
|
|
98
105
|
export { default as getKeywords } from './getKeywords.js';
|
|
99
106
|
export { default as getQuery } from './getQuery.js';
|
|
100
107
|
import './toConsumableArray-f7074d7c.js';
|
|
101
108
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
102
109
|
import './core.get-iterator-method-ea258bb1.js';
|
|
103
110
|
import './_iter-detect-98db3b07.js';
|
|
104
|
-
import './extends-6d8e3924.js';
|
|
105
|
-
import './_object-pie-133f504a.js';
|
|
106
111
|
import './inherits-a6ba2ec4.js';
|
|
107
112
|
import './_object-sap-7cee6f84.js';
|
|
108
113
|
import './define-property-5f1bda73.js';
|
|
109
114
|
import './typeof-e9fc0c5d.js';
|
|
110
115
|
import './web.dom.iterable-ab4dea5c.js';
|
|
111
116
|
import './_is-array-8d21b9e3.js';
|
|
117
|
+
import './_object-pie-133f504a.js';
|
|
112
118
|
import './_library-528f1934.js';
|
|
113
119
|
import './index-f0fc23eb.js';
|
|
114
120
|
import './events-6c3a7a63.js';
|
|
115
|
-
import 'prop-types';
|
|
116
121
|
import 'react-bootstrap/Container';
|
|
117
122
|
import 'react-bootstrap/Card';
|
|
118
123
|
import './moment-bc12cb97.js';
|
|
@@ -125,10 +130,9 @@ import './visibility-sensor-72fd8f8b.js';
|
|
|
125
130
|
import 'react-dom';
|
|
126
131
|
import './main-1894c974.js';
|
|
127
132
|
import './entities-6d9154b4.js';
|
|
128
|
-
import './ADInfeed-
|
|
129
|
-
import './slicedToArray-6ebcbfea.js';
|
|
133
|
+
import './ADInfeed-7af1f934.js';
|
|
130
134
|
import './lodash-f97fd99a.js';
|
|
131
|
-
import './ADlgInfeed-
|
|
135
|
+
import './ADlgInfeed-ebcafb85.js';
|
|
132
136
|
import './getContentCategory-15dcc413.js';
|
|
133
137
|
import './get-3c308da4.js';
|
|
134
138
|
import './eq-bdcbf886.js';
|
|
@@ -145,13 +149,10 @@ import 'react-bootstrap';
|
|
|
145
149
|
import './timeDifferenceCalc.js';
|
|
146
150
|
import './index.esm-eb1e8e80.js';
|
|
147
151
|
import './iconBase-ccc56b97.js';
|
|
148
|
-
import './asyncToGenerator-5ef104a7.js';
|
|
149
152
|
import './defineProperty-8c30428f.js';
|
|
150
153
|
import './_object-to-array-2300e51b.js';
|
|
151
|
-
import './stringify-2b084bee.js';
|
|
152
154
|
import 'react-bootstrap/Spinner';
|
|
153
155
|
import 'react-bootstrap/Form';
|
|
154
|
-
import './index-79cfd25c.js';
|
|
155
156
|
import './js.cookie-6874175c.js';
|
|
156
157
|
import './typeof-2f07d0e8.js';
|
|
157
158
|
import './index-98ca9cec.js';
|
|
@@ -190,10 +191,9 @@ import 'swr';
|
|
|
190
191
|
import 'passport-local';
|
|
191
192
|
import 'mysql';
|
|
192
193
|
import './md5-4e42248e.js';
|
|
193
|
-
import './SeriesSlider-
|
|
194
|
+
import './SeriesSlider-98ad6d97.js';
|
|
194
195
|
import './style-inject.es-1f59c1d0.js';
|
|
195
196
|
import 'disqus-react';
|
|
196
|
-
import 'file-saver';
|
|
197
197
|
import 'react-twitter-embed';
|
|
198
198
|
import './ImageSlider-f84174cb.js';
|
|
199
199
|
import './defineProperty-23a8f8cd.js';
|
|
@@ -277,4 +277,260 @@ var FeatureArticles = function FeatureArticles(props) {
|
|
|
277
277
|
);
|
|
278
278
|
};
|
|
279
279
|
|
|
280
|
-
|
|
280
|
+
var _this = undefined;
|
|
281
|
+
|
|
282
|
+
var Survey = function Survey(_ref) {
|
|
283
|
+
var surveyData = _ref.surveyData,
|
|
284
|
+
handleEndSurvey = _ref.handleEndSurvey,
|
|
285
|
+
eventData = _ref.eventData,
|
|
286
|
+
takenQuestions = _ref.takenQuestions,
|
|
287
|
+
showLoading = _ref.showLoading,
|
|
288
|
+
colors = _ref.colors;
|
|
289
|
+
|
|
290
|
+
var _React$useState = React__default.useState('begin'),
|
|
291
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
292
|
+
progressState = _React$useState2[0],
|
|
293
|
+
setProgressState = _React$useState2[1];
|
|
294
|
+
|
|
295
|
+
var _React$useState3 = React__default.useState(0),
|
|
296
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
297
|
+
questionIndex = _React$useState4[0],
|
|
298
|
+
setQuestionIndex = _React$useState4[1];
|
|
299
|
+
|
|
300
|
+
var _React$useState5 = React__default.useState(100 / (surveyData.questions.length + 2)),
|
|
301
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
302
|
+
progressBarState = _React$useState6[0],
|
|
303
|
+
setProgressBarState = _React$useState6[1];
|
|
304
|
+
|
|
305
|
+
var _React$useState7 = React__default.useState(false),
|
|
306
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
307
|
+
buttonActive = _React$useState8[0],
|
|
308
|
+
setButtonActive = _React$useState8[1];
|
|
309
|
+
|
|
310
|
+
var _React$useState9 = React__default.useState(eventData),
|
|
311
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
312
|
+
data = _React$useState10[0],
|
|
313
|
+
setData = _React$useState10[1];
|
|
314
|
+
|
|
315
|
+
var handleAnswer = function handleAnswer(a, qi) {
|
|
316
|
+
setData(_extends({}, data, {
|
|
317
|
+
type: surveyData.type,
|
|
318
|
+
time: momentTimezone().utc().format(),
|
|
319
|
+
question: surveyData.questions[qi].question,
|
|
320
|
+
answer: a
|
|
321
|
+
}));
|
|
322
|
+
setButtonActive(true);
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
var handleSurvey = function () {
|
|
326
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(i) {
|
|
327
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
328
|
+
while (1) {
|
|
329
|
+
switch (_context.prev = _context.next) {
|
|
330
|
+
case 0:
|
|
331
|
+
if (i === 0) {
|
|
332
|
+
updateStates(i + takenQuestions.length);
|
|
333
|
+
} else {
|
|
334
|
+
// Send question data to the api
|
|
335
|
+
handleAnswer(_JSON$stringify(data));
|
|
336
|
+
// Set states for the next question
|
|
337
|
+
updateStates(i);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
case 1:
|
|
341
|
+
case 'end':
|
|
342
|
+
return _context.stop();
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}, _callee, _this);
|
|
346
|
+
}));
|
|
347
|
+
|
|
348
|
+
return function handleSurvey(_x) {
|
|
349
|
+
return _ref2.apply(this, arguments);
|
|
350
|
+
};
|
|
351
|
+
}();
|
|
352
|
+
|
|
353
|
+
var updateStates = function updateStates(i) {
|
|
354
|
+
if (i === surveyData.questions.length) {
|
|
355
|
+
setProgressState('complete');
|
|
356
|
+
setProgressBarState(100);
|
|
357
|
+
} else {
|
|
358
|
+
setProgressState('question ' + (i + 1) + '/' + surveyData.questions.length);
|
|
359
|
+
setProgressBarState(100 / (surveyData.questions.length + 2) * (i + 2));
|
|
360
|
+
setQuestionIndex(i);
|
|
361
|
+
setButtonActive(false);
|
|
362
|
+
setData(eventData);
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
React__default.useEffect(function () {
|
|
367
|
+
if (takenQuestions.length !== 0) updateStates(takenQuestions.length);
|
|
368
|
+
}, [takenQuestions]);
|
|
369
|
+
|
|
370
|
+
return React__default.createElement(
|
|
371
|
+
'div',
|
|
372
|
+
null,
|
|
373
|
+
React__default.createElement(
|
|
374
|
+
'style',
|
|
375
|
+
{ jsx: true },
|
|
376
|
+
'\n .font-family-georgia {\n font-family: Georgia, \'Times New Roman\', Times, serif;\n }\n .font-family-markw1g {\n font-family: \'MarkW1G\';\n }\n .survey-header {\n background-color: ' + colors.secondary + ';\n padding-left: 24px;\n padding-right: 24px;\n min-height: 50px;\n }\n .survey-title {\n color: ' + colors.headerText + ';\n font-size: 20px;\n text-align: center;\n font-weight: 600;\n }\n .survey-state {\n color: ' + colors.primary + ';\n text-align: center;\n font-size: 15px;\n font-weight: 600;\n }\n .survey-content {\n min-height: 322px;\n background-color: ' + colors.primary + ';\n padding: 25px 28px 20px;\n }\n .survey-button {\n box-shadow: 0px 3px 6px #00000029;\n background-color: ' + colors.button + ';\n color: ' + colors.secondary + ';\n font-size: 14px;\n line-height: 20px;\n border-radius: 0;\n }\n .survey-option {\n background-color: ' + colors.answer + ';\n padding: 20px;\n height: 100%;\n }\n .big-text {\n font-size: 30px;\n line-height: 30px;\n text-align: center;\n margin-bottom: 0;\n }\n .normal-text {\n font-size: 18px;\n line-height: 22px;\n text-align: center;\n margin-bottom: 0;\n }\n .small-text {\n font-size: 12px;\n line-height: 14px;\n text-align: center;\n margin-bottom: 0;\n }\n '
|
|
377
|
+
),
|
|
378
|
+
showLoading ? React__default.createElement(
|
|
379
|
+
'div',
|
|
380
|
+
{ className: 'd-flex align-items-center justify-content-center' },
|
|
381
|
+
React__default.createElement(
|
|
382
|
+
'h2',
|
|
383
|
+
{ className: 'font-family-georgia' },
|
|
384
|
+
'Loading...'
|
|
385
|
+
)
|
|
386
|
+
) : React__default.createElement(
|
|
387
|
+
React__default.Fragment,
|
|
388
|
+
null,
|
|
389
|
+
React__default.createElement(
|
|
390
|
+
'div',
|
|
391
|
+
{ className: 'survey-header d-flex flex-column flex-md-row align-items-center justify-content-between' },
|
|
392
|
+
React__default.createElement(
|
|
393
|
+
'p',
|
|
394
|
+
{ className: 'survey-title text-uppercase font-family-markw1g' },
|
|
395
|
+
surveyData.title
|
|
396
|
+
),
|
|
397
|
+
React__default.createElement(
|
|
398
|
+
'p',
|
|
399
|
+
{ className: 'survey-state text-uppercase font-family-markw1g' },
|
|
400
|
+
progressState
|
|
401
|
+
)
|
|
402
|
+
),
|
|
403
|
+
React__default.createElement(ProgressBar, { now: progressBarState }),
|
|
404
|
+
React__default.createElement(
|
|
405
|
+
'div',
|
|
406
|
+
{ className: 'survey-content' },
|
|
407
|
+
progressState === 'begin' && takenQuestions.length === 0 && React__default.createElement(
|
|
408
|
+
'div',
|
|
409
|
+
{ className: 'd-flex align-items-center justify-content-center flex-column', style: { minHeight: 322 } },
|
|
410
|
+
React__default.createElement(
|
|
411
|
+
'p',
|
|
412
|
+
{ className: 'font-family-georgia big-text', style: { color: colors.contentText } },
|
|
413
|
+
surveyData.beforeSurveyText
|
|
414
|
+
),
|
|
415
|
+
surveyData.beforeSurveyButtonLabel && React__default.createElement(
|
|
416
|
+
'button',
|
|
417
|
+
{ onClick: function onClick() {
|
|
418
|
+
return handleSurvey(0);
|
|
419
|
+
}, className: 'btn survey-button font-family-markw1g mt-3' },
|
|
420
|
+
surveyData.beforeSurveyButtonLabel
|
|
421
|
+
)
|
|
422
|
+
),
|
|
423
|
+
progressState !== 'begin' && progressState !== 'complete' && React__default.createElement(
|
|
424
|
+
React__default.Fragment,
|
|
425
|
+
null,
|
|
426
|
+
React__default.createElement(
|
|
427
|
+
'p',
|
|
428
|
+
{ className: 'font-family-georgia normal-text', style: { color: colors.contentText } },
|
|
429
|
+
surveyData.questions[questionIndex].question
|
|
430
|
+
),
|
|
431
|
+
React__default.createElement(
|
|
432
|
+
Row,
|
|
433
|
+
{ className: 'my-4' },
|
|
434
|
+
surveyData.questions[questionIndex].answers.map(function (a, i) {
|
|
435
|
+
return React__default.createElement(
|
|
436
|
+
Col,
|
|
437
|
+
{ sm: 12, md: 6, key: i, className: 'my-2' },
|
|
438
|
+
React__default.createElement(
|
|
439
|
+
'div',
|
|
440
|
+
{
|
|
441
|
+
className: 'd-flex align-items-center justify-content-center survey-option',
|
|
442
|
+
onClick: function onClick() {
|
|
443
|
+
return handleAnswer(a, questionIndex);
|
|
444
|
+
},
|
|
445
|
+
style: data.answer && data.answer === a ? { background: colors.selectedAnswer } : null },
|
|
446
|
+
React__default.createElement(
|
|
447
|
+
'p',
|
|
448
|
+
{ className: 'font-family-georgia small-text', style: { color: colors.contentText } },
|
|
449
|
+
a
|
|
450
|
+
)
|
|
451
|
+
)
|
|
452
|
+
);
|
|
453
|
+
})
|
|
454
|
+
),
|
|
455
|
+
React__default.createElement(
|
|
456
|
+
'div',
|
|
457
|
+
{ className: 'd-flex justify-content-end' },
|
|
458
|
+
React__default.createElement(
|
|
459
|
+
'button',
|
|
460
|
+
{
|
|
461
|
+
onClick: buttonActive ? function () {
|
|
462
|
+
return handleSurvey(questionIndex + 1);
|
|
463
|
+
} : function () {},
|
|
464
|
+
className: 'btn survey-button font-family-markw1g',
|
|
465
|
+
style: !buttonActive ? { opacity: 0.5 } : null,
|
|
466
|
+
disabled: !buttonActive },
|
|
467
|
+
'next question'
|
|
468
|
+
)
|
|
469
|
+
)
|
|
470
|
+
),
|
|
471
|
+
progressState === 'complete' && React__default.createElement(
|
|
472
|
+
'div',
|
|
473
|
+
{ className: 'd-flex align-items-center justify-content-center flex-column', style: { minHeight: 322 } },
|
|
474
|
+
React__default.createElement(
|
|
475
|
+
'p',
|
|
476
|
+
{ className: 'font-family-georgia big-text', style: { color: colors.contentText } },
|
|
477
|
+
surveyData.afterSurveyText
|
|
478
|
+
),
|
|
479
|
+
surveyData.afterSurveyButtonLabel && React__default.createElement(
|
|
480
|
+
'button',
|
|
481
|
+
{ onClick: handleEndSurvey, className: 'btn survey-button font-family-markw1g mt-3' },
|
|
482
|
+
surveyData.afterSurveyButtonLabel
|
|
483
|
+
)
|
|
484
|
+
)
|
|
485
|
+
)
|
|
486
|
+
)
|
|
487
|
+
);
|
|
488
|
+
};
|
|
489
|
+
|
|
490
|
+
Survey.propTypes = {
|
|
491
|
+
showLoading: PropTypes.bool.isRequired,
|
|
492
|
+
colors: PropTypes.shape({
|
|
493
|
+
primary: PropTypes.string,
|
|
494
|
+
secondary: PropTypes.string,
|
|
495
|
+
contentText: PropTypes.string,
|
|
496
|
+
headerText: PropTypes.string,
|
|
497
|
+
button: PropTypes.string,
|
|
498
|
+
answer: PropTypes.string,
|
|
499
|
+
selectedAnswer: PropTypes.string
|
|
500
|
+
}).isRequired,
|
|
501
|
+
eventData: PropTypes.shape({
|
|
502
|
+
url: PropTypes.string,
|
|
503
|
+
email: PropTypes.string
|
|
504
|
+
}).isRequired,
|
|
505
|
+
surveyData: PropTypes.shape({
|
|
506
|
+
type: PropTypes.oneOf(['pre', 'post']),
|
|
507
|
+
title: PropTypes.string,
|
|
508
|
+
beforeSurveyText: PropTypes.string,
|
|
509
|
+
beforeSurveyButtonLabel: PropTypes.string,
|
|
510
|
+
afterSurveyText: PropTypes.string,
|
|
511
|
+
afterSurveyButtonLabel: PropTypes.string,
|
|
512
|
+
questions: PropTypes.arrayOf(PropTypes.shape({
|
|
513
|
+
question: PropTypes.string,
|
|
514
|
+
answers: PropTypes.arrayOf(PropTypes.string)
|
|
515
|
+
}))
|
|
516
|
+
}).isRequired,
|
|
517
|
+
takenQuestions: PropTypes.arrayOf(PropTypes.string),
|
|
518
|
+
handleAnswer: PropTypes.func.isRequired,
|
|
519
|
+
handleEndSurvey: PropTypes.func.isRequired
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
Survey.defaultProps = {
|
|
523
|
+
showLoading: false,
|
|
524
|
+
colors: {
|
|
525
|
+
primary: '#6ED4C8',
|
|
526
|
+
secondary: '#26292D',
|
|
527
|
+
contentText: '#FF009D',
|
|
528
|
+
headerText: '#FFF',
|
|
529
|
+
button: '#EBE9AC',
|
|
530
|
+
answer: '#FFF',
|
|
531
|
+
selectedAnswer: '#EBE9AC'
|
|
532
|
+
},
|
|
533
|
+
takenQuestions: []
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
export { FeatureArticles, Survey };
|
package/package.json
CHANGED
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mjhls/mjh-framework",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Foundation Framework",
|
|
5
|
-
"author": "mjh-framework",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com/MJHLS/mjh-framework.git"
|
|
10
|
-
},
|
|
11
|
-
"main": "dist/cjs/index.js",
|
|
12
|
-
"module": "dist/esm/index.js",
|
|
13
|
-
"engines": {
|
|
14
|
-
"node": ">=8",
|
|
15
|
-
"npm": ">=5"
|
|
16
|
-
},
|
|
17
|
-
"scripts": {
|
|
18
|
-
"clean": "rimraf dist",
|
|
19
|
-
"test": "cross-env CI=1 react-scripts test --env=jsdom",
|
|
20
|
-
"test:watch": "react-scripts test --env=jsdom",
|
|
21
|
-
"build": "npm run clean && rollup -c",
|
|
22
|
-
"start": "npm run clean && rollup -c -w",
|
|
23
|
-
"prepare": "yarn run build",
|
|
24
|
-
"predeploy": "cd example && yarn install && yarn run build",
|
|
25
|
-
"deploy": "gh-pages -d example/build"
|
|
26
|
-
},
|
|
27
|
-
"peerDependencies": {
|
|
28
|
-
"disqus-react": "^1.0.11",
|
|
29
|
-
"next": "^9.0.0",
|
|
30
|
-
"prop-types": "^15.5.4",
|
|
31
|
-
"react": "^15.0.0 || ^16.0.0",
|
|
32
|
-
"react-bootstrap": "^1.0.0-beta.14",
|
|
33
|
-
"react-dom": "^15.0.0 || ^16.0.0",
|
|
34
|
-
"react-share": "^4.0.1"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@brightcove/react-player-loader": "^1.4.0",
|
|
38
|
-
"@rollup/plugin-json": "^4.0.3",
|
|
39
|
-
"@sanity/block-content-to-react": "^2.0.7",
|
|
40
|
-
"@sanity/image-url": "^0.140.15",
|
|
41
|
-
"@svgr/rollup": "2.4.1",
|
|
42
|
-
"babel-core": "^6.26.3",
|
|
43
|
-
"babel-eslint": "^8.2.5",
|
|
44
|
-
"babel-plugin-external-helpers": "^6.22.0",
|
|
45
|
-
"babel-plugin-transform-runtime": "^6.23.0",
|
|
46
|
-
"babel-preset-env": "^1.7.0",
|
|
47
|
-
"babel-preset-react": "^6.24.1",
|
|
48
|
-
"babel-preset-stage-0": "^6.24.1",
|
|
49
|
-
"cross-env": "^5.1.4",
|
|
50
|
-
"eslint": "^5.0.1",
|
|
51
|
-
"eslint-config-standard": "^11.0.0",
|
|
52
|
-
"eslint-config-standard-react": "^6.0.0",
|
|
53
|
-
"eslint-plugin-import": "^2.13.0",
|
|
54
|
-
"eslint-plugin-node": "^7.0.1",
|
|
55
|
-
"eslint-plugin-promise": "^4.0.0",
|
|
56
|
-
"eslint-plugin-react": "^7.10.0",
|
|
57
|
-
"eslint-plugin-react-hooks": "^2.3.0",
|
|
58
|
-
"eslint-plugin-standard": "^3.1.0",
|
|
59
|
-
"file-saver": "^2.0.5",
|
|
60
|
-
"get-youtube-id": "^1.0.1",
|
|
61
|
-
"gh-pages": "^1.2.0",
|
|
62
|
-
"lodash": "^4.17.15",
|
|
63
|
-
"md5": "^2.2.1",
|
|
64
|
-
"moment": "^2.26.0",
|
|
65
|
-
"moment-timezone": "^0.5.31",
|
|
66
|
-
"next": "^9.2.0",
|
|
67
|
-
"react": "^16.12.0",
|
|
68
|
-
"react-bootstrap": "1.4.0",
|
|
69
|
-
"react-device-detect": "^1.11.14",
|
|
70
|
-
"react-dfp": "^0.19.0",
|
|
71
|
-
"react-dom": "^16.12.0",
|
|
72
|
-
"react-icons": "^3.8.0",
|
|
73
|
-
"react-infinite-scroll-component": "^5.0.4",
|
|
74
|
-
"react-lazyload": "^2.6.5",
|
|
75
|
-
"react-paginate": "^7.1.3",
|
|
76
|
-
"react-player": "^1.15.2",
|
|
77
|
-
"react-scripts": "^1.1.4",
|
|
78
|
-
"react-share": "^4.0.1",
|
|
79
|
-
"react-social-icons": "^4.1.0",
|
|
80
|
-
"react-visibility-sensor": "^5.1.1",
|
|
81
|
-
"react-youtube": "^7.9.0",
|
|
82
|
-
"rimraf": "^3.0.2",
|
|
83
|
-
"rollup": "^2.7.3",
|
|
84
|
-
"rollup-plugin-babel": "3.0.7",
|
|
85
|
-
"rollup-plugin-commonjs": "9.3.4",
|
|
86
|
-
"rollup-plugin-node-builtins": "2.1.2",
|
|
87
|
-
"rollup-plugin-node-resolve": "3.4.0",
|
|
88
|
-
"rollup-plugin-postcss": "1.6.3",
|
|
89
|
-
"rollup-plugin-url": "1.4.0"
|
|
90
|
-
},
|
|
91
|
-
"files": [
|
|
92
|
-
"dist"
|
|
93
|
-
],
|
|
94
|
-
"dependencies": {
|
|
95
|
-
"babel-polyfill": "^6.26.0",
|
|
96
|
-
"cookie": "^0.4.1",
|
|
97
|
-
"disqus-react": "^1.0.11",
|
|
98
|
-
"faunadb": "^4.2.0",
|
|
99
|
-
"js-cookie": "^2.2.1",
|
|
100
|
-
"next-auth": "^3.2.0",
|
|
101
|
-
"next-cookies": "^2.0.3",
|
|
102
|
-
"nookies": "^2.4.0",
|
|
103
|
-
"react-cookies": "^0.1.1",
|
|
104
|
-
"react-facebook": "^8.1.4",
|
|
105
|
-
"react-instantsearch-dom": "^6.12.0",
|
|
106
|
-
"react-script-tag": "^1.1.2",
|
|
107
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
108
|
-
"shortid": "^2.2.15",
|
|
109
|
-
"smoothscroll-polyfill": "^0.4.4",
|
|
110
|
-
"striptags": "^3.1.1",
|
|
111
|
-
"superagent": "^5.2.2",
|
|
112
|
-
"yarn": "^1.22.11"
|
|
113
|
-
}
|
|
114
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@mjhls/mjh-framework",
|
|
3
|
+
"version": "1.0.928-ris-toggle-v1",
|
|
4
|
+
"description": "Foundation Framework",
|
|
5
|
+
"author": "mjh-framework",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/MJHLS/mjh-framework.git"
|
|
10
|
+
},
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=8",
|
|
15
|
+
"npm": ">=5"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"clean": "rimraf dist",
|
|
19
|
+
"test": "cross-env CI=1 react-scripts test --env=jsdom",
|
|
20
|
+
"test:watch": "react-scripts test --env=jsdom",
|
|
21
|
+
"build": "npm run clean && rollup -c",
|
|
22
|
+
"start": "npm run clean && rollup -c -w",
|
|
23
|
+
"prepare": "yarn run build",
|
|
24
|
+
"predeploy": "cd example && yarn install && yarn run build",
|
|
25
|
+
"deploy": "gh-pages -d example/build"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"disqus-react": "^1.0.11",
|
|
29
|
+
"next": "^9.0.0",
|
|
30
|
+
"prop-types": "^15.5.4",
|
|
31
|
+
"react": "^15.0.0 || ^16.0.0",
|
|
32
|
+
"react-bootstrap": "^1.0.0-beta.14",
|
|
33
|
+
"react-dom": "^15.0.0 || ^16.0.0",
|
|
34
|
+
"react-share": "^4.0.1"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@brightcove/react-player-loader": "^1.4.0",
|
|
38
|
+
"@rollup/plugin-json": "^4.0.3",
|
|
39
|
+
"@sanity/block-content-to-react": "^2.0.7",
|
|
40
|
+
"@sanity/image-url": "^0.140.15",
|
|
41
|
+
"@svgr/rollup": "2.4.1",
|
|
42
|
+
"babel-core": "^6.26.3",
|
|
43
|
+
"babel-eslint": "^8.2.5",
|
|
44
|
+
"babel-plugin-external-helpers": "^6.22.0",
|
|
45
|
+
"babel-plugin-transform-runtime": "^6.23.0",
|
|
46
|
+
"babel-preset-env": "^1.7.0",
|
|
47
|
+
"babel-preset-react": "^6.24.1",
|
|
48
|
+
"babel-preset-stage-0": "^6.24.1",
|
|
49
|
+
"cross-env": "^5.1.4",
|
|
50
|
+
"eslint": "^5.0.1",
|
|
51
|
+
"eslint-config-standard": "^11.0.0",
|
|
52
|
+
"eslint-config-standard-react": "^6.0.0",
|
|
53
|
+
"eslint-plugin-import": "^2.13.0",
|
|
54
|
+
"eslint-plugin-node": "^7.0.1",
|
|
55
|
+
"eslint-plugin-promise": "^4.0.0",
|
|
56
|
+
"eslint-plugin-react": "^7.10.0",
|
|
57
|
+
"eslint-plugin-react-hooks": "^2.3.0",
|
|
58
|
+
"eslint-plugin-standard": "^3.1.0",
|
|
59
|
+
"file-saver": "^2.0.5",
|
|
60
|
+
"get-youtube-id": "^1.0.1",
|
|
61
|
+
"gh-pages": "^1.2.0",
|
|
62
|
+
"lodash": "^4.17.15",
|
|
63
|
+
"md5": "^2.2.1",
|
|
64
|
+
"moment": "^2.26.0",
|
|
65
|
+
"moment-timezone": "^0.5.31",
|
|
66
|
+
"next": "^9.2.0",
|
|
67
|
+
"react": "^16.12.0",
|
|
68
|
+
"react-bootstrap": "1.4.0",
|
|
69
|
+
"react-device-detect": "^1.11.14",
|
|
70
|
+
"react-dfp": "^0.19.0",
|
|
71
|
+
"react-dom": "^16.12.0",
|
|
72
|
+
"react-icons": "^3.8.0",
|
|
73
|
+
"react-infinite-scroll-component": "^5.0.4",
|
|
74
|
+
"react-lazyload": "^2.6.5",
|
|
75
|
+
"react-paginate": "^7.1.3",
|
|
76
|
+
"react-player": "^1.15.2",
|
|
77
|
+
"react-scripts": "^1.1.4",
|
|
78
|
+
"react-share": "^4.0.1",
|
|
79
|
+
"react-social-icons": "^4.1.0",
|
|
80
|
+
"react-visibility-sensor": "^5.1.1",
|
|
81
|
+
"react-youtube": "^7.9.0",
|
|
82
|
+
"rimraf": "^3.0.2",
|
|
83
|
+
"rollup": "^2.7.3",
|
|
84
|
+
"rollup-plugin-babel": "3.0.7",
|
|
85
|
+
"rollup-plugin-commonjs": "9.3.4",
|
|
86
|
+
"rollup-plugin-node-builtins": "2.1.2",
|
|
87
|
+
"rollup-plugin-node-resolve": "3.4.0",
|
|
88
|
+
"rollup-plugin-postcss": "1.6.3",
|
|
89
|
+
"rollup-plugin-url": "1.4.0"
|
|
90
|
+
},
|
|
91
|
+
"files": [
|
|
92
|
+
"dist"
|
|
93
|
+
],
|
|
94
|
+
"dependencies": {
|
|
95
|
+
"babel-polyfill": "^6.26.0",
|
|
96
|
+
"cookie": "^0.4.1",
|
|
97
|
+
"disqus-react": "^1.0.11",
|
|
98
|
+
"faunadb": "^4.2.0",
|
|
99
|
+
"js-cookie": "^2.2.1",
|
|
100
|
+
"next-auth": "^3.2.0",
|
|
101
|
+
"next-cookies": "^2.0.3",
|
|
102
|
+
"nookies": "^2.4.0",
|
|
103
|
+
"react-cookies": "^0.1.1",
|
|
104
|
+
"react-facebook": "^8.1.4",
|
|
105
|
+
"react-instantsearch-dom": "^6.12.0",
|
|
106
|
+
"react-script-tag": "^1.1.2",
|
|
107
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
108
|
+
"shortid": "^2.2.15",
|
|
109
|
+
"smoothscroll-polyfill": "^0.4.4",
|
|
110
|
+
"striptags": "^3.1.1",
|
|
111
|
+
"superagent": "^5.2.2",
|
|
112
|
+
"yarn": "^1.22.11"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var ReactPaginate = require('react-paginate');
|
|
5
|
-
var Button = require('react-bootstrap/Button');
|
|
6
|
-
var index_esm = require('./index.esm-d51c9ac6.js');
|
|
7
|
-
|
|
8
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
-
|
|
10
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
11
|
-
var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
|
|
12
|
-
var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
|
|
13
|
-
|
|
14
|
-
var Pagination = function Pagination(props) {
|
|
15
|
-
var pageCount = props.pageCount,
|
|
16
|
-
_props$marginPagesDis = props.marginPagesDisplayed,
|
|
17
|
-
marginPagesDisplayed = _props$marginPagesDis === undefined ? 1 : _props$marginPagesDis,
|
|
18
|
-
_props$pageRangeDispl = props.pageRangeDisplayed,
|
|
19
|
-
pageRangeDisplayed = _props$pageRangeDispl === undefined ? 5 : _props$pageRangeDispl,
|
|
20
|
-
_props$currentPage = props.currentPage,
|
|
21
|
-
currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
|
|
22
|
-
_onPageChange = props.onPageChange,
|
|
23
|
-
_props$needLargePagin = props.needLargePaginateButtons,
|
|
24
|
-
needLargePaginateButtons = _props$needLargePagin === undefined ? false : _props$needLargePagin;
|
|
25
|
-
|
|
26
|
-
if (!pageCount || pageCount <= 1) return null;
|
|
27
|
-
return React__default['default'].createElement(
|
|
28
|
-
React__default['default'].Fragment,
|
|
29
|
-
null,
|
|
30
|
-
needLargePaginateButtons && React__default['default'].createElement(
|
|
31
|
-
'div',
|
|
32
|
-
{ className: 'pagination-lg-btn-nxt' },
|
|
33
|
-
React__default['default'].createElement(
|
|
34
|
-
Button__default['default'],
|
|
35
|
-
{
|
|
36
|
-
onClick: function onClick(e) {
|
|
37
|
-
e.preventDefault();
|
|
38
|
-
_onPageChange(currentPage + 1);
|
|
39
|
-
},
|
|
40
|
-
disabled: currentPage === pageCount,
|
|
41
|
-
href: '?page=' + (currentPage + 1) },
|
|
42
|
-
'NEXT PAGE',
|
|
43
|
-
React__default['default'].createElement(index_esm.FaArrowRight, { className: 'fa-arrow-right' })
|
|
44
|
-
)
|
|
45
|
-
),
|
|
46
|
-
React__default['default'].createElement(ReactPaginate__default['default'], {
|
|
47
|
-
pageCount: pageCount,
|
|
48
|
-
marginPagesDisplayed: marginPagesDisplayed,
|
|
49
|
-
pageRangeDisplayed: pageRangeDisplayed,
|
|
50
|
-
forcePage: currentPage - 1,
|
|
51
|
-
onPageChange: function onPageChange(_ref) {
|
|
52
|
-
var selected = _ref.selected;
|
|
53
|
-
return _onPageChange(selected + 1);
|
|
54
|
-
},
|
|
55
|
-
hrefBuilder: function hrefBuilder(page) {
|
|
56
|
-
return '?page=' + page;
|
|
57
|
-
},
|
|
58
|
-
previousLabel: '<',
|
|
59
|
-
nextLabel: '>',
|
|
60
|
-
containerClassName: 'pagination-container',
|
|
61
|
-
previousLinkClassName: 'previous',
|
|
62
|
-
nextLinkClassName: 'next',
|
|
63
|
-
disabledClassName: 'disbaled',
|
|
64
|
-
activeClassName: 'active'
|
|
65
|
-
}),
|
|
66
|
-
needLargePaginateButtons && React__default['default'].createElement(
|
|
67
|
-
'div',
|
|
68
|
-
{ className: 'pagination-lg-btn-prv' },
|
|
69
|
-
React__default['default'].createElement(
|
|
70
|
-
Button__default['default'],
|
|
71
|
-
{
|
|
72
|
-
onClick: function onClick(e) {
|
|
73
|
-
e.preventDefault();
|
|
74
|
-
_onPageChange(currentPage - 1);
|
|
75
|
-
},
|
|
76
|
-
disabled: currentPage === 1,
|
|
77
|
-
href: '?page=' + (currentPage - 1) },
|
|
78
|
-
React__default['default'].createElement(index_esm.FaArrowLeft, { className: 'fa-arrow-left' }),
|
|
79
|
-
'PREVIOUS PAGE'
|
|
80
|
-
)
|
|
81
|
-
),
|
|
82
|
-
React__default['default'].createElement(
|
|
83
|
-
'style',
|
|
84
|
-
{ jsx: 'true' },
|
|
85
|
-
'\n .pagination-container {\n list-style: none;\n padding: 10px 0;\n margin: 0;\n display: flex;\n overflow: auto;\n }\n .pagination-container::before,\n .pagination-container::after {\n content: \'\';\n margin: 0 auto;\n }\n .pagination-container a {\n padding: 10px;\n border: 1px solid #dee2e6;\n }\n .pagination-container a:hover {\n text-decoration: none;\n background-color: #e9ecef;\n border-color: #dee2e6;\n }\n .pagination-container .active a {\n color: #fff;\n background-color: #666;\n background-color: var(--primary);\n }\n .pagination-container li:first-child a {\n border-radius: 5px 0 0 5px;\n }\n .pagination-container li:last-child a {\n border-radius: 0 5px 5px 0;\n }\n .pagination-container .disbaled a {\n cursor: default;\n }\n .pagination-lg-btn-nxt,\n .pagination-lg-btn-prv {\n text-align: center;\n }\n .pagination-lg-btn-nxt .btn,\n .pagination-lg-btn-prv .btn {\n min-width: 80%;\n color: #000;\n color: var(--primary);\n background-color: transparent;\n border-color: #000;\n border-color: var(--primary);\n }\n .pagination-lg-btn-nxt {\n margin: 0 0 1.5rem;\n }\n .pagination-lg-btn-prv {\n margin: 1.5rem 0 0;\n }\n .pagination-lg-btn-nxt .btn:not(:disabled):not(.disabled).active,\n .pagination-lg-btn-prv .btn:not(:disabled):not(.disabled):active {\n color: #fff;\n background-color: #000;\n background-color: var(--primary);\n border-color: #000;\n border-color: var(--primary);\n }\n @media only screen and (min-width: 601px) {\n [class^=\'pagination-lg-btn\'] {\n display: none;\n }\n }\n .fa-arrow-left {\n margin-right: 0.5rem;\n }\n .fa-arrow-right {\n margin-left: 0.5rem;\n }\n .pagination-container::-webkit-scrollbar {\n height: 8px;\n }\n .pagination-container::-webkit-scrollbar-track,\n .pagination-container::-webkit-scrollbar-thumb {\n -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n border-radius: 4px;\n }\n .pagination-container::-webkit-scrollbar-track {\n background-color: rgba(0, 0, 0, 0.1);\n }\n .pagination-container::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.3);\n }\n '
|
|
86
|
-
)
|
|
87
|
-
);
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
exports.Pagination = Pagination;
|