@afosto/checkout-ui 0.0.5 → 0.0.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"CheckoutPaymentMethodOption.d.ts","sourceRoot":"","sources":["../../src/CheckoutPaymentMethodOption/CheckoutPaymentMethodOption.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,sDAAsD,CAAC;AAG9D,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAIhE,MAAM,WAAW,gCAAgC;IAC/C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,6BAA6B,CAAC,UAAU,CAAC,CAAC;IACpD,MAAM,EAAE,+BAA+B,CAAC;CACzC;AAED,eAAO,MAAM,2BAA2B,GACtC,OAAO,gCAAgC,qDAsCxC,CAAC"}
1
+ {"version":3,"file":"CheckoutPaymentMethodOption.d.ts","sourceRoot":"","sources":["../../src/CheckoutPaymentMethodOption/CheckoutPaymentMethodOption.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,sDAAsD,CAAC;AAG9D,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AAKhE,MAAM,WAAW,gCAAgC;IAC/C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,6BAA6B,CAAC,UAAU,CAAC,CAAC;IACpD,MAAM,EAAE,+BAA+B,CAAC;CACzC;AAED,eAAO,MAAM,2BAA2B,GACtC,OAAO,gCAAgC,qDAwCxC,CAAC"}
@@ -4,8 +4,11 @@ import { Collapse as r, Box as t } from "@afosto/components";
4
4
  import { CHECKOUT_PAYMENT_METHOD_ICON_MAPPING as h } from "../constants/paymentMethodIconMapping.js";
5
5
  import { CheckoutIssuersField as a } from "../CheckoutIssuersField/CheckoutIssuersField.js";
6
6
  import { CheckoutTerminalsField as u } from "../CheckoutTerminalsField/CheckoutTerminalsField.js";
7
- const I = (n) => {
8
- const { active: o, currency: s, locale: c, onChange: l, option: e } = n || {}, m = h[e.code?.toLowerCase()];
7
+ import { camelize as C } from "@afosto/utils";
8
+ const P = (n) => {
9
+ const { active: o, currency: s, locale: c, onChange: l, option: e } = n || {}, m = h[C(
10
+ e.code?.toLowerCase() || ""
11
+ )];
9
12
  return /* @__PURE__ */ p(
10
13
  d,
11
14
  {
@@ -27,5 +30,5 @@ const I = (n) => {
27
30
  );
28
31
  };
29
32
  export {
30
- I as CheckoutPaymentMethodOption
33
+ P as CheckoutPaymentMethodOption
31
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afosto/checkout-ui",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Afosto react checkout ui components",
5
5
  "author": "Afosto",
6
6
  "license": "MIT",