@bitrise/bitkit-v2 0.3.47 → 0.3.48

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/dist/bitkit-v2.js CHANGED
@@ -380,7 +380,7 @@ function nr() {
380
380
  function lr() {
381
381
  return he = Ee > 0 ? ge(bt, --Ee) : 0, xt--, he === 10 && (xt = 1, A1--), he;
382
382
  }
383
- function Ie() {
383
+ function be() {
384
384
  return he = Ee < Tl ? ge(bt, Ee++) : 0, xt++, he === 10 && (xt = 1, A1++), he;
385
385
  }
386
386
  function Le() {
@@ -441,16 +441,16 @@ function c1(e) {
441
441
  }
442
442
  function or(e) {
443
443
  for (; (he = Le()) && he < 33; )
444
- Ie();
444
+ be();
445
445
  return qt(e) > 2 || qt(he) > 3 ? "" : " ";
446
446
  }
447
447
  function rr(e, t) {
448
- for (; --t && Ie() && !(he < 48 || he > 102 || he > 57 && he < 65 || he > 70 && he < 97); )
448
+ for (; --t && be() && !(he < 48 || he > 102 || he > 57 && he < 65 || he > 70 && he < 97); )
449
449
  ;
450
- return Ut(e, s1() + (t < 6 && Le() == 32 && Ie() == 32));
450
+ return Ut(e, s1() + (t < 6 && Le() == 32 && be() == 32));
451
451
  }
452
452
  function o0(e) {
453
- for (; Ie(); )
453
+ for (; be(); )
454
454
  switch (he) {
455
455
  // ] ) " '
456
456
  case e:
@@ -466,20 +466,20 @@ function o0(e) {
466
466
  break;
467
467
  // \
468
468
  case 92:
469
- Ie();
469
+ be();
470
470
  break;
471
471
  }
472
472
  return Ee;
473
473
  }
474
474
  function ir(e, t) {
475
- for (; Ie() && e + he !== 57; )
475
+ for (; be() && e + he !== 57; )
476
476
  if (e + he === 84 && Le() === 47)
477
477
  break;
478
- return "/*" + Ut(t, Ee - 1) + "*" + z1(e === 47 ? e : Ie());
478
+ return "/*" + Ut(t, Ee - 1) + "*" + z1(e === 47 ? e : be());
479
479
  }
480
480
  function ar(e) {
481
481
  for (; !qt(Le()); )
482
- Ie();
482
+ be();
483
483
  return Ut(e, Ee);
484
484
  }
485
485
  function sr(e) {
@@ -487,7 +487,7 @@ function sr(e) {
487
487
  }
488
488
  function h1(e, t, l, o, i, a, s, d, u) {
489
489
  for (var m = 0, g = 0, f = s, v = 0, p = 0, E = 0, w = 1, C = 1, I = 1, b = 0, x = "", M = i, y = a, A = o, H = x; C; )
490
- switch (E = b, b = Ie()) {
490
+ switch (E = b, b = be()) {
491
491
  // (
492
492
  case 40:
493
493
  if (E != 108 && ge(H, f - 1) == 58) {
@@ -516,7 +516,7 @@ function h1(e, t, l, o, i, a, s, d, u) {
516
516
  switch (Le()) {
517
517
  case 42:
518
518
  case 47:
519
- Zt(cr(ir(Ie(), s1()), t, l), u);
519
+ Zt(cr(ir(be(), s1()), t, l), u);
520
520
  break;
521
521
  default:
522
522
  H += "/";
@@ -582,7 +582,7 @@ function h1(e, t, l, o, i, a, s, d, u) {
582
582
  break;
583
583
  // @
584
584
  case 64:
585
- Le() === 45 && (H += c1(Ie())), v = Le(), g = f = je(x = H += ar(s1())), b++;
585
+ Le() === 45 && (H += c1(be())), v = Le(), g = f = je(x = H += ar(s1())), b++;
586
586
  break;
587
587
  // -
588
588
  case 45:
@@ -639,7 +639,7 @@ function ur(e) {
639
639
  }
640
640
  var gr = function(t, l, o) {
641
641
  for (var i = 0, a = 0; i = a, a = Le(), i === 38 && a === 12 && (l[o] = 1), !qt(a); )
642
- Ie();
642
+ be();
643
643
  return Ut(t, Ee);
644
644
  }, mr = function(t, l) {
645
645
  var o = -1, i = 44;
@@ -660,7 +660,7 @@ var gr = function(t, l, o) {
660
660
  default:
661
661
  t[o] += z1(i);
662
662
  }
663
- while (i = Ie());
663
+ while (i = be());
664
664
  return t;
665
665
  }, vr = function(t, l) {
666
666
  return Fl(mr(Pl(t), l));
@@ -3444,7 +3444,7 @@ function j1() {
3444
3444
  function zt(e) {
3445
3445
  return S2(e) ? (e.nodeName || "").toLowerCase() : "#document";
3446
3446
  }
3447
- function be(e) {
3447
+ function Me(e) {
3448
3448
  var t;
3449
3449
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
3450
3450
  }
@@ -3453,16 +3453,16 @@ function _e(e) {
3453
3453
  return (t = (S2(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
3454
3454
  }
3455
3455
  function S2(e) {
3456
- return j1() ? e instanceof Node || e instanceof be(e).Node : !1;
3456
+ return j1() ? e instanceof Node || e instanceof Me(e).Node : !1;
3457
3457
  }
3458
3458
  function Ae(e) {
3459
- return j1() ? e instanceof Element || e instanceof be(e).Element : !1;
3459
+ return j1() ? e instanceof Element || e instanceof Me(e).Element : !1;
3460
3460
  }
3461
3461
  function Pe(e) {
3462
- return j1() ? e instanceof HTMLElement || e instanceof be(e).HTMLElement : !1;
3462
+ return j1() ? e instanceof HTMLElement || e instanceof Me(e).HTMLElement : !1;
3463
3463
  }
3464
3464
  function Dn(e) {
3465
- return !j1() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof be(e).ShadowRoot;
3465
+ return !j1() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Me(e).ShadowRoot;
3466
3466
  }
3467
3467
  const ws = /* @__PURE__ */ new Set(["inline", "contents"]);
3468
3468
  function Kt(e) {
@@ -3512,7 +3512,7 @@ function It(e) {
3512
3512
  return Ss.has(zt(e));
3513
3513
  }
3514
3514
  function Ve(e) {
3515
- return be(e).getComputedStyle(e);
3515
+ return Me(e).getComputedStyle(e);
3516
3516
  }
3517
3517
  function k1(e) {
3518
3518
  return Ae(e) ? {
@@ -3542,7 +3542,7 @@ function R2(e) {
3542
3542
  function Gt(e, t, l) {
3543
3543
  var o;
3544
3544
  t === void 0 && (t = []), l === void 0 && (l = !0);
3545
- const i = R2(e), a = i === ((o = e.ownerDocument) == null ? void 0 : o.body), s = be(i);
3545
+ const i = R2(e), a = i === ((o = e.ownerDocument) == null ? void 0 : o.body), s = Me(i);
3546
3546
  if (a) {
3547
3547
  const d = d0(s);
3548
3548
  return t.concat(s, s.visualViewport || [], Kt(i) ? i : [], d && l ? Gt(d) : []);
@@ -3582,14 +3582,14 @@ function Et(e) {
3582
3582
  }
3583
3583
  const Rs = /* @__PURE__ */ Be(0);
3584
3584
  function A2(e) {
3585
- const t = be(e);
3585
+ const t = Me(e);
3586
3586
  return !Z0() || !t.visualViewport ? Rs : {
3587
3587
  x: t.visualViewport.offsetLeft,
3588
3588
  y: t.visualViewport.offsetTop
3589
3589
  };
3590
3590
  }
3591
3591
  function zs(e, t, l) {
3592
- return t === void 0 && (t = !1), !l || t && l !== be(e) ? !1 : t;
3592
+ return t === void 0 && (t = !1), !l || t && l !== Me(e) ? !1 : t;
3593
3593
  }
3594
3594
  function it(e, t, l, o) {
3595
3595
  t === void 0 && (t = !1), l === void 0 && (l = !1);
@@ -3599,11 +3599,11 @@ function it(e, t, l, o) {
3599
3599
  const d = zs(a, l, o) ? A2(a) : Be(0);
3600
3600
  let u = (i.left + d.x) / s.x, m = (i.top + d.y) / s.y, g = i.width / s.x, f = i.height / s.y;
3601
3601
  if (a) {
3602
- const v = be(a), p = o && Ae(o) ? be(o) : o;
3602
+ const v = Me(a), p = o && Ae(o) ? Me(o) : o;
3603
3603
  let E = v, w = d0(E);
3604
3604
  for (; w && o && p !== E; ) {
3605
3605
  const C = Et(w), I = w.getBoundingClientRect(), b = Ve(w), x = I.left + (w.clientLeft + parseFloat(b.paddingLeft)) * C.x, M = I.top + (w.clientTop + parseFloat(b.paddingTop)) * C.y;
3606
- u *= C.x, m *= C.y, g *= C.x, f *= C.y, u += x, m += M, E = be(w), w = d0(E);
3606
+ u *= C.x, m *= C.y, g *= C.x, f *= C.y, u += x, m += M, E = Me(w), w = d0(E);
3607
3607
  }
3608
3608
  }
3609
3609
  return S1({
@@ -3667,7 +3667,7 @@ function Os(e) {
3667
3667
  }
3668
3668
  const qn = 25;
3669
3669
  function js(e, t) {
3670
- const l = be(e), o = _e(e), i = l.visualViewport;
3670
+ const l = Me(e), o = _e(e), i = l.visualViewport;
3671
3671
  let a = o.clientWidth, s = o.clientHeight, d = 0, u = 0;
3672
3672
  if (i) {
3673
3673
  a = i.width, s = i.height;
@@ -3796,7 +3796,7 @@ function Wn(e, t) {
3796
3796
  return _e(e) === l && (l = l.ownerDocument.body), l;
3797
3797
  }
3798
3798
  function j2(e, t) {
3799
- const l = be(e);
3799
+ const l = Me(e);
3800
3800
  if (H1(e))
3801
3801
  return l;
3802
3802
  if (!Pe(e)) {
@@ -4320,7 +4320,7 @@ function yc(e, t) {
4320
4320
  };
4321
4321
  return We(St(e), "keydown", l, { capture: !0 });
4322
4322
  }
4323
- var Zn = "layer:request-dismiss", Se = {
4323
+ var Zn = "layer:request-dismiss", Re = {
4324
4324
  layers: [],
4325
4325
  branches: [],
4326
4326
  count() {
@@ -4374,7 +4374,7 @@ var Zn = "layer:request-dismiss", Se = {
4374
4374
  },
4375
4375
  remove(e) {
4376
4376
  const t = this.indexOf(e);
4377
- t < 0 || (t < this.count() - 1 && this.getNestedLayers(e).forEach((o) => Se.dismiss(o.node, e)), this.layers.splice(t, 1), this.syncLayers());
4377
+ t < 0 || (t < this.count() - 1 && this.getNestedLayers(e).forEach((o) => Re.dismiss(o.node, e)), this.layers.splice(t, 1), this.syncLayers());
4378
4378
  },
4379
4379
  removeBranch(e) {
4380
4380
  const t = this.branches.indexOf(e);
@@ -4416,8 +4416,8 @@ function bc(e, t, l) {
4416
4416
  }
4417
4417
  var el;
4418
4418
  function tl() {
4419
- Se.layers.forEach(({ node: e }) => {
4420
- e.style.pointerEvents = Se.isBelowPointerBlockingLayer(e) ? "none" : "auto";
4419
+ Re.layers.forEach(({ node: e }) => {
4420
+ e.style.pointerEvents = Re.isBelowPointerBlockingLayer(e) ? "none" : "auto";
4421
4421
  });
4422
4422
  }
4423
4423
  function Mc(e) {
@@ -4425,7 +4425,7 @@ function Mc(e) {
4425
4425
  }
4426
4426
  function Sc(e, t) {
4427
4427
  const l = St(e), o = [];
4428
- return Se.hasPointerBlockingLayer() && !l.body.hasAttribute("data-inert") && (el = document.body.style.pointerEvents, queueMicrotask(() => {
4428
+ return Re.hasPointerBlockingLayer() && !l.body.hasAttribute("data-inert") && (el = document.body.style.pointerEvents, queueMicrotask(() => {
4429
4429
  l.body.style.pointerEvents = "none", l.body.setAttribute("data-inert", "");
4430
4430
  })), t?.forEach((i) => {
4431
4431
  const [a, s] = Pa(
@@ -4437,7 +4437,7 @@ function Sc(e, t) {
4437
4437
  );
4438
4438
  a.then((d) => o.push(La(d, { pointerEvents: "auto" }))), o.push(s);
4439
4439
  }), () => {
4440
- Se.hasPointerBlockingLayer() || (queueMicrotask(() => {
4440
+ Re.hasPointerBlockingLayer() || (queueMicrotask(() => {
4441
4441
  l.body.style.pointerEvents = el, l.body.removeAttribute("data-inert"), l.body.style.length === 0 && l.body.removeAttribute("style");
4442
4442
  }), o.forEach((i) => i()));
4443
4443
  };
@@ -4451,22 +4451,22 @@ function Rc(e, t) {
4451
4451
  if (!e)
4452
4452
  return;
4453
4453
  const { onDismiss: o, onRequestDismiss: i, pointerBlocking: a, exclude: s, debug: d, type: u = "dialog" } = t, m = { dismiss: o, node: e, type: u, pointerBlocking: a, requestDismiss: i };
4454
- Se.add(m), tl();
4454
+ Re.add(m), tl();
4455
4455
  function g(w) {
4456
4456
  const C = yt(w.detail.originalEvent);
4457
- Se.isBelowPointerBlockingLayer(e) || Se.isInBranch(C) || (t.onPointerDownOutside?.(w), t.onInteractOutside?.(w), !w.defaultPrevented && (d && console.log("onPointerDownOutside:", w.detail.originalEvent), o?.()));
4457
+ Re.isBelowPointerBlockingLayer(e) || Re.isInBranch(C) || (t.onPointerDownOutside?.(w), t.onInteractOutside?.(w), !w.defaultPrevented && (d && console.log("onPointerDownOutside:", w.detail.originalEvent), o?.()));
4458
4458
  }
4459
4459
  function f(w) {
4460
4460
  const C = yt(w.detail.originalEvent);
4461
- Se.isInBranch(C) || (t.onFocusOutside?.(w), t.onInteractOutside?.(w), !w.defaultPrevented && (d && console.log("onFocusOutside:", w.detail.originalEvent), o?.()));
4461
+ Re.isInBranch(C) || (t.onFocusOutside?.(w), t.onInteractOutside?.(w), !w.defaultPrevented && (d && console.log("onFocusOutside:", w.detail.originalEvent), o?.()));
4462
4462
  }
4463
4463
  function v(w) {
4464
- Se.isTopMost(e) && (t.onEscapeKeyDown?.(w), !w.defaultPrevented && o && (w.preventDefault(), o()));
4464
+ Re.isTopMost(e) && (t.onEscapeKeyDown?.(w), !w.defaultPrevented && o && (w.preventDefault(), o()));
4465
4465
  }
4466
4466
  function p(w) {
4467
4467
  if (!e) return !1;
4468
4468
  const C = typeof s == "function" ? s() : s, I = Array.isArray(C) ? C : [C], b = t.persistentElements?.map((x) => x()).filter(ve);
4469
- return b && I.push(...b), I.some((x) => rt(x, w)) || Se.isInNestedLayer(e, w);
4469
+ return b && I.push(...b), I.some((x) => rt(x, w)) || Re.isInNestedLayer(e, w);
4470
4470
  }
4471
4471
  const E = [
4472
4472
  a ? Sc(e, t.persistentElements) : void 0,
@@ -4474,7 +4474,7 @@ function Rc(e, t) {
4474
4474
  Cc(e, { exclude: p, onFocusOutside: f, onPointerDownOutside: g, defer: t.defer })
4475
4475
  ];
4476
4476
  return () => {
4477
- Se.remove(e), tl(), Mc(e), E.forEach((w) => w?.());
4477
+ Re.remove(e), tl(), Mc(e), E.forEach((w) => w?.());
4478
4478
  };
4479
4479
  }
4480
4480
  function N1(e, t) {
@@ -6168,13 +6168,13 @@ function $5(e, t) {
6168
6168
  const l = Oe(e), o = new l.CustomEvent(q5, { detail: { value: t } });
6169
6169
  e.dispatchEvent(o);
6170
6170
  }
6171
- var { not: Me, and: ht, or: W5 } = Xt();
6172
- Me("isSubmenu"), W5("isOpenAutoFocusEvent", "isArrowDownEvent"), ht(Me("isTriggerItem"), "isOpenControlled"), Me("isTriggerItem"), ht("isSubmenu", "isOpenControlled"), Me("isPointerSuspended"), ht(Me("isPointerSuspended"), Me("isTriggerItem")), ht(
6173
- Me("isTriggerItemHighlighted"),
6174
- Me("isHighlightedItemEditable"),
6171
+ var { not: Se, and: ht, or: W5 } = Xt();
6172
+ Se("isSubmenu"), W5("isOpenAutoFocusEvent", "isArrowDownEvent"), ht(Se("isTriggerItem"), "isOpenControlled"), Se("isTriggerItem"), ht("isSubmenu", "isOpenControlled"), Se("isPointerSuspended"), ht(Se("isPointerSuspended"), Se("isTriggerItem")), ht(
6173
+ Se("isTriggerItemHighlighted"),
6174
+ Se("isHighlightedItemEditable"),
6175
6175
  "closeOnSelect",
6176
6176
  "isOpenControlled"
6177
- ), ht(Me("isTriggerItemHighlighted"), Me("isHighlightedItemEditable"), "closeOnSelect"), ht(Me("isTriggerItemHighlighted"), Me("isHighlightedItemEditable"));
6177
+ ), ht(Se("isTriggerItemHighlighted"), Se("isHighlightedItemEditable"), "closeOnSelect"), ht(Se("isTriggerItemHighlighted"), Se("isHighlightedItemEditable"));
6178
6178
  function dl(e) {
6179
6179
  let t = e.parent;
6180
6180
  for (; t && t.context.get("isSubmenu"); )
@@ -10449,7 +10449,7 @@ function rn(e, t = "") {
10449
10449
  a.value ? o[s] = a : Object.assign(o, rn(a, s));
10450
10450
  }), { ...o, ...e };
10451
10451
  }
10452
- const Re = (e) => {
10452
+ const Ie = (e) => {
10453
10453
  const t = typeof e == "string" ? parseInt(e, 10) : e;
10454
10454
  return Number.isNaN(t) ? e : `${t / 16}rem`;
10455
10455
  }, iM = [
@@ -10485,7 +10485,7 @@ const Re = (e) => {
10485
10485
  backgroundColor: `{colors.button.${t}.bg}`,
10486
10486
  borderColor: l,
10487
10487
  borderStyle: "solid",
10488
- borderWidth: Re(1),
10488
+ borderWidth: Ie(1),
10489
10489
  color: `{colors.button.${t}.fg}`
10490
10490
  }, e;
10491
10491
  },
@@ -10514,21 +10514,21 @@ const Re = (e) => {
10514
10514
  sm: {
10515
10515
  minWidth: "32",
10516
10516
  height: "32",
10517
- paddingInline: Re(7),
10518
- paddingBlock: Re(5),
10517
+ paddingInline: Ie(7),
10518
+ paddingBlock: Ie(5),
10519
10519
  textStyle: "comp/button/sm"
10520
10520
  },
10521
10521
  md: {
10522
10522
  minWidth: "40",
10523
10523
  height: "40",
10524
- paddingInline: Re(11),
10525
- paddingBlock: Re(7),
10524
+ paddingInline: Ie(11),
10525
+ paddingBlock: Ie(7),
10526
10526
  textStyle: "comp/button/md"
10527
10527
  },
10528
10528
  lg: {
10529
10529
  minWidth: "48",
10530
10530
  height: "48",
10531
- padding: Re(11),
10531
+ padding: Ie(11),
10532
10532
  textStyle: "comp/button/lg"
10533
10533
  }
10534
10534
  }
@@ -10542,7 +10542,7 @@ const Re = (e) => {
10542
10542
  background: "background/primary",
10543
10543
  borderColor: "border/regular",
10544
10544
  borderRadius: "4",
10545
- borderWidth: Re(1),
10545
+ borderWidth: Ie(1),
10546
10546
  color: "input/text/inputValue",
10547
10547
  textStyle: "body/lg/regular",
10548
10548
  width: "100%",
@@ -10555,7 +10555,8 @@ const Re = (e) => {
10555
10555
  borderColor: "border/hover"
10556
10556
  },
10557
10557
  _invalid: {
10558
- borderColor: "border/error"
10558
+ borderColor: "border/error",
10559
+ paddingInlineEnd: Ie(38)
10559
10560
  },
10560
10561
  _disabled: {
10561
10562
  _hover: {
@@ -10577,14 +10578,16 @@ const Re = (e) => {
10577
10578
  }, jo = {
10578
10579
  size: {
10579
10580
  md: {
10580
- paddingInline: Re(11),
10581
- paddingBlock: Re(7),
10582
- textStyle: "body/md/regular"
10581
+ paddingInline: Ie(11),
10582
+ paddingBlock: Ie(9),
10583
+ textStyle: "body/md/regular",
10584
+ "--input-height": "40"
10583
10585
  },
10584
10586
  lg: {
10585
- paddingInline: Re(15),
10586
- paddingBlock: Re(11),
10587
- textStyle: "body/lg/regular"
10587
+ paddingInline: Ie(15),
10588
+ paddingBlock: Ie(11),
10589
+ textStyle: "body/lg/regular",
10590
+ "--input-height": "48"
10588
10591
  }
10589
10592
  }
10590
10593
  }, Ho = {
@@ -10652,7 +10655,7 @@ const Re = (e) => {
10652
10655
  display: "inline-block",
10653
10656
  borderColor: "var(--spinner-color)",
10654
10657
  borderStyle: "solid",
10655
- borderWidth: Re(2),
10658
+ borderWidth: Ie(2),
10656
10659
  borderRadius: "100%",
10657
10660
  width: "var(--spinner-size)",
10658
10661
  height: "var(--spinner-size)",