@asdp/ferryui 0.1.22-dev.10750 → 0.1.22-dev.10751
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/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +49 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +49 -44
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -16432,10 +16432,12 @@ var CardPriceDetails = ({
|
|
|
16432
16432
|
// src/components/CardPaymentMethodList/CardPaymentMethodList.constants.ts
|
|
16433
16433
|
var DEFAULT_LABELS36 = {
|
|
16434
16434
|
id: {
|
|
16435
|
-
selectAriaLabel: "Pilih metode pembayaran"
|
|
16435
|
+
selectAriaLabel: "Pilih metode pembayaran",
|
|
16436
|
+
method: "Metode Pembayaran"
|
|
16436
16437
|
},
|
|
16437
16438
|
en: {
|
|
16438
|
-
selectAriaLabel: "Select payment method"
|
|
16439
|
+
selectAriaLabel: "Select payment method",
|
|
16440
|
+
method: "Payment Method"
|
|
16439
16441
|
}
|
|
16440
16442
|
};
|
|
16441
16443
|
var useStyles38 = reactComponents.makeStyles({
|
|
@@ -16500,51 +16502,54 @@ var CardPaymentMethodList = ({
|
|
|
16500
16502
|
}) => {
|
|
16501
16503
|
const styles = useStyles38();
|
|
16502
16504
|
const mergedLabels = { ...DEFAULT_LABELS36[language], ...labels };
|
|
16503
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.card, children: /* @__PURE__ */ jsxRuntime.
|
|
16504
|
-
|
|
16505
|
-
|
|
16506
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16507
|
-
|
|
16508
|
-
|
|
16509
|
-
|
|
16510
|
-
|
|
16511
|
-
|
|
16512
|
-
|
|
16513
|
-
|
|
16514
|
-
|
|
16515
|
-
|
|
16516
|
-
{
|
|
16517
|
-
|
|
16518
|
-
|
|
16519
|
-
|
|
16520
|
-
|
|
16505
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.card, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${styles.container}`, children: [
|
|
16506
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { children: mergedLabels.method }),
|
|
16507
|
+
methods.map((category, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
16508
|
+
index > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.dividerContainer, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Divider, {}) }),
|
|
16509
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Accordion, { multiple: true, collapsible: true, children: /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.AccordionItem, { value: category.value, children: [
|
|
16510
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16511
|
+
reactComponents.AccordionHeader,
|
|
16512
|
+
{
|
|
16513
|
+
expandIconPosition: "end",
|
|
16514
|
+
className: styles.title,
|
|
16515
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { children: category.title || category.value })
|
|
16516
|
+
}
|
|
16517
|
+
),
|
|
16518
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.AccordionPanel, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.itemContainer, children: category.options.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
16519
|
+
"div",
|
|
16520
|
+
{
|
|
16521
|
+
className: styles.optionContainer,
|
|
16522
|
+
onClick: () => onSelect(option.value),
|
|
16523
|
+
children: [
|
|
16524
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.codeImage, children: [
|
|
16525
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16526
|
+
"img",
|
|
16527
|
+
{
|
|
16528
|
+
src: option.image,
|
|
16529
|
+
alt: option.label,
|
|
16530
|
+
className: styles.image
|
|
16531
|
+
}
|
|
16532
|
+
),
|
|
16533
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle2, { className: styles.optionLabel, children: option.label })
|
|
16534
|
+
] }),
|
|
16521
16535
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16522
|
-
|
|
16536
|
+
reactComponents.Radio,
|
|
16523
16537
|
{
|
|
16524
|
-
|
|
16525
|
-
|
|
16526
|
-
|
|
16538
|
+
checked: selectedValue === option.value,
|
|
16539
|
+
onChange: () => onSelect(option.value),
|
|
16540
|
+
value: option.value,
|
|
16541
|
+
name: "payment-method",
|
|
16542
|
+
disabled: option.disabled,
|
|
16543
|
+
"aria-label": `${mergedLabels.selectAriaLabel} ${option.label}`
|
|
16527
16544
|
}
|
|
16528
|
-
)
|
|
16529
|
-
|
|
16530
|
-
|
|
16531
|
-
|
|
16532
|
-
|
|
16533
|
-
|
|
16534
|
-
|
|
16535
|
-
|
|
16536
|
-
value: option.value,
|
|
16537
|
-
name: "payment-method",
|
|
16538
|
-
disabled: option.disabled,
|
|
16539
|
-
"aria-label": `${mergedLabels.selectAriaLabel} ${option.label}`
|
|
16540
|
-
}
|
|
16541
|
-
)
|
|
16542
|
-
]
|
|
16543
|
-
},
|
|
16544
|
-
option.value
|
|
16545
|
-
)) }) })
|
|
16546
|
-
] }) })
|
|
16547
|
-
] }, category.value || index)) }) });
|
|
16545
|
+
)
|
|
16546
|
+
]
|
|
16547
|
+
},
|
|
16548
|
+
option.value
|
|
16549
|
+
)) }) })
|
|
16550
|
+
] }) })
|
|
16551
|
+
] }, category.value || index))
|
|
16552
|
+
] }) });
|
|
16548
16553
|
};
|
|
16549
16554
|
|
|
16550
16555
|
// src/components/CardPaymentGuide/CardPaymentGuide.constants.ts
|