@opexa/portal-components 0.1.8 → 0.1.12
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/components/DepositWithdrawal/Withdrawal/InstapayGCashWithdrawal/InstapayGcashWithdrawal.js +6 -1
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayPaymayaWithdrawal/InstapayPaymayaWithdrawal.js +6 -1
- package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js +6 -1
- package/package.json +1 -1
|
@@ -138,7 +138,12 @@ export function InstapayGCashWithdrawal() {
|
|
|
138
138
|
bankCode: 'BNKGCH',
|
|
139
139
|
});
|
|
140
140
|
});
|
|
141
|
-
return (_jsxs("form", { onSubmit: handleSubmit, noValidate: true, autoComplete: "off", id: "hook-form", children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.accountNumber, className: "mt-3xl", children: [_jsx(Field.Label, { children: "Phone Number" }), _jsx(Field.Input, { type: "
|
|
141
|
+
return (_jsxs("form", { onSubmit: handleSubmit, noValidate: true, autoComplete: "off", id: "hook-form", children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.accountNumber, className: "mt-3xl", children: [_jsx(Field.Label, { children: "Phone Number" }), _jsx(Field.Input, { type: "text", inputMode: "numeric", pattern: "[0-9]*", ...form.register('accountNumber', {
|
|
142
|
+
setValueAs: (value) => value.replace(/\D/g, ''),
|
|
143
|
+
onChange: (e) => {
|
|
144
|
+
e.target.value = e.target.value.replace(/\D/g, '');
|
|
145
|
+
},
|
|
146
|
+
}), onKeyDown: (e) => {
|
|
142
147
|
if (['e', 'E', '.', '-', '+', ','].includes(e.key)) {
|
|
143
148
|
e.preventDefault();
|
|
144
149
|
}
|
|
@@ -138,7 +138,12 @@ export function InstapayPaymayaWithdrawal() {
|
|
|
138
138
|
bankCode: 'BNKMYA',
|
|
139
139
|
});
|
|
140
140
|
});
|
|
141
|
-
return (_jsxs("form", { onSubmit: handleSubmit, noValidate: true, autoComplete: "off", id: "hook-form", children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.accountNumber, className: "mt-3xl", children: [_jsx(Field.Label, { children: "Phone Number" }), _jsx(Field.Input, { type: "
|
|
141
|
+
return (_jsxs("form", { onSubmit: handleSubmit, noValidate: true, autoComplete: "off", id: "hook-form", children: [_jsxs(Field.Root, { invalid: !!form.formState.errors.accountNumber, className: "mt-3xl", children: [_jsx(Field.Label, { children: "Phone Number" }), _jsx(Field.Input, { type: "text", inputMode: "numeric", pattern: "[0-9]*", ...form.register('accountNumber', {
|
|
142
|
+
setValueAs: (value) => value.replace(/\D/g, ''),
|
|
143
|
+
onChange: (e) => {
|
|
144
|
+
e.target.value = e.target.value.replace(/\D/g, '');
|
|
145
|
+
},
|
|
146
|
+
}), onKeyDown: (e) => {
|
|
142
147
|
if (['e', 'E', '.', '-', '+', ','].includes(e.key)) {
|
|
143
148
|
e.preventDefault();
|
|
144
149
|
}
|
package/dist/components/DepositWithdrawal/Withdrawal/InstapayWithdrawal/InstapayWithdrawal.js
CHANGED
|
@@ -177,7 +177,12 @@ export function InstapayWithdrawal() {
|
|
|
177
177
|
sameWidth: true,
|
|
178
178
|
}, value: o.field.value ? [o.field.value] : [], onValueChange: (details) => {
|
|
179
179
|
o.field.onChange(details.value.at(0) ?? '');
|
|
180
|
-
}, children: [_jsx(Select.Label, { children: "Bank" }), _jsx(Select.Control, { children: _jsxs(Select.Trigger, { children: [_jsx(Select.ValueText, {}), _jsx(Select.Indicator, { asChild: true, children: _jsx(ChevronDownIcon, {}) })] }) }), _jsx(Select.Positioner, { children: _jsx(Select.Content, { children: _jsx(Select.ItemGroup, { children: bankCollection.items.map((item) => (_jsxs(Select.Item, { item: item, children: [_jsx(Select.ItemText, { children: item.name }), _jsx(Select.ItemIndicator, { asChild: true, children: _jsx(CheckIcon, {}) })] }, item.id))) }) }) })] }), _jsx(Field.ErrorText, { children: form.formState.errors.bankCode?.message })] })) }), _jsxs(Field.Root, { invalid: !!form.formState.errors.accountNumber, className: "mt-3xl", children: [_jsx(Field.Label, { children: "Account number" }), _jsx(Field.Input, { type: "
|
|
180
|
+
}, children: [_jsx(Select.Label, { children: "Bank" }), _jsx(Select.Control, { children: _jsxs(Select.Trigger, { children: [_jsx(Select.ValueText, {}), _jsx(Select.Indicator, { asChild: true, children: _jsx(ChevronDownIcon, {}) })] }) }), _jsx(Select.Positioner, { children: _jsx(Select.Content, { children: _jsx(Select.ItemGroup, { children: bankCollection.items.map((item) => (_jsxs(Select.Item, { item: item, children: [_jsx(Select.ItemText, { children: item.name }), _jsx(Select.ItemIndicator, { asChild: true, children: _jsx(CheckIcon, {}) })] }, item.id))) }) }) })] }), _jsx(Field.ErrorText, { children: form.formState.errors.bankCode?.message })] })) }), _jsxs(Field.Root, { invalid: !!form.formState.errors.accountNumber, className: "mt-3xl", children: [_jsx(Field.Label, { children: "Account number" }), _jsx(Field.Input, { type: "text", inputMode: "numeric", pattern: "[0-9]*", ...form.register('accountNumber', {
|
|
181
|
+
setValueAs: (value) => value.replace(/\D/g, ''),
|
|
182
|
+
onChange: (e) => {
|
|
183
|
+
e.target.value = e.target.value.replace(/\D/g, '');
|
|
184
|
+
},
|
|
185
|
+
}), onKeyDown: (e) => {
|
|
181
186
|
if (['e', 'E', '.', '-', '+', ','].includes(e.key)) {
|
|
182
187
|
e.preventDefault();
|
|
183
188
|
}
|