@gnome-ui/react 1.22.0 → 1.23.1

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/index.js CHANGED
@@ -1507,18 +1507,18 @@ function Ht({ position: e = "bottom", children: n, container: r, className: i, .
1507
1507
  }
1508
1508
  //#endregion
1509
1509
  //#region src/components/Dialog/Dialog.module.css
1510
- var Ut = "_backdrop_zx0yn_3", Wt = "_dialog_zx0yn_26", Gt = "_title_zx0yn_56", Kt = "_body_zx0yn_70", qt = "_footer_zx0yn_85", Jt = "_btn_zx0yn_92", Yt = "_dialogAbout_zx0yn_155", Xt = "_aboutHeader_zx0yn_162", Zt = "_aboutIcon_zx0yn_171", Qt = "_aboutAppName_zx0yn_180", $t = "_aboutVersion_zx0yn_187", en = "_aboutTabBar_zx0yn_194", tn = "_aboutTabBtn_zx0yn_201", nn = "_aboutTabBtnActive_zx0yn_220", rn = "_aboutTabContent_zx0yn_233", an = "_aboutSection_zx0yn_238", on = "_aboutComments_zx0yn_243", sn = "_aboutInfoList_zx0yn_252", cn = "_aboutInfoLabel_zx0yn_259", ln = "_aboutInfoValue_zx0yn_267", un = "_aboutLink_zx0yn_275", dn = "_aboutCreditGroup_zx0yn_283", fn = "_aboutCreditTitle_zx0yn_287", pn = "_aboutCreditList_zx0yn_297", mn = "_aboutCreditItem_zx0yn_306", hn = "_aboutCopyright_zx0yn_312", gn = "_aboutLicenseType_zx0yn_319", _n = "_aboutLicenseText_zx0yn_326", H = {
1510
+ var Ut = "_backdrop_bx9wz_3", Wt = "_dialog_bx9wz_26", Gt = "_title_bx9wz_56", Kt = "_body_bx9wz_68", qt = "_footer_bx9wz_89", Jt = "_btn_bx9wz_96", Yt = "_dialogAbout_bx9wz_159", Xt = "_aboutHeader_bx9wz_166", Zt = "_aboutIcon_bx9wz_175", Qt = "_aboutAppName_bx9wz_184", $t = "_aboutVersion_bx9wz_191", en = "_aboutTabBar_bx9wz_198", tn = "_aboutTabBtn_bx9wz_205", nn = "_aboutTabBtnActive_bx9wz_224", rn = "_aboutTabContent_bx9wz_237", an = "_aboutSection_bx9wz_242", on = "_aboutComments_bx9wz_247", sn = "_aboutInfoList_bx9wz_256", cn = "_aboutInfoLabel_bx9wz_263", ln = "_aboutInfoValue_bx9wz_271", un = "_aboutLink_bx9wz_279", dn = "_aboutCreditGroup_bx9wz_287", fn = "_aboutCreditTitle_bx9wz_291", pn = "_aboutCreditList_bx9wz_301", mn = "_aboutCreditItem_bx9wz_310", hn = "_aboutCopyright_bx9wz_316", gn = "_aboutLicenseType_bx9wz_323", _n = "_aboutLicenseText_bx9wz_330", H = {
1511
1511
  backdrop: Ut,
1512
- "backdrop-in": "_backdrop-in_zx0yn_1",
1512
+ "backdrop-in": "_backdrop-in_bx9wz_1",
1513
1513
  dialog: Wt,
1514
- "dialog-in": "_dialog-in_zx0yn_1",
1514
+ "dialog-in": "_dialog-in_bx9wz_1",
1515
1515
  title: Gt,
1516
1516
  body: Kt,
1517
1517
  footer: qt,
1518
1518
  btn: Jt,
1519
- "btn-default": "_btn-default_zx0yn_140",
1520
- "btn-suggested": "_btn-suggested_zx0yn_144",
1521
- "btn-destructive": "_btn-destructive_zx0yn_149",
1519
+ "btn-default": "_btn-default_bx9wz_144",
1520
+ "btn-suggested": "_btn-suggested_bx9wz_148",
1521
+ "btn-destructive": "_btn-destructive_bx9wz_153",
1522
1522
  dialogAbout: Yt,
1523
1523
  aboutHeader: Xt,
1524
1524
  aboutIcon: Zt,
@@ -2304,7 +2304,25 @@ function er({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPo
2304
2304
  !h || !i || (g.current?.querySelector("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])"))?.focus();
2305
2305
  }, [h, i]);
2306
2306
  let v = o === "end";
2307
- return /* @__PURE__ */ n("div", {
2307
+ return l(() => {
2308
+ if (!h || !i) return;
2309
+ let e = g.current;
2310
+ if (!e) return;
2311
+ let t = 0, n = (e) => {
2312
+ t = e.touches[0].clientX;
2313
+ }, r = (e) => {
2314
+ let n = e.changedTouches[0].clientX - t;
2315
+ (v ? n > 80 : n < -80) && a?.();
2316
+ };
2317
+ return e.addEventListener("touchstart", n, { passive: !0 }), e.addEventListener("touchend", r, { passive: !0 }), () => {
2318
+ e.removeEventListener("touchstart", n), e.removeEventListener("touchend", r);
2319
+ };
2320
+ }, [
2321
+ h,
2322
+ i,
2323
+ v,
2324
+ a
2325
+ ]), /* @__PURE__ */ n("div", {
2308
2326
  className: [
2309
2327
  K.root,
2310
2328
  h ? K.narrow : K.wide,