northants-design-system 1.1.5 → 1.1.6
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/build/index.js +132 -141
- package/build/index.js.map +1 -1
- package/build/index.mjs.js +132 -141
- package/build/index.mjs.js.map +1 -1
- package/build/library/components/Column/Column.types.d.ts +0 -1
- package/build/library/components/EventDetails/EventDetails.d.ts +4 -0
- package/build/library/components/EventDetails/EventDetails.test.d.ts +1 -0
- package/build/library/components/EventDetails/EventDetails.types.d.ts +18 -0
- package/build/library/components/EventLink/EventLink.d.ts +4 -0
- package/build/library/components/EventLink/EventLink.test.d.ts +1 -0
- package/build/library/components/EventLink/EventLink.types.d.ts +42 -0
- package/build/library/components/FormButton/FormButton.types.d.ts +0 -1
- package/build/library/components/Input/Input.types.d.ts +0 -1
- package/build/library/components/Map/Map.types.d.ts +0 -1
- package/build/library/components/MapMarker/MapMarker.d.ts +0 -1
- package/build/library/components/Panel/Panel.types.d.ts +0 -1
- package/build/library/components/RadioCheckboxInput/RadioCheckboxInput.types.d.ts +0 -1
- package/build/library/components/Textarea/Textarea.types.d.ts +0 -1
- package/build/library/components/icons/services/ServicesIcons.d.ts +0 -1
- package/build/library/pages/EventLandingPageExample/EventLandingPageExample.d.ts +4 -0
- package/build/library/pages/EventPageExample/EventPageExample.d.ts +6 -0
- package/build/library/slices/Accordion/Accordion.types.d.ts +0 -1
- package/build/library/slices/BlockQuote/BlockQuote.types.d.ts +0 -1
- package/build/library/slices/GoogleMap/GoogleMap.storydata.d.ts +7 -0
- package/build/library/slices/WarningText/WarningText.types.d.ts +0 -1
- package/build/library/structure/AlertBanner/AlertBanner.types.d.ts +0 -1
- package/build/library/structure/AlertBannerService/AlertBannerService.types.d.ts +0 -1
- package/build/library/structure/CookieBanner/CookieBanner.types.d.ts +0 -1
- package/build/library/structure/EventList/EventList.d.ts +4 -0
- package/build/library/structure/EventList/EventList.storydata.d.ts +2 -0
- package/build/library/structure/EventList/EventList.test.d.ts +1 -0
- package/build/library/structure/EventList/EventList.types.d.ts +123 -0
- package/build/library/structure/Header/Header.types.d.ts +0 -1
- package/build/library/structure/MaxWidthContainer/MaxWidthContainer.types.d.ts +0 -1
- package/build/library/structure/PageMain/PageMain.types.d.ts +0 -1
- package/build/library/structure/PageSidebar/PageSidebar.types.d.ts +0 -1
- package/build/library/structure/PageWithSidebarContainer/PageWithSidebarContainer.types.d.ts +0 -1
- package/build/library/structure/PromoBanner/PromoBanner.types.d.ts +0 -1
- package/package.json +13 -12
package/build/index.js
CHANGED
|
@@ -336,46 +336,34 @@ const LightErrorText = styled__default.default.p`
|
|
|
336
336
|
}
|
|
337
337
|
`;
|
|
338
338
|
|
|
339
|
-
function _objectWithoutPropertiesLoose(
|
|
340
|
-
if (
|
|
341
|
-
var
|
|
342
|
-
var
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
target[key] = source[key];
|
|
348
|
-
}
|
|
349
|
-
return target;
|
|
339
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
340
|
+
if (null == r) return {};
|
|
341
|
+
var t = {};
|
|
342
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
343
|
+
if (e.includes(n)) continue;
|
|
344
|
+
t[n] = r[n];
|
|
345
|
+
}
|
|
346
|
+
return t;
|
|
350
347
|
}
|
|
351
348
|
|
|
352
349
|
function _extends$2() {
|
|
353
|
-
_extends$2 = Object.assign ? Object.assign.bind() : function (
|
|
354
|
-
for (var
|
|
355
|
-
var
|
|
356
|
-
for (var
|
|
357
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
358
|
-
target[key] = source[key];
|
|
359
|
-
}
|
|
360
|
-
}
|
|
350
|
+
return _extends$2 = Object.assign ? Object.assign.bind() : function (n) {
|
|
351
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
352
|
+
var t = arguments[e];
|
|
353
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
361
354
|
}
|
|
362
|
-
return
|
|
363
|
-
};
|
|
364
|
-
return _extends$2.apply(this, arguments);
|
|
355
|
+
return n;
|
|
356
|
+
}, _extends$2.apply(null, arguments);
|
|
365
357
|
}
|
|
366
358
|
|
|
367
|
-
function _setPrototypeOf(
|
|
368
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
};
|
|
372
|
-
return _setPrototypeOf(o, p);
|
|
359
|
+
function _setPrototypeOf(t, e) {
|
|
360
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
361
|
+
return t.__proto__ = e, t;
|
|
362
|
+
}, _setPrototypeOf(t, e);
|
|
373
363
|
}
|
|
374
364
|
|
|
375
|
-
function _inheritsLoose(
|
|
376
|
-
|
|
377
|
-
subClass.prototype.constructor = subClass;
|
|
378
|
-
_setPrototypeOf(subClass, superClass);
|
|
365
|
+
function _inheritsLoose(t, o) {
|
|
366
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
379
367
|
}
|
|
380
368
|
|
|
381
369
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -2112,9 +2100,6 @@ function isPlainObject$3(obj) {
|
|
|
2112
2100
|
* @returns {number} The next highlightedIndex.
|
|
2113
2101
|
*/
|
|
2114
2102
|
function getHighlightedIndex(start, offset, items, isItemDisabled, circular) {
|
|
2115
|
-
if (circular === void 0) {
|
|
2116
|
-
circular = false;
|
|
2117
|
-
}
|
|
2118
2103
|
var count = items.length;
|
|
2119
2104
|
if (count === 0) {
|
|
2120
2105
|
return -1;
|
|
@@ -2125,9 +2110,9 @@ function getHighlightedIndex(start, offset, items, isItemDisabled, circular) {
|
|
|
2125
2110
|
}
|
|
2126
2111
|
var current = start + offset;
|
|
2127
2112
|
if (current < 0) {
|
|
2128
|
-
current =
|
|
2113
|
+
current = itemsLastIndex ;
|
|
2129
2114
|
} else if (current > itemsLastIndex) {
|
|
2130
|
-
current =
|
|
2115
|
+
current = 0 ;
|
|
2131
2116
|
}
|
|
2132
2117
|
var highlightedIndex = getNonDisabledIndex(current, offset < 0, items, isItemDisabled, circular);
|
|
2133
2118
|
if (highlightedIndex === -1) {
|
|
@@ -2273,23 +2258,23 @@ var touchEnd = process.env.NODE_ENV !== "production" ? '__autocomplete_touchend_
|
|
|
2273
2258
|
|
|
2274
2259
|
var stateChangeTypes$3 = /*#__PURE__*/Object.freeze({
|
|
2275
2260
|
__proto__: null,
|
|
2276
|
-
|
|
2277
|
-
|
|
2261
|
+
blurButton: blurButton,
|
|
2262
|
+
blurInput: blurInput,
|
|
2263
|
+
changeInput: changeInput,
|
|
2264
|
+
clickButton: clickButton,
|
|
2265
|
+
clickItem: clickItem,
|
|
2266
|
+
controlledPropUpdatedSelectedItem: controlledPropUpdatedSelectedItem,
|
|
2278
2267
|
itemMouseEnter: itemMouseEnter,
|
|
2279
|
-
keyDownArrowUp: keyDownArrowUp,
|
|
2280
2268
|
keyDownArrowDown: keyDownArrowDown,
|
|
2281
|
-
|
|
2269
|
+
keyDownArrowUp: keyDownArrowUp,
|
|
2270
|
+
keyDownEnd: keyDownEnd,
|
|
2282
2271
|
keyDownEnter: keyDownEnter,
|
|
2272
|
+
keyDownEscape: keyDownEscape,
|
|
2283
2273
|
keyDownHome: keyDownHome,
|
|
2284
|
-
keyDownEnd: keyDownEnd,
|
|
2285
|
-
clickItem: clickItem,
|
|
2286
|
-
blurInput: blurInput,
|
|
2287
|
-
changeInput: changeInput,
|
|
2288
2274
|
keyDownSpaceButton: keyDownSpaceButton,
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
touchEnd: touchEnd
|
|
2275
|
+
mouseUp: mouseUp,
|
|
2276
|
+
touchEnd: touchEnd,
|
|
2277
|
+
unknown: unknown
|
|
2293
2278
|
});
|
|
2294
2279
|
|
|
2295
2280
|
var _excluded$3 = ["refKey", "ref"],
|
|
@@ -3786,7 +3771,7 @@ const StyledButton$1 = styled__default.default.a`
|
|
|
3786
3771
|
&.button--secondary {
|
|
3787
3772
|
color: ${(props) =>
|
|
3788
3773
|
props.$colourOverride ? props.$colourOverride : props.theme.theme_vars.colours.action} !important;
|
|
3789
|
-
background-color:
|
|
3774
|
+
background-color: ${(props) => props.theme.theme_vars.colours.white};
|
|
3790
3775
|
border: 3px solid
|
|
3791
3776
|
${(props) => (props.$colourOverride ? props.$colourOverride : props.theme.theme_vars.colours.action)};
|
|
3792
3777
|
|
|
@@ -13800,17 +13785,21 @@ var parseSrcset$1 = {exports: {}};
|
|
|
13800
13785
|
|
|
13801
13786
|
var parseSrcsetExports = parseSrcset$1.exports;
|
|
13802
13787
|
|
|
13803
|
-
|
|
13788
|
+
function commonjsRequire(path) {
|
|
13789
|
+
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
13790
|
+
}
|
|
13804
13791
|
|
|
13805
|
-
|
|
13792
|
+
var picocolors = {exports: {}};
|
|
13806
13793
|
|
|
13794
|
+
let argv = process.argv || [],
|
|
13795
|
+
env = process.env;
|
|
13807
13796
|
let isColorSupported =
|
|
13808
|
-
!("NO_COLOR" in
|
|
13809
|
-
("FORCE_COLOR" in
|
|
13810
|
-
|
|
13797
|
+
!("NO_COLOR" in env || argv.includes("--no-color")) &&
|
|
13798
|
+
("FORCE_COLOR" in env ||
|
|
13799
|
+
argv.includes("--color") ||
|
|
13811
13800
|
process.platform === "win32" ||
|
|
13812
|
-
(
|
|
13813
|
-
"CI" in
|
|
13801
|
+
(commonjsRequire != null && require$$0__default.default.isatty(1) && env.TERM !== "dumb") ||
|
|
13802
|
+
"CI" in env);
|
|
13814
13803
|
|
|
13815
13804
|
let formatter =
|
|
13816
13805
|
(open, close, replace = open) =>
|
|
@@ -13823,40 +13812,47 @@ let formatter =
|
|
|
13823
13812
|
};
|
|
13824
13813
|
|
|
13825
13814
|
let replaceClose = (string, close, replace, index) => {
|
|
13826
|
-
let
|
|
13827
|
-
let
|
|
13828
|
-
|
|
13829
|
-
|
|
13830
|
-
|
|
13831
|
-
|
|
13832
|
-
|
|
13833
|
-
|
|
13834
|
-
|
|
13835
|
-
|
|
13836
|
-
|
|
13837
|
-
|
|
13838
|
-
|
|
13839
|
-
|
|
13840
|
-
|
|
13841
|
-
|
|
13842
|
-
|
|
13843
|
-
|
|
13844
|
-
|
|
13845
|
-
|
|
13846
|
-
|
|
13847
|
-
|
|
13848
|
-
|
|
13849
|
-
|
|
13850
|
-
|
|
13851
|
-
|
|
13852
|
-
|
|
13853
|
-
|
|
13854
|
-
|
|
13855
|
-
|
|
13856
|
-
|
|
13857
|
-
|
|
13858
|
-
|
|
13859
|
-
|
|
13815
|
+
let result = "";
|
|
13816
|
+
let cursor = 0;
|
|
13817
|
+
do {
|
|
13818
|
+
result += string.substring(cursor, index) + replace;
|
|
13819
|
+
cursor = index + close.length;
|
|
13820
|
+
index = string.indexOf(close, cursor);
|
|
13821
|
+
} while (~index)
|
|
13822
|
+
return result + string.substring(cursor)
|
|
13823
|
+
};
|
|
13824
|
+
|
|
13825
|
+
let createColors = (enabled = isColorSupported) => {
|
|
13826
|
+
let init = enabled ? formatter : () => String;
|
|
13827
|
+
return {
|
|
13828
|
+
isColorSupported: enabled,
|
|
13829
|
+
reset: init("\x1b[0m", "\x1b[0m"),
|
|
13830
|
+
bold: init("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
|
|
13831
|
+
dim: init("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
|
|
13832
|
+
italic: init("\x1b[3m", "\x1b[23m"),
|
|
13833
|
+
underline: init("\x1b[4m", "\x1b[24m"),
|
|
13834
|
+
inverse: init("\x1b[7m", "\x1b[27m"),
|
|
13835
|
+
hidden: init("\x1b[8m", "\x1b[28m"),
|
|
13836
|
+
strikethrough: init("\x1b[9m", "\x1b[29m"),
|
|
13837
|
+
black: init("\x1b[30m", "\x1b[39m"),
|
|
13838
|
+
red: init("\x1b[31m", "\x1b[39m"),
|
|
13839
|
+
green: init("\x1b[32m", "\x1b[39m"),
|
|
13840
|
+
yellow: init("\x1b[33m", "\x1b[39m"),
|
|
13841
|
+
blue: init("\x1b[34m", "\x1b[39m"),
|
|
13842
|
+
magenta: init("\x1b[35m", "\x1b[39m"),
|
|
13843
|
+
cyan: init("\x1b[36m", "\x1b[39m"),
|
|
13844
|
+
white: init("\x1b[37m", "\x1b[39m"),
|
|
13845
|
+
gray: init("\x1b[90m", "\x1b[39m"),
|
|
13846
|
+
bgBlack: init("\x1b[40m", "\x1b[49m"),
|
|
13847
|
+
bgRed: init("\x1b[41m", "\x1b[49m"),
|
|
13848
|
+
bgGreen: init("\x1b[42m", "\x1b[49m"),
|
|
13849
|
+
bgYellow: init("\x1b[43m", "\x1b[49m"),
|
|
13850
|
+
bgBlue: init("\x1b[44m", "\x1b[49m"),
|
|
13851
|
+
bgMagenta: init("\x1b[45m", "\x1b[49m"),
|
|
13852
|
+
bgCyan: init("\x1b[46m", "\x1b[49m"),
|
|
13853
|
+
bgWhite: init("\x1b[47m", "\x1b[49m"),
|
|
13854
|
+
}
|
|
13855
|
+
};
|
|
13860
13856
|
|
|
13861
13857
|
picocolors.exports = createColors();
|
|
13862
13858
|
picocolors.exports.createColors = createColors;
|
|
@@ -18470,12 +18466,14 @@ let PreviousMap$2 = class PreviousMap {
|
|
|
18470
18466
|
let charsetUri = /^data:application\/json;charset=utf-?8,/;
|
|
18471
18467
|
let uri = /^data:application\/json,/;
|
|
18472
18468
|
|
|
18473
|
-
|
|
18474
|
-
|
|
18469
|
+
let uriMatch = text.match(charsetUri) || text.match(uri);
|
|
18470
|
+
if (uriMatch) {
|
|
18471
|
+
return decodeURIComponent(text.substr(uriMatch[0].length))
|
|
18475
18472
|
}
|
|
18476
18473
|
|
|
18477
|
-
|
|
18478
|
-
|
|
18474
|
+
let baseUriMatch = text.match(baseCharsetUri) || text.match(baseUri);
|
|
18475
|
+
if (baseUriMatch) {
|
|
18476
|
+
return fromBase64(text.substr(baseUriMatch[0].length))
|
|
18479
18477
|
}
|
|
18480
18478
|
|
|
18481
18479
|
let encoding = text.match(/data:application\/json;([^,]+),/)[1];
|
|
@@ -18496,7 +18494,7 @@ let PreviousMap$2 = class PreviousMap {
|
|
|
18496
18494
|
}
|
|
18497
18495
|
|
|
18498
18496
|
loadAnnotation(css) {
|
|
18499
|
-
let comments = css.match(/\/\*\s*# sourceMappingURL=/
|
|
18497
|
+
let comments = css.match(/\/\*\s*# sourceMappingURL=/g);
|
|
18500
18498
|
if (!comments) return
|
|
18501
18499
|
|
|
18502
18500
|
// sourceMappingURLs from comments, strings, etc.
|
|
@@ -18892,7 +18890,7 @@ let MapGenerator$2 = class MapGenerator {
|
|
|
18892
18890
|
}
|
|
18893
18891
|
}
|
|
18894
18892
|
} else if (this.css) {
|
|
18895
|
-
this.css = this.css.replace(/\n
|
|
18893
|
+
this.css = this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, '');
|
|
18896
18894
|
}
|
|
18897
18895
|
}
|
|
18898
18896
|
|
|
@@ -19211,11 +19209,11 @@ function cleanSource(nodes) {
|
|
|
19211
19209
|
})
|
|
19212
19210
|
}
|
|
19213
19211
|
|
|
19214
|
-
function
|
|
19212
|
+
function markTreeDirty(node) {
|
|
19215
19213
|
node[isClean$1] = false;
|
|
19216
19214
|
if (node.proxyOf.nodes) {
|
|
19217
19215
|
for (let i of node.proxyOf.nodes) {
|
|
19218
|
-
|
|
19216
|
+
markTreeDirty(i);
|
|
19219
19217
|
}
|
|
19220
19218
|
}
|
|
19221
19219
|
}
|
|
@@ -19349,7 +19347,11 @@ let Container$10 = class Container extends Node$1 {
|
|
|
19349
19347
|
insertBefore(exist, add) {
|
|
19350
19348
|
let existIndex = this.index(exist);
|
|
19351
19349
|
let type = existIndex === 0 ? 'prepend' : false;
|
|
19352
|
-
let nodes = this.normalize(
|
|
19350
|
+
let nodes = this.normalize(
|
|
19351
|
+
add,
|
|
19352
|
+
this.proxyOf.nodes[existIndex],
|
|
19353
|
+
type
|
|
19354
|
+
).reverse();
|
|
19353
19355
|
existIndex = this.index(exist);
|
|
19354
19356
|
for (let node of nodes) this.proxyOf.nodes.splice(existIndex, 0, node);
|
|
19355
19357
|
|
|
@@ -19390,7 +19392,7 @@ let Container$10 = class Container extends Node$1 {
|
|
|
19390
19392
|
nodes.value = String(nodes.value);
|
|
19391
19393
|
}
|
|
19392
19394
|
nodes = [new Declaration$3(nodes)];
|
|
19393
|
-
} else if (nodes.selector) {
|
|
19395
|
+
} else if (nodes.selector || nodes.selectors) {
|
|
19394
19396
|
nodes = [new Rule$4(nodes)];
|
|
19395
19397
|
} else if (nodes.name) {
|
|
19396
19398
|
nodes = [new AtRule$4(nodes)];
|
|
@@ -19405,7 +19407,7 @@ let Container$10 = class Container extends Node$1 {
|
|
|
19405
19407
|
if (!i[my$1]) Container.rebuild(i);
|
|
19406
19408
|
i = i.proxyOf;
|
|
19407
19409
|
if (i.parent) i.parent.removeChild(i);
|
|
19408
|
-
if (i[isClean$1])
|
|
19410
|
+
if (i[isClean$1]) markTreeDirty(i);
|
|
19409
19411
|
if (typeof i.raws.before === 'undefined') {
|
|
19410
19412
|
if (sample && typeof sample.raws.before !== 'undefined') {
|
|
19411
19413
|
i.raws.before = sample.raws.before.replace(/\S/g, '');
|
|
@@ -21266,7 +21268,7 @@ let Root$2 = root;
|
|
|
21266
21268
|
|
|
21267
21269
|
let Processor$1 = class Processor {
|
|
21268
21270
|
constructor(plugins = []) {
|
|
21269
|
-
this.version = '8.4.
|
|
21271
|
+
this.version = '8.4.41';
|
|
21270
21272
|
this.plugins = this.normalize(plugins);
|
|
21271
21273
|
}
|
|
21272
21274
|
|
|
@@ -23162,7 +23164,7 @@ var GoogleMap = function (_a) {
|
|
|
23162
23164
|
}
|
|
23163
23165
|
/* We also check the non-embed link goes to goo.gl/maps or www.google.com/maps */
|
|
23164
23166
|
if (link_url) {
|
|
23165
|
-
var googl_matches = link_url.match(/^https:\/\/goo.gl\/maps|https:\/\/www.google.com\/maps/gi);
|
|
23167
|
+
var googl_matches = link_url.match(/^https:\/\/goo.gl\/maps|https:\/\/www.google.com\/maps|https:\/\/maps.app.goo.gl/gi);
|
|
23166
23168
|
link_url = (googl_matches === null || googl_matches === void 0 ? void 0 : googl_matches.length) == 1 ? link_url : '';
|
|
23167
23169
|
}
|
|
23168
23170
|
React.useEffect(function () {
|
|
@@ -27104,13 +27106,9 @@ var RadioCheckboxInput = function (_a) {
|
|
|
27104
27106
|
};
|
|
27105
27107
|
|
|
27106
27108
|
function L(r) {
|
|
27107
|
-
const [o, c] = React.useState(
|
|
27109
|
+
const [o, c] = React.useState("loading" );
|
|
27108
27110
|
return React.useEffect(
|
|
27109
27111
|
() => {
|
|
27110
|
-
if (!r) {
|
|
27111
|
-
c("idle");
|
|
27112
|
-
return;
|
|
27113
|
-
}
|
|
27114
27112
|
let e = document.querySelector(`script[src="${r}"]`);
|
|
27115
27113
|
if (e)
|
|
27116
27114
|
c(e.getAttribute("data-status"));
|
|
@@ -31152,6 +31150,13 @@ const PrintAddress = styled__default.default.div`
|
|
|
31152
31150
|
|
|
31153
31151
|
var lib = {};
|
|
31154
31152
|
|
|
31153
|
+
var ErrorCorrectLevel = {
|
|
31154
|
+
L : 1,
|
|
31155
|
+
M : 0,
|
|
31156
|
+
Q : 3,
|
|
31157
|
+
H : 2
|
|
31158
|
+
};
|
|
31159
|
+
|
|
31155
31160
|
var mode$1 = {
|
|
31156
31161
|
MODE_NUMBER : 1 << 0,
|
|
31157
31162
|
MODE_ALPHA_NUM : 1 << 1,
|
|
@@ -31182,13 +31187,6 @@ QR8bitByte.prototype = {
|
|
|
31182
31187
|
|
|
31183
31188
|
var _8BitByte = QR8bitByte;
|
|
31184
31189
|
|
|
31185
|
-
var ErrorCorrectLevel = {
|
|
31186
|
-
L : 1,
|
|
31187
|
-
M : 0,
|
|
31188
|
-
Q : 3,
|
|
31189
|
-
H : 2
|
|
31190
|
-
};
|
|
31191
|
-
|
|
31192
31190
|
// ErrorCorrectLevel
|
|
31193
31191
|
var ECL = ErrorCorrectLevel;
|
|
31194
31192
|
|
|
@@ -32390,11 +32388,6 @@ var propTypes$1 = {
|
|
|
32390
32388
|
xmlns: _propTypes2$1.default.string
|
|
32391
32389
|
};
|
|
32392
32390
|
|
|
32393
|
-
var defaultProps$1 = {
|
|
32394
|
-
title: undefined,
|
|
32395
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
32396
|
-
};
|
|
32397
|
-
|
|
32398
32391
|
var QRCodeSvg = (0, _react$1.forwardRef)(function (_ref, ref) {
|
|
32399
32392
|
var bgColor = _ref.bgColor,
|
|
32400
32393
|
bgD = _ref.bgD,
|
|
@@ -32403,11 +32396,13 @@ var QRCodeSvg = (0, _react$1.forwardRef)(function (_ref, ref) {
|
|
|
32403
32396
|
size = _ref.size,
|
|
32404
32397
|
title = _ref.title,
|
|
32405
32398
|
viewBoxSize = _ref.viewBoxSize,
|
|
32406
|
-
|
|
32399
|
+
_ref$xmlns = _ref.xmlns,
|
|
32400
|
+
xmlns = _ref$xmlns === undefined ? "http://www.w3.org/2000/svg" : _ref$xmlns,
|
|
32401
|
+
props = _objectWithoutProperties$1(_ref, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize", "xmlns"]);
|
|
32407
32402
|
|
|
32408
32403
|
return _react2$1.default.createElement(
|
|
32409
32404
|
"svg",
|
|
32410
|
-
_extends$1({}, props, { height: size, ref: ref, viewBox: "0 0 " + viewBoxSize + " " + viewBoxSize, width: size }),
|
|
32405
|
+
_extends$1({}, props, { height: size, ref: ref, viewBox: "0 0 " + viewBoxSize + " " + viewBoxSize, width: size, xmlns: xmlns }),
|
|
32411
32406
|
title ? _react2$1.default.createElement(
|
|
32412
32407
|
"title",
|
|
32413
32408
|
null,
|
|
@@ -32420,7 +32415,6 @@ var QRCodeSvg = (0, _react$1.forwardRef)(function (_ref, ref) {
|
|
|
32420
32415
|
|
|
32421
32416
|
QRCodeSvg.displayName = "QRCodeSvg";
|
|
32422
32417
|
QRCodeSvg.propTypes = propTypes$1;
|
|
32423
|
-
QRCodeSvg.defaultProps = defaultProps$1;
|
|
32424
32418
|
|
|
32425
32419
|
QRCodeSvg$1.default = QRCodeSvg;
|
|
32426
32420
|
|
|
@@ -32431,17 +32425,17 @@ lib.QRCode = undefined;
|
|
|
32431
32425
|
|
|
32432
32426
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
32433
32427
|
|
|
32434
|
-
var
|
|
32428
|
+
var _propTypes = propTypesExports;
|
|
32435
32429
|
|
|
32436
|
-
var
|
|
32430
|
+
var _propTypes2 = _interopRequireDefault(_propTypes);
|
|
32437
32431
|
|
|
32438
32432
|
var _ErrorCorrectLevel = ErrorCorrectLevel;
|
|
32439
32433
|
|
|
32440
32434
|
var _ErrorCorrectLevel2 = _interopRequireDefault(_ErrorCorrectLevel);
|
|
32441
32435
|
|
|
32442
|
-
var
|
|
32436
|
+
var _QRCode = QRCode_1;
|
|
32443
32437
|
|
|
32444
|
-
var
|
|
32438
|
+
var _QRCode2 = _interopRequireDefault(_QRCode);
|
|
32445
32439
|
|
|
32446
32440
|
var _react = React__default.default;
|
|
32447
32441
|
|
|
@@ -32453,7 +32447,8 @@ var _QRCodeSvg2 = _interopRequireDefault(_QRCodeSvg);
|
|
|
32453
32447
|
|
|
32454
32448
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
32455
32449
|
|
|
32456
|
-
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
|
32450
|
+
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
|
32451
|
+
// A `qr.js` doesn't handle error level of zero (M) so we need to do it right, thus the deep require.
|
|
32457
32452
|
|
|
32458
32453
|
|
|
32459
32454
|
var propTypes = {
|
|
@@ -32464,18 +32459,15 @@ var propTypes = {
|
|
|
32464
32459
|
value: _propTypes2.default.string.isRequired
|
|
32465
32460
|
};
|
|
32466
32461
|
|
|
32467
|
-
var defaultProps = {
|
|
32468
|
-
bgColor: "#FFFFFF",
|
|
32469
|
-
fgColor: "#000000",
|
|
32470
|
-
level: "L",
|
|
32471
|
-
size: 256
|
|
32472
|
-
};
|
|
32473
|
-
|
|
32474
32462
|
var QRCode = (0, _react.forwardRef)(function (_ref, ref) {
|
|
32475
|
-
var bgColor = _ref.bgColor,
|
|
32476
|
-
|
|
32477
|
-
|
|
32478
|
-
|
|
32463
|
+
var _ref$bgColor = _ref.bgColor,
|
|
32464
|
+
bgColor = _ref$bgColor === undefined ? "#FFFFFF" : _ref$bgColor,
|
|
32465
|
+
_ref$fgColor = _ref.fgColor,
|
|
32466
|
+
fgColor = _ref$fgColor === undefined ? "#000000" : _ref$fgColor,
|
|
32467
|
+
_ref$level = _ref.level,
|
|
32468
|
+
level = _ref$level === undefined ? "L" : _ref$level,
|
|
32469
|
+
_ref$size = _ref.size,
|
|
32470
|
+
size = _ref$size === undefined ? 256 : _ref$size,
|
|
32479
32471
|
value = _ref.value,
|
|
32480
32472
|
props = _objectWithoutProperties(_ref, ["bgColor", "fgColor", "level", "size", "value"]);
|
|
32481
32473
|
|
|
@@ -32506,7 +32498,6 @@ var QRCode = (0, _react.forwardRef)(function (_ref, ref) {
|
|
|
32506
32498
|
lib.QRCode = QRCode;
|
|
32507
32499
|
QRCode.displayName = "QRCode";
|
|
32508
32500
|
QRCode.propTypes = propTypes;
|
|
32509
|
-
QRCode.defaultProps = defaultProps;
|
|
32510
32501
|
|
|
32511
32502
|
var _default = lib.default = QRCode;
|
|
32512
32503
|
|