@iabbb/bds-react 0.40.0-beta.2 → 0.40.0-beta.21

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.
@@ -1,5 +1,3 @@
1
- import ErrorSummary from '@iabbb/bds/ErrorSummary';
2
- import { HTMLElement } from '@lit-labs/ssr-dom-shim';
3
1
  import * as React from 'react';
4
2
 
5
3
  function _iterableToArrayLimit(r, l) {
@@ -50,6 +48,28 @@ function _objectSpread2(e) {
50
48
  }
51
49
  return e;
52
50
  }
51
+ function _classCallCheck(instance, Constructor) {
52
+ if (!(instance instanceof Constructor)) {
53
+ throw new TypeError("Cannot call a class as a function");
54
+ }
55
+ }
56
+ function _defineProperties(target, props) {
57
+ for (var i = 0; i < props.length; i++) {
58
+ var descriptor = props[i];
59
+ descriptor.enumerable = descriptor.enumerable || false;
60
+ descriptor.configurable = true;
61
+ if ("value" in descriptor) descriptor.writable = true;
62
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
63
+ }
64
+ }
65
+ function _createClass(Constructor, protoProps, staticProps) {
66
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
67
+ if (staticProps) _defineProperties(Constructor, staticProps);
68
+ Object.defineProperty(Constructor, "prototype", {
69
+ writable: false
70
+ });
71
+ return Constructor;
72
+ }
53
73
  function _defineProperty(obj, key, value) {
54
74
  key = _toPropertyKey(key);
55
75
  if (key in obj) {
@@ -78,6 +98,90 @@ function _extends() {
78
98
  };
79
99
  return _extends.apply(this, arguments);
80
100
  }
101
+ function _inherits(subClass, superClass) {
102
+ if (typeof superClass !== "function" && superClass !== null) {
103
+ throw new TypeError("Super expression must either be null or a function");
104
+ }
105
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
106
+ constructor: {
107
+ value: subClass,
108
+ writable: true,
109
+ configurable: true
110
+ }
111
+ });
112
+ Object.defineProperty(subClass, "prototype", {
113
+ writable: false
114
+ });
115
+ if (superClass) _setPrototypeOf(subClass, superClass);
116
+ }
117
+ function _getPrototypeOf(o) {
118
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
119
+ return o.__proto__ || Object.getPrototypeOf(o);
120
+ };
121
+ return _getPrototypeOf(o);
122
+ }
123
+ function _setPrototypeOf(o, p) {
124
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
125
+ o.__proto__ = p;
126
+ return o;
127
+ };
128
+ return _setPrototypeOf(o, p);
129
+ }
130
+ function _isNativeReflectConstruct() {
131
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
132
+ if (Reflect.construct.sham) return false;
133
+ if (typeof Proxy === "function") return true;
134
+ try {
135
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
136
+ return true;
137
+ } catch (e) {
138
+ return false;
139
+ }
140
+ }
141
+ function _construct(Parent, args, Class) {
142
+ if (_isNativeReflectConstruct()) {
143
+ _construct = Reflect.construct.bind();
144
+ } else {
145
+ _construct = function _construct(Parent, args, Class) {
146
+ var a = [null];
147
+ a.push.apply(a, args);
148
+ var Constructor = Function.bind.apply(Parent, a);
149
+ var instance = new Constructor();
150
+ if (Class) _setPrototypeOf(instance, Class.prototype);
151
+ return instance;
152
+ };
153
+ }
154
+ return _construct.apply(null, arguments);
155
+ }
156
+ function _isNativeFunction(fn) {
157
+ return Function.toString.call(fn).indexOf("[native code]") !== -1;
158
+ }
159
+ function _wrapNativeSuper(Class) {
160
+ var _cache = typeof Map === "function" ? new Map() : undefined;
161
+ _wrapNativeSuper = function _wrapNativeSuper(Class) {
162
+ if (Class === null || !_isNativeFunction(Class)) return Class;
163
+ if (typeof Class !== "function") {
164
+ throw new TypeError("Super expression must either be null or a function");
165
+ }
166
+ if (typeof _cache !== "undefined") {
167
+ if (_cache.has(Class)) return _cache.get(Class);
168
+ _cache.set(Class, Wrapper);
169
+ }
170
+ function Wrapper() {
171
+ return _construct(Class, arguments, _getPrototypeOf(this).constructor);
172
+ }
173
+ Wrapper.prototype = Object.create(Class.prototype, {
174
+ constructor: {
175
+ value: Wrapper,
176
+ enumerable: false,
177
+ writable: true,
178
+ configurable: true
179
+ }
180
+ });
181
+ return _setPrototypeOf(Wrapper, Class);
182
+ };
183
+ return _wrapNativeSuper(Class);
184
+ }
81
185
  function _objectWithoutPropertiesLoose(source, excluded) {
82
186
  if (source == null) return {};
83
187
  var target = {};
@@ -105,6 +209,34 @@ function _objectWithoutProperties(source, excluded) {
105
209
  }
106
210
  return target;
107
211
  }
212
+ function _assertThisInitialized(self) {
213
+ if (self === void 0) {
214
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
215
+ }
216
+ return self;
217
+ }
218
+ function _possibleConstructorReturn(self, call) {
219
+ if (call && (typeof call === "object" || typeof call === "function")) {
220
+ return call;
221
+ } else if (call !== void 0) {
222
+ throw new TypeError("Derived constructors may only return object or undefined");
223
+ }
224
+ return _assertThisInitialized(self);
225
+ }
226
+ function _createSuper(Derived) {
227
+ var hasNativeReflectConstruct = _isNativeReflectConstruct();
228
+ return function _createSuperInternal() {
229
+ var Super = _getPrototypeOf(Derived),
230
+ result;
231
+ if (hasNativeReflectConstruct) {
232
+ var NewTarget = _getPrototypeOf(this).constructor;
233
+ result = Reflect.construct(Super, arguments, NewTarget);
234
+ } else {
235
+ result = Super.apply(this, arguments);
236
+ }
237
+ return _possibleConstructorReturn(this, result);
238
+ };
239
+ }
108
240
  function _slicedToArray(arr, i) {
109
241
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
110
242
  }
@@ -141,6 +273,437 @@ function _toPropertyKey(arg) {
141
273
  var key = _toPrimitive(arg, "string");
142
274
  return typeof key === "symbol" ? key : String(key);
143
275
  }
276
+ function _classPrivateMethodGet(receiver, privateSet, fn) {
277
+ if (!privateSet.has(receiver)) {
278
+ throw new TypeError("attempted to get private field on non-instance");
279
+ }
280
+ return fn;
281
+ }
282
+ function _checkPrivateRedeclaration(obj, privateCollection) {
283
+ if (privateCollection.has(obj)) {
284
+ throw new TypeError("Cannot initialize the same private elements twice on an object");
285
+ }
286
+ }
287
+ function _classPrivateMethodInitSpec(obj, privateSet) {
288
+ _checkPrivateRedeclaration(obj, privateSet);
289
+ privateSet.add(obj);
290
+ }
291
+
292
+ // Shim the global element internals object
293
+ // Methods should be fine as noops and properties can generally
294
+ // be while on the server.
295
+ var ElementInternalsShim = /*#__PURE__*/function () {
296
+ function ElementInternals(_host) {
297
+ _classCallCheck(this, ElementInternals);
298
+ this.ariaAtomic = '';
299
+ this.ariaAutoComplete = '';
300
+ this.ariaBraileLabel = '';
301
+ this.ariaBraileRoleDescription = '';
302
+ this.ariaBusy = '';
303
+ this.ariaChecked = '';
304
+ this.ariaColCount = '';
305
+ this.ariaColIndex = '';
306
+ this.ariaColSpan = '';
307
+ this.ariaCurrent = '';
308
+ this.ariaDescription = '';
309
+ this.ariaDisabled = '';
310
+ this.ariaExpanded = '';
311
+ this.ariaHasPopup = '';
312
+ this.ariaHidden = '';
313
+ this.ariaInvalid = '';
314
+ this.ariaKeyShortcuts = '';
315
+ this.ariaLabel = '';
316
+ this.ariaLevel = '';
317
+ this.ariaLive = '';
318
+ this.ariaModal = '';
319
+ this.ariaMultiLine = '';
320
+ this.ariaMultiSelectable = '';
321
+ this.ariaOrientation = '';
322
+ this.ariaPlaceholder = '';
323
+ this.ariaPosInSet = '';
324
+ this.ariaPressed = '';
325
+ this.ariaReadOnly = '';
326
+ this.ariaRequired = '';
327
+ this.ariaRoleDescription = '';
328
+ this.ariaRowCount = '';
329
+ this.ariaRowIndex = '';
330
+ this.ariaRowSpan = '';
331
+ this.ariaSelected = '';
332
+ this.ariaSetSize = '';
333
+ this.ariaSort = '';
334
+ this.ariaValueMax = '';
335
+ this.ariaValueMin = '';
336
+ this.ariaValueNow = '';
337
+ this.ariaValueText = '';
338
+ this.role = '';
339
+ this.form = null;
340
+ this.labels = [];
341
+ this.states = new Set();
342
+ this.validationMessage = '';
343
+ this.validity = {};
344
+ this.willValidate = true;
345
+ this.__host = _host;
346
+ }
347
+ _createClass(ElementInternals, [{
348
+ key: "shadowRoot",
349
+ get: function get() {
350
+ // Grab the shadow root instance from the Element shim
351
+ // to ensure that the shadow root is always available
352
+ // to the internals instance even if the mode is 'closed'
353
+ return this.__host.__shadowRoot;
354
+ }
355
+ }, {
356
+ key: "checkValidity",
357
+ value: function checkValidity() {
358
+ // TODO(augustjk) Consider actually implementing logic.
359
+ // See https://github.com/lit/lit/issues/3740
360
+ console.warn('`ElementInternals.checkValidity()` was called on the server.' + 'This method always returns true.');
361
+ return true;
362
+ }
363
+ }, {
364
+ key: "reportValidity",
365
+ value: function reportValidity() {
366
+ return true;
367
+ }
368
+ }, {
369
+ key: "setFormValue",
370
+ value: function setFormValue() {}
371
+ }, {
372
+ key: "setValidity",
373
+ value: function setValidity() {}
374
+ }]);
375
+ return ElementInternals;
376
+ }();
377
+
378
+ var attributes = new WeakMap();
379
+ var attributesForElement = function attributesForElement(element) {
380
+ var attrs = attributes.get(element);
381
+ if (attrs === undefined) {
382
+ attributes.set(element, attrs = new Map());
383
+ }
384
+ return attrs;
385
+ };
386
+ // The typings around the exports below are a little funky:
387
+ //
388
+ // 1. We want the `name` of the shim classes to match the real ones at runtime,
389
+ // hence e.g. `class Element`.
390
+ // 2. We can't shadow the global types with a simple class declaration, because
391
+ // then we can't reference the global types for casting, hence e.g.
392
+ // `const ElementShim = class Element`.
393
+ // 3. We want to export the classes typed as the real ones, hence e.g.
394
+ // `const ElementShimWithRealType = ElementShim as object as typeof Element;`.
395
+ // 4. We want the exported names to match the real ones, hence e.g.
396
+ // `export {ElementShimWithRealType as Element}`.
397
+ var ElementShim = /*#__PURE__*/function () {
398
+ function Element() {
399
+ _classCallCheck(this, Element);
400
+ this.__shadowRootMode = null;
401
+ this.__shadowRoot = null;
402
+ this.__internals = null;
403
+ }
404
+ _createClass(Element, [{
405
+ key: "attributes",
406
+ get: function get() {
407
+ return Array.from(attributesForElement(this)).map(function (_ref) {
408
+ var _ref2 = _slicedToArray(_ref, 2),
409
+ name = _ref2[0],
410
+ value = _ref2[1];
411
+ return {
412
+ name: name,
413
+ value: value
414
+ };
415
+ });
416
+ }
417
+ }, {
418
+ key: "shadowRoot",
419
+ get: function get() {
420
+ if (this.__shadowRootMode === 'closed') {
421
+ return null;
422
+ }
423
+ return this.__shadowRoot;
424
+ }
425
+ }, {
426
+ key: "setAttribute",
427
+ value: function setAttribute(name, value) {
428
+ // Emulate browser behavior that silently casts all values to string. E.g.
429
+ // `42` becomes `"42"` and `{}` becomes `"[object Object]""`.
430
+ attributesForElement(this).set(name, String(value));
431
+ }
432
+ }, {
433
+ key: "removeAttribute",
434
+ value: function removeAttribute(name) {
435
+ attributesForElement(this)["delete"](name);
436
+ }
437
+ }, {
438
+ key: "hasAttribute",
439
+ value: function hasAttribute(name) {
440
+ return attributesForElement(this).has(name);
441
+ }
442
+ }, {
443
+ key: "attachShadow",
444
+ value: function attachShadow(init) {
445
+ var shadowRoot = {
446
+ host: this
447
+ };
448
+ this.__shadowRootMode = init.mode;
449
+ if (init && init.mode === 'open') {
450
+ this.__shadowRoot = shadowRoot;
451
+ }
452
+ return shadowRoot;
453
+ }
454
+ }, {
455
+ key: "attachInternals",
456
+ value: function attachInternals() {
457
+ if (this.__internals !== null) {
458
+ throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': " + "ElementInternals for the specified element was already attached.");
459
+ }
460
+ var internals = new ElementInternalsShim(this);
461
+ this.__internals = internals;
462
+ return internals;
463
+ }
464
+ }, {
465
+ key: "getAttribute",
466
+ value: function getAttribute(name) {
467
+ var value = attributesForElement(this).get(name);
468
+ return value !== null && value !== void 0 ? value : null;
469
+ }
470
+ }]);
471
+ return Element;
472
+ }();
473
+ var ElementShimWithRealType = ElementShim;
474
+ var HTMLElementShim = /*#__PURE__*/function (_ElementShim) {
475
+ _inherits(HTMLElement, _ElementShim);
476
+ var _super = _createSuper(HTMLElement);
477
+ function HTMLElement() {
478
+ _classCallCheck(this, HTMLElement);
479
+ return _super.apply(this, arguments);
480
+ }
481
+ return _createClass(HTMLElement);
482
+ }(ElementShim);
483
+ var HTMLElementShimWithRealType = HTMLElementShim;
484
+ var CustomElementRegistryShim = /*#__PURE__*/function () {
485
+ function CustomElementRegistry() {
486
+ _classCallCheck(this, CustomElementRegistry);
487
+ this.__definitions = new Map();
488
+ }
489
+ _createClass(CustomElementRegistry, [{
490
+ key: "define",
491
+ value: function define(name, ctor) {
492
+ var _ctor$observedAttribu;
493
+ if (this.__definitions.has(name)) {
494
+ if (process.env.NODE_ENV === 'development') {
495
+ console.warn("'CustomElementRegistry' already has \"".concat(name, "\" defined. ") + "This may have been caused by live reload or hot module " + "replacement in which case it can be safely ignored.\n" + "Make sure to test your application with a production build as " + "repeat registrations will throw in production.");
496
+ } else {
497
+ throw new Error("Failed to execute 'define' on 'CustomElementRegistry': " + "the name \"".concat(name, "\" has already been used with this registry"));
498
+ }
499
+ }
500
+ this.__definitions.set(name, {
501
+ ctor: ctor,
502
+ // Note it's important we read `observedAttributes` in case it is a getter
503
+ // with side-effects, as is the case in Lit, where it triggers class
504
+ // finalization.
505
+ //
506
+ // TODO(aomarks) To be spec compliant, we should also capture the
507
+ // registration-time lifecycle methods like `connectedCallback`. For them
508
+ // to be actually accessible to e.g. the Lit SSR element renderer, though,
509
+ // we'd need to introduce a new API for accessing them (since `get` only
510
+ // returns the constructor).
511
+ observedAttributes: (_ctor$observedAttribu = ctor.observedAttributes) !== null && _ctor$observedAttribu !== void 0 ? _ctor$observedAttribu : []
512
+ });
513
+ }
514
+ }, {
515
+ key: "get",
516
+ value: function get(name) {
517
+ var definition = this.__definitions.get(name);
518
+ return definition === null || definition === void 0 ? void 0 : definition.ctor;
519
+ }
520
+ }]);
521
+ return CustomElementRegistry;
522
+ }();
523
+ var CustomElementRegistryShimWithRealType = CustomElementRegistryShim;
524
+ new CustomElementRegistryShimWithRealType();
525
+
526
+ /**
527
+ * Constructs a fresh instance of the "window" vm context to use for evaluating
528
+ * user SSR code. Includes a minimal shim of DOM APIs.
529
+ *
530
+ * @param includeJSBuiltIns Whether certain standard JS context globals like
531
+ * `console` and `setTimeout` should also be added to the global. Should
532
+ * generally only be true when adding window to a fresh VM context that
533
+ * starts with nothing.
534
+ * @param props Additional properties to add to the window global
535
+ */
536
+ var getWindow = function getWindow(_ref) {
537
+ var _ref$includeJSBuiltIn = _ref.includeJSBuiltIns,
538
+ includeJSBuiltIns = _ref$includeJSBuiltIn === void 0 ? false : _ref$includeJSBuiltIn,
539
+ _ref$props = _ref.props,
540
+ props = _ref$props === void 0 ? {} : _ref$props;
541
+ var ShadowRoot = /*#__PURE__*/_createClass(function ShadowRoot() {
542
+ _classCallCheck(this, ShadowRoot);
543
+ });
544
+ var Document = /*#__PURE__*/function () {
545
+ function Document() {
546
+ _classCallCheck(this, Document);
547
+ }
548
+ _createClass(Document, [{
549
+ key: "adoptedStyleSheets",
550
+ get: function get() {
551
+ return [];
552
+ }
553
+ }, {
554
+ key: "createTreeWalker",
555
+ value: function createTreeWalker() {
556
+ return {};
557
+ }
558
+ }, {
559
+ key: "createTextNode",
560
+ value: function createTextNode() {
561
+ return {};
562
+ }
563
+ }, {
564
+ key: "createElement",
565
+ value: function createElement() {
566
+ return {};
567
+ }
568
+ }]);
569
+ return Document;
570
+ }();
571
+ var CSSStyleSheet = /*#__PURE__*/function () {
572
+ function CSSStyleSheet() {
573
+ _classCallCheck(this, CSSStyleSheet);
574
+ }
575
+ _createClass(CSSStyleSheet, [{
576
+ key: "replace",
577
+ value: function replace() {}
578
+ }]);
579
+ return CSSStyleSheet;
580
+ }();
581
+ var window = _objectSpread2({
582
+ Element: ElementShimWithRealType,
583
+ HTMLElement: HTMLElementShimWithRealType,
584
+ Document: Document,
585
+ document: new Document(),
586
+ CSSStyleSheet: CSSStyleSheet,
587
+ ShadowRoot: ShadowRoot,
588
+ CustomElementRegistry: CustomElementRegistryShimWithRealType,
589
+ customElements: new CustomElementRegistryShimWithRealType(),
590
+ btoa: function btoa(s) {
591
+ return Buffer.from(s, 'binary').toString('base64');
592
+ },
593
+ location: new URL('http://localhost'),
594
+ MutationObserver: /*#__PURE__*/function () {
595
+ function MutationObserver() {
596
+ _classCallCheck(this, MutationObserver);
597
+ }
598
+ _createClass(MutationObserver, [{
599
+ key: "observe",
600
+ value: function observe() {}
601
+ }]);
602
+ return MutationObserver;
603
+ }(),
604
+ // No-op any async tasks
605
+ requestAnimationFrame: function requestAnimationFrame() {},
606
+ // Set below
607
+ window: undefined
608
+ }, props);
609
+ if (includeJSBuiltIns) {
610
+ Object.assign(window, {
611
+ // No-op any async tasks
612
+ setTimeout: function setTimeout() {},
613
+ clearTimeout: function clearTimeout() {},
614
+ // Required for node-fetch
615
+ Buffer: Buffer,
616
+ URL: URL,
617
+ URLSearchParams: URLSearchParams,
618
+ console: {
619
+ log: function log() {
620
+ var _console;
621
+ (_console = console).log.apply(_console, arguments);
622
+ },
623
+ info: function info() {
624
+ var _console2;
625
+ (_console2 = console).info.apply(_console2, arguments);
626
+ },
627
+ warn: function warn() {
628
+ var _console3;
629
+ (_console3 = console).warn.apply(_console3, arguments);
630
+ },
631
+ debug: function debug() {
632
+ var _console4;
633
+ (_console4 = console).debug.apply(_console4, arguments);
634
+ },
635
+ error: function error() {
636
+ var _console5;
637
+ (_console5 = console).error.apply(_console5, arguments);
638
+ },
639
+ assert: function assert(bool, msg) {
640
+ if (!bool) {
641
+ throw new Error(msg);
642
+ }
643
+ }
644
+ }
645
+ });
646
+ }
647
+ return window;
648
+ };
649
+ var installWindowOnGlobal = function installWindowOnGlobal() {
650
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
651
+ // Avoid installing the DOM shim if one already exists
652
+ if (globalThis.window === undefined) {
653
+ var window = getWindow({
654
+ props: props
655
+ });
656
+ // Copy initial window globals to node global
657
+ Object.assign(globalThis, window);
658
+ }
659
+ };
660
+ installWindowOnGlobal();
661
+
662
+ var _e = /*#__PURE__*/new WeakSet();
663
+ var _t = /*#__PURE__*/new WeakSet();
664
+ var e$1 = /*#__PURE__*/function (_HTMLElement) {
665
+ _inherits(e, _HTMLElement);
666
+ var _super = _createSuper(e);
667
+ function e() {
668
+ var _this;
669
+ _classCallCheck(this, e);
670
+ (_this = _super.call(this), _classPrivateMethodInitSpec(_assertThisInitialized(_this), _t), _classPrivateMethodInitSpec(_assertThisInitialized(_this), _e)), _this.addEventListener("click", function (_e5) {
671
+ var t = _e5.target.closest("a");
672
+ if (!t) return;
673
+ var n = _classPrivateMethodGet(_assertThisInitialized(_this), _e, _e2).call(_assertThisInitialized(_this), t.href);
674
+ if (!n) return;
675
+ var r = document.getElementById(n);
676
+ if (!r) return;
677
+ var o = _classPrivateMethodGet(_assertThisInitialized(_this), _t, _t2).call(_assertThisInitialized(_this), r);
678
+ o && (_e5.preventDefault(), o.scrollIntoView(), r.focus({
679
+ preventScroll: !0
680
+ }));
681
+ });
682
+ return _this;
683
+ }
684
+ return _createClass(e);
685
+ }( /*#__PURE__*/_wrapNativeSuper(HTMLElement));
686
+ function _e2(_e3) {
687
+ return _e3.includes("#") ? _e3.split("#").pop() : void 0;
688
+ }
689
+ function _t2(_e4) {
690
+ var _document$querySelect;
691
+ var t = _e4.closest("fieldset");
692
+ if (t) {
693
+ var n = t.getElementsByTagName("legend");
694
+ if (n.length) {
695
+ var _t3 = n[0];
696
+ if (_e4 instanceof HTMLInputElement && ("checkbox" === _e4.type || "radio" === _e4.type)) return _t3;
697
+ var r = _t3.getBoundingClientRect().top,
698
+ o = _e4.getBoundingClientRect();
699
+ if (o.height && window.innerHeight) {
700
+ if (o.top + o.height - r < window.innerHeight / 2) return _t3;
701
+ }
702
+ }
703
+ }
704
+ return (_document$querySelect = document.querySelector("label[for='".concat(_e4.getAttribute("id"), "']"))) !== null && _document$querySelect !== void 0 ? _document$querySelect : _e4.closest("label");
705
+ }
706
+ window && "customElements" in window && customElements.define("bds-error-summary", e$1);
144
707
 
145
708
  /**
146
709
  * @license
@@ -198,7 +761,7 @@ var e = new Set(["children", "localName", "ref", "style", "className"]),
198
761
  var _excluded = ["className", "errors", "mapNameToId"];
199
762
  var ReactErrorSummary = t({
200
763
  tagName: 'bds-error-summary',
201
- elementClass: ErrorSummary,
764
+ elementClass: e$1,
202
765
  react: React
203
766
  });
204
767
  var FormErrorKey = '_form';