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