kaleido-ui 0.1.63 → 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 +10 -7
- package/dist/web/index.d.cts +7 -2
- package/dist/web/index.d.ts +7 -2
- package/dist/web/index.js +10 -7
- 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
|
),
|
|
@@ -7413,7 +7415,8 @@ function CopyIcon({ copied }) {
|
|
|
7413
7415
|
function AccountChoiceChip({
|
|
7414
7416
|
account,
|
|
7415
7417
|
active,
|
|
7416
|
-
onClick
|
|
7418
|
+
onClick,
|
|
7419
|
+
label
|
|
7417
7420
|
}) {
|
|
7418
7421
|
const meta = ACCOUNT_META[account];
|
|
7419
7422
|
return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
@@ -7428,7 +7431,7 @@ function AccountChoiceChip({
|
|
|
7428
7431
|
),
|
|
7429
7432
|
children: [
|
|
7430
7433
|
meta.icon,
|
|
7431
|
-
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { children: meta.shortLabel })
|
|
7434
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { children: label ?? meta.shortLabel })
|
|
7432
7435
|
]
|
|
7433
7436
|
}
|
|
7434
7437
|
);
|
|
@@ -7553,7 +7556,7 @@ function DepositSuccessScreen({
|
|
|
7553
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: [
|
|
7554
7557
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "relative mb-8", children: [
|
|
7555
7558
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "absolute inset-0 scale-150 animate-pulse rounded-full bg-primary/20 blur-2xl" }),
|
|
7556
|
-
/* @__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" }) })
|
|
7557
7560
|
] }),
|
|
7558
7561
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("h1", { className: "mb-2 text-2xl font-bold text-white", children: title }),
|
|
7559
7562
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("p", { className: "mb-8 max-w-[260px] text-sm leading-relaxed text-muted-foreground", children: subtitle }),
|
|
@@ -7580,8 +7583,8 @@ function DepositSuccessScreen({
|
|
|
7580
7583
|
)
|
|
7581
7584
|
] }),
|
|
7582
7585
|
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(Button, { variant: "cta", size: "cta", onClick: handleDone, children: [
|
|
7583
|
-
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "material-symbols-outlined text-icon-lg", children: "
|
|
7584
|
-
"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"
|
|
7585
7588
|
] })
|
|
7586
7589
|
] }) });
|
|
7587
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;
|
|
@@ -1357,10 +1360,12 @@ declare function PaidOverlay(): react_jsx_runtime.JSX.Element;
|
|
|
1357
1360
|
declare function CopyIcon({ copied }: {
|
|
1358
1361
|
copied: boolean;
|
|
1359
1362
|
}): react_jsx_runtime.JSX.Element;
|
|
1360
|
-
declare function AccountChoiceChip({ account, active, onClick, }: {
|
|
1363
|
+
declare function AccountChoiceChip({ account, active, onClick, label, }: {
|
|
1361
1364
|
account: DepositAccountId;
|
|
1362
1365
|
active: boolean;
|
|
1363
1366
|
onClick: () => void;
|
|
1367
|
+
/** Override the short label, e.g. "RLN" vs "RGB" for the RGB account's backing. */
|
|
1368
|
+
label?: string;
|
|
1364
1369
|
}): react_jsx_runtime.JSX.Element;
|
|
1365
1370
|
declare function NetworkInfoDisclosure({ networks, className, }: {
|
|
1366
1371
|
networks: DepositNetworkKey[];
|
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;
|
|
@@ -1357,10 +1360,12 @@ declare function PaidOverlay(): react_jsx_runtime.JSX.Element;
|
|
|
1357
1360
|
declare function CopyIcon({ copied }: {
|
|
1358
1361
|
copied: boolean;
|
|
1359
1362
|
}): react_jsx_runtime.JSX.Element;
|
|
1360
|
-
declare function AccountChoiceChip({ account, active, onClick, }: {
|
|
1363
|
+
declare function AccountChoiceChip({ account, active, onClick, label, }: {
|
|
1361
1364
|
account: DepositAccountId;
|
|
1362
1365
|
active: boolean;
|
|
1363
1366
|
onClick: () => void;
|
|
1367
|
+
/** Override the short label, e.g. "RLN" vs "RGB" for the RGB account's backing. */
|
|
1368
|
+
label?: string;
|
|
1364
1369
|
}): react_jsx_runtime.JSX.Element;
|
|
1365
1370
|
declare function NetworkInfoDisclosure({ networks, className, }: {
|
|
1366
1371
|
networks: DepositNetworkKey[];
|
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
|
),
|
|
@@ -7236,7 +7238,8 @@ function CopyIcon({ copied }) {
|
|
|
7236
7238
|
function AccountChoiceChip({
|
|
7237
7239
|
account,
|
|
7238
7240
|
active,
|
|
7239
|
-
onClick
|
|
7241
|
+
onClick,
|
|
7242
|
+
label
|
|
7240
7243
|
}) {
|
|
7241
7244
|
const meta = ACCOUNT_META[account];
|
|
7242
7245
|
return /* @__PURE__ */ jsxs59(
|
|
@@ -7251,7 +7254,7 @@ function AccountChoiceChip({
|
|
|
7251
7254
|
),
|
|
7252
7255
|
children: [
|
|
7253
7256
|
meta.icon,
|
|
7254
|
-
/* @__PURE__ */ jsx73("span", { children: meta.shortLabel })
|
|
7257
|
+
/* @__PURE__ */ jsx73("span", { children: label ?? meta.shortLabel })
|
|
7255
7258
|
]
|
|
7256
7259
|
}
|
|
7257
7260
|
);
|
|
@@ -7376,7 +7379,7 @@ function DepositSuccessScreen({
|
|
|
7376
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: [
|
|
7377
7380
|
/* @__PURE__ */ jsxs60("div", { className: "relative mb-8", children: [
|
|
7378
7381
|
/* @__PURE__ */ jsx74("div", { className: "absolute inset-0 scale-150 animate-pulse rounded-full bg-primary/20 blur-2xl" }),
|
|
7379
|
-
/* @__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" }) })
|
|
7380
7383
|
] }),
|
|
7381
7384
|
/* @__PURE__ */ jsx74("h1", { className: "mb-2 text-2xl font-bold text-white", children: title }),
|
|
7382
7385
|
/* @__PURE__ */ jsx74("p", { className: "mb-8 max-w-[260px] text-sm leading-relaxed text-muted-foreground", children: subtitle }),
|
|
@@ -7403,8 +7406,8 @@ function DepositSuccessScreen({
|
|
|
7403
7406
|
)
|
|
7404
7407
|
] }),
|
|
7405
7408
|
/* @__PURE__ */ jsxs60(Button, { variant: "cta", size: "cta", onClick: handleDone, children: [
|
|
7406
|
-
/* @__PURE__ */ jsx74("span", { className: "material-symbols-outlined text-icon-lg", children: "
|
|
7407
|
-
"Back to
|
|
7409
|
+
/* @__PURE__ */ jsx74("span", { className: "material-symbols-outlined text-icon-lg", children: "account_balance_wallet" }),
|
|
7410
|
+
"Back to Wallet"
|
|
7408
7411
|
] })
|
|
7409
7412
|
] }) });
|
|
7410
7413
|
}
|
package/package.json
CHANGED