@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.mjs CHANGED
@@ -16423,10 +16423,12 @@ var CardPriceDetails = ({
16423
16423
  // src/components/CardPaymentMethodList/CardPaymentMethodList.constants.ts
16424
16424
  var DEFAULT_LABELS36 = {
16425
16425
  id: {
16426
- selectAriaLabel: "Pilih metode pembayaran"
16426
+ selectAriaLabel: "Pilih metode pembayaran",
16427
+ method: "Metode Pembayaran"
16427
16428
  },
16428
16429
  en: {
16429
- selectAriaLabel: "Select payment method"
16430
+ selectAriaLabel: "Select payment method",
16431
+ method: "Payment Method"
16430
16432
  }
16431
16433
  };
16432
16434
  var useStyles38 = makeStyles({
@@ -16491,51 +16493,54 @@ var CardPaymentMethodList = ({
16491
16493
  }) => {
16492
16494
  const styles = useStyles38();
16493
16495
  const mergedLabels = { ...DEFAULT_LABELS36[language], ...labels };
16494
- return /* @__PURE__ */ jsx("div", { className: styles.card, children: /* @__PURE__ */ jsx("div", { className: `${styles.container}`, children: methods.map((category, index) => /* @__PURE__ */ jsxs("div", { children: [
16495
- index > 0 && /* @__PURE__ */ jsx("div", { className: styles.dividerContainer, children: /* @__PURE__ */ jsx(Divider, {}) }),
16496
- /* @__PURE__ */ jsx(Accordion, { multiple: true, collapsible: true, children: /* @__PURE__ */ jsxs(AccordionItem, { value: category.value, children: [
16497
- /* @__PURE__ */ jsx(
16498
- AccordionHeader,
16499
- {
16500
- expandIconPosition: "end",
16501
- className: styles.title,
16502
- children: /* @__PURE__ */ jsx(Body1, { children: category.title || category.value })
16503
- }
16504
- ),
16505
- /* @__PURE__ */ jsx(AccordionPanel, { children: /* @__PURE__ */ jsx("div", { className: styles.itemContainer, children: category.options.map((option) => /* @__PURE__ */ jsxs(
16506
- "div",
16507
- {
16508
- className: styles.optionContainer,
16509
- onClick: () => onSelect(option.value),
16510
- children: [
16511
- /* @__PURE__ */ jsxs("div", { className: styles.codeImage, children: [
16496
+ return /* @__PURE__ */ jsx("div", { className: styles.card, children: /* @__PURE__ */ jsxs("div", { className: `${styles.container}`, children: [
16497
+ /* @__PURE__ */ jsx(Subtitle1, { children: mergedLabels.method }),
16498
+ methods.map((category, index) => /* @__PURE__ */ jsxs("div", { children: [
16499
+ index > 0 && /* @__PURE__ */ jsx("div", { className: styles.dividerContainer, children: /* @__PURE__ */ jsx(Divider, {}) }),
16500
+ /* @__PURE__ */ jsx(Accordion, { multiple: true, collapsible: true, children: /* @__PURE__ */ jsxs(AccordionItem, { value: category.value, children: [
16501
+ /* @__PURE__ */ jsx(
16502
+ AccordionHeader,
16503
+ {
16504
+ expandIconPosition: "end",
16505
+ className: styles.title,
16506
+ children: /* @__PURE__ */ jsx(Body1, { children: category.title || category.value })
16507
+ }
16508
+ ),
16509
+ /* @__PURE__ */ jsx(AccordionPanel, { children: /* @__PURE__ */ jsx("div", { className: styles.itemContainer, children: category.options.map((option) => /* @__PURE__ */ jsxs(
16510
+ "div",
16511
+ {
16512
+ className: styles.optionContainer,
16513
+ onClick: () => onSelect(option.value),
16514
+ children: [
16515
+ /* @__PURE__ */ jsxs("div", { className: styles.codeImage, children: [
16516
+ /* @__PURE__ */ jsx(
16517
+ "img",
16518
+ {
16519
+ src: option.image,
16520
+ alt: option.label,
16521
+ className: styles.image
16522
+ }
16523
+ ),
16524
+ /* @__PURE__ */ jsx(Subtitle2, { className: styles.optionLabel, children: option.label })
16525
+ ] }),
16512
16526
  /* @__PURE__ */ jsx(
16513
- "img",
16527
+ Radio,
16514
16528
  {
16515
- src: option.image,
16516
- alt: option.label,
16517
- className: styles.image
16529
+ checked: selectedValue === option.value,
16530
+ onChange: () => onSelect(option.value),
16531
+ value: option.value,
16532
+ name: "payment-method",
16533
+ disabled: option.disabled,
16534
+ "aria-label": `${mergedLabels.selectAriaLabel} ${option.label}`
16518
16535
  }
16519
- ),
16520
- /* @__PURE__ */ jsx(Subtitle2, { className: styles.optionLabel, children: option.label })
16521
- ] }),
16522
- /* @__PURE__ */ jsx(
16523
- Radio,
16524
- {
16525
- checked: selectedValue === option.value,
16526
- onChange: () => onSelect(option.value),
16527
- value: option.value,
16528
- name: "payment-method",
16529
- disabled: option.disabled,
16530
- "aria-label": `${mergedLabels.selectAriaLabel} ${option.label}`
16531
- }
16532
- )
16533
- ]
16534
- },
16535
- option.value
16536
- )) }) })
16537
- ] }) })
16538
- ] }, category.value || index)) }) });
16536
+ )
16537
+ ]
16538
+ },
16539
+ option.value
16540
+ )) }) })
16541
+ ] }) })
16542
+ ] }, category.value || index))
16543
+ ] }) });
16539
16544
  };
16540
16545
 
16541
16546
  // src/components/CardPaymentGuide/CardPaymentGuide.constants.ts