kaleido-ui 0.1.64 → 0.1.65
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/web/index.cjs +7 -5
- package/dist/web/index.d.cts +4 -1
- package/dist/web/index.d.ts +4 -1
- package/dist/web/index.js +7 -5
- package/package.json +1 -1
package/dist/web/index.cjs
CHANGED
|
@@ -2808,7 +2808,8 @@ function OptionSelector({
|
|
|
2808
2808
|
onChange,
|
|
2809
2809
|
compact = false,
|
|
2810
2810
|
className,
|
|
2811
|
-
onOpenPanelHeightChange
|
|
2811
|
+
onOpenPanelHeightChange,
|
|
2812
|
+
triggerAlign = "between"
|
|
2812
2813
|
}) {
|
|
2813
2814
|
const selected = options.find((option) => option.id === value) ?? options[0];
|
|
2814
2815
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
@@ -2826,7 +2827,8 @@ function OptionSelector({
|
|
|
2826
2827
|
"span",
|
|
2827
2828
|
{
|
|
2828
2829
|
className: cn(
|
|
2829
|
-
"flex items-center
|
|
2830
|
+
"flex items-center gap-1 rounded-2xl bg-white/[0.09] px-2 py-1.5 text-xs leading-none backdrop-blur-md transition-all hover:bg-white/[0.13]",
|
|
2831
|
+
triggerAlign === "center" ? "justify-center" : "justify-between",
|
|
2830
2832
|
open && "bg-white/[0.13]",
|
|
2831
2833
|
!compact && "w-full px-3 py-3"
|
|
2832
2834
|
),
|
|
@@ -7554,7 +7556,7 @@ function DepositSuccessScreen({
|
|
|
7554
7556
|
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex h-screen flex-col overflow-hidden bg-background font-display text-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-1 flex-col items-center justify-center p-6 text-center", children: [
|
|
7555
7557
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "relative mb-8", children: [
|
|
7556
7558
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "absolute inset-0 scale-150 animate-pulse rounded-full bg-primary/20 blur-2xl" }),
|
|
7557
|
-
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "relative flex size-
|
|
7559
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "relative flex size-20 items-center justify-center rounded-full border-2 border-primary/40 bg-primary/10 shadow-sm", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "material-symbols-outlined text-5xl text-primary animate-in zoom-in-50 duration-500", children: "check_circle" }) })
|
|
7558
7560
|
] }),
|
|
7559
7561
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("h1", { className: "mb-2 text-2xl font-bold text-white", children: title }),
|
|
7560
7562
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "mb-8 max-w-[260px] text-sm leading-relaxed text-muted-foreground", children: subtitle }),
|
|
@@ -7581,8 +7583,8 @@ function DepositSuccessScreen({
|
|
|
7581
7583
|
)
|
|
7582
7584
|
] }),
|
|
7583
7585
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(Button, { variant: "cta", size: "cta", onClick: handleDone, children: [
|
|
7584
|
-
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "material-symbols-outlined text-icon-lg", children: "
|
|
7585
|
-
"Back to
|
|
7586
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "material-symbols-outlined text-icon-lg", children: "account_balance_wallet" }),
|
|
7587
|
+
"Back to Wallet"
|
|
7586
7588
|
] })
|
|
7587
7589
|
] }) });
|
|
7588
7590
|
}
|
package/dist/web/index.d.cts
CHANGED
|
@@ -446,8 +446,11 @@ interface OptionSelectorProps {
|
|
|
446
446
|
compact?: boolean;
|
|
447
447
|
className?: string;
|
|
448
448
|
onOpenPanelHeightChange?: (height: number) => void;
|
|
449
|
+
/** Horizontal alignment of the trigger content. Defaults to 'between'
|
|
450
|
+
* (label left, chevron right). Use 'center' to center the value + chevron. */
|
|
451
|
+
triggerAlign?: 'between' | 'center';
|
|
449
452
|
}
|
|
450
|
-
declare function OptionSelector({ label, value, options, onChange, compact, className, onOpenPanelHeightChange, }: OptionSelectorProps): react_jsx_runtime.JSX.Element;
|
|
453
|
+
declare function OptionSelector({ label, value, options, onChange, compact, className, onOpenPanelHeightChange, triggerAlign, }: OptionSelectorProps): react_jsx_runtime.JSX.Element;
|
|
451
454
|
|
|
452
455
|
interface SettingsTileProps {
|
|
453
456
|
icon: ReactNode;
|
package/dist/web/index.d.ts
CHANGED
|
@@ -446,8 +446,11 @@ interface OptionSelectorProps {
|
|
|
446
446
|
compact?: boolean;
|
|
447
447
|
className?: string;
|
|
448
448
|
onOpenPanelHeightChange?: (height: number) => void;
|
|
449
|
+
/** Horizontal alignment of the trigger content. Defaults to 'between'
|
|
450
|
+
* (label left, chevron right). Use 'center' to center the value + chevron. */
|
|
451
|
+
triggerAlign?: 'between' | 'center';
|
|
449
452
|
}
|
|
450
|
-
declare function OptionSelector({ label, value, options, onChange, compact, className, onOpenPanelHeightChange, }: OptionSelectorProps): react_jsx_runtime.JSX.Element;
|
|
453
|
+
declare function OptionSelector({ label, value, options, onChange, compact, className, onOpenPanelHeightChange, triggerAlign, }: OptionSelectorProps): react_jsx_runtime.JSX.Element;
|
|
451
454
|
|
|
452
455
|
interface SettingsTileProps {
|
|
453
456
|
icon: ReactNode;
|
package/dist/web/index.js
CHANGED
|
@@ -2631,7 +2631,8 @@ function OptionSelector({
|
|
|
2631
2631
|
onChange,
|
|
2632
2632
|
compact = false,
|
|
2633
2633
|
className,
|
|
2634
|
-
onOpenPanelHeightChange
|
|
2634
|
+
onOpenPanelHeightChange,
|
|
2635
|
+
triggerAlign = "between"
|
|
2635
2636
|
}) {
|
|
2636
2637
|
const selected = options.find((option) => option.id === value) ?? options[0];
|
|
2637
2638
|
return /* @__PURE__ */ jsx31(
|
|
@@ -2649,7 +2650,8 @@ function OptionSelector({
|
|
|
2649
2650
|
"span",
|
|
2650
2651
|
{
|
|
2651
2652
|
className: cn(
|
|
2652
|
-
"flex items-center
|
|
2653
|
+
"flex items-center gap-1 rounded-2xl bg-white/[0.09] px-2 py-1.5 text-xs leading-none backdrop-blur-md transition-all hover:bg-white/[0.13]",
|
|
2654
|
+
triggerAlign === "center" ? "justify-center" : "justify-between",
|
|
2653
2655
|
open && "bg-white/[0.13]",
|
|
2654
2656
|
!compact && "w-full px-3 py-3"
|
|
2655
2657
|
),
|
|
@@ -7377,7 +7379,7 @@ function DepositSuccessScreen({
|
|
|
7377
7379
|
return /* @__PURE__ */ jsx74("div", { className: "flex h-screen flex-col overflow-hidden bg-background font-display text-foreground", children: /* @__PURE__ */ jsxs60("div", { className: "flex flex-1 flex-col items-center justify-center p-6 text-center", children: [
|
|
7378
7380
|
/* @__PURE__ */ jsxs60("div", { className: "relative mb-8", children: [
|
|
7379
7381
|
/* @__PURE__ */ jsx74("div", { className: "absolute inset-0 scale-150 animate-pulse rounded-full bg-primary/20 blur-2xl" }),
|
|
7380
|
-
/* @__PURE__ */ jsx74("div", { className: "relative flex size-
|
|
7382
|
+
/* @__PURE__ */ jsx74("div", { className: "relative flex size-20 items-center justify-center rounded-full border-2 border-primary/40 bg-primary/10 shadow-sm", children: /* @__PURE__ */ jsx74("span", { className: "material-symbols-outlined text-5xl text-primary animate-in zoom-in-50 duration-500", children: "check_circle" }) })
|
|
7381
7383
|
] }),
|
|
7382
7384
|
/* @__PURE__ */ jsx74("h1", { className: "mb-2 text-2xl font-bold text-white", children: title }),
|
|
7383
7385
|
/* @__PURE__ */ jsx74("p", { className: "mb-8 max-w-[260px] text-sm leading-relaxed text-muted-foreground", children: subtitle }),
|
|
@@ -7404,8 +7406,8 @@ function DepositSuccessScreen({
|
|
|
7404
7406
|
)
|
|
7405
7407
|
] }),
|
|
7406
7408
|
/* @__PURE__ */ jsxs60(Button, { variant: "cta", size: "cta", onClick: handleDone, children: [
|
|
7407
|
-
/* @__PURE__ */ jsx74("span", { className: "material-symbols-outlined text-icon-lg", children: "
|
|
7408
|
-
"Back to
|
|
7409
|
+
/* @__PURE__ */ jsx74("span", { className: "material-symbols-outlined text-icon-lg", children: "account_balance_wallet" }),
|
|
7410
|
+
"Back to Wallet"
|
|
7409
7411
|
] })
|
|
7410
7412
|
] }) });
|
|
7411
7413
|
}
|
package/package.json
CHANGED