@luxfi/ui 6.1.3 → 7.1.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/dist/accordion.cjs +213 -0
- package/dist/accordion.d.cts +74 -0
- package/dist/accordion.d.ts +74 -0
- package/dist/accordion.js +186 -0
- package/dist/alert.cjs +430 -0
- package/dist/alert.d.cts +30 -0
- package/dist/alert.d.ts +30 -0
- package/dist/alert.js +408 -0
- package/dist/avatar.cjs +149 -0
- package/dist/avatar.d.cts +25 -0
- package/dist/avatar.d.ts +25 -0
- package/dist/avatar.js +125 -0
- package/dist/badge.cjs +452 -0
- package/dist/badge.d.cts +19 -0
- package/dist/badge.d.ts +19 -0
- package/dist/badge.js +431 -0
- package/dist/bank.cjs +272 -0
- package/dist/bank.d.cts +76 -0
- package/dist/bank.d.ts +76 -0
- package/dist/bank.js +258 -0
- package/dist/button.cjs +578 -0
- package/dist/button.d.cts +55 -0
- package/dist/button.d.ts +55 -0
- package/dist/button.js +553 -0
- package/dist/checkbox.cjs +265 -0
- package/dist/checkbox.d.cts +31 -0
- package/dist/checkbox.d.ts +31 -0
- package/dist/checkbox.js +241 -0
- package/dist/close-button.cjs +92 -0
- package/dist/close-button.d.cts +9 -0
- package/dist/close-button.d.ts +9 -0
- package/dist/close-button.js +70 -0
- package/dist/collapsible.cjs +555 -0
- package/dist/collapsible.d.cts +23 -0
- package/dist/collapsible.d.ts +23 -0
- package/dist/collapsible.js +532 -0
- package/dist/color-mode.cjs +96 -0
- package/dist/color-mode.d.cts +25 -0
- package/dist/color-mode.d.ts +25 -0
- package/dist/color-mode.js +72 -0
- package/dist/dialog.cjs +295 -0
- package/dist/dialog.d.cts +65 -0
- package/dist/dialog.d.ts +65 -0
- package/dist/dialog.js +263 -0
- package/dist/drawer.cjs +231 -0
- package/dist/drawer.d.cts +36 -0
- package/dist/drawer.d.ts +36 -0
- package/dist/drawer.js +199 -0
- package/dist/empty-state.cjs +93 -0
- package/dist/empty-state.d.cts +13 -0
- package/dist/empty-state.d.ts +13 -0
- package/dist/empty-state.js +71 -0
- package/dist/expiration-selector.cjs +138 -0
- package/dist/expiration-selector.d.cts +16 -0
- package/dist/expiration-selector.d.ts +16 -0
- package/dist/expiration-selector.js +116 -0
- package/dist/field.cjs +183 -0
- package/dist/field.d.cts +24 -0
- package/dist/field.d.ts +24 -0
- package/dist/field.js +160 -0
- package/dist/greeks-display.cjs +114 -0
- package/dist/greeks-display.d.cts +14 -0
- package/dist/greeks-display.d.ts +14 -0
- package/dist/greeks-display.js +92 -0
- package/dist/heading.cjs +41 -0
- package/dist/heading.d.cts +10 -0
- package/dist/heading.d.ts +10 -0
- package/dist/heading.js +35 -0
- package/dist/icon-button.cjs +367 -0
- package/dist/icon-button.d.cts +33 -0
- package/dist/icon-button.d.ts +33 -0
- package/dist/icon-button.js +345 -0
- package/dist/image.cjs +425 -0
- package/dist/image.d.cts +57 -0
- package/dist/image.d.ts +57 -0
- package/dist/image.js +404 -0
- package/dist/index.cjs +7220 -0
- package/dist/index.d.cts +55 -0
- package/dist/index.d.ts +55 -0
- package/dist/index.js +7043 -0
- package/dist/input-group.cjs +155 -0
- package/dist/input-group.d.cts +17 -0
- package/dist/input-group.d.ts +17 -0
- package/dist/input-group.js +133 -0
- package/dist/input.cjs +65 -0
- package/dist/input.d.cts +11 -0
- package/dist/input.d.ts +11 -0
- package/dist/input.js +59 -0
- package/dist/link.cjs +483 -0
- package/dist/link.d.cts +37 -0
- package/dist/link.d.ts +37 -0
- package/dist/link.js +459 -0
- package/dist/menu.cjs +305 -0
- package/dist/menu.d.cts +84 -0
- package/dist/menu.d.ts +84 -0
- package/dist/menu.js +269 -0
- package/dist/option-chain.cjs +221 -0
- package/dist/option-chain.d.cts +37 -0
- package/dist/option-chain.d.ts +37 -0
- package/dist/option-chain.js +199 -0
- package/dist/option-position.cjs +164 -0
- package/dist/option-position.d.cts +29 -0
- package/dist/option-position.d.ts +29 -0
- package/dist/option-position.js +142 -0
- package/dist/pin-input.cjs +182 -0
- package/dist/pin-input.d.cts +25 -0
- package/dist/pin-input.d.ts +25 -0
- package/dist/pin-input.js +160 -0
- package/dist/pnl-diagram.cjs +453 -0
- package/dist/pnl-diagram.d.cts +11 -0
- package/dist/pnl-diagram.d.ts +11 -0
- package/dist/pnl-diagram.js +431 -0
- package/dist/popover.cjs +342 -0
- package/dist/popover.d.cts +73 -0
- package/dist/popover.d.ts +73 -0
- package/dist/popover.js +310 -0
- package/dist/progress-circle.cjs +152 -0
- package/dist/progress-circle.d.cts +47 -0
- package/dist/progress-circle.d.ts +47 -0
- package/dist/progress-circle.js +128 -0
- package/dist/progress.cjs +117 -0
- package/dist/progress.d.cts +28 -0
- package/dist/progress.d.ts +28 -0
- package/dist/progress.js +94 -0
- package/dist/provider.cjs +62 -0
- package/dist/provider.d.cts +7 -0
- package/dist/provider.d.ts +7 -0
- package/dist/provider.js +40 -0
- package/dist/radio.cjs +177 -0
- package/dist/radio.d.cts +53 -0
- package/dist/radio.d.ts +53 -0
- package/dist/radio.js +153 -0
- package/dist/rating.cjs +80 -0
- package/dist/rating.d.cts +14 -0
- package/dist/rating.d.ts +14 -0
- package/dist/rating.js +58 -0
- package/dist/select.cjs +644 -0
- package/dist/select.d.cts +130 -0
- package/dist/select.d.ts +130 -0
- package/dist/select.js +610 -0
- package/dist/separator.cjs +57 -0
- package/dist/separator.d.cts +13 -0
- package/dist/separator.d.ts +13 -0
- package/dist/separator.js +51 -0
- package/dist/skeleton.cjs +223 -0
- package/dist/skeleton.d.cts +60 -0
- package/dist/skeleton.d.ts +60 -0
- package/dist/skeleton.js +199 -0
- package/dist/slider.cjs +138 -0
- package/dist/slider.d.cts +24 -0
- package/dist/slider.d.ts +24 -0
- package/dist/slider.js +115 -0
- package/dist/strategy-builder.cjs +373 -0
- package/dist/strategy-builder.d.cts +26 -0
- package/dist/strategy-builder.d.ts +26 -0
- package/dist/strategy-builder.js +351 -0
- package/dist/switch.cjs +163 -0
- package/dist/switch.d.cts +27 -0
- package/dist/switch.d.ts +27 -0
- package/dist/switch.js +140 -0
- package/dist/table.cjs +897 -0
- package/dist/table.d.cts +107 -0
- package/dist/table.d.ts +107 -0
- package/dist/table.js +866 -0
- package/dist/tabs.cjs +240 -0
- package/dist/tabs.d.cts +78 -0
- package/dist/tabs.d.ts +78 -0
- package/dist/tabs.js +213 -0
- package/dist/tag.cjs +529 -0
- package/dist/tag.d.cts +21 -0
- package/dist/tag.d.ts +21 -0
- package/dist/tag.js +507 -0
- package/dist/textarea.cjs +65 -0
- package/dist/textarea.d.cts +11 -0
- package/dist/textarea.d.ts +11 -0
- package/dist/textarea.js +59 -0
- package/dist/toaster.cjs +99 -0
- package/dist/toaster.d.cts +29 -0
- package/dist/toaster.d.ts +29 -0
- package/dist/toaster.js +96 -0
- package/dist/tooltip.cjs +172 -0
- package/dist/tooltip.d.cts +38 -0
- package/dist/tooltip.d.ts +38 -0
- package/dist/tooltip.js +150 -0
- package/dist/utils.cjs +11 -0
- package/dist/utils.d.cts +5 -0
- package/dist/utils.d.ts +5 -0
- package/dist/utils.js +9 -0
- package/package.json +284 -89
- package/src/accordion.tsx +285 -0
- package/src/alert.tsx +221 -0
- package/src/avatar.tsx +174 -0
- package/src/badge.tsx +147 -0
- package/src/bank.tsx +325 -0
- package/src/button.tsx +477 -0
- package/src/checkbox.tsx +307 -0
- package/src/close-button.tsx +77 -0
- package/src/collapsible.tsx +126 -0
- package/src/color-mode.tsx +125 -0
- package/src/dialog.tsx +346 -0
- package/src/drawer.tsx +186 -0
- package/src/empty-state.tsx +97 -0
- package/src/expiration-selector.tsx +163 -0
- package/src/field.tsx +202 -0
- package/src/greeks-display.tsx +138 -0
- package/src/heading.tsx +44 -0
- package/src/icon-button.tsx +217 -0
- package/src/image.tsx +280 -0
- package/src/index.ts +267 -138
- package/src/input-group.tsx +159 -0
- package/src/input.tsx +60 -0
- package/src/link.tsx +326 -0
- package/src/menu.tsx +471 -0
- package/src/option-chain.tsx +261 -0
- package/src/option-position.tsx +200 -0
- package/src/pin-input.tsx +187 -0
- package/src/pnl-diagram.tsx +458 -0
- package/src/popover.tsx +386 -0
- package/src/progress-circle.tsx +180 -0
- package/src/progress.tsx +109 -0
- package/src/provider.tsx +12 -0
- package/src/radio.tsx +175 -0
- package/src/rating.tsx +79 -0
- package/src/select.tsx +696 -0
- package/src/separator.tsx +59 -0
- package/src/skeleton.tsx +254 -0
- package/src/slider.tsx +152 -0
- package/src/strategy-builder.tsx +466 -0
- package/src/switch.tsx +158 -0
- package/src/table.tsx +621 -0
- package/src/tabs.tsx +354 -0
- package/src/tag.tsx +159 -0
- package/src/textarea.tsx +60 -0
- package/src/toaster.tsx +117 -0
- package/src/tokens.css +438 -0
- package/src/tooltip.tsx +191 -0
- package/src/utils/cn.ts +7 -0
- package/src/utils.ts +6 -0
- package/tokens.css +438 -0
- package/LICENSE +0 -122
- package/README.md +0 -109
package/dist/bank.d.cts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _hanzogui_core from '@hanzogui/core';
|
|
3
|
+
import { GetProps } from '@hanzogui/core';
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
|
|
6
|
+
declare const bankColors: {
|
|
7
|
+
readonly bg: "#000000";
|
|
8
|
+
readonly card: "#111111";
|
|
9
|
+
readonly cardBorder: "#222222";
|
|
10
|
+
readonly input: "#1A1A1A";
|
|
11
|
+
readonly inputBorder: "#333333";
|
|
12
|
+
readonly inputFocus: "#555555";
|
|
13
|
+
readonly inputPlaceholder: "#666666";
|
|
14
|
+
readonly text: "#FFFFFF";
|
|
15
|
+
readonly textMuted: "#888888";
|
|
16
|
+
readonly textLabel: "#CCCCCC";
|
|
17
|
+
readonly accent: "#FFFFFF";
|
|
18
|
+
readonly accentPress: "#E0E0E0";
|
|
19
|
+
readonly accentHover: "#F0F0F0";
|
|
20
|
+
readonly error: "#FF4444";
|
|
21
|
+
readonly errorBg: "#1C0A0A";
|
|
22
|
+
readonly errorBorder: "#441111";
|
|
23
|
+
readonly success: "#44FF44";
|
|
24
|
+
readonly successBg: "#0A1C0A";
|
|
25
|
+
readonly successBorder: "#114411";
|
|
26
|
+
readonly divider: "#222222";
|
|
27
|
+
readonly disabled: "#444444";
|
|
28
|
+
};
|
|
29
|
+
declare const BankCard: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {
|
|
30
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
31
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
32
|
+
type BankCardProps = GetProps<typeof BankCard>;
|
|
33
|
+
declare const BankInput: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
|
|
34
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
35
|
+
invalid?: boolean | undefined;
|
|
36
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
37
|
+
type BankInputProps = GetProps<typeof BankInput> & {
|
|
38
|
+
placeholderTextColor?: string;
|
|
39
|
+
};
|
|
40
|
+
declare const BankButton: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {
|
|
41
|
+
variant?: "primary" | "secondary" | "ghost" | undefined;
|
|
42
|
+
disabled?: boolean | undefined;
|
|
43
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
44
|
+
declare const BankButtonText: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
|
|
45
|
+
variant?: "primary" | "secondary" | "ghost" | undefined;
|
|
46
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
47
|
+
type BankButtonProps = GetProps<typeof BankButton>;
|
|
48
|
+
declare const BankHeading: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
|
|
49
|
+
size?: "sm" | "md" | "lg" | "xl" | "xs" | undefined;
|
|
50
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
51
|
+
type BankHeadingProps = GetProps<typeof BankHeading>;
|
|
52
|
+
declare const BankText: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
|
|
53
|
+
variant?: "label" | "link" | "default" | "error" | "success" | "muted" | undefined;
|
|
54
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
55
|
+
type BankTextProps = GetProps<typeof BankText>;
|
|
56
|
+
declare function BankField({ label, error, children, }: {
|
|
57
|
+
label?: string;
|
|
58
|
+
error?: string;
|
|
59
|
+
children: React__default.ReactNode;
|
|
60
|
+
}): react_jsx_runtime.JSX.Element;
|
|
61
|
+
declare const BankAlert: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {
|
|
62
|
+
status?: "error" | "success" | undefined;
|
|
63
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
64
|
+
declare const BankAlertText: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
|
|
65
|
+
status?: "error" | "success" | undefined;
|
|
66
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
67
|
+
type BankAlertProps = GetProps<typeof BankAlert>;
|
|
68
|
+
declare const BankPinBox: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
|
|
69
|
+
invalid?: boolean | undefined;
|
|
70
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
71
|
+
type BankPinBoxProps = GetProps<typeof BankPinBox>;
|
|
72
|
+
declare const BankDivider: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {}, _hanzogui_core.StaticConfigPublic>;
|
|
73
|
+
declare const BankPage: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {}, _hanzogui_core.StaticConfigPublic>;
|
|
74
|
+
type BankPageProps = GetProps<typeof BankPage>;
|
|
75
|
+
|
|
76
|
+
export { BankAlert, type BankAlertProps, BankAlertText, BankButton, type BankButtonProps, BankButtonText, BankCard, type BankCardProps, BankDivider, BankField, BankHeading, type BankHeadingProps, BankInput, type BankInputProps, BankPage, type BankPageProps, BankPinBox, type BankPinBoxProps, BankText, type BankTextProps, bankColors };
|
package/dist/bank.d.ts
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _hanzogui_core from '@hanzogui/core';
|
|
3
|
+
import { GetProps } from '@hanzogui/core';
|
|
4
|
+
import React__default from 'react';
|
|
5
|
+
|
|
6
|
+
declare const bankColors: {
|
|
7
|
+
readonly bg: "#000000";
|
|
8
|
+
readonly card: "#111111";
|
|
9
|
+
readonly cardBorder: "#222222";
|
|
10
|
+
readonly input: "#1A1A1A";
|
|
11
|
+
readonly inputBorder: "#333333";
|
|
12
|
+
readonly inputFocus: "#555555";
|
|
13
|
+
readonly inputPlaceholder: "#666666";
|
|
14
|
+
readonly text: "#FFFFFF";
|
|
15
|
+
readonly textMuted: "#888888";
|
|
16
|
+
readonly textLabel: "#CCCCCC";
|
|
17
|
+
readonly accent: "#FFFFFF";
|
|
18
|
+
readonly accentPress: "#E0E0E0";
|
|
19
|
+
readonly accentHover: "#F0F0F0";
|
|
20
|
+
readonly error: "#FF4444";
|
|
21
|
+
readonly errorBg: "#1C0A0A";
|
|
22
|
+
readonly errorBorder: "#441111";
|
|
23
|
+
readonly success: "#44FF44";
|
|
24
|
+
readonly successBg: "#0A1C0A";
|
|
25
|
+
readonly successBorder: "#114411";
|
|
26
|
+
readonly divider: "#222222";
|
|
27
|
+
readonly disabled: "#444444";
|
|
28
|
+
};
|
|
29
|
+
declare const BankCard: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {
|
|
30
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
31
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
32
|
+
type BankCardProps = GetProps<typeof BankCard>;
|
|
33
|
+
declare const BankInput: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
|
|
34
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
35
|
+
invalid?: boolean | undefined;
|
|
36
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
37
|
+
type BankInputProps = GetProps<typeof BankInput> & {
|
|
38
|
+
placeholderTextColor?: string;
|
|
39
|
+
};
|
|
40
|
+
declare const BankButton: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {
|
|
41
|
+
variant?: "primary" | "secondary" | "ghost" | undefined;
|
|
42
|
+
disabled?: boolean | undefined;
|
|
43
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
44
|
+
declare const BankButtonText: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
|
|
45
|
+
variant?: "primary" | "secondary" | "ghost" | undefined;
|
|
46
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
47
|
+
type BankButtonProps = GetProps<typeof BankButton>;
|
|
48
|
+
declare const BankHeading: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
|
|
49
|
+
size?: "sm" | "md" | "lg" | "xl" | "xs" | undefined;
|
|
50
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
51
|
+
type BankHeadingProps = GetProps<typeof BankHeading>;
|
|
52
|
+
declare const BankText: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
|
|
53
|
+
variant?: "label" | "link" | "default" | "error" | "success" | "muted" | undefined;
|
|
54
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
55
|
+
type BankTextProps = GetProps<typeof BankText>;
|
|
56
|
+
declare function BankField({ label, error, children, }: {
|
|
57
|
+
label?: string;
|
|
58
|
+
error?: string;
|
|
59
|
+
children: React__default.ReactNode;
|
|
60
|
+
}): react_jsx_runtime.JSX.Element;
|
|
61
|
+
declare const BankAlert: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {
|
|
62
|
+
status?: "error" | "success" | undefined;
|
|
63
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
64
|
+
declare const BankAlertText: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
|
|
65
|
+
status?: "error" | "success" | undefined;
|
|
66
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
67
|
+
type BankAlertProps = GetProps<typeof BankAlert>;
|
|
68
|
+
declare const BankPinBox: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiTextElement, _hanzogui_core.RNGuiTextNonStyleProps, _hanzogui_core.TextStylePropsBase, {
|
|
69
|
+
invalid?: boolean | undefined;
|
|
70
|
+
}, _hanzogui_core.StaticConfigPublic>;
|
|
71
|
+
type BankPinBoxProps = GetProps<typeof BankPinBox>;
|
|
72
|
+
declare const BankDivider: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {}, _hanzogui_core.StaticConfigPublic>;
|
|
73
|
+
declare const BankPage: _hanzogui_core.GuiComponent<_hanzogui_core.TamaDefer, _hanzogui_core.GuiElement, _hanzogui_core.RNGuiViewNonStyleProps, _hanzogui_core.StackStyleBase, {}, _hanzogui_core.StaticConfigPublic>;
|
|
74
|
+
type BankPageProps = GetProps<typeof BankPage>;
|
|
75
|
+
|
|
76
|
+
export { BankAlert, type BankAlertProps, BankAlertText, BankButton, type BankButtonProps, BankButtonText, BankCard, type BankCardProps, BankDivider, BankField, BankHeading, type BankHeadingProps, BankInput, type BankInputProps, BankPage, type BankPageProps, BankPinBox, type BankPinBoxProps, BankText, type BankTextProps, bankColors };
|
package/dist/bank.js
ADDED
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { styled, View, Text } from '@hanzogui/core';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var bankColors = {
|
|
6
|
+
bg: "#000000",
|
|
7
|
+
card: "#111111",
|
|
8
|
+
cardBorder: "#222222",
|
|
9
|
+
input: "#1A1A1A",
|
|
10
|
+
inputBorder: "#333333",
|
|
11
|
+
inputFocus: "#555555",
|
|
12
|
+
inputPlaceholder: "#666666",
|
|
13
|
+
text: "#FFFFFF",
|
|
14
|
+
textMuted: "#888888",
|
|
15
|
+
textLabel: "#CCCCCC",
|
|
16
|
+
accent: "#FFFFFF",
|
|
17
|
+
accentPress: "#E0E0E0",
|
|
18
|
+
accentHover: "#F0F0F0",
|
|
19
|
+
error: "#FF4444",
|
|
20
|
+
errorBg: "#1C0A0A",
|
|
21
|
+
errorBorder: "#441111",
|
|
22
|
+
success: "#44FF44",
|
|
23
|
+
successBg: "#0A1C0A",
|
|
24
|
+
successBorder: "#114411",
|
|
25
|
+
divider: "#222222",
|
|
26
|
+
disabled: "#444444"
|
|
27
|
+
};
|
|
28
|
+
var BankCard = styled(View, {
|
|
29
|
+
name: "BankCard",
|
|
30
|
+
backgroundColor: bankColors.card,
|
|
31
|
+
borderRadius: 24,
|
|
32
|
+
borderWidth: 1,
|
|
33
|
+
borderColor: bankColors.cardBorder,
|
|
34
|
+
padding: 32,
|
|
35
|
+
gap: 32,
|
|
36
|
+
width: "100%",
|
|
37
|
+
maxWidth: 512,
|
|
38
|
+
variants: {
|
|
39
|
+
size: {
|
|
40
|
+
sm: { padding: 24, gap: 24, maxWidth: 448 },
|
|
41
|
+
md: { padding: 32, gap: 32, maxWidth: 512 },
|
|
42
|
+
lg: { padding: 40, gap: 40, maxWidth: 640 }
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
defaultVariants: {
|
|
46
|
+
size: "md"
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
var BankInput = styled(Text, {
|
|
50
|
+
name: "BankInput",
|
|
51
|
+
render: "input",
|
|
52
|
+
backgroundColor: bankColors.input,
|
|
53
|
+
color: bankColors.text,
|
|
54
|
+
borderWidth: 1,
|
|
55
|
+
borderColor: bankColors.inputBorder,
|
|
56
|
+
borderRadius: 12,
|
|
57
|
+
paddingHorizontal: 16,
|
|
58
|
+
paddingVertical: 14,
|
|
59
|
+
fontSize: 16,
|
|
60
|
+
lineHeight: 24,
|
|
61
|
+
outlineStyle: "none",
|
|
62
|
+
width: "100%",
|
|
63
|
+
hoverStyle: {
|
|
64
|
+
borderColor: bankColors.inputFocus
|
|
65
|
+
},
|
|
66
|
+
focusStyle: {
|
|
67
|
+
borderColor: bankColors.inputFocus
|
|
68
|
+
},
|
|
69
|
+
variants: {
|
|
70
|
+
invalid: {
|
|
71
|
+
true: {
|
|
72
|
+
borderColor: bankColors.error
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
size: {
|
|
76
|
+
sm: { paddingVertical: 10, fontSize: 14 },
|
|
77
|
+
md: { paddingVertical: 14, fontSize: 16 },
|
|
78
|
+
lg: { paddingVertical: 18, fontSize: 18 }
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
defaultVariants: {
|
|
82
|
+
size: "md"
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
var BankButton = styled(View, {
|
|
86
|
+
name: "BankButton",
|
|
87
|
+
render: "button",
|
|
88
|
+
backgroundColor: bankColors.accent,
|
|
89
|
+
borderRadius: 16,
|
|
90
|
+
height: 56,
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
justifyContent: "center",
|
|
93
|
+
cursor: "pointer",
|
|
94
|
+
width: "100%",
|
|
95
|
+
userSelect: "none",
|
|
96
|
+
borderWidth: 0,
|
|
97
|
+
pressStyle: {
|
|
98
|
+
backgroundColor: bankColors.accentPress,
|
|
99
|
+
scale: 0.98
|
|
100
|
+
},
|
|
101
|
+
hoverStyle: {
|
|
102
|
+
backgroundColor: bankColors.accentHover
|
|
103
|
+
},
|
|
104
|
+
variants: {
|
|
105
|
+
variant: {
|
|
106
|
+
primary: {
|
|
107
|
+
backgroundColor: bankColors.accent
|
|
108
|
+
},
|
|
109
|
+
secondary: {
|
|
110
|
+
backgroundColor: bankColors.cardBorder
|
|
111
|
+
},
|
|
112
|
+
ghost: {
|
|
113
|
+
backgroundColor: "transparent",
|
|
114
|
+
borderWidth: 1,
|
|
115
|
+
borderColor: bankColors.cardBorder
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
disabled: {
|
|
119
|
+
true: {
|
|
120
|
+
opacity: 0.3,
|
|
121
|
+
cursor: "not-allowed",
|
|
122
|
+
pointerEvents: "none"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
defaultVariants: {
|
|
127
|
+
variant: "primary"
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
var BankButtonText = styled(Text, {
|
|
131
|
+
name: "BankButtonText",
|
|
132
|
+
color: "#000000",
|
|
133
|
+
fontSize: 16,
|
|
134
|
+
fontWeight: "700",
|
|
135
|
+
textAlign: "center",
|
|
136
|
+
variants: {
|
|
137
|
+
variant: {
|
|
138
|
+
primary: { color: "#000000" },
|
|
139
|
+
secondary: { color: bankColors.text },
|
|
140
|
+
ghost: { color: bankColors.text }
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
var BankHeading = styled(Text, {
|
|
145
|
+
name: "BankHeading",
|
|
146
|
+
color: bankColors.text,
|
|
147
|
+
fontWeight: "700",
|
|
148
|
+
variants: {
|
|
149
|
+
size: {
|
|
150
|
+
xs: { fontSize: 18, lineHeight: 24 },
|
|
151
|
+
sm: { fontSize: 24, lineHeight: 32 },
|
|
152
|
+
md: { fontSize: 30, lineHeight: 38 },
|
|
153
|
+
lg: { fontSize: 36, lineHeight: 44 },
|
|
154
|
+
xl: { fontSize: 48, lineHeight: 56 }
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
defaultVariants: {
|
|
158
|
+
size: "lg"
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
var BankText = styled(Text, {
|
|
162
|
+
name: "BankText",
|
|
163
|
+
color: bankColors.textMuted,
|
|
164
|
+
fontSize: 16,
|
|
165
|
+
lineHeight: 24,
|
|
166
|
+
variants: {
|
|
167
|
+
variant: {
|
|
168
|
+
default: { color: bankColors.textMuted },
|
|
169
|
+
label: { color: bankColors.textLabel, fontSize: 14, fontWeight: "500" },
|
|
170
|
+
error: { color: bankColors.error, fontSize: 13 },
|
|
171
|
+
success: { color: bankColors.success, fontSize: 13 },
|
|
172
|
+
link: { color: bankColors.text, fontWeight: "600", cursor: "pointer" },
|
|
173
|
+
muted: { color: bankColors.disabled }
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
defaultVariants: {
|
|
177
|
+
variant: "default"
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
function BankField({
|
|
181
|
+
label,
|
|
182
|
+
error,
|
|
183
|
+
children
|
|
184
|
+
}) {
|
|
185
|
+
return /* @__PURE__ */ jsxs(View, { gap: 8, width: "100%", children: [
|
|
186
|
+
label && /* @__PURE__ */ jsx(BankText, { variant: "label", children: label }),
|
|
187
|
+
children,
|
|
188
|
+
error && /* @__PURE__ */ jsx(BankText, { variant: "error", children: error })
|
|
189
|
+
] });
|
|
190
|
+
}
|
|
191
|
+
var BankAlert = styled(View, {
|
|
192
|
+
name: "BankAlert",
|
|
193
|
+
borderRadius: 12,
|
|
194
|
+
padding: 16,
|
|
195
|
+
borderWidth: 1,
|
|
196
|
+
gap: 4,
|
|
197
|
+
variants: {
|
|
198
|
+
status: {
|
|
199
|
+
error: {
|
|
200
|
+
backgroundColor: bankColors.errorBg,
|
|
201
|
+
borderColor: bankColors.errorBorder
|
|
202
|
+
},
|
|
203
|
+
success: {
|
|
204
|
+
backgroundColor: bankColors.successBg,
|
|
205
|
+
borderColor: bankColors.successBorder
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
var BankAlertText = styled(Text, {
|
|
211
|
+
name: "BankAlertText",
|
|
212
|
+
fontSize: 14,
|
|
213
|
+
variants: {
|
|
214
|
+
status: {
|
|
215
|
+
error: { color: bankColors.error },
|
|
216
|
+
success: { color: bankColors.success }
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
var BankPinBox = styled(Text, {
|
|
221
|
+
name: "BankPinBox",
|
|
222
|
+
render: "input",
|
|
223
|
+
backgroundColor: bankColors.input,
|
|
224
|
+
color: bankColors.text,
|
|
225
|
+
borderWidth: 1,
|
|
226
|
+
borderColor: bankColors.inputBorder,
|
|
227
|
+
borderRadius: 12,
|
|
228
|
+
width: 48,
|
|
229
|
+
height: 48,
|
|
230
|
+
textAlign: "center",
|
|
231
|
+
fontSize: 20,
|
|
232
|
+
fontWeight: "600",
|
|
233
|
+
outlineStyle: "none",
|
|
234
|
+
focusStyle: {
|
|
235
|
+
borderColor: bankColors.inputFocus
|
|
236
|
+
},
|
|
237
|
+
variants: {
|
|
238
|
+
invalid: {
|
|
239
|
+
true: { borderColor: bankColors.error }
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
var BankDivider = styled(View, {
|
|
244
|
+
name: "BankDivider",
|
|
245
|
+
height: 1,
|
|
246
|
+
width: "100%",
|
|
247
|
+
backgroundColor: bankColors.divider
|
|
248
|
+
});
|
|
249
|
+
var BankPage = styled(View, {
|
|
250
|
+
name: "BankPage",
|
|
251
|
+
backgroundColor: bankColors.bg,
|
|
252
|
+
minHeight: "100vh",
|
|
253
|
+
alignItems: "center",
|
|
254
|
+
justifyContent: "center",
|
|
255
|
+
padding: 16
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
export { BankAlert, BankAlertText, BankButton, BankButtonText, BankCard, BankDivider, BankField, BankHeading, BankInput, BankPage, BankPinBox, BankText, bankColors };
|