@keeper-security/keeper-js-ui 0.9.0 → 0.10.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/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.10.1](https://github.com/Keeper-Security/keeper-js-ui/compare/v0.10.0...v0.10.1) (2025-04-24)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **Toast:** account for LTR/RTL absolute positioning ([#221](https://github.com/Keeper-Security/keeper-js-ui/issues/221)) ([4a0a707](https://github.com/Keeper-Security/keeper-js-ui/commit/4a0a707b35d5eb93782573f9fb7179b464304945))
9
+
10
+ ## [0.10.0](https://github.com/Keeper-Security/keeper-js-ui/compare/v0.9.0...v0.10.0) (2025-04-24)
11
+
12
+
13
+ ### Features
14
+
15
+ * **Toast:** hide close button until hover ([#217](https://github.com/Keeper-Security/keeper-js-ui/issues/217)) ([13428c0](https://github.com/Keeper-Security/keeper-js-ui/commit/13428c0835b44280bdd4878941f11a16eef1068c))
16
+ * **Toast:** pass className through useToast ([#218](https://github.com/Keeper-Security/keeper-js-ui/issues/218)) ([2ff1016](https://github.com/Keeper-Security/keeper-js-ui/commit/2ff10165b2e07e4f7945b6ba60fa4a9a61912c0a))
17
+ * **Toast:** style tweaks ([#219](https://github.com/Keeper-Security/keeper-js-ui/issues/219)) ([4694f0b](https://github.com/Keeper-Security/keeper-js-ui/commit/4694f0b8f2bd41ae902cdaebeb0115ba4ecd5395))
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **Toast:** create smaller breakpoint for centering ([#216](https://github.com/Keeper-Security/keeper-js-ui/issues/216)) ([e3acdcd](https://github.com/Keeper-Security/keeper-js-ui/commit/e3acdcdaf31292c8298fd5b85a33de370bd6458e))
23
+
3
24
  ## [0.9.0](https://github.com/Keeper-Security/keeper-js-ui/compare/v0.8.0...v0.9.0) (2025-04-22)
4
25
 
5
26
 
package/dist/index.es.js CHANGED
@@ -10554,7 +10554,7 @@ const Lw = Tw, Ql = i.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
10554
10554
  "ksjsui-fixed ksjsui-bottom-0 ksjsui-end-0 ksjsui-z-[100] ksjsui-flex ksjsui-max-h-screen ksjsui-w-full ksjsui-flex-col ksjsui-p-4",
10555
10555
  "empty:ksjsui-p-0",
10556
10556
  "empty:focus:ksjsui-outline-none",
10557
- "sm:ksjsui-max-w-[calc(theme(spacing.80)_+_theme(spacing.8))]"
10557
+ "xs:ksjsui-max-w-[calc(theme(spacing.80)_+_theme(spacing.8))]"
10558
10558
  ],
10559
10559
  e
10560
10560
  ),
@@ -10563,15 +10563,15 @@ const Lw = Tw, Ql = i.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
10563
10563
  ));
10564
10564
  Ql.displayName = Vl.displayName;
10565
10565
  const $w = ut([
10566
- "ksjsui-group ksjsui-pointer-events-auto ksjsui-relative ksjsui-flex ksjsui-w-full ksjsui-items-center ksjsui-justify-between ksjsui-space-x-2 ksjsui-overflow-hidden ksjsui-rounded-lg ksjsui-border ksjsui-border-transparent ksjsui-bg-toast ksjsui-p-3 ksjsui-text-toast-foreground ksjsui-shadow-lg ksjsui-transition-all",
10566
+ "ksjsui-group ksjsui-pointer-events-auto ksjsui-relative ksjsui-flex ksjsui-w-full ksjsui-items-center ksjsui-justify-between ksjsui-space-x-2 ksjsui-overflow-hidden ksjsui-rounded-lg ksjsui-border ksjsui-border-transparent ksjsui-bg-toast ksjsui-p-3 ksjsui-text-toast-foreground ksjsui-shadow-lg ksjsui-outline-ring ksjsui-transition-all",
10567
10567
  "rtl:ksjsui-space-x-reverse",
10568
+ "focus-visible:ksjsui-outline",
10568
10569
  "data-[swipe=cancel]:ksjsui-translate-x-0",
10569
10570
  "data-[swipe=end]:ksjsui-translate-x-[var(--radix-toast-swipe-end-x)]",
10570
10571
  "data-[swipe=move]:ksjsui-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:ksjsui-transition-none",
10571
10572
  "data-[state=open]:ksjsui-animate-in data-[state=open]:ksjsui-slide-in-from-bottom-full",
10572
10573
  "data-[state=closed]:ksjsui-animate-out data-[state=closed]:ksjsui-fade-out-80",
10573
- "ltr:data-[state=closed]:ksjsui-slide-out-to-right-full",
10574
- "rtl:data-[state=closed]:ksjsui-slide-out-to-left-full"
10574
+ "data-[state=closed]:ksjsui-slide-out-to-bottom-full"
10575
10575
  ]), Jl = i.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
10576
10576
  Kl,
10577
10577
  {
@@ -10603,14 +10603,17 @@ const eu = i.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
10603
10603
  ref: n,
10604
10604
  className: D(
10605
10605
  [
10606
- "ksjsui-self-start ksjsui-rounded-sm ksjsui-text-current ksjsui-transition-opacity",
10607
- "focus:ksjsui-outline-none focus:ksjsui-ring-2"
10606
+ "ksjsui-text-current/50 ksjsui-absolute ksjsui-top-1 ksjsui-self-start ksjsui-rounded-sm ksjsui-p-1 ksjsui-opacity-0 ksjsui-transition-opacity",
10607
+ "ltr:ksjsui-right-1 rtl:ksjsui-left-1",
10608
+ "focus-visible:ksjsui-opacity-100 focus-visible:ksjsui-outline focus-visible:ksjsui-outline-ring",
10609
+ "group-hover:ksjsui-opacity-100",
10610
+ "group-focus-visible:ksjsui-opacity-100"
10608
10611
  ],
10609
10612
  e
10610
10613
  ),
10611
10614
  "toast-close": "",
10612
10615
  ...t,
10613
- children: /* @__PURE__ */ m(yi, { "aria-hidden": !0, className: "ksjsui-size-6" })
10616
+ children: /* @__PURE__ */ m(yi, { "aria-hidden": !0, className: "ksjsui-size-4" })
10614
10617
  }
10615
10618
  ));
10616
10619
  eu.displayName = ql.displayName;
@@ -10637,27 +10640,36 @@ const cy = () => {
10637
10640
  return /* @__PURE__ */ Q(Lw, { children: [
10638
10641
  e.map(function({
10639
10642
  id: n,
10640
- title: o,
10641
- description: r,
10642
- action: s,
10643
- icon: c,
10644
- dismissButtonLabel: a,
10645
- ...u
10643
+ className: o,
10644
+ title: r,
10645
+ description: s,
10646
+ action: c,
10647
+ icon: a,
10648
+ dismissButtonLabel: u,
10649
+ ...l
10646
10650
  }) {
10647
- return /* @__PURE__ */ Q(Jl, { ...u, className: "ksjsui-flex ksjsui-gap-x-2", children: [
10648
- c && /* @__PURE__ */ m("div", { className: "ksjsui-shrink-0", children: c }),
10649
- /* @__PURE__ */ Q("div", { className: "ksjsui-grid ksjsui-grow ksjsui-gap-1", children: [
10650
- o && /* @__PURE__ */ m(tu, { children: o }),
10651
- r && /* @__PURE__ */ m(nu, { children: r })
10652
- ] }),
10653
- s,
10654
- /* @__PURE__ */ m(
10655
- eu,
10656
- {
10657
- "aria-label": a || t.dismissButtonLabel
10658
- }
10659
- )
10660
- ] }, n);
10651
+ return /* @__PURE__ */ Q(
10652
+ Jl,
10653
+ {
10654
+ ...l,
10655
+ className: D("ksjsui-flex ksjsui-gap-x-2", o),
10656
+ children: [
10657
+ a && /* @__PURE__ */ m("div", { className: "ksjsui-shrink-0", children: a }),
10658
+ /* @__PURE__ */ Q("div", { className: "ksjsui-grid ksjsui-grow ksjsui-gap-1", children: [
10659
+ r && /* @__PURE__ */ m(tu, { children: r }),
10660
+ s && /* @__PURE__ */ m(nu, { children: s })
10661
+ ] }),
10662
+ c,
10663
+ /* @__PURE__ */ m(
10664
+ eu,
10665
+ {
10666
+ "aria-label": u || t.dismissButtonLabel
10667
+ }
10668
+ )
10669
+ ]
10670
+ },
10671
+ n
10672
+ );
10661
10673
  }),
10662
10674
  /* @__PURE__ */ m(Ql, {})
10663
10675
  ] });