paymob-pixel-alpha 1.1.79 → 1.1.80
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/main.js +30 -34
- package/package.json +1 -1
package/main.js
CHANGED
|
@@ -23794,40 +23794,36 @@ function BankSelectionStep(props) {
|
|
|
23794
23794
|
className: BankSelectionStep_bank_selection_module['payment-input-container'],
|
|
23795
23795
|
children: loading ? /*#__PURE__*/(0,jsx_runtime.jsx)(dist_Skeleton, {
|
|
23796
23796
|
height: 45
|
|
23797
|
-
}) : /*#__PURE__*/(0,jsx_runtime.
|
|
23798
|
-
|
|
23799
|
-
|
|
23800
|
-
children: /*#__PURE__*/(0,jsx_runtime.
|
|
23801
|
-
|
|
23802
|
-
|
|
23803
|
-
|
|
23804
|
-
|
|
23805
|
-
|
|
23806
|
-
|
|
23807
|
-
|
|
23808
|
-
|
|
23809
|
-
|
|
23810
|
-
|
|
23811
|
-
|
|
23812
|
-
|
|
23813
|
-
|
|
23814
|
-
|
|
23815
|
-
|
|
23816
|
-
|
|
23817
|
-
|
|
23818
|
-
|
|
23819
|
-
|
|
23820
|
-
|
|
23821
|
-
|
|
23822
|
-
|
|
23823
|
-
|
|
23824
|
-
|
|
23825
|
-
|
|
23826
|
-
|
|
23827
|
-
})
|
|
23828
|
-
}, option.value))
|
|
23829
|
-
})]
|
|
23830
|
-
})
|
|
23797
|
+
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(Dropdown_Dropdown, {
|
|
23798
|
+
label: "Bank",
|
|
23799
|
+
width: "full",
|
|
23800
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(DropdownButton, {
|
|
23801
|
+
placeholder: "Select your bank",
|
|
23802
|
+
text: (_selectedBankOption$v = selectedBankOption == null ? void 0 : selectedBankOption.value) != null ? _selectedBankOption$v : '',
|
|
23803
|
+
leadingIcon: selectedBankOption && selectedBankOption.icon ? /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
23804
|
+
className: `${BankSelectionStep_bank_selection_module['bank-logo']} h-full rounded-full`,
|
|
23805
|
+
src: selectedBankOption.icon
|
|
23806
|
+
}) : undefined,
|
|
23807
|
+
onClearHandler: handleClearSelectedBank,
|
|
23808
|
+
disabled: disabled
|
|
23809
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)(DropdownMenu, {
|
|
23810
|
+
verticalPlacement: "auto",
|
|
23811
|
+
children: dropdownOptions.map(option => /*#__PURE__*/(0,jsx_runtime.jsx)(DropdownMenuItem, {
|
|
23812
|
+
text: option.label,
|
|
23813
|
+
selected: (selectedBank == null ? void 0 : selectedBank.value) === option.value,
|
|
23814
|
+
onClickHandler: () => handleSelectBank(option),
|
|
23815
|
+
render: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
23816
|
+
className: "flex items-center gap-2",
|
|
23817
|
+
children: [option.icon && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
23818
|
+
className: `${BankSelectionStep_bank_selection_module['bank-logo']} h-6 w-auto`,
|
|
23819
|
+
src: option.icon
|
|
23820
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
23821
|
+
className: "text-[#101828] font-medium text-sm",
|
|
23822
|
+
children: option.label
|
|
23823
|
+
})]
|
|
23824
|
+
})
|
|
23825
|
+
}, option.value))
|
|
23826
|
+
})]
|
|
23831
23827
|
})
|
|
23832
23828
|
}), !showMinInstallmentAmountError && selectedBank && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
23833
23829
|
className: "w-full flex mt-4 flex-col gap-2",
|