@betterstore/react 0.5.6 → 0.5.8

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.
Files changed (35) hide show
  1. package/dist/components/checkout-embed/appearance.d.ts +5 -0
  2. package/dist/components/checkout-embed/appearance.d.ts.map +1 -1
  3. package/dist/components/checkout-embed/checkout-form-loading.d.ts.map +1 -1
  4. package/dist/components/checkout-embed/checkout-schema.d.ts +32 -20
  5. package/dist/components/checkout-embed/checkout-schema.d.ts.map +1 -1
  6. package/dist/components/checkout-embed/steps/customer/form.d.ts.map +1 -1
  7. package/dist/components/checkout-embed/steps/summary/discount-code.d.ts.map +1 -1
  8. package/dist/components/compounds/form/address-input/index.d.ts +6 -0
  9. package/dist/components/compounds/form/address-input/index.d.ts.map +1 -0
  10. package/dist/components/compounds/form/{country-dropdown.d.ts → country-input/dropdown.d.ts} +2 -1
  11. package/dist/components/compounds/form/country-input/dropdown.d.ts.map +1 -0
  12. package/dist/components/compounds/form/country-input/index.d.ts +10 -0
  13. package/dist/components/compounds/form/country-input/index.d.ts.map +1 -0
  14. package/dist/components/compounds/form/floating-label.d.ts +9 -0
  15. package/dist/components/compounds/form/floating-label.d.ts.map +1 -0
  16. package/dist/components/compounds/form/input-group.d.ts +4 -2
  17. package/dist/components/compounds/form/input-group.d.ts.map +1 -1
  18. package/dist/components/compounds/form/select-group/index.d.ts +13 -0
  19. package/dist/components/compounds/form/select-group/index.d.ts.map +1 -0
  20. package/dist/components/compounds/form/select-group/select.d.ts.map +1 -0
  21. package/dist/components/shadow-wrapper.d.ts.map +1 -1
  22. package/dist/components/ui/button.d.ts +1 -1
  23. package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
  24. package/dist/components/ui/popover.d.ts.map +1 -1
  25. package/dist/index.cjs.js +7081 -6123
  26. package/dist/index.mjs +7082 -6124
  27. package/dist/lib/betterstore.d.ts +1 -1
  28. package/package.json +4 -3
  29. package/dist/components/checkout-embed/steps/customer/address-input.d.ts +0 -2
  30. package/dist/components/checkout-embed/steps/customer/address-input.d.ts.map +0 -1
  31. package/dist/components/compounds/form/country-dropdown.d.ts.map +0 -1
  32. package/dist/components/payment-element/appearance.d.ts +0 -54
  33. package/dist/components/payment-element/appearance.d.ts.map +0 -1
  34. package/dist/components/ui/select.d.ts.map +0 -1
  35. /package/dist/components/{ui → compounds/form/select-group}/select.d.ts +0 -0
@@ -3,6 +3,6 @@ export declare const storeHelpers: {
3
3
  formatCurrency(currency: string): string;
4
4
  formatPrice(priceInCents: number, currency: string, exchangeRate?: number | null): string;
5
5
  getExchangeRate(baseCurrency: string, targetCurrency: string): Promise<number>;
6
- getAutocompleteAddressResults(query: string, locale?: string): Promise<import("@betterstore/sdk").AutocompleteResult[]>;
6
+ getAutocompleteAddressResults(query: string, locale?: string): Promise<import("@betterstore/sdk").AutocompleteAddressResult[]>;
7
7
  };
8
8
  //# sourceMappingURL=betterstore.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/react",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -19,7 +19,6 @@
19
19
  "@types/react": "19.1.0",
20
20
  "@types/react-dom": "19.1.1",
21
21
  "@vitejs/plugin-react": "^4.5.0",
22
- "autoprefixer": "^10.4.21",
23
22
  "eslint": "^9.29.0",
24
23
  "postcss": "^8.5.3",
25
24
  "rollup": "^4.41.1",
@@ -29,7 +28,7 @@
29
28
  "typescript": "5.8.2",
30
29
  "vite": "^6.3.5",
31
30
  "@betterstore/eslint-config": "0.0.0",
32
- "@betterstore/sdk": "0.5.6",
31
+ "@betterstore/sdk": "0.5.8",
33
32
  "@betterstore/typescript-config": "0.0.0"
34
33
  },
35
34
  "peerDependencies": {
@@ -55,8 +54,10 @@
55
54
  "@radix-ui/react-select": "^2.2.5",
56
55
  "@radix-ui/react-separator": "^1.1.7",
57
56
  "@radix-ui/react-slot": "^1.2.3",
57
+ "@rollup/plugin-alias": "^5.1.1",
58
58
  "@stripe/react-stripe-js": "^3.7.0",
59
59
  "@stripe/stripe-js": "^5.10.0",
60
+ "add": "^2.0.6",
60
61
  "axios": "^1.9.0",
61
62
  "class-variance-authority": "^0.7.1",
62
63
  "clsx": "^2.1.1",
@@ -1,2 +0,0 @@
1
- export default function AddressInput(): import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=address-input.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"address-input.d.ts","sourceRoot":"","sources":["../../../../../src/components/checkout-embed/steps/customer/address-input.tsx"],"names":[],"mappings":"AA2BA,MAAM,CAAC,OAAO,UAAU,YAAY,4CAqKnC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"country-dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/compounds/form/country-dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAwB5E,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAGD,UAAU,oBAAoB;IAC5B,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAoID,eAAO,MAAM,eAAe,gGAAuC,CAAC"}
@@ -1,54 +0,0 @@
1
- export declare const appearance: {
2
- theme: "flat";
3
- variables: {
4
- fontFamily: string;
5
- borderRadius: string;
6
- focusOutline: string;
7
- focusBoxShadow: string;
8
- colorSuccess: string;
9
- colorWarning: string;
10
- colorDanger: string;
11
- colorBackground: string;
12
- colorPrimary: string;
13
- colorText: string;
14
- colorTextSecondary: string;
15
- colorTextPlaceholder: string;
16
- tabIconColor: string;
17
- tabIconSelectedColor: string;
18
- };
19
- rules: {
20
- ".Input": {
21
- padding: string;
22
- border: string;
23
- backgroundColor: string;
24
- fontSize: string;
25
- outline: string;
26
- };
27
- ".Input:focus": {
28
- backgroundColor: string;
29
- };
30
- ".Input::placeholder": {
31
- fontSize: string;
32
- color: string;
33
- };
34
- ".Label": {
35
- marginBottom: string;
36
- fontSize: string;
37
- fontWeight: string;
38
- };
39
- ".Tab": {
40
- padding: string;
41
- border: string;
42
- backgroundColor: string;
43
- };
44
- ".Tab:hover": {
45
- backgroundColor: string;
46
- };
47
- ".Tab--selected, .Tab--selected:focus, .Tab--selected:hover": {
48
- border: string;
49
- backgroundColor: string;
50
- color: string;
51
- };
52
- };
53
- };
54
- //# sourceMappingURL=appearance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appearance.d.ts","sourceRoot":"","sources":["../../../src/components/payment-element/appearance.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,MAAM,CAAC,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAA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