kaleido-ui 0.1.79 → 0.1.81
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/css/kaleido-ui.css +1 -1
- package/dist/tokens/index.cjs +2 -1
- package/dist/tokens/index.d.cts +1 -1
- package/dist/tokens/index.d.ts +1 -1
- package/dist/tokens/index.js +2 -1
- package/dist/web/index.cjs +23 -20
- package/dist/web/index.js +23 -20
- package/package.json +1 -1
package/dist/css/kaleido-ui.css
CHANGED
package/dist/tokens/index.cjs
CHANGED
package/dist/tokens/index.d.cts
CHANGED
package/dist/tokens/index.d.ts
CHANGED
package/dist/tokens/index.js
CHANGED
package/dist/web/index.cjs
CHANGED
|
@@ -2768,25 +2768,28 @@ function OptionSelector({
|
|
|
2768
2768
|
options,
|
|
2769
2769
|
onChange,
|
|
2770
2770
|
className: cn(compact ? "w-auto shrink-0" : "w-full", className),
|
|
2771
|
-
panelClassName: "right-0 left-auto min-w-[11rem]",
|
|
2772
|
-
optionClassName: "px-3 py-2.5",
|
|
2771
|
+
panelClassName: "right-0 left-auto min-w-[11rem] rounded-xl border-0 bg-card",
|
|
2772
|
+
optionClassName: "px-3.5 py-2.5 hover:bg-white/6 data-[selected]:bg-transparent data-[selected]:shadow-none",
|
|
2773
2773
|
onOpenPanelHeightChange,
|
|
2774
2774
|
renderTrigger: ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2775
2775
|
"span",
|
|
2776
2776
|
{
|
|
2777
2777
|
className: cn(
|
|
2778
|
-
"flex items-center gap-1 rounded-
|
|
2778
|
+
"flex h-9 min-w-[4.5rem] items-center gap-1.5 rounded-full bg-white/8 px-3.5 text-sm font-semibold leading-none text-foreground transition-colors hover:bg-white/12",
|
|
2779
2779
|
triggerAlign === "center" ? "justify-center" : "justify-between",
|
|
2780
|
-
open && "bg-
|
|
2781
|
-
!compact && "w-full
|
|
2780
|
+
open && "bg-primary/15 text-primary hover:bg-primary/15",
|
|
2781
|
+
!compact && "w-full"
|
|
2782
2782
|
),
|
|
2783
2783
|
children: [
|
|
2784
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "truncate
|
|
2784
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "truncate", children: selected?.label }),
|
|
2785
2785
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2786
2786
|
Icon,
|
|
2787
2787
|
{
|
|
2788
2788
|
name: "expand_more",
|
|
2789
|
-
className: cn(
|
|
2789
|
+
className: cn(
|
|
2790
|
+
"shrink-0 text-icon-xs transition-transform",
|
|
2791
|
+
open ? "rotate-180 text-primary" : "text-muted-foreground"
|
|
2792
|
+
)
|
|
2790
2793
|
}
|
|
2791
2794
|
)
|
|
2792
2795
|
]
|
|
@@ -2800,13 +2803,13 @@ function OptionSelector({
|
|
|
2800
2803
|
"span",
|
|
2801
2804
|
{
|
|
2802
2805
|
className: cn(
|
|
2803
|
-
"block truncate text-
|
|
2804
|
-
optionSelected ? "font-
|
|
2806
|
+
"block truncate text-sm",
|
|
2807
|
+
optionSelected ? "font-semibold text-primary" : "font-medium text-foreground"
|
|
2805
2808
|
),
|
|
2806
2809
|
children: option.label
|
|
2807
2810
|
}
|
|
2808
2811
|
),
|
|
2809
|
-
option.description && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "mt-0.5 block truncate text-tiny text-
|
|
2812
|
+
option.description && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "mt-0.5 block truncate text-tiny text-muted-foreground", children: option.description })
|
|
2810
2813
|
] })
|
|
2811
2814
|
] }),
|
|
2812
2815
|
optionSelected && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon, { name: "check", className: "text-icon-sm text-primary" })
|
|
@@ -2823,7 +2826,7 @@ function SettingsTile({ icon, title, description, value, onClick }) {
|
|
|
2823
2826
|
{
|
|
2824
2827
|
type: "button",
|
|
2825
2828
|
onClick,
|
|
2826
|
-
className: "w-full rounded-2xl bg-card p-5 text-left transition-all duration-200 hover:bg-accent active:scale-[0.98]",
|
|
2829
|
+
className: "w-full rounded-2xl bg-card/70 p-5 text-left transition-all duration-200 hover:bg-accent active:scale-[0.98]",
|
|
2827
2830
|
children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex items-center justify-between gap-3", children: [
|
|
2828
2831
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
|
|
2829
2832
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-muted", children: icon }),
|
|
@@ -3148,10 +3151,10 @@ function ExpandIcon({ expanded }) {
|
|
|
3148
3151
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon, { name: expanded ? "expand_less" : "expand_more", size: "md" });
|
|
3149
3152
|
}
|
|
3150
3153
|
var ACCOUNT_ACCENT_BG = {
|
|
3151
|
-
RGB: "bg-gradient-to-br from-primary/[0.06] via-card to-primary/[0.10]",
|
|
3152
|
-
SPARK: "bg-gradient-to-br from-info/[0.06] via-card to-info/[0.10]",
|
|
3153
|
-
ARKADE: "bg-gradient-to-br from-network-arkade/[0.06] via-card to-network-arkade/[0.10]",
|
|
3154
|
-
NOSTR: "bg-gradient-to-br from-network-arkade/[0.06] via-card to-network-arkade/[0.10]"
|
|
3154
|
+
RGB: "bg-gradient-to-br from-primary/[0.06] via-card/70 to-primary/[0.10]",
|
|
3155
|
+
SPARK: "bg-gradient-to-br from-info/[0.06] via-card/70 to-info/[0.10]",
|
|
3156
|
+
ARKADE: "bg-gradient-to-br from-network-arkade/[0.06] via-card/70 to-network-arkade/[0.10]",
|
|
3157
|
+
NOSTR: "bg-gradient-to-br from-network-arkade/[0.06] via-card/70 to-network-arkade/[0.10]"
|
|
3155
3158
|
};
|
|
3156
3159
|
function AccountSettingsRow({
|
|
3157
3160
|
accountId,
|
|
@@ -5464,7 +5467,7 @@ function SettingItem({
|
|
|
5464
5467
|
"div",
|
|
5465
5468
|
{
|
|
5466
5469
|
className: cn(
|
|
5467
|
-
"p-5 rounded-2xl bg-card transition-all duration-200 group",
|
|
5470
|
+
"p-5 rounded-2xl bg-card/70 transition-all duration-200 group",
|
|
5468
5471
|
isClickable && "cursor-pointer active:scale-[0.98]",
|
|
5469
5472
|
className
|
|
5470
5473
|
),
|
|
@@ -5780,7 +5783,7 @@ function BottomSheet({
|
|
|
5780
5783
|
"div",
|
|
5781
5784
|
{
|
|
5782
5785
|
className: cn(
|
|
5783
|
-
"fixed inset-0 z-50 flex items-end justify-center bg-
|
|
5786
|
+
"fixed inset-0 z-50 flex items-end justify-center bg-background/80 backdrop-blur-lg",
|
|
5784
5787
|
className
|
|
5785
5788
|
),
|
|
5786
5789
|
onClick: handleBackdropClick,
|
|
@@ -5788,7 +5791,7 @@ function BottomSheet({
|
|
|
5788
5791
|
"div",
|
|
5789
5792
|
{
|
|
5790
5793
|
className: cn(
|
|
5791
|
-
"max-h-[90vh] w-full overflow-y-auto rounded-t-2xl border-t border-border bg-
|
|
5794
|
+
"max-h-[90vh] w-full overflow-y-auto rounded-t-2xl border-t border-border bg-card px-4 pb-6 pt-5 shadow-xl animate-in slide-in-from-bottom-4 duration-200",
|
|
5792
5795
|
contentClassName
|
|
5793
5796
|
),
|
|
5794
5797
|
children: [
|
|
@@ -6177,7 +6180,7 @@ function SettingsSectionCard({
|
|
|
6177
6180
|
className,
|
|
6178
6181
|
bodyClassName
|
|
6179
6182
|
}) {
|
|
6180
|
-
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("section", { className: cn("space-y-4 rounded-xl bg-card p-4", className), children: [
|
|
6183
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("section", { className: cn("space-y-4 rounded-xl bg-card/70 p-4", className), children: [
|
|
6181
6184
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex items-start justify-between gap-4", children: [
|
|
6182
6185
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "min-w-0 flex-1", children: [
|
|
6183
6186
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("h2", { className: "text-sm font-bold text-foreground", children: title }),
|
|
@@ -7661,7 +7664,7 @@ function DepositNetworkDefaultModal({
|
|
|
7661
7664
|
}) {
|
|
7662
7665
|
if (!open) return null;
|
|
7663
7666
|
const options = availableAccounts.map((id) => NETWORK_OPTIONS[id]).filter(Boolean);
|
|
7664
|
-
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "fixed inset-0 z-50 flex items-end justify-center bg-
|
|
7667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "fixed inset-0 z-50 flex items-end justify-center bg-background/80 backdrop-blur-lg", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "w-full space-y-4 rounded-t-2xl border-t border-border bg-card px-4 pb-7 pt-5 animate-in slide-in-from-bottom-4 duration-200", children: [
|
|
7665
7668
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "-mt-1 mb-1 flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "h-1 w-10 rounded-full bg-white/15" }) }),
|
|
7666
7669
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { children: [
|
|
7667
7670
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "text-sm font-bold text-white", children: "Choose your default network" }),
|
package/dist/web/index.js
CHANGED
|
@@ -2588,25 +2588,28 @@ function OptionSelector({
|
|
|
2588
2588
|
options,
|
|
2589
2589
|
onChange,
|
|
2590
2590
|
className: cn(compact ? "w-auto shrink-0" : "w-full", className),
|
|
2591
|
-
panelClassName: "right-0 left-auto min-w-[11rem]",
|
|
2592
|
-
optionClassName: "px-3 py-2.5",
|
|
2591
|
+
panelClassName: "right-0 left-auto min-w-[11rem] rounded-xl border-0 bg-card",
|
|
2592
|
+
optionClassName: "px-3.5 py-2.5 hover:bg-white/6 data-[selected]:bg-transparent data-[selected]:shadow-none",
|
|
2593
2593
|
onOpenPanelHeightChange,
|
|
2594
2594
|
renderTrigger: ({ open }) => /* @__PURE__ */ jsxs18(
|
|
2595
2595
|
"span",
|
|
2596
2596
|
{
|
|
2597
2597
|
className: cn(
|
|
2598
|
-
"flex items-center gap-1 rounded-
|
|
2598
|
+
"flex h-9 min-w-[4.5rem] items-center gap-1.5 rounded-full bg-white/8 px-3.5 text-sm font-semibold leading-none text-foreground transition-colors hover:bg-white/12",
|
|
2599
2599
|
triggerAlign === "center" ? "justify-center" : "justify-between",
|
|
2600
|
-
open && "bg-
|
|
2601
|
-
!compact && "w-full
|
|
2600
|
+
open && "bg-primary/15 text-primary hover:bg-primary/15",
|
|
2601
|
+
!compact && "w-full"
|
|
2602
2602
|
),
|
|
2603
2603
|
children: [
|
|
2604
|
-
/* @__PURE__ */ jsx31("span", { className: "truncate
|
|
2604
|
+
/* @__PURE__ */ jsx31("span", { className: "truncate", children: selected?.label }),
|
|
2605
2605
|
/* @__PURE__ */ jsx31(
|
|
2606
2606
|
Icon,
|
|
2607
2607
|
{
|
|
2608
2608
|
name: "expand_more",
|
|
2609
|
-
className: cn(
|
|
2609
|
+
className: cn(
|
|
2610
|
+
"shrink-0 text-icon-xs transition-transform",
|
|
2611
|
+
open ? "rotate-180 text-primary" : "text-muted-foreground"
|
|
2612
|
+
)
|
|
2610
2613
|
}
|
|
2611
2614
|
)
|
|
2612
2615
|
]
|
|
@@ -2620,13 +2623,13 @@ function OptionSelector({
|
|
|
2620
2623
|
"span",
|
|
2621
2624
|
{
|
|
2622
2625
|
className: cn(
|
|
2623
|
-
"block truncate text-
|
|
2624
|
-
optionSelected ? "font-
|
|
2626
|
+
"block truncate text-sm",
|
|
2627
|
+
optionSelected ? "font-semibold text-primary" : "font-medium text-foreground"
|
|
2625
2628
|
),
|
|
2626
2629
|
children: option.label
|
|
2627
2630
|
}
|
|
2628
2631
|
),
|
|
2629
|
-
option.description && /* @__PURE__ */ jsx31("span", { className: "mt-0.5 block truncate text-tiny text-
|
|
2632
|
+
option.description && /* @__PURE__ */ jsx31("span", { className: "mt-0.5 block truncate text-tiny text-muted-foreground", children: option.description })
|
|
2630
2633
|
] })
|
|
2631
2634
|
] }),
|
|
2632
2635
|
optionSelected && /* @__PURE__ */ jsx31(Icon, { name: "check", className: "text-icon-sm text-primary" })
|
|
@@ -2643,7 +2646,7 @@ function SettingsTile({ icon, title, description, value, onClick }) {
|
|
|
2643
2646
|
{
|
|
2644
2647
|
type: "button",
|
|
2645
2648
|
onClick,
|
|
2646
|
-
className: "w-full rounded-2xl bg-card p-5 text-left transition-all duration-200 hover:bg-accent active:scale-[0.98]",
|
|
2649
|
+
className: "w-full rounded-2xl bg-card/70 p-5 text-left transition-all duration-200 hover:bg-accent active:scale-[0.98]",
|
|
2647
2650
|
children: /* @__PURE__ */ jsxs19("div", { className: "flex items-center justify-between gap-3", children: [
|
|
2648
2651
|
/* @__PURE__ */ jsxs19("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
|
|
2649
2652
|
/* @__PURE__ */ jsx32("div", { className: "flex size-10 shrink-0 items-center justify-center rounded-xl bg-muted", children: icon }),
|
|
@@ -2968,10 +2971,10 @@ function ExpandIcon({ expanded }) {
|
|
|
2968
2971
|
return /* @__PURE__ */ jsx33(Icon, { name: expanded ? "expand_less" : "expand_more", size: "md" });
|
|
2969
2972
|
}
|
|
2970
2973
|
var ACCOUNT_ACCENT_BG = {
|
|
2971
|
-
RGB: "bg-gradient-to-br from-primary/[0.06] via-card to-primary/[0.10]",
|
|
2972
|
-
SPARK: "bg-gradient-to-br from-info/[0.06] via-card to-info/[0.10]",
|
|
2973
|
-
ARKADE: "bg-gradient-to-br from-network-arkade/[0.06] via-card to-network-arkade/[0.10]",
|
|
2974
|
-
NOSTR: "bg-gradient-to-br from-network-arkade/[0.06] via-card to-network-arkade/[0.10]"
|
|
2974
|
+
RGB: "bg-gradient-to-br from-primary/[0.06] via-card/70 to-primary/[0.10]",
|
|
2975
|
+
SPARK: "bg-gradient-to-br from-info/[0.06] via-card/70 to-info/[0.10]",
|
|
2976
|
+
ARKADE: "bg-gradient-to-br from-network-arkade/[0.06] via-card/70 to-network-arkade/[0.10]",
|
|
2977
|
+
NOSTR: "bg-gradient-to-br from-network-arkade/[0.06] via-card/70 to-network-arkade/[0.10]"
|
|
2975
2978
|
};
|
|
2976
2979
|
function AccountSettingsRow({
|
|
2977
2980
|
accountId,
|
|
@@ -5284,7 +5287,7 @@ function SettingItem({
|
|
|
5284
5287
|
"div",
|
|
5285
5288
|
{
|
|
5286
5289
|
className: cn(
|
|
5287
|
-
"p-5 rounded-2xl bg-card transition-all duration-200 group",
|
|
5290
|
+
"p-5 rounded-2xl bg-card/70 transition-all duration-200 group",
|
|
5288
5291
|
isClickable && "cursor-pointer active:scale-[0.98]",
|
|
5289
5292
|
className
|
|
5290
5293
|
),
|
|
@@ -5600,7 +5603,7 @@ function BottomSheet({
|
|
|
5600
5603
|
"div",
|
|
5601
5604
|
{
|
|
5602
5605
|
className: cn(
|
|
5603
|
-
"fixed inset-0 z-50 flex items-end justify-center bg-
|
|
5606
|
+
"fixed inset-0 z-50 flex items-end justify-center bg-background/80 backdrop-blur-lg",
|
|
5604
5607
|
className
|
|
5605
5608
|
),
|
|
5606
5609
|
onClick: handleBackdropClick,
|
|
@@ -5608,7 +5611,7 @@ function BottomSheet({
|
|
|
5608
5611
|
"div",
|
|
5609
5612
|
{
|
|
5610
5613
|
className: cn(
|
|
5611
|
-
"max-h-[90vh] w-full overflow-y-auto rounded-t-2xl border-t border-border bg-
|
|
5614
|
+
"max-h-[90vh] w-full overflow-y-auto rounded-t-2xl border-t border-border bg-card px-4 pb-6 pt-5 shadow-xl animate-in slide-in-from-bottom-4 duration-200",
|
|
5612
5615
|
contentClassName
|
|
5613
5616
|
),
|
|
5614
5617
|
children: [
|
|
@@ -5997,7 +6000,7 @@ function SettingsSectionCard({
|
|
|
5997
6000
|
className,
|
|
5998
6001
|
bodyClassName
|
|
5999
6002
|
}) {
|
|
6000
|
-
return /* @__PURE__ */ jsxs56("section", { className: cn("space-y-4 rounded-xl bg-card p-4", className), children: [
|
|
6003
|
+
return /* @__PURE__ */ jsxs56("section", { className: cn("space-y-4 rounded-xl bg-card/70 p-4", className), children: [
|
|
6001
6004
|
/* @__PURE__ */ jsxs56("div", { className: "flex items-start justify-between gap-4", children: [
|
|
6002
6005
|
/* @__PURE__ */ jsxs56("div", { className: "min-w-0 flex-1", children: [
|
|
6003
6006
|
/* @__PURE__ */ jsx70("h2", { className: "text-sm font-bold text-foreground", children: title }),
|
|
@@ -7481,7 +7484,7 @@ function DepositNetworkDefaultModal({
|
|
|
7481
7484
|
}) {
|
|
7482
7485
|
if (!open) return null;
|
|
7483
7486
|
const options = availableAccounts.map((id) => NETWORK_OPTIONS[id]).filter(Boolean);
|
|
7484
|
-
return /* @__PURE__ */ jsx76("div", { className: "fixed inset-0 z-50 flex items-end justify-center bg-
|
|
7487
|
+
return /* @__PURE__ */ jsx76("div", { className: "fixed inset-0 z-50 flex items-end justify-center bg-background/80 backdrop-blur-lg", children: /* @__PURE__ */ jsxs62("div", { className: "w-full space-y-4 rounded-t-2xl border-t border-border bg-card px-4 pb-7 pt-5 animate-in slide-in-from-bottom-4 duration-200", children: [
|
|
7485
7488
|
/* @__PURE__ */ jsx76("div", { className: "-mt-1 mb-1 flex justify-center", children: /* @__PURE__ */ jsx76("div", { className: "h-1 w-10 rounded-full bg-white/15" }) }),
|
|
7486
7489
|
/* @__PURE__ */ jsxs62("div", { children: [
|
|
7487
7490
|
/* @__PURE__ */ jsx76("p", { className: "text-sm font-bold text-white", children: "Choose your default network" }),
|
package/package.json
CHANGED