@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 CHANGED
@@ -3811,6 +3811,7 @@ interface PaymentMethodCategory {
3811
3811
  }
3812
3812
  interface CardPaymentMethodListLabels {
3813
3813
  selectAriaLabel: string;
3814
+ method: string;
3814
3815
  }
3815
3816
  interface CardPaymentMethodListProps {
3816
3817
  /**
package/dist/index.d.ts CHANGED
@@ -3811,6 +3811,7 @@ interface PaymentMethodCategory {
3811
3811
  }
3812
3812
  interface CardPaymentMethodListLabels {
3813
3813
  selectAriaLabel: string;
3814
+ method: string;
3814
3815
  }
3815
3816
  interface CardPaymentMethodListProps {
3816
3817
  /**
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.jsx("div", { className: `${styles.container}`, children: methods.map((category, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
16504
- index > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.dividerContainer, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Divider, {}) }),
16505
- /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Accordion, { multiple: true, collapsible: true, children: /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.AccordionItem, { value: category.value, children: [
16506
- /* @__PURE__ */ jsxRuntime.jsx(
16507
- reactComponents.AccordionHeader,
16508
- {
16509
- expandIconPosition: "end",
16510
- className: styles.title,
16511
- children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { children: category.title || category.value })
16512
- }
16513
- ),
16514
- /* @__PURE__ */ jsxRuntime.jsx(reactComponents.AccordionPanel, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.itemContainer, children: category.options.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(
16515
- "div",
16516
- {
16517
- className: styles.optionContainer,
16518
- onClick: () => onSelect(option.value),
16519
- children: [
16520
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.codeImage, children: [
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
- "img",
16536
+ reactComponents.Radio,
16523
16537
  {
16524
- src: option.image,
16525
- alt: option.label,
16526
- className: styles.image
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
- /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle2, { className: styles.optionLabel, children: option.label })
16530
- ] }),
16531
- /* @__PURE__ */ jsxRuntime.jsx(
16532
- reactComponents.Radio,
16533
- {
16534
- checked: selectedValue === option.value,
16535
- onChange: () => onSelect(option.value),
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