@luxfi/ui 7.4.14 → 8.0.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/LICENSE.md +21 -0
- package/dist/accordion.d.ts +10 -12
- package/dist/accordion.d.ts.map +1 -0
- package/dist/alert.cjs +7 -11
- package/dist/alert.d.ts +4 -5
- package/dist/alert.d.ts.map +1 -0
- package/dist/alert.js +1 -5
- package/dist/auth.d.ts +11 -13
- package/dist/auth.d.ts.map +1 -0
- package/dist/avatar.d.ts +5 -6
- package/dist/avatar.d.ts.map +1 -0
- package/dist/badge.cjs +7 -11
- package/dist/badge.d.ts +7 -8
- package/dist/badge.d.ts.map +1 -0
- package/dist/badge.js +1 -5
- package/dist/bank.d.ts +38 -43
- package/dist/bank.d.ts.map +1 -0
- package/dist/button.cjs +7 -23
- package/dist/button.d.ts +8 -13
- package/dist/button.d.ts.map +1 -0
- package/dist/button.js +2 -17
- package/dist/checkbox.d.ts +6 -7
- package/dist/checkbox.d.ts.map +1 -0
- package/dist/chrome.cjs +4 -8
- package/dist/chrome.d.ts +15 -19
- package/dist/chrome.d.ts.map +1 -0
- package/dist/chrome.js +1 -5
- package/dist/close-button.d.ts +3 -5
- package/dist/close-button.d.ts.map +1 -0
- package/dist/collapsible.cjs +19 -23
- package/dist/collapsible.d.ts +11 -13
- package/dist/collapsible.d.ts.map +1 -0
- package/dist/collapsible.js +1 -5
- package/dist/color-mode.d.ts +7 -9
- package/dist/color-mode.d.ts.map +1 -0
- package/dist/dialog.cjs +7 -11
- package/dist/dialog.d.ts +50 -54
- package/dist/dialog.d.ts.map +1 -0
- package/dist/dialog.js +1 -5
- package/dist/drawer.d.ts +33 -38
- package/dist/drawer.d.ts.map +1 -0
- package/dist/empty-state.d.ts +4 -6
- package/dist/empty-state.d.ts.map +1 -0
- package/dist/engine.d.ts +35 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/expiration-selector.d.ts +4 -6
- package/dist/expiration-selector.d.ts.map +1 -0
- package/dist/field.d.ts +5 -7
- package/dist/field.d.ts.map +1 -0
- package/dist/greeks-display.d.ts +3 -5
- package/dist/greeks-display.d.ts.map +1 -0
- package/dist/gui.d.ts +1 -1
- package/dist/gui.d.ts.map +1 -0
- package/dist/heading.cjs +12 -3
- package/dist/heading.d.ts +4 -6
- package/dist/heading.d.ts.map +1 -0
- package/dist/heading.js +12 -3
- package/dist/iam.d.ts +10 -12
- package/dist/iam.d.ts.map +1 -0
- package/dist/icon-button.cjs +7 -11
- package/dist/icon-button.d.ts +4 -5
- package/dist/icon-button.d.ts.map +1 -0
- package/dist/icon-button.js +1 -5
- package/dist/icons.d.ts +1 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/identity.d.ts +9 -11
- package/dist/identity.d.ts.map +1 -0
- package/dist/image.cjs +8 -12
- package/dist/image.d.ts +10 -11
- package/dist/image.d.ts.map +1 -0
- package/dist/image.js +1 -5
- package/dist/index.cjs +89 -91
- package/dist/index.d.ts +86 -60
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -33
- package/dist/ink.d.ts +14 -0
- package/dist/ink.d.ts.map +1 -0
- package/dist/input-group.d.ts +4 -6
- package/dist/input-group.d.ts.map +1 -0
- package/dist/input.cjs +5 -5
- package/dist/input.d.ts +8 -9
- package/dist/input.d.ts.map +1 -0
- package/dist/input.js +5 -5
- package/dist/link.cjs +19 -23
- package/dist/link.d.ts +9 -11
- package/dist/link.d.ts.map +1 -0
- package/dist/link.js +1 -5
- package/dist/lux.config.cjs +2 -0
- package/dist/lux.config.d.ts +785 -240
- package/dist/lux.config.d.ts.map +1 -0
- package/dist/lux.config.js +2 -0
- package/dist/menu.d.ts +30 -31
- package/dist/menu.d.ts.map +1 -0
- package/dist/next.d.ts +5 -7
- package/dist/next.d.ts.map +1 -0
- package/dist/option-chain.d.ts +6 -8
- package/dist/option-chain.d.ts.map +1 -0
- package/dist/option-position.d.ts +4 -6
- package/dist/option-position.d.ts.map +1 -0
- package/dist/pin-input.cjs +1 -1
- package/dist/pin-input.d.ts +3 -5
- package/dist/pin-input.d.ts.map +1 -0
- package/dist/pin-input.js +1 -1
- package/dist/pnl-diagram.d.ts +5 -6
- package/dist/pnl-diagram.d.ts.map +1 -0
- package/dist/popover.cjs +9 -13
- package/dist/popover.d.ts +24 -25
- package/dist/popover.d.ts.map +1 -0
- package/dist/popover.js +1 -5
- package/dist/progress-circle.cjs +2 -6
- package/dist/progress-circle.d.ts +8 -9
- package/dist/progress-circle.d.ts.map +1 -0
- package/dist/progress-circle.js +1 -5
- package/dist/progress.d.ts +3 -4
- package/dist/progress.d.ts.map +1 -0
- package/dist/provider.cjs +2 -0
- package/dist/provider.d.ts +8 -10
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +2 -0
- package/dist/radio.d.ts +6 -7
- package/dist/radio.d.ts.map +1 -0
- package/dist/rating.d.ts +3 -5
- package/dist/rating.d.ts.map +1 -0
- package/dist/select.cjs +16 -20
- package/dist/select.d.ts +38 -41
- package/dist/select.d.ts.map +1 -0
- package/dist/select.js +1 -5
- package/dist/separator.d.ts +5 -6
- package/dist/separator.d.ts.map +1 -0
- package/dist/skeleton.cjs +7 -11
- package/dist/skeleton.d.ts +9 -12
- package/dist/skeleton.d.ts.map +1 -0
- package/dist/skeleton.js +1 -5
- package/dist/slider.cjs +1 -1
- package/dist/slider.d.ts +3 -5
- package/dist/slider.d.ts.map +1 -0
- package/dist/slider.js +1 -1
- package/dist/strategy-builder.d.ts +6 -8
- package/dist/strategy-builder.d.ts.map +1 -0
- package/dist/switch.cjs +1 -1
- package/dist/switch.d.ts +3 -5
- package/dist/switch.d.ts.map +1 -0
- package/dist/switch.js +1 -1
- package/dist/table.cjs +30 -34
- package/dist/table.d.ts +23 -25
- package/dist/table.d.ts.map +1 -0
- package/dist/table.js +1 -5
- package/dist/tabs.d.ts +12 -13
- package/dist/tabs.d.ts.map +1 -0
- package/dist/tag.cjs +7 -11
- package/dist/tag.d.ts +4 -5
- package/dist/tag.d.ts.map +1 -0
- package/dist/tag.js +1 -5
- package/dist/textarea.cjs +10 -10
- package/dist/textarea.d.ts +5 -6
- package/dist/textarea.d.ts.map +1 -0
- package/dist/textarea.js +10 -10
- package/dist/toaster.d.ts +4 -5
- package/dist/toaster.d.ts.map +1 -0
- package/dist/tooltip.d.ts +3 -5
- package/dist/tooltip.d.ts.map +1 -0
- package/dist/use-narrow.d.ts +6 -7
- package/dist/use-narrow.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils.cjs +6 -7
- package/dist/utils.d.ts +13 -5
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +1 -9
- package/dist/vite.d.ts +3 -3
- package/dist/vite.d.ts.map +1 -0
- package/dist/white-label.d.ts +12 -12
- package/dist/white-label.d.ts.map +1 -0
- package/package.json +32 -26
- package/src/button.tsx +0 -18
- package/src/heading.tsx +12 -3
- package/src/index.ts +0 -1
- package/src/input.tsx +6 -6
- package/src/lux.config.ts +19 -0
- package/src/pin-input.tsx +1 -1
- package/src/slider.tsx +1 -1
- package/src/switch.tsx +1 -1
- package/src/textarea.tsx +6 -6
- package/src/utils/cn.ts +3 -7
- package/src/utils.ts +12 -6
- package/tokens.css +11 -0
- package/dist/accordion.d.cts +0 -41
- package/dist/alert.d.cts +0 -30
- package/dist/auth.d.cts +0 -80
- package/dist/avatar.d.cts +0 -25
- package/dist/badge.d.cts +0 -19
- package/dist/bank.d.cts +0 -83
- package/dist/button.d.cts +0 -55
- package/dist/checkbox.d.cts +0 -32
- package/dist/chrome.d.cts +0 -93
- package/dist/close-button.d.cts +0 -9
- package/dist/collapsible.d.cts +0 -24
- package/dist/color-mode.d.cts +0 -25
- package/dist/dialog.d.cts +0 -118
- package/dist/drawer.d.cts +0 -69
- package/dist/empty-state.d.cts +0 -13
- package/dist/expiration-selector.d.cts +0 -16
- package/dist/field.d.cts +0 -23
- package/dist/greeks-display.d.cts +0 -14
- package/dist/gui.d.cts +0 -2
- package/dist/heading.d.cts +0 -8
- package/dist/iam.d.cts +0 -65
- package/dist/icon-button.d.cts +0 -37
- package/dist/icons.d.cts +0 -1
- package/dist/identity.d.cts +0 -64
- package/dist/image.d.cts +0 -57
- package/dist/index.d.cts +0 -60
- package/dist/input-group.d.cts +0 -17
- package/dist/input.d.cts +0 -37
- package/dist/link.d.cts +0 -37
- package/dist/lux.config.d.cts +0 -433
- package/dist/menu.d.cts +0 -68
- package/dist/next.d.cts +0 -32
- package/dist/option-chain.d.cts +0 -37
- package/dist/option-position.d.cts +0 -29
- package/dist/pin-input.d.cts +0 -25
- package/dist/pnl-diagram.d.cts +0 -11
- package/dist/popover.d.cts +0 -73
- package/dist/progress-circle.d.cts +0 -47
- package/dist/progress.d.cts +0 -28
- package/dist/provider.d.cts +0 -25
- package/dist/radio.d.cts +0 -53
- package/dist/rating.d.cts +0 -14
- package/dist/select.d.cts +0 -161
- package/dist/separator.d.cts +0 -13
- package/dist/skeleton.d.cts +0 -76
- package/dist/slider.d.cts +0 -24
- package/dist/strategy-builder.d.cts +0 -26
- package/dist/switch.d.cts +0 -27
- package/dist/table.d.cts +0 -107
- package/dist/tabs.d.cts +0 -34
- package/dist/tag.d.cts +0 -21
- package/dist/textarea.d.cts +0 -13
- package/dist/toaster.d.cts +0 -28
- package/dist/tooltip.d.cts +0 -38
- package/dist/use-narrow.d.cts +0 -12
- package/dist/utils.d.cts +0 -5
- package/dist/vite.d.cts +0 -29
- package/dist/white-label.d.cts +0 -59
package/dist/index.cjs
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
var gui = require('@hanzo/gui');
|
|
5
5
|
var reactQuery = require('@tanstack/react-query');
|
|
6
6
|
var React32 = require('react');
|
|
7
|
+
var guiConfig = require('@hanzo/ui/gui-config');
|
|
7
8
|
var v5 = require('@hanzogui/config/v5');
|
|
8
9
|
var v5Css = require('@hanzogui/config/v5-css');
|
|
9
10
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
|
-
var
|
|
11
|
-
var tailwindMerge = require('tailwind-merge');
|
|
11
|
+
var ui = require('@hanzo/ui');
|
|
12
12
|
var lucideReact = require('lucide-react');
|
|
13
13
|
var usehooks = require('@uidotdev/usehooks');
|
|
14
14
|
var esToolkit = require('es-toolkit');
|
|
@@ -195,6 +195,7 @@ var luxThemes = {
|
|
|
195
195
|
};
|
|
196
196
|
var config = gui.createGui({
|
|
197
197
|
...v5.defaultConfig,
|
|
198
|
+
...guiConfig.config,
|
|
198
199
|
animations: v5Css.animations,
|
|
199
200
|
settings: {
|
|
200
201
|
...v5.defaultConfig.settings,
|
|
@@ -243,9 +244,6 @@ var AppProvider = ({
|
|
|
243
244
|
const theme = defaultTheme ?? whiteLabel.theme;
|
|
244
245
|
return /* @__PURE__ */ jsxRuntime.jsx(WhiteLabelContext.Provider, { value: whiteLabel, children: /* @__PURE__ */ jsxRuntime.jsx(gui.GuiProvider, { config: lux_config_default, defaultTheme: theme, children: /* @__PURE__ */ jsxRuntime.jsx(reactQuery.QueryClientProvider, { client: queryClient ?? defaultQueryClient, children }) }) });
|
|
245
246
|
};
|
|
246
|
-
function cn(...inputs) {
|
|
247
|
-
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
248
|
-
}
|
|
249
247
|
var NARROW_PX = 640;
|
|
250
248
|
var TOUCH_PX = 1024;
|
|
251
249
|
function useBelow(px) {
|
|
@@ -930,7 +928,7 @@ var Row = ({ item, onDone, menu }) => {
|
|
|
930
928
|
item.hint ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs opacity-60", children: item.hint }) : null,
|
|
931
929
|
item.selected ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { "aria-hidden": "true", className: "h-4 w-4 shrink-0" }) : null
|
|
932
930
|
] });
|
|
933
|
-
const className = cn(
|
|
931
|
+
const className = ui.cn(
|
|
934
932
|
"flex w-full cursor-pointer select-none items-center gap-2.5 rounded-md px-2 py-2 text-left text-sm",
|
|
935
933
|
"hover:bg-[rgba(127,127,127,0.14)]",
|
|
936
934
|
item.danger && "text-[var(--color-text-error,#e5484d)]"
|
|
@@ -983,7 +981,7 @@ var Switcher = ({
|
|
|
983
981
|
"aria-label": title,
|
|
984
982
|
"aria-haspopup": "menu",
|
|
985
983
|
"aria-expanded": open,
|
|
986
|
-
className: cn(
|
|
984
|
+
className: ui.cn(
|
|
987
985
|
"flex max-w-[14rem] items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium",
|
|
988
986
|
"hover:bg-[rgba(127,127,127,0.14)]"
|
|
989
987
|
),
|
|
@@ -1157,7 +1155,7 @@ var AppNav = ({
|
|
|
1157
1155
|
{
|
|
1158
1156
|
href: l.href,
|
|
1159
1157
|
"aria-current": l.active ? "page" : void 0,
|
|
1160
|
-
className: cn(
|
|
1158
|
+
className: ui.cn(
|
|
1161
1159
|
"rounded-md px-3 py-1.5 text-sm font-medium",
|
|
1162
1160
|
l.active ? "bg-[rgba(127,127,127,0.14)]" : "opacity-75 hover:opacity-100"
|
|
1163
1161
|
),
|
|
@@ -1408,7 +1406,7 @@ var Skeleton = React32__namespace.forwardRef(
|
|
|
1408
1406
|
const shimStyle = shimToStyle(props);
|
|
1409
1407
|
const mergedStyle = Object.keys(shimStyle).length > 0 || styleProp ? { ...shimStyle, ...styleProp } : void 0;
|
|
1410
1408
|
const hideBelowClass = props.hideBelow ? HIDE_BELOW_MAP[props.hideBelow] : void 0;
|
|
1411
|
-
const cls = hideBelowClass ? cn(className, hideBelowClass) : className;
|
|
1409
|
+
const cls = hideBelowClass ? ui.cn(className, hideBelowClass) : className;
|
|
1412
1410
|
const htmlRest = stripShims(allRest);
|
|
1413
1411
|
if (!loading) {
|
|
1414
1412
|
if (asChild && React32__namespace.isValidElement(children)) return children;
|
|
@@ -1420,7 +1418,7 @@ var Skeleton = React32__namespace.forwardRef(
|
|
|
1420
1418
|
{
|
|
1421
1419
|
ref,
|
|
1422
1420
|
"data-loading": true,
|
|
1423
|
-
className: cn(SKELETON_CLASSES, "[&_*]:invisible", cls),
|
|
1421
|
+
className: ui.cn(SKELETON_CLASSES, "[&_*]:invisible", cls),
|
|
1424
1422
|
style: mergedStyle,
|
|
1425
1423
|
...htmlRest,
|
|
1426
1424
|
children
|
|
@@ -1432,7 +1430,7 @@ var Skeleton = React32__namespace.forwardRef(
|
|
|
1432
1430
|
{
|
|
1433
1431
|
ref,
|
|
1434
1432
|
"data-loading": true,
|
|
1435
|
-
className: cn(SKELETON_CLASSES, children ? "[&_*]:invisible" : "min-h-5", cls),
|
|
1433
|
+
className: ui.cn(SKELETON_CLASSES, children ? "[&_*]:invisible" : "min-h-5", cls),
|
|
1436
1434
|
style: mergedStyle,
|
|
1437
1435
|
...htmlRest,
|
|
1438
1436
|
children
|
|
@@ -1449,7 +1447,7 @@ var SkeletonCircle = React32__namespace.forwardRef(
|
|
|
1449
1447
|
{
|
|
1450
1448
|
ref,
|
|
1451
1449
|
loading,
|
|
1452
|
-
className: cn("rounded-full shrink-0", className),
|
|
1450
|
+
className: ui.cn("rounded-full shrink-0", className),
|
|
1453
1451
|
style: { width: dimension, height: dimension, ...rest.style },
|
|
1454
1452
|
...rest
|
|
1455
1453
|
}
|
|
@@ -1459,11 +1457,11 @@ var SkeletonCircle = React32__namespace.forwardRef(
|
|
|
1459
1457
|
var SkeletonText = React32__namespace.forwardRef(
|
|
1460
1458
|
function SkeletonText2(props, ref) {
|
|
1461
1459
|
const { noOfLines = 3, loading = true, className, ...rest } = props;
|
|
1462
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn("flex w-full flex-col gap-2", className), ...rest, children: Array.from({ length: noOfLines }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1460
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: ui.cn("flex w-full flex-col gap-2", className), ...rest, children: Array.from({ length: noOfLines }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1463
1461
|
Skeleton,
|
|
1464
1462
|
{
|
|
1465
1463
|
loading,
|
|
1466
|
-
className: cn("h-4", index === noOfLines - 1 && "max-w-[80%]")
|
|
1464
|
+
className: ui.cn("h-4", index === noOfLines - 1 && "max-w-[80%]")
|
|
1467
1465
|
},
|
|
1468
1466
|
index
|
|
1469
1467
|
)) });
|
|
@@ -2243,17 +2241,6 @@ var Button = React32__namespace.forwardRef(
|
|
|
2243
2241
|
return button;
|
|
2244
2242
|
}
|
|
2245
2243
|
);
|
|
2246
|
-
var SIZE_CLASSES = {
|
|
2247
|
-
"2xs": "px-2 h-5 min-w-5 text-xs rounded-sm gap-1",
|
|
2248
|
-
xs: "px-2 h-6 min-w-6 text-sm rounded-sm gap-1",
|
|
2249
|
-
sm: "px-3 h-8 min-w-8 text-sm rounded-md gap-1",
|
|
2250
|
-
md: "px-3 h-10 min-w-10 text-base rounded-md gap-2"
|
|
2251
|
-
};
|
|
2252
|
-
function buttonVariants(opts) {
|
|
2253
|
-
const v = opts?.variant ?? "solid";
|
|
2254
|
-
const s = opts?.size ?? "md";
|
|
2255
|
-
return [BASE_CLASSES, VARIANT_CLASSES[v] ?? "", SIZE_CLASSES[s] ?? ""].filter(Boolean).join(" ");
|
|
2256
|
-
}
|
|
2257
2244
|
var ButtonGroup = React32__namespace.forwardRef(
|
|
2258
2245
|
function ButtonGroup2(props, ref) {
|
|
2259
2246
|
const { className, ...rest } = props;
|
|
@@ -2529,40 +2516,40 @@ function stripUtmParams(url) {
|
|
|
2529
2516
|
}
|
|
2530
2517
|
}
|
|
2531
2518
|
var VARIANT_CLASSES2 = {
|
|
2532
|
-
primary: cn(
|
|
2519
|
+
primary: ui.cn(
|
|
2533
2520
|
"text-[var(--color-link-primary)]",
|
|
2534
2521
|
"hover:no-underline hover:text-[var(--color-link-primary-hover)]",
|
|
2535
2522
|
"data-[hover]:no-underline data-[hover]:text-[var(--color-link-primary-hover)]"
|
|
2536
2523
|
),
|
|
2537
|
-
secondary: cn(
|
|
2524
|
+
secondary: ui.cn(
|
|
2538
2525
|
"text-[var(--color-link-secondary)]",
|
|
2539
2526
|
"hover:no-underline hover:text-[var(--color-hover)]",
|
|
2540
2527
|
"data-[hover]:no-underline data-[hover]:text-[var(--color-hover)]"
|
|
2541
2528
|
),
|
|
2542
|
-
subtle: cn(
|
|
2529
|
+
subtle: ui.cn(
|
|
2543
2530
|
"text-[var(--color-link-subtle)]",
|
|
2544
2531
|
"hover:text-[var(--color-link-subtle-hover)] hover:underline hover:decoration-[var(--color-link-subtle-hover)]",
|
|
2545
2532
|
"data-[hover]:text-[var(--color-link-subtle-hover)] data-[hover]:underline data-[hover]:decoration-[var(--color-link-subtle-hover)]"
|
|
2546
2533
|
),
|
|
2547
|
-
underlaid: cn(
|
|
2534
|
+
underlaid: ui.cn(
|
|
2548
2535
|
"text-[var(--color-link-primary)] bg-[var(--color-link-underlaid-bg)]",
|
|
2549
2536
|
"px-2 py-1.5 rounded-md text-sm",
|
|
2550
2537
|
"hover:text-[var(--color-link-primary-hover)] hover:no-underline",
|
|
2551
2538
|
"data-[hover]:text-[var(--color-link-primary-hover)] data-[hover]:no-underline"
|
|
2552
2539
|
),
|
|
2553
|
-
menu: cn(
|
|
2540
|
+
menu: ui.cn(
|
|
2554
2541
|
"text-[var(--color-link-menu)]",
|
|
2555
2542
|
"hover:text-[var(--color-hover)] hover:no-underline",
|
|
2556
2543
|
"data-[hover]:text-[var(--color-hover)] data-[hover]:no-underline"
|
|
2557
2544
|
),
|
|
2558
|
-
navigation: cn(
|
|
2545
|
+
navigation: ui.cn(
|
|
2559
2546
|
"text-[var(--color-link-nav-fg)] bg-transparent",
|
|
2560
2547
|
"hover:text-[var(--color-link-nav-fg-hover)] hover:no-underline",
|
|
2561
2548
|
"data-[hover]:text-[var(--color-link-nav-fg-hover)] data-[hover]:no-underline",
|
|
2562
2549
|
"data-[selected]:text-[var(--color-link-nav-fg-selected)] data-[selected]:bg-[var(--color-link-nav-bg-selected)]",
|
|
2563
2550
|
"data-[active]:text-[var(--color-link-nav-fg-active)]"
|
|
2564
2551
|
),
|
|
2565
|
-
plain: cn(
|
|
2552
|
+
plain: ui.cn(
|
|
2566
2553
|
"text-inherit",
|
|
2567
2554
|
"hover:no-underline",
|
|
2568
2555
|
"data-[hover]:no-underline"
|
|
@@ -2572,7 +2559,7 @@ var BASE_CLASSES2 = "inline-flex items-center gap-0 cursor-pointer data-[disable
|
|
|
2572
2559
|
var LinkExternalIcon = ({ color }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2573
2560
|
ArrowIcon,
|
|
2574
2561
|
{
|
|
2575
|
-
className: cn(
|
|
2562
|
+
className: ui.cn(
|
|
2576
2563
|
"size-3 align-middle shrink-0",
|
|
2577
2564
|
"group-hover:text-inherit"
|
|
2578
2565
|
),
|
|
@@ -2637,7 +2624,7 @@ var Link = React32__namespace.default.forwardRef(
|
|
|
2637
2624
|
if (_minW !== void 0) shimStyle.minWidth = typeof _minW === "number" ? `${_minW * SPACING}px` : _minW;
|
|
2638
2625
|
if (_justifyContent) shimStyle.justifyContent = _justifyContent;
|
|
2639
2626
|
if (_position) shimStyle.position = _position;
|
|
2640
|
-
const linkClasses = cn(BASE_CLASSES2, VARIANT_CLASSES2[variant], className);
|
|
2627
|
+
const linkClasses = ui.cn(BASE_CLASSES2, VARIANT_CLASSES2[variant], className);
|
|
2641
2628
|
const linkStyle = Object.keys(shimStyle).length > 0 ? shimStyle : void 0;
|
|
2642
2629
|
if (external) {
|
|
2643
2630
|
const processedHref = typeof href === "string" ? stripUtmParams(href) : href;
|
|
@@ -2645,7 +2632,7 @@ var Link = React32__namespace.default.forwardRef(
|
|
|
2645
2632
|
"a",
|
|
2646
2633
|
{
|
|
2647
2634
|
href: processedHref,
|
|
2648
|
-
className: cn("group", linkClasses),
|
|
2635
|
+
className: ui.cn("group", linkClasses),
|
|
2649
2636
|
style: linkStyle,
|
|
2650
2637
|
target: "_blank",
|
|
2651
2638
|
rel: "noopener noreferrer",
|
|
@@ -2689,7 +2676,7 @@ var LinkBox = React32__namespace.default.forwardRef(
|
|
|
2689
2676
|
"div",
|
|
2690
2677
|
{
|
|
2691
2678
|
ref,
|
|
2692
|
-
className: cn("relative", className),
|
|
2679
|
+
className: ui.cn("relative", className),
|
|
2693
2680
|
...rest
|
|
2694
2681
|
}
|
|
2695
2682
|
);
|
|
@@ -2725,7 +2712,7 @@ var LinkOverlay = React32__namespace.default.forwardRef(
|
|
|
2725
2712
|
position: _p2,
|
|
2726
2713
|
...rest
|
|
2727
2714
|
} = props;
|
|
2728
|
-
const overlayClasses = cn(
|
|
2715
|
+
const overlayClasses = ui.cn(
|
|
2729
2716
|
BASE_CLASSES2,
|
|
2730
2717
|
VARIANT_CLASSES2[variant],
|
|
2731
2718
|
// Static positioning with a ::before pseudo-element that covers the LinkBox
|
|
@@ -3014,7 +3001,7 @@ var DialogContent = React32__namespace.forwardRef(function DialogContent2(props,
|
|
|
3014
3001
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3015
3002
|
"div",
|
|
3016
3003
|
{
|
|
3017
|
-
className: cn(
|
|
3004
|
+
className: ui.cn(
|
|
3018
3005
|
"fixed inset-0 z-[1400] flex w-screen h-dvh",
|
|
3019
3006
|
"items-start lg:items-center justify-center",
|
|
3020
3007
|
"overflow-hidden"
|
|
@@ -3024,7 +3011,7 @@ var DialogContent = React32__namespace.forwardRef(function DialogContent2(props,
|
|
|
3024
3011
|
{
|
|
3025
3012
|
ref,
|
|
3026
3013
|
unstyled: true,
|
|
3027
|
-
className: cn(
|
|
3014
|
+
className: ui.cn(
|
|
3028
3015
|
// Base content styles
|
|
3029
3016
|
"relative flex flex-col w-full p-6 outline-none text-base",
|
|
3030
3017
|
"bg-dialog-bg text-dialog-fg shadow-lg rounded-xl",
|
|
@@ -3055,7 +3042,7 @@ var DialogHeader = React32__namespace.forwardRef(function DialogHeader2(props, r
|
|
|
3055
3042
|
"div",
|
|
3056
3043
|
{
|
|
3057
3044
|
ref,
|
|
3058
|
-
className: cn(
|
|
3045
|
+
className: ui.cn(
|
|
3059
3046
|
"flex-none p-0 mb-2 flex items-center gap-x-2 min-h-[40px]",
|
|
3060
3047
|
className
|
|
3061
3048
|
),
|
|
@@ -3066,7 +3053,7 @@ var DialogHeader = React32__namespace.forwardRef(function DialogHeader2(props, r
|
|
|
3066
3053
|
gui.Dialog.Title,
|
|
3067
3054
|
{
|
|
3068
3055
|
unstyled: true,
|
|
3069
|
-
className: cn(
|
|
3056
|
+
className: ui.cn(
|
|
3070
3057
|
"text-base lg:text-lg font-medium",
|
|
3071
3058
|
"whitespace-nowrap overflow-hidden text-ellipsis"
|
|
3072
3059
|
),
|
|
@@ -3089,7 +3076,7 @@ var DialogBody = React32__namespace.forwardRef(function DialogBody2({ className,
|
|
|
3089
3076
|
"div",
|
|
3090
3077
|
{
|
|
3091
3078
|
ref,
|
|
3092
|
-
className: cn("flex-1 p-0 overflow-auto", className),
|
|
3079
|
+
className: ui.cn("flex-1 p-0 overflow-auto", className),
|
|
3093
3080
|
style: Object.keys(bodyStyle).length > 0 ? bodyStyle : void 0,
|
|
3094
3081
|
...props
|
|
3095
3082
|
}
|
|
@@ -3100,7 +3087,7 @@ var DialogFooter = React32__namespace.forwardRef(function DialogFooter2({ classN
|
|
|
3100
3087
|
"div",
|
|
3101
3088
|
{
|
|
3102
3089
|
ref,
|
|
3103
|
-
className: cn("flex items-center justify-start gap-6 p-0 mt-6", className),
|
|
3090
|
+
className: ui.cn("flex items-center justify-start gap-6 p-0 mt-6", className),
|
|
3104
3091
|
...props
|
|
3105
3092
|
}
|
|
3106
3093
|
);
|
|
@@ -3279,9 +3266,18 @@ var Field = React32__namespace.forwardRef(
|
|
|
3279
3266
|
);
|
|
3280
3267
|
var TAG = { "1": gui.H1, "2": gui.H2, "3": gui.H3 };
|
|
3281
3268
|
var RAMP = {
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3269
|
+
// Tokens, not numbers. `$n` publishes as `var(--text-*, <px>)` through the
|
|
3270
|
+
// shared config, and @hanzo/design multiplies `--text-*` by `--type-scale` —
|
|
3271
|
+
// so these three lines are what lets a person's type-size setting reach a
|
|
3272
|
+
// heading at all. Written as `18` they would render identically today and
|
|
3273
|
+
// never move again.
|
|
3274
|
+
//
|
|
3275
|
+
// lineHeight is deliberately absent: gui derives it from the resolved size,
|
|
3276
|
+
// so it scales WITH the text. A fixed 24 next to an adjustable size is how
|
|
3277
|
+
// you get 32px text in a 24px box.
|
|
3278
|
+
"1": { fontSize: "$6", $lg: { fontSize: "$10", letterSpacing: -0.5 } },
|
|
3279
|
+
"2": { fontSize: "$5", $lg: { fontSize: "$8" } },
|
|
3280
|
+
"3": { fontSize: "$3", fontWeight: "600", $lg: { fontSize: "$6", fontWeight: "500" } }
|
|
3285
3281
|
};
|
|
3286
3282
|
var Heading = React32__namespace.default.forwardRef(
|
|
3287
3283
|
function Heading2({ level, ...rest }, ref) {
|
|
@@ -3640,7 +3636,7 @@ var Image = React32__namespace.default.forwardRef(
|
|
|
3640
3636
|
alt: alt || "",
|
|
3641
3637
|
onError: handleLoadError,
|
|
3642
3638
|
onLoad: handleLoadSuccess,
|
|
3643
|
-
className: cn(className),
|
|
3639
|
+
className: ui.cn(className),
|
|
3644
3640
|
style: mergedStyle,
|
|
3645
3641
|
...extraProps
|
|
3646
3642
|
}
|
|
@@ -3649,11 +3645,11 @@ var Image = React32__namespace.default.forwardRef(
|
|
|
3649
3645
|
}
|
|
3650
3646
|
);
|
|
3651
3647
|
var SIZE5 = {
|
|
3652
|
-
xs: { height: 24, paddingHorizontal: 8, fontSize:
|
|
3653
|
-
sm: { height: 32, paddingHorizontal: 12, fontSize:
|
|
3654
|
-
md: { height: 40, paddingHorizontal: 16, fontSize:
|
|
3655
|
-
lg: { height: 48, paddingHorizontal: 16, fontSize:
|
|
3656
|
-
"2xl": { height: 56, paddingHorizontal: 16, fontSize:
|
|
3648
|
+
xs: { height: 24, paddingHorizontal: 8, fontSize: "$1", borderRadius: 4 },
|
|
3649
|
+
sm: { height: 32, paddingHorizontal: 12, fontSize: "$3", borderRadius: 6 },
|
|
3650
|
+
md: { height: 40, paddingHorizontal: 16, fontSize: "$5", borderRadius: 6 },
|
|
3651
|
+
lg: { height: 48, paddingHorizontal: 16, fontSize: "$6", borderRadius: 8 },
|
|
3652
|
+
"2xl": { height: 56, paddingHorizontal: 16, fontSize: "$7", borderRadius: 8 }
|
|
3657
3653
|
};
|
|
3658
3654
|
var VARIANT3 = {
|
|
3659
3655
|
outline: { borderWidth: 1, borderStyle: "solid" },
|
|
@@ -3843,7 +3839,7 @@ var BOX = {
|
|
|
3843
3839
|
hoverStyle: { borderColor: "var(--color-input-border-hover)" },
|
|
3844
3840
|
focusStyle: {
|
|
3845
3841
|
borderColor: "var(--color-input-border-focus)",
|
|
3846
|
-
boxShadow: "
|
|
3842
|
+
boxShadow: "var(--shadow-md)"
|
|
3847
3843
|
},
|
|
3848
3844
|
disabledStyle: { opacity: 0.4 }
|
|
3849
3845
|
};
|
|
@@ -4083,7 +4079,7 @@ var PopoverContent = React32__namespace.forwardRef(function PopoverContent2(prop
|
|
|
4083
4079
|
{
|
|
4084
4080
|
ref,
|
|
4085
4081
|
unstyled: true,
|
|
4086
|
-
className: cn(
|
|
4082
|
+
className: ui.cn(
|
|
4087
4083
|
"z-50 rounded-lg border border-[var(--color-popover-border,var(--color-border-divider))]",
|
|
4088
4084
|
"bg-[var(--color-popover-bg,var(--color-dialog-bg))]",
|
|
4089
4085
|
"shadow-[var(--shadow-popover)]",
|
|
@@ -4106,7 +4102,7 @@ var PopoverArrow = React32__namespace.forwardRef(function PopoverArrow2(props, r
|
|
|
4106
4102
|
{
|
|
4107
4103
|
ref,
|
|
4108
4104
|
unstyled: true,
|
|
4109
|
-
className: cn("fill-[var(--color-popover-bg,var(--color-dialog-bg))]", className),
|
|
4105
|
+
className: ui.cn("fill-[var(--color-popover-bg,var(--color-dialog-bg))]", className),
|
|
4110
4106
|
...rest
|
|
4111
4107
|
}
|
|
4112
4108
|
);
|
|
@@ -4117,7 +4113,7 @@ var PopoverCloseTrigger = React32__namespace.forwardRef(function PopoverCloseTri
|
|
|
4117
4113
|
gui.Popover.Close,
|
|
4118
4114
|
{
|
|
4119
4115
|
unstyled: true,
|
|
4120
|
-
className: cn("absolute top-1 right-1", className),
|
|
4116
|
+
className: ui.cn("absolute top-1 right-1", className),
|
|
4121
4117
|
...rest,
|
|
4122
4118
|
asChild: true,
|
|
4123
4119
|
ref,
|
|
@@ -4164,7 +4160,7 @@ var PopoverBody = React32__namespace.forwardRef(function PopoverBody2(props, ref
|
|
|
4164
4160
|
"div",
|
|
4165
4161
|
{
|
|
4166
4162
|
ref,
|
|
4167
|
-
className: cn("p-4", className),
|
|
4163
|
+
className: ui.cn("p-4", className),
|
|
4168
4164
|
style: Object.keys(bodyStyle).length > 0 ? bodyStyle : void 0,
|
|
4169
4165
|
...rest
|
|
4170
4166
|
}
|
|
@@ -4176,7 +4172,7 @@ var PopoverHeader = React32__namespace.forwardRef(function PopoverHeader2(props,
|
|
|
4176
4172
|
"div",
|
|
4177
4173
|
{
|
|
4178
4174
|
ref,
|
|
4179
|
-
className: cn("px-4 pt-4 pb-0 font-semibold", className),
|
|
4175
|
+
className: ui.cn("px-4 pt-4 pb-0 font-semibold", className),
|
|
4180
4176
|
...rest
|
|
4181
4177
|
}
|
|
4182
4178
|
);
|
|
@@ -4187,7 +4183,7 @@ var PopoverFooter = React32__namespace.forwardRef(function PopoverFooter2(props,
|
|
|
4187
4183
|
"div",
|
|
4188
4184
|
{
|
|
4189
4185
|
ref,
|
|
4190
|
-
className: cn("px-4 pb-4 pt-0", className),
|
|
4186
|
+
className: ui.cn("px-4 pb-4 pt-0", className),
|
|
4191
4187
|
...rest
|
|
4192
4188
|
}
|
|
4193
4189
|
);
|
|
@@ -4198,7 +4194,7 @@ var PopoverTitle = React32__namespace.forwardRef(function PopoverTitle2(props, r
|
|
|
4198
4194
|
"h3",
|
|
4199
4195
|
{
|
|
4200
4196
|
ref,
|
|
4201
|
-
className: cn("text-base font-semibold", className),
|
|
4197
|
+
className: ui.cn("text-base font-semibold", className),
|
|
4202
4198
|
...rest
|
|
4203
4199
|
}
|
|
4204
4200
|
);
|
|
@@ -4209,7 +4205,7 @@ var PopoverDescription = React32__namespace.forwardRef(function PopoverDescripti
|
|
|
4209
4205
|
"p",
|
|
4210
4206
|
{
|
|
4211
4207
|
ref,
|
|
4212
|
-
className: cn("text-sm", className),
|
|
4208
|
+
className: ui.cn("text-sm", className),
|
|
4213
4209
|
...rest
|
|
4214
4210
|
}
|
|
4215
4211
|
);
|
|
@@ -4351,7 +4347,7 @@ var ProgressCircleRing = React32__namespace.forwardRef(function ProgressCircleRi
|
|
|
4351
4347
|
width: size,
|
|
4352
4348
|
height: size,
|
|
4353
4349
|
viewBox: `0 0 ${size} ${size}`,
|
|
4354
|
-
className: value === null ? cn("lux-spin", className) : className,
|
|
4350
|
+
className: value === null ? ui.cn("lux-spin", className) : className,
|
|
4355
4351
|
...rest,
|
|
4356
4352
|
children: [
|
|
4357
4353
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4601,7 +4597,7 @@ function FilterInput({ placeholder, initialValue = "", onChange }) {
|
|
|
4601
4597
|
placeholder,
|
|
4602
4598
|
value,
|
|
4603
4599
|
onChange: handleChange,
|
|
4604
|
-
className: cn(
|
|
4600
|
+
className: ui.cn(
|
|
4605
4601
|
"w-full px-3 py-2 text-sm outline-none",
|
|
4606
4602
|
"bg-transparent border-b border-[var(--color-border-divider)]",
|
|
4607
4603
|
"placeholder:text-[var(--color-input-placeholder)]"
|
|
@@ -4714,7 +4710,7 @@ var SelectRoot = React32__namespace.forwardRef(
|
|
|
4714
4710
|
"div",
|
|
4715
4711
|
{
|
|
4716
4712
|
ref,
|
|
4717
|
-
className: cn("relative inline-flex", className),
|
|
4713
|
+
className: ui.cn("relative inline-flex", className),
|
|
4718
4714
|
style: inlineStyle,
|
|
4719
4715
|
"data-invalid": invalid || void 0,
|
|
4720
4716
|
"data-disabled": disabled || void 0,
|
|
@@ -4739,7 +4735,7 @@ var SelectControl = React32__namespace.forwardRef(
|
|
|
4739
4735
|
ref,
|
|
4740
4736
|
asChild,
|
|
4741
4737
|
unstyled: true,
|
|
4742
|
-
className: cn(
|
|
4738
|
+
className: ui.cn(
|
|
4743
4739
|
"group peer inline-flex items-center gap-2 cursor-pointer",
|
|
4744
4740
|
"rounded-lg text-sm transition-colors outline-none",
|
|
4745
4741
|
"border border-[var(--color-input-border)] bg-[var(--color-input-bg)] text-[var(--color-input-fg)]",
|
|
@@ -4778,7 +4774,7 @@ var SelectClearTrigger = React32__namespace.forwardRef(
|
|
|
4778
4774
|
ref,
|
|
4779
4775
|
type: "button",
|
|
4780
4776
|
onClick: handleClick,
|
|
4781
|
-
className: cn("pointer-events-auto", className),
|
|
4777
|
+
className: ui.cn("pointer-events-auto", className),
|
|
4782
4778
|
"aria-label": "Clear selection",
|
|
4783
4779
|
...rest,
|
|
4784
4780
|
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { className: "h-5 w-5", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M18 6L6 18M6 6l12 12", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) })
|
|
@@ -4797,7 +4793,7 @@ var SelectContent = React32__namespace.forwardRef(
|
|
|
4797
4793
|
/* @__PURE__ */ jsxRuntime.jsx(gui.Select.Content, { ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4798
4794
|
gui.Select.Viewport,
|
|
4799
4795
|
{
|
|
4800
|
-
className: cn(
|
|
4796
|
+
className: ui.cn(
|
|
4801
4797
|
"min-w-[8rem] overflow-hidden rounded-lg p-1",
|
|
4802
4798
|
"bg-[var(--color-popover-bg)] shadow-[var(--shadow-popover)]",
|
|
4803
4799
|
"border border-[var(--color-border-divider)]",
|
|
@@ -4824,7 +4820,7 @@ var SelectItem = React32__namespace.forwardRef(
|
|
|
4824
4820
|
ref,
|
|
4825
4821
|
index: index ?? 0,
|
|
4826
4822
|
value: item.value,
|
|
4827
|
-
className: cn(
|
|
4823
|
+
className: ui.cn(
|
|
4828
4824
|
"relative flex cursor-pointer select-none items-center gap-2",
|
|
4829
4825
|
"rounded-md px-3 py-2 text-sm outline-none",
|
|
4830
4826
|
"text-[var(--color-text-primary)]",
|
|
@@ -4858,7 +4854,7 @@ var SelectValueText = React32__namespace.forwardRef(
|
|
|
4858
4854
|
const label = size === "lg" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4859
4855
|
"span",
|
|
4860
4856
|
{
|
|
4861
|
-
className: cn(
|
|
4857
|
+
className: ui.cn(
|
|
4862
4858
|
"text-xs block",
|
|
4863
4859
|
invalid ? "text-[var(--color-text-error)]" : "text-[var(--color-input-placeholder)]"
|
|
4864
4860
|
),
|
|
@@ -4892,7 +4888,7 @@ var SelectValueText = React32__namespace.forwardRef(
|
|
|
4892
4888
|
{
|
|
4893
4889
|
ref,
|
|
4894
4890
|
placeholder: placeholderText,
|
|
4895
|
-
className: cn("flex flex-col justify-center min-w-0 truncate", className),
|
|
4891
|
+
className: ui.cn("flex flex-col justify-center min-w-0 truncate", className),
|
|
4896
4892
|
...rest,
|
|
4897
4893
|
children: content
|
|
4898
4894
|
}
|
|
@@ -4902,7 +4898,7 @@ var SelectValueText = React32__namespace.forwardRef(
|
|
|
4902
4898
|
var SelectItemGroup = React32__namespace.forwardRef(
|
|
4903
4899
|
function SelectItemGroup2(props, ref) {
|
|
4904
4900
|
const { children, label, className, ...rest } = props;
|
|
4905
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(gui.Select.Group, { ref, className: cn("py-1", className), ...rest, children: [
|
|
4901
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(gui.Select.Group, { ref, className: ui.cn("py-1", className), ...rest, children: [
|
|
4906
4902
|
/* @__PURE__ */ jsxRuntime.jsx(gui.Select.Label, { className: "px-3 py-1.5 text-xs font-medium text-[var(--color-text-secondary)]", children: label }),
|
|
4907
4903
|
children
|
|
4908
4904
|
] });
|
|
@@ -5091,7 +5087,7 @@ var Slider = React32__namespace.forwardRef(
|
|
|
5091
5087
|
borderWidth: 2,
|
|
5092
5088
|
borderColor: ACTIVE,
|
|
5093
5089
|
backgroundColor: WHITE,
|
|
5094
|
-
boxShadow: "
|
|
5090
|
+
boxShadow: "var(--shadow-sm)",
|
|
5095
5091
|
transition: "quick",
|
|
5096
5092
|
hoverStyle: { borderColor: ACTIVE_HOVER },
|
|
5097
5093
|
focusStyle: { outlineWidth: 2, outlineStyle: "solid", outlineColor: ACTIVE, outlineOffset: 2 },
|
|
@@ -5216,7 +5212,7 @@ var SwitchBase = React32__namespace.forwardRef(
|
|
|
5216
5212
|
height: s.thumb,
|
|
5217
5213
|
borderRadius: 9999,
|
|
5218
5214
|
backgroundColor: WHITE2,
|
|
5219
|
-
boxShadow: "
|
|
5215
|
+
boxShadow: "var(--shadow-sm)",
|
|
5220
5216
|
children: thumbLabel && /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { width: "100%", height: "100%", textAlign: "center", fontSize: 8, children: checkedState ? thumbLabel.on : thumbLabel.off })
|
|
5221
5217
|
}
|
|
5222
5218
|
)
|
|
@@ -5437,7 +5433,7 @@ var TableRoot = React32__namespace.forwardRef(
|
|
|
5437
5433
|
"table",
|
|
5438
5434
|
{
|
|
5439
5435
|
ref,
|
|
5440
|
-
className: cn("w-full border-collapse text-sm", className),
|
|
5436
|
+
className: ui.cn("w-full border-collapse text-sm", className),
|
|
5441
5437
|
style: merged,
|
|
5442
5438
|
...rest,
|
|
5443
5439
|
children
|
|
@@ -5454,7 +5450,7 @@ var TableHeader = React32__namespace.forwardRef(
|
|
|
5454
5450
|
"thead",
|
|
5455
5451
|
{
|
|
5456
5452
|
ref,
|
|
5457
|
-
className: cn("", className),
|
|
5453
|
+
className: ui.cn("", className),
|
|
5458
5454
|
style: merged,
|
|
5459
5455
|
...rest,
|
|
5460
5456
|
children
|
|
@@ -5471,7 +5467,7 @@ var TableBody = React32__namespace.forwardRef(
|
|
|
5471
5467
|
"tbody",
|
|
5472
5468
|
{
|
|
5473
5469
|
ref,
|
|
5474
|
-
className: cn("", className),
|
|
5470
|
+
className: ui.cn("", className),
|
|
5475
5471
|
style: merged,
|
|
5476
5472
|
...rest,
|
|
5477
5473
|
children
|
|
@@ -5488,7 +5484,7 @@ var TableRow = React32__namespace.forwardRef(
|
|
|
5488
5484
|
"tr",
|
|
5489
5485
|
{
|
|
5490
5486
|
ref,
|
|
5491
|
-
className: cn("", className),
|
|
5487
|
+
className: ui.cn("", className),
|
|
5492
5488
|
style: merged,
|
|
5493
5489
|
...rest,
|
|
5494
5490
|
children
|
|
@@ -5509,7 +5505,7 @@ var TableCell = React32__namespace.forwardRef(
|
|
|
5509
5505
|
"td",
|
|
5510
5506
|
{
|
|
5511
5507
|
ref,
|
|
5512
|
-
className: cn("px-3 py-2.5 align-top text-sm", className),
|
|
5508
|
+
className: ui.cn("px-3 py-2.5 align-top text-sm", className),
|
|
5513
5509
|
style: merged,
|
|
5514
5510
|
...rest,
|
|
5515
5511
|
children
|
|
@@ -5530,7 +5526,7 @@ var TableColumnHeader = React32__namespace.forwardRef(
|
|
|
5530
5526
|
"th",
|
|
5531
5527
|
{
|
|
5532
5528
|
ref,
|
|
5533
|
-
className: cn(
|
|
5529
|
+
className: ui.cn(
|
|
5534
5530
|
"px-3 py-2 text-xs font-semibold uppercase tracking-wider",
|
|
5535
5531
|
"bg-[var(--color-table-header-bg)] text-[var(--color-table-header-fg)]",
|
|
5536
5532
|
className
|
|
@@ -5554,7 +5550,7 @@ var TableColumnHeaderSortable = (props) => {
|
|
|
5554
5550
|
isActive && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5555
5551
|
"span",
|
|
5556
5552
|
{
|
|
5557
|
-
className: cn(
|
|
5553
|
+
className: ui.cn(
|
|
5558
5554
|
"absolute top-0 inline-flex h-full w-4 items-center",
|
|
5559
5555
|
indicatorPosition === "left" ? "-left-5" : "-right-5",
|
|
5560
5556
|
isAsc ? "-rotate-90" : "rotate-90"
|
|
@@ -5590,7 +5586,7 @@ var TableHeaderSticky = (props) => {
|
|
|
5590
5586
|
TableHeader,
|
|
5591
5587
|
{
|
|
5592
5588
|
ref,
|
|
5593
|
-
className: cn("sticky z-[1] bg-white dark:bg-black", className),
|
|
5589
|
+
className: ui.cn("sticky z-[1] bg-white dark:bg-black", className),
|
|
5594
5590
|
style: {
|
|
5595
5591
|
top: top ? `${top}px` : 0,
|
|
5596
5592
|
boxShadow: isStuck ? ACTION_BAR_SHADOW : "none",
|
|
@@ -5610,7 +5606,7 @@ var TableCaption = React32__namespace.forwardRef(
|
|
|
5610
5606
|
"caption",
|
|
5611
5607
|
{
|
|
5612
5608
|
ref,
|
|
5613
|
-
className: cn("px-3 py-2 text-sm text-[var(--color-table-header-fg)]", className),
|
|
5609
|
+
className: ui.cn("px-3 py-2 text-sm text-[var(--color-table-header-fg)]", className),
|
|
5614
5610
|
style: merged,
|
|
5615
5611
|
...rest,
|
|
5616
5612
|
children
|
|
@@ -5627,7 +5623,7 @@ var TableFooter = React32__namespace.forwardRef(
|
|
|
5627
5623
|
"tfoot",
|
|
5628
5624
|
{
|
|
5629
5625
|
ref,
|
|
5630
|
-
className: cn("", className),
|
|
5626
|
+
className: ui.cn("", className),
|
|
5631
5627
|
style: merged,
|
|
5632
5628
|
...rest,
|
|
5633
5629
|
children
|
|
@@ -5642,7 +5638,7 @@ var TableScrollWrapper = React32__namespace.forwardRef(
|
|
|
5642
5638
|
"div",
|
|
5643
5639
|
{
|
|
5644
5640
|
ref,
|
|
5645
|
-
className: cn("w-full overflow-x-auto", className),
|
|
5641
|
+
className: ui.cn("w-full overflow-x-auto", className),
|
|
5646
5642
|
...rest,
|
|
5647
5643
|
children
|
|
5648
5644
|
}
|
|
@@ -5880,11 +5876,11 @@ var Tag = React32__namespace.forwardRef(
|
|
|
5880
5876
|
}
|
|
5881
5877
|
);
|
|
5882
5878
|
var SIZE10 = {
|
|
5883
|
-
xs: { paddingHorizontal: 8, paddingVertical: 4, fontSize:
|
|
5884
|
-
sm: { paddingHorizontal: 12, paddingVertical: 8, fontSize:
|
|
5885
|
-
md: { paddingHorizontal: 16, paddingVertical: 8, fontSize:
|
|
5886
|
-
lg: { paddingHorizontal: 16, paddingVertical: 12, fontSize:
|
|
5887
|
-
"2xl": { paddingHorizontal: 16, paddingVertical: 12, fontSize:
|
|
5879
|
+
xs: { paddingHorizontal: 8, paddingVertical: 4, fontSize: "$1", borderRadius: 4 },
|
|
5880
|
+
sm: { paddingHorizontal: 12, paddingVertical: 8, fontSize: "$3", borderRadius: 6 },
|
|
5881
|
+
md: { paddingHorizontal: 16, paddingVertical: 8, fontSize: "$5", borderRadius: 6 },
|
|
5882
|
+
lg: { paddingHorizontal: 16, paddingVertical: 12, fontSize: "$6", borderRadius: 8 },
|
|
5883
|
+
"2xl": { paddingHorizontal: 16, paddingVertical: 12, fontSize: "$7", borderRadius: 8 }
|
|
5888
5884
|
};
|
|
5889
5885
|
var Textarea = React32__namespace.default.forwardRef(
|
|
5890
5886
|
({ size = "md", variant = "outline", className, onChange, onChangeText, ...rest }, ref) => {
|
|
@@ -7660,6 +7656,10 @@ var BankPage = gui.styled(gui.View, {
|
|
|
7660
7656
|
padding: 16
|
|
7661
7657
|
});
|
|
7662
7658
|
|
|
7659
|
+
Object.defineProperty(exports, "cn", {
|
|
7660
|
+
enumerable: true,
|
|
7661
|
+
get: function () { return ui.cn; }
|
|
7662
|
+
});
|
|
7663
7663
|
exports.AccordionItem = AccordionItem;
|
|
7664
7664
|
exports.AccordionItemContent = AccordionItemContent;
|
|
7665
7665
|
exports.AccordionItemTrigger = AccordionItemTrigger;
|
|
@@ -7812,8 +7812,6 @@ exports.Toaster = Toaster;
|
|
|
7812
7812
|
exports.Tooltip = Tooltip;
|
|
7813
7813
|
exports.UserMenu = UserMenu;
|
|
7814
7814
|
exports.bankColors = bankColors;
|
|
7815
|
-
exports.buttonVariants = buttonVariants;
|
|
7816
|
-
exports.cn = cn;
|
|
7817
7815
|
exports.config = config;
|
|
7818
7816
|
exports.createListCollection = createListCollection;
|
|
7819
7817
|
exports.currentHost = currentHost;
|