@keeper-security/keeper-js-ui 0.9.0 → 0.10.0
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 +14 -0
- package/dist/index.es.js +38 -27
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.10.0](https://github.com/Keeper-Security/keeper-js-ui/compare/v0.9.0...v0.10.0) (2025-04-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **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))
|
|
9
|
+
* **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))
|
|
10
|
+
* **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))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **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))
|
|
16
|
+
|
|
3
17
|
## [0.9.0](https://github.com/Keeper-Security/keeper-js-ui/compare/v0.8.0...v0.9.0) (2025-04-22)
|
|
4
18
|
|
|
5
19
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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,16 @@ 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-
|
|
10607
|
-
"focus:ksjsui-
|
|
10606
|
+
"ksjsui-text-current/50 ksjsui-absolute ksjsui-right-1 ksjsui-top-1 ksjsui-self-start ksjsui-rounded-sm ksjsui-p-1 ksjsui-opacity-0 ksjsui-transition-opacity",
|
|
10607
|
+
"focus-visible:ksjsui-opacity-100 focus-visible:ksjsui-outline focus-visible:ksjsui-outline-ring",
|
|
10608
|
+
"group-hover:ksjsui-opacity-100",
|
|
10609
|
+
"group-focus-visible:ksjsui-opacity-100"
|
|
10608
10610
|
],
|
|
10609
10611
|
e
|
|
10610
10612
|
),
|
|
10611
10613
|
"toast-close": "",
|
|
10612
10614
|
...t,
|
|
10613
|
-
children: /* @__PURE__ */ m(yi, { "aria-hidden": !0, className: "ksjsui-size-
|
|
10615
|
+
children: /* @__PURE__ */ m(yi, { "aria-hidden": !0, className: "ksjsui-size-4" })
|
|
10614
10616
|
}
|
|
10615
10617
|
));
|
|
10616
10618
|
eu.displayName = ql.displayName;
|
|
@@ -10637,27 +10639,36 @@ const cy = () => {
|
|
|
10637
10639
|
return /* @__PURE__ */ Q(Lw, { children: [
|
|
10638
10640
|
e.map(function({
|
|
10639
10641
|
id: n,
|
|
10640
|
-
|
|
10641
|
-
|
|
10642
|
-
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10642
|
+
className: o,
|
|
10643
|
+
title: r,
|
|
10644
|
+
description: s,
|
|
10645
|
+
action: c,
|
|
10646
|
+
icon: a,
|
|
10647
|
+
dismissButtonLabel: u,
|
|
10648
|
+
...l
|
|
10646
10649
|
}) {
|
|
10647
|
-
return /* @__PURE__ */ Q(
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10650
|
+
return /* @__PURE__ */ Q(
|
|
10651
|
+
Jl,
|
|
10652
|
+
{
|
|
10653
|
+
...l,
|
|
10654
|
+
className: D("ksjsui-flex ksjsui-gap-x-2", o),
|
|
10655
|
+
children: [
|
|
10656
|
+
a && /* @__PURE__ */ m("div", { className: "ksjsui-shrink-0", children: a }),
|
|
10657
|
+
/* @__PURE__ */ Q("div", { className: "ksjsui-grid ksjsui-grow ksjsui-gap-1", children: [
|
|
10658
|
+
r && /* @__PURE__ */ m(tu, { children: r }),
|
|
10659
|
+
s && /* @__PURE__ */ m(nu, { children: s })
|
|
10660
|
+
] }),
|
|
10661
|
+
c,
|
|
10662
|
+
/* @__PURE__ */ m(
|
|
10663
|
+
eu,
|
|
10664
|
+
{
|
|
10665
|
+
"aria-label": u || t.dismissButtonLabel
|
|
10666
|
+
}
|
|
10667
|
+
)
|
|
10668
|
+
]
|
|
10669
|
+
},
|
|
10670
|
+
n
|
|
10671
|
+
);
|
|
10661
10672
|
}),
|
|
10662
10673
|
/* @__PURE__ */ m(Ql, {})
|
|
10663
10674
|
] });
|