@teselagen/ui 0.3.17 → 0.3.18

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/index.cjs.js CHANGED
@@ -7422,7 +7422,7 @@ function getPlainObjectKeys(object) {
7422
7422
  var ownKeys$3 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownKeys : hasGetOwnPropertySymbols ? function (obj) {
7423
7423
  return Object.getOwnPropertyNames(obj).concat(Object.getOwnPropertySymbols(obj));
7424
7424
  } : /* istanbul ignore next */Object.getOwnPropertyNames;
7425
- function toPrimitive$2(value) {
7425
+ function toPrimitive$3(value) {
7426
7426
  return value === null ? null : typeof value === "object" ? "" + value : value;
7427
7427
  }
7428
7428
  function hasProp(target, prop) {
@@ -8351,7 +8351,7 @@ var ObservableValue = /*#__PURE__*/function (_Atom) {
8351
8351
  return this.name_ + "[" + this.value_ + "]";
8352
8352
  };
8353
8353
  _proto.valueOf = function valueOf() {
8354
- return toPrimitive$2(this.get());
8354
+ return toPrimitive$3(this.get());
8355
8355
  };
8356
8356
  _proto[_Symbol$toPrimitive] = function () {
8357
8357
  return this.valueOf();
@@ -8579,7 +8579,7 @@ var ComputedValue = /*#__PURE__*/function () {
8579
8579
  return this.name_ + "[" + this.derivation.toString() + "]";
8580
8580
  };
8581
8581
  _proto.valueOf = function valueOf() {
8582
- return toPrimitive$2(this.get());
8582
+ return toPrimitive$3(this.get());
8583
8583
  };
8584
8584
  _proto[_Symbol$toPrimitive$1] = function () {
8585
8585
  return this.valueOf();
@@ -30208,6 +30208,8 @@ function DialogFooter({
30208
30208
  style,
30209
30209
  onClick = lodashExports.noop,
30210
30210
  secondaryAction,
30211
+ secondaryDisabled,
30212
+ secondaryNotMinimal,
30211
30213
  intent = core$5.Intent.PRIMARY,
30212
30214
  secondaryIntent,
30213
30215
  backText = "Back",
@@ -30239,7 +30241,8 @@ function DialogFooter({
30239
30241
  core$5.Button,
30240
30242
  {
30241
30243
  intent: secondaryIntent,
30242
- className: core$5.Classes.MINIMAL + " " + secondaryClassName,
30244
+ disabled: secondaryDisabled,
30245
+ className: (!secondaryNotMinimal ? core$5.Classes.MINIMAL : "") + " " + secondaryClassName,
30243
30246
  text: secondaryText,
30244
30247
  onClick: secondaryAction || hideModal || function() {
30245
30248
  try {
@@ -30328,18 +30331,10 @@ var _fails = function (exec) {
30328
30331
  }
30329
30332
  };
30330
30333
 
30331
- var _descriptors;
30332
- var hasRequired_descriptors;
30333
-
30334
- function require_descriptors () {
30335
- if (hasRequired_descriptors) return _descriptors;
30336
- hasRequired_descriptors = 1;
30337
- // Thank's IE8 for his funny defineProperty
30338
- _descriptors = !_fails(function () {
30339
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
30340
- });
30341
- return _descriptors;
30342
- }
30334
+ // Thank's IE8 for his funny defineProperty
30335
+ var _descriptors = !_fails(function () {
30336
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
30337
+ });
30343
30338
 
30344
30339
  var _domCreate;
30345
30340
  var hasRequired_domCreate;
@@ -30357,17 +30352,9 @@ function require_domCreate () {
30357
30352
  return _domCreate;
30358
30353
  }
30359
30354
 
30360
- var _ie8DomDefine;
30361
- var hasRequired_ie8DomDefine;
30362
-
30363
- function require_ie8DomDefine () {
30364
- if (hasRequired_ie8DomDefine) return _ie8DomDefine;
30365
- hasRequired_ie8DomDefine = 1;
30366
- _ie8DomDefine = !require_descriptors() && !_fails(function () {
30367
- return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
30368
- });
30369
- return _ie8DomDefine;
30370
- }
30355
+ var _ie8DomDefine = !_descriptors && !_fails(function () {
30356
+ return Object.defineProperty(require_domCreate()('div'), 'a', { get: function () { return 7; } }).a != 7;
30357
+ });
30371
30358
 
30372
30359
  // 7.1.1 ToPrimitive(input [, PreferredType])
30373
30360
  var isObject$d = _isObject;
@@ -30382,29 +30369,22 @@ var _toPrimitive = function (it, S) {
30382
30369
  throw TypeError("Can't convert object to primitive value");
30383
30370
  };
30384
30371
 
30385
- var hasRequired_objectDp;
30386
-
30387
- function require_objectDp () {
30388
- if (hasRequired_objectDp) return _objectDp;
30389
- hasRequired_objectDp = 1;
30390
- var anObject = _anObject;
30391
- var IE8_DOM_DEFINE = require_ie8DomDefine();
30392
- var toPrimitive = _toPrimitive;
30393
- var dP = Object.defineProperty;
30394
-
30395
- _objectDp.f = require_descriptors() ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30396
- anObject(O);
30397
- P = toPrimitive(P, true);
30398
- anObject(Attributes);
30399
- if (IE8_DOM_DEFINE) try {
30400
- return dP(O, P, Attributes);
30401
- } catch (e) { /* empty */ }
30402
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
30403
- if ('value' in Attributes) O[P] = Attributes.value;
30404
- return O;
30405
- };
30406
- return _objectDp;
30407
- }
30372
+ var anObject$3 = _anObject;
30373
+ var IE8_DOM_DEFINE$1 = _ie8DomDefine;
30374
+ var toPrimitive$2 = _toPrimitive;
30375
+ var dP$2 = Object.defineProperty;
30376
+
30377
+ _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
30378
+ anObject$3(O);
30379
+ P = toPrimitive$2(P, true);
30380
+ anObject$3(Attributes);
30381
+ if (IE8_DOM_DEFINE$1) try {
30382
+ return dP$2(O, P, Attributes);
30383
+ } catch (e) { /* empty */ }
30384
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
30385
+ if ('value' in Attributes) O[P] = Attributes.value;
30386
+ return O;
30387
+ };
30408
30388
 
30409
30389
  var _propertyDesc = function (bitmap, value) {
30410
30390
  return {
@@ -30415,10 +30395,10 @@ var _propertyDesc = function (bitmap, value) {
30415
30395
  };
30416
30396
  };
30417
30397
 
30418
- var dP$2 = require_objectDp();
30398
+ var dP$1 = _objectDp;
30419
30399
  var createDesc$3 = _propertyDesc;
30420
- var _hide = require_descriptors() ? function (object, key, value) {
30421
- return dP$2.f(object, key, createDesc$3(1, value));
30400
+ var _hide = _descriptors ? function (object, key, value) {
30401
+ return dP$1.f(object, key, createDesc$3(1, value));
30422
30402
  } : function (object, key, value) {
30423
30403
  object[key] = value;
30424
30404
  return object;
@@ -30434,7 +30414,7 @@ var core$3 = _coreExports;
30434
30414
  var ctx$1 = _ctx;
30435
30415
  var hide$2 = _hide;
30436
30416
  var has$b = _has;
30437
- var PROTOTYPE$2 = 'prototype';
30417
+ var PROTOTYPE$1 = 'prototype';
30438
30418
 
30439
30419
  var $export$8 = function (type, name, source) {
30440
30420
  var IS_FORCED = type & $export$8.F;
@@ -30444,8 +30424,8 @@ var $export$8 = function (type, name, source) {
30444
30424
  var IS_BIND = type & $export$8.B;
30445
30425
  var IS_WRAP = type & $export$8.W;
30446
30426
  var exports = IS_GLOBAL ? core$3 : core$3[name] || (core$3[name] = {});
30447
- var expProto = exports[PROTOTYPE$2];
30448
- var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$2];
30427
+ var expProto = exports[PROTOTYPE$1];
30428
+ var target = IS_GLOBAL ? global$4 : IS_STATIC ? global$4[name] : (global$4[name] || {})[PROTOTYPE$1];
30449
30429
  var key, own, out;
30450
30430
  if (IS_GLOBAL) source = name;
30451
30431
  for (key in source) {
@@ -30469,7 +30449,7 @@ var $export$8 = function (type, name, source) {
30469
30449
  } return new C(a, b, c);
30470
30450
  } return C.apply(this, arguments);
30471
30451
  };
30472
- F[PROTOTYPE$2] = C[PROTOTYPE$2];
30452
+ F[PROTOTYPE$1] = C[PROTOTYPE$1];
30473
30453
  return F;
30474
30454
  // make static versions for prototype methods
30475
30455
  })(out) : IS_PROTO && typeof out == 'function' ? ctx$1(Function.call, out) : out;
@@ -30598,14 +30578,14 @@ var _sharedKey = function (key) {
30598
30578
  var has$a = _has;
30599
30579
  var toIObject$4 = _toIobject;
30600
30580
  var arrayIndexOf = _arrayIncludes(false);
30601
- var IE_PROTO$2 = _sharedKey('IE_PROTO');
30581
+ var IE_PROTO$1 = _sharedKey('IE_PROTO');
30602
30582
 
30603
30583
  var _objectKeysInternal = function (object, names) {
30604
30584
  var O = toIObject$4(object);
30605
30585
  var i = 0;
30606
30586
  var result = [];
30607
30587
  var key;
30608
- for (key in O) if (key != IE_PROTO$2) has$a(O, key) && result.push(key);
30588
+ for (key in O) if (key != IE_PROTO$1) has$a(O, key) && result.push(key);
30609
30589
  // Don't enum bug & hidden keys
30610
30590
  while (names.length > i) if (has$a(O, key = names[i++])) {
30611
30591
  ~arrayIndexOf(result, key) || result.push(key);
@@ -30619,11 +30599,11 @@ var _enumBugKeys = (
30619
30599
  ).split(',');
30620
30600
 
30621
30601
  // 19.1.2.14 / 15.2.3.14 Object.keys(O)
30622
- var $keys$3 = _objectKeysInternal;
30623
- var enumBugKeys$1 = _enumBugKeys;
30602
+ var $keys$2 = _objectKeysInternal;
30603
+ var enumBugKeys = _enumBugKeys;
30624
30604
 
30625
30605
  var _objectKeys = Object.keys || function keys(O) {
30626
- return $keys$3(O, enumBugKeys$1);
30606
+ return $keys$2(O, enumBugKeys);
30627
30607
  };
30628
30608
 
30629
30609
  var _objectGops = {};
@@ -30632,7 +30612,14 @@ _objectGops.f = Object.getOwnPropertySymbols;
30632
30612
 
30633
30613
  var _objectPie = {};
30634
30614
 
30635
- _objectPie.f = {}.propertyIsEnumerable;
30615
+ var hasRequired_objectPie;
30616
+
30617
+ function require_objectPie () {
30618
+ if (hasRequired_objectPie) return _objectPie;
30619
+ hasRequired_objectPie = 1;
30620
+ _objectPie.f = {}.propertyIsEnumerable;
30621
+ return _objectPie;
30622
+ }
30636
30623
 
30637
30624
  // 7.1.13 ToObject(argument)
30638
30625
  var defined$1 = _defined;
@@ -30647,10 +30634,10 @@ function require_objectAssign () {
30647
30634
  if (hasRequired_objectAssign) return _objectAssign;
30648
30635
  hasRequired_objectAssign = 1;
30649
30636
  // 19.1.2.1 Object.assign(target, source, ...)
30650
- var DESCRIPTORS = require_descriptors();
30637
+ var DESCRIPTORS = _descriptors;
30651
30638
  var getKeys = _objectKeys;
30652
30639
  var gOPS = _objectGops;
30653
- var pIE = _objectPie;
30640
+ var pIE = require_objectPie();
30654
30641
  var toObject = _toObject;
30655
30642
  var IObject = _iobject;
30656
30643
  var $assign = Object.assign;
@@ -30723,19 +30710,27 @@ var _iterators = {};
30723
30710
 
30724
30711
  var _redefine = _hide;
30725
30712
 
30726
- var dP$1 = require_objectDp();
30727
- var anObject$4 = _anObject;
30728
- var getKeys$1 = _objectKeys;
30713
+ var _objectDps;
30714
+ var hasRequired_objectDps;
30729
30715
 
30730
- var _objectDps = require_descriptors() ? Object.defineProperties : function defineProperties(O, Properties) {
30731
- anObject$4(O);
30732
- var keys = getKeys$1(Properties);
30733
- var length = keys.length;
30734
- var i = 0;
30735
- var P;
30736
- while (length > i) dP$1.f(O, P = keys[i++], Properties[P]);
30737
- return O;
30738
- };
30716
+ function require_objectDps () {
30717
+ if (hasRequired_objectDps) return _objectDps;
30718
+ hasRequired_objectDps = 1;
30719
+ var dP = _objectDp;
30720
+ var anObject = _anObject;
30721
+ var getKeys = _objectKeys;
30722
+
30723
+ _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
30724
+ anObject(O);
30725
+ var keys = getKeys(Properties);
30726
+ var length = keys.length;
30727
+ var i = 0;
30728
+ var P;
30729
+ while (length > i) dP.f(O, P = keys[i++], Properties[P]);
30730
+ return O;
30731
+ };
30732
+ return _objectDps;
30733
+ }
30739
30734
 
30740
30735
  var _html;
30741
30736
  var hasRequired_html;
@@ -30748,47 +30743,55 @@ function require_html () {
30748
30743
  return _html;
30749
30744
  }
30750
30745
 
30751
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
30752
- var anObject$3 = _anObject;
30753
- var dPs = _objectDps;
30754
- var enumBugKeys = _enumBugKeys;
30755
- var IE_PROTO$1 = _sharedKey('IE_PROTO');
30756
- var Empty = function () { /* empty */ };
30757
- var PROTOTYPE$1 = 'prototype';
30746
+ var _objectCreate;
30747
+ var hasRequired_objectCreate;
30758
30748
 
30759
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
30760
- var createDict = function () {
30761
- // Thrash, waste and sodomy: IE GC bug
30762
- var iframe = require_domCreate()('iframe');
30763
- var i = enumBugKeys.length;
30764
- var lt = '<';
30765
- var gt = '>';
30766
- var iframeDocument;
30767
- iframe.style.display = 'none';
30768
- require_html().appendChild(iframe);
30769
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
30770
- // createDict = iframe.contentWindow.Object;
30771
- // html.removeChild(iframe);
30772
- iframeDocument = iframe.contentWindow.document;
30773
- iframeDocument.open();
30774
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
30775
- iframeDocument.close();
30776
- createDict = iframeDocument.F;
30777
- while (i--) delete createDict[PROTOTYPE$1][enumBugKeys[i]];
30778
- return createDict();
30779
- };
30780
-
30781
- var _objectCreate = Object.create || function create(O, Properties) {
30782
- var result;
30783
- if (O !== null) {
30784
- Empty[PROTOTYPE$1] = anObject$3(O);
30785
- result = new Empty();
30786
- Empty[PROTOTYPE$1] = null;
30787
- // add "__proto__" for Object.getPrototypeOf polyfill
30788
- result[IE_PROTO$1] = O;
30789
- } else result = createDict();
30790
- return Properties === undefined ? result : dPs(result, Properties);
30791
- };
30749
+ function require_objectCreate () {
30750
+ if (hasRequired_objectCreate) return _objectCreate;
30751
+ hasRequired_objectCreate = 1;
30752
+ // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
30753
+ var anObject = _anObject;
30754
+ var dPs = require_objectDps();
30755
+ var enumBugKeys = _enumBugKeys;
30756
+ var IE_PROTO = _sharedKey('IE_PROTO');
30757
+ var Empty = function () { /* empty */ };
30758
+ var PROTOTYPE = 'prototype';
30759
+
30760
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
30761
+ var createDict = function () {
30762
+ // Thrash, waste and sodomy: IE GC bug
30763
+ var iframe = require_domCreate()('iframe');
30764
+ var i = enumBugKeys.length;
30765
+ var lt = '<';
30766
+ var gt = '>';
30767
+ var iframeDocument;
30768
+ iframe.style.display = 'none';
30769
+ require_html().appendChild(iframe);
30770
+ iframe.src = 'javascript:'; // eslint-disable-line no-script-url
30771
+ // createDict = iframe.contentWindow.Object;
30772
+ // html.removeChild(iframe);
30773
+ iframeDocument = iframe.contentWindow.document;
30774
+ iframeDocument.open();
30775
+ iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
30776
+ iframeDocument.close();
30777
+ createDict = iframeDocument.F;
30778
+ while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
30779
+ return createDict();
30780
+ };
30781
+
30782
+ _objectCreate = Object.create || function create(O, Properties) {
30783
+ var result;
30784
+ if (O !== null) {
30785
+ Empty[PROTOTYPE] = anObject(O);
30786
+ result = new Empty();
30787
+ Empty[PROTOTYPE] = null;
30788
+ // add "__proto__" for Object.getPrototypeOf polyfill
30789
+ result[IE_PROTO] = O;
30790
+ } else result = createDict();
30791
+ return Properties === undefined ? result : dPs(result, Properties);
30792
+ };
30793
+ return _objectCreate;
30794
+ }
30792
30795
 
30793
30796
  var _wks = {exports: {}};
30794
30797
 
@@ -30806,7 +30809,7 @@ $exports.store = store;
30806
30809
 
30807
30810
  var _wksExports = _wks.exports;
30808
30811
 
30809
- var def = require_objectDp().f;
30812
+ var def = _objectDp.f;
30810
30813
  var has$9 = _has;
30811
30814
  var TAG$1 = _wksExports('toStringTag');
30812
30815
 
@@ -30814,7 +30817,7 @@ var _setToStringTag = function (it, tag, stat) {
30814
30817
  if (it && !has$9(it = stat ? it : it.prototype, TAG$1)) def(it, TAG$1, { configurable: true, value: tag });
30815
30818
  };
30816
30819
 
30817
- var create$3 = _objectCreate;
30820
+ var create$3 = require_objectCreate();
30818
30821
  var descriptor = _propertyDesc;
30819
30822
  var setToStringTag$2 = _setToStringTag;
30820
30823
  var IteratorPrototype = {};
@@ -31120,7 +31123,7 @@ var _isArrayIter = function (it) {
31120
31123
  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
31121
31124
  };
31122
31125
 
31123
- var $defineProperty$1 = require_objectDp();
31126
+ var $defineProperty$1 = _objectDp;
31124
31127
  var createDesc$2 = _propertyDesc;
31125
31128
 
31126
31129
  var _createProperty = function (object, index, value) {
@@ -31253,7 +31256,7 @@ var _default$8 = function (instance, Constructor) {
31253
31256
 
31254
31257
  var $export$3 = _export;
31255
31258
  // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
31256
- $export$3($export$3.S + $export$3.F * !require_descriptors(), 'Object', { defineProperty: require_objectDp().f });
31259
+ $export$3($export$3.S + $export$3.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
31257
31260
 
31258
31261
  var $Object$2 = _coreExports.Object;
31259
31262
  var defineProperty$9 = function defineProperty(it, key, desc) {
@@ -31301,7 +31304,7 @@ var _meta = {exports: {}};
31301
31304
  var META$1 = _uid('meta');
31302
31305
  var isObject$c = _isObject;
31303
31306
  var has$7 = _has;
31304
- var setDesc = require_objectDp().f;
31307
+ var setDesc = _objectDp.f;
31305
31308
  var id = 0;
31306
31309
  var isExtensible = Object.isExtensible || function () {
31307
31310
  return true;
@@ -31356,7 +31359,7 @@ var _metaExports = _meta.exports;
31356
31359
 
31357
31360
  var core = _coreExports;
31358
31361
  var wksExt$1 = _wksExt;
31359
- var defineProperty$7 = require_objectDp().f;
31362
+ var defineProperty$7 = _objectDp.f;
31360
31363
  var _wksDefine = function (name) {
31361
31364
  var $Symbol = core.Symbol || (core.Symbol = {} );
31362
31365
  if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$7($Symbol, name, { value: wksExt$1.f(name) });
@@ -31365,7 +31368,7 @@ var _wksDefine = function (name) {
31365
31368
  // all enumerable object keys, includes symbols
31366
31369
  var getKeys = _objectKeys;
31367
31370
  var gOPS$1 = _objectGops;
31368
- var pIE$1 = _objectPie;
31371
+ var pIE$1 = require_objectPie();
31369
31372
  var _enumKeys = function (it) {
31370
31373
  var result = getKeys(it);
31371
31374
  var getSymbols = gOPS$1.f;
@@ -31388,17 +31391,24 @@ var _objectGopnExt = {};
31388
31391
 
31389
31392
  var _objectGopn = {};
31390
31393
 
31391
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
31392
- var $keys$2 = _objectKeysInternal;
31393
- var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
31394
+ var hasRequired_objectGopn;
31394
31395
 
31395
- _objectGopn.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
31396
- return $keys$2(O, hiddenKeys);
31397
- };
31396
+ function require_objectGopn () {
31397
+ if (hasRequired_objectGopn) return _objectGopn;
31398
+ hasRequired_objectGopn = 1;
31399
+ // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
31400
+ var $keys = _objectKeysInternal;
31401
+ var hiddenKeys = _enumBugKeys.concat('length', 'prototype');
31402
+
31403
+ _objectGopn.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
31404
+ return $keys(O, hiddenKeys);
31405
+ };
31406
+ return _objectGopn;
31407
+ }
31398
31408
 
31399
31409
  // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
31400
31410
  var toIObject$2 = _toIobject;
31401
- var gOPN$1 = _objectGopn.f;
31411
+ var gOPN$1 = require_objectGopn().f;
31402
31412
  var toString$5 = {}.toString;
31403
31413
 
31404
31414
  var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
@@ -31418,15 +31428,15 @@ _objectGopnExt.f = function getOwnPropertyNames(it) {
31418
31428
 
31419
31429
  var _objectGopd = {};
31420
31430
 
31421
- var pIE = _objectPie;
31431
+ var pIE = require_objectPie();
31422
31432
  var createDesc$1 = _propertyDesc;
31423
31433
  var toIObject$1 = _toIobject;
31424
31434
  var toPrimitive$1 = _toPrimitive;
31425
31435
  var has$6 = _has;
31426
- var IE8_DOM_DEFINE = require_ie8DomDefine();
31436
+ var IE8_DOM_DEFINE = _ie8DomDefine;
31427
31437
  var gOPD$2 = Object.getOwnPropertyDescriptor;
31428
31438
 
31429
- _objectGopd.f = require_descriptors() ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
31439
+ _objectGopd.f = _descriptors ? gOPD$2 : function getOwnPropertyDescriptor(O, P) {
31430
31440
  O = toIObject$1(O);
31431
31441
  P = toPrimitive$1(P, true);
31432
31442
  if (IE8_DOM_DEFINE) try {
@@ -31438,7 +31448,7 @@ _objectGopd.f = require_descriptors() ? gOPD$2 : function getOwnPropertyDescript
31438
31448
  // ECMAScript 6 symbols shim
31439
31449
  var global$1 = _globalExports;
31440
31450
  var has$5 = _has;
31441
- var DESCRIPTORS = require_descriptors();
31451
+ var DESCRIPTORS = _descriptors;
31442
31452
  var $export$2 = _export;
31443
31453
  var redefine = _redefine;
31444
31454
  var META = _metaExports.KEY;
@@ -31457,11 +31467,11 @@ var toObject$1 = _toObject;
31457
31467
  var toIObject = _toIobject;
31458
31468
  var toPrimitive = _toPrimitive;
31459
31469
  var createDesc = _propertyDesc;
31460
- var _create$1 = _objectCreate;
31470
+ var _create$1 = require_objectCreate();
31461
31471
  var gOPNExt = _objectGopnExt;
31462
31472
  var $GOPD = _objectGopd;
31463
31473
  var $GOPS = _objectGops;
31464
- var $DP = require_objectDp();
31474
+ var $DP = _objectDp;
31465
31475
  var $keys$1 = _objectKeys;
31466
31476
  var gOPD$1 = $GOPD.f;
31467
31477
  var dP = $DP.f;
@@ -31585,8 +31595,8 @@ if (!USE_NATIVE) {
31585
31595
 
31586
31596
  $GOPD.f = $getOwnPropertyDescriptor;
31587
31597
  $DP.f = $defineProperty;
31588
- _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
31589
- _objectPie.f = $propertyIsEnumerable;
31598
+ require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
31599
+ require_objectPie().f = $propertyIsEnumerable;
31590
31600
  $GOPS.f = $getOwnPropertySymbols;
31591
31601
 
31592
31602
  if (DESCRIPTORS && !_library) {
@@ -31767,7 +31777,7 @@ var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
31767
31777
 
31768
31778
  var $export = _export;
31769
31779
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
31770
- $export($export.S, 'Object', { create: _objectCreate });
31780
+ $export($export.S, 'Object', { create: require_objectCreate() });
31771
31781
 
31772
31782
  var $Object$1 = _coreExports.Object;
31773
31783
  var create$2 = function create(P, D) {
@@ -89629,16 +89639,22 @@ class AlertWrapper extends React$1.Component {
89629
89639
  state = { isOpen: true };
89630
89640
  render() {
89631
89641
  const {
89642
+ title,
89632
89643
  handleClose,
89633
89644
  text,
89634
89645
  resolve,
89635
89646
  noCancelButton,
89636
89647
  content,
89637
89648
  className,
89649
+ thirdButtonNotMinimal,
89650
+ thirdButtonClassName,
89638
89651
  thirdButtonText,
89639
89652
  thirdButtonIntent,
89653
+ fourthButtonNotMinimal,
89654
+ fourthButtonClassName,
89640
89655
  fourthButtonText,
89641
89656
  fourthButtonIntent,
89657
+ handleSubmit,
89642
89658
  canEscapeKeyCancel,
89643
89659
  confirmButtonText = "OK",
89644
89660
  cancelButtonText = "Cancel",
@@ -89653,19 +89669,28 @@ class AlertWrapper extends React$1.Component {
89653
89669
  return /* @__PURE__ */ React$1.createElement(
89654
89670
  core$5.Dialog,
89655
89671
  {
89656
- className: `bp3-alert ${className || ""}`,
89672
+ title,
89673
+ className: (title ? "" : "bp3-alert") + ` ${className || ""}`,
89657
89674
  isOpen: this.state.isOpen,
89658
89675
  intent,
89659
89676
  cancelButtonText,
89660
89677
  onCancel: cancelButtonText ? () => doClose(false) : void 0,
89661
- onConfirm: () => doClose(true),
89678
+ onConfirm: handleSubmit ? handleSubmit((v) => doClose(v)) : () => doClose(true),
89662
89679
  ...rest,
89663
89680
  ...noCancelButton && {
89664
89681
  onCancel: void 0,
89665
89682
  cancelButtonText: void 0
89666
89683
  }
89667
89684
  },
89668
- /* @__PURE__ */ React$1.createElement("div", { className: "bp3-alert-contents", style: { padding: 5 } }, content, text && /* @__PURE__ */ React$1.createElement("div", { style: { marginBottom: 10 } }, text)),
89685
+ /* @__PURE__ */ React$1.createElement(
89686
+ "div",
89687
+ {
89688
+ className: title ? "bp3-dialog-body" : "bp3-alert-contents",
89689
+ style: { padding: 5 }
89690
+ },
89691
+ content,
89692
+ text && /* @__PURE__ */ React$1.createElement("div", { style: { marginBottom: 10 } }, text)
89693
+ ),
89669
89694
  /* @__PURE__ */ React$1.createElement(
89670
89695
  DialogFooter,
89671
89696
  {
@@ -89676,23 +89701,27 @@ class AlertWrapper extends React$1.Component {
89676
89701
  additionalButtons: thirdButtonText || fourthButtonText ? /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, !!fourthButtonText && /* @__PURE__ */ React$1.createElement(
89677
89702
  core$5.Button,
89678
89703
  {
89704
+ className: (!fourthButtonNotMinimal ? core$5.Classes.MINIMAL : "") + " " + fourthButtonClassName,
89679
89705
  intent: fourthButtonIntent,
89680
89706
  text: fourthButtonText,
89681
- onClick: () => {
89682
- doClose("fourthButtonClicked");
89683
- }
89707
+ onClick: handleSubmit ? handleSubmit(
89708
+ (v) => doClose({ ...v, fourthButtonClicked: true })
89709
+ ) : () => doClose("fourthButtonClicked")
89684
89710
  }
89685
89711
  ), !!thirdButtonText && /* @__PURE__ */ React$1.createElement(
89686
89712
  core$5.Button,
89687
89713
  {
89714
+ className: (!thirdButtonNotMinimal ? core$5.Classes.MINIMAL : "") + " " + thirdButtonClassName,
89688
89715
  intent: thirdButtonIntent,
89689
89716
  text: thirdButtonText,
89690
- onClick: () => {
89717
+ onClick: handleSubmit ? handleSubmit(
89718
+ (v) => doClose({ ...v, thirdButtonClicked: true })
89719
+ ) : () => {
89691
89720
  doClose("thirdButtonClicked");
89692
89721
  }
89693
89722
  }
89694
89723
  )) : void 0,
89695
- containerClassname: "bp3-alert-footer",
89724
+ containerClassname: title ? "" : "bp3-alert-footer",
89696
89725
  backText: noCancelButton ? "" : cancelButtonText,
89697
89726
  text: confirmButtonText,
89698
89727
  intent
@@ -107046,6 +107075,7 @@ function showDialogOnDocBody(DialogComp, options = {}) {
107046
107075
  const noop = () => void 0;
107047
107076
 
107048
107077
  exports.AdvancedOptions = AdvancedOptions;
107078
+ exports.AlertWrapper = AlertWrapper;
107049
107079
  exports.AssignDefaultsModeContext = AssignDefaultsModeContext;
107050
107080
  exports.AsyncValidateFieldSpinner = AsyncValidateFieldSpinner;
107051
107081
  exports.BPSelect = BPSelect;