@luxfi/ui 6.1.2 → 7.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/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 +553 -0
- package/dist/alert.d.cts +30 -0
- package/dist/alert.d.ts +30 -0
- package/dist/alert.js +531 -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 +611 -0
- package/dist/badge.d.cts +23 -0
- package/dist/badge.d.ts +23 -0
- package/dist/badge.js +589 -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 +689 -0
- package/dist/button.d.cts +52 -0
- package/dist/button.d.ts +52 -0
- package/dist/button.js +664 -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 +73 -0
- package/dist/close-button.d.cts +9 -0
- package/dist/close-button.d.ts +9 -0
- package/dist/close-button.js +51 -0
- package/dist/collapsible.cjs +702 -0
- package/dist/collapsible.d.cts +23 -0
- package/dist/collapsible.d.ts +23 -0
- package/dist/collapsible.js +679 -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 +279 -0
- package/dist/dialog.d.cts +66 -0
- package/dist/dialog.d.ts +66 -0
- package/dist/dialog.js +246 -0
- package/dist/drawer.cjs +207 -0
- package/dist/drawer.d.cts +36 -0
- package/dist/drawer.d.ts +36 -0
- package/dist/drawer.js +175 -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 +46 -0
- package/dist/heading.d.cts +10 -0
- package/dist/heading.d.ts +10 -0
- package/dist/heading.js +40 -0
- package/dist/icon-button.cjs +491 -0
- package/dist/icon-button.d.cts +33 -0
- package/dist/icon-button.d.ts +33 -0
- package/dist/icon-button.js +470 -0
- package/dist/image.cjs +572 -0
- package/dist/image.d.cts +57 -0
- package/dist/image.d.ts +57 -0
- package/dist/image.js +551 -0
- package/dist/index.cjs +7316 -0
- package/dist/index.d.cts +58 -0
- package/dist/index.d.ts +58 -0
- package/dist/index.js +7137 -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 +630 -0
- package/dist/link.d.cts +37 -0
- package/dist/link.d.ts +37 -0
- package/dist/link.js +606 -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 +327 -0
- package/dist/popover.d.cts +73 -0
- package/dist/popover.d.ts +73 -0
- package/dist/popover.js +294 -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 +791 -0
- package/dist/select.d.cts +130 -0
- package/dist/select.d.ts +130 -0
- package/dist/select.js +757 -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 +370 -0
- package/dist/skeleton.d.cts +60 -0
- package/dist/skeleton.d.ts +60 -0
- package/dist/skeleton.js +346 -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 +1044 -0
- package/dist/table.d.cts +107 -0
- package/dist/table.d.ts +107 -0
- package/dist/table.js +1013 -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 +651 -0
- package/dist/tag.d.cts +21 -0
- package/dist/tag.d.ts +21 -0
- package/dist/tag.js +628 -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 +171 -0
- package/dist/tooltip.d.cts +39 -0
- package/dist/tooltip.d.ts +39 -0
- package/dist/tooltip.js +148 -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 -85
- package/src/accordion.tsx +285 -0
- package/src/alert.tsx +221 -0
- package/src/avatar.tsx +174 -0
- package/src/badge.tsx +158 -0
- package/src/bank.tsx +325 -0
- package/src/button.tsx +411 -0
- package/src/checkbox.tsx +307 -0
- package/src/close-button.tsx +51 -0
- package/src/collapsible.tsx +126 -0
- package/src/color-mode.tsx +125 -0
- package/src/dialog.tsx +356 -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 +55 -0
- package/src/icon-button.tsx +192 -0
- package/src/image.tsx +280 -0
- package/src/index.ts +268 -0
- 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 +400 -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 +302 -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 +184 -0
- package/src/utils/cn.ts +7 -0
- package/src/utils.ts +6 -0
- package/tokens.css +438 -0
- package/README.md +0 -109
package/dist/bank.cjs
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var core = require('@hanzogui/core');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
var bankColors = {
|
|
8
|
+
bg: "#000000",
|
|
9
|
+
card: "#111111",
|
|
10
|
+
cardBorder: "#222222",
|
|
11
|
+
input: "#1A1A1A",
|
|
12
|
+
inputBorder: "#333333",
|
|
13
|
+
inputFocus: "#555555",
|
|
14
|
+
inputPlaceholder: "#666666",
|
|
15
|
+
text: "#FFFFFF",
|
|
16
|
+
textMuted: "#888888",
|
|
17
|
+
textLabel: "#CCCCCC",
|
|
18
|
+
accent: "#FFFFFF",
|
|
19
|
+
accentPress: "#E0E0E0",
|
|
20
|
+
accentHover: "#F0F0F0",
|
|
21
|
+
error: "#FF4444",
|
|
22
|
+
errorBg: "#1C0A0A",
|
|
23
|
+
errorBorder: "#441111",
|
|
24
|
+
success: "#44FF44",
|
|
25
|
+
successBg: "#0A1C0A",
|
|
26
|
+
successBorder: "#114411",
|
|
27
|
+
divider: "#222222",
|
|
28
|
+
disabled: "#444444"
|
|
29
|
+
};
|
|
30
|
+
var BankCard = core.styled(core.View, {
|
|
31
|
+
name: "BankCard",
|
|
32
|
+
backgroundColor: bankColors.card,
|
|
33
|
+
borderRadius: 24,
|
|
34
|
+
borderWidth: 1,
|
|
35
|
+
borderColor: bankColors.cardBorder,
|
|
36
|
+
padding: 32,
|
|
37
|
+
gap: 32,
|
|
38
|
+
width: "100%",
|
|
39
|
+
maxWidth: 512,
|
|
40
|
+
variants: {
|
|
41
|
+
size: {
|
|
42
|
+
sm: { padding: 24, gap: 24, maxWidth: 448 },
|
|
43
|
+
md: { padding: 32, gap: 32, maxWidth: 512 },
|
|
44
|
+
lg: { padding: 40, gap: 40, maxWidth: 640 }
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
defaultVariants: {
|
|
48
|
+
size: "md"
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
var BankInput = core.styled(core.Text, {
|
|
52
|
+
name: "BankInput",
|
|
53
|
+
render: "input",
|
|
54
|
+
backgroundColor: bankColors.input,
|
|
55
|
+
color: bankColors.text,
|
|
56
|
+
borderWidth: 1,
|
|
57
|
+
borderColor: bankColors.inputBorder,
|
|
58
|
+
borderRadius: 12,
|
|
59
|
+
paddingHorizontal: 16,
|
|
60
|
+
paddingVertical: 14,
|
|
61
|
+
fontSize: 16,
|
|
62
|
+
lineHeight: 24,
|
|
63
|
+
outlineStyle: "none",
|
|
64
|
+
width: "100%",
|
|
65
|
+
hoverStyle: {
|
|
66
|
+
borderColor: bankColors.inputFocus
|
|
67
|
+
},
|
|
68
|
+
focusStyle: {
|
|
69
|
+
borderColor: bankColors.inputFocus
|
|
70
|
+
},
|
|
71
|
+
variants: {
|
|
72
|
+
invalid: {
|
|
73
|
+
true: {
|
|
74
|
+
borderColor: bankColors.error
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
size: {
|
|
78
|
+
sm: { paddingVertical: 10, fontSize: 14 },
|
|
79
|
+
md: { paddingVertical: 14, fontSize: 16 },
|
|
80
|
+
lg: { paddingVertical: 18, fontSize: 18 }
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
defaultVariants: {
|
|
84
|
+
size: "md"
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
var BankButton = core.styled(core.View, {
|
|
88
|
+
name: "BankButton",
|
|
89
|
+
render: "button",
|
|
90
|
+
backgroundColor: bankColors.accent,
|
|
91
|
+
borderRadius: 16,
|
|
92
|
+
height: 56,
|
|
93
|
+
alignItems: "center",
|
|
94
|
+
justifyContent: "center",
|
|
95
|
+
cursor: "pointer",
|
|
96
|
+
width: "100%",
|
|
97
|
+
userSelect: "none",
|
|
98
|
+
borderWidth: 0,
|
|
99
|
+
pressStyle: {
|
|
100
|
+
backgroundColor: bankColors.accentPress,
|
|
101
|
+
scale: 0.98
|
|
102
|
+
},
|
|
103
|
+
hoverStyle: {
|
|
104
|
+
backgroundColor: bankColors.accentHover
|
|
105
|
+
},
|
|
106
|
+
variants: {
|
|
107
|
+
variant: {
|
|
108
|
+
primary: {
|
|
109
|
+
backgroundColor: bankColors.accent
|
|
110
|
+
},
|
|
111
|
+
secondary: {
|
|
112
|
+
backgroundColor: bankColors.cardBorder
|
|
113
|
+
},
|
|
114
|
+
ghost: {
|
|
115
|
+
backgroundColor: "transparent",
|
|
116
|
+
borderWidth: 1,
|
|
117
|
+
borderColor: bankColors.cardBorder
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
disabled: {
|
|
121
|
+
true: {
|
|
122
|
+
opacity: 0.3,
|
|
123
|
+
cursor: "not-allowed",
|
|
124
|
+
pointerEvents: "none"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
defaultVariants: {
|
|
129
|
+
variant: "primary"
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
var BankButtonText = core.styled(core.Text, {
|
|
133
|
+
name: "BankButtonText",
|
|
134
|
+
color: "#000000",
|
|
135
|
+
fontSize: 16,
|
|
136
|
+
fontWeight: "700",
|
|
137
|
+
textAlign: "center",
|
|
138
|
+
variants: {
|
|
139
|
+
variant: {
|
|
140
|
+
primary: { color: "#000000" },
|
|
141
|
+
secondary: { color: bankColors.text },
|
|
142
|
+
ghost: { color: bankColors.text }
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
var BankHeading = core.styled(core.Text, {
|
|
147
|
+
name: "BankHeading",
|
|
148
|
+
color: bankColors.text,
|
|
149
|
+
fontWeight: "700",
|
|
150
|
+
variants: {
|
|
151
|
+
size: {
|
|
152
|
+
xs: { fontSize: 18, lineHeight: 24 },
|
|
153
|
+
sm: { fontSize: 24, lineHeight: 32 },
|
|
154
|
+
md: { fontSize: 30, lineHeight: 38 },
|
|
155
|
+
lg: { fontSize: 36, lineHeight: 44 },
|
|
156
|
+
xl: { fontSize: 48, lineHeight: 56 }
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
defaultVariants: {
|
|
160
|
+
size: "lg"
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
var BankText = core.styled(core.Text, {
|
|
164
|
+
name: "BankText",
|
|
165
|
+
color: bankColors.textMuted,
|
|
166
|
+
fontSize: 16,
|
|
167
|
+
lineHeight: 24,
|
|
168
|
+
variants: {
|
|
169
|
+
variant: {
|
|
170
|
+
default: { color: bankColors.textMuted },
|
|
171
|
+
label: { color: bankColors.textLabel, fontSize: 14, fontWeight: "500" },
|
|
172
|
+
error: { color: bankColors.error, fontSize: 13 },
|
|
173
|
+
success: { color: bankColors.success, fontSize: 13 },
|
|
174
|
+
link: { color: bankColors.text, fontWeight: "600", cursor: "pointer" },
|
|
175
|
+
muted: { color: bankColors.disabled }
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
defaultVariants: {
|
|
179
|
+
variant: "default"
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
function BankField({
|
|
183
|
+
label,
|
|
184
|
+
error,
|
|
185
|
+
children
|
|
186
|
+
}) {
|
|
187
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(core.View, { gap: 8, width: "100%", children: [
|
|
188
|
+
label && /* @__PURE__ */ jsxRuntime.jsx(BankText, { variant: "label", children: label }),
|
|
189
|
+
children,
|
|
190
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(BankText, { variant: "error", children: error })
|
|
191
|
+
] });
|
|
192
|
+
}
|
|
193
|
+
var BankAlert = core.styled(core.View, {
|
|
194
|
+
name: "BankAlert",
|
|
195
|
+
borderRadius: 12,
|
|
196
|
+
padding: 16,
|
|
197
|
+
borderWidth: 1,
|
|
198
|
+
gap: 4,
|
|
199
|
+
variants: {
|
|
200
|
+
status: {
|
|
201
|
+
error: {
|
|
202
|
+
backgroundColor: bankColors.errorBg,
|
|
203
|
+
borderColor: bankColors.errorBorder
|
|
204
|
+
},
|
|
205
|
+
success: {
|
|
206
|
+
backgroundColor: bankColors.successBg,
|
|
207
|
+
borderColor: bankColors.successBorder
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
var BankAlertText = core.styled(core.Text, {
|
|
213
|
+
name: "BankAlertText",
|
|
214
|
+
fontSize: 14,
|
|
215
|
+
variants: {
|
|
216
|
+
status: {
|
|
217
|
+
error: { color: bankColors.error },
|
|
218
|
+
success: { color: bankColors.success }
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
var BankPinBox = core.styled(core.Text, {
|
|
223
|
+
name: "BankPinBox",
|
|
224
|
+
render: "input",
|
|
225
|
+
backgroundColor: bankColors.input,
|
|
226
|
+
color: bankColors.text,
|
|
227
|
+
borderWidth: 1,
|
|
228
|
+
borderColor: bankColors.inputBorder,
|
|
229
|
+
borderRadius: 12,
|
|
230
|
+
width: 48,
|
|
231
|
+
height: 48,
|
|
232
|
+
textAlign: "center",
|
|
233
|
+
fontSize: 20,
|
|
234
|
+
fontWeight: "600",
|
|
235
|
+
outlineStyle: "none",
|
|
236
|
+
focusStyle: {
|
|
237
|
+
borderColor: bankColors.inputFocus
|
|
238
|
+
},
|
|
239
|
+
variants: {
|
|
240
|
+
invalid: {
|
|
241
|
+
true: { borderColor: bankColors.error }
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
var BankDivider = core.styled(core.View, {
|
|
246
|
+
name: "BankDivider",
|
|
247
|
+
height: 1,
|
|
248
|
+
width: "100%",
|
|
249
|
+
backgroundColor: bankColors.divider
|
|
250
|
+
});
|
|
251
|
+
var BankPage = core.styled(core.View, {
|
|
252
|
+
name: "BankPage",
|
|
253
|
+
backgroundColor: bankColors.bg,
|
|
254
|
+
minHeight: "100vh",
|
|
255
|
+
alignItems: "center",
|
|
256
|
+
justifyContent: "center",
|
|
257
|
+
padding: 16
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
exports.BankAlert = BankAlert;
|
|
261
|
+
exports.BankAlertText = BankAlertText;
|
|
262
|
+
exports.BankButton = BankButton;
|
|
263
|
+
exports.BankButtonText = BankButtonText;
|
|
264
|
+
exports.BankCard = BankCard;
|
|
265
|
+
exports.BankDivider = BankDivider;
|
|
266
|
+
exports.BankField = BankField;
|
|
267
|
+
exports.BankHeading = BankHeading;
|
|
268
|
+
exports.BankInput = BankInput;
|
|
269
|
+
exports.BankPage = BankPage;
|
|
270
|
+
exports.BankPinBox = BankPinBox;
|
|
271
|
+
exports.BankText = BankText;
|
|
272
|
+
exports.bankColors = bankColors;
|
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 };
|